/* 页面组件补充：栅格、信息表格、内容提示与可访问性细节 */
:root{--measure:72ch;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px}
main{display:block;min-width:0}
section,article,aside,nav,header,footer{min-width:0}
::selection{background:#f4d98f;color:#33270b}
hr{height:1px;border:0;background:var(--line);margin:24px 0}
small{line-height:1.6}
strong{font-weight:700}
.page-intro .section-label{margin-bottom:9px}
.page-intro h1{max-width:900px}
.page-intro p{max-width:var(--measure)}
.page-intro .summary-strip{padding-top:2px}
.hero-panel .hero-copy{min-width:0}
.hero-panel .hero-lead{max-width:62ch}
.hero-aside>a:focus-visible{outline-offset:2px}
.hero-aside>a:hover .aside-icon{background:#e0c77f}
.hero-aside>a:hover .aside-arrow{transform:translateX(2px)}
.aside-arrow{transition:transform .2s}
.section-heading>div{min-width:0}
.section-heading h2{overflow-wrap:anywhere}
.section-heading .section-label{letter-spacing:.12em}
.section-heading .section-desc{max-width:68ch}
.section-more:hover{text-decoration:underline;text-underline-offset:3px}
.intro-main{max-width:var(--measure)}
.intro-main p:last-child{margin-bottom:0}
.fact-panel h3{padding-bottom:10px;border-bottom:1px solid #ddd5c8}
.fact-row small{line-height:1.7}
.resource-row{position:relative;transition:background .18s}
.resource-row:hover{background:rgba(237,233,224,.42)}
.resource-row:focus-within{background:#fff9e9}
.resource-body h3{overflow-wrap:anywhere}
.resource-body p{max-width:var(--measure)}
.resource-cover img{object-position:center top}
.resource-kicker{align-items:center;flex-wrap:wrap}
.resource-kicker span:first-child{padding:1px 6px;background:#f3e8c8;border-radius:2px}
.tag-list li{white-space:nowrap}
.tag-list li:hover{background:#eadfca;color:#604c20}
.resource-side .text-link{display:inline-flex;align-items:center;gap:4px}
.resource-side .text-link span{font-size:16px;line-height:1}
.resource-code{overflow-wrap:anywhere}
.guide-grid{align-items:stretch}
.guide-card{display:flex;flex-direction:column}
.guide-card p{max-width:48ch}
.guide-number{font-variant-numeric:tabular-nums;letter-spacing:.12em}
.taxonomy-grid article{position:relative}
.taxonomy-grid article:after{content:"";display:block;width:24px;height:2px;margin-top:auto;padding-top:12px;border-bottom:2px solid #d6bd79}
.reading-columns{align-items:start}
.reading-columns p{max-width:var(--measure)}
.reading-columns p:first-child{border-left-color:#d3ad48}
.reading-columns p:nth-child(2){border-left-color:#d9c48d}
.reading-columns p:nth-child(3){border-left-color:#bfa76a}
.topic-pills span{border-radius:2px}
.topic-pills span:hover{background:#eee2c4}
.summary-strip span{display:inline-flex;align-items:center}
.count-badge{display:inline-block}
.breadcrumb ol{row-gap:4px}
.breadcrumb a{padding:1px 0}
.footer-brand strong{font-size:17px;letter-spacing:.04em}
.footer-links strong,.footer-note strong{margin-bottom:8px}
.footer-note p{max-width:38ch}
.copyright{letter-spacing:.04em}
.not-found{border-top:4px solid var(--yellow)}
.not-found>p:not(.section-label){max-width:55ch;margin-left:auto;margin-right:auto}
.not-found .hero-actions .button{min-width:130px}

/* 桌面端内容区的比例微调 */
@media (min-width:1000px){
  .hero-panel{grid-template-columns:minmax(0,1.62fr) minmax(280px,.78fr)}
  .hero-aside{max-width:360px;justify-self:end;width:100%}
  .intro-grid{grid-template-columns:minmax(0,1.62fr) minmax(300px,.78fr)}
  .resource-row{grid-template-columns:96px minmax(0,1fr) 165px}
  .resource-cover{width:96px;height:128px}
  .resource-body p{font-size:13.5px}
}
@media (min-width:1200px){
  .hero-panel{padding-top:48px;padding-bottom:48px}
  .content-section{padding-top:52px}
  .guide-card{padding:24px}
  .taxonomy-grid article{padding:20px}
}

/* 平板端确保操作区域与正文不会互相挤压 */
@media (min-width:701px) and (max-width:900px){
  .hero-panel{grid-template-columns:minmax(0,1.3fr) minmax(235px,.8fr)}
  .hero-copy h1{font-size:34px}
  .resource-row{grid-template-columns:76px minmax(0,1fr)}
  .resource-cover{width:76px;height:102px}
  .resource-side{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;text-align:left}
  .reading-columns{grid-template-columns:1fr 1fr}
  .reading-columns p:last-child{grid-column:1/-1}
}

/* 小屏设备中保证按钮、标签和正文的触控空间 */
@media (max-width:700px){
  .hero-actions .button{min-height:46px}
  .primary-nav a{min-height:42px;display:flex;align-items:center}
  .resource-row{column-gap:13px}
  .resource-body h3{line-height:1.5}
  .tag-list{gap:5px}
  .tag-list li{padding:3px 7px}
  .section-heading{padding-bottom:12px;margin-bottom:16px}
  .intro-main p{font-size:13px;line-height:2}
  .fact-row{padding:10px 0}
  .page-intro .topic-pills{gap:6px}
  .page-intro .topic-pills span{padding:4px 8px}
  .closing-band h2{font-size:18px}
  .closing-band p{line-height:1.8}
  .not-found h1{font-size:28px}
}

/* 极窄屏的文字断行和布局保护 */
@media (max-width:340px){
  .header-inner{padding-left:12px;padding-right:12px;gap:8px}
  .brand small{letter-spacing:0}
  .hero-panel{margin-left:8px;margin-right:8px}
  .content-section{padding-left:12px;padding-right:12px}
  .page-intro{margin-left:8px;margin-right:8px;padding-left:16px;padding-right:16px}
  .breadcrumb{padding-left:12px;padding-right:12px}
  .resource-row{grid-template-columns:52px minmax(0,1fr);gap:9px}
  .resource-cover{width:52px;height:70px}
  .resource-body p{font-size:11px}
  .resource-side{gap:4px}
  .resource-code{font-size:8px}
  .text-link{font-size:10px}
}

/* 打印与高对比模式补充 */
@media print{
  .resource-row:hover,.resource-row:focus-within{background:transparent}
  .tag-list li,.topic-pills span,.summary-strip span{background:#fff;border-color:#999;color:#111}
  .hero-aside{background:#fff;border-color:#999}
  .hero-aside>a{border-color:#bbb}
  .aside-icon{background:#fff;border:1px solid #999;color:#111}
  .closing-band{background:#fff;color:#111;border:1px solid #999}
  .closing-band h2,.closing-band p{color:#111}
  .guide-card,.taxonomy-grid article{break-inside:avoid}
  a[href]:after{content:""}
}
@media (forced-colors:active){
  .resource-row:target,.resource-row:focus-within{outline:2px solid Highlight}
  .tag-list li,.topic-pills span,.summary-strip span{border:1px solid CanvasText}
  .guide-card:before,.taxonomy-grid article:after{background:CanvasText;border-color:CanvasText}
  .resource-kicker span:first-child{border:1px solid CanvasText}
}

/* 进一步的版面细节：内容列表密度、文字层级与空状态 */
.resource-list .resource-row:nth-child(even){background:rgba(237,233,224,.18)}
.resource-list .resource-row:nth-child(even):hover{background:rgba(237,233,224,.55)}
.resource-row .resource-body{display:flex;flex-direction:column;align-items:flex-start}
.resource-row .resource-body h3{max-width:100%}
.resource-row .resource-body p{width:100%}
.resource-row .resource-side{min-width:0}
.resource-row .resource-side .text-link{white-space:nowrap}
.resource-row .resource-cover{flex:none}
.resource-list .resource-row:last-child{margin-bottom:0}
.page-intro .summary-strip{align-items:center}
.summary-strip span b{line-height:1.2}
.guide-card .guide-number{line-height:1.3}
.guide-card h3{max-width:26ch}
.guide-card p{flex:1}
.taxonomy-grid article h3{line-height:1.5}
.taxonomy-grid article p{flex:1}
.reading-columns p{overflow-wrap:anywhere}
.hero-copy .eyebrow{line-height:1.4}
.hero-copy .hero-footnote{max-width:70ch;line-height:1.7}
.hero-aside .aside-top{line-height:1.5}
.brand small{white-space:nowrap}
.footer-inner>div{min-width:0}
.footer-links a{line-height:1.7}
.footer-links a:hover{text-decoration:underline;text-underline-offset:3px}
.copyright{line-height:1.6}
.not-found .section-label{letter-spacing:.12em}
.not-found>p{line-height:2}
.empty-state{line-height:1.9}

/* 内容页面的标题宽度与节奏 */
.inner-page .content-section:first-of-type{padding-top:36px}
.inner-page .content-section:last-of-type{padding-bottom:0}
.movie-intro{border-left-color:#d8a01a}
.series-intro{border-left-color:#c48a0f}
.taxonomy-section .section-heading{margin-bottom:17px}
.detail-reading .section-heading{margin-bottom:18px}
.page-intro .section-label:before{content:"";width:16px;height:2px;background:var(--yellow)}
.section-heading .section-label:before{content:"";width:14px;height:2px;background:#d8b75f}
.section-heading .section-desc{line-height:1.75}
.section-more{line-height:1.7}
.count-badge{line-height:1.6}
.breadcrumb{line-height:1.7}
.breadcrumb li:last-child span{font-weight:700}

/* 适配不同浏览器的滚动条和表单基础样式 */
*{scrollbar-color:#c9c0b0 #f1eee7;scrollbar-width:thin}
button{appearance:none;-webkit-appearance:none}
button:disabled{cursor:not-allowed;opacity:.55}
input,select,textarea{font:inherit;color:inherit}
::placeholder{color:#918a7d;opacity:1}

/* 图片未到位时的布局稳定性 */
.resource-cover{aspect-ratio:3/4}
.resource-cover img{aspect-ratio:3/4}
.brand img{flex:0 0 44px}
@media (max-width:700px){.brand img{flex-basis:38px}}
@media (max-width:360px){.brand img{flex-basis:34px}}

/* 减少动态效果的系统设置优先于悬停动画 */
@media (prefers-reduced-motion:reduce){
  .resource-cover img,.aside-arrow,.resource-row,.button{transition-duration:0s!important}
  .resource-cover:hover img{transform:none}
  .aside-arrow{transform:none!important}
}

/* 深色系统偏好不强制切换品牌底色，确保既定浅色视觉主题稳定 */
@media (prefers-color-scheme:dark){
  :root{color-scheme:light}
  body{background:var(--paper);color:var(--text)}
}
