:root {
  color-scheme: light;
  --paper: #fff; --wash: #f6f8f7; --ink: #172e25;
  --green: #176b48; --muted: #58665f; --line: #dde5df;
  --display: "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--body); color: var(--ink); background: var(--paper);
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -90px; z-index: 10; background: var(--green); color: var(--paper); padding: 14px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.page-shell { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 17px; white-space: nowrap; }
.brand strong { font-weight: 750; }
.brand-divider { margin: 0 12px; color: var(--line); }
.brand-section { font-size: 15px; font-weight: 500; }
.header-link { font-size: 14px; color: var(--muted); padding: 12px 0 12px 12px; white-space: nowrap; }
.header-link span { margin-left: 9px; }
.intro { padding: 54px 0 36px; position: relative; }
.preview-label { display: flex; gap: 8px; align-items: center; margin: 0 0 23px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.preview-label > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1 { font-family: var(--display); font-size: clamp(34px, 4.6vw, 54px); font-weight: 750; letter-spacing: -.05em; line-height: 1.3; margin: 0; }
h1 span { color: var(--green); }
.intro-note { margin: 17px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.playback-line { height: 3px; width: 190px; background: var(--line); position: absolute; right: 0; top: 58%; border-radius: 5px; }
.playback-line span { display: block; background: var(--green); height: 100%; width: 30%; border-radius: inherit; position: relative; }
.playback-line span::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--green); right: -3px; top: -3px; }
.search-form { min-height: 62px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 13px; padding: 0 18px; background: var(--wash); color: var(--muted); transition: border-color .15s; }
.search-form:focus-within { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 2px; }
.search-form svg { flex: 0 0 auto; }
.search-form input { width: 100%; min-width: 0; color: var(--ink); border: 0; background: transparent; padding: 19px 0; outline: none; font-size: 16px; }
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { display: none; }
.clear-search { border: 0; padding: 10px 0 10px 6px; background: transparent; color: var(--green); white-space: nowrap; font-size: 13px; min-height: 44px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 24px; }
.filter-chip { border: 1px solid transparent; border-radius: 8px; padding: 11px 19px; min-height: 44px; background: transparent; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.filter-chip[aria-pressed="true"] { color: var(--paper); background: var(--green); }
.results-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.results-header p { margin: 0; font-size: 13px; }
.results-header strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.resource-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; }
.category-label { background: var(--wash); color: var(--green); border-radius: 4px; padding: 5px 8px; font-weight: 600; }
.card-meta time { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.resource-card h2 { font-family: var(--display); font-size: 20px; font-weight: 650; line-height: 1.5; letter-spacing: -.025em; margin: 17px 0 8px; overflow-wrap: anywhere; }
.card-description { font-size: 13px; line-height: 1.85; margin: 0 0 23px; color: var(--muted); }
.card-resources { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: auto; padding-bottom: 17px; }
.resource-link, .keyword-button { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; padding: 9px 12px; font-size: 12px; line-height: 1.4; text-align: left; }
.resource-link span { color: var(--green); }
.keyword-button { color: var(--green); background: var(--wash); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }
.card-footer > span { font-size: 11px; color: var(--muted); }
.video-link { font-size: 12px; color: var(--green); display: inline-flex; gap: 7px; align-items: center; min-height: 36px; }
.video-link svg { width: 14px; height: 14px; }
.empty-state { padding: 45px 20px 52px; text-align: center; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; }
.empty-symbol { font-size: 40px; color: var(--green); }
.empty-state h2 { font-size: 19px; margin: 10px 0; }
.empty-state p { font-size: 14px; color: var(--muted); margin: 10px 0 24px; }
.empty-state a { text-decoration: underline; }
.primary-button { border: 0; background: var(--green); color: var(--paper); padding: 12px 18px; min-height: 44px; border-radius: 8px; font-size: 14px; }
.site-footer { margin-top: 54px; border-top: 1px solid var(--line); padding: 28px 0 34px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer p { margin: 4px 0 0; }
.site-footer a { align-self: flex-start; padding: 8px 0; white-space: nowrap; }
dialog { width: min(460px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 90px #172e252b; }
dialog::backdrop { background: #172e2566; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; }
.dialog-eyebrow { font-size: 12px; color: var(--green); }
.close-dialog { display: grid; place-items: center; font-size: 26px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: var(--wash); color: var(--muted); }
dialog h2 { font-size: 22px; line-height: 1.5; margin: 15px 0 10px; }
#dialog-description { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0 0 24px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.copy-row > div { min-width: 0; }
.copy-row span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.copy-row strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.copy-button { border: 1px solid var(--line); border-radius: 7px; color: var(--green); background: var(--wash); padding: 10px 12px; min-height: 44px; white-space: nowrap; font-size: 12px; }
.copy-status { min-height: 40px; font-size: 12px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; }
@media (hover:hover) {
  .resource-card:hover { border-color: #9cb9a9; box-shadow: 0 5px 20px #172e2507; }
  .resource-link:hover, .keyword-button:hover, .copy-button:hover { border-color: var(--green); }
  .filter-chip[aria-pressed="false"]:hover { background: var(--wash); color: var(--green); }
  .header-link:hover, .video-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 680px) {
  .page-shell { padding: 0 20px; }
  .site-header { min-height: 78px; gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-divider { margin: 0 7px; }
  .brand-section { font-size: 12px; }
  .header-link { font-size: 12px; padding-left: 0; }
  .header-link span { margin-left: 2px; }
  .intro { padding: 34px 0 27px; }
  .preview-label { font-size: 11px; margin-bottom: 20px; }
  h1 { font-size: 35px; line-height: 1.35; }
  .intro-note { font-size: 12px; margin-top: 13px; }
  .playback-line { position: static; margin-top: 26px; width: 100%; height: 2px; }
  .playback-line span { width: 22%; }
  .playback-line span::after { width: 8px; height: 8px; }
  .search-form { min-height: 56px; gap: 9px; padding: 0 13px; }
  .search-form input { padding: 16px 0; }
  .filter-row { gap: 3px; padding: 16px 0 22px; }
  .filter-chip { padding: 10px 12px; font-size: 12px; }
  .resource-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .resource-card { padding: 20px; }
  .resource-card h2 { font-size: 19px; }
  .card-description { margin-bottom: 20px; }
  .site-footer { margin-top: 36px; font-size: 11px; gap: 12px; padding: 24px 0; }
  dialog { padding: 20px; }
  dialog h2 { font-size: 20px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
