/* ============================================
   🥬 黑黑白菜网 — 设计系统
   风格：自然极简 · 黑白与鲜绿的交响
   概念：黑白之间，鲜菜之源
   色调：暖米白 + 白菜绿 + 炭灰 + 陶土杏
   ============================================ */

/* --- 基础重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    background: #f8f4ee;
    color: #2e2e2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #3d7a5a;
    color: #fff;
}

/* --- 核心布局 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: #f0ebe4;
}

/* --- 装饰性背景圆 --- */
.section::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 122, 90, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section:first-of-type::before {
    top: -80px;
    right: -80px;
}

.section:nth-child(even)::before {
    bottom: -100px;
    left: -60px;
}

/* --- 导航 --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 244, 238, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221, 214, 206, 0.5);
    transition: background 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: #2e2e2e;
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #3d7a5a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(61, 122, 90, 0.25);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a5a5a;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3d7a5a;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover {
    color: #3d7a5a;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    border-radius: 50px !important;
    background: #3d7a5a;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(61, 122, 90, 0.25);
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: #346b4e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 122, 90, 0.35);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 26px;
    height: 2.5px;
    background: #2e2e2e;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 72px;
    background: linear-gradient(135deg, #f8f4ee 0%, #f0ebe4 60%, #e8ede6 100%);
    overflow: hidden;
}

.hero::after {
    content: '🥬';
    position: absolute;
    bottom: -40px;
    right: -20px;
    font-size: 28rem;
    opacity: 0.04;
    transform: rotate(12deg);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: rgba(61, 122, 90, 0.12);
    color: #3d7a5a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #2e2e2e;
}

.hero h1 .highlight {
    color: #3d7a5a;
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(61, 122, 90, 0.15);
    border-radius: 4px;
}

.hero p {
    font-size: 1.15rem;
    color: #6a6a6a;
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 46, 46, 0.08);
    background: #e8ede6;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image::before {
    content: '🥬 鲜菜之源';
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(61, 122, 90, 0.15);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
}

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.2px;
}

.btn-primary {
    background: #3d7a5a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(61, 122, 90, 0.3);
}

.btn-primary:hover {
    background: #346b4e;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(61, 122, 90, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #d4a67a;
    color: #2e2e2e;
}

.btn-outline:hover {
    background: #d4a67a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 166, 122, 0.3);
}

/* --- 标签/标题 --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #3d7a5a;
    position: relative;
    padding-left: 36px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 2px;
    background: #3d7a5a;
    border-radius: 2px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #2e2e2e;
    line-height: 1.2;
}

.section-desc {
    max-width: 600px;
    color: #7a7a7a;
    margin-bottom: 48px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- 卡片网格 --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.category-card {
    border-radius: 16px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid rgba(221, 214, 206, 0.4);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3d7a5a, #d4a67a);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(46, 46, 46, 0.06);
    border-color: rgba(61, 122, 90, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    background: #f0ebe4;
    color: #3d7a5a;
    transition: all 0.3s ease;
}

.category-card:hover .card-icon {
    background: #3d7a5a;
    color: #fff;
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2e2e2e;
}

.category-card p {
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: #3d7a5a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* --- 特性块 --- */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(46, 46, 46, 0.06);
    background: #e8ede6;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-image::before {
    content: '🥬';
    font-size: 4rem;
    opacity: 0.15;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
}

.feature-text {
    padding: 20px 0;
}

.feature-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2e2e2e;
    line-height: 1.3;
}

.feature-text p {
    color: #6a6a6a;
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #3a3a3a;
}

.feature-list li::before {
    content: '✦';
    font-weight: 700;
    color: #3d7a5a;
    font-size: 1.1rem;
}

/* --- 数据条 --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.stat-item {
    padding: 32px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(221, 214, 206, 0.3);
    transition: all 0.35s ease;
    position: relative;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(46, 46, 46, 0.05);
    border-color: rgba(61, 122, 90, 0.2);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #3d7a5a;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-number::after {
    content: '+';
    font-weight: 400;
    font-size: 1.8rem;
    color: #d4a67a;
}

.stat-label {
    font-size: 0.9rem;
    color: #8a8a8a;
    margin-top: 8px;
    font-weight: 500;
}

/* --- 内容墙 --- */
.content-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.content-wall-item {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(221, 214, 206, 0.3);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-wall-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(46, 46, 46, 0.06);
    border-color: rgba(61, 122, 90, 0.15);
}

.content-wall-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #e8ede6;
}

.content-wall-item .placeholder-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e8ede6 0%, #d4dcd4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(61, 122, 90, 0.2);
}

.content-wall-body {
    padding: 24px 24px 28px;
}

.content-wall-body .tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(61, 122, 90, 0.1);
    color: #3d7a5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.content-wall-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.content-wall-body p {
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.content-wall-body .meta {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(221, 214, 206, 0.5);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(61, 122, 90, 0.2);
}

.faq-item .faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2e2e2e;
    background: #fff;
    transition: background 0.3s ease;
}

.faq-item .faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #3d7a5a;
    transition: transform 0.4s ease;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item.open .faq-question {
    background: rgba(61, 122, 90, 0.03);
}

.faq-item .faq-answer {
    padding: 0 24px 20px;
    display: none;
    color: #6a6a6a;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    display: block;
    animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CTA横幅 --- */
.cta-banner {
    padding: 72px 40px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #3d7a5a 0%, #2d5e44 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '🥬';
    position: absolute;
    top: -30px;
    right: -10px;
    font-size: 10rem;
    opacity: 0.06;
    transform: rotate(15deg);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.cta-banner h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.cta-banner .btn-primary {
    background: #fff;
    color: #3d7a5a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-banner .btn-primary:hover {
    background: #f8f4ee;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- 页脚 --- */
.site-footer {
    padding: 64px 0 28px;
    background: #2e2e2e;
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo {
    color: #fff;
    font-weight: 800;
}

.footer-brand .logo-icon {
    background: #3d7a5a;
    box-shadow: none;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.footer-col ul a:hover {
    color: #d4a67a;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- 工具类 --- */
.text-accent {
    color: #3d7a5a;
}

.text-center {
    text-align: center;
}

.seo-description {
    max-width: 600px;
    margin: 0 auto 48px;
    color: #7a7a7a;
    line-height: 1.7;
    font-size: 1.05rem;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* --- 辅助装饰元素 --- */
.divider-wave {
    width: 100%;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24'%3E%3Cpath d='M0,12 C200,24 400,0 600,12 C800,24 1000,0 1200,12 L1200,24 L0,24 Z' fill='%23f0ebe4'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 24px;
    opacity: 0.6;
}

/* --- 滚动动画支持 --- */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .container {
        gap: 40px;
    }

    .feature-block {
        gap: 40px;
    }

    .footer-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero::after {
        font-size: 16rem;
        bottom: -20px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(248, 244, 238, 0.98);
        backdrop-filter: blur(16px);
        padding: 28px 32px;
        gap: 20px;
        border-bottom: 1px solid rgba(221, 214, 206, 0.3);
        box-shadow: 0 20px 40px rgba(46, 46, 46, 0.04);
    }

    .main-nav.open a {
        font-size: 1rem;
        padding: 6px 0;
    }

    .nav-cta {
        text-align: center;
        padding: 12px 24px !important;
    }

    .cta-banner {
        padding: 48px 24px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cards-grid,
    .content-wall,
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .cta-banner {
        padding: 40px 20px;
        border-radius: 14px;
    }

    .cta-banner h2 {
        font-size: 1.3rem;
    }
}

/* --- 黑暗模式降级 --- */
@media (prefers-color-scheme: dark) {
    /* 保持品牌浅色调，仅做微调 */
    body {
        background: #f8f4ee;
        color: #2e2e2e;
    }

    .section:nth-child(even) {
        background: #f0ebe4;
    }

    .site-header {
        background: rgba(248, 244, 238, 0.95);
    }

    .category-card,
    .content-wall-item,
    .faq-item,
    .stat-item {
        background: #fff;
    }
}