/* ============================================================
   NEXUS 精选导航 — 现代深色玻璃拟态设计系统
   （全新风格：区别于原站 2010 目录站风格）
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-2: #10141d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f4f8;
  --text-2: #a9b2c5;
  --text-3: #69728a;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景装饰：顶部光晕 + 网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 32rem at 18% -8%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(48rem 30rem at 88% -6%, rgba(129, 140, 248, 0.15), transparent 60%),
    radial-gradient(40rem 28rem at 55% 112%, rgba(192, 132, 252, 0.1), transparent 62%),
    linear-gradient(180deg, #0b0e14 0%, #0e1220 52%, #0a0d13 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70rem 42rem at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70rem 42rem at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 19px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 8px 22px -8px rgba(34, 211, 238, 0.55);
  color: #0b0e14;
}

.logo-mark svg {
  width: 19px;
  height: 19px;
}

.logo-text {
  background: linear-gradient(90deg, #e9f3ff, #a9c7ff 45%, #e3b7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-ver {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.08em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav-pill:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--stroke);
  transform: translateY(-1px);
}

.nav-pill svg {
  width: 19px;
  height: 19px;
}

/* 语言切换 */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  background: var(--surface-2);
  border-color: var(--stroke-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.lang-btn svg {
  width: 15px;
  height: 15px;
}

.lang-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.lang-switch.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(18, 22, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 200;
}

.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.lang-option:hover {
  background: rgba(129, 140, 248, 0.14);
  color: var(--text);
}

.lang-option.active {
  color: #b9c6ff;
  font-weight: 700;
}

.lang-option.active::after {
  content: "✓";
  color: #818cf8;
  font-weight: 800;
  margin-left: 8px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 24px 44px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  animation: hero-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.hero h1 {
  margin: 22px auto 14px;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  background: linear-gradient(92deg, #7dd3fc 0%, #a5b4fc 42%, #d8b4fe 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

/* 搜索条 */
.hero-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto 18px;
}

.hero-search form {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search form:focus-within {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.12), 0 18px 50px -22px rgba(0, 0, 0, 0.7);
}

.hero-search .search-icon {
  margin-left: 18px;
  color: var(--text-3);
  flex-shrink: 0;
}

.hero-search .search-icon svg {
  width: 19px;
  height: 19px;
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15.5px;
  padding: 16px 14px;
  min-width: 0;
}

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

.hero-search button[type="submit"] {
  margin-right: 8px;
  flex-shrink: 0;
  height: 42px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  color: #0b0e14;
  background: linear-gradient(135deg, #7dd3fc, #818cf8 60%, #c084fc);
  box-shadow: 0 10px 26px -12px rgba(129, 140, 248, 0.7);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-search button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.search-clear {
  margin-right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  flex-shrink: 0;
}

.search-clear:hover {
  color: var(--text);
  background: var(--surface-2);
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

.search-status {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  min-height: 20px;
}

.search-status b {
  color: #b9c6ff;
  font-weight: 700;
}

/* 统计 */
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 26px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.stat .num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #7dd3fc, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .lbl {
  font-size: 13.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ---------- 分类网格 ---------- */
.section-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-3);
  font-size: 13.5px;
}

.grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px 20px 18px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px 160px at 20% 0%, rgba(129, 140, 248, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.75);
  background: var(--surface-2);
}

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

.card.hidden {
  display: none;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.cat-icon svg {
  width: 23px;
  height: 23px;
}

/* 分类主题色（玻璃风格低饱和渐变） */
.cat-icon.cyan   { background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(14, 116, 144, 0.9)); }
.cat-icon.blue   { background: linear-gradient(135deg, rgba(96, 165, 250, 0.9), rgba(37, 99, 235, 0.9)); }
.cat-icon.green  { background: linear-gradient(135deg, rgba(52, 211, 153, 0.9), rgba(5, 150, 105, 0.9)); }
.cat-icon.orange { background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(234, 88, 12, 0.9)); }
.cat-icon.red    { background: linear-gradient(135deg, rgba(248, 113, 113, 0.9), rgba(220, 38, 38, 0.9)); }
.cat-icon.purple { background: linear-gradient(135deg, rgba(192, 132, 252, 0.9), rgba(147, 51, 234, 0.9)); }
.cat-icon.teal   { background: linear-gradient(135deg, rgba(45, 212, 191, 0.9), rgba(13, 148, 136, 0.9)); }
.cat-icon.pink   { background: linear-gradient(135deg, rgba(244, 114, 182, 0.9), rgba(219, 39, 119, 0.9)); }
.cat-icon.indigo { background: linear-gradient(135deg, rgba(129, 140, 248, 0.9), rgba(79, 70, 229, 0.9)); }
.cat-icon.sky    { background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(2, 132, 199, 0.9)); }
.cat-icon.amber  { background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(217, 119, 6, 0.9)); }
.cat-icon.slate  { background: linear-gradient(135deg, rgba(148, 163, 184, 0.9), rgba(71, 85, 105, 0.9)); }

.cat-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.cat-count {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.cat-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 2px 0 12px;
}

/* 站点列表 */
.site-list {
  margin: 0 0 12px;
  flex: 1;
  counter-reset: site;
}

.site-list li {
  counter-increment: site;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  margin: 0 -9px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-list li::before {
  content: counter(site, decimal-leading-zero);
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  opacity: 0.75;
  min-width: 20px;
  text-align: right;
}

.site-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  opacity: 0;
  transform: scaleY(0.4);
  transition: all 0.18s ease;
}

.site-list li:hover,
.site-list li:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.site-list li:hover::after,
.site-list li:focus-visible::after {
  opacity: 1;
  transform: scaleY(1);
}

.site-list li mark {
  background: rgba(251, 191, 36, 0.32);
  color: #ffe8b3;
  border-radius: 4px;
  padding: 0 2px;
}

/* 徽标与标签 */
.badge {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-cyan   { background: #22d3ee; }
.dot-blue   { background: #60a5fa; }
.dot-green  { background: #34d399; }
.dot-orange { background: #fbbf24; }
.dot-red    { background: #f87171; }
.dot-purple { background: #c084fc; }
.dot-pink   { background: #f472b6; }
.dot-yellow { background: #fde047; }

.tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
  flex-shrink: 0;
}

.tag.hot { color: #ffd9a3; background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.35); }
.tag.new { color: #b3ffd9; background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.35); }
.tag.ai  { color: #d5c7ff; background: rgba(192, 132, 252, 0.14); border: 1px solid rgba(192, 132, 252, 0.35); }

/* SEE ALL 按钮 */
.see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
  text-transform: uppercase;
}

.see-all svg {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.see-all:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.see-all:hover svg {
  transform: translateX(3px);
}

.see-all.cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); box-shadow: 0 10px 22px -12px rgba(34, 211, 238, 0.7); }
.see-all.blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 10px 22px -12px rgba(96, 165, 250, 0.7); }
.see-all.green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 22px -12px rgba(52, 211, 153, 0.7); }
.see-all.orange { background: linear-gradient(135deg, #fbbf24, #ea580c); box-shadow: 0 10px 22px -12px rgba(251, 191, 36, 0.7); }
.see-all.red    { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 10px 22px -12px rgba(248, 113, 113, 0.7); }
.see-all.purple { background: linear-gradient(135deg, #c084fc, #9333ea); box-shadow: 0 10px 22px -12px rgba(192, 132, 252, 0.7); }
.see-all.teal   { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 10px 22px -12px rgba(45, 212, 191, 0.7); }
.see-all.pink   { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 22px -12px rgba(244, 114, 182, 0.7); }
.see-all.indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 10px 22px -12px rgba(129, 140, 248, 0.7); }
.see-all.sky    { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 10px 22px -12px rgba(56, 189, 248, 0.7); }
.see-all.amber  { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 10px 22px -12px rgba(251, 191, 36, 0.7); }
.see-all.slate  { background: linear-gradient(135deg, #94a3b8, #475569); box-shadow: 0 10px 22px -12px rgba(148, 163, 184, 0.7); }

/* 空结果 */
.empty-state {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius);
}

.empty-state.visible {
  display: block;
}

.empty-state .big {
  font-size: 44px;
  margin-bottom: 10px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 38px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 13.5px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-3);
  transition: color 0.15s ease;
}

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

.footer-copy {
  border-top: 1px solid var(--stroke);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 12.5px;
}

.footer-copy a {
  color: var(--text-3);
}

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

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.show .modal-backdrop {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 22px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(22, 27, 40, 0.98), rgba(14, 18, 27, 0.98));
  box-shadow: var(--shadow);
  padding: 30px 26px 24px;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.24s ease;
}

.modal.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: all 0.15s ease;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.9), rgba(192, 132, 252, 0.9));
  color: #fff;
}

.modal-icon svg {
  width: 27px;
  height: 27px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--text-2);
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* 进度 */
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dd3fc, #818cf8, #c084fc);
  transition: width 0.32s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

/* 错误页 */
.error-state {
  display: none;
}

.error-state.visible {
  display: block;
}

.error-icon {
  margin: 0 auto 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(248, 113, 113, 0.14);
  color: var(--danger);
}

.error-icon svg {
  width: 26px;
  height: 26px;
}

.error-state h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.error-state p {
  color: var(--text-2);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #0b0e14;
  background: linear-gradient(135deg, #7dd3fc, #818cf8 60%, #c084fc);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-retry:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* 提示 toast */
#toast-wrap {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  border: 1px solid var(--stroke-strong);
  background: rgba(18, 22, 32, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 16px;
  height: 16px;
}

.toast-success svg { color: var(--ok); }
.toast-error svg { color: var(--danger); }

/* ---------- 动画 ---------- */
.a-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.a-fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .a-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 60px;
  }
  .topbar-nav .nav-pill {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-search input {
    font-size: 14.5px;
  }
  .hero-search button[type="submit"] {
    padding: 0 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
