
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4caf50;
    --primary-dark: #2e7d32;
    --secondary: #8bc34a;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --curve: cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      /* 不要设置 overflow: hidden！ */

    }


body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
    padding: 5px;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;   /* 可选：增强体验 */
}

body::-webkit-scrollbar {
    display: none;
}

/* 确保 html 不滚动 */


.container {
    max-width: 1600px;
    margin: 0 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 0px;
    position: relative;
}

.section-title h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-showcase {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;

    /* 设置宽度 */
    width: 1200px;

    /* 设置高度 */
    height: 3500px;
}

.product-item {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 5;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.category {
    display: inline-block;
    background: rgba(94, 53, 177, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 10px 0 15px;
    line-height: 1.3;
}

.net-weight {
    display: inline-block;
    background: #f0f4ff;
    color: var(--primary);
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 1.1rem;
    margin: 10px 0;
    border: 1px solid rgba(94, 53, 177, 0.2);
}

.product-description {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 53, 177, 0.4);
}

.ingredients {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--light-gray);
}

.ingredients h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingredient {
    background: #f0e6ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.05) 0%, rgba(255, 152, 0, 0.05) 100%);
    z-index: 1;
}

.divider {
    height: 1px;
    background: var(--light-gray);
    margin: 40px 0;
}

.feature-icons {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    flex: 1;
}

.feature i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.feature p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* 产品目录样式 */
.product-catalog {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px;
    width: 280px;
    z-index: 100;
    transition: var(--transition);
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.catalog-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.catalog-list {
    list-style: none;
}

.catalog-item {
    padding: 12px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.catalog-item:hover {
    background: #f0f4ff;
}

.catalog-item.active {
    background: rgba(94, 53, 177, 0.1);
    border-left: 3px solid var(--primary);
    padding-left: 7px;
}

.catalog-item i {
    color: var(--primary);
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.toggle-catalog {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.4);
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
}

.toggle-catalog:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.toggle-catalog i {
    transition: transform 0.3s ease;
}

.toggle-catalog.active i {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .product-item {
        flex-direction: column !important;
    }

    .product-visual {
        min-height: 350px;
    }

    .product-catalog {
        width: 250px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.2rem;
    }

    .product-content {
        padding: 30px 25px;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .product-catalog {
        display: none !important;
    }

    .toggle-catalog {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.9rem;
    }

    .product-content, .product-visual {
        padding: 20px 15px;
    }

    .product-visual {
        min-height: 280px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .net-weight {
        font-size: 1rem;
        padding: 4px 12px;
    }

    .price-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
