/* 黄色仓库：暖黄识别、紧凑列表与清晰分区 */
:root {
    color-scheme: light;
    --yellow: #E6A817;
    --yellow-deep: #C48A0F;
    --ink: #2C2A26;
    --body: #3D3A35;
    --muted: #7A756C;
    --paper: #F7F5F0;
    --panel: #EDE9E0;
    --line: #DCD6CA;
    --white: #FFFEFC;
    --radius: 7px;
    --content: 1120px;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--body); font-size: 15px; line-height: 1.78; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8A5C00; }
a:focus-visible, button:focus-visible { outline: 3px solid #6E4B00; outline-offset: 3px; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 100; padding: 8px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--content), calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 210px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--panel); }
.brand strong { display: block; color: var(--ink); font-size: 20px; line-height: 1.3; letter-spacing: .03em; }
.brand small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.primary-nav { display: flex; align-items: center; gap: 7px; }
.primary-nav a { padding: 9px 15px; border-radius: 4px; color: #514C43; font-weight: 600; }
.primary-nav a:hover, .primary-nav a.is-active { background: #F5E8C6; color: #684800; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 4px; padding: 7px 12px; font: inherit; }
.page-shell { width: min(var(--content), calc(100% - 40px)); margin: 26px auto 70px; min-height: 55vh; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, .8fr); gap: 28px; align-items: center; padding: 35px 38px; border: 1px solid #D8C99F; border-left: 6px solid var(--yellow); background: linear-gradient(110deg, #FFFDF7, #F4EBD4); }
.eyebrow { margin: 0 0 8px; color: #93660A; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1, h2, h3 { color: var(--ink); line-height: 1.38; }
h1 { margin: 0 0 14px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.025em; }
h2 { margin: 0; font-size: 23px; }
h3 { margin: 0 0 7px; font-size: 17px; }
.hero-lead { max-width: 740px; margin: 0; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 17px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; }
.button-primary { background: var(--yellow); color: #30240B; }
.button-primary:hover { background: var(--yellow-deep); color: #fff; }
.button-quiet { border-color: #CFC5B1; background: #FFFEFA; color: var(--ink); }
.notice-line { margin: 17px 0 0; color: #766B58; font-size: 12px; }
.hero-index { display: grid; grid-template-columns: 1fr; border: 1px solid #DCCDAA; background: rgba(255,255,255,.55); }
.hero-index div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; border-bottom: 1px solid #E4D9C2; }
.hero-index div:last-child { border-bottom: 0; }
.hero-index strong { color: #78520A; font-size: 24px; }
.hero-index span { color: #655D50; font-size: 13px; }
.content-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-intro { max-width: 900px; margin: 0 0 15px; color: #625D54; }
.section-more, .text-link { color: #805A08; font-weight: 700; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.category-panel { min-height: 170px; padding: 18px; border: 1px solid var(--line); background: var(--white); transition: border-color .18s ease, transform .18s ease; }
.category-panel:hover { border-color: var(--yellow-deep); transform: translateY(-2px); }
.category-count { color: var(--muted); font-size: 12px; }
.category-panel h3 { margin: 7px 0 5px; font-size: 20px; }
.category-panel p { min-height: 50px; margin: 0 0 10px; color: #696359; font-size: 13px; }
.catalog-list { border-top: 1px solid var(--line); }
.catalog-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 17px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.catalog-thumb { display: block; width: 112px; height: 148px; overflow: hidden; background: var(--panel); border: 1px solid #D8D1C4; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-copy { min-width: 0; }
.catalog-copy h3 { margin: 2px 0 5px; font-size: 18px; }
.catalog-copy h3 a:hover { color: #8A5C00; }
.catalog-copy p { margin: 0 0 8px; color: #5D584F; line-height: 1.72; }
.catalog-meta, .catalog-foot { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.catalog-meta span:first-child { color: #93660A; font-weight: 700; }
.catalog-foot { margin-top: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 7px 0 0; list-style: none; }
.tag-list li { padding: 1px 8px; border: 1px solid #E1D9CA; background: #F7F4ED; color: #756D60; font-size: 11px; }
.prose-section { padding: 22px 24px; border: 1px solid var(--line); background: #F1EEE7; }
.prose-section > h2 { margin-bottom: 14px; }
.prose-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prose-columns p { margin: 0 0 11px; color: #5C574E; }
.prose-columns h3 { margin-bottom: 6px; font-size: 16px; }
.resource-note { padding: 20px 23px; border-left: 4px solid var(--yellow); background: #FFFDF8; }
.resource-note h2 { margin-bottom: 7px; font-size: 19px; }
.resource-note p { margin: 0; color: #5F594F; }
.page-intro { padding: 27px 30px; border: 1px solid var(--line); background: var(--white); }
.page-intro p:not(.eyebrow) { max-width: 920px; margin: 0; color: #5C574E; }
.page-intro-film { border-top: 4px solid var(--yellow); }
.page-intro-series { border-top: 4px solid #B79B5D; }
.intro-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.intro-facts span { padding: 4px 10px; background: var(--panel); color: #6B6254; font-size: 12px; }
.breadcrumb { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 9px; color: #B0A99D; }
.breadcrumb a { color: #80601C; }
.muted { color: var(--muted); font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; color: #625C51; font-size: 13px; }
.pagination a, .pagination .disabled { padding: 6px 12px; border: 1px solid var(--line); background: var(--white); }
.pagination a { color: #76530B; }
.pagination .disabled { color: #B3ADA2; }
.empty-state { padding: 20px; border: 1px dashed var(--line); color: var(--muted); }
.not-found { max-width: 700px; margin: 80px auto; padding: 36px; border: 1px solid var(--line); background: var(--white); }
.not-found p:not(.eyebrow) { color: var(--muted); }
.site-footer { background: #302E29; color: #E8E3D8; }
.footer-inner { width: min(var(--content), calc(100% - 40px)); margin: auto; padding: 30px 0 24px; }
.footer-brand strong { color: #F0C65D; font-size: 19px; }
.footer-brand p { margin: 3px 0 12px; color: #C4BDAF; font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 0; border-top: 1px solid #514D44; border-bottom: 1px solid #514D44; }
.footer-inner nav a { color: #E7DAB9; font-size: 13px; }
.footer-note { max-width: 850px; color: #BEB7A9; font-size: 12px; }
.footer-inner small { color: #9D968A; font-size: 11px; }
@media (max-width: 760px) {
    .header-inner { width: min(100% - 28px, var(--content)); min-height: 68px; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
    .brand { min-width: 0; }
    .brand strong { font-size: 18px; }
    .menu-toggle { display: inline-block; margin-left: auto; }
    .primary-nav { display: none; width: 100%; padding: 7px 0 3px; border-top: 1px solid var(--line); }
    .primary-nav.is-open { display: flex; flex-wrap: wrap; }
    .primary-nav a { padding: 7px 11px; }
    .page-shell { width: min(100% - 28px, var(--content)); margin-top: 16px; }
    .hero-panel { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
    .hero-index { grid-template-columns: repeat(3, 1fr); }
    .hero-index div { display: block; padding: 10px; border-right: 1px solid #E4D9C2; border-bottom: 0; }
    .hero-index strong, .hero-index span { display: block; }
    .hero-index strong { font-size: 21px; }
    .hero-index span { font-size: 11px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-panel { min-height: 0; }
    .category-panel p { min-height: 0; }
    .prose-columns { grid-template-columns: 1fr; gap: 12px; }
    .section-heading { align-items: start; }
    .section-heading > p { max-width: 48%; }
    .page-intro { padding: 22px 19px; }
    .catalog-row { grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 13px 0; }
    .catalog-thumb { width: 88px; height: 120px; }
    .catalog-copy h3 { font-size: 16px; }
    .catalog-copy p { font-size: 13px; }
    .catalog-foot { gap: 8px; }
    .prose-section { padding: 19px 17px; }
}
@media (max-width: 420px) {
    body { font-size: 14px; }
    .hero-index { grid-template-columns: 1fr; }
    .hero-index div { display: flex; border-right: 0; border-bottom: 1px solid #E4D9C2; }
    .section-heading { display: block; }
    .section-heading > p { max-width: none; margin-top: 7px; }
    .section-more { display: inline-block; margin-top: 8px; }
    .catalog-row { grid-template-columns: 76px minmax(0,1fr); gap: 10px; }
    .catalog-thumb { width: 76px; height: 106px; }
    .tag-list { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
