* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/var(--pf-line-height) var(--pf-font-family);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 5px;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.45;
}
h1 {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 25px;
  font-weight: 650;
}
h3 {
  font-size: 19px;
  font-weight: 600;
}
p {
  margin-bottom: 18px;
}
small,
.small {
  font-size: 14px;
}
main {
  max-width: var(--page-max-width);
  margin: auto;
  padding: 0 var(--page-gutter);
}
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 70px;
  padding: 58px 0 52px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 13px;
  display: block;
}
.hero h1 {
  font-size: 46px;
  margin-bottom: 22px;
  line-height: 1.4;
}
.hero-description {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}
.text-link {
  font-size: 15px;
  font-weight: 600;
}
.event-note {
  border: 1px solid #d1d5c7;
  border-radius: 4px;
  padding: 25px 30px;
  background: #eceee4;
  transform: rotate(1deg);
  box-shadow: 7px 7px 0 #e4e4d9;
}
.note-top {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  color: #585e50;
}
.note-top span {
  border: 1px solid #a4ad99;
  padding: 0 7px;
}
.event-note h2 {
  font-size: 30px;
  line-height: 1.5;
  margin: 24px 0 18px;
}
.event-note em {
  font-weight: 400;
  font-style: normal;
  color: #5b6452;
}
.note-facts {
  display: flex;
  gap: 20px;
  border-top: 1px solid #c9cfbe;
  border-bottom: 1px solid #c9cfbe;
  padding: 12px 0;
  font-size: 13px;
  align-items: baseline;
}
.note-facts b {
  font-size: 22px;
  font-weight: 600;
}
.event-note p {
  font-size: 12px;
  color: #59624f;
  margin: 17px 0 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
  font-size: 24px;
}
.section-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.task-card {
  display: block;
  padding: 23px 24px 21px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.task-card:hover {
  border-color: var(--accent);
}
.card-number {
  font-family: monospace;
  color: #8a6556;
  font-size: 13px;
}
.task-card h3 {
  margin: 13px 0 11px;
  display: flex;
  justify-content: space-between;
}
.task-card h3 span {
  font-weight: 400;
  color: var(--accent);
}
.task-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.card-action {
  font-size: 12px;
  color: var(--accent);
}
.downloads {
  margin: 50px 0 44px;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.download-card {
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-border);
  display: flex;
  gap: 18px;
  border-radius: 4px;
}
.file-icon {
  font: 10px monospace;
  border: 1px solid #a9afa1;
  padding: 18px 5px;
  height: 55px;
  color: #59664f;
  background: var(--soft);
  flex: none;
}
.download-card h3 {
  margin-bottom: 7px;
}
.download-card p {
  font-size: 14px;
  margin-bottom: 12px;
}
.download-card .meta {
  font-size: 12px;
  line-height: 1.85;
}
.button {
  display: inline-block;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--brand-on-action);
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.button:hover {
  background: var(--accent-hover);
}
.small {
  color: var(--muted);
  margin-top: 16px;
}
.home-method {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.home-method p {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  max-width: var(--page-max-width);
  margin: 28px auto 0;
  padding: 30px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}
.footer-brand {
  font-size: 16px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
footer p {
  margin: 10px 0 0;
}
.breadcrumb:not(.pf-breadcrumb) {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-bottom: 27px;
}
.article-heading {
  max-width: 900px;
  padding: 34px 0 30px;
}
.article-heading h1 {
  font-size: 36px;
  margin-bottom: 18px;
  max-width: 850px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 24px;
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.toc h2 {
  font-size: 14px;
  margin-bottom: 16px;
}
.toc nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toc a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
article {
  min-width: 0;
  max-width: 850px;
}
.quick-answer {
  background: var(--soft);
  border-left: 3px solid #8c977d;
  padding: 24px 28px;
}
.quick-answer p {
  margin: 0;
}
.content-section {
  padding: 34px 0 8px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.content-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.content-section li {
  margin-bottom: 12px;
  padding-left: 4px;
}
.content-section ul {
  padding-left: 22px;
}
.example {
  border-left: 2px solid #b6bdaa;
  padding: 6px 0 0 20px;
  margin: 24px 0;
}
.example h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.copy-box {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 5px;
  margin: 20px 0;
}
.copy-heading {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.copy-heading h3 {
  font-size: 15px;
  margin: 0;
}
.copy-heading button {
  font-size: 13px;
  padding: 5px 11px;
  border: 1px solid #b9a297;
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent);
  white-space: nowrap;
}
.copy-box pre {
  font-size: 15px;
  line-height: 1.9;
  font-family: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 19px 21px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.7;
  min-width: 600px;
}
th {
  background: #eeeee5;
  color: #444c3c;
  text-align: left;
  font-weight: 600;
  padding: 13px 15px;
  white-space: nowrap;
}
td {
  padding: 13px 15px;
  border-top: 1px solid #e3e4dc;
  min-width: 90px;
  vertical-align: top;
}
caption {
  text-align: left;
  padding: 12px 15px;
  font-size: 12px;
  color: var(--muted);
}
tr:nth-child(even) td {
  background: #fbfaf6;
}
.content-section .download-card {
  margin: 24px 0;
}
.source-note {
  font-size: 13px;
  color: var(--muted);
  padding: 28px 0 15px;
}
.source-note h2 {
  font-size: 15px;
}
.related {
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
}
.related h2 {
  font-size: 18px;
}
.related a {
  display: inline-block;
  margin-right: 24px;
  font-size: 15px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
#copy-status:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
}
@media (max-width: 900px) {
  .hero {
    gap: 32px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .event-note {
    padding: 22px;
  }
  .article-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
  }
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    margin-left: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 36px;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -0.5px;
  }
  .hero-description {
    font-size: 16px;
  }
  .event-note {
    transform: none;
    box-shadow: 4px 4px 0 #e4e4d9;
  }
  .event-note h2 {
    font-size: 26px;
    margin: 16px 0;
  }
  .event-note h2 br {
    display: none;
  }
  .event-note h2 em {
    margin-left: 12px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .task-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    padding: 19px 21px;
  }
  .task-card p {
    margin-bottom: 13px;
  }
  .download-card {
    padding: 20px 16px;
    gap: 12px;
  }
  .download-card h3 {
    font-size: 18px;
  }
  .button {
    font-size: 13px;
    padding: 9px 12px;
  }
  .downloads {
    margin: 35px 0;
  }
  .article-heading {
    padding-top: 23px;
  }
  .article-heading h1 {
    font-size: 29px;
    letter-spacing: -0.5px;
  }
  .lead {
    font-size: 16px;
  }
  .article-layout {
    display: block;
  }
  .toc {
    position: static;
    margin-bottom: 26px;
    padding-top: 16px;
  }
  .toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 15px;
  }
  .toc a {
    font-size: 12px;
  }
  .quick-answer {
    padding: 20px;
  }
  .content-section h2 {
    font-size: 21px;
  }
  .content-section {
    padding-top: 29px;
  }
  .copy-heading {
    padding: 12px;
  }
  .copy-box pre {
    padding: 16px;
    font-size: 14px;
  }
  .file-icon {
    display: none;
  }
  footer {
    margin: 25px 20px 0;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 28px;
  }
  .table-scroll {
    margin: 18px 0;
  }
  td,
  th {
    padding: 11px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .site-header,
  .toc,
  .download-card,
  .copy-heading button,
  footer,
  .related {
    display: none;
  }
  body {
    background: white;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .article-layout {
    display: block;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    min-width: 0;
  }
  .content-section {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
}

.compact-table table {
  min-width: 0;
}
.compact-table td {
  min-width: 0;
}
.compact-table th:first-child,
.compact-table td:first-child {
  width: 155px;
}
@media (max-width: 600px) {
  .compact-table th:first-child,
  .compact-table td:first-child {
    width: 95px;
  }
  .table-scroll:not(.compact-table)::before {
    content: '左右滑动查看完整表格';
    display: block;
    position: sticky;
    left: 0;
    padding: 8px 12px;
    color: #61675f;
    font-size: 12px;
    background: #f0f0e8;
    width: 100%;
  }
}

/* 内容先行：板块入口直达页内成果，补充检查保持可展开。 */
.useful-hero {
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  padding: 38px 0 36px;
  align-items: start;
}
.useful-hero h1 {
  font-size: 38px;
  letter-spacing: -0.7px;
  margin-bottom: 16px;
}
.useful-hero .hero-description {
  font-size: 16px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 22px 0 10px;
}
.sample-preview {
  padding: 22px;
  background: var(--white);
  border: 1px solid #cdd1c3;
  border-top: 3px solid #8c977d;
  border-radius: 5px;
}
.sample-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.sample-preview h2 {
  font-size: 22px;
  margin: 16px 0 10px;
}
.sample-preview .table-scroll {
  margin: 12px 0;
}
.sample-preview caption {
  font-size: 11px;
  padding: 8px 12px;
}
.sample-preview th {
  display: none;
}
.sample-preview td {
  padding: 9px 12px;
  font-size: 12px;
}
.sample-preview .compact-table td:first-child {
  width: 115px;
}
.sample-preview .text-link {
  font-size: 13px;
}
.card-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: #f3e9e1;
  padding: 2px 8px;
  border-radius: 3px;
}
.task-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-width: 0;
}
.task-card h3 {
  display: block;
  font-size: 20px;
  line-height: 1.5;
  margin: 13px 0 9px;
}
.task-card .card-tag {
  align-self: flex-start;
}
.task-card p {
  font-size: 14px;
  margin-bottom: 16px;
}
.task-card .card-action {
  margin-top: auto;
  font-size: 13px;
}
.topic-picks {
  margin: 0 0 30px;
}
.topic-picks > h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}
.topic-picks .task-card {
  padding: 18px;
}
.topic-picks h3 {
  font-size: 18px;
}
.article-heading {
  max-width: 100%;
  padding-bottom: 18px;
}
.article-heading h1 {
  font-size: 32px;
  max-width: 980px;
  margin-bottom: 12px;
}
.article-heading .breadcrumb:not(.pf-breadcrumb) {
  margin-bottom: 18px;
}
.article-heading .lead {
  max-width: 820px;
  margin-bottom: 12px;
}
.topic-download {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 17px 0 10px;
}
.topic-download > span {
  font-size: 12px;
  color: var(--muted);
}
.secondary-button {
  color: var(--accent);
  background: transparent;
}
.secondary-button:hover {
  color: white;
}
.context-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.content-section {
  padding-top: 28px;
}
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0 !important;
  margin: 0 0 20px;
}
.content-section .fact-chips li {
  font-size: 13px;
  background: #e9eddf;
  color: #4c5843;
  padding: 3px 10px;
  margin: 0;
  border-radius: 3px;
}
.usage-note {
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid #cbd1bf;
  padding-left: 15px;
  margin: 20px 0;
}
.usage-note p {
  margin-bottom: 8px;
}
.supporting-section {
  padding: 0;
}
.supporting-section summary {
  cursor: pointer;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  list-style: none;
}
.supporting-section summary::-webkit-details-marker {
  display: none;
}
.supporting-section summary h2 {
  font-size: 17px;
  margin: 0;
}
.disclosure-label {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.disclosure-label::after {
  content: ' ＋';
}
.supporting-section details[open] .disclosure-label::after {
  content: ' −';
}
.supporting-section details[open] .disclosure-label {
  font-size: 0;
}
.supporting-section details[open] .disclosure-label::before {
  content: '收起';
  font-size: 12px;
}
.supporting-section details[open] .disclosure-label::after {
  font-size: 12px;
}
.support-body {
  padding-bottom: 15px;
}
.support-body p,
.support-body li {
  font-size: 14px;
}
.download-card .meta {
  margin: 14px 0 0;
}
.browse-topics {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}
.browse-topics h2 {
  font-size: 20px;
}
.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.topic-links a {
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
summary:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
}
.table-scroll:focus-visible {
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .useful-hero {
    gap: 24px;
  }
  .useful-hero h1 {
    font-size: 33px;
  }
  .topic-picks .task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topic-picks h3 {
    font-size: 17px;
  }
  .sample-preview {
    padding: 17px;
  }
}
@media (max-width: 600px) {
  .useful-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 0 28px;
  }
  .useful-hero h1 {
    font-size: 31px;
  }
  .useful-hero .hero-description {
    font-size: 15px;
  }
  .hero-actions {
    gap: 13px;
    margin: 18px 0 8px;
  }
  .hero-actions .text-link {
    font-size: 13px;
  }
  .sample-preview h2 {
    font-size: 20px;
  }
  .sample-preview .compact-table td:first-child {
    width: 95px;
  }
  .sample-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .task-card h3 {
    font-size: 19px;
  }
  .topic-picks .task-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .topic-picks .task-card {
    padding: 15px 17px;
  }
  .topic-picks .task-card h3 {
    font-size: 18px;
    margin: 8px 0 4px;
  }
  .topic-picks .task-card p {
    margin: 0 0 7px;
  }
  .article-heading h1 {
    font-size: 26px;
  }
  .article-heading .eyebrow {
    display: none;
  }
  .article-heading .lead {
    font-size: 15px;
  }
  .toc {
    margin-bottom: 12px;
  }
  .toc nav {
    display: block;
  }
  .toc a {
    display: block;
    margin: 8px 0;
    font-size: 13px;
  }
  .toc {
    position: static;
  }
  .article-layout > .toc {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px 16px;
  }
  .toc h2 {
    margin: 0 0 8px;
  }
  .content-section h2 {
    font-size: 22px;
  }
  .supporting-section summary h2 {
    font-size: 16px;
  }
  .content-section .fact-chips li {
    font-size: 12px;
  }
  .download-grid .download-card {
    padding: 20px;
  }
  .browse-topics {
    padding-bottom: 20px;
  }
}
@media print {
  .topic-picks,
  .topic-download,
  .context-note,
  .hero-actions,
  .browse-topics {
    display: none;
  }
  .supporting-section details::details-content {
    display: block;
  }
  .supporting-section details > * {
    display: block;
  }
  .disclosure-label {
    display: none;
  }
}
.toc summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.toc details[open] summary {
  margin-bottom: 16px;
}
.toc details[open] nav {
  max-height: 75vh;
  overflow-y: auto;
  padding: 4px;
}
.topic-picks .task-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* 桌面优先的完整入口：取消大卡片与侧栏，正文按需展开。 */
.topic-hub {
  max-width: 1000px;
  margin: 0 auto;
}
.topic-hub .article-heading {
  padding: 22px 0 14px;
}
.topic-hub .breadcrumb:not(.pf-breadcrumb) {
  margin-bottom: 14px;
}
.topic-hub .article-heading h1 {
  font-size: 30px;
  margin-bottom: 9px;
}
.topic-hub .lead {
  font-size: 15px;
  line-height: 1.7;
  max-width: none;
  margin-bottom: 6px;
}
.topic-hub .topic-download {
  margin: 12px 0 0;
}
.topic-hub .topic-download .button {
  padding: 7px 12px;
  font-size: 13px;
}
.content-index {
  background: #efefe6;
  border: 1px solid #dedfd4;
  border-radius: 5px;
  padding: 14px 20px;
  scroll-margin-top: 20px;
}
.index-title {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.index-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 6px 0;
}
.index-row h2 {
  font-size: 13px;
  flex: 0 0 88px;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.index-row > div {
  display: flex;
  gap: 5px 22px;
  flex-wrap: wrap;
}
.index-row a {
  font-size: 14px;
  text-decoration: none;
  padding: 2px 0;
  color: var(--ink);
  white-space: nowrap;
}
.index-row a:hover,
.index-row a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
}
.topic-reader {
  max-width: none;
  scroll-margin-top: 20px;
}
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper);
}
.reader-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reading-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reader-actions [hidden] {
  display: none;
}
.reading-note {
  padding: 10px 16px;
  background: var(--soft);
  font-size: 14px;
  margin: 0 0 18px;
}
.reader-blocks {
  border-top: 1px solid var(--line);
}
.hub-item {
  padding: 0;
  margin: 0;
  scroll-margin-top: 20px;
}
.hub-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  background: #f3f2eb;
}
.hub-item summary::-webkit-details-marker {
  display: none;
}
.hub-item summary h2 {
  font-size: 17px;
  margin: 0;
  line-height: 1.6;
}
.hub-item details[open] > summary {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-top: 19px;
  padding-bottom: 19px;
}
.hub-item details[open] > summary h2 {
  font-size: 22px;
}
.hub-item .disclosure-label {
  font-size: 0;
}
.hub-item .disclosure-label::before {
  content: '展开';
  font-size: 12px;
}
.hub-item .disclosure-label::after {
  content: ' ＋';
  font-size: 12px;
}
.hub-item details[open] .disclosure-label::before {
  content: '收起';
}
.hub-item details[open] .disclosure-label::after {
  content: ' −';
}
.item-body {
  padding: 22px 26px 18px;
  background: var(--white);
}
.item-body > p {
  font-size: 15px;
  line-height: 1.85;
  max-width: 860px;
}
.item-body .copy-box {
  margin: 16px 0;
}
.item-body .copy-box:first-child {
  margin-top: 0;
}
.item-body .table-scroll {
  margin-top: 16px;
}
.item-body .copy-box pre {
  font-size: 15px;
  line-height: 1.85;
}
.back-to-index {
  display: inline-block;
  font-size: 12px;
  margin: 12px 0 2px;
  color: var(--muted);
}
.topic-reader[data-mode='full'] .reader-controls {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--line);
}
.topic-reader[data-mode='full'] .hub-item {
  scroll-margin-top: 72px;
}
.topic-reader[data-mode='full'] .back-to-index {
  display: none;
}
.reading-extras {
  font-size: 16px;
  color: var(--muted);
  margin: 26px 0 12px;
}
.topic-hub .source-note {
  padding: 20px 0 8px;
  font-size: 12px;
}
.topic-hub .source-note h2 {
  font-size: 13px;
}
.topic-hub .source-note p {
  margin-bottom: 5px;
}
.topic-hub .related {
  padding: 20px 0 22px;
}
.topic-hub .related h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.hub-item [id] {
  scroll-margin-top: 76px;
}
@media print {
  .content-index,
  .reader-controls,
  .back-to-index {
    display: none;
  }
  .item-body {
    padding: 8px 0;
  }
  .hub-item details > summary {
    padding: 12px 0;
  }
  .hub-item .disclosure-label {
    display: none;
  }
}
.copy-box.linked-content {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.topic-reader[data-mode='full'] .copy-box.linked-content {
  border-color: var(--line);
  box-shadow: none;
}

/* 主题入口与独立详情：入口负责比较，详情保留完整阅读和就近取用。 */
.resource-hub,
.detail-page {
  max-width: 1100px;
  margin: auto;
}
.resource-hub .article-heading,
.detail-page .article-heading {
  padding: 28px 0 20px;
}
.resource-hub .article-heading h1,
.detail-page .article-heading h1 {
  font-size: 32px;
}
.resource-hub .lead {
  max-width: 850px;
  font-size: 16px;
}
.hub-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
}
.hub-jumps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.hub-jumps span {
  font: 12px monospace;
  color: var(--muted);
}
.resource-group {
  padding: 26px 0 8px;
  scroll-margin-top: 24px;
}
.group-heading {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 15px;
}
.group-heading h2 {
  font-size: 22px;
  margin: 0;
  white-space: nowrap;
}
.group-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
  gap: 18px;
  min-width: 0;
}
.resource-card:hover {
  border-color: var(--accent);
}
.resource-card:hover h3 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.resource-card h3 {
  font-size: 21px;
  margin: 0 0 10px;
}
.resource-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 14px;
}
.resource-facts {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #53604b;
}
.resource-facts li {
  padding: 1px 0;
}
.resource-action {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}
.resource-wide {
  flex-direction: row;
  align-items: center;
  padding: 23px 26px;
  gap: 30px;
}
.resource-wide > div {
  max-width: 790px;
}
.resource-wide h3 {
  font-size: 23px;
}
.resource-wide .resource-action {
  border: 1px solid #c8b2a7;
  border-radius: 4px;
  padding: 8px 14px;
}
.hub-supplement {
  margin: 24px 0;
}
.hub-supplement .supporting-section summary {
  padding: 17px 0;
}
.resource-hub > .related {
  margin-top: 30px;
}
.detail-meta {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.detail-nav {
  position: sticky;
  top: 22px;
  padding: 18px 0;
  border-top: 2px solid var(--brand-border);
}
.back-topic {
  font-size: 14px;
  font-weight: 600;
}
.detail-nav nav {
  margin: 24px 0;
}
.detail-nav h2 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 12px;
}
.detail-nav nav a {
  display: block;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  margin: 10px 0;
  line-height: 1.7;
}
.detail-nav nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.detail-download {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.detail-download .button {
  font-size: 12px;
  padding: 8px 10px;
}
.detail-download .meta {
  font-size: 12px;
  margin: 12px 0;
}
.detail-body {
  max-width: none;
}
.detail-content > .content-section {
  padding: 25px 0 16px;
}
.detail-content > .content-section:first-child {
  padding-top: 16px;
}
.detail-content h2 {
  font-size: 23px;
}
.detail-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
}
.detail-actions > span {
  font-size: 12px;
  color: var(--muted);
}
.detail-actions .button {
  font-family: inherit;
}
.script-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  padding: 14px 0 0;
}
.detail-related {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  margin-top: 20px;
}
.detail-related .section-heading > a {
  font-size: 14px;
}
.detail-related .resource-card h3 {
  font-size: 18px;
}
.detail-related .resource-card {
  padding: 18px;
}
.detail-page .breadcrumb:not(.pf-breadcrumb) {
  flex-wrap: wrap;
}
.detail-content [id] {
  scroll-margin-top: 24px;
}
@media print {
  .detail-nav,
  .detail-actions,
  .detail-related,
  .hub-jumps {
    display: none;
  }
  .detail-layout {
    display: block;
  }
  .detail-content > .content-section {
    break-inside: auto;
  }
  .copy-box {
    break-inside: avoid;
  }
}
/* 旧锚点仅用于兼容定位，不参与资源卡的布局。 */
.resource-card > [data-forward] {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
.resource-shortcuts {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--soft);
  font-size: 13px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.resource-shortcuts > span {
  color: var(--muted);
}

/* 资源库分区：按内容类型展示，预览取自真实表格与正文。 */
.library-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 55px;
  padding: 46px 0 30px;
}
.library-hero h1 {
  font-size: 40px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.library-hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}
.hero-note {
  padding: 0 0 0 28px;
  border-left: 2px solid #b8bfa9;
  flex: none;
  width: 230px;
}
.hero-note > span {
  font-size: 12px;
  color: var(--muted);
}
.hero-note strong {
  display: block;
  font-size: 23px;
  line-height: 1.55;
  font-weight: 500;
  margin: 8px 0 14px;
}
.hero-note a {
  font-size: 13px;
}
.library-nav {
  display: flex;
  gap: 30px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--line);
}
.library-nav a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.library-nav a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.library-section {
  padding: 34px 0;
  scroll-margin-top: 22px;
}
.library-section + .library-section {
  border-top: 1px solid var(--line);
}
.library-section .section-heading {
  align-items: flex-end;
  margin-bottom: 20px;
}
.section-heading > div > p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 0;
}
.section-heading > a {
  font-size: 13px;
  flex: none;
}
.library-section .resource-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.resource-item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.resource-item > [data-forward] {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
}
.resource-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px;
}
.resource-kind {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.resource-info h3 {
  font-size: 21px;
  margin: 0 0 9px;
  line-height: 1.5;
}
.resource-info h3 a {
  color: var(--ink);
  text-decoration: none;
}
.resource-info h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.resource-info h3 a > span {
  font-size: 16px;
  color: #909681;
  font-weight: 400;
}
.resource-info > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.8;
}
.resource-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.resource-controls > a {
  font-size: 12px;
}
.small-download {
  border: 1px solid #c8cebd;
  border-radius: 4px;
  padding: 4px 9px;
  text-decoration: none;
}
.small-download:hover {
  background: var(--soft);
}
.resource-preview {
  height: 174px;
  padding: 16px 18px;
  background: #edf0e6;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  flex: none;
}
.preview-label {
  display: block;
  font-size: 10px;
  color: #5d6654;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.resource-preview .table-scroll {
  margin: 0;
  background: var(--white);
  border-radius: 3px;
  border-color: #d3d8c8;
  overflow: hidden;
  box-shadow: 0 4px 12px #394f2110;
}
.resource-preview table {
  min-width: 0;
  font-size: 10px;
  line-height: 1.6;
}
.resource-preview th,
.resource-preview td {
  padding: 5px 8px;
  min-width: 0;
}
.resource-preview .compact-table td:first-child {
  width: 83px;
}
.resource-preview th {
  font-size: 10px;
}
.resource-preview td {
  max-width: 170px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.text-preview {
  background: #f1eae0;
}
.text-preview blockquote {
  margin: 0;
  font-size: 13px;
  color: #685547;
  line-height: 1.9;
}
.resource-featured .resource-info h3 {
  font-size: 21px;
}
.resource-item .resource-shortcuts {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 10px 22px;
  gap: 8px 18px;
  background: #f4f4ed;
  border-radius: 0;
  font-size: 12px;
}
.resource-game {
  border-top: 3px solid #aeb99b;
}
.resource-game .resource-info {
  padding-top: 19px;
}
.resource-game .resource-facts {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #485840;
}
.quote-pick {
  background: var(--white);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.quote-pick h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.quote-pick h3 a {
  color: var(--ink);
  text-decoration: none;
}
.quote-pick > p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 20px;
}
.quote-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.quote-actions button {
  font-size: 12px;
  border: 1px solid #c8b2a7;
  color: var(--accent);
  background: transparent;
  padding: 4px 12px;
  border-radius: 4px;
}
.quote-actions > a {
  font-size: 12px;
}
.library-journey {
  background: #eceedf;
  border: 1px solid #d8ddcb !important;
  border-radius: 8px;
  padding: 26px 28px;
  margin: 8px 0 20px;
}
.journey-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.journey-steps li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 13px 0;
  border-top: 1px solid #c8cfb9;
}
.journey-steps strong {
  font-size: 15px;
  font-weight: 500;
}
.step-number {
  font: 12px monospace;
  color: #687755;
}
.journey-steps li a > span:last-child {
  margin-left: auto;
  color: #788469;
}
.journey-steps a:hover strong {
  text-decoration: underline;
}
.article-list {
  border-top: 1px solid var(--line);
}
.article-list .resource-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  display: block;
}
.article-list .resource-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 35px;
  padding: 20px 0;
}
.article-list .resource-kind {
  grid-column: 1;
  font-size: 11px;
  margin-bottom: 4px;
}
.article-list .resource-info h3 {
  grid-column: 1;
  font-size: 20px;
  margin-bottom: 6px;
}
.article-list .resource-info > p {
  grid-column: 1;
  margin: 0;
  font-size: 14px;
  max-width: 850px;
}
.article-list .resource-facts {
  display: none;
}
.article-list .resource-controls {
  grid-column: 2;
  grid-row: 1/4;
  align-self: center;
  padding: 0;
  margin: 0;
}
.hub-choices {
  padding: 8px 0 12px;
  align-items: start;
}
.resource-hub .article-heading {
  padding-bottom: 16px;
}
.resource-hub .breadcrumb:not(.pf-breadcrumb) {
  margin-bottom: 14px;
}
.resource-group {
  padding: 18px 0 10px;
}
.resource-single .resource-item {
  display: grid;
  grid-template-columns: 38% 1fr;
}
.resource-single .resource-preview {
  height: auto;
  min-height: 190px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  padding: 24px;
}
.resource-single .resource-preview table {
  font-size: 12px;
}
.resource-single .resource-preview td {
  padding: 8px;
}
.resource-single .text-preview blockquote {
  font-size: 15px;
}
.resource-single .resource-shortcuts {
  grid-column: 1/-1;
}
.resource-group .group-heading h2 {
  font-size: 19px;
}
.resource-hub .resource-grid {
  align-items: stretch;
}
.resource-hub .resource-snippet .resource-preview {
  height: auto;
  min-height: 145px;
}
.resource-hub .resource-snippet .text-preview blockquote {
  font-size: 14px;
}
.resource-hub .resource-article .resource-preview {
  display: none;
}
.resource-hub > .related {
  margin-top: 24px;
}
.detail-compact {
  max-width: 960px;
}
.detail-compact .detail-layout {
  display: block;
}
.detail-compact .article-heading {
  padding-bottom: 12px;
}
.detail-compact .detail-content > .content-section:first-child {
  padding-top: 8px;
  border: 0;
}
.detail-compact .detail-content > .content-section:first-child > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.detail-compact .detail-content > .content-section:first-child > .fact-chips {
  display: none;
}
.detail-snippet .copy-box {
  margin: 12px 0;
}
.detail-snippet .copy-heading {
  padding: 10px 17px;
}
.detail-snippet .copy-box pre {
  padding: 14px 18px;
}
.detail-snippet .content-section:has(.copy-box:nth-of-type(6)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.detail-snippet .content-section:has(.copy-box:nth-of-type(6)) > p {
  grid-column: 1/-1;
  margin: 0;
}
.detail-snippet .content-section:has(.copy-box:nth-of-type(6)) .copy-box {
  margin: 0;
}
.detail-game .detail-actions {
  padding-top: 6px;
  margin-bottom: 8px;
}
.detail-game .detail-content > section {
  max-width: 850px;
}
.next-resources {
  background: #edf0e6;
  border: 1px solid #d8ddce;
  border-left: 3px solid #929f7f;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0 24px;
}
.next-resources > span {
  font-size: 11px;
  color: #5d6d4b;
  letter-spacing: 1px;
}
.next-resources > p {
  font-size: 14px;
  margin: 5px 0 10px;
}
.next-resources > div {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.detail-content .next-resources a {
  font-weight: 500;
}
.detail-related {
  padding: 22px 0 12px;
  margin-top: 10px;
}
.detail-related h2 {
  font-size: 18px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 28px;
}
.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
}
.related-list a:hover span:first-child {
  text-decoration: underline;
}
.source-note {
  font-size: 12px;
  padding: 14px 0 20px;
}
.source-note summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.source-note p {
  margin: 10px 0 0;
}
.reader-takeaway {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
}
.reader-takeaway .button {
  font-size: 12px;
  padding: 7px 12px;
}
.reader-takeaway > a {
  font-size: 12px;
}
.detail-meta .resource-facts {
  font-size: 12px;
}
.resource-item:focus-within {
  outline: 2px solid var(--brand-border);
  outline-offset: 3px;
}
@media print {
  .library-nav,
  .hero-note,
  .resource-controls,
  .next-resources,
  .quote-actions,
  .reader-takeaway {
    display: none;
  }
  .detail-compact .detail-content > .content-section:first-child > h2 {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
  }
  .resource-preview {
    break-inside: avoid;
  }
}
/* 首屏露出可操作资源，短句选择完整而紧凑的既有样例。 */
.library-hero {
  padding: 30px 0 22px;
}
.library-hero h1 {
  font-size: 36px;
  line-height: 1.35;
}
.library-section {
  padding-top: 28px;
  padding-bottom: 28px;
}
.library-resources .resource-preview {
  height: 152px;
}
.library-resources .resource-info {
  padding: 16px 20px;
}
.library-resources .resource-info > p {
  margin-bottom: 8px;
}
.library-resources .resource-controls {
  padding-top: 16px;
}
.library-journey {
  padding: 24px 28px;
}
.quote-grid {
  align-items: stretch;
}
/* 少量不同类型的入口不强制拉成等高空框；单篇长稿保留横向预览。 */
.resource-hub .hub-choices {
  align-items: start;
}
.hub-choices .resource-snippet .resource-preview {
  display: none;
}
.resource-single .resource-item:not(.resource-has-preview) {
  display: block;
}
.resource-hub .resource-grid:not(.hub-choices) {
  align-items: start;
}
.resource-hub .resource-article:not(.resource-featured) {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.resource-hub .resource-article:not(.resource-featured) .resource-info {
  padding: 20px 4px;
}
.preview-link {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.preview-link:hover .preview-label {
  color: var(--accent);
  text-decoration: underline;
}
.resource-preview > table {
  background: var(--white);
  border: 1px solid #d3d8c8;
  border-radius: 3px;
  box-shadow: 0 4px 12px #394f2110;
}
.resource-preview > table th:first-child {
  width: 85px;
}
.resource-single .preview-link {
  background: #f1eae0;
}
.resource-single .preview-link:has(.sheet-preview) {
  background: #edf0e6;
}
.hub-choices .resource-snippet .preview-link {
  display: none;
}
.library-resources .text-preview blockquote {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-section {
  position: relative;
}
.legacy-home-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

/* 内容扩充：场景入口、可见主题示意与带交付结果的筹办路径。 */
.library-hero {
  gap: 35px;
  padding: 32px 0 25px;
}
.library-hero h1 {
  font-size: 35px;
}
.hero-note {
  width: 294px;
  padding-left: 22px;
}
.hero-note strong {
  font-size: 27px;
  white-space: nowrap;
  margin: 10px 0;
}
.hero-note strong small {
  font-size: 13px;
}
.library-hero .hero-note p {
  font-size: 12px;
  margin-bottom: 12px;
}
.starter-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eeeee4;
  margin: 2px 0 18px;
}
.starter-path {
  display: flex;
  gap: 12px;
  padding: 19px 20px;
  min-width: 0;
}
.starter-path + .starter-path {
  border-left: 1px solid #d3d7c8;
}
.starter-number {
  font: 12px/24px monospace;
  color: #8a725c;
}
.starter-path h2 {
  font-size: 18px;
  margin: 0 0 5px;
}
.starter-path p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.starter-links {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
}
.starter-links a {
  font-size: 12px;
  text-decoration: none;
}
.starter-links a:hover {
  text-decoration: underline;
}
.library-nav {
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}
.library-section .resource-grid {
  align-items: stretch;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.theme-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--white);
}
.theme-card > a {
  text-decoration: none;
}
.theme-sample {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 300px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 40px;
  background: var(--theme-bg);
  color: var(--theme-fg);
}
.theme-sample::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid var(--theme-mark);
  border-radius: 50%;
  right: -100px;
  bottom: -130px;
  opacity: 0.65;
}
.theme-sample::before {
  content: '';
  position: absolute;
  left: 40px;
  right: 40px;
  top: 26px;
  border-top: 1px solid var(--theme-mark);
  opacity: 0.6;
}
.theme-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  opacity: 0.85;
}
.theme-sample strong {
  font-size: 42px;
  letter-spacing: 2px;
  line-height: 1.4;
  font-family: 'Songti SC', 'SimSun', serif;
  font-weight: 600;
}
.theme-subtitle {
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: 1px;
}
.theme-foot {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 30px;
  opacity: 0.7;
}
.theme-small {
  min-height: 220px;
  padding: 26px;
}
.theme-small::before {
  left: 26px;
  right: 26px;
  top: 20px;
}
.theme-small strong {
  font-size: 29px;
  letter-spacing: 1px;
}
.theme-small .theme-kicker {
  font-size: 10px;
  margin-bottom: 20px;
}
.theme-small .theme-subtitle {
  font-size: 11px;
  letter-spacing: 0;
}
.theme-small .theme-foot {
  margin-top: 25px;
}
.theme-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 16px 20px;
}
.theme-caption h3 {
  font-size: 17px;
  margin: 0;
}
.theme-caption h3 a {
  color: var(--ink);
  text-decoration: none;
}
.theme-caption h3 span {
  font-size: 14px;
  color: var(--accent);
}
.theme-caption p {
  grid-column: 1/-1;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.color-swatches {
  display: flex;
  gap: 5px;
  align-items: center;
}
.color-swatches span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #0002;
}
.palette-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 22px;
}
.theme-board {
  margin: 5px 0 25px;
}
.journey-steps {
  grid-template-columns: 1fr;
  gap: 0;
}
.journey-steps li a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  padding: 15px 0;
  gap: 14px;
  align-items: start;
}
.journey-steps li a > div {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.9fr) 1fr;
  gap: 14px;
  align-items: baseline;
}
.journey-stage {
  font-size: 12px;
  color: #687755;
}
.journey-steps strong {
  font-size: 15px;
}
.journey-steps p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.journey-steps li a:hover {
  color: var(--accent);
}
.detail-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.detail-jumps[hidden] {
  display: none;
}
.detail-nav nav {
  max-height: 55vh;
  overflow: auto;
}
.group-heading {
  flex-wrap: wrap;
  gap: 6px 22px;
}
.resource-hub .resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.resource-inspiration.resource-has-preview {
  grid-template-columns: 38% 1fr;
}
.resource-single .theme-small {
  height: 100%;
}
.theme-card a:focus-visible {
  outline-offset: -4px;
}
.theme-card:hover {
  border-color: #aa8b70;
}
@media (max-width: 1050px) {
  .library-hero h1 {
    font-size: 30px;
  }
  .hero-note {
    width: 245px;
  }
  .hero-note strong {
    font-size: 24px;
  }
  .starter-path {
    padding: 16px 14px;
  }
  .starter-number {
    display: none;
  }
  .theme-small {
    padding: 22px;
  }
  .theme-small strong {
    font-size: 25px;
  }
  .journey-steps li a > div {
    grid-template-columns: 80px 1fr;
  }
  .journey-steps p {
    grid-column: 2;
  }
  .resource-hub .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .library-hero {
    display: block;
  }
  .library-hero h1 {
    font-size: 30px;
  }
  .hero-note {
    display: none;
  }
  .starter-paths {
    grid-template-columns: 1fr;
  }
  .starter-path + .starter-path {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .starter-number {
    display: block;
  }
  .starter-path h2 {
    font-size: 17px;
  }
  .library-nav {
    gap: 10px 20px;
  }
  .library-section .resource-grid,
  .quote-grid,
  .theme-grid,
  .resource-hub .resource-grid {
    grid-template-columns: 1fr;
  }
  .library-section .section-heading {
    align-items: flex-start;
  }
  .library-journey {
    padding: 20px;
  }
  .journey-steps li a > div {
    display: block;
  }
  .journey-stage {
    display: block;
    margin-bottom: 4px;
  }
  .journey-steps strong {
    display: block;
  }
  .journey-steps p {
    margin-top: 5px;
  }
  .detail-layout {
    display: block;
  }
  .detail-nav {
    position: static;
    padding-top: 12px;
  }
  .detail-nav nav {
    display: none;
  }
  .detail-download {
    padding-top: 8px;
  }
  .detail-page .article-heading h1 {
    font-size: 27px;
  }
  .resource-single .resource-item {
    display: block;
  }
  .article-list .resource-info {
    display: block;
  }
  .article-list .resource-controls {
    padding-top: 12px;
  }
  .theme-small strong {
    font-size: 32px;
  }
  .theme-sample {
    padding: 28px;
    min-height: 240px;
  }
  .theme-sample strong {
    font-size: 32px;
  }
  .detail-snippet .content-section:has(.copy-box:nth-of-type(6)) {
    display: block;
  }
  .detail-snippet .content-section:has(.copy-box:nth-of-type(6)) .copy-box {
    margin: 12px 0;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .resource-single .resource-preview {
    min-height: 160px;
  }
  .breadcrumb:not(.pf-breadcrumb) {
    flex-wrap: wrap;
  }
}
@media print {
  .starter-paths,
  .detail-jumps {
    display: none;
  }
  .theme-sample {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .journey-steps li a > div {
    display: block;
  }
}

/* 首页统一层级：先看资源，场景与完整筹办路径后置；不影响主题及详情模板。 */
body[data-page='home'] {
  background: #faf8f3;
}
.home-edited .home-intro {
  padding: 37px 0 32px;
}
.home-intro h1 {
  font-size: 38px;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 650;
}
.home-intro p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.home-edited .library-section {
  padding: 32px 0 36px;
}
.home-edited .library-section:first-of-type {
  padding-top: 0;
}
.home-edited #ready-to-use {
  padding-top: 0;
}
.home-edited .section-heading {
  margin-bottom: 20px;
  gap: 16px;
}
.home-edited .section-heading h2 {
  font-size: 22px;
  font-weight: 600;
}
.home-edited .section-heading p {
  font-size: 13px;
  margin-top: 5px;
}
.home-edited .section-heading > a {
  font-size: 13px;
  text-decoration: none;
}
.home-edited .section-heading > a:hover {
  text-decoration: underline;
}
.home-edited .library-section + .library-section {
  border-color: #e5e1d9;
}
.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-resource {
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffefa;
  border: 1px solid #e4e1d8;
  border-radius: 9px;
}
.home-preview {
  display: block;
  text-decoration: none;
  color: inherit;
}
.home-resource .resource-preview {
  height: 190px;
  padding: 21px 20px;
  background: #e9ede4;
  border: 0;
}
.home-resource:nth-child(2) .sheet-preview {
  background: #e8ecec;
}
.home-resource .text-preview {
  background: #f1e7db;
}
.home-resource .preview-label {
  font-size: 10px;
  margin-bottom: 12px;
}
.home-resource .resource-preview table {
  font-size: 11px;
  line-height: 1.6;
}
.home-resource .resource-preview th,
.home-resource .resource-preview td {
  padding: 6px 8px;
}
.home-resource .text-preview blockquote {
  font-size: 14px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-resource-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}
.home-resource-info h3 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 9px;
}
.home-resource-info h3 a {
  color: var(--ink);
  text-decoration: none;
}
.home-resource-info h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.home-resource-info > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 22px;
}
.home-resource-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.home-resource-actions a {
  font-size: 13px;
  text-decoration: none;
  color: var(--accent);
}
.home-resource-actions a:hover {
  text-decoration: underline;
}
.home-resource-actions .home-download {
  font-size: 12px;
  color: var(--muted);
}
.home-resource:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.home-edited .theme-card {
  border: 0;
  background: transparent;
  border-radius: 8px 8px 0 0;
}
.home-edited .theme-small {
  min-height: 220px;
  border-radius: 8px;
}
.home-edited .theme-caption {
  padding: 14px 0 0;
  gap: 8px;
}
.home-edited .theme-caption p {
  display: none;
}
.home-edited .theme-caption h3 {
  font-size: 16px;
  font-weight: 500;
}
.home-edited .theme-caption h3 span {
  display: none;
}
.home-edited .theme-small strong {
  font-size: 32px;
}
.home-edited .theme-grid {
  gap: 22px;
}
.game-sample {
  height: 152px;
  padding: 19px 20px;
  background: #e9ede4;
  display: flex;
  flex-direction: column;
}
.home-game:nth-child(2) .game-sample {
  background: #f2e7d6;
}
.home-game:nth-child(3) .game-sample {
  background: #e7ecee;
}
.game-sample > span {
  font-size: 11px;
  color: var(--muted);
}
.game-sample > p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  white-space: pre-line;
  margin: 10px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.game-sample > small {
  font-size: 10px;
  color: var(--muted);
  margin-top: auto;
}
.home-game .resource-facts {
  font-size: 12px;
  gap: 6px 12px;
  margin: 0 0 20px;
}
.home-edited .quote-pick {
  border: 0;
  border-top: 2px solid #d8bda7;
  border-radius: 0;
  padding: 20px;
  background: #f1ece3;
}
.home-edited .quote-pick .resource-kind {
  display: none;
}
.home-edited .quote-pick h3 {
  font-size: 18px;
}
.home-edited .quote-pick > p {
  font-size: 13px;
}
.home-edited .quote-actions {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-edited .quote-actions > a {
  font-size: 12px;
  text-decoration: none;
}
.home-edited .library-journey {
  background: transparent;
  border: 0 !important;
  border-top: 1px solid #e5e1d9 !important;
  border-radius: 0;
  margin: 0;
  padding: 32px 0 36px;
}
.home-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.home-scenarios > div {
  min-width: 0;
  padding: 4px 0 12px;
}
.home-scenarios h3 {
  font-size: 18px;
  margin: 0 0 7px;
}
.home-scenarios p {
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--muted);
}
.home-scenarios > div > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-scenarios a {
  font-size: 13px;
  text-decoration: none;
}
.home-scenarios a:hover {
  text-decoration: underline;
}
.home-journey {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
}
.home-journey summary {
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.home-journey[open] summary {
  margin-bottom: 18px;
}
.home-reading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.home-reading > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}
.home-reading > a:hover {
  color: var(--accent);
}
.home-reading > a > span:last-child {
  color: #8c796b;
}
.home-edited .library-articles .section-heading p {
  display: none;
}
@media (max-width: 1050px) {
  .home-intro h1 {
    font-size: 34px;
  }
  .home-resource-grid,
  .home-edited .theme-grid {
    gap: 16px;
  }
  .home-resource-info {
    padding: 17px;
  }
  .home-resource-info h3 {
    font-size: 19px;
  }
  .home-resource .resource-preview {
    padding: 18px 16px;
  }
  .home-edited .theme-small strong {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  .home-edited .home-intro {
    padding: 28px 0;
  }
  .home-intro h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
  .home-intro p {
    font-size: 14px;
  }
  .home-edited .section-heading {
    align-items: flex-start;
  }
  .home-edited .section-heading h2 {
    font-size: 21px;
  }
  .home-resource-grid {
    grid-template-columns: 1fr;
  }
  .home-resource .resource-preview {
    height: 190px;
  }
  .home-resource-info > p {
    margin-bottom: 16px;
  }
  .home-edited .library-section {
    padding: 26px 0;
  }
  .home-edited .theme-grid {
    grid-template-columns: 1fr;
  }
  .home-edited .theme-small {
    min-height: 210px;
  }
  .home-edited .theme-small strong {
    font-size: 32px;
  }
  .home-edited .quote-grid,
  .home-scenarios,
  .home-reading {
    grid-template-columns: 1fr;
  }
  .home-scenarios {
    gap: 12px;
  }
  .home-scenarios > div {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .home-scenarios > div > div {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .home-edited .section-heading > a {
    font-size: 12px;
  }
  .home-journey summary {
    line-height: 1.8;
  }
  .home-resource-info h3 {
    font-size: 20px;
  }
}
@media print {
  .home-resource-actions,
  .home-journey > summary {
    display: none;
  }
  .home-journey::details-content {
    display: block;
  }
  .home-scenarios a {
    color: inherit;
  }
}

/* 与 A 方向协调共用品牌色、页头及操作，不改内页阅读结构。 */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline-color: var(--accent);
}
.button {
  border-radius: 7px;
}
.button:hover {
  background: var(--accent-hover);
}
.copy-heading button,
.quote-actions button {
  border-color: var(--brand-border);
  background: var(--brand-tint);
  border-radius: 5px;
}
.download-card {
  border-top-color: var(--accent);
  border-radius: 8px;
}
.resource-item:focus-within {
  outline-color: var(--accent);
}
.resource-kind {
  color: var(--accent);
}
.resource-facts {
  color: var(--muted);
}
.next-resources {
  background: #fff7f2;
  border-color: #edddd2;
  border-left-color: #d2a06c;
}
.next-resources > span {
  color: var(--accent);
}
.content-section .fact-chips li {
  background: #f7f3ef;
  color: #725b4b;
}
@media (max-width: 600px) {
  .button {
    font-size: 13px;
  }
}

/* 外部节目先显示来源，点击后才加载平台播放器；原站入口始终可用。 */
.external-video {
  margin: 20px 0;
  border: 1px solid #ddd8d2;
  border-radius: 14px;
  overflow: hidden;
}
.external-video-slot {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #f4f0ec;
}
.external-video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.external-video-slot button {
  max-width: calc(100% - 32px);
}
.external-video figcaption {
  padding: 16px;
  overflow-wrap: anywhere;
}
.external-video figcaption p {
  margin: 8px 0;
}
.draft-notice {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid #d7b685;
  background: #fff5e6;
  border-radius: 12px;
}
.draft-notice p {
  margin: 6px 0 0;
}
@media print {
  .external-video-slot {
    display: none;
  }
}
