:root {
    --bg: #F3EEEA;
    --bg-deep: #E7E1DC;
    --surface: #FFFBFA;
    --surface-alt: #EFE6E4;
    --title: #3D3336;
    --text: #4F4548;
    --muted: #8A7A7E;
    --quiet: #A39A96;
    --pink: #D9A0AE;
    --rose: #C47B8A;
    --mist-pink: #E8C9D0;
    --gray: #9B938E;
    --clay: #D4B8A8;
    --sage: #9BB0A5;
    --border: rgba(196, 123, 138, 0.22);
    --border-strong: rgba(196, 123, 138, 0.40);
    --shadow: 0 16px 36px rgba(61, 51, 54, 0.08);
    --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 16px; line-height: 1.72; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; }
.cloud-line { height: 22px; background: var(--rose); color: #fff; font-size: 12px; }
.cloud-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cloud-brand { color: #fff; white-space: nowrap; }
.cloud-search { appearance: none; border: 0; background: transparent; color: #fff; min-width: 52px; height: 22px; padding: 0 8px; cursor: pointer; }
.lintel { height: 64px; background: rgba(255, 251, 250, 0.98); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.lintel-inner { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.site-logo { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; max-width: 220px; }
.logo-image { width: auto; height: 34px; max-width: 190px; object-fit: contain; }
.logo-fallback { font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--title); }
.book-trigger, .app-link, .icon-button { min-height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--title); padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.book-trigger { justify-self: center; font-weight: 700; }
.app-link { justify-self: end; background: linear-gradient(135deg, #E8C9D0 0%, #D9A0AE 52%, #C47B8A 100%); color: #fff; border-color: transparent; font-weight: 700; }
.pink-note { height: 44px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.pink-note-inner { height: 44px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.pink-note a { min-height: 44px; padding: 7px 12px; border-radius: 8px; color: var(--text); display: inline-flex; align-items: center; white-space: nowrap; }
.pink-note a:hover, .pink-note a:focus-visible { background: var(--mist-pink); outline: none; }
.pink-note a.is-active { background: var(--rose); color: #fff; }
.site-main { padding-top: 154px; min-height: 60vh; }
.hero, .section-block { margin-bottom: 34px; }
.hero-card, .section-card, .soft-card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 20px; }
.hero-card { padding: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--rose); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
h1, h2, h3 { color: var(--title); line-height: 1.32; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 14px; }
h2 { font-size: 22px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin-top: 0; }
.lead { font-size: 17px; max-width: 860px; color: var(--text); }
.small-note { color: var(--muted); font-size: 14px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-primary, .btn-secondary { min-height: 44px; border-radius: 12px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, #E8C9D0 0%, #D9A0AE 52%, #C47B8A 100%); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--title); border: 1px solid var(--border-strong); }
.btn-primary:hover, .btn-primary:focus-visible, .app-link:hover, .app-link:focus-visible { filter: brightness(.96); outline: 3px solid rgba(196,123,138,.18); outline-offset: 2px; }
.btn-secondary:hover, .btn-secondary:focus-visible, .book-trigger:hover, .book-trigger:focus-visible, .icon-button:hover, .icon-button:focus-visible { background: var(--surface-alt); outline: 3px solid rgba(196,123,138,.14); outline-offset: 2px; }
.media-slot { width: 100%; min-height: 200px; max-height: 300px; margin: 0 0 18px; background: linear-gradient(135deg, var(--mist-pink), var(--bg-deep)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-slot img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.media-slot .media-fallback { width: 100%; min-height: inherit; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--title); font-weight: 800; letter-spacing: .04em; }
.column-media { min-height: 180px; max-height: 220px; }
.column-media img { max-height: 220px; object-fit: contain; }
.three-grid, .four-grid, .two-grid, .six-grid { display: grid; gap: 18px; }
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.six-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-card, .status-card, .topic-card, .step-card, .quote-card, .faq-card, .policy-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.note-card:nth-child(4n+2), .topic-card:nth-child(4n+2) { background: #F8F1F0; }
.note-card:nth-child(4n+3), .topic-card:nth-child(4n+3) { background: #F0F1ED; }
.note-card:nth-child(4n+4), .topic-card:nth-child(4n+4) { background: #F5EDE8; }
.note-number, .large-number { display: block; color: var(--rose); font-weight: 900; letter-spacing: .04em; }
.note-number { font-size: 13px; margin-bottom: 9px; }
.large-number { font-size: 44px; line-height: 1; margin-bottom: 12px; opacity: .85; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--rose); font-weight: 800; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head p { margin: 0; max-width: 680px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.vertical-list { display: grid; gap: 12px; }
.vertical-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.vertical-item:last-child { border-bottom: 0; }
.inline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.inline-tags span, .inline-tags a { padding: 6px 10px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 9px; color: var(--text); font-size: 14px; }
.index-list { counter-reset: item; display: grid; gap: 14px; }
.index-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.index-row:last-child { border-bottom: 0; }
.index-row .idx { color: var(--rose); font-size: 26px; font-weight: 900; }
.index-row .go { color: var(--rose); font-weight: 800; }
.editorial { border-left: 4px solid var(--sage); padding-left: 16px; }
.editorial strong { color: var(--title); }
.app-service { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.app-visual { min-height: 260px; max-height: 420px; }
.app-visual img { max-height: 420px; width: 100%; object-fit: contain; }
.app-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-row img { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; }
.page-intro { margin-bottom: 22px; }
.page-intro .hero-card { padding: 26px; }
.content-stack { display: grid; gap: 22px; margin-bottom: 38px; }
.content-section { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.content-section p:last-child { margin-bottom: 0; }
.content-section ul { padding-left: 1.2em; margin-bottom: 0; }
.content-section li + li { margin-top: 7px; }
.callout { background: #EEF1ED; border: 1px solid rgba(155,176,165,.42); border-radius: 14px; padding: 16px; }
.clay-callout { background: #F4ECE7; border-color: rgba(212,184,168,.55); }
.faq-list { display: grid; gap: 14px; }
.faq-card h2 { font-size: 18px; }
.policy-list { display: grid; gap: 16px; }
.policy-card { border-left: 4px solid var(--rose); }
.site-footer { background: var(--title); color: var(--bg); padding: 42px 0 30px; margin-top: 46px; }
.site-footer h2 { color: #fff; font-size: 16px; margin-bottom: 11px; }
.footer-brand-row { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(243,238,234,.12); }
.footer-brand-row p { max-width: 570px; color: #E2D9D5; margin: 0; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-logo { width: auto; height: 34px; max-width: 165px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-brand span { display: block; color: #DCCFD0; font-size: 12px; letter-spacing: .12em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 28px 0; }
.footer-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-grid a { color: #E8DEDA; min-height: 44px; display: inline-flex; align-items: center; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.footer-note { border-top: 1px solid rgba(243,238,234,.12); padding-top: 20px; color: #D9CFCA; font-size: 13px; }
.footer-note p:last-child { margin-bottom: 0; }
.page-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(61,51,54,.34); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.neighbor-book { position: fixed; z-index: 1600; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(92vw, 940px); max-height: 72vh; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: 0 28px 80px rgba(61,51,54,.22); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.neighbor-book.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%); }
.book-head { position: sticky; top: 0; z-index: 2; background: rgba(255,251,250,.98); border-bottom: 1px solid var(--border); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.book-brand { display: flex; align-items: center; gap: 10px; }
.book-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.book-brand strong, .book-brand span { display: block; }
.book-brand span { font-size: 13px; color: var(--muted); }
.book-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.book-spread section { background: var(--surface); padding: 22px; }
.book-spread a { display: grid; grid-template-columns: 108px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.book-spread a:last-child { border-bottom: 0; }
.book-spread a:hover strong, .book-spread a:focus-visible strong { color: var(--rose); }
.book-spread a:focus-visible { outline: 2px solid var(--border-strong); outline-offset: 3px; }
.book-spread span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.search-layer { position: fixed; z-index: 1600; top: 96px; left: 50%; transform: translateX(-50%) translateY(-10px); width: min(92vw, 760px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.search-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 22px 70px rgba(61,51,54,.18); padding: 18px; }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.search-head strong, .search-head span { display: block; }
.search-head span { color: var(--muted); font-size: 14px; }
.search-look { margin: 16px 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); display: flex; align-items: center; gap: 10px; color: var(--muted); }
.search-presets { display: flex; flex-wrap: wrap; gap: 9px; }
.search-presets a { min-height: 44px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 11px; display: inline-flex; align-items: center; color: var(--title); background: var(--surface-alt); }
.search-presets a:hover, .search-presets a:focus-visible { border-color: var(--border-strong); outline: 2px solid rgba(196,123,138,.13); }
.mobile-bottom-nav { display: none; }
@media (max-width: 900px) {
    .three-grid, .six-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .app-service { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
    .site-main { padding-top: 106px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .pink-note { display: none; }
    .lintel-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .site-logo { min-width: 0; max-width: 150px; overflow: hidden; }
    .logo-image { max-width: 126px; height: 31px; }
    .logo-fallback { font-size: 18px; white-space: nowrap; }
    .book-trigger, .app-link { min-height: 44px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; font-size: 14px; }
    .hero-card, .content-section { padding: 18px; }
    .media-slot { min-height: 170px; }
    .three-grid, .four-grid, .two-grid, .six-grid { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .index-row { grid-template-columns: 48px 1fr; }
    .index-row .go { grid-column: 2; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .neighbor-book { width: 92vw; max-height: 80vh; }
    .book-spread { grid-template-columns: 1fr; }
    .book-spread a { grid-template-columns: 92px 1fr; }
    .search-layer { top: 94px; width: calc(100% - 32px); }
    .mobile-bottom-nav { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); background: rgba(255,251,250,.98); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .mobile-bottom-nav a { min-width: 0; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 13px; }
    .mobile-bottom-nav a.is-active { background: var(--rose); color: #fff; }
}
@media (max-width: 390px) {
    .shell { width: min(calc(100% - 32px), var(--max)); }
    .cloud-brand { font-size: 11px; }
    .book-trigger, .app-link { padding-inline: 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
