/* ========================================
   青禾里纪 - 东方大健康善物纪 官网样式
   主题色：竹青玉色 + 暖金（东方养生美学）
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 竹青玉色系 */
    --jade-900: #1f4d3a;
    --jade-800: #275c46;
    --jade-700: #2f6b52;
    --jade-600: #3a7d5c;
    --jade-500: #4a9070;
    --jade-400: #63a885;
    --jade-300: #8cc3a5;
    --jade-200: #b5dac8;
    --jade-100: #d8ecdf;
    --jade-50:  #eef7f1;

    /* 暖金色系（福粮 / 里金） */
    --gold-700: #9a7226;
    --gold-600: #b8892f;
    --gold-500: #c89b3c;
    --gold-400: #d4a44a;
    --gold-300: #e0bd72;
    --gold-100: #f6ecd8;

    /* 纸色与墨色 */
    --paper:  #faf7ef;
    --paper-2: #f5f0e4;
    --cream:  #fbf8f1;
    --ink:    #26221a;
    --ink-2:  #5a5346;
    --ink-3:  #8a8274;
    --white:  #ffffff;

    --shadow-sm: 0 1px 3px rgba(38,34,26,0.06);
    --shadow:    0 6px 24px rgba(38,34,26,0.08);
    --shadow-lg: 0 16px 48px rgba(38,34,26,0.12);
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Georgia", serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 247, 239, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 34px;
}

.nav-links a {
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--jade-700); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 26px;
    background: var(--jade-600);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--jade-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(58,125,92,0.35);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 170px 0 100px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(58,125,92,0.14), transparent 60%),
        radial-gradient(900px 500px at 10% 0%, rgba(200,155,60,0.12), transparent 55%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    overflow: hidden;
    text-align: center;
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(58,125,92,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.hero-seal {
    width: 66px;
    height: 66px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, #c0392b, #a93226);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(169,50,38,0.28);
    transform: rotate(-6deg);
    animation: sealFloat 5s ease-in-out infinite;
}

.hero-seal span {
    color: #fdf6ec;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 2px;
    text-align: center;
}

@keyframes sealFloat {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-8px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    background: rgba(58,125,92,0.08);
    border: 1px solid rgba(58,125,92,0.22);
    border-radius: 50px;
    font-size: 0.88rem;
    color: var(--jade-700);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: 6px;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-600);
    letter-spacing: 8px;
    margin-bottom: 26px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--ink-2);
    line-height: 2;
    margin: 0 auto 40px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 56px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--jade-600);
    color: #fff;
}

.btn-primary:hover {
    background: var(--jade-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(58,125,92,0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184,137,47,0.4);
    filter: brightness(1.05);
}

.btn-white {
    background: #fff;
    color: var(--jade-700);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.btn-block { width: 100%; }

/* ---- Hero stats ---- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jade-700);
    letter-spacing: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: 4px;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(38,34,26,0.12);
}

.hero-scroll {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--ink-3);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 4px;
}

.scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, var(--jade-400), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Section header ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(58,125,92,0.08);
    color: var(--jade-700);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.text-jade { color: var(--jade-600); }
.text-gold { color: var(--gold-600); }

.section-desc {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 2;
    max-width: 660px;
    margin: 0 auto;
}

/* ---- About ---- */
.about {
    padding: 100px 0;
    background: var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 28px;
    text-align: center;
    transition: all 0.35s;
    border: 1px solid rgba(38,34,26,0.04);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--jade-500), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-card:hover::before { transform: scaleX(1); }

.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--jade-50);
    color: var(--jade-600);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s;
}

.about-icon svg { width: 30px; height: 30px; }

.about-card:hover .about-icon {
    background: var(--jade-600);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

.about-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--ink-3);
    line-height: 1.8;
}

/* ---- Features ---- */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    background: var(--white);
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(38,34,26,0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
}

.feature-item::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(200,155,60,0.08), transparent 70%);
    border-radius: 50%;
    transition: transform 0.4s;
}

.feature-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-item:hover::after { transform: scale(1.6); }

.feature-num {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--gold-300);
    line-height: 1;
    margin-bottom: 18px;
}

.feature-item h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: var(--jade-800);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--ink-3);
    line-height: 1.8;
}

/* ---- Showcase (App screens) ---- */
.showcase {
    padding: 100px 0;
    background: var(--paper);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.phone-card {
    text-align: center;
}

.phone-frame {
    position: relative;
    background: #fff;
    border-radius: 34px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(38,34,26,0.06);
    margin-bottom: 26px;
    transition: transform 0.4s;
}

.phone-card:hover .phone-frame {
    transform: translateY(-10px);
}

.phone-screen {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top;
    border-radius: 22px;
    background: var(--jade-50);
}

.phone-caption .phone-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gold-100);
    color: var(--gold-700);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.phone-caption h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.phone-caption p {
    font-size: 0.9rem;
    color: var(--ink-3);
    line-height: 1.7;
}

/* ---- Roles ---- */
.roles {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.role-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.role-customer { border-top: 4px solid var(--jade-500); }
.role-partner { border-top: 4px solid var(--gold-500); }

.role-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.role-emoji {
    font-size: 2.4rem;
    line-height: 1;
}

.role-head h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.role-sub {
    font-size: 0.9rem;
    color: var(--ink-3);
    letter-spacing: 1px;
    margin-top: 2px;
}

.role-list {
    margin-bottom: 30px;
}

.role-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    font-size: 0.98rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.role-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--jade-500);
    font-weight: 700;
}

.role-partner .role-list li::before { color: var(--gold-500); }

/* ---- CTA ---- */
.cta-section {
    padding: 60px 0 100px;
    background: var(--paper);
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--jade-800), var(--jade-600));
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    border-radius: 50%;
}

.cta-seal {
    position: absolute;
    top: 30px;
    left: 36px;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.16);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transform: rotate(-8deg);
}

.cta-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 14px;
    position: relative;
}

.cta-card p {
    font-size: 1.05rem;
    opacity: 0.92;
    letter-spacing: 2px;
    margin-bottom: 36px;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    position: relative;
}

/* ---- Footer ---- */
.footer {
    background: #201d16;
    color: #a8a090;
    padding: 68px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #8a8274;
    max-width: 380px;
}

.footer-slogan {
    margin-top: 16px;
    color: var(--gold-300) !important;
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #8a8274;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-400); }

.footer-bottom {
    border-top: 1px solid #3a352b;
    padding-top: 26px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b6353;
    letter-spacing: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid,
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .phone-screen { height: 380px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }

    .hero { padding: 130px 0 70px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-divider { width: 60px; height: 1px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .about-grid,
    .features-grid,
    .showcase-grid,
    .roles-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }

    .phone-screen { height: 480px; }

    .cta-card { padding: 56px 28px; }
    .cta-seal { top: 20px; left: 20px; }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: 3px; }
    .hero-subtitle { letter-spacing: 4px; }
    .section-title { letter-spacing: 1px; }
}
