/* Final editorial hierarchy, compact archive and horizontal collections. */
@media(min-width:601px){
 .mast{position:sticky;top:0;z-index:20;background:var(--paper)}
 /* 这些偏移全部跟着 --mast-h 走，避免顶栏改高度后年份轴 / 锚点跳转错位。 */
 html{scroll-padding-top:calc(var(--mast-h) + 20px)}
 .year-group{scroll-margin-top:calc(var(--mast-h) + 20px)}
 .archive-layout aside{top:calc(var(--mast-h) + 30px);max-height:calc(100svh - var(--mast-h) - 60px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b3b6a7 transparent}
}
.heading{align-items:center;gap:0 16px;grid-template-columns:28px minmax(0,1fr) auto}
.heading>div{min-width:0}.heading h2{font-size:32px;line-height:1.4;white-space:nowrap;margin:6px 0 0}
.heading .serial{align-self:center;margin:0}.heading .tiny{font-size:9px;letter-spacing:2px}
.heading .text-link{align-self:end;font-size:11px;padding-bottom:6px;white-space:nowrap}
.page-head h1,.passport-header h1,.journal-header h1{white-space:nowrap;font-size:38px;line-height:1.35}
.logo span{letter-spacing:4px;line-height:1.5}.mast .logo{line-height:1.1}
.passport-header{padding-top:38px;padding-bottom:18px}.passport-header h1{margin:10px 0}
.home-stamp-rail.passport-preview{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:30px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#b3b6a7 transparent;padding:27px 10px 24px;overscroll-behavior-x:contain;cursor:grab}
.home-stamp-rail>.stamp{flex:0 0 148px;width:148px;height:150px;scroll-snap-align:start;gap:5px}
.home-stamp-rail>.stamp b{font-size:23px}.home-stamp-rail>.stamp small{font-size:8px;letter-spacing:.7px}.home-stamp-rail>.stamp svg{width:52px;height:34px}
.home-stamp-rail.dragging,.topic-rail.dragging{cursor:grabbing;user-select:none}
.journal-header{padding:38px 5% 26px;align-items:end;gap:32px}.journal-caption>.tiny{font-size:9px;letter-spacing:2px;color:var(--soft)}
.journal-caption h1{font-weight:400;margin:8px 0 0}
.metrics{display:flex;gap:32px;border:0;padding:0;margin:0;align-items:baseline}
.metrics>div{display:flex;align-items:baseline;gap:9px;padding:0;border:0;min-width:0}
.metrics b{font:36px/1.1 Georgia;font-weight:400;font-variant-numeric:tabular-nums}
.metrics span{font-size:11px;line-height:1.5;margin:0;letter-spacing:.6px;white-space:nowrap;color:var(--soft)}
.archive-section{padding-top:0}.archive-section .filters{padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:25px}
.archive-section .timeline-item .topic{background:#526158}.archive-section .topic h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.archive-layout aside button{transition:color .2s}.topic-rail .topic h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.frame h3{line-height:1.5}.page-head .giant{opacity:.45}
.btn{min-height:44px;line-height:1.5}.close{width:44px;height:44px;display:grid;place-items:center;line-height:1;padding:0}
html:has(dialog[open]){overflow:hidden}dialog{overscroll-behavior:contain;scrollbar-width:thin}
:is(button,a,input,select,textarea):focus-visible{outline:2px solid #a26f50;outline-offset:4px}
.reel-position:focus-visible{outline-color:#c4976a}
@media(min-width:601px) and (max-width:1000px){
 .journal-header{display:flex;gap:22px}.journal-caption h1{font-size:32px}.metrics{gap:20px}.metrics b{font-size:29px}.metrics>div{gap:6px}.metrics span{font-size:10px}
 .heading h2{font-size:29px}
}
@media(max-width:600px){
 .heading{grid-template-columns:20px minmax(0,1fr) auto;gap:0 9px;align-items:center;margin-bottom:24px}
 .heading .tiny{font-size:7px;letter-spacing:1px}.heading .serial{font-size:10px}
 .heading h2{font-size:27px;line-height:1.4;margin-top:5px}
 .heading .text-link{grid-column:auto;justify-self:end;align-self:end;margin:0 0 3px;font-size:9px;letter-spacing:0;padding-bottom:5px}
 .heading .text-link:hover{color:var(--red)}.cinema .heading .text-link{color:#d2d9cb}
 .page-head h1,.passport-header h1,.journal-header h1{font-size:29px;line-height:1.35;letter-spacing:0}
 .page-head{padding:30px 24px 20px}.page-head .giant{display:none}.page-head>p{font-size:11px;line-height:1.9;margin-top:14px}
 .passport-header{padding:28px 24px 14px}.passport-header h1{margin:10px 0 0}.passport-header>.subtle{margin-top:14px}
 .home-stamp-rail.passport-preview{gap:16px;padding:24px 4px 20px;scrollbar-width:none}
 .home-stamp-rail::-webkit-scrollbar{display:none}
 .home-stamp-rail>.stamp{flex:0 0 122px;width:122px;height:128px;padding:12px;gap:4px}
 .home-stamp-rail>.stamp b{font-size:20px}.home-stamp-rail>.stamp small{font-size:7px;letter-spacing:.4px}.home-stamp-rail>.stamp svg{width:40px;height:29px}
 .journal-header{display:block;padding:20px 20px 18px}
 .journal-caption{display:flex;align-items:baseline;justify-content:space-between;gap:15px;flex-direction:row-reverse}
 .journal-caption>.tiny{font-size:8px;letter-spacing:1.5px}.journal-caption h1{margin:0;font-size:29px}
 .metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:16px;padding:14px 0}
 .metrics>div{border:0!important;margin:0!important;padding:0!important;min-width:0;gap:7px;justify-content:center}
 .metrics>div:first-child{justify-content:flex-start}.metrics>div:last-child{justify-content:flex-end}
 .metrics b{font-size:27px;line-height:1.1}.metrics span{font-size:10px;letter-spacing:0}
 .archive-section{padding:0 20px 36px}
 .archive-section .filters{display:grid;grid-template-columns:90px 78px minmax(0,1fr);gap:8px;border:0;padding:0;margin:0 0 22px}
 .archive-section .filters input,.archive-section .filters select{width:100%;min-width:0;height:42px;padding:10px;font-size:12px;line-height:20px;border-color:#c7c7ba;background:#f8f6ef;border-radius:0}
 .archive-section .filters input::placeholder{font-size:11px}
 .archive-layout{grid-template-columns:44px minmax(0,1fr);gap:12px}
 .archive-layout aside{top:20px;gap:27px;font-size:12px;padding-top:6px}
 .archive-layout aside button{padding-left:9px;min-height:18px}.archive-layout aside button:before{top:4px}
 .year-heading{padding:0 0 17px;gap:12px}.year-heading h2{font-size:25px;line-height:1.2}.year-heading span{font-size:9px;white-space:nowrap}
 .date-node{font-size:11px;padding-bottom:12px;line-height:14px}.date-node span{font-size:9px}
 .archive-section .timeline-item .topic{aspect-ratio:3/2}
 .archive-section .timeline-item h3{font-size:21px;line-height:1.35;margin:8px 0 0}
 .archive-section .timeline-item .topic-copy{left:13px;right:12px;bottom:15px}
 .timeline-item>.subtle{font-size:10px;margin:9px 0 0;line-height:1.7}
 .year-group{padding-bottom:25px}.archive-section .timeline-grid{gap:24px}
 .mast .logo span{letter-spacing:3px;font-size:8px}.mast .new{min-height:38px;display:inline-flex;align-items:center}
 .ai-dock input::placeholder{color:#777970}.ai-dock form{min-height:52px}
 body[data-route=cinema] .page-head{padding-top:32px}.filmstrip .frame h3{font-size:23px}
 footer .logo{font-size:23px}footer .logo span{font-size:9px;letter-spacing:3px}
 .editor{padding:22px 24px}.editor>.actions{margin-top:0}.editor .btn{min-height:44px}
}
@media(max-width:374px){
 .heading h2{font-size:25px}.heading .tiny{letter-spacing:.6px}.heading .text-link{font-size:8px}
 .metrics b{font-size:25px}.metrics span{font-size:9px}.metrics>div{gap:5px}
 .journal-caption>.tiny{font-size:7px;letter-spacing:1px}
}

/* 封面高度与顶栏联动：多出的 28px 恰好抵消 .ai-dock 的 -28px 上移，
   使 AI 胶囊起始 y 正好等于视口高（首屏完全不露出），封面则铺满折线。 */
.hero-carousel{height:calc(100svh - var(--mast-h) + 28px)}
.hero-track .hero-bottom{bottom:132px}.hero-pagination{bottom:62px}
.ai-dock{position:relative;z-index:3;max-width:660px;width:calc(100% - 48px);margin:-28px auto 0;padding:0 0 24px;border:0;display:block}
.ai-dock .ai-label{display:none}.ai-dock form{min-height:56px;width:100%;border:1px solid #ddd8cb;background:#fffcf6;border-radius:32px;box-shadow:0 5px 16px #302a1e0b;display:flex;align-items:center;gap:0}
.ai-dock .ai-mark{flex:none;font-size:19px;color:#9c735b;margin-left:20px;line-height:1;pointer-events:none}
.ai-dock input{align-self:stretch;padding:16px 15px;font-size:13px;line-height:1.6}
.ai-dock form:focus-within{outline:1px solid #a6967d;outline-offset:3px}
.ai-dock button{align-self:stretch;background:transparent;border:0;min-width:125px;padding:0 20px;color:var(--ink);font-size:22px;display:flex;align-items:center;justify-content:center;gap:14px}
.ai-dock button span{font-size:11px;margin:0;letter-spacing:.5px}
.home-topics{padding-top:46px}
@media(max-width:600px){
 .hero-carousel{height:calc(100svh - 112px - env(safe-area-inset-bottom));min-height:min(500px,calc(100svh - 112px - env(safe-area-inset-bottom)))}
 .hero-track .hero-copy{bottom:32%}.hero-track .hero-bottom{bottom:126px;line-height:1.8}
 .hero-pagination{bottom:62px}
 .ai-dock{width:calc(100% - 48px);max-width:none;margin:-27px 24px 0;padding:0 0 22px}
 .ai-dock .ai-label{display:none}.ai-dock form{min-height:54px;border-radius:30px;box-shadow:0 4px 13px #302a1e09}
 .ai-dock .ai-mark{font-size:16px;margin-left:15px}
 .ai-dock input{font-size:16px;padding:14px 10px;line-height:1.5}
 .ai-dock input::placeholder{font-size:11px;letter-spacing:0;color:#777970}
 .ai-dock button{min-width:44px;width:44px;padding:0 10px 0 0;font-size:23px}
 .ai-dock button span{display:none}.home-topics{padding-top:30px}
}
@media(max-width:600px) and (max-height:700px){
 .hero-track .hero-copy{bottom:34%}.hero-track .hero-copy h1{font-size:34px;line-height:1.35;margin:12px 0}
 .hero-track .hero-copy p{font-size:10px;margin:9px 0}.hero-track .hero-copy>.tiny{font-size:8px}
}

/* One cover story; one shared three-line module heading. */
.hero-track .hero-copy{left:8%;bottom:26%;max-width:min(700px,76%)}
.hero-dateline{display:flex;align-items:center;gap:12px;font-size:11px;letter-spacing:1.2px;line-height:1.8;color:#f4f0e7}
.hero-track .hero-copy h1{font-size:clamp(42px,4.6vw,70px);line-height:1.45;margin:18px 0 24px;text-wrap:balance}
.hero-copy .hero-read{display:inline-flex;align-items:center;gap:18px;min-height:44px;font-size:11px;letter-spacing:1px}
.hero-read span{font-size:20px;line-height:1}
.hero-pagination{left:8%;right:8%;gap:12px;bottom:62px;justify-content:flex-end}
.hero-pagination>button{border:0;width:44px;height:44px;font-size:23px}
.hero-pagination .hero-next{margin-left:0}.hero-count{text-align:center;min-width:50px;font-size:10px}
.heading{grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center}
.heading .text-link{align-self:center;margin:0;font-size:11px}
.module-title{min-width:0}
.module-title>.tiny{display:block;font:9px/1.8 'Microsoft YaHei',sans-serif;letter-spacing:2px;color:var(--soft)}
.module-title>h1,.module-title>h2{font-family:var(--serif);font-size:34px;font-weight:400;line-height:1.4;letter-spacing:0;white-space:nowrap;margin:8px 0 0}
.module-title>.module-description{font:12px/1.8 'Microsoft YaHei',sans-serif;letter-spacing:.4px;color:var(--soft);margin:10px 0 0}
.page-head .module-title>h1,.passport-header .module-title>h1,.journal-header .module-title>h1{font-size:38px}
.journal-caption{display:block}
.cinema .module-title>.tiny,body[data-route=cinema] .module-title>.tiny{color:#c49d82}
.cinema .module-description,body[data-route=cinema] .module-description{color:#b4bcb2}
.cinema .filters{align-items:center}.film-summary{font-size:11px;line-height:1.8;color:#b4bcb2;letter-spacing:.5px}
.passport-header>.subtle{margin:0 0 3px;line-height:1.8}
.mast nav a:focus-visible{outline-offset:-4px}
@media(max-width:600px){
 .hero-track .hero-copy{left:26px;right:26px;max-width:330px;bottom:27%}
 .hero-dateline{font-size:10px;letter-spacing:.7px;gap:9px}
 .hero-track .hero-copy h1{font-size:37px;line-height:1.5;margin:14px 0 16px;max-width:100%}
 .hero-copy .hero-read{font-size:10px;gap:13px}
 .hero-pagination{left:auto;right:24px;bottom:62px;gap:8px}
 .heading{grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:24px}
 .heading .text-link{font-size:9px;align-self:center;padding-bottom:6px;margin:0}
 .module-title>.tiny,.heading .module-title>.tiny{font-size:8px;letter-spacing:1.5px;line-height:1.7}
 .module-title>h1,.module-title>h2,.heading .module-title>h2,.page-head .module-title>h1,.passport-header .module-title>h1,.journal-header .module-title>h1{font-size:28px;line-height:1.4;margin:6px 0 0}
 .module-title>.module-description{font-size:10px;line-height:1.8;letter-spacing:0;margin:7px 0 0}
 .journal-header{padding:12px 20px}
 .journal-caption{display:block}
 .journal-caption .module-description{margin-top:4px}
 .metrics{margin-top:10px;padding:10px 0}
 .archive-section .filters{grid-template-columns:90px 94px minmax(0,1fr);margin-bottom:16px}
 .passport-header>.subtle{margin:16px 0 0;font-size:10px}
 .page-head{padding-top:26px;padding-bottom:22px}
 .home-topics{padding-top:30px}
}
@media(max-width:374px){
 .heading .module-title>h2{font-size:26px}.heading .module-description{font-size:9px}
 .heading .text-link{font-size:8px}
}
@media(max-width:600px) and (max-height:700px){
 .hero-track .hero-copy{bottom:27%}.hero-track .hero-copy h1{font-size:32px;margin:10px 0 12px}
}

/* 首页：手记与集章间距取中间值，印章放大一号。 */
.home-topics{padding-bottom:56px}
.home-stamps{padding-top:24px}
.home-stamp-rail>.stamp{flex:0 0 176px;width:176px;height:180px}
.home-stamp-rail>.stamp b{font-size:26px}
.home-stamp-rail>.stamp small{font-size:9px}
.home-stamp-rail>.stamp svg{width:60px;height:40px}

/* 集章册：每页一程、散点盖章、左右侧翻页、底部自定义跳页。 */
.passport-book{position:relative}
.passport-turn{position:absolute;top:50%;transform:translateY(-50%);z-index:6;width:46px;height:132px;border:0;display:grid;place-items:center;background:#2f4239;color:#ece9db;font:30px/1 Georgia;padding:0;box-shadow:0 8px 18px #2c342c3d;transition:background .2s}
.passport-turn.prev{left:-16px;border-radius:12px 0 0 12px}
.passport-turn.next{right:-16px;border-radius:0 12px 12px 0}
.passport-turn:hover:not(:disabled){background:#3e5a4c}
.passport-turn:disabled{opacity:.35;cursor:default}
.leaf-trip{position:relative;z-index:1;display:flex;flex-direction:column;gap:4px;padding:12px 2px 0;color:#4c584a}
.leaf-trip b{font:400 21px/1.4 var(--serif);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaf-trip .tiny{font-size:9px;letter-spacing:1.2px;color:#7d8874}
.stamp-field{display:block;height:460px;min-height:0;padding:8px 0}
.stamp-field .empty{position:absolute;inset:0;display:grid;place-items:center;padding:20px}
.stamp-field .stamp{width:142px;height:142px;padding:14px;gap:4px}
.stamp-field .stamp b{font-size:22px}
.stamp-field .stamp svg{width:54px;height:36px}
.stamp-field .stamp.placed{position:absolute;left:var(--x);top:var(--y);margin:0;transform:translate(-50%,-50%) rotate(var(--r)) scale(var(--s));transition:transform .25s}
.stamp-field .stamp.placed:hover,.stamp-field .stamp.placed:focus-visible{transform:translate(-50%,-50%) rotate(0deg) scale(calc(var(--s) + .06));z-index:9}
.passport-spread.turn-next{animation:turn-next .45s ease}
.passport-spread.turn-prev{animation:turn-prev .45s ease}
@keyframes turn-next{from{opacity:.25;transform:translateX(28px) rotateY(-7deg)}to{opacity:1;transform:none}}
@keyframes turn-prev{from{opacity:.25;transform:translateX(-28px) rotateY(7deg)}to{opacity:1;transform:none}}
.passport-controls{gap:22px;flex-wrap:wrap;margin-top:30px}
.page-jump{display:flex;align-items:center;gap:10px}
.page-jump label{color:var(--soft);letter-spacing:2px;font-size:10px;line-height:1.8}
.page-jump input{width:72px;padding:11px 8px;text-align:center;border:1px solid #b9b7a8;background:#faf8f0;font:14px Georgia;color:var(--ink)}
.page-jump .btn{min-height:42px;padding:10px 18px}
@media(max-width:1300px){.stamp-field .stamp{width:136px;height:136px}}
@media(max-width:900px) and (min-width:601px){
 .stamp-field{height:430px}
 .stamp-field .stamp{width:118px;height:124px;padding:11px}
 .stamp-field .stamp b{font-size:19px}
 .stamp-field .stamp svg{width:46px;height:31px}
}
@media(max-width:600px){
 .home-topics{padding-bottom:36px}
 .home-stamps{padding-top:12px}
 .home-stamp-rail>.stamp{flex:0 0 148px;width:148px;height:156px;padding:13px}
 .home-stamp-rail>.stamp b{font-size:23px}
 .home-stamp-rail>.stamp small{font-size:8px}
 .home-stamp-rail>.stamp svg{width:48px;height:33px}
 .passport-turn{width:38px;height:100px;font-size:24px}
 .passport-turn.prev{left:-9px}
 .passport-turn.next{right:-9px}
 .leaf-trip b{font-size:18px}
 .stamp-field{height:540px;padding:6px 0}
 .stamp-field .stamp{width:124px;height:132px;padding:12px;gap:3px}
 .stamp-field .stamp b{font-size:21px}
 .stamp-field .stamp small{font-size:7px}
 .stamp-field .stamp svg{width:44px;height:30px}
 .passport-controls{gap:12px;margin-top:22px}
 .page-jump input{width:60px;padding:10px 6px}
}

/* ------------------------------------------------------------
   2026-11-16 盖章页：保持原尺寸，只保证「下拉后整本入屏」
   · 不引入任何 zoom / scale，章与内页尺寸一律不动；
   · 真实章是 .stamp.placed 绝对定位散布，切勿改 .stamp-field 的 display；
   · 收紧标题区与舞台上留白，让本子更快进入视野；
   · 页尾留可滚动余量，桌面能滚到 sticky 顶栏之下、手机能滚到 68px 固定底导航之上。
   ------------------------------------------------------------ */
body[data-route=passport] .passport-header{padding-top:20px;padding-bottom:8px}
body[data-route=passport] .passport-stage{padding-top:6px;padding-bottom:84px}
@media(max-width:600px){
 body[data-route=passport] .passport-header{padding:14px 24px 6px}
 body[data-route=passport] .passport-stage{padding:6px 16px 112px}
}
