:root {
  color-scheme: light;
  --bg: #f5f5f7; --surface: #fff; --surface-2: #f0f0f3;
  --text: #1d1d1f; --muted: #636368; --line: #dedee3;
  --blue: #0066cc; --on-blue: #fff; --blue-soft: #eaf3ff;
  --success: #227044; --warning: #855600; --glass: rgba(250,250,252,.86);
  --shadow: 0 8px 32px rgba(25,30,40,.055); --shadow-raised: 0 16px 40px rgba(25,30,40,.10);
  --ease: cubic-bezier(.2,.7,.2,1);
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-optical-sizing: auto;
}
body.dark {
  color-scheme: dark;
  --bg: #101011; --surface: #1d1d1f; --surface-2: #29292c;
  --text: #f5f5f7; --muted: #b2b2b8; --line: #414145;
  --blue: #8cc4ff; --on-blue: #10243a; --blue-soft: #233345;
  --success: #8cd8a5; --warning: #f1c675; --glass: rgba(29,29,31,.88);
  --shadow: 0 8px 32px rgba(0,0,0,.16); --shadow-raised: 0 16px 40px rgba(0,0,0,.26);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
button, a, [role="button"] { transition: background-color 160ms ease, color 160ms ease, transform 180ms var(--ease), box-shadow 180ms ease; }
button:active:not(:disabled), .card-actions a:active, .hero-link:active { transform: scale(.97); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 10px max(24px, calc((100% - 1180px) / 2)); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 38px; border-radius: 11px; background: var(--text); color: var(--surface); font-size: 22px; font-weight: 650; }
.brand strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); white-space: nowrap; }
.main-nav a:hover { color: var(--blue); }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); }
.theme-toggle:hover { background: var(--surface-2); }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { padding: 78px 0 60px; text-align: center; }
.hero-kicker { color: var(--muted); font-size: 14px; font-weight: 550; letter-spacing: .06em; }
.hero h1 { margin: 22px 0 26px; font-size: clamp(3.5rem, 6.5vw, 5.5rem); font-weight: 650; line-height: 1.12; letter-spacing: -.055em; }
.hero h1 em { color: var(--muted); font-style: normal; }
.hero > p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.8; text-wrap: balance; }
.hero-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 16px; color: var(--blue); font-size: 17px; }
.hero-link svg { width: 15px; }
.hero-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero > .hero-update { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.25rem; font-size: .8125rem; line-height: 1.6; letter-spacing: .02em; }
.hero-update-dot { width: .4375rem; height: .4375rem; flex-shrink: 0; border-radius: 50%; background: var(--success); }
.hero-meta { display: flex; justify-content: center; margin-top: 40px; }
.hero-meta div { min-width: 154px; padding: 0 36px; }
.hero-meta div + div { border-left: 1px solid var(--line); }
.hero-meta strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hero-meta span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.search-panel { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 0 18px; color: var(--muted); border: 1px solid #919197; border-radius: 14px; background: var(--surface-2); }
.search-box:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.search-box input { width: 100%; min-width: 0; height: 56px; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
kbd { padding: 2px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 12px; }
.filter-row { display: grid; grid-template-columns: 72px 1fr; gap: 16px; margin-top: 22px; }
.filter-label { padding-top: 12px; color: var(--muted); font-size: 13px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 44px; padding: 9px 14px; color: var(--muted); border: 1px solid transparent; border-radius: 22px; background: var(--surface-2); font-size: 13px; }
.filter-chip:hover { color: var(--text); border-color: var(--line); }
.filter-chip.active { color: var(--surface); background: var(--text); font-weight: 600; }
.filter-chip .count { margin-left: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.filter-list--tags .filter-chip { background: transparent; }
.filter-list--tags .filter-chip.active { color: var(--blue); background: var(--blue-soft); }
.resource-section { padding: 64px 0 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.section-heading h2 { margin: 5px 0 0; font-size: 30px; font-weight: 650; letter-spacing: -.035em; }
.section-heading p { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resource-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: transform 280ms var(--ease), box-shadow 280ms ease; }
.cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.cover:focus-visible { outline-offset: -5px; }
.cover img, .dialog-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover img { transition: transform 400ms var(--ease); }
.cover-label { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; color: #1d1d1f; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 550; }
.cover--editorial { position: relative; isolation: isolate; overflow: hidden; background: #182338; }
.cover--editorial > img { filter: saturate(.65); opacity: .45; }
.cover--editorial::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg,rgba(10,18,34,.93),rgba(10,18,34,.2)); pointer-events: none; }
.cover-copy { position: absolute; z-index: 1; inset: 28% 8% 10%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.cover-copy small { font-size: 10px; letter-spacing: .15em; color: #d0dbea; margin-bottom: 10px; }
.cover-copy strong { font-size: clamp(21px,2.1vw,28px); line-height: 1.4; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cover-copy > span { font-size: 10px; color: #d0dbea; margin-top: auto; padding-top: 10px; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-pill { padding: 5px 9px; color: var(--muted); border-radius: 6px; background: var(--surface-2); font-size: 11px; }
.status { color: var(--success); font-size: 11px; }
.status--pending { color: var(--warning); }
.card-body h3 { margin: 16px 0 12px; font-size: 19px; line-height: 1.5; letter-spacing: -.025em; font-weight: 650; overflow-wrap: anywhere; }
.summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.selling-points { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 1.8; }
.selling-points li { position: relative; margin: 6px 0; padding-left: 17px; }
.selling-points li::before { content: ''; position: absolute; left: 1px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { color: var(--muted); font-size: 11px; }
.tag::before { content: '#'; margin-right: 2px; }
.source-path { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.card-actions { display: grid; grid-template-columns: 1fr 1.15fr 44px; gap: 8px; margin-top: auto; padding-top: 22px; }
.card-actions--draft { grid-template-columns: 1fr 1.2fr; }
.card-actions button, .card-actions a, .empty-state button, .pagination button, .dialog-actions a, .dialog-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--surface-2); font-size: 12px; }
.card-actions .open-link, .dialog-actions a { border-color: transparent; color: var(--on-blue); background: var(--blue); }
.card-actions .icon-button { padding: 0; }
.icon-button svg { width: 18px; height: 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 40px; color: var(--muted); font-size: 13px; }
.pagination button { padding: 0 20px; }
.empty-state { padding: 72px 20px; text-align: center; border-radius: 24px; background: var(--surface); color: var(--muted); }
.empty-state > svg { width: 40px; height: 40px; }
.empty-state h3 { margin: 18px 0 7px; color: var(--text); }
.empty-state button { margin-top: 12px; padding: 0 20px; }
.draft-intro { color: var(--muted); line-height: 1.8; }
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 64px; padding: 48px; border-radius: 28px; background: var(--surface); }
.about-strip h2 { margin: 14px 0 0; font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.4; letter-spacing: -.035em; }
.about-strip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1180px; margin: 0 auto; padding: 24px 0 32px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
footer p { margin: 0; line-height: 1.8; }
.coverage-note { flex-basis: 100%; margin-bottom: 8px; }
.resource-dialog { width: min(820px, calc(100% - 32px)); max-height: min(90dvh, 900px); padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--text); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 32px 120px rgba(0,0,0,.22); }
.resource-dialog[open] { position: fixed; z-index: 60; inset: 50% auto auto 50%; display: block; margin: 0; transform: translate(-50%, -50%); }
.resource-dialog::backdrop { background: rgba(20,20,25,.38); backdrop-filter: blur(8px); }
body.modal-open:has(.resource-dialog:not(:modal))::before { content: ''; position: fixed; z-index: 55; inset: 0; background: rgba(20,20,25,.38); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; z-index: 3; top: 16px; float: right; width: 44px; height: 44px; margin: 16px 16px -60px 0; color: #1d1d1f; border: 1px solid #d6d6db; border-radius: 50%; background: #f5f5f7; font-size: 26px; line-height: 1; }
.dialog-cover { aspect-ratio: 2.3 / 1; overflow: hidden; }
.dialog-cover.cover--editorial { height: clamp(230px, 38vw, 340px); aspect-ratio: auto; }
.dialog-cover .cover-copy { inset: 16% 8%; }
.dialog-cover .cover-copy strong { font-size: clamp(26px,4vw,40px); }
.dialog-body { padding: 36px; }
.dialog-body h2 { margin: 16px 0; font-size: clamp(25px, 4vw, 36px); line-height: 1.35; letter-spacing: -.025em; }
.product-details { margin: 32px 0; overflow-wrap: anywhere; }
.detail-section + .detail-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 14px; font-size: 18px; line-height: 1.5; }
.detail-section p, .detail-section li { color: var(--muted); font-size: 15px; line-height: 1.85; }
.detail-section p { margin: 0; }
.detail-intro { padding: 24px; border-radius: 18px; background: var(--surface-2); }
.benefit-list { display: grid; gap: 24px; }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-item > div { min-width: 0; }
.benefit-number { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 600; }
.benefit-item h4 { margin: 3px 0 6px; font-size: 16px; line-height: 1.5; }
.detail-section ul, .detail-steps { margin: 0; padding-left: 24px; }
.detail-section li + li { margin-top: 10px; }
.detail-note { margin-top: 28px; padding: 20px; background: var(--surface-2); border-radius: 16px; color: var(--muted); font-size: 13px; }
.detail-note p { margin: 7px 0 0; line-height: 1.8; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dialog-actions a, .dialog-actions button { padding: 0 24px; font-size: 14px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: max(30px, env(safe-area-inset-bottom)); padding: 12px 20px; max-width: calc(100% - 32px); opacity: 0; transform: translate(-50%, 12px); border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-raised); pointer-events: none; transition: opacity 160ms ease, transform 240ms var(--ease); font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
  .resource-card:hover .cover img { transform: scale(1.025); }
  .card-actions button:hover:not(:disabled), .pagination button:hover:not(:disabled), .dialog-actions button:hover:not(:disabled) { border-color: var(--muted); }
  .open-link:hover, .dialog-actions a:hover { opacity: .88; }
}
@media (max-width: 960px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 64px; }
  .about-strip { gap: 32px; padding: 32px; }
  footer { margin: 0 24px; }
}
@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 8px 16px; gap: 8px; }
  .main-nav { gap: 12px; font-size: 12px; }
  .main-nav a[href="#top"], .main-nav a[href="#resources"] { display: none; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 30px; height: 34px; }
  .theme-toggle { width: 44px; }
  main { width: calc(100% - 32px); }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: clamp(3.3rem, 12vw, 4.5rem); margin: 22px 0; }
  .hero > p { font-size: 15px; }
  .hero-kicker { font-size: 12px; }
  .hero-meta { margin-top: 30px; }
  .hero-meta div { min-width: 0; flex: 1; padding: 0 8px; }
  .hero-meta strong { font-size: 26px; }
  .hero-meta span { font-size: 11px; }
  .search-panel { padding: 20px 16px; border-radius: 20px; }
  .search-box { padding: 0 12px; gap: 8px; }
  .search-box input { height: 52px; }
  kbd { display: none; }
  .filter-row { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .filter-label { padding: 0; }
  .filter-chip { padding: 9px 12px; font-size: 12px; }
  .resource-section { padding: 44px 0 56px; }
  .resource-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 27px; }
  .card-body { padding: 22px; }
  .cover-copy strong { font-size: 28px; }
  .pagination { gap: 12px; }
  .pagination button { padding: 0 14px; }
  .about-strip { grid-template-columns: 1fr; gap: 24px; padding: 28px; margin-bottom: 40px; }
  footer { margin: 0 20px; flex-direction: column; }
  .resource-dialog { width: calc(100% - 24px); border-radius: 22px; }
  .dialog-body { padding: 26px 20px; }
  .detail-intro { padding: 18px; }
  .dialog-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .resource-card:hover, .resource-card:hover .cover img, button:active:not(:disabled), .card-actions a:active, .hero-link:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .resource-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3f3f43; --line: #76767b; }
  body.dark { --muted: #dedee3; --line: #a5a5ab; }
  .site-header { background: var(--surface); }
}
