:root {
    --paper:#FFF6D8; --white:#FFFFFF; --sand:#F3E4B0; --ink:#111111; --title:#16140F;
    --text:#2A261C; --muted:#5C5648; --soft:#8A8370; --yellow:#F5C518; --deep-yellow:#D4A017;
    --teal:#2A6B6B; --red:#E85D4C; --line:rgba(17,17,17,.12); --shadow:0 14px 34px rgba(17,17,17,.10);
    --max:1180px; --header-desktop:134px; --header-mobile:92px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--text); font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif; font-size:16px; line-height:1.75; overflow-x:hidden; }
body.ui-lock { overflow:hidden; }
a { color:inherit; text-decoration:none; }
a, button, input { font:inherit; }
button { cursor:pointer; }
img { display:block; max-width:100%; height:auto; }
.fixed-header { position:fixed; z-index:1000; inset:0 0 auto 0; box-shadow:0 1px 0 var(--line); }
.ink-bar { height:22px; background:var(--ink); color:var(--yellow); font-size:12px; line-height:22px; }
.top-inner,.masthead-inner,.issue-nav-inner,.footer-inner,.section-inner { width:min(var(--max), calc(100% - 32px)); margin:0 auto; }
.top-inner { height:22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ink-brand { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ink-action { border:0; background:transparent; color:var(--yellow); min-width:48px; min-height:22px; padding:0 4px; }
.ink-action:focus-visible,.drawer-button:focus-visible,.ui-close:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid var(--teal); outline-offset:3px; }
.masthead { height:70px; background:var(--yellow); color:var(--ink); }
.masthead-inner { height:70px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:18px; }
.brand-lockup { justify-self:start; min-height:44px; display:flex; align-items:center; }
.brand-logo { max-height:38px; width:auto; max-width:230px; }
.brand-text { font-weight:900; font-size:23px; letter-spacing:.04em; }
.drawer-button,.app-link { min-height:44px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--ink); border-radius:6px; padding:8px 18px; font-weight:800; background:var(--ink); color:var(--yellow); }
.drawer-button { justify-self:center; }
.app-link { justify-self:end; background:transparent; color:var(--ink); }
.drawer-button:hover { background:#2a2a2a; }
.app-link:hover { background:var(--ink); color:var(--yellow); }
.issue-nav { height:42px; background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.issue-nav-inner { height:42px; display:flex; align-items:center; gap:10px; }
.issue-nav a { min-height:30px; display:inline-flex; align-items:center; padding:3px 10px; font-weight:700; color:var(--title); border-radius:3px; }
.issue-nav a:hover,.issue-nav a.active { background:var(--yellow); }
.site-main { padding-top:var(--header-desktop); min-height:70vh; }
.section { padding:54px 0; }
.section.compact { padding:38px 0; }
.section.white { background:var(--white); }
.section.sand { background:var(--sand); }
.section.dark { background:var(--ink); color:#fff; }
.section.dark h2,.section.dark h3 { color:var(--yellow); }
.page-hero { padding:52px 0 34px; }
.page-hero .section-inner { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:32px; align-items:end; }
.page-hero.single .section-inner { display:block; max-width:900px; }
.page-kicker,.eyebrow { display:inline-block; font-size:13px; font-weight:900; letter-spacing:.08em; color:var(--teal); text-transform:uppercase; }
h1,h2,h3 { color:var(--title); line-height:1.25; margin:0 0 16px; }
h1 { font-size:clamp(28px,4vw,32px); letter-spacing:-.02em; }
h2 { font-size:clamp(23px,3vw,28px); }
h3 { font-size:18px; }
p { margin:0 0 16px; }
.lead { font-size:18px; color:var(--muted); max-width:760px; }
.hero-actions,.action-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.button-primary,.button-secondary,.text-link { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:5px; font-weight:900; border:1px solid var(--ink); }
.button-primary { background:var(--ink); color:var(--yellow); }
.button-secondary { background:var(--yellow); color:var(--ink); }
.text-link { background:var(--white); color:var(--ink); }
.button-primary:hover { color:#fff; }
.button-secondary:hover,.text-link:hover { background:var(--sand); }
.local-media,.media-slot { width:100%; border-radius:14px; border:1px solid var(--line); box-shadow:var(--shadow); background:var(--sand); }
.media-slot { aspect-ratio:16/9; min-height:150px; }
.media-hero { max-height:320px; object-fit:cover; }
.section-title-row { display:flex; justify-content:space-between; gap:18px; align-items:end; margin-bottom:24px; }
.section-title-row p { max-width:650px; color:var(--muted); margin:0; }
.grid-2,.grid-3,.grid-4,.grid-6 { display:grid; gap:18px; }
.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)); }
.card { background:var(--white); border:1px solid var(--line); border-radius:14px; padding:22px; min-width:0; }
.card:hover { box-shadow:0 10px 24px rgba(17,17,17,.08); }
.card p:last-child { margin-bottom:0; }
.tag-card { position:relative; padding-top:50px; }
.tag-chip { position:absolute; top:16px; left:16px; width:22px; height:8px; border-radius:2px; background:var(--yellow); }
.tag-card:nth-child(3n+2) .tag-chip { background:var(--teal); }
.tag-card:nth-child(3n) .tag-chip { background:var(--red); }
.number-list { display:grid; gap:1px; background:var(--line); border:1px solid var(--line); }
.number-item { background:var(--white); display:grid; grid-template-columns:70px 1fr auto; gap:18px; align-items:center; padding:18px 20px; }
.number-item strong.num { font-size:28px; line-height:1; color:var(--ink); }
.number-item a { font-weight:900; color:var(--teal); }
.long-strip { display:grid; grid-template-columns:110px 1fr auto; gap:20px; align-items:start; padding:20px 0; border-bottom:1px solid var(--line); }
.long-strip .index { font-size:26px; font-weight:900; color:var(--red); }
.type-index { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 0; }
.type-index a,.type-index span { display:inline-flex; min-height:36px; align-items:center; padding:6px 10px; background:var(--sand); border:1px solid var(--line); border-radius:4px; font-weight:800; }
.spine-list { display:grid; gap:10px; }
.spine { display:grid; grid-template-columns:8px 1fr auto; gap:14px; align-items:center; min-height:74px; padding:14px 18px; background:var(--white); border:1px solid var(--line); border-radius:10px; }
.spine::before { content:""; align-self:stretch; background:var(--yellow); border-radius:2px; }
.spine:nth-child(3n+2)::before { background:var(--teal); }
.spine:nth-child(3n)::before { background:var(--red); }
.editor-board { display:grid; gap:14px; }
.board-row { display:grid; grid-template-columns:92px 1fr; background:var(--yellow); border:2px solid var(--ink); }
.board-row .big-no { background:var(--ink); color:var(--yellow); font-size:36px; font-weight:900; display:flex; align-items:center; justify-content:center; min-height:110px; }
.board-row .board-copy { padding:20px; }
.timeline { position:relative; display:grid; gap:18px; margin-left:14px; }
.timeline::before { content:""; position:absolute; left:9px; top:8px; bottom:8px; width:2px; background:var(--ink); opacity:.35; }
.timeline-item { position:relative; padding-left:40px; }
.timeline-item::before { content:""; position:absolute; left:0; top:7px; width:20px; height:20px; border-radius:50%; background:var(--yellow); border:4px solid var(--ink); }
.status { display:inline-block; padding:2px 8px; border:1px solid var(--ink); border-radius:3px; font-size:13px; font-weight:900; margin-bottom:6px; background:var(--white); color:var(--ink); }
.steps { counter-reset:step; display:grid; gap:14px; }
.step { counter-increment:step; display:grid; grid-template-columns:56px 1fr; gap:16px; padding:18px; background:var(--white); border:1px solid var(--line); border-radius:12px; }
.step::before { content:counter(step, decimal-leading-zero); font-size:23px; font-weight:900; color:var(--red); }
.note-block { padding:24px; border-left:5px solid var(--teal); background:var(--white); border-radius:0 12px 12px 0; }
.editor-label { display:inline-flex; min-height:30px; align-items:center; padding:3px 8px; margin-bottom:10px; background:var(--ink); color:var(--yellow); font-size:13px; font-weight:900; border-radius:3px; }
.prose { max-width:860px; }
.prose h2 { margin-top:34px; }
.prose h3 { margin-top:26px; }
.prose p { margin-bottom:18px; }
.rule-list { display:grid; gap:14px; }
.rule-item { background:var(--white); border:1px solid var(--line); padding:20px; border-radius:12px; }
.faq-list { display:grid; gap:12px; }
.faq-item { background:var(--white); border:1px solid var(--line); border-radius:12px; padding:20px; }
.faq-item h2 { font-size:19px; margin-bottom:8px; }
.roam-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.roam-item { min-height:180px; padding:22px; background:var(--white); border:1px solid var(--line); border-radius:12px; }
.app-showcase { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr); gap:28px; align-items:center; }
.app-icon-row { margin-top:0; }
.app-icon { width:88px; height:88px; border-radius:18px; object-fit:cover; border:1px solid var(--line); background:var(--sand); }
.app-icon-slot { width:88px; height:88px; border-radius:18px; background:var(--sand); border:1px solid var(--line); }
.check-list { margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.check-list li { padding-left:28px; position:relative; }
.check-list li::before { content:"✓"; position:absolute; left:0; top:0; font-weight:900; color:var(--teal); }
.site-footer { background:var(--ink); color:var(--yellow); padding:48px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-brand { display:inline-flex; flex-wrap:wrap; align-items:center; gap:14px; font-weight:900; margin-bottom:28px; }
.footer-brand span { color:#E8D9A0; font-size:13px; letter-spacing:.08em; }
.footer-logo { max-height:36px; width:auto; filter:none; }
.footer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.footer-grid h2 { color:var(--yellow); font-size:16px; margin-bottom:10px; }
.footer-grid a { display:block; min-height:34px; color:#E8D9A0; }
.footer-grid a:hover { color:#fff; }
.footer-note { margin-top:30px; color:#E8D9A0; max-width:900px; }
.copyright { color:#E8D9A0; font-size:13px; margin:10px 0 0; }
.ui-overlay { position:fixed; z-index:1090; inset:0; background:rgba(17,17,17,.54); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s ease,visibility .2s ease; }
.ui-overlay.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.story-drawer { position:fixed; z-index:1100; top:0; bottom:0; left:0; width:360px; max-width:86vw; background:var(--paper); transform:translateX(-102%); visibility:hidden; pointer-events:none; transition:transform .24s ease,visibility .24s ease; overflow-y:auto; box-shadow:20px 0 48px rgba(0,0,0,.2); }
.story-drawer.is-open { transform:translateX(0); visibility:visible; pointer-events:auto; }
.drawer-head { position:sticky; top:0; z-index:2; min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; background:var(--yellow); border-bottom:1px solid var(--ink); }
.drawer-brand { display:flex; align-items:center; gap:10px; font-weight:900; color:var(--ink); }
.drawer-logo { max-height:32px; max-width:150px; width:auto; }
.ui-close { min-width:54px; min-height:44px; border:1px solid var(--ink); border-radius:5px; background:var(--ink); color:var(--yellow); font-weight:900; }
.drawer-groups { padding:16px; }
.drawer-groups section { padding:14px 0 18px; border-bottom:1px solid var(--line); }
.drawer-groups h2 { font-size:15px; margin:0 0 8px; color:var(--teal); }
.drawer-groups a { display:block; padding:10px 8px; border-radius:6px; }
.drawer-groups a:hover { background:var(--sand); }
.drawer-groups strong { display:block; color:var(--title); }
.drawer-groups span { display:block; color:var(--muted); font-size:13px; line-height:1.5; }
.site-search { position:fixed; z-index:1110; top:92px; left:50%; width:min(900px,calc(100% - 32px)); transform:translate(-50%,-18px); opacity:0; visibility:hidden; pointer-events:none; transition:.2s ease; }
.site-search.is-open { transform:translate(-50%,0); opacity:1; visibility:visible; pointer-events:auto; }
.search-inner { background:var(--white); border:2px solid var(--ink); box-shadow:var(--shadow); padding:24px; }
.search-topline { display:flex; align-items:start; justify-content:space-between; gap:18px; }
.search-topline h2 { margin-top:4px; }
.search-appearance { display:block; margin-top:20px; }
.search-appearance span { display:block; font-weight:800; margin-bottom:8px; }
.search-appearance input { width:100%; min-height:50px; border:1px solid var(--ink); border-radius:4px; padding:10px 12px; background:var(--paper); color:var(--ink); }
.search-links { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.search-links a { min-height:40px; display:inline-flex; align-items:center; padding:6px 11px; background:var(--yellow); color:var(--ink); border:1px solid var(--ink); border-radius:4px; font-weight:900; }
.search-note { color:var(--muted); font-size:13px; margin:16px 0 0; }
.mobile-bottom-nav { display:none; }
.mini-link { font-weight:900; color:var(--teal); }
.split-media { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr); gap:28px; align-items:start; }
.quote-box { background:var(--ink); color:#fff; padding:26px; border-radius:12px; }
.quote-box strong { color:var(--yellow); }
.callout { background:var(--yellow); border:2px solid var(--ink); padding:22px; border-radius:12px; }
.muted { color:var(--muted); }
.small { font-size:14px; }

@media (max-width: 860px) {
    :root { --header-desktop:92px; }
    .issue-nav { display:none; }
    .site-main { padding-top:var(--header-mobile); }
    .masthead-inner { width:calc(100% - 24px); grid-template-columns:minmax(0,1fr) auto auto; gap:8px; }
    .brand-logo { max-width:135px; max-height:34px; }
    .brand-text { font-size:18px; }
    .drawer-button,.app-link { min-width:44px; padding:7px 10px; font-size:13px; white-space:nowrap; }
    .page-hero .section-inner,.split-media,.app-showcase { grid-template-columns:1fr; }
    .grid-4,.grid-6 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .site-search { top:0; inset-inline:0; left:0; bottom:0; width:100%; transform:translateY(-12px); background:var(--paper); }
    .site-search.is-open { transform:none; }
    .search-inner { min-height:100%; border:0; box-shadow:none; background:var(--paper); padding:20px 16px calc(80px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav { position:fixed; z-index:900; left:0; right:0; bottom:0; min-height:calc(50px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); display:grid; grid-template-columns:repeat(5,1fr); background:var(--white); border-top:1px solid var(--ink); }
    .mobile-bottom-nav a { min-height:50px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:900; color:var(--ink); }
    .mobile-bottom-nav a.active { background:var(--yellow); }
    .site-footer { padding-bottom:calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
    .ink-brand { max-width:76vw; }
    .section { padding:40px 0; }
    .section-inner,.top-inner,.footer-inner { width:calc(100% - 32px); }
    .page-hero { padding:34px 0 26px; }
    .page-hero .section-inner { gap:20px; }
    .grid-2,.grid-3,.grid-4,.grid-6,.roam-index { grid-template-columns:1fr; }
    .number-item { grid-template-columns:54px 1fr; }
    .number-item a { grid-column:2; }
    .long-strip { grid-template-columns:58px 1fr; }
    .long-strip > a { grid-column:2; }
    .board-row { grid-template-columns:70px 1fr; }
    .board-row .big-no { min-height:120px; font-size:30px; }
    .footer-grid { grid-template-columns:1fr 1fr; gap:18px; }
    .section-title-row { display:block; }
    .section-title-row p { margin-top:10px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior:auto !important; transition:none !important; }
}
