:root {
    --bg: #F3EEEA;
    --bg-deep: #E7E1DC;
    --surface: #FFFBFA;
    --surface-soft: #EFE6E4;
    --title: #3D3336;
    --text: #4F4548;
    --muted: #8A7A7E;
    --subtle: #A39A96;
    --pink: #D9A0AE;
    --rose: #C47B8A;
    --mist-pink: #E8C9D0;
    --gray: #9B938E;
    --clay: #D4B8A8;
    --sage: #9BB0A5;
    --line: rgba(196, 123, 138, 0.22);
    --line-strong: rgba(196, 123, 138, 0.40);
    --shadow: 0 16px 36px rgba(61, 51, 54, 0.08);
    --radius: 18px;
    --header-space: 130px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.page-width, .header-width { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-main { min-height: 60vh; padding-top: calc(var(--header-space) + 28px); }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.cloud-line { height: 22px; background: var(--rose); color: #fff; }
.cloud-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.cloud-brand, .cloud-search { color: #fff; }
.text-button, .book-button, .close-button { border: 0; background: transparent; }
.cloud-search { min-width: 44px; height: 22px; padding: 0 4px; }
.lintel { height: 64px; background: rgba(255, 251, 250, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.lintel-inner { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-mark { display: inline-flex; align-items: center; min-width: 0; justify-self: start; }
.brand-logo { width: auto; height: 34px; max-width: 190px; object-fit: contain; object-position: left center; }
.brand-text { font-weight: 800; letter-spacing: .08em; color: var(--title); font-size: 20px; }
.book-button, .app-link { min-height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; }
.book-button { color: var(--title); border: 1px solid var(--line-strong); background: var(--surface); }
.app-link { justify-self: end; color: #fff; background: linear-gradient(135deg, #E8C9D0 0%, #D9A0AE 52%, #C47B8A 100%); font-weight: 700; }
.pink-note { height: 44px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.pink-note-inner { height: 44px; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.pink-note a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.pink-note a:hover, .pink-note a:focus-visible { background: var(--mist-pink); }
.pink-note a.is-active { color: #fff; background: var(--rose); }
:focus-visible { outline: 3px solid rgba(196, 123, 138, .33); outline-offset: 3px; }

.hero, .page-hero, .content-section, .split-section, .closing-section { margin-bottom: 32px; }
.hero-card, .page-hero-card, .content-card, .note-card, .faq-item, .step-card, .status-card, .index-card, .topic-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card { padding: 18px; }
.media-slot { width: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--surface-soft), var(--mist-pink)); border: 1px solid var(--line); }
.media-slot.hero-media { min-height: 220px; max-height: 300px; aspect-ratio: 16 / 7.5; }
.media-slot.column-media { min-height: 180px; height: 210px; }
.media-slot.page-media { min-height: 210px; max-height: 300px; aspect-ratio: 16 / 8; }
.media-slot.app-media { min-height: 300px; max-height: 420px; }
.media-slot img { width: 100%; height: 100%; max-height: inherit; object-fit: contain; object-position: center; }
.hero-copy, .page-hero-copy { padding: 26px 6px 6px; }
.eyebrow { display: inline-block; color: var(--rose); font-weight: 800; letter-spacing: .12em; font-size: 13px; margin-bottom: 10px; }
h1, h2, h3 { color: var(--title); line-height: 1.3; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 16px; }
h2 { font-size: clamp(21px, 3vw, 25px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin-top: 0; }
.lead { font-size: 17px; color: var(--text); max-width: 860px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.primary-button, .secondary-button, .text-link {
    min-height: 44px; border-radius: 12px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.primary-button { color: #fff; background: linear-gradient(135deg, #E8C9D0 0%, #D9A0AE 52%, #C47B8A 100%); }
.secondary-button { background: var(--surface); border: 1px solid var(--line-strong); color: var(--title); }
.text-link { padding-inline: 0; color: var(--rose); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.section-head p { margin: 0; color: var(--muted); max-width: 660px; }
.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.index-card, .topic-card, .content-card, .note-card, .step-card, .status-card { padding: 20px; }
.index-card.with-media { padding: 10px; }
.index-card.with-media .card-copy { padding: 16px 10px 10px; }
.index-card p, .topic-card p, .content-card p, .note-card p, .step-card p, .status-card p { color: var(--text); margin-bottom: 0; }
.card-kicker { color: var(--rose); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.big-number { font-size: 42px; line-height: 1; color: var(--mist-pink); font-weight: 900; letter-spacing: -.04em; margin-bottom: 14px; }
.topic-card:nth-child(3n+1) { border-top: 4px solid var(--mist-pink); }
.topic-card:nth-child(3n+2) { border-top: 4px solid var(--clay); }
.topic-card:nth-child(3n+3) { border-top: 4px solid var(--sage); }

.page-hero-card { padding: 16px; }
.page-hero-copy .crumbs { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.page-hero-copy .crumbs a { color: var(--rose); }
.article-stack { display: grid; gap: 18px; }
.article-block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.article-block h2 { display: flex; gap: 10px; align-items: baseline; }
.article-block h2 span { color: var(--rose); font-size: 13px; letter-spacing: .08em; }
.article-block p:last-child { margin-bottom: 0; }
.soft-note { background: var(--surface-soft); border-left: 4px solid var(--pink); padding: 16px 18px; border-radius: 0 14px 14px 0; color: var(--text); }
.editor-note { background: #F7F0F1; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.editor-note::before { content: "编辑观点"; display: inline-block; background: var(--rose); color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.link-list { display: grid; gap: 10px; }
.link-list a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.link-list a::after { content: "›"; color: var(--rose); font-size: 22px; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px; }
.faq-item h2 { font-size: 18px; }
.faq-item p { margin-bottom: 0; }

.site-footer { margin-top: 56px; background: var(--title); color: var(--bg); padding: 44px 0 26px; }
.footer-brand-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(243,238,234,.16); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo { width: auto; height: 32px; max-width: 160px; object-fit: contain; }
.footer-brand span { display: grid; }
.footer-brand small { color: #D9CFCA; letter-spacing: .11em; }
.footer-brand-row p { color: #D9CFCA; margin: 0; max-width: 520px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 30px 0; }
.footer-grid h2 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-grid a { display: block; color: #E7DDD8; padding: 5px 0; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: #fff; }
.footer-note { border-top: 1px solid rgba(243,238,234,.16); padding-top: 20px; color: #D9CFCA; font-size: 14px; }
.footer-note p:last-child { margin-bottom: 0; }

.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(61,51,54,.48); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.neighbor-book, .search-layer { position: fixed; z-index: 90; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .18s ease, transform .18s ease; }
.neighbor-book { width: min(940px, 92vw); max-height: 72vh; left: 50%; top: 50%; transform: translate(-50%, -48%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(61,51,54,.22); overflow: auto; }
.neighbor-book.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translate(-50%, -50%); }
.book-head, .search-layer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,251,250,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 14px 18px; }
.book-brand { display: flex; align-items: center; gap: 10px; }
.book-logo { width: auto; height: 30px; max-width: 150px; object-fit: contain; }
.book-brand span { display: grid; line-height: 1.25; }
.book-brand small { color: var(--muted); }
.close-button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--title); background: var(--surface); }
.book-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.book-group { padding: 22px; border-bottom: 1px solid var(--line); }
.book-group:nth-child(odd) { border-right: 1px solid var(--line); }
.book-group h2 { font-size: 17px; color: var(--rose); }
.book-group a { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px dashed rgba(196,123,138,.18); }
.book-group a:last-child { border-bottom: 0; }
.book-group span { color: var(--muted); font-size: 13px; }
.search-layer { width: min(760px, calc(100vw - 32px)); top: 102px; left: 50%; transform: translate(-50%, -8px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 26px 70px rgba(61,51,54,.22); }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translate(-50%, 0); }
.search-layer-head { position: static; }
.search-layer-head small { color: var(--rose); }
.search-layer-head h2 { margin: 2px 0 0; font-size: 20px; }
.search-appearance { padding: 18px; border-bottom: 1px solid var(--line); }
.search-appearance label { display: block; color: var(--muted); margin-bottom: 7px; }
.search-appearance input { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--title); padding: 0 14px; }
.search-appearance p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.search-presets { padding: 16px 18px 20px; display: flex; flex-wrap: wrap; gap: 9px; }
.search-presets a { min-height: 42px; border-radius: 10px; padding: 0 14px; display: inline-flex; align-items: center; background: var(--surface-soft); border: 1px solid var(--line); }
.mobile-bottom-nav { display: none; }

.mini-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.mini-badges span { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 9px; padding: 5px 9px; color: var(--muted); font-size: 13px; }
.feature-list { margin: 0; padding-left: 1.25em; }
.feature-list li + li { margin-top: 8px; }
.callout { padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--surface-soft), #F7EEEE); border: 1px solid var(--line); }
.callout p:last-child { margin-bottom: 0; }
.divider-title { margin: 44px 0 18px; display: flex; align-items: center; gap: 14px; }
.divider-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }

@media (max-width: 900px) {
    .grid-3, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    :root { --header-space: 86px; }
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .page-width, .header-width { width: calc(100% - 32px); }
    .pink-note { display: none; }
    .site-main { padding-top: calc(var(--header-space) + 22px); }
    .lintel-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .brand-logo { height: 30px; max-width: 132px; }
    .brand-text { font-size: 17px; white-space: nowrap; }
    .book-button, .app-link { min-width: 58px; padding-inline: 10px; font-size: 14px; }
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .hero-card, .page-hero-card { padding: 10px; }
    .hero-copy, .page-hero-copy { padding: 20px 6px 8px; }
    .media-slot.hero-media { min-height: 160px; aspect-ratio: 16 / 9; }
    .media-slot.column-media { height: 190px; }
    .article-block { padding: 20px 18px; }
    .section-head { display: block; }
    .footer-brand-row { display: block; }
    .footer-brand-row p { margin-top: 16px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .neighbor-book { width: 92vw; max-height: 80vh; }
    .book-pages { grid-template-columns: 1fr; }
    .book-group:nth-child(odd) { border-right: 0; }
    .search-layer { top: 94px; width: calc(100vw - 20px); }
    .mobile-bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); left: 0; right: 0; bottom: 0; z-index: 65; height: calc(50px + env(safe-area-inset-bottom)); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); gap: 4px; background: rgba(255,251,250,.97); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
    .mobile-bottom-nav a { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 13px; color: var(--text); }
    .mobile-bottom-nav a.is-active { background: var(--rose); color: #fff; }
    .neighbor-book.is-open, .search-layer.is-open, .overlay.is-open { z-index: 90; }
    .overlay.is-open { z-index: 80; }
}
@media (max-width: 430px) {
    .cloud-line-inner { font-size: 11px; }
    .brand-mark { max-width: 120px; overflow: hidden; }
    .book-button, .app-link { min-width: 52px; padding-inline: 8px; font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .button-row { display: grid; grid-template-columns: 1fr; }
}

.mini-badges img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; }
.hero-fallback { text-align: center; padding: 30px; }
.hero-fallback h2 { margin-bottom: 0; }
