/* ============================================================
   汤包官网 · A 风格「沉浸墨韵」（暗色）
   主体：成都懂的都懂科技有限公司 · mfdiary.space
   字体（原型用 Google Fonts，正式版换国内 CDN/本地）
   ============================================================ */

:root {
    --bg: #1a1410;          /* 墨黑 主背景 */
    --bg-deep: #120e0b;     /* 更深 footer */
    --bg-card: #241c16;     /* 卡片底 */
    --gold: #c9a96e;        /* 暗金 主强调 */
    --gold-dim: #6b5a3f;    /* 暗金 细线 */
    --gold-soft: rgba(201, 169, 110, 0.15);
    --green: #2d4a3e;       /* 墨绿 辅强调 */
    --text: #e8dcc8;        /* 米白 正文 */
    --text-dim: #a89888;    /* 暖灰 次要 */
    --text-faint: #6b5e4f;  /* 更淡 */

    --serif-cn: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    --serif-en: 'EB Garamond', Georgia, serif;
    --display: 'Cinzel', 'Noto Serif SC', serif;
    --hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif-cn);
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ============================================================
   占位图（替换为真图后可删除 .placeholder 相关样式）
   ============================================================ */
.placeholder {
    position: relative;
    background:
        linear-gradient(135deg, rgba(201,169,110,0.06), rgba(45,74,62,0.04)),
        var(--bg-card);
    border: 1px dashed var(--gold-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
}
.ph-label {
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0.15em;
    color: var(--gold-dim);
    text-transform: uppercase;
}
.ph-hint {
    font-size: 12px;
    margin-top: 8px;
    color: var(--text-faint);
}

/* ============================================================
   导航
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    padding: 14px 0;
    background: rgba(18, 14, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-dim);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
}
.logo-icon { width: 26px; height: 26px; }
.logo-text {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.nav-links {
    display: flex;
    gap: 40px;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 15px;
    letter-spacing: 0.08em;
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-family: var(--serif-cn);
    font-size: 15px;
    letter-spacing: 0.1em;
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.35s ease;
    background: transparent;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg);
    font-weight: 500;
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(201,169,110,0.5);
    transform: translateY(-2px);
}
.btn-ghost:hover {
    background: var(--gold-soft);
    color: var(--gold);
}
.btn-nav {
    padding: 9px 22px;
    font-size: 14px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-ph .ph-label { font-size: 16px; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(18,14,11,0.5) 50%, var(--bg) 100%),
        linear-gradient(to bottom, rgba(18,14,11,0.4) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
}
.hero-eyebrow {
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.85;
}
.hero-title {
    font-family: var(--serif-cn);
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.15;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 28px;
    text-shadow: 0 0 60px rgba(201,169,110,0.25);
}
.hero-tagline {
    font-family: var(--serif-cn);
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text);
    letter-spacing: 0.15em;
    margin-bottom: 48px;
    opacity: 0.9;
}
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.2em;
    animation: fadeUp 2.5s ease-in-out infinite;
}
@keyframes fadeUp {
    0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
    50% { opacity: 0.9; transform: translate(-50%, -6px); }
}

/* ============================================================
   通用 Section
   ============================================================ */
.section { padding: 130px 0; }
.section-title {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 72px;
    font-family: var(--serif-en);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ============================================================
   核心体验 三栏
   ============================================================ */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.exp-item {
    text-align: center;
    padding: 20px 36px;
    position: relative;
}
.exp-item + .exp-item::before {
    content: '';
    position: absolute;
    left: 0; top: 15%;
    width: 1px; height: 70%;
    background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
}
.exp-num {
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}
.exp-item h3 {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}
.exp-item p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.9;
}

/* ============================================================
   双产品卡
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    overflow: hidden;
    transition: all 0.4s ease;
    display: block;
}
.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(201,169,110,0.18), 0 0 0 1px var(--gold-soft);
}
.product-ph {
    height: 280px;
}
.product-body { padding: 40px; }
.product-eyebrow {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--gold-dim);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.product-title {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}
.product-desc {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 28px;
}
.product-link {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    padding-bottom: 3px;
}
.product-card:hover .product-link { border-bottom-color: var(--gold); }

/* ============================================================
   品牌箴言
   ============================================================ */
.creed {
    padding: 120px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.creed-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.creed-text {
    font-family: var(--hand);
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--gold);
    line-height: 1.4;
    max-width: 700px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--gold-dim);
    padding-top: 72px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-tagline {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-style: italic;
    font-family: var(--serif-en);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(107, 90, 63, 0.3);
    padding: 24px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    color: var(--text-faint);
    font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   滚动渐显
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-links { display: none; }
    .exp-grid { grid-template-columns: 1fr; gap: 48px; }
    .exp-item + .exp-item::before { display: none; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .product-body { padding: 28px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ============================================================
   内页通用（硬件/APP/关于/法律 共用）
   ============================================================ */
.page-hero {
    position: relative;
    padding: 170px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--gold-dim);
    overflow: hidden;
}
.page-hero .ph-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-family: var(--serif-cn);
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 22px;
    line-height: 1.2;
}
.page-hero-sub {
    color: var(--text-dim);
    font-size: 1.12rem;
    font-family: var(--serif-en);
    font-style: italic;
    letter-spacing: 0.04em;
    max-width: 620px;
    margin: 0 auto;
}

/* 内页 section 标题 */
.section-h2 {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.section-h2.center { text-align: center; }
.section-h2-sub {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--serif-en);
    font-style: italic;
    margin-bottom: 64px;
}

/* 两栏图文 */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.two-col.reverse .two-col-media { order: 2; }
.two-col-media { height: 380px; }
.two-col-text p {
    color: var(--text-dim);
    font-size: 1.02rem;
    line-height: 2;
    margin-bottom: 18px;
}
.two-col-text p.lead {
    color: var(--text);
    font-size: 1.12rem;
}

/* 硬件 配置网格 */
.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.config-item {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    padding: 34px 28px;
    transition: all 0.3s ease;
}
.config-item:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(201,169,110,0.12);
    transform: translateY(-4px);
}
.config-icon {
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.config-item h4 {
    font-family: var(--serif-cn);
    font-weight: 700;
    color: var(--text);
    font-size: 1.12rem;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}
.config-item p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* 场景网格 */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.scene-item .placeholder { height: 200px; margin-bottom: 14px; }
.scene-item p {
    text-align: center;
    color: var(--text);
    font-size: 0.96rem;
    letter-spacing: 0.05em;
}

/* CTA banner */
.cta-banner {
    text-align: center;
    padding: 84px 32px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg));
    border: 1px solid var(--gold-dim);
}
.cta-banner h2 {
    font-family: var(--serif-cn);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}
.cta-banner p {
    color: var(--text-dim);
    margin-bottom: 34px;
    font-size: 1.02rem;
}

/* APP 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.feature-item {
    padding: 36px 30px;
    border-left: 1px solid var(--gold-dim);
}
.feature-item:nth-child(3n+1) { border-left: none; }
.feature-item:nth-child(n+4) { border-top: 1px solid var(--gold-dim); }
.feature-num {
    font-family: var(--display);
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}
.feature-item h4 {
    font-family: var(--serif-cn);
    font-weight: 700;
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}
.feature-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.85;
}

/* 三步 */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.step {
    text-align: center;
    padding: 24px;
    position: relative;
}
.step + .step::before {
    content: '';
    position: absolute;
    left: 0; top: 22%;
    width: 1px; height: 56%;
    background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
}
.step-num {
    font-family: var(--display);
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 16px;
}
.step h4 {
    font-family: var(--serif-cn);
    font-weight: 700;
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.step p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.85;
}

/* 下载区 */
.download-box {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    padding: 52px 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 44px;
    align-items: center;
}
.download-info h3 {
    font-family: var(--serif-cn);
    font-weight: 700;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 14px;
}
.download-info p {
    color: var(--text-dim);
    margin-bottom: 26px;
    font-size: 1rem;
}
.download-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.qr-placeholder { width: 150px; height: 150px; }

/* 截图行 */
.screenshot-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.screenshot-row .placeholder { height: 420px; }

/* 关于 */
.about-story { max-width: 760px; margin: 0 auto; }
.about-story p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 2.1;
    margin-bottom: 22px;
}
.company-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    padding: 30px 28px;
}
.info-card .label {
    font-family: var(--display);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    color: var(--gold-dim);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.info-card .value {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 法律页 长文 */
.legal-article {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-dim);
}
.legal-meta {
    color: var(--text-faint);
    font-size: 0.92rem;
    font-family: var(--serif-en);
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(107,90,63,0.3);
}
.legal-article h2 {
    font-family: var(--serif-cn);
    font-weight: 700;
    color: var(--gold);
    font-size: 1.35rem;
    margin: 44px 0 18px;
    letter-spacing: 0.05em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-dim);
}
.legal-article h2:first-of-type { margin-top: 0; }
.legal-article h3 {
    font-family: var(--serif-cn);
    font-weight: 600;
    color: var(--text);
    font-size: 1.08rem;
    margin: 28px 0 12px;
}
.legal-article p {
    font-size: 0.98rem;
    line-height: 2;
    margin-bottom: 14px;
}
.legal-article ul {
    padding-left: 22px;
    margin-bottom: 18px;
}
.legal-article li {
    font-size: 0.98rem;
    line-height: 1.95;
    margin-bottom: 8px;
}

/* 内页响应式 */
@media (max-width: 768px) {
    .page-hero { padding: 130px 0 70px; }
    .two-col, .config-grid, .feature-grid, .steps, .screenshot-row, .company-info {
        grid-template-columns: 1fr;
    }
    .two-col.reverse .two-col-media { order: 0; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-item { border-left: none; border-top: 1px solid var(--gold-dim); }
    .feature-item:first-child { border-top: none; }
    .step + .step::before { display: none; }
    .download-box { grid-template-columns: 1fr; padding: 36px 26px; }
    .two-col-media { height: 260px; }
}
