/* 黄色仓库：暖黄识别、浅暖背景、连续资源列表 */
:root {
    color-scheme: light;
    --brand: #e6a817;
    --brand-deep: #c48a0f;
    --ink: #2c2a26;
    --body: #3d3a35;
    --muted: #7a756c;
    --paper: #f7f5f0;
    --panel: #fffefa;
    --soft: #ede9e0;
    --line: #ded8cc;
    --max-width: 1120px;
    --radius: 7px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 15px;
    line-height: 1.78;
}
a { color: #79560a; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #4f3908; }
a:focus-visible, button:focus-visible { outline: 3px solid #7b5a13; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 8px 14px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 10px; }
.site-header {
    background: #fffefa;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 13px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 205px; }
.brand-lockup img { width: 42px; height: 42px; object-fit: contain; }
.brand-lockup strong { display: block; font-size: 19px; line-height: 1.35; letter-spacing: .04em; }
.brand-lockup small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.main-nav a { display: inline-block; padding: 8px 15px; color: var(--body); text-decoration: none; border-radius: 4px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: #f5e7bf; color: #604506; }
.page-shell { max-width: var(--max-width); margin: 0 auto; padding: 27px 24px 64px; }
.hero-panel {
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr);
    gap: 32px; padding: 30px; background: var(--panel); border: 1px solid var(--line);
    border-top: 4px solid var(--brand); border-radius: var(--radius);
}
.eyebrow, .section-kicker { margin: 0 0 7px; color: #8b650d; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1, h2, h3 { color: var(--ink); line-height: 1.42; }
h1 { margin: 0 0 14px; font-size: clamp(27px, 3.2vw, 37px); font-weight: 700; }
h2 { margin: 0; font-size: 23px; font-weight: 700; }
h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
.hero-lead { font-size: 17px; color: #292720; }
.hero-aside { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-aside > img { width: 100%; max-height: 210px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.aside-caption { display: flex; flex-direction: column; padding: 10px 2px 0; }
.aside-caption strong { color: var(--ink); }
.aside-caption span { color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-top: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 17px; border: 1px solid var(--brand-deep); border-radius: 4px; text-decoration: none; font-weight: 700; }
.button-primary { background: var(--brand); color: #2c2618; }
.button-primary:hover { background: #d99b0d; color: #211b0d; }
.button-outline { background: transparent; color: #674b0b; }
.button-outline:hover { background: #f7edcf; }
.text-link { font-weight: 700; }
.content-section { margin-top: 29px; padding: 25px 27px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.section-more { white-space: nowrap; font-weight: 700; font-size: 13px; }
.section-intro { max-width: 900px; color: #5c574e; margin-bottom: 17px; }
.resource-list { display: flex; flex-direction: column; }
.resource-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 17px; padding: 17px 0; border-top: 1px solid var(--line); }
.resource-row:first-child { border-top: 0; }
.resource-cover { width: 88px; height: 118px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; background: var(--soft); }
.resource-copy p { margin: 3px 0 5px; }
.resource-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: 12px; }
.type-tag { display: inline-block; padding: 1px 8px; color: #6b4b05; background: #f7e9c1; border-radius: 3px; }
.minor-line, .watch-note { color: var(--muted); font-size: 12px; }
.watch-note { padding-left: 9px; border-left: 2px solid var(--brand); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.category-panel { padding: 25px 27px; }
.category-panel + .category-panel { border-left: 1px solid var(--line); background: #fbf9f4; }
.category-panel h2 { margin-bottom: 9px; }
.category-count { margin: 14px 0; color: var(--muted); font-size: 13px; }
.category-count strong { color: var(--ink); font-size: 18px; }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 20px; }
.guide-item { display: flex; gap: 12px; padding: 15px; background: #f8f5ed; border: 1px solid var(--line); border-radius: 4px; }
.guide-number { color: #a67508; font-size: 19px; font-weight: 700; }
.guide-item h3 { margin: 0 0 5px; font-size: 15px; }
.guide-item p { margin: 0; color: #5e594f; font-size: 13px; }
.note-section { background: #f1eee6; }
.note-section h2 { margin-bottom: 10px; }
.note-section p:last-child { margin-bottom: 0; }
.page-intro { padding: 27px 30px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.page-intro > p:not(.eyebrow) { max-width: 900px; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.summary-strip strong { margin-left: 5px; color: var(--ink); font-size: 17px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.topic-tags span { padding: 4px 10px; background: #f1ecdf; border: 1px solid #e4dccb; border-radius: 3px; color: #665b45; font-size: 12px; }
.muted-count { color: var(--muted); font-size: 13px; }
.detail-copy h2 { margin-bottom: 11px; }
.detail-copy h3 { margin-top: 22px; }
.detail-copy p { max-width: 940px; }
.error-panel { padding: 65px 30px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.error-panel p { max-width: 620px; margin: 0 auto; }
.error-panel .hero-actions { justify-content: center; }
.site-footer { background: #302d27; color: #e8e2d5; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 30px 24px 24px; }
.footer-brand { color: #f3c75d; font-size: 19px; font-weight: 700; text-decoration: none; }
.footer-inner p { margin: 4px 0 12px; color: #c8c1b4; font-size: 13px; }
.footer-links { display: flex; gap: 18px; margin: 13px 0; }
.footer-links a { color: #f1d995; font-size: 13px; }
.footer-inner .legal-note { max-width: 850px; padding-top: 12px; border-top: 1px solid #514c42; line-height: 1.7; }
.footer-inner small { color: #a9a294; font-size: 11px; }
@media (max-width: 760px) {
    .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 17px; }
    .main-nav { width: 100%; gap: 3px; }
    .main-nav a { padding: 7px 11px; font-size: 13px; }
    .page-shell { padding: 17px 14px 40px; }
    .hero-panel { grid-template-columns: 1fr; gap: 18px; padding: 22px 19px; }
    .hero-aside { max-width: 420px; }
    .content-section { padding: 20px 18px; margin-top: 18px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .split-section { grid-template-columns: 1fr; }
    .category-panel + .category-panel { border-left: 0; border-top: 1px solid var(--line); }
    .guide-list { grid-template-columns: 1fr; gap: 9px; }
    .page-intro { padding: 22px 19px; }
    .resource-row { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .resource-cover { width: 72px; height: 100px; }
}
@media (max-width: 420px) {
    body { font-size: 14px; }
    h1 { font-size: 26px; }
    h2 { font-size: 20px; }
    .resource-row { grid-template-columns: 1fr; }
    .resource-cover { width: 100%; height: 155px; object-position: center 30%; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 11px; }
    .summary-strip { gap: 9px 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
