/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #2B7A4B;
    --primary-dark: #1E5A38;
    --primary-light: #8FC9A3;
    --secondary-color: #E8B86B;
    --accent-color: #D97A3E;
    --accent-light: #F5E6D3;
    --herbal-color: #5B8C5A;
    --dark-color: #2C3E2F;
    --light-color: #6B7B6E;
    --gray-bg: #F8F9F5;
    --white-color: #FFFFFF;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
    color: var(--dark-color);
    background: var(--gray-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== 导航栏 ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(43, 122, 75, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: var(--white-color);
    border-top: 1px solid rgba(43, 122, 75, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-link {
    padding: 0.75rem 0;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
}

/* ==================== 页面头部 ==================== */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.08"><path fill="white" d="M20,30 L30,20 L40,30 L30,40 Z M70,70 L80,60 L90,70 L80,80 Z M45,10 L50,5 L55,10 L50,15 Z M10,85 L15,80 L20,85 L15,90 Z M85,45 L90,40 L95,45 L90,50 Z"/><circle cx="75" cy="25" r="3"/><circle cx="15" cy="65" r="2"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white-color);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ==================== 主内容区域 ==================== */
.main-content {
    padding: 3rem 0 4rem;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--white-color);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tablet-badge {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
}

.drink-badge {
    background: linear-gradient(135deg, rgba(217, 122, 62, 0.1), rgba(217, 122, 62, 0.05));
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.product-image {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-bg), #fff);
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.product-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.product-content {
    padding: 1.5rem;
}

.spec-section,
.ingredient-section {
    margin-bottom: 1.5rem;
}

.spec-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(43, 122, 75, 0.2);
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.spec-label {
    color: var(--light-color);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 500;
    color: var(--dark-color);
}

.spec-value.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.ingredient-text {
    color: var(--light-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.expand-btn:hover {
    color: var(--accent-color);
}

.full-ingredients {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.full-ingredients.hidden {
    display: none;
}

.ingredient-detail {
    color: var(--light-color);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 适用人群区域 */
.audience-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--light-color);
    font-size: 1rem;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.audience-card {
    background: var(--white-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(43, 122, 75, 0.08);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(43, 122, 75, 0.2);
}

.audience-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(217, 122, 62, 0.1), rgba(217, 122, 62, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.audience-icon i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.audience-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.audience-card p {
    color: var(--light-color);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 搭配优势区域 */
.advantage-section {
    margin-bottom: 3rem;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: linear-gradient(135deg, var(--white-color), var(--gray-bg));
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(43, 122, 75, 0.1);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.advantage-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.advantage-icon i {
    font-size: 1.8rem;
    color: white;
}

.advantage-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.advantage-card p {
    color: var(--light-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 订购区域 */
.order-section {
    text-align: center;
    padding: 2rem 0;
}

.order-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 3rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(43, 122, 75, 0.3);
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(43, 122, 75, 0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.order-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.order-tip {
    margin-top: 1rem;
    color: var(--light-color);
    font-size: 0.85rem;
}

/* ==================== 弹窗样式 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--white-color);
    border-radius: 1.5rem;
    max-width: 400px;
    width: 90%;
    margin: 1rem;
    animation: modalScaleIn 0.3s ease;
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light-color);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.modal-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-icon i {
    font-size: 2rem;
    color: white;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.modal-desc {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.qrcode-wrapper {
    background: var(--white-color);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    display: inline-block;
    margin-bottom: 1rem;
}

.qrcode-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.modal-contact {
    font-size: 0.85rem;
    color: var(--light-color);
}

.modal-contact strong {
    color: var(--primary-color);
}

/* ==================== 页脚 ==================== */
.site-footer {
    background: linear-gradient(135deg, #1A3A2A 0%, #2C3E2F 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .products-grid {
        gap: 1.5rem;
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .product-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .product-tag {
        top: 1rem;
        right: 1rem;
        font-size: 0.6rem;
    }
}