:root {
  color-scheme: light;
  --resource-ink: #162033;
  --resource-muted: #667085;
  --resource-line: #e5eaf2;
  --resource-blue: #2563eb;
  --resource-blue-soft: #eff6ff;
  --resource-surface: rgba(255, 255, 255, .94);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f6f8fc; }
body { margin: 0; color: var(--resource-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: radial-gradient(circle at 50% -20%, #eaf3ff 0, #f6f8fc 46%, #f6f8fc 100%); }
a { color: inherit; }
.resource-header { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.resource-header img { display: block; width: 180px; height: auto; }
.resource-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--resource-muted); font-size: 13px; }
.resource-breadcrumb a { color: var(--resource-blue); text-decoration: none; }
.resource-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.resource-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.resource-main, .resource-aside, .resource-index-card { border: 1px solid var(--resource-line); border-radius: 22px; background: var(--resource-surface); box-shadow: 0 16px 42px rgba(35, 52, 79, .06); }
.resource-main { padding: clamp(24px, 4vw, 48px); }
.resource-aside { position: sticky; top: 20px; padding: 24px; }
.resource-eyebrow { margin: 0 0 12px; color: var(--resource-blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.resource-main h1 { max-width: 760px; margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.18; letter-spacing: -.04em; }
.resource-cover { max-width: 420px; margin: 24px 0 0; }
.resource-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: linear-gradient(135deg, #eaf3ff, #f6f8fc); }
.resource-lead { max-width: 720px; margin: 20px 0 0; color: #475467; font-size: 17px; line-height: 1.85; }
.resource-topic-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; color: var(--resource-muted); font-size: 13px; line-height: 1.7; }
.resource-topic-nav a { color: var(--resource-blue); text-decoration: none; }
.resource-topic-nav a:hover { text-decoration: underline; }
.resource-live-title-note { display: block; margin-top: 8px; color: #667085; font-size: 13px; line-height: 1.65; }
.resource-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.resource-fact { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; color: #475467; background: #f2f4f7; font-size: 12px; }
.resource-section { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--resource-line); }
.resource-section h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.02em; }
.resource-section p { margin: 0; color: #475467; line-height: 1.85; white-space: pre-line; }
.resource-section ul { margin: 12px 0 0; padding-left: 20px; color: #475467; line-height: 1.9; }
.resource-files { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.resource-files li { padding: 10px 12px; border: 1px solid #edf0f5; border-radius: 10px; color: #475467; font-size: 13px; overflow-wrap: anywhere; }
.resource-clue-label { margin-top: 18px !important; color: var(--resource-muted) !important; font-size: 12px; }
.resource-note { margin-top: 18px; padding: 13px 14px; border-radius: 12px; color: #667085; background: #f8fafc; font-size: 12px; line-height: 1.7; }
.resource-aside h2 { margin: 0; font-size: 17px; }
.resource-aside-label { margin: 22px 0 6px; color: var(--resource-muted); font-size: 12px; }
.resource-aside-value { margin: 0; color: var(--resource-ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.resource-status { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 5px 9px; border: 1px solid transparent; border-radius: 7px; color: #9a6700; background: #fff7df; font: inherit; font-size: 12px; cursor: pointer; }
.resource-status:disabled { cursor: wait; opacity: .72; }
.resource-status-valid { color: #166534; background: #ecfdf3; border-color: #bbf7d0; }
.resource-status-uncertain { color: #9a6700; background: #fff7df; border-color: #fde68a; }
.resource-status-checking { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.resource-open { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 24px; border-radius: 12px; color: #fff; background: var(--resource-blue); font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.resource-open:hover { background: #1d4ed8; transform: translateY(-1px); }
.resource-open.is-disabled { color: #98a2b3; background: #f2f4f7; pointer-events: none; }
.contact-qr { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--resource-line); text-align: center; }
.contact-qr img { display: block; width: min(100%, 180px); height: auto; margin: 0 auto; border-radius: 12px; background: #fff; }
.contact-qr p { margin: 10px 0 0; color: var(--resource-muted); font-size: 12px; line-height: 1.6; }
.resource-back { display: inline-flex; margin-top: 24px; color: var(--resource-blue); font-size: 13px; text-decoration: none; }
.resource-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 30px; color: #98a2b3; font-size: 12px; line-height: 1.7; }
.resource-footer a { color: #667085; }
.resource-directory-page { padding-top: 34px; }
.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; }
.resource-directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; color: var(--resource-muted); font-size: 13px; }
.resource-directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.resource-directory-heading .resource-eyebrow { margin-bottom: 8px; }
.resource-directory-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -.045em; }
.resource-directory-heading .resource-lead { margin: 10px 0 0; color: var(--resource-muted); font-size: 14px; line-height: 1.6; }
.resource-directory-home { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid #d4e1f1; border-radius: 10px; color: var(--resource-blue); background: rgba(255,255,255,.82); font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.resource-directory-home:hover { border-color: #9ebce6; background: var(--resource-blue-soft); transform: translateY(-1px); }
.resource-tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; padding: 14px 0 3px; border-top: 1px solid var(--resource-line); }
.resource-tag-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border: 1px solid #dce6f2; border-radius: 999px; color: #52657e; background: rgba(255,255,255,.78); font-size: 12px; line-height: 1; text-decoration: none; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.resource-tag-chip span { color: #98a2b3; font-size: 11px; }
.resource-tag-chip:hover { border-color: #a9c7ef; color: var(--resource-blue); background: var(--resource-blue-soft); transform: translateY(-1px); }
.resource-tag-chip.is-active { border-color: var(--resource-blue); color: #fff; background: var(--resource-blue); box-shadow: 0 4px 12px rgba(37,99,235,.16); }
.resource-tag-chip.is-active span { color: rgba(255,255,255,.8); }
.resource-topic-intro { margin-top: 28px; padding: 22px; border: 1px solid var(--resource-line); border-radius: 18px; background: linear-gradient(145deg, #f8fbff, #fff); }
.resource-topic-intro h2, .resource-directory-note h2 { margin: 0; color: var(--resource-ink); font-size: 19px; letter-spacing: -.02em; }
.resource-topic-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.resource-topic-links a { display: block; padding: 13px 14px; border: 1px solid #e1eaf5; border-radius: 12px; color: var(--resource-ink); background: rgba(255,255,255,.82); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.resource-topic-links a:hover { border-color: #aac6ea; transform: translateY(-1px); }
.resource-topic-links strong, .resource-topic-links span { display: block; }
.resource-topic-links strong { color: var(--resource-blue); font-size: 14px; }
.resource-topic-links span { margin-top: 5px; color: var(--resource-muted); font-size: 12px; line-height: 1.6; }
.resource-directory-note { margin-top: 18px; padding: 0 2px; }
.resource-directory-note p { margin: 9px 0 0; color: var(--resource-muted); font-size: 13px; line-height: 1.8; }
.resource-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.resource-index-grid { margin-top: 0; }
.resource-directory { display: grid; gap: 34px; margin-top: 28px; }
.resource-index-group { display: grid; gap: 14px; }
.resource-index-group > h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--resource-ink); font-size: 19px; letter-spacing: -.02em; }
.resource-index-group > h2 span { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; color: var(--resource-blue); background: var(--resource-blue-soft); font-size: 12px; font-weight: 700; }
.resource-directory .resource-index { margin-top: 0; }
.resource-index-card { display: block; padding: 22px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.resource-index-card:hover { border-color: #b7cdfb; transform: translateY(-2px); }
.resource-index-card { overflow: hidden; padding: 0; border-radius: 16px; }
.resource-index-card-visual { aspect-ratio: 16 / 9; overflow: hidden; background: #f1f5fa; }
.resource-index-card-image, .resource-index-card-image img { display: block; width: 100%; height: 100%; }
.resource-index-card-image img { object-fit: contain; transition: transform .25s ease; }
.resource-index-card:hover .resource-index-card-image img { transform: scale(1.02); }
.resource-index-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #eaf3ff, #f8fafc 55%, #eef2f7); }
.resource-index-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; }
.resource-index-card-caption h2 { min-width: 0; overflow: hidden; margin: 0; color: var(--resource-ink); font-size: 14px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.resource-index-card-caption span { flex: 0 0 auto; color: #98a2b3; font-size: 11px; }
.resource-index-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.resource-index-category { color: var(--resource-blue); font-size: 12px; font-weight: 700; }
.resource-index-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.resource-index-tags span { padding: 3px 7px; border-radius: 999px; color: #667085; background: #f2f4f7; font-size: 11px; }
.resource-index-card h3 { margin: 14px 0 0; font-size: 18px; line-height: 1.45; }
.resource-index-card p { margin: 10px 0 0; color: var(--resource-muted); font-size: 13px; line-height: 1.7; }
.resource-index-meta { display: flex; gap: 8px; margin-top: 16px; color: #98a2b3; font-size: 12px; }
.resource-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 38px; padding: 16px 18px; border: 1px solid var(--resource-line); border-radius: 16px; color: var(--resource-muted); background: rgba(255, 255, 255, .76); font-size: 13px; }
.resource-pagination div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.resource-pagination a, .resource-pagination .is-disabled { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 9px; text-decoration: none; }
.resource-pagination a { color: var(--resource-blue); background: var(--resource-blue-soft); }
.resource-pagination a.is-current { color: #fff; background: var(--resource-blue); }
.resource-pagination .is-disabled { color: #98a2b3; background: #f2f4f7; }
.resource-empty { grid-column: 1 / -1; margin: 0; padding: 40px 20px; border: 1px dashed #ccd7e6; border-radius: 16px; color: var(--resource-muted); text-align: center; }
@media (max-width: 760px) {
  .resource-header, .resource-shell, .resource-footer { width: min(100% - 28px, 1120px); }
  .resource-header { padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .resource-layout { grid-template-columns: 1fr; }
  .resource-topic-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-directory-toolbar { min-height: 32px; }
  .resource-aside { position: static; }
  .resource-main { padding: 24px 20px; border-radius: 18px; }
  .resource-aside, .resource-index-card { border-radius: 16px; }
  .resource-main h1 { font-size: 30px; }
  .resource-lead { font-size: 15px; }
  .resource-index-card-head, .resource-pagination { align-items: flex-start; flex-direction: column; }
  .resource-index-tags { justify-content: flex-start; }
  .resource-index-card-caption { min-height: 44px; padding: 9px 11px; }
  .resource-index-card-caption h2 { font-size: 13px; }
}
@media (max-width: 520px) {
  .resource-topic-links { grid-template-columns: 1fr; }
  .resource-index { grid-template-columns: 1fr; gap: 14px; }
  .resource-directory-page { padding-top: 24px; }
  .resource-tag-filter { gap: 7px; margin-top: 20px; }
  .resource-tag-chip { min-height: 28px; padding: 0 9px; font-size: 11px; }
  .resource-pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
  .resource-pagination div { justify-content: flex-start; }
}
