/* Shared styles for the static Chinese and English knowledge pages. */
.guide-body { background: #f7faf9; }
.guide-skip { position: fixed; top: -80px; left: 18px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.guide-skip:focus { top: 14px; }
.guide-body a:focus-visible, .guide-table-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.guide-language { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.guide-main { width: min(100% - 40px, 1160px); margin: 0 auto; padding: 28px 0 76px; }
.guide-breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.guide-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.guide-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: #8ca0a5; }
.guide-hero { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(130deg, #fff 45%, #eaf8f7); }
.guide-hero h1 { max-width: 24ch; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.18; overflow-wrap: anywhere; text-wrap: balance; }
.guide-hero .lead { max-width: 820px; line-height: 1.8; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.guide-risk { margin: 24px 0 10px; border-radius: 0 8px 8px 0; }
.guide-risk h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.guide-risk p + p { margin-top: 10px; }
.guide-risk p { line-height: 1.8; font-size: 14px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: clamp(28px, 5vw, 64px); margin-top: 26px; }
.guide-prose, .guide-hub-prose { min-width: 0; }
.guide-section { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.guide-section:first-child { padding-top: 12px; }
.guide-section h2, .guide-related h2, .guide-help h2 { margin: 0 0 16px; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.4; color: var(--ink); text-wrap: balance; }
.guide-section h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.5; }
.guide-section p, .guide-section li { font-size: 16px; line-height: 1.9; color: #46555c; overflow-wrap: anywhere; }
.guide-section p { margin: 12px 0; }
.guide-section ul, .guide-section ol { margin: 14px 0; padding-left: 24px; }
.guide-section li + li { margin-top: 12px; }
.guide-section a { text-decoration: underline; text-underline-offset: 3px; }
.guide-section strong { color: var(--ink); }
.guide-steps { padding-left: 30px !important; }
.guide-steps li { padding-left: 5px; }
.guide-steps li::marker { color: var(--brand-dark); font-weight: 800; }
.guide-toc { position: sticky; top: 98px; margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide-toc p { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--ink); }
.guide-toc ol { padding-left: 20px; margin: 0; font-size: 13px; line-height: 1.7; }
.guide-toc li + li { margin-top: 10px; }
.guide-toc a { color: var(--muted); }
.guide-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide-table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.guide-table-wrap th, .guide-table-wrap td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #46555c; }
.guide-table-wrap thead th { background: var(--soft); color: var(--ink); font-weight: 800; }
.guide-table-wrap tbody th { width: 23%; color: var(--ink); font-weight: 700; }
.guide-table-wrap tr:last-child th, .guide-table-wrap tr:last-child td { border-bottom: 0; }
.guide-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 38px; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.guide-card:hover { border-color: var(--brand); text-decoration: none; }
.guide-card-label { margin-bottom: 20px; color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.guide-card h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.35; }
.guide-card p { margin: 0 0 24px; line-height: 1.85; font-size: 15px; color: var(--muted); }
.guide-card-link { margin-top: auto; color: var(--brand-dark); font-size: 14px; font-weight: 800; }
.guide-hub-prose { max-width: 940px; margin: 0 auto; }
.guide-related { margin: 38px 0; }
.guide-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-related-grid a { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.guide-related-grid a:hover { border-color: var(--brand); text-decoration: none; }
.guide-related-grid span { display: block; margin-bottom: 9px; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.guide-related-grid strong { font-size: 18px; line-height: 1.55; }
.guide-help { padding: 30px; border-radius: 10px; background: var(--soft); }
.guide-help p { max-width: 760px; margin: 0; line-height: 1.85; color: var(--muted); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.guide-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-toc { position: static; grid-row: 1; margin: 0 0 24px; }
  .guide-toc ol { columns: 2; column-gap: 28px; }
  .guide-toc li { break-inside: avoid; }
  .guide-card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .guide-card-label { margin-bottom: 10px; }
  .guide-card { padding: 24px; }
}
@media (max-width: 600px) {
  .guide-main { width: calc(100% - 32px); padding-top: 22px; padding-bottom: 50px; }
  .guide-breadcrumbs { margin-bottom: 18px; }
  .guide-hero { padding: 24px 20px; }
  .guide-hero h1 { font-size: 30px; }
  .guide-hero .lead { font-size: 16px; }
  .guide-risk { padding: 16px; }
  .guide-toc { padding: 18px; }
  .guide-toc ol { columns: 1; }
  .guide-section { padding: 24px 0; scroll-margin-top: 145px; }
  .guide-related-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-help { padding: 24px 20px; }
  .guide-actions { display: grid; }
  .guide-footer-links { gap: 14px; }
  .guide-body .footer-inner { flex-direction: column; }
}
