@charset "UTF-8";
:root {
  color-scheme: light;
  --yellow: #E6A817;
  --yellow-deep: #C48A0F;
  --ink: #2C2A26;
  --paper: #F7F5F0;
  --panel: #EDE9E0;
  --text: #3D3A35;
  --muted: #7A756C;
  --line: #DED8CC;
  --white: #FFFEFC;
  --shadow: 0 8px 24px rgba(44, 42, 38, .055);
  --content: 1160px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font-size: 15px; line-height: 1.82; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8A5D00; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(196, 138, 15, .7); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 100; top: -60px; left: 16px; padding: 9px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 20; background: rgba(255,254,252,.96); border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--content), calc(100% - 44px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.35; }
.brand strong { color: var(--ink); font-size: 19px; letter-spacing: .04em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a { padding: 9px 17px; color: #625D53; border-radius: 3px; font-size: 14px; transition: background .18s ease, color .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: #F5E8C5; color: #5D4100; }
.nav-toggle { display: none; width: 44px; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); cursor: pointer; }
.toggle-lines, .toggle-lines::before, .toggle-lines::after { display: block; width: 19px; height: 2px; margin: auto; background: var(--ink); position: relative; }
.toggle-lines::before, .toggle-lines::after { content: ""; position: absolute; left: 0; }
.toggle-lines::before { top: -6px; }
.toggle-lines::after { top: 6px; }
.site-main { min-height: 65vh; }
.home-intro { width: min(var(--content), calc(100% - 44px)); margin: 34px auto 0; padding: 42px 48px; background: #F0E8D7; border: 1px solid #E6D8B8; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(210px, .7fr); align-items: center; gap: 36px; }
.eyebrow { margin: 0 0 9px; color: #9A6B08; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; }
h1 { margin-bottom: 15px; font-size: clamp(29px, 4vw, 42px); font-weight: 700; letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: clamp(22px, 2.5vw, 29px); font-weight: 650; }
h3 { margin-bottom: 8px; font-size: 18px; }
.lead { max-width: 720px; margin-bottom: 22px; color: #514B41; font-size: 16px; line-height: 1.95; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 19px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 650; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--yellow); color: #2F281A; }
.button-primary:hover { background: #D99A0B; color: #211B11; }
.button-outline { border-color: #B7A77F; color: #51452B; background: rgba(255,255,255,.3); }
.button-outline:hover { background: #FFF9EA; }
.domain-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.domain-note strong { color: #625B4D; font-weight: 600; }
.intro-mark { min-height: 230px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; border-left: 1px solid #DCCDAA; text-align: center; }
.intro-mark img { width: 128px; height: 128px; object-fit: contain; margin-bottom: 10px; }
.intro-mark strong { display: block; color: var(--ink); font-size: 20px; }
.intro-mark span { color: var(--muted); font-size: 12px; }
.content-section { width: min(var(--content), calc(100% - 44px)); margin: 48px auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-panel { position: relative; min-height: 215px; padding: 23px 24px 20px; background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.category-panel:hover { border-color: #D7B65F; box-shadow: var(--shadow); transform: translateY(-2px); }
.category-number { display: inline-block; margin-bottom: 12px; color: #B08015; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.category-panel h3 { margin-bottom: 7px; font-size: 20px; }
.category-panel p { margin-bottom: 16px; color: #6B655B; font-size: 13px; line-height: 1.8; }
.panel-link { color: #8A620D; font-size: 13px; font-weight: 700; }
.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 142px 1fr; gap: 24px; padding: 19px 4px; border-bottom: 1px solid var(--line); }
.feature-tag { align-self: start; width: fit-content; min-width: 90px; padding: 4px 10px; border-left: 3px solid var(--yellow); background: #F0E9D9; color: #735311; font-size: 12px; text-align: center; }
.feature-row h3 { margin: 0 0 5px; font-size: 18px; }
.feature-row p { margin: 0 0 6px; color: #625D54; font-size: 13px; }
.feature-meta { color: var(--muted); font-size: 11px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.insight-item { padding: 21px 22px; background: #F0EDE6; border-top: 3px solid #D9A322; }
.insight-item h3 { font-size: 17px; }
.insight-item p { min-height: 112px; margin-bottom: 14px; color: #625D54; font-size: 13px; }
.text-link { color: #8A620D; font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr); gap: 28px; }
.guide-main { padding: 22px 25px; background: var(--white); border: 1px solid var(--line); }
.guide-main p { margin-bottom: 13px; color: #514D45; font-size: 14px; }
.guide-main p:last-child { margin-bottom: 0; }
.guide-aside { padding: 22px 24px; background: #F0E8D7; border: 1px solid #E5D7B8; }
.guide-aside h3 { font-size: 17px; }
.guide-aside ul { margin: 0; padding-left: 19px; color: #5E574A; font-size: 13px; }
.guide-aside li { margin: 7px 0; }
.note-list { border-top: 1px solid var(--line); }
.note-list article { display: grid; grid-template-columns: 245px 1fr; gap: 25px; padding: 17px 3px; border-bottom: 1px solid var(--line); }
.note-list h3 { margin: 0; font-size: 15px; }
.note-list p { margin: 0; color: #696359; font-size: 13px; }
.page-banner { width: min(var(--content), calc(100% - 44px)); margin: 30px auto 0; padding: 30px 36px 27px; background: #F0E8D7; border: 1px solid #E6D8B8; }
.breadcrumbs { margin-bottom: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: #B5A98F; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-banner h1 { margin-bottom: 10px; font-size: clamp(27px, 3.5vw, 36px); }
.banner-lead { max-width: 850px; margin-bottom: 18px; color: #5D564A; font-size: 14px; }
.banner-stats { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 14px; border-top: 1px solid #DCCDAA; color: #716650; font-size: 12px; }
.banner-stats strong { margin-right: 4px; color: #5E430A; font-size: 17px; }
.listing-section { margin-top: 38px; }
.entry-list { border-top: 1px solid var(--line); }
.entry-row { display: grid; grid-template-columns: 104px 1fr; gap: 20px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.entry-cover { width: 104px; height: 144px; object-fit: cover; background: #E5E0D6; border: 1px solid #D8D1C5; }
.entry-copy h3 { margin: 4px 0 5px; font-size: 18px; }
.entry-copy p { margin: 0 0 7px; color: #625D54; font-size: 13px; line-height: 1.78; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #9A741D; font-size: 11px; }
.entry-credit { color: var(--muted) !important; font-size: 11px !important; }
.empty-state { padding: 30px; background: var(--white); color: var(--muted); text-align: center; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 24px; }
.pagination a, .pagination span { display: grid; min-width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); background: var(--white); font-size: 13px; }
.pagination span { border-color: var(--yellow); background: var(--yellow); color: var(--ink); font-weight: 700; }
.detail-reading { padding: 25px 28px; background: #F0EDE6; border: 1px solid var(--line); }
.detail-reading h2 { margin-bottom: 18px; font-size: 21px; }
.prose-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.prose-columns p { margin: 0; color: #5F5A51; font-size: 13px; }
.prose-columns strong { color: var(--ink); }
.related-line { margin: 19px 0 0; padding-top: 14px; border-top: 1px solid #D8D1C5; color: var(--muted); font-size: 13px; }
.related-line a, .taxonomy-grid a { color: #8A620D; font-weight: 700; }
.type-strip { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; border-top: 1px solid #DCCDAA; }
.type-strip > * { display: flex; flex-direction: column; min-width: 135px; padding: 6px 15px; border-left: 2px solid var(--yellow-deep); }
.type-strip strong { color: #5E430A; font-size: 20px; line-height: 1.3; }
.type-strip span { color: #716650; font-size: 11px; }
.taxonomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.taxonomy-grid article { padding: 22px 24px; border: 1px solid var(--line); background: var(--white); }
.taxonomy-grid p { color: #625D54; font-size: 13px; }
.taxonomy-grid a { font-size: 13px; }
.error-page { width: min(720px, calc(100% - 44px)); margin: 90px auto 110px; padding: 50px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.error-code { margin: 0; color: var(--yellow-deep); font-size: 74px; font-weight: 800; line-height: 1.1; }
.error-page h1 { margin: 15px 0 9px; font-size: 28px; }
.error-page > p:not(.error-code) { color: var(--muted); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.site-footer { margin-top: 65px; background: #302E29; color: #D6D0C4; }
.footer-inner { width: min(var(--content), calc(100% - 44px)); margin: 0 auto; padding: 35px 0 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 40px; }
.footer-name { color: #F2C75D; font-size: 20px; font-weight: 700; }
.footer-brand p { margin: 6px 0 0; color: #B6B0A5; font-size: 12px; }
.footer-links { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #E1DCD2; font-size: 13px; }
.footer-links a:hover { color: #F2C75D; }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #514E46; color: #9F998F; font-size: 11px; }
@media (max-width: 820px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 71px; left: 0; right: 0; padding: 10px 22px 16px; flex-direction: column; align-items: stretch; gap: 3px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 13px; }
  .home-intro { padding: 32px; grid-template-columns: 1fr 190px; gap: 20px; }
  .intro-mark { min-height: 190px; padding: 12px; }
  .intro-mark img { width: 100px; height: 100px; }
  .category-grid { gap: 10px; }
  .category-panel { padding: 18px; }
  .insight-grid { gap: 10px; }
  .insight-item { padding: 18px; }
  .insight-item p { min-height: 150px; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .header-inner, .home-intro, .content-section, .page-banner, .footer-inner { width: min(100% - 28px, var(--content)); }
  .brand { min-width: 0; }
  .brand strong { font-size: 17px; }
  .home-intro { margin-top: 16px; padding: 25px 21px; grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .lead { font-size: 14px; }
  .intro-mark { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 0 0; border-left: 0; border-top: 1px solid #DCCDAA; text-align: left; }
  .intro-mark img { width: 66px; height: 66px; margin: 0; }
  .intro-mark strong { font-size: 17px; }
  .content-section { margin: 35px auto; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 9px; }
  .category-grid, .insight-grid, .taxonomy-grid { grid-template-columns: 1fr; }
  .category-panel { min-height: 0; }
  .insight-item p { min-height: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .guide-layout { grid-template-columns: 1fr; gap: 12px; }
  .guide-main, .guide-aside { padding: 18px; }
  .note-list article { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .page-banner { margin-top: 14px; padding: 22px 19px; }
  .breadcrumbs { margin-bottom: 14px; }
  .banner-stats { gap: 8px 15px; }
  .entry-row { grid-template-columns: 82px 1fr; gap: 13px; padding: 14px 0; }
  .entry-cover { width: 82px; height: 116px; }
  .entry-copy h3 { font-size: 16px; }
  .entry-copy p { font-size: 12px; }
  .prose-columns { grid-template-columns: 1fr; gap: 13px; }
  .detail-reading { padding: 20px 18px; }
  .type-strip > * { min-width: 112px; padding-left: 10px; }
  .error-page { margin: 50px auto 70px; padding: 32px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 细节状态与长文本排版 */
::selection { background: #F1D68E; color: #2C2A26; }
button:disabled, a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.entry-row:hover { background: rgba(255, 254, 252, .56); }
.entry-row:focus-within { background: #FFFDF7; }
.entry-copy .text-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 1px; }
.banner-stats span { display: inline-flex; align-items: baseline; }
.page-banner .eyebrow { margin-bottom: 7px; }
.home-resource .section-heading { align-items: center; }
.reading-section .section-heading { align-items: center; }
.watch-guide { scroll-margin-top: 24px; }
.watch-guide:target { outline: 2px solid rgba(196, 138, 15, .45); outline-offset: 8px; }
.guide-aside li::marker { color: var(--yellow-deep); }
.category-panel:focus-visible, .taxonomy-grid a:focus-visible { outline-offset: 4px; }
.brand:focus-visible { border-radius: 3px; }
.footer-links a:focus-visible { color: #F2C75D; }
@media (min-width: 1200px) {
  .home-intro { padding-left: 54px; padding-right: 54px; }
  .content-section { margin-top: 54px; margin-bottom: 54px; }
}
@media (max-width: 420px) {
  .header-inner { width: calc(100% - 24px); }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: 10px; }
  .intro-actions { align-items: stretch; }
  .intro-actions .button { flex: 1 1 100%; }
  .entry-row { grid-template-columns: 74px 1fr; gap: 11px; }
  .entry-cover { width: 74px; height: 106px; }
  .entry-meta { gap: 5px; }
  .type-strip { gap: 7px; }
  .type-strip > * { min-width: calc(50% - 7px); }
}

/* 打印样式：保留作品资料层级，隐藏纯交互控件。 */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .nav-toggle, .intro-actions, .pagination,
  .skip-link, .footer-links, .button { display: none !important; }
  .site-main, .content-section, .home-intro, .page-banner {
    width: 100%; margin: 0; padding: 12pt 0; border: 0; background: #fff;
  }
  h1, h2, h3 { color: #111; break-after: avoid; }
  .entry-row, .feature-row, .note-list article, .taxonomy-grid article {
    break-inside: avoid; background: #fff;
  }
  a { color: #111; text-decoration: underline; }
  .entry-cover { max-width: 72pt; height: auto; }
}
/* 更清晰的键盘焦点与高对比显示。 */
@media (forced-colors: active) {
  .button, .category-panel, .entry-row, .page-banner, .home-intro {
    border: 1px solid CanvasText;
  }
  .button-primary, .pagination span { forced-color-adjust: auto; }
  .primary-nav a[aria-current="page"] { outline: 2px solid Highlight; }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #514B41;
    --line: #9A9387;
    --text: #24221F;
  }
  .entry-meta, .feature-meta, .domain-note, .banner-stats,
  .category-panel p, .insight-item p, .note-list p {
    color: #403B33;
  }
  .button-outline { border-width: 2px; }
  .entry-row, .feature-row, .note-list article { border-bottom-width: 2px; }
}
/* 目录文本长度变化时维持稳定的阅读节奏。 */
.entry-copy, .feature-row > div:last-child, .guide-main, .insight-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.entry-copy p, .guide-main p, .detail-reading p {
  text-wrap: pretty;
}
.entry-copy h3, .feature-row h3, .insight-item h3 {
  text-wrap: balance;
}
.category-panel, .insight-item, .taxonomy-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.category-panel .panel-link, .insight-item .text-link, .taxonomy-grid a {
  margin-top: auto;
}
.entry-row:last-child, .feature-row:last-child, .note-list article:last-child {
  border-bottom-color: transparent;
}
.site-footer a, .primary-nav a, .text-link, .panel-link {
  text-underline-offset: 3px;
}
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 621px) {
  .listing-section .entry-row { padding-top: 20px; padding-bottom: 20px; }
  .listing-section .entry-cover { transition: transform .2s ease; }
  .listing-section .entry-row:hover .entry-cover { transform: scale(1.025); }
  .page-banner { position: relative; }
  .page-banner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8px;
    height: 42%;
    background: var(--yellow);
  }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand strong { font-size: 16px; }
  .brand small { letter-spacing: 0; }
  .entry-row { grid-template-columns: 66px minmax(0, 1fr); }
  .entry-cover { width: 66px; height: 96px; }
  .entry-copy p { line-height: 1.65; }
  .pagination { gap: 4px; }
  .pagination a, .pagination span { min-width: 32px; height: 32px; }
}
