:root {
    --bg: #FFF7FA;
    --surface: #FFFFFF;
    --soft: #FFEAF2;
    --soft-2: #FFE1EC;
    --title: #4A1630;
    --text: #5C2A3E;
    --muted: #8A4A62;
    --assist: #B07A90;
    --brand: #E85A8B;
    --brand-bright: #FF7AA8;
    --brand-deep: #C43B6E;
    --line: rgba(232, 90, 139, 0.16);
    --shadow: 0 14px 34px rgba(196, 59, 110, 0.10);
    --rail: 88px;
    --top: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.78; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(232,90,139,.38); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: var(--title); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 10px; }
.topbar { position: fixed; top: 0; left: var(--rail); right: 0; z-index: 80; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(255,247,250,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-side { min-width: 0; display: flex; align-items: center; }
.topbar-left { justify-content: flex-start; }
.topbar-right { justify-content: flex-end; padding-right: 20px; }
.topbar-brand { min-width: 120px; height: 44px; padding: 4px 12px; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.topbar-logo { max-height: 36px; width: auto; object-fit: contain; }
.brand-wordmark { color: var(--title); font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.topbar-menu { display: none; min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--title); }
.app-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: #fff; font-weight: 700; background: linear-gradient(135deg,#FF7AA8 0%,#E85A8B 55%,#C43B6E 100%); }
.side-rail { position: fixed; inset: 0 auto 0 0; z-index: 90; width: var(--rail); background: var(--soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; }
.rail-home { width: 54px; height: 54px; border-radius: 18px; background: #fff; display: grid; place-items: center; margin-bottom: 2px; box-shadow: 0 8px 20px rgba(196,59,110,.08); }
.rail-icon { width: 38px; height: 38px; object-fit: contain; border-radius: 12px; }
.icon-fallback { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 800; background: linear-gradient(135deg,#FF7AA8,#C43B6E); }
.rail-link, .rail-button { width: 70px; min-height: 54px; padding: 7px 5px; border: 0; border-radius: 18px; display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); background: transparent; }
.rail-link:hover, .rail-button:hover { background: #fff; color: var(--title); }
.rail-link.is-current { background: var(--brand-deep); color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(196,59,110,.2); }
.site-main { margin-left: calc(var(--rail) + 24px); padding: calc(var(--top) + 34px) 24px 64px 0; min-height: 70vh; }
.page-shell, .home-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page-hero { padding: 34px 0 24px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-deep); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--title); margin-top: 0; line-height: 1.28; }
h1 { font-size: clamp(28px, 3.3vw, 34px); margin-bottom: 14px; letter-spacing: -.02em; }
h2 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin-top: 0; }
.lead { max-width: 780px; font-size: 17px; color: var(--muted); }
.section { margin: 24px 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.section.soft { background: var(--soft); box-shadow: none; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head p { max-width: 560px; color: var(--muted); margin-bottom: 0; }
.text-link { color: var(--brand-deep); font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; font-weight: 800; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#FF7AA8 0%,#E85A8B 55%,#C43B6E 100%); box-shadow: 0 10px 24px rgba(196,59,110,.20); }
.btn-secondary { color: var(--brand-deep); background: #fff; border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }
.note { color: var(--muted); }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 11px; border-radius: 999px; background: var(--soft-2); color: var(--brand-deep); font-size: 13px; font-weight: 800; }
.content-media { margin: 18px 0 0; border-radius: 20px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.content-media img { width: 100%; max-height: 420px; object-fit: cover; }
.media-placeholder { min-height: 210px; display: flex; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(145deg,#FFEAF2,#FFFFFF); }
.media-placeholder span { width: 22%; aspect-ratio: 1; max-width: 94px; border-radius: 24px; background: rgba(232,90,139,.10); transform: rotate(8deg); }
.media-placeholder span:nth-child(2) { transform: translateY(18px) rotate(-8deg); background: rgba(255,122,168,.16); }
.hero-cover { margin: 0; border-radius: 22px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.hero-cover img { width: 100%; max-height: 360px; object-fit: cover; }
.hero-cover.media-placeholder { min-height: 280px; }
.home-intro { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.home-intro .lead { max-width: 860px; }
.polaroid-wall { columns: 3; column-gap: 18px; }
.polaroid { break-inside: avoid; margin: 0 0 18px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.polaroid:nth-child(3n+1) { transform: rotate(-1.1deg); }
.polaroid:nth-child(3n+2) { transform: rotate(.8deg); }
.polaroid:nth-child(3n) { transform: rotate(-.4deg); }
.polaroid .content-media, .polaroid .media-placeholder { margin: 0 0 14px; border-radius: 14px; min-height: 130px; }
.polaroid .content-media img { max-height: 230px; }
.polaroid p { color: var(--muted); margin-bottom: 0; }
.diary-list, .number-list, .steps, .index-list, .faq-list { display: grid; gap: 14px; }
.diary-item, .number-item, .step-item, .index-item, .faq-item { padding: 18px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.diary-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.diary-no, .big-no { color: var(--brand); font-size: 28px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.number-item { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; }
.big-no { font-size: 44px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card, .status-card, .book-card, .person-card, .topic-card { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.card p:last-child, .status-card p:last-child, .book-card p:last-child, .person-card p:last-child, .topic-card p:last-child { margin-bottom: 0; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.status-card { background: var(--soft); }
.status-card .tag { margin-bottom: 12px; background: #fff; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.book-card { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(165deg,#fff 0 58%,#FFEAF2 58% 100%); box-shadow: 0 12px 24px rgba(196,59,110,.08); }
.book-card small { color: var(--assist); }
.letter-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.letter-card { position: relative; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.letter-card::before { content: "编辑观点"; display: inline-flex; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; background: var(--soft-2); color: var(--brand-deep); font-size: 12px; font-weight: 800; }
.quote-line { padding-left: 16px; border-left: 3px solid var(--brand); color: var(--muted); }
.story-prose p { margin-bottom: 1.1em; }
.story-prose p:first-of-type::first-letter { float: left; padding-right: 7px; color: var(--brand-deep); font-size: 46px; line-height: .95; font-weight: 800; }
.city-index, .stroll-index { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.index-item strong { display: block; color: var(--title); margin-bottom: 5px; }
.index-item span { color: var(--muted); }
.process-line { display: grid; gap: 14px; counter-reset: step; }
.process-line article { position: relative; padding: 20px 20px 20px 72px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.process-line article::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 19px; color: var(--brand); font-size: 24px; font-weight: 900; }
.policy-list section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.policy-list section:last-child { border-bottom: 0; padding-bottom: 0; }
.app-showcase { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); gap: 24px; align-items: center; }
.app-icon-line { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-icon-line .rail-icon, .app-icon-line .icon-fallback { width: 58px; height: 58px; border-radius: 18px; }
.faq-item h2 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; color: var(--muted); }
.site-footer { margin-left: var(--rail); background: var(--title); color: #F8D6E4; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-logo-link { min-width: 54px; min-height: 54px; display: grid; place-items: center; }
.footer-logo { max-width: 112px; max-height: 42px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #fff; font-size: 20px; }
.footer-brand span { color: #F8D6E4; font-size: 12px; letter-spacing: .12em; }
.site-footer .brand-wordmark { color: #fff; }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 28px 0; }
.footer-groups h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-groups a { display: block; min-height: 34px; color: #F8D6E4; font-size: 14px; }
.footer-groups a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-note { max-width: 860px; color: #F8D6E4; }
.footer-copy { color: #D9AFC0; margin-bottom: 0; font-size: 13px; }
.overlay { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, visibility .2s ease; background: rgba(74,22,48,.42); padding: 18px; overflow-y: auto; }
.overlay.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
body.overlay-open { overflow: hidden; }
.overlay-panel { width: min(1120px, 100%); min-height: calc(100vh - 36px); margin: 0 auto; padding: 26px; border-radius: 24px; background: #FFF7FA; border: 1px solid var(--line); }
.overlay-head, .search-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.overlay-logo { max-width: 126px; max-height: 38px; object-fit: contain; }
.overlay-brand { min-height: 44px; display: flex; align-items: center; }
.close-button { min-width: 62px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-deep); font-weight: 800; }
.directory-groups { display: grid; gap: 26px; }
.directory-group h2 { margin-bottom: 12px; font-size: 18px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.directory-grid a { min-height: 112px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .16s ease, box-shadow .16s ease; }
.directory-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.directory-grid strong { display: block; margin-bottom: 5px; color: var(--title); }
.directory-grid span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.search-overlay { display: grid; place-items: center; }
.search-card { width: min(620px,100%); padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-head { margin-bottom: 12px; }
.search-head strong { color: var(--title); font-size: 20px; }
.search-label { display: block; margin-bottom: 8px; color: var(--muted); }
.search-input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(196,59,110,.24); background: var(--bg); color: var(--title); }
.search-help { margin: 10px 0 16px; color: var(--assist); font-size: 13px; }
.preset-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.preset-links a { min-height: 44px; display: grid; place-items: center; padding: 8px; text-align: center; border-radius: 999px; background: var(--soft); color: var(--brand-deep); font-weight: 800; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
    :root { --rail: 0px; }
    .side-rail { display: none; }
    .topbar { left: 0; }
    .topbar-menu { display: inline-flex; align-items: center; justify-content: center; }
    .topbar-left { padding-left: 8px; }
    .topbar-right { padding-right: 8px; }
    .site-main { margin-left: 0; padding: calc(var(--top) + 26px) 0 78px; }
    .site-footer { margin-left: 0; padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .polaroid-wall { columns: 2; }
    .status-grid, .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .city-index, .stroll-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
    .mobile-nav a { min-width: 0; min-height: 50px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
    .mobile-nav a.is-current { color: var(--brand); font-weight: 800; }
    .overlay { z-index: 400; }
}
@media (max-width: 700px) {
    body { line-height: 1.72; }
    .page-shell, .home-shell { width: calc(100% - 32px); }
    .topbar { grid-template-columns: 88px minmax(0,1fr) 88px; }
    .topbar-brand { min-width: 0; padding-inline: 4px; overflow: hidden; }
    .topbar-logo { max-width: 142px; }
    .topbar-side { min-width: 0; }
    .app-link { min-height: 44px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
    .home-intro, .section { padding: 20px; border-radius: 18px; }
    .hero-cover.media-placeholder { min-height: 190px; }
    .polaroid-wall { columns: 1; }
    .polaroid { transform: none !important; }
    .card-grid, .letter-grid, .app-showcase { grid-template-columns: 1fr; }
    .status-grid, .book-grid { grid-template-columns: 1fr 1fr; }
    .city-index, .stroll-index { grid-template-columns: 1fr; }
    .number-item { grid-template-columns: 56px 1fr; }
    .big-no { font-size: 34px; }
    .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .overlay { padding: 0; background: #FFF7FA; }
    .overlay-panel { min-height: 100vh; border: 0; border-radius: 0; padding: 18px 16px 80px; }
    .directory-grid a { min-height: 118px; padding: 14px; }
    .search-overlay { padding: 16px; background: rgba(74,22,48,.42); }
    .search-card { width: min(100%, 560px); padding: 20px; }
    .preset-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-inner { width: calc(100% - 32px); }
    .footer-groups { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 430px) {
    .status-grid, .book-grid { grid-template-columns: 1fr; }
    .diary-item { grid-template-columns: 42px 1fr; }
    .diary-no { font-size: 23px; }
    .footer-groups { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
