/* ===== 页面容器 ===== */
.page {
    display: none;
    animation: fadeUp 0.4s ease forwards;
}
.page.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.section-sub {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.badge-safe {
    display: inline-block;
    background: #DCFCE7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 40px;
    margin-bottom: 12px;
}

/* ===== 首页 ===== */
.hero {
    padding: 60px 0 40px 0;
    background: linear-gradient(165deg, #FFFFFF 0%, var(--primary-bg) 100%);
    border-bottom: 1px solid var(--gray-200);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--primary); }
.hero p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 480px;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.stat-item .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.stat-item .label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.products {
    padding: 80px 0;
}

.categories-tabs {
    margin: 0 0 28px 0;
    scroll-margin-top: 80px;       
}

.tabs-wrapper {
    display: flex;
    flex-wrap: wrap;           
    justify-content: center;   
    gap: 14px 10px;            
    padding: 4px 0;
}

.category-tab {
    display: inline-block;
    padding: 12px 22px;
    background: #fff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5b6e;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}
.category-tab:hover, .category-tab.active {
    background: #07c160;
    color: white;
    border-color: #07c160;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.products-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.2s;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.product-info {
    flex: 3;
    min-width: 200px;
}
.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a2c3e;
}
.product-desc {
    font-size: 0.88rem;
    color: #5c6f87;
    line-height: 1.5;
}
.product-meta {
    flex: 1;
    min-width: 140px;
    text-align: center;
}
.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #07c160;
}
.price small {
    font-size: 0.7rem;
    font-weight: normal;
    color: #8e9eae;
}
.stock-status {
    display: inline-block;
    background: #e8f7ef;
    color: #07c160;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 8px;
}
.stock-status.out {
    background: #fee2e2;
    color: #dc2626;
}
.btn-order {
    display: inline-block;
    background: #07c160;
    color: #fff;
    text-align: center;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(7, 193, 96, 0.2);
    border: none;
    cursor: pointer;
}
/*.btn-order:hover {
    background: #e00046;
    transform: scale(1.02);
}*/
.btn-order.disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.6;
}

/* 信任区 */
.trust {
    background: var(--gray-50);
    padding: 80px 0;
    border-top: 1px solid var(--gray-200);
}
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 60px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.step-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.step-item .num {
    background: var(--primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.step-item .text { font-weight: 500; }
.step-item .desc {
    font-size: 0.9rem;
    color: var(--gray-600);
}
.reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-card {
    background: #fff;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.review-card .stars {
    color: #F59E0B;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.review-card blockquote {
    font-style: normal;
    color: var(--gray-700);
}
.review-card .meta {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 8px;
}

/* ===== 首页 FAQ 区域 ===== */
.faq-home {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.faq-question {
    background: #fff;
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}
.faq-question:hover {
    background: var(--gray-50);
}
.faq-question .arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}
.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    background: var(--gray-50);
    color: var(--gray-700);
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 18px 24px;
}


/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.6rem; }
    .product-card { flex-direction: column; text-align: center; }
    .trust-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .step-item { flex-wrap: wrap; border-radius: var(--radius); }
    .hero-image { padding: 24px 16px; }
    .stat-grid { gap: 8px; }
    .stat-item .num { font-size: 1.4rem; }
}