:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --text: #0b0b0c;
  --text-2: #5f6469;
  --text-3: #9aa0a6;
  --line: #e7e8e8;
  --line-strong: #d4d6d6;
  --soft: #f0f2f1;
  --shadow-hover: 0 1px 2px rgba(10, 12, 11, .04), 0 12px 32px rgba(10, 12, 11, .08);
  --radius: 18px;
  --max: 1120px;
  --glow: rgba(11, 157, 114, .09);
  --accent: #0b9d72;
  --a1: #7ee7bd;
  --a2: #a9dcff;
  --a3: #d9f7e7;
  --blob-opacity: .9;
}

body.theme-dark {
  --bg: #0b0b0c;
  --surface: #141416;
  --text: #f4f4f2;
  --text-2: #a0a09c;
  --text-3: #6b6b68;
  --line: #232325;
  --line-strong: #35353a;
  --soft: #1b1b1d;
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 44px rgba(0, 0, 0, .5);
  --glow: rgba(52, 211, 153, .09);
  --accent: #34d399;
  --a1: #0f6b4f;
  --a2: #14506b;
  --a3: #0d4a3f;
  --blob-opacity: .55;
}

/* 配色预设：主色 + 三层光晕色 */
body[data-accent="aurora"] {
  --accent: #0b9d72;
  --a1: #7ee7bd;
  --a2: #a9dcff;
  --a3: #d9f7e7;
  --glow: rgba(11, 157, 114, .09);
}

body[data-accent="ocean"] {
  --accent: #2563eb;
  --a1: #8db8ff;
  --a2: #a5e6ff;
  --a3: #dbeafe;
  --glow: rgba(37, 99, 235, .09);
}

body[data-accent="dune"] {
  --accent: #b26a24;
  --a1: #ffcf9e;
  --a2: #ffd9c0;
  --a3: #fde8d7;
  --glow: rgba(178, 106, 36, .09);
}

body[data-accent="dusk"] {
  --accent: #7c3aed;
  --a1: #c9a7ff;
  --a2: #ffc6e5;
  --a3: #e9dcff;
  --glow: rgba(124, 58, 237, .09);
}

body[data-accent="silk"] {
  --accent: #64748b;
  --a1: #d9dee3;
  --a2: #e8ebee;
  --a3: #cfd6dc;
  --glow: rgba(100, 116, 139, .09);
}

body[data-accent="graphite"] {
  --accent: #1a1a1a;
  --a1: #dedede;
  --a2: #ececec;
  --a3: #cfcfcf;
  --glow: rgba(26, 26, 26, .06);
}

body.theme-dark[data-accent="aurora"] { --accent: #34d399; --a1: #0f6b4f; --a2: #14506b; --a3: #0d4a3f; }
body.theme-dark[data-accent="ocean"] { --accent: #7aa7ff; --a1: #12356e; --a2: #0f4a63; --a3: #14264a; }
body.theme-dark[data-accent="dune"] { --accent: #dda06a; --a1: #5a3315; --a2: #4a2a12; --a3: #3a2410; }
body.theme-dark[data-accent="dusk"] { --accent: #a98bff; --a1: #3b2170; --a2: #4a1f3f; --a3: #2a1a4d; }
body.theme-dark[data-accent="silk"] { --accent: #98a6b6; --a1: #2a2f36; --a2: #33383e; --a3: #262b31; }
body.theme-dark[data-accent="graphite"] { --accent: #f2f2ef; --a1: #262626; --a2: #2e2e2e; --a3: #1f1f1f; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 已存英文偏好时先隐藏，避免首屏闪一下中文 */
html.i18n-boot body { visibility: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }

::selection { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* 鼠标跟随光晕 */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 15%), var(--glow), transparent 60%);
}

/* 首屏背景：Grainient 底板 + 点阵层（WebGL），CSS 光晕作为降级 */
.backdrop {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  height: 840px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .55) 76%, transparent 98%);
}

.backdrop-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.backdrop-fallback {
  position: absolute;
  inset: 0;
  opacity: var(--blob-opacity);
  filter: blur(20px);
  transition: opacity .5s ease;
}

.backdrop-live .backdrop-fallback { display: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.b1 {
  width: 560px;
  height: 560px;
  top: -120px;
  left: 46%;
  background: radial-gradient(circle at 40% 40%, var(--a1), transparent 68%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.b2 {
  width: 460px;
  height: 460px;
  top: 120px;
  left: 20%;
  background: radial-gradient(circle at 50% 50%, var(--a2), transparent 66%);
  animation: drift2 32s ease-in-out infinite alternate;
  opacity: .8;
}

.b3 {
  width: 520px;
  height: 520px;
  top: -40px;
  left: 66%;
  background: radial-gradient(circle at 50% 50%, var(--a3), transparent 68%);
  animation: drift3 38s ease-in-out infinite alternate;
  opacity: .85;
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}

@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(70px, -30px, 0) scale(.95); }
}

@keyframes drift3 {
  from { transform: translate3d(0, 0, 0) scale(.98); }
  to { transform: translate3d(-50px, 50px, 0) scale(1.08); }
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--text-2);
}

.nav a {
  white-space: nowrap;
  transition: color .2s ease;
}

.nav a:hover { color: var(--text); }

.controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 12, 11, .04);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .25s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: rotate(14deg);
}

.theme-toggle svg {
  display: none;
  width: 15px;
  height: 15px;
}

body.theme-light .theme-toggle .i-moon { display: block; }
body.theme-dark .theme-toggle .i-sun { display: block; }

.palette-toggle .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.lang-toggle {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.lang-toggle:hover { transform: translateY(-1px); }

.palette-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 180px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 20, 20, .12);
  z-index: 30;
}

body.theme-dark .palette-panel {
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.palette-title {
  margin: 4px 8px 6px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-3);
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.palette-item:hover { background: var(--soft); color: var(--text); }
.palette-item.active { color: var(--text); }

.palette-item .check {
  margin-left: auto;
  font-size: 11px;
  opacity: 0;
}

.palette-item.active .check { opacity: .65; }

.sw {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.sw[data-id="aurora"] { background: linear-gradient(135deg, #7ee7bd, #a9dcff 60%, #34d399); }
.sw[data-id="ocean"] { background: linear-gradient(135deg, #8db8ff, #2563eb); }
.sw[data-id="dune"] { background: linear-gradient(135deg, #ffcf9e, #b26a24); }
.sw[data-id="dusk"] { background: linear-gradient(135deg, #c9a7ff, #7c3aed); }
.sw[data-id="silk"] { background: linear-gradient(135deg, #e8ebee, #94a3b8); }
.sw[data-id="graphite"] { background: linear-gradient(135deg, #e5e5e5, #1a1a1a); }

body.theme-dark .sw[data-id="graphite"] { background: linear-gradient(135deg, #f2f2ef, #6b6b68); }

/* 首屏 */
main {
  position: relative;
  padding-bottom: 32px;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 76px 0 8px;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 5px 12px 5px 10px;
  font-size: 11.5px;
  letter-spacing: .12em;
  font-weight: 500;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 600;
}

.lede {
  margin: 0 0 34px;
  max-width: 620px;
  font-size: 16.5px;
  color: var(--text-2);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
}

.search-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

@media (hover: none) and (pointer: coarse) {
  .hint-key { display: none; }
}

/* 快速打开面板 */
.quick {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 24px;
  background: color-mix(in srgb, #0b0d0c 30%, transparent);
  backdrop-filter: blur(6px);
}

.quick[hidden] { display: none; }

.quick-box {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 70vh;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(10, 12, 11, .22);
}

body.theme-dark .quick-box { box-shadow: 0 28px 80px rgba(0, 0, 0, .6); }

.quick-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.quick-field svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.quick-field input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}

.quick-field input::placeholder { color: var(--text-3); }

.quick-field kbd {
  padding: 2px 6px;
  font: inherit;
  font-size: 11px;
  color: var(--text-3);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quick-list {
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.quick-item.active { background: color-mix(in srgb, var(--accent) 12%, var(--soft)); }

.quick-item img {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.quick-item img.invert { filter: invert(1); }
body.theme-dark .quick-item img.invert { filter: none; }

.quick-name { font-size: 14px; color: var(--text); }

.quick-fav { font-size: 10px; color: var(--accent); }

.quick-cat {
  margin-left: auto;
  padding-left: 12px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.quick-empty {
  padding: 26px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.quick-foot {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-3);
}

body.quick-open { overflow: hidden; }

.quick-toggle:hover { transform: none; }
.quick-toggle svg { width: 15px; height: 15px; }

/* 常用与最近 */
.launch {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.launch[hidden] { display: none; }

.launch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.launch-head .eyebrow { margin: 0; }

.launch-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.launch-note {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--text-3);
}

.launch-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.launch-head + .launch-row { border-top: 0; }

.launch-row[hidden] { display: none; }

.launch-label {
  flex: none;
  width: 32px;
  padding-top: 7px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-3);
}

html[lang="en"] .launch-label { width: 58px; }

.launch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}

.launch-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--soft);
}

.launch-pill > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
}

.launch-pill:has(.pill-x) > a { padding-right: 7px; }

.launch-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 4px;
}

.launch-pill img.invert { filter: invert(1); }
body.theme-dark .launch-pill img.invert { filter: none; }

.pill-x {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  padding: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--text-3);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.pill-x:hover {
  color: var(--text);
  background: var(--soft);
}

/* 怎么选 */
.picks {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.picks[hidden] { display: none; }

.picks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.picks-head .eyebrow { margin: 0; }

.picks-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.picks-note {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--text-3);
}

.pick-list { display: grid; }

.pick {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.pick-list .pick:first-child { border-top: 0; }

.pick-scene {
  font-size: 14px;
  font-weight: 600;
}

.pick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pick-tools a {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.pick-tools a:hover {
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
}

.pick-why {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

/* 定位 */
.about {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.about[hidden] { display: none; }

.about-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.about-head .eyebrow { margin: 0; }

.about-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.about-note {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--text-3);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.about-item {
  padding: 16px 18px;
  background: var(--surface);
}

.about-item h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.about-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.search { position: relative; flex: 1; }

.search input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  box-shadow: 0 1px 2px rgba(10, 12, 11, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search input::placeholder { color: var(--text-3); }

.search input:focus {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.search kbd {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 2px 7px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text-3);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn .arr {
  font-size: 13px;
  transition: transform .2s ease;
}

.btn:hover .arr { transform: translate(2px, -2px); }

.btn-primary {
  color: var(--bg);
  background: var(--text);
  box-shadow: 0 2px 6px rgba(10, 12, 11, .12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 12, 11, .18);
}

body.theme-dark .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .6);
}

/* 分类 */
.cat {
  padding-top: 72px;
  scroll-margin-top: 84px;
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cat-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}

.cat-head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.cat-head .count {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.cat-head .note {
  margin: 0 0 0 auto;
  font-size: 13px;
  color: var(--text-3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 卡片 */
.card-slot {
  position: relative;
  display: flex;
}

.card-slot .card {
  flex: 1;
  height: 100%;
}

.card-slot[hidden] { display: none; }

.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--text-3);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease, transform .25s ease;
}

.card-slot:hover .fav,
.fav:focus-visible { opacity: 1; }

.fav:hover {
  color: var(--text);
  background: var(--soft);
  border-color: var(--line);
}

.fav.is-on { color: var(--accent); opacity: 1; }

.card-slot:hover .fav { transform: translateY(-3px); }

.card-top { padding-right: 30px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 12, 11, .03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--cx, 50%) var(--cy, 50%), color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%);
  transition: opacity .3s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow-hover);
}

.card:hover::before { opacity: 1; }

.card[hidden] { display: none; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  transition: background-color .25s ease, color .25s ease;
}

.icon .mono { display: grid; place-items: center; }

.icon .mono[hidden] { display: none; }

.icon img {
  position: absolute;
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 5px;
  opacity: 0;
  transition: opacity .25s ease;
}

.icon img.ready { opacity: 1; }

.icon.invert img { filter: invert(1); }

body.theme-dark .icon.invert img { filter: none; }

.arrow {
  font-size: 14px;
  color: var(--text-3);
  transition: transform .2s ease, color .2s ease;
}

.card:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.empty {
  padding: 80px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}

/* 页脚 */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 34px 28px 64px;
  font-size: 13px;
  color: var(--text-3);
}

.footer-inner p { margin: 0; }

/* 入场动画 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.card.reveal.in {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.rise {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}

.rise.in {
  opacity: 1;
  transform: none;
  filter: none;
}

a:focus-visible,
button:focus-visible,
.search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .nav a:not(.switch) { display: none; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick { grid-template-columns: 140px minmax(0, 1fr); gap: 6px 18px; }
  .pick-why { grid-column: 2; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .cat { padding-top: 56px; }
  .backdrop { height: 640px; top: -120px; }
  .pick {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 13px 0;
  }
  .pick-why { grid-column: auto; color: var(--text-2); }
  .picks-note { margin-left: 0; }
  .about-note { margin-left: 0; }
  .launch-note { margin-left: 0; }
}

@media (max-width: 620px) {
  .quick { padding: 8vh 12px 16px; }
  .quick-box { max-height: 76vh; }
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cat-head .note { display: none; }
  .wrap { padding: 0 20px; }
  .footer-inner { padding: 30px 20px 56px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .btn { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1; transform: none; filter: none; transition: none; }
  .card, .card:hover, .card:hover .arrow { transition: none; transform: none; }
  .card-slot:hover .fav { transform: none; }
  .fav { transition: none; }
  .blob { animation: none; }
  .glow, .backdrop-fallback { display: none; }
}
/* Incremental content uses the established palette, surfaces and spacing. */
.hub-content{margin:64px 0;scroll-margin-top:100px}.hub-content h2{font-size:clamp(24px,4vw,32px);letter-spacing:-.04em;margin:8px 0 14px}.hub-content>.search{margin:24px 0;max-width:620px}.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.hub-tile{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:24px}.hub-tile h3{font-size:17px;margin:0 0 12px;line-height:1.6}.hub-tile p,.hub-dialog p,.hub-dialog li{font-size:14px;line-height:1.9;color:var(--text-2)}.hub-tile a,.hub-dialog a{color:var(--text);text-decoration:none}.hub-tile a:hover,.hub-dialog a:hover{color:var(--accent);text-decoration:underline}.hub-tags a{color:var(--accent)}.hub-nav{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:30px}.hub-nav a{font-size:14px;color:var(--text-2);text-decoration:none}.hub-nav a:hover{color:var(--accent)}.hub-dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--radius);padding:32px;width:min(760px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;overscroll-behavior:contain}.hub-dialog::backdrop{background:rgba(0,0,0,.45);backdrop-filter:blur(6px)}.hub-close{display:block;margin-left:auto}.hub-dialog h2{font-size:28px;line-height:1.5;margin:20px 0}.hub-dialog h3{margin:28px 0 12px}.hub-dialog li{margin-bottom:12px}.hub-dialog blockquote{margin:16px 0;padding:16px;border-left:3px solid var(--accent);background:var(--soft);line-height:1.8}.hub-dialog table{width:100%;border-collapse:collapse;font-size:14px}.hub-dialog th,.hub-dialog td{padding:12px;text-align:left;border-bottom:1px solid var(--line);line-height:1.7}.hub-dialog .btn-primary{color:var(--surface)}@media(max-width:800px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.hub-grid{grid-template-columns:1fr}.hub-dialog{padding:20px}.hub-content{margin:44px 0}}
/* Detail-first directory: one card fills each grid cell. */
.card-slot{display:block;min-width:0}.card-slot .card{width:100%;box-sizing:border-box;height:100%;min-height:190px}.directory-heading{margin:64px 0 0;padding-top:32px;border-top:1px solid var(--line)}.directory-heading h2{font-size:28px;letter-spacing:-.04em;margin:8px 0 14px}.directory-heading+.cat{padding-top:32px}.hub-tile{display:flex;flex-direction:column;min-width:0}.hub-tile h3{font-size:16px}.hub-tile .hub-tile-label{font-size:11px;letter-spacing:.06em;color:var(--text-3);margin:0 0 12px}.hub-tile .hub-tags{margin-top:auto;padding-top:12px;font-size:12px}.hub-caption{font-size:12px!important;color:var(--text-3)!important;line-height:1.7!important}.hub-dialog{padding:0 36px 36px;width:min(880px,calc(100vw - 40px));max-height:88dvh}.hub-dialog-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;background:var(--surface);border-bottom:1px solid var(--line)}.hub-dialog-toolbar>span{font-size:12px;color:var(--text-3)}.hub-close{height:36px;padding:0 14px;margin:0}.hub-detail-header{display:flex;align-items:center;gap:18px;padding:32px 0 8px}.hub-detail-header h2{margin:8px 0 0;font-size:32px;letter-spacing:-.04em}.hub-tool-mark{position:relative;flex:none;display:grid;place-items:center;width:60px;height:60px;border-radius:16px;background:var(--soft);font-size:24px}.hub-tool-mark img{position:absolute;width:34px;height:34px;object-fit:contain;border-radius:7px;background:var(--soft)}.hub-tool-mark.invert img{filter:invert(1)}body.theme-dark .hub-tool-mark.invert img{filter:none}.hub-detail-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.hub-dialog .hub-detail-section>h3,.hub-dialog .hub-section-line h3{margin:0 0 14px;font-size:17px}.hub-intro{font-size:16px!important;line-height:1.9!important}.hub-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:24px}.hub-dialog h4{font-size:14px;line-height:1.6;margin:0 0 10px}.hub-detail-columns ul{padding-left:18px;margin:0}.hub-detail-columns p{margin-top:0}.hub-section-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.hub-section-line>span{font-size:11px;color:var(--text-3)}.hub-dialog .hub-timeline{list-style:none;padding:0;margin:24px 0}.hub-dialog .hub-timeline li{display:grid;grid-template-columns:102px 1fr;gap:20px;margin:0;position:relative;padding:0 0 24px}.hub-timeline li>div{position:relative;border-left:1px solid var(--line-strong);padding-left:22px}.hub-timeline li>div::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent);position:absolute;left:-4px;top:8px}.hub-timeline time{font-size:12px;font-variant-numeric:tabular-nums;color:var(--text-3)}.hub-timeline a{font-size:12px;color:var(--accent)}.hub-timeline h4{margin-bottom:6px}.hub-pending{padding:20px;background:var(--soft);border-radius:12px}.hub-pending>span{font-size:12px;color:var(--text-3)}.hub-pending p{margin:8px 0 0}.hub-visit{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}.hub-dialog .hub-visit h3{margin:0 0 8px;font-size:17px}.hub-visit p{font-size:12px;margin:0;overflow-wrap:anywhere}.hub-visit .btn{flex-shrink:0}.hub-dialog a.btn-primary,.hub-dialog a.btn-primary:hover{color:var(--bg);text-decoration:none}.hub-related{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hub-related article{padding:18px;border:1px solid var(--line);border-radius:12px}.hub-related p{font-size:12px;margin-bottom:0}.hub-dialog .hub-flow{list-style:none;padding:0;margin:32px 0}.hub-dialog .hub-flow li{display:flex;gap:20px;padding:24px 0;margin:0;border-top:1px solid var(--line)}.hub-step-number{font-size:13px;color:var(--accent);padding-top:3px;font-variant-numeric:tabular-nums}.hub-dialog .hub-flow h3{margin:0 0 8px;font-size:17px}.hub-flow p{margin:0 0 8px}.hub-output{font-size:12px!important;color:var(--accent)!important}.hub-next{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;margin-top:24px}.hub-next a{color:var(--accent)}.hub-table-scroll{overflow-x:auto}.hub-table-scroll table{min-width:540px}.hub-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.hub-metrics article{padding:18px;background:var(--soft);border-radius:12px}.hub-metrics h4{color:var(--accent)}.hub-metrics p{font-size:12px;margin-bottom:0}.hub-solution-steps{padding-left:22px}.hub-solution-steps li{padding-left:8px;margin-bottom:18px}.hub-content[hidden],.directory-heading[hidden]{display:none}
@media(max-width:620px){.hub-dialog{width:calc(100vw - 16px);max-height:94dvh;padding:0 20px 24px}.hub-detail-columns,.hub-related,.hub-metrics{grid-template-columns:1fr;gap:12px}.hub-detail-header h2{font-size:27px}.hub-visit{align-items:stretch;flex-direction:column;padding:20px}.hub-section-line{align-items:flex-start;flex-direction:column;margin-bottom:16px;gap:0}.hub-dialog .hub-timeline li{grid-template-columns:80px 1fr;gap:8px}.hub-tool-mark{width:50px;height:50px}.hub-nav{gap:14px 20px}.hub-intro{font-size:15px!important}}
