:root {
    --bg: #F4FBF4;
    --bg-deep: #E4F3E6;
    --surface: #FFFFFF;
    --surface-alt: #D8EDDC;
    --title: #14321C;
    --text: #2A4632;
    --muted: #5E7A64;
    --soft: #88A090;
    --green: #1F8A4C;
    --mint: #3CB371;
    --deep: #0F3D24;
    --gold: #C9A227;
    --border: rgba(31, 138, 76, 0.22);
    --gold-border: rgba(201, 162, 39, 0.36);
    --shadow: 0 16px 36px rgba(20, 50, 28, 0.10);
    --shell: 1200px;
    --header-h: 113px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
}
body.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(201,162,39,.72); outline-offset: 3px; }
.site-shell { width: min(var(--shell), calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 90; box-shadow: 0 8px 24px rgba(15,61,36,.08); }
.vinebar { height: 11px; background: var(--green); color: #F4FBF4; }
.vinebar__inner { height: 11px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 9px; line-height: 1; letter-spacing: .05em; }
.vinebar__brand { white-space: nowrap; }
.text-button { border: 0; background: transparent; color: #F4FBF4; padding: 0 2px; cursor: pointer; font-weight: 700; font-size: 9px; line-height: 1; }
.guatai { height: 62px; background: #FFFDF4; border-bottom: 1px solid var(--border); }
.guatai__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; min-width: 110px; min-height: 44px; }
.brand-logo { width: auto; max-width: 168px; height: 28px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--deep); font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: .02em; }
.guatai__actions { display: flex; align-items: center; gap: 10px; }
.nav-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; border: 1px solid var(--green); background: #FFFDF4; color: var(--deep); cursor: pointer; font-weight: 800; }
.nav-button--primary { border-color: transparent; background: linear-gradient(135deg,#3CB371 0%,#1F8A4C 56%,#0F3D24 100%); color: #F4FBF4; }
.nav-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,138,76,.14); }
.fresh-tabs { height: 40px; background: #DDF3E4; border-bottom: 1px solid var(--border); }
.fresh-tabs__inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; }
.fresh-tab { position: relative; height: 40px; display: inline-flex; align-items: center; color: var(--muted); font-weight: 750; }
.fresh-tab.is-current { color: var(--deep); }
.fresh-tab.is-current::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 26px; height: 3px; background: var(--green); border-radius: 3px; transform: translateX(-50%); }
.site-main { padding-top: calc(var(--header-h) + 28px); min-height: 60vh; }

.eyebrow { display: inline-block; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.page-section { padding: 34px 0; }
.page-section--tight { padding: 20px 0; }
.page-section--deep { background: var(--bg-deep); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head h2 { margin: 0; color: var(--title); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.28; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.hero-strip { margin-bottom: 20px; border: 1px solid rgba(60,179,113,.24); background: #DDF3E4; border-radius: 12px; }
.hero-strip a { min-height: 48px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--deep); font-weight: 800; }
.hero-strip a::after { content: "去看看 →"; color: var(--green); font-size: 14px; }

.home-duo, .card-grid-2, .card-grid-3, .card-grid-4, .content-grid, .policy-grid, .index-grid, .status-grid { display: grid; gap: 18px; }
.home-duo, .card-grid-2, .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4, .status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-card, .feature-card, .policy-card, .status-card, .rank-item, .faq-item, .contact-card, .index-card, .note-card, .topic-card, .app-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.content-card, .feature-card, .policy-card, .status-card, .contact-card, .index-card, .note-card, .topic-card, .app-card { padding: 20px; }
.content-card h2, .content-card h3, .feature-card h2, .feature-card h3, .policy-card h2, .policy-card h3, .status-card h3, .contact-card h2, .contact-card h3, .index-card h3, .note-card h3, .topic-card h3, .app-card h2, .app-card h3 { margin: 0 0 8px; color: var(--title); line-height: 1.35; }
.content-card p, .feature-card p, .policy-card p, .status-card p, .contact-card p, .index-card p, .note-card p, .topic-card p, .app-card p { margin: 0; color: var(--text); }
.card-link { margin-top: 14px; display: inline-flex; min-height: 44px; align-items: center; color: var(--green); font-weight: 850; }

.image-slot { width: 100%; min-height: 140px; max-height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px; border-radius: 12px; background: linear-gradient(135deg, #FFFDF4, #E6F6EB); border: 1px solid rgba(31,138,76,.12); }
.image-slot img { width: 100%; height: 100%; max-height: inherit; object-fit: contain; object-position: center; }
.image-slot--empty { background: radial-gradient(circle at 30% 30%, rgba(60,179,113,.16), transparent 36%), linear-gradient(135deg,#FFFDF4,#E4F3E6); }
.image-slot--empty::before { content: "51 GUAGUA"; color: rgba(15,61,36,.24); font-weight: 900; letter-spacing: .16em; }
.hero-image { max-height: 180px; min-height: 150px; }
.banner-slot { max-height: 240px; min-height: 210px; margin: 0 auto 18px; }
.banner-slot img { max-height: 240px; object-fit: contain; }
.app-visual { max-height: 420px; min-height: 280px; }
.app-visual img { max-height: 420px; }
.icon-visual { max-height: 72px; min-height: 48px; width: 72px; margin: 0 0 14px; }
.icon-visual img { width: 100%; max-height: 72px; }

.home-hero { padding: 12px 0 34px; }
.home-duo .feature-card { min-height: 100%; }
.home-banner { padding: 34px 0; background: linear-gradient(180deg, rgba(216,237,220,.58), rgba(244,251,244,.32)); }
.home-banner__body { text-align: center; max-width: 920px; margin: 0 auto; }
.home-banner__body h1 { margin: 6px 0 10px; color: var(--title); font-size: clamp(28px, 4vw, 34px); line-height: 1.25; }
.home-banner__body p { margin: 0 auto; max-width: 780px; }
.button-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.text-cta, .solid-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; font-weight: 850; }
.text-cta { background: #FFFDF4; border: 1px solid var(--green); color: var(--deep); }
.solid-cta { background: linear-gradient(135deg,#3CB371 0%,#1F8A4C 56%,#0F3D24 100%); color: #F4FBF4; border: 1px solid transparent; }
.wide-note { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.wide-note h2 { margin: 0 0 10px; color: var(--title); }
.wide-note p { margin: 0; }
.split-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 24px; align-items: center; }
.split-feature--reverse { grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr); }
.split-feature--reverse .split-feature__visual { order: 2; }
.split-feature__copy h2 { margin: 4px 0 10px; color: var(--title); font-size: clamp(24px, 3vw, 32px); }
.split-feature__copy p { margin: 0; }
.mini-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mini-list li { position: relative; padding-left: 18px; color: var(--text); }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.page-hero { padding: 20px 0 30px; }
.page-hero__box { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap: 24px; align-items: center; background: #FFFDF4; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.page-hero h1 { margin: 4px 0 10px; color: var(--title); font-size: clamp(28px, 4vw, 32px); line-height: 1.25; }
.page-hero p { margin: 0; }
.page-intro { max-width: 820px; }
.anchor-nav { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.anchor-nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--deep); font-weight: 800; }

.timeline, .scene-list, .clip-list, .process-list, .longform-stack { display: grid; gap: 16px; }
.timeline article, .scene-list article, .clip-list article, .process-list article, .longform-stack article { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 10px 28px rgba(20,50,28,.07); }
.timeline h2, .scene-list h2, .clip-list h2, .process-list h2, .longform-stack h2 { margin: 0 0 8px; color: var(--title); font-size: 22px; }
.timeline p, .scene-list p, .clip-list p, .process-list p, .longform-stack p { margin: 0; }
.timeline article { border-left: 5px solid var(--green); }
.clip-list article { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.clip-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-alt); color: var(--deep); font-weight: 900; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.topic-tags span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--gold-border); background: #FFFDF4; color: var(--deep); font-weight: 800; }
.rank-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: rank; }
.rank-item { counter-increment: rank; padding: 20px 20px 20px 76px; position: relative; }
.rank-item::before { content: counter(rank, decimal-leading-zero); position: absolute; left: 20px; top: 18px; color: var(--gold); font-size: 24px; font-weight: 900; }
.rank-item h2 { margin: 0 0 6px; color: var(--title); font-size: 21px; }
.rank-item p { margin: 0; }
.status-card { border-top: 4px solid var(--green); }
.status-card .status { display: inline-flex; margin-bottom: 8px; font-size: 13px; font-weight: 900; color: var(--green); }
.policy-card { box-shadow: none; }
.policy-card h2 { font-size: 21px; }
.article-aside { margin: 20px 0; padding: 18px 20px; border-left: 4px solid var(--gold); background: #FFFDF4; border-radius: 0 12px 12px 0; color: var(--deep); }
.article-aside strong { display: block; margin-bottom: 4px; }
.definition-list { display: grid; gap: 12px; margin: 0; }
.definition-list div { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.definition-list dt { margin-bottom: 4px; color: var(--title); font-weight: 900; }
.definition-list dd { margin: 0; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; }
.faq-item h2 { margin: 0 0 8px; color: var(--title); font-size: 20px; }
.faq-item p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.contact-card { box-shadow: none; }
.contact-card .route { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

.site-footer { margin-top: 42px; padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--deep); color: #E4F3E6; }
.footer-top { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.6fr); gap: 34px; }
.footer-brand { max-width: 360px; }
.footer-brand__mark { display: inline-flex; min-height: 44px; align-items: center; }
.footer-logo { width: auto; height: 28px; max-width: 170px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .96; }
.footer-logo-text { color: #F4FBF4; font-size: 24px; font-weight: 900; }
.footer-brand > strong { display: block; margin-top: 8px; color: #F4FBF4; font-size: 22px; }
.footer-brand > span { color: #8FE0AF; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.footer-brand p { color: #CDE4D3; margin: 12px 0 0; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.footer-links h2 { margin: 0 0 10px; color: #F4FBF4; font-size: 15px; }
.footer-links a { display: block; min-height: 34px; color: #CFE8D7; font-size: 14px; }
.footer-links a:hover { color: #8FE0AF; }
.footer-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(228,243,230,.16); display: flex; justify-content: space-between; gap: 24px; color: #B9D3C0; font-size: 13px; }
.footer-note p { margin: 0; max-width: 760px; }

.overlay { position: fixed; inset: 0; z-index: 110; background: rgba(15,61,36,.42); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.overlay.is-visible { opacity: 1; pointer-events: auto; }
.basket-panel, .search-panel { position: fixed; z-index: 120; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease, visibility .18s; background: #FFFDF4; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(15,61,36,.22); }
.basket-panel { top: 73px; left: max(16px, calc((100vw - min(1200px, calc(100vw - 32px))) / 2)); width: min(500px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; border-top: 2px solid var(--green); border-radius: 0 0 14px 14px; }
.search-panel { top: 73px; right: max(16px, calc((100vw - min(1200px, calc(100vw - 32px))) / 2)); width: min(460px, calc(100vw - 32px)); border-radius: 0 0 14px 14px; padding: 20px; }
.basket-panel.is-open, .search-panel.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.basket-head, .search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.basket-head { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.basket-brand { display: flex; align-items: center; gap: 10px; }
.basket-logo { max-width: 120px; height: 24px; object-fit: contain; object-position: left center; }
.icon-button { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--deep); cursor: pointer; font-weight: 800; }
.basket-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 8px 12px 16px; }
.basket-grid section { padding: 10px; }
.basket-grid h2 { margin: 0 0 8px; color: var(--green); font-size: 14px; }
.basket-grid a { display: block; min-height: 56px; padding: 8px 0; border-bottom: 1px solid rgba(31,138,76,.12); }
.basket-grid strong { display: block; color: var(--title); font-size: 15px; }
.basket-grid span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-head h2 { margin: 2px 0 0; color: var(--title); font-size: 22px; }
.search-faux { display: block; margin-top: 16px; }
.search-faux input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); padding: 0 14px; }
.search-shortcuts { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.search-shortcuts a { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: #FFFFFF; color: var(--deep); font-weight: 800; }
.mobile-bottom { display: none; }

@media (max-width: 900px) {
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .card-grid-4, .status-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .split-feature, .split-feature--reverse, .page-hero__box { grid-template-columns: 1fr; }
    .split-feature--reverse .split-feature__visual { order: 0; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { max-width: none; }
    .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-note { flex-direction: column; }
}

@media (max-width: 680px) {
    :root { --header-h: 73px; }
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .site-shell { width: calc(100% - 32px); }
    .fresh-tabs { display: none; }
    .brand-link { min-width: 96px; max-width: 42%; }
    .brand-logo { max-width: 132px; height: 26px; }
    .brand-fallback { font-size: 21px; }
    .guatai__actions { gap: 6px; }
    .nav-button { min-height: 44px; padding: 0 12px; font-size: 14px; }
    .site-main { padding-top: calc(var(--header-h) + 18px); }
    .home-duo, .card-grid-2, .card-grid-3, .content-grid, .contact-grid { grid-template-columns: 1fr; }
    .card-grid-4, .status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .section-head { align-items: start; flex-direction: column; gap: 6px; }
    .page-section { padding: 26px 0; }
    .home-hero { padding-top: 8px; }
    .page-hero { padding-top: 10px; }
    .page-hero__box { padding: 18px; }
    .content-card, .feature-card, .policy-card, .status-card, .contact-card, .index-card, .note-card, .topic-card, .app-card { padding: 17px; }
    .image-slot { min-height: 140px; max-height: 170px; }
    .banner-slot { min-height: 180px; max-height: 240px; }
    .app-visual { min-height: 260px; max-height: 420px; }
    .clip-list article { grid-template-columns: 44px 1fr; padding: 18px; }
    .clip-number { width: 44px; height: 44px; }
    .basket-panel { top: 73px; left: 16px; width: calc(100vw - 32px); height: min(60vh, 520px); max-height: 60vh; border-radius: 0 0 14px 14px; }
    .basket-grid { grid-template-columns: 1fr 1fr; }
    .basket-grid a { min-height: 60px; }
    .search-panel { top: 73px; right: 16px; width: calc(100vw - 32px); }
    .mobile-bottom { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: #FFFDF4; border-top: 1px solid var(--border); box-shadow: 0 -10px 28px rgba(15,61,36,.08); }
    .mobile-bottom a { min-width: 0; min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 800; }
    .mobile-bottom a.is-current { background: var(--green); color: #F4FBF4; }
    .site-footer { padding-bottom: calc(24px + 50px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
    .vinebar__brand { max-width: 66%; overflow: hidden; text-overflow: ellipsis; }
    .nav-button { padding: 0 10px; }
    .basket-grid { grid-template-columns: 1fr; }
    .basket-panel { height: 60vh; }
    .card-grid-4, .status-grid { grid-template-columns: 1fr; }
    .search-shortcuts { grid-template-columns: 1fr; }
}
.stack-gap { margin-top: 18px; }
