:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --ink: #17191e;
  --muted: #606872;
  --line: #dce0e5;
  --blue: #075bb9;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button, a, select, .card { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, .skip:focus { outline: 3px solid #1985e3; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { margin-inline: auto; width: min(1184px, calc(100% - clamp(36px, 9vw, 128px))); }
.skip { position: absolute; top: -100px; z-index: 10; background: white; padding: 12px 20px; }
.skip:focus { top: 0; }
header { background: #fcfcfd; border-bottom: 1px solid #eaedf0; }
.head, .brand, .head-nav, .foot, .hero-cta, .section-intro, .view-tabs, .controls, .search, .sort, #filters, .bar, .top, .actions { display: flex; align-items: center; }
.head { height: 61px; justify-content: space-between; }
.brand { gap: 9px; }
.brand svg { width: 31px; height: 31px; }
.brand strong { font-size: 21px; letter-spacing: -.04em; }
.brand small { font-size: 13px; letter-spacing: -.025em; color: #69707a; margin: 3px 0 0 3px; }
.head-nav { gap: 27px; }
.head-nav button, .nav-search { padding: 6px 0; border: 0; background: transparent; font-size: 13px; font-weight: 550; }
.head-nav button:hover, .nav-search:hover { color: var(--blue); }
.nav-search { display: grid; place-items: center; width: 27px; }
.nav-search svg, .search svg, .hero-cta svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero { position: relative; isolation: isolate; overflow: hidden; color: #f8faff; background: radial-gradient(ellipse at 78% 40%,#202c40 0%,#151d2b 29%,transparent 58%), linear-gradient(114deg,#0e1219 10%,#111720 60%,#161d28); }
.hero-inner { min-height: clamp(386px, 33vw, 495px); display: flex; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; padding: 49px 0; }
.eyebrow, .fig { font: 600 10px/1.4 var(--mono); letter-spacing: .14em; display: flex; align-items: center; gap: 9px; color: #586674; }
.eyebrow.light { color: #c5ccd5; font-size: 10px; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: #dcd2b8; box-shadow: 0 0 10px #f1dfbd80; }
.slash { color: #76818e; margin-inline: 2px; }
h1 { margin: 19px 0 16px; font-size: clamp(48px, 5.1vw, 78px); letter-spacing: -.065em; line-height: 1.12; font-weight: 680; }
h1 span { color: #d4d9e1; }
.hero-copy p { margin: 0 0 23px; color: #c2c9d2; line-height: 1.7; font-size: clamp(14px,1.15vw,17px); }
.hero-cta { width: fit-content; padding: 10px 16px 10px 20px; gap: 15px; border-radius: 28px; background: #f6f7f9; color: #1a1e25; font-size: 13px; font-weight: 650; transition: background .2s, transform .22s; }
.hero-cta svg { width: 16px; height: 16px; transition: transform .22s; }
.hero-cta:hover { background: #fff; transform: translateY(-2px); }
.hero-cta:hover svg { transform: translateY(2px); }
.hero-art { pointer-events: none; position: absolute; width: min(61%, 790px); inset: 0 -3% 0 auto; display: grid; place-items: center; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; animation: orbit-settle 1.4s cubic-bezier(.2,.7,.25,1) both; }
@keyframes orbit-settle { from { opacity: .18; transform: translate3d(14px,8px,0) scale(.97); } to { opacity: 1; transform: none; } }
.hero-copy { animation: copy-arrive .7s cubic-bezier(.2,.7,.25,1) both; }
@keyframes copy-arrive { from { opacity: .36; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.fig { position: absolute; right: 0; bottom: 20px; color: #a9b4c3; font-size: 9px; font-weight: 450; }
.fig i, .index-line { display: inline-block; width: 19px; height: 1px; background: currentColor; }
.mobile-break { display: none; }
.directory { padding-block: clamp(32px, 3.6vw, 55px) 58px; }
.section-intro { justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-intro h2 { margin: 5px 0 0; font-size: clamp(30px, 2.7vw, 44px); line-height: 1.25; letter-spacing: -.055em; }
.section-intro h2 span { color: #74879c; }
.view-tabs { padding: 4px; gap: 2px; border: 1px solid #dfe2e6; background: #e9ebef; border-radius: 22px; }
.view-tabs button { background: transparent; color: #535c67; padding: 6px 16px; border: 0; border-radius: 18px; font-size: 13px; font-weight: 600; transition: background .18s, color .18s, box-shadow .18s; }
.view-tabs button[aria-pressed=true] { color: #171b21; background: white; box-shadow: 0 1px 4px #1b253017; }
.tools { padding: 15px 17px 12px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 3px 8px #242b3903; }
.controls { gap: 12px; }
.search { flex: 1; min-width: 0; gap: 10px; background: #f6f7f9; border: 1px solid #dfe3e8; border-radius: 11px; padding: 0 13px; height: 47px; color: #636c79; transition: box-shadow .2s, border-color .2s; }
.search:focus-within { border-color: #5593ca; box-shadow: 0 0 0 3px #3584c820; }
.search svg { flex-shrink: 0; }
.search input { min-width: 0; flex: 1; outline: none; border: 0; background: transparent; color: var(--ink); padding: 7px 0; font-size: 15px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: #687380; }
kbd { padding: 1px 6px; background: #fff; border: 1px solid #d8dce1; border-radius: 4px; font: 12px/1.55 var(--mono); color: #64717e; }
#clear-query { border: 0; border-radius: 50%; background: #dee2e7; width: 26px; height: 26px; padding: 0; font-size: 17px; }
.sort { gap: 6px; font-size: 13px; color: var(--muted); }
.sort select { color: #333b44; border: 1px solid #dfe3e8; border-radius: 10px; background-color: #fff; padding: 8px; }
#filters { gap: 4px; flex-wrap: wrap; margin-top: 12px; }
#filters button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 0; border-radius: 18px; background: transparent; color: #46505d; padding: 6px 12px; transition: background .18s, color .18s; }
#filters button:hover { background: #f0f2f5; }
#filters button[aria-pressed=true] { background: #222832; color: white; }
.filter-count { font: 10px/1.5 var(--mono); color: #606a76; }
[aria-pressed=true] .filter-count { color: #dde3ec; }
.bar { justify-content: space-between; margin-top: 26px; }
.bar h3 { font-size: 21px; letter-spacing: -.035em; margin: 0; }
#count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
#note { margin: 3px 0 15px; color: var(--muted); font-size: 13px; }
#cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { --accent: #475f76; --tint: #edf2f7; display: flex; flex-direction: column; min-width: 0; background: #fff; padding: 20px 21px 16px; border: 1px solid var(--line); border-radius: 17px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card[data-category="工作"] { --accent: #375e80; --tint: #edf3fa; }
.card[data-category="设计"] { --accent: #75538c; --tint: #f5eff8; }
.card[data-category="生活"] { --accent: #806048; --tint: #f7f1eb; }
.card[data-category="学习"] { --accent: #417164; --tint: #edf5f1; }
.card[data-category="影音"] { --accent: #864f64; --tint: #f9f0f4; }
.card[data-category="游戏"] { --accent: #656029; --tint: #f6f4e8; }
@media (hover:hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 7px 19px #2431420b; border-color: #bcc7d1; } }
.top { justify-content: space-between; gap: 8px; }
.tag { width: fit-content; border-radius: 6px; background: var(--tint); color: var(--accent); font-size: 11px; font-weight: 630; padding: 3px 8px; white-space: nowrap; }
.id, .host { font-family: var(--mono); font-size: 11px; color: #66717d; overflow-wrap: anywhere; }
.id { text-align: right; letter-spacing: .025em; }
.card h3 { margin: 16px 0 2px; line-height: 1.3; font-size: 22px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.desc { flex: 1; color: #46505c; margin-block: 12px; font-size: 14px; overflow-wrap: anywhere; }
.card details { margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.card summary { cursor: pointer; width: fit-content; }
.card details small { display: block; padding-top: 5px; font-size: 12px; }
.actions { flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid #e8ebee; padding-top: 12px; font-size: 12px; }
.actions a { color: #5b6671; }
.actions a:first-child { color: var(--blue); font-weight: 600; }
.actions a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: .2em; }
.save, .empty-state button { border: 1px solid #dbe0e5; background: #fff; border-radius: 18px; color: #3d4753; padding: 5px 11px; }
.save { margin-left: auto; }
.save[aria-pressed=true] { background: #eef4fb; color: #185792; border-color: #bcd2e6; }
.empty-state { grid-column: 1/-1; text-align: center; border-radius: 17px; border: 1px dashed #c8d0d8; background: white; padding: 32px 16px; }
.empty-state h3 { margin: 0; font-size: 20px; }
.empty-state p { color: var(--muted); }
footer { background: #edf0f3; border-top: 1px solid #dce1e6; }
.feedback { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.feedback span { margin-right: 2px; }
.feedback button { border: 1px solid #d4dce4; border-radius: 14px; padding: 5px 10px; color: #435b76; background: white; }
.feedback button:disabled { opacity: .65; }
.feedback small { font-size: inherit; }
.metric-note { margin-block: 0; padding-bottom: 18px; font-size: 12px; color: var(--muted); }
.foot { justify-content: space-between; padding-block: 22px; gap: 10px; font-size: 13px; }
.foot-en, .foot a { color: var(--muted); font-size: 12px; }
@media (max-width: 940px) {
  #cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-art { right: -4%; width: 60%; }
  .hero-copy p { max-width: 29ch; }
}
@media (max-width: 650px) {
  .head { height: 54px; }
  .brand { gap: 5px; }
  .brand strong { font-size: 19px; }
  .brand svg { width: 25px; }
  .head-nav { gap: 14px; }
  .head-nav button { font-size: 12px; }
  .brand small { font-size: 11px; margin-left: 1px; }
  .hero-inner { min-height: 0; display: grid; }
  .hero-copy { padding: 36px 0 0; }
  h1 { font-size: clamp(43px,9vw,58px); margin-top: 15px; }
  .hero-copy p { max-width: none; margin: 0 0 15px; font-size: 14px; }
  .mobile-break { display: inline; }
  .hero-art { position: relative; inset: auto; justify-self: end; width: min(94%,380px); height: clamp(155px,42vw,215px); margin: -22px -12px 15px 0; }
  .fig { bottom: 9px; font-size: 8px; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 12px; }
  .view-tabs { width: 100%; }
  .view-tabs button { flex: 1; }
  .tools { padding: 11px; border-radius: 16px; }
  .controls { flex-wrap: wrap; gap: 7px; }
  .sort span { display: none; }
  .sort select { max-width: 93px; padding: 9px 2px; font-size: 12px; }
  .search { height: 43px; padding: 0 9px; gap: 5px; }
  .search svg { width: 17px; }
  .search input { font-size: 16px; }
  .search input::placeholder { font-size: 12px; }
  kbd { display: none; }
  #filters { gap: 3px; }
  #filters button { padding: 5px 9px; font-size: 12px; }
  #cards { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .card { padding: 18px; }
  .bar { margin-top: 22px; }
}
@media (max-width: 360px) {
  .brand small { display: none; }
  .hero-art { margin-top: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .hero-cta:hover, .hero-cta:hover svg { transform: none; }
}
