:root {
    --paper: #FFF5F6;
    --surface: #FFFFFF;
    --soft: #F8DCE2;
    --ink: #3B0F1A;
    --body: #4A1A24;
    --muted: #7A3A48;
    --quiet: #A06070;
    --rose: #E23D5C;
    --pink: #F06B84;
    --gold: #C9A227;
    --brown: #2A1518;
    --footer: #2A0C14;
    --line: rgba(226,61,92,0.18);
    --shadow: 0 14px 34px rgba(59,15,26,0.08);
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.78; overflow-x: hidden; }
body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid rgba(201,162,39,.55); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-fixed-head { position: fixed; inset: 0 0 auto 0; z-index: 800; box-shadow: 0 1px 0 var(--line); }
.ruler-bar { height: 20px; background: var(--ink); color: #fff; font-size: 12px; }
.ruler-inner, .masthead-inner, .directory-inner, .footer-inner, .page-wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.ruler-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; letter-spacing: .04em; }
.ruler-search { height: 20px; border: 0; background: transparent; color: #fff; padding: 0 4px; min-width: 44px; }
.masthead { height: 80px; background: var(--paper); }
.masthead-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { max-height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand-text { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand-text strong { font-size: 26px; letter-spacing: .08em; }
.brand-text small { font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.mast-actions { display: flex; align-items: center; gap: 10px; }
.menu-button, .app-link, .button-primary, .button-secondary { min-height: 44px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.menu-button { background: #fff; color: var(--ink); }
.app-link, .button-primary { color: #fff; background: linear-gradient(135deg,#F06B84 0%,#E23D5C 55%,#C42B48 100%); border-color: transparent; }
.button-secondary { background: #fff; color: var(--ink); }
.menu-button:hover, .button-secondary:hover { border-color: rgba(226,61,92,.45); transform: translateY(-1px); }
.app-link:hover, .button-primary:hover { filter: brightness(.97); transform: translateY(-1px); }
.directory-row { height: 40px; background: #fff; border-top: 1px solid var(--line); }
.directory-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 30px; }
.directory-inner a { position: relative; height: 40px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; }
.directory-inner a:hover { color: var(--ink); }
.directory-inner a.is-current { color: var(--ink); font-weight: 700; }
.directory-inner a.is-current::after { content: ""; position: absolute; height: 2px; left: 2px; right: 2px; bottom: 0; background: var(--gold); }
.site-main { padding-top: 164px; min-height: 65vh; }
.page-wrap { padding-bottom: 64px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr); gap: 46px; align-items: center; padding: 34px 0 48px; }
.page-hero.compact { grid-template-columns: 1fr; padding-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: var(--rose); font-size: 13px; letter-spacing: .14em; font-weight: 800; }
h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 4vw, 32px); line-height: 1.24; letter-spacing: -.02em; }
h2 { color: var(--ink); line-height: 1.34; }
h3 { color: var(--ink); }
.lead { margin: 18px 0 0; max-width: 760px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.image-frame { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); overflow: hidden; }
.image-frame img, .image-frame .image-placeholder { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; }
.image-frame.tall img, .image-frame.tall .image-placeholder { aspect-ratio: 3 / 4; max-height: 360px; }
.image-placeholder { min-height: 220px; border: 1px dashed rgba(226,61,92,.25); background: linear-gradient(135deg,#fff 0%,#F8DCE2 100%); color: var(--muted); display: grid; place-items: center; text-align: center; padding: 18px; }
.image-placeholder span { max-width: 220px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 0; color: var(--muted); }
.paper-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.paper-card p:first-child { margin-top: 0; }
.paper-card p:last-child { margin-bottom: 0; }
.film-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.film-strip article { padding: 22px; min-height: 172px; border-right: 1px solid var(--line); position: relative; }
.film-strip article:last-child { border-right: 0; }
.film-strip article:nth-child(1) { border-top: 3px solid var(--rose); }
.film-strip article:nth-child(2) { border-top: 3px solid var(--gold); }
.film-strip article:nth-child(3) { border-top: 3px solid var(--brown); }
.film-strip article:nth-child(4) { border-top: 3px solid var(--rose); }
.film-strip h3 { margin: 4px 0 8px; }
.film-strip p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.text-link { color: var(--rose); font-weight: 700; }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 66px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.number { color: var(--gold); font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.number-item h3 { margin: 0 0 6px; }
.number-item p { margin: 0; color: var(--muted); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card-grid-3 .paper-card { height: 100%; }
.card-grid-6 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.mini-card { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; min-height: 164px; }
.mini-card h3 { margin: 0 0 8px; }
.mini-card p { margin: 0; color: var(--muted); }
.split-section { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 28px; align-items: start; }
.split-section.reverse { grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); }
.editor-list { display: grid; gap: 10px; }
.editor-row { display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.editor-row .number { font-size: 42px; text-align: center; }
.editor-row h3 { margin: 0 0 5px; }
.editor-row p { margin: 0; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 7px; width: 1px; background: rgba(201,162,39,.5); }
.timeline article { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.timeline article::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--rose); left: -23px; top: 25px; box-shadow: 0 0 0 5px var(--paper); }
.status { display: inline-block; padding: 3px 8px; border: 1px solid rgba(201,162,39,.45); color: var(--ink); background: rgba(201,162,39,.08); border-radius: 7px; font-size: 12px; font-weight: 800; }
.timeline h3 { margin: 8px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }
.long-strip-list { display: grid; gap: 12px; }
.long-strip { display: grid; grid-template-columns: minmax(130px,.32fr) 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.long-strip h2, .long-strip h3 { margin: 0; }
.long-strip p { margin: 0; color: var(--muted); }
.long-copy { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px,4vw,38px); box-shadow: var(--shadow); }
.long-copy h2 { margin-top: 34px; font-size: 22px; }
.long-copy h2:first-child { margin-top: 0; }
.long-copy p { margin: 12px 0; }
.note { border-left: 3px solid var(--gold); padding: 14px 16px; background: #fffaf0; color: var(--muted); border-radius: 0 10px 10px 0; }
.index-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.index-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.index-card h2, .index-card h3 { margin: 0 0 7px; }
.index-card p { margin: 0 0 10px; color: var(--muted); }
.rule-list { display: grid; gap: 14px; counter-reset: rules; }
.rule-block { counter-increment: rules; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.rule-block h2 { margin: 0 0 10px; font-size: 20px; }
.rule-block h2::before { content: counter(rules, decimal-leading-zero) " / "; color: var(--gold); }
.rule-block p { margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.faq-item h2 { margin: 0 0 10px; font-size: 19px; }
.faq-item p { margin: 0; color: var(--muted); }
.callout { margin-top: 18px; padding: 20px 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.callout a { color: var(--rose); font-weight: 800; }
.site-footer { background: var(--footer); color: #F8DCE2; padding: 52px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; border-bottom: 1px solid rgba(248,220,226,.14); padding-bottom: 26px; }
.footer-logo { max-height: 38px; max-width: 180px; object-fit: contain; filter: brightness(1.8); }
.footer-wordmark { font-size: 24px; font-weight: 800; }
.footer-wordmark span { font-size: 11px; letter-spacing: .18em; margin-left: 8px; }
.footer-brand p { margin: 0; color: rgba(248,220,226,.78); }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; padding: 28px 0; }
.footer-groups h2 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.footer-groups a { display: block; min-height: 34px; color: rgba(248,220,226,.78); font-size: 14px; }
.footer-groups a:hover { color: #fff; }
.footer-note { margin: 0; padding-top: 18px; border-top: 1px solid rgba(248,220,226,.14); color: rgba(248,220,226,.72); }
.copyright { margin: 10px 0 0; color: rgba(248,220,226,.58); font-size: 13px; }
.page-mask { position: fixed; inset: 0; z-index: 900; background: rgba(42,12,20,.48); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.film-menu { position: fixed; z-index: 950; left: 50%; top: 50%; width: min(640px,92vw); max-height: min(82vh,760px); transform: translate(-50%,-46%) scale(.98); opacity: 0; visibility: hidden; pointer-events: none; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 70px rgba(42,12,20,.24); transition: .2s ease; }
.film-menu.is-open { transform: translate(-50%,-50%) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
.menu-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: rgba(255,245,246,.97); border-bottom: 1px solid var(--line); }
.menu-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.menu-brand img { max-height: 30px; max-width: 140px; }
.menu-brand span { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.close-button { min-width: 52px; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
.menu-group { padding: 20px; border-bottom: 1px solid var(--line); }
.menu-group:nth-child(odd) { border-right: 1px solid var(--line); }
.menu-group h2 { margin: 0 0 10px; font-size: 14px; color: var(--rose); }
.menu-group a { display: block; padding: 9px 0; border-top: 1px solid rgba(226,61,92,.08); }
.menu-group a:first-of-type { border-top: 0; }
.menu-group strong { display: block; color: var(--ink); font-size: 14px; }
.menu-group span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.search-panel { position: fixed; z-index: 960; top: 106px; left: 50%; width: min(720px, calc(100% - 32px)); transform: translateX(-50%) translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-panel.is-open { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 24px 60px rgba(42,12,20,.2); }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); }
.search-appearance { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.search-appearance input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 0 14px; }
.search-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.search-card > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.mobile-bottom-nav { display: none; }
.prose-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.prose-meta span { padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.app-product { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(260px,.92fr); gap: 30px; align-items: center; }
.app-icon-wrap { width: 72px; height: 72px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: 16px; }
.app-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-wrap .image-placeholder { min-height: 72px; width: 72px; padding: 4px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.contact-card h2 { margin: 0 0 8px; font-size: 20px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { display: inline-flex; margin-top: 12px; color: var(--rose); font-weight: 800; }
@media (max-width: 860px) {
    .page-hero, .split-section, .split-section.reverse, .app-product { grid-template-columns: 1fr; }
    .page-hero { gap: 24px; }
    .film-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .film-strip article:nth-child(2) { border-right: 0; }
    .film-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .card-grid-3 { grid-template-columns: 1fr; }
    .card-grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-brand { grid-template-columns: 1fr; }
    .footer-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .ruler-inner, .masthead-inner, .directory-inner, .footer-inner, .page-wrap { width: calc(100% - 32px); }
    .directory-row { display: none; }
    .site-main { padding-top: 120px; }
    .masthead, .masthead-inner { height: 80px; }
    .brand-logo { max-width: 150px; }
    .brand-text strong { font-size: 22px; }
    .app-link, .menu-button { padding-left: 12px; padding-right: 12px; }
    .page-hero { padding-top: 20px; }
    .film-strip { grid-template-columns: 1fr; }
    .film-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
    .film-strip article:last-child { border-bottom: 0; }
    .number-item, .editor-row, .long-strip { grid-template-columns: 1fr; gap: 10px; }
    .number { font-size: 30px; }
    .editor-row .number { text-align: left; }
    .card-grid-6, .index-list, .contact-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .menu-group:nth-child(odd) { border-right: 0; }
    .film-menu { max-height: 86vh; }
    .search-panel { inset: 0; width: 100%; transform: none; background: var(--paper); }
    .search-panel.is-open { transform: none; }
    .search-card { min-height: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 24px 16px; }
    .footer-groups { grid-template-columns: 1fr 1fr; }
    .mobile-bottom-nav { position: fixed; z-index: 700; left: 0; right: 0; bottom: 0; min-height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5,1fr); }
    .mobile-bottom-nav a { min-height: 50px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
    .mobile-bottom-nav a.is-current { color: var(--rose); }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 410px) {
    .masthead-inner { gap: 8px; }
    .mast-actions { gap: 6px; }
    .brand-text small { display: none; }
    .app-link, .menu-button { min-width: 52px; font-size: 13px; }
}
