/* ============================================================
   添字侠 · 全新蓝色主题（纯手写 CSS，无任何预处理器 / 构建）
   ============================================================ */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  --sky-400: #38bdf8;

  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;

  --line: #e4ecf8;
  --surface: #fff;
  --bg: #f4f8ff;

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 22px rgba(30, 64, 175, 0.07);
  --shadow-hover: 0 14px 36px rgba(30, 64, 175, 0.14);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.22);
  --header-h: 68px;
  --max-w: 1160px;
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

[v-cloak] { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(59, 130, 246, 0.1), transparent 70%),
    radial-gradient(760px 400px at 92% 4%, rgba(56, 189, 248, 0.1), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--brand-200); color: var(--brand-900); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.app-main { flex: 1; padding-bottom: 72px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); box-shadow: 0 6px 18px rgba(37, 99, 235, .26); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 99, 235, .34); }
.btn-outline { color: var(--brand-700); background: #fff; border: 1.5px solid var(--brand-200); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand-500); background: var(--brand-50); }
.btn-soft { color: var(--brand-700); background: var(--brand-50); }
.btn-soft:hover:not(:disabled) { background: var(--brand-100); }
.btn-white { color: var(--brand-800); background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .16); }
.btn-white:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, .22); }
.btn-ghost-white {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .62);
  text-shadow: 0 1px 3px rgba(15, 23, 42, .28);
  backdrop-filter: blur(6px);
}
.btn-ghost-white:hover:not(:disabled) { background: rgba(255, 255, 255, .3); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 10px; }

/* ---------------- 卡片 / 状态 ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.state-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 240px; padding: 44px 20px; text-align: center; color: var(--ink-500);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.state-icon { font-size: 38px; line-height: 1; }
.state-title { font-size: 16px; font-weight: 600; color: var(--ink-800); }
.state-desc { font-size: 13.5px; max-width: 520px; line-height: 1.7; }
.state-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.skeleton { position: relative; overflow: hidden; background: #eaf1fd; border-radius: 8px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: shimmer 1.35s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px);
  animation: maskIn .2s ease;
}
@keyframes maskIn { from { opacity: 0 } to { opacity: 1 } }
.modal-panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: panelIn .26s cubic-bezier(.22, 1, .36, 1);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.97) } to { opacity: 1; transform: none } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 0; }
.modal-title { margin: 0; font-size: 21px; font-weight: 700; color: var(--ink-900); }
.modal-sub { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-500); }
.modal-close {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink-400); background: var(--brand-50);
  transition: background .18s, color .18s;
}
.modal-close:hover { color: var(--brand-700); background: var(--brand-100); }
.modal-body { padding: 24px 28px 28px; }
.field-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.text-input {
  display: block; width: 100%; height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdff;
  font-size: 16px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.text-input:focus { border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.text-input::placeholder { color: var(--ink-400); }
.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-400); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }

/* ---------------- 详情弹窗（首页留在背景，不跳页面） ---------------- */
.info-mask { z-index: 1050; }
.info-modal { max-width: 860px; background: #f7fbff; }
.info-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  color: var(--brand-700); background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 12px rgba(30, 64, 175, .18);
}
.info-modal-close:hover { color: #fff; background: var(--brand-600); }
.info-modal-body { padding: 20px; }
.info-modal .info-hero { padding: 30px 34px; border-radius: 18px; }
.info-modal .info-hero h1 { font-size: clamp(24px, 3vw, 34px); }
.info-modal .result-head { margin: 24px 0 14px; }
.info-modal .bottom-cta { background: #fff; }

.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------------- Toast ---------------- */
.toast-host {
  position: fixed; top: calc(var(--header-h) + 16px); left: 50%; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateX(-50%); pointer-events: none;
}
.toast-item {
  display: flex; align-items: center; gap: 10px; max-width: min(90vw, 440px);
  padding: 12px 20px; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 500;
  background: rgba(15, 23, 42, .9); box-shadow: 0 10px 30px rgba(15, 23, 42, .2);
  backdrop-filter: blur(8px); animation: toastIn .24s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) } to { opacity: 1; transform: none } }
.toast-item.success { background: linear-gradient(135deg, #22a35a, #15803d); box-shadow: 0 10px 30px rgba(21, 128, 61, .28); }
.toast-item.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-icon {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px;
  border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.rise { animation: rise .42s both; }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .88); border-bottom: 1px solid rgba(228, 236, 248, .9);
  backdrop-filter: saturate(180%) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; color: #fff; font-size: 21px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 5px 14px rgba(37, 99, 235, .28);
}
.brand-plus {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center;
  width: 17px; height: 17px; border: 2px solid #fff; border-radius: 50%;
  background: var(--sky-400); font-size: 11px; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-weight: 700; letter-spacing: .5px; color: var(--ink-900); }
.brand-text small { margin-top: 3px; font-size: 10.5px; color: var(--ink-400); }
.nav-desktop { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; padding: 9px 16px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-500); transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.active { color: var(--brand-700); background: var(--brand-50); font-weight: 700; }
.nav-link.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px;
  border-radius: 3px; background: var(--brand-600); transform: translateX(-50%);
}
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-cta .plus { font-size: 16px; line-height: 1; }
.menu-toggle { display: none; width: 38px; height: 38px; border: 1.5px solid var(--brand-100); border-radius: 11px; background: var(--brand-50); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 17px; height: 2px; margin: 0 auto; border-radius: 2px;
  background: var(--brand-700); transition: transform .2s, opacity .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: relative; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 4px; }
.menu-toggle span.open { background: transparent; }
.menu-toggle span.open::before { top: 0; transform: rotate(45deg); }
.menu-toggle span.open::after { top: -2px; transform: rotate(-45deg); }
.nav-mobile {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 16px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 26px rgba(30, 64, 175, .08);
}
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 14px;
  border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-700);
}
.nav-mobile-link span { color: var(--brand-300); }
.nav-mobile-link.active { color: var(--brand-700); background: var(--brand-50); font-weight: 700; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, #1e40af 0%, #2563eb 52%, #0ea5e9 100%); }
.hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-a { top: -180px; left: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 68%); }
.deco-b { right: -140px; bottom: -220px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(56, 189, 248, .36), transparent 68%); }
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 48px; padding-top: 36px; padding-bottom: 62px;
}
.hero-badge {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px;
  background: rgba(255, 255, 255, .13); font-size: 12.5px; font-weight: 600; letter-spacing: 1px;
}
.hero h1 { margin: 14px 0 0; font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; line-height: 1.28; letter-spacing: .5px; }
.hero h1 em { position: relative; font-style: normal; color: #bae6fd; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 5px;
  border-radius: 5px; background: rgba(186, 230, 253, .42);
}
.hero-desc { max-width: 480px; margin: 12px 0 0; font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .86); }
.hero-demo { position: relative; display: grid; place-items: center; }
.demo-card {
  width: 100%; max-width: 350px; padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 22px;
  background: rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(10, 30, 90, .28);
  backdrop-filter: blur(14px); transform: rotate(-2deg);
}
.demo-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; background: rgba(255, 255, 255, .94); }
.demo-tag { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 700; }
.demo-tag.result { background: #fff0f3; color: #db2777; }
.demo-word { font-size: 21px; font-weight: 700; color: var(--ink-900); word-break: break-all; }
.demo-word.result { color: var(--brand-700); }
.demo-arrow { display: flex; align-items: center; gap: 8px; padding: 7px 4px; }
.arrow-line { flex: 1; height: 1px; background: rgba(255, 255, 255, .36); }
.arrow-chip { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: #e0f2fe; }
.demo-float {
  position: absolute; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 16px;
  background: rgba(255, 255, 255, .2); font-weight: 800; backdrop-filter: blur(8px);
  animation: float 4s ease-in-out infinite;
}
.demo-float.f1 { top: -18px; right: 4px; width: 52px; height: 52px; font-size: 24px; }
.demo-float.f2 { bottom: -16px; left: -8px; width: 56px; height: 46px; font-size: 17px; color: #e0f2fe; animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg) } 50% { transform: translateY(-10px) rotate(4deg) } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--bg); border-radius: 26px 26px 0 0; }

/* ============================================================
   列表
   ============================================================ */
.list-section { padding-top: 34px; scroll-margin-top: calc(var(--header-h) + 12px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: 25px; font-weight: 800; color: var(--ink-900); }
.section-title p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-500); }
.section-title b { color: var(--brand-700); }
.sort-tabs {
  display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line);
  border-radius: 13px; background: #fff; box-shadow: var(--shadow);
}
.sort-tab {
  padding: 9px 15px; border-radius: 9px; color: var(--ink-500);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: all .18s;
}
.sort-tab:hover { color: var(--brand-700); background: var(--brand-50); }
.sort-tab.active { color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); box-shadow: 0 4px 12px rgba(37, 99, 235, .24); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.name-card {
  display: flex; flex-direction: column; padding: 22px 24px 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.name-card:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow-hover); }
.card-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.4; color: var(--ink-900); word-break: break-all; }
.card-flow { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; }
.flow-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-100)); }
.flow-line:last-child { background: linear-gradient(90deg, var(--brand-100), transparent); }
.flow-plus { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--brand-400); }
.card-result {
  position: relative; padding: 14px 30px; border-radius: 12px;
  border: 1px solid #d5e7ff;
  background: linear-gradient(120deg, #edf6ff, #dcecff);
  color: #5b9bf3;
  font-size: 23px; font-weight: 700; line-height: 1.45; text-align: center;
  word-break: break-all; cursor: pointer;
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.card-result::after {
  content: '›'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; line-height: 1; opacity: .6;
}
.card-result:hover { background: #dcecff; border-color: #b9d6ff; color: #3b82f6; transform: translateY(-1px); }
.card-result:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.card-result.empty { background: #f2f8ff; color: #9cc4f5; border-color: #e2eeff; font-size: 17px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-stats { display: flex; gap: 12px; flex: none; }
.stat { font-size: 12px; font-weight: 600; color: var(--ink-400); }
.card-actions { display: flex; align-items: center; gap: 12px; }
.mini-btn {
  padding: 7px 12px; border: 1px solid var(--brand-200); border-radius: 9px;
  background: #fff; color: var(--brand-700); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; transition: all .18s;
}
.mini-btn:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.more-link { font-size: 12.5px; font-weight: 600; color: var(--ink-500); white-space: nowrap; transition: color .18s; }
.more-link:hover { color: var(--brand-700); }
.more-link span { display: inline-block; transition: transform .18s; }
.more-link:hover span { transform: translateX(3px); }
.skeleton-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.sk-title { width: 62%; height: 28px; }
.sk-line { width: 100%; height: 8px; }
.sk-result { width: 100%; height: 58px; border-radius: 12px; }
.sk-foot { width: 100%; height: 20px; margin-top: 4px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; justify-content: center; margin: 34px 0 8px; }
.pager-desktop {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 7px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
}
.page-btn {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink-700); font-size: 14px; font-weight: 600; transition: all .16s;
}
.page-btn:hover:not(:disabled):not(.current) { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.page-btn:disabled { color: var(--ink-300); cursor: not-allowed; }
.page-btn.text { min-width: 48px; font-size: 13px; }
.page-btn.current { border-color: var(--brand-600); background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .26); }
.page-cell { display: inline-flex; }
.ellipsis { display: grid; place-items: center; width: 22px; color: var(--ink-400); }
.pager-info { margin-left: 8px; font-size: 12.5px; color: var(--ink-400); white-space: nowrap; }
.jump { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.jump-input { width: 62px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; font-size: 13px; text-align: center; outline: none; }
.jump-input:focus { border-color: var(--brand-500); }
.jump-btn { height: 34px; padding: 0 11px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 600; }
.jump-btn:hover { background: var(--brand-100); }
.pager-mobile { display: none; align-items: center; gap: 10px; width: 100%; }
.page-btn.wide { flex: 1; min-width: 92px; height: 42px; }
.pager-current { flex: none; font-size: 13px; font-weight: 700; color: var(--brand-700); white-space: nowrap; }

/* ============================================================
   详情页
   ============================================================ */
.info-page { padding-top: 26px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--ink-400); }
.breadcrumb a { color: var(--brand-600); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.crumb-sep { color: var(--ink-300); }
.crumb-current { color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  overflow: hidden; padding: 38px 40px; border-radius: 24px; color: #fff;
  background: linear-gradient(122deg, #1e40af, #2563eb 58%, #0ea5e9);
  box-shadow: 0 18px 42px rgba(30, 64, 175, .2);
}
.info-hero-deco { position: absolute; top: -160px; right: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%); pointer-events: none; }
.info-hero-main, .info-hero-actions { position: relative; z-index: 1; }
.info-badge { display: inline-block; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 700; letter-spacing: 3px; }
.info-hero h1 { margin: 16px 0 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.3; word-break: break-all; text-shadow: 0 4px 18px rgba(15, 23, 42, .16); }
.info-hero-desc { margin: 14px 0 0; font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .9); }
.info-hero-desc b { color: #fff; font-weight: 700; }
.info-hero-tip { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.info-hero-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 34px 0 18px; }
.result-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink-900); }
.result-count { font-size: 13px; color: var(--ink-400); }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-card { display: flex; align-items: center; gap: 18px; padding: 16px 20px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.comment-card:hover { border-color: var(--brand-200); transform: translateX(3px); }
.rank { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50); color: var(--brand-500); font-size: 13px; font-weight: 700; }
.rank.top { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: 0 4px 10px rgba(37, 99, 235, .24); }
.comment-content { flex: 1; min-width: 0; }
.comment-label { font-size: 11px; color: var(--ink-400); }
.comment-title { margin-top: 3px; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--ink-900); word-break: break-all; }
.vote-group { display: flex; gap: 8px; flex: none; }
.vote-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink-500); font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .16s;
}
.vote-btn b { font-size: 12px; color: var(--ink-400); }
.vote-icon { font-size: 15px; line-height: 1; }
.vote-btn.up:hover:not(:disabled) { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.vote-btn.down:hover:not(:disabled) { border-color: var(--ink-300); color: var(--ink-700); background: #f8fafc; }
.vote-btn.up.voted { border-color: var(--brand-500); color: #fff; background: var(--brand-600); }
.vote-btn.down.voted { border-color: #94a3b8; color: #fff; background: #94a3b8; }
.vote-btn.voted b { color: rgba(255, 255, 255, .85); }
.vote-btn:disabled { cursor: default; }
.bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 24px 28px; background: linear-gradient(120deg, #fff, var(--brand-50)); }
.bottom-cta h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-900); }
.bottom-cta p { margin: 6px 0 0; font-size: 13px; color: var(--ink-500); }
.bottom-cta-actions { display: flex; gap: 10px; flex: none; }
.loading-wrap { display: flex; flex-direction: column; gap: 12px; }
.sk-hero { height: 190px; border-radius: 24px; }
.sk-row { height: 76px; border-radius: 16px; }

/* ============================================================
   页脚 / 广告
   ============================================================ */
.footer { margin-top: auto; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 36px; }
.footer-brand { max-width: 480px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink-900); }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 17px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.footer-desc { margin: 14px 0 12px; font-size: 13px; line-height: 1.8; color: var(--ink-500); }
.footer-copy { margin: 0; font-size: 12.5px; color: var(--ink-400); }
.footer-links { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-links h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-800); }
.footer-links a { font-size: 13px; color: var(--ink-500); transition: color .18s; }
.footer-links a:hover { color: var(--brand-600); }
.footer-domain { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--brand-100); border-radius: 999px; background: var(--brand-50); font-size: 12.5px; font-weight: 600; color: var(--brand-700); white-space: nowrap; }
.domain-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }

.float-ad {
  position: fixed; left: 24px; bottom: 24px; z-index: 800;
  display: flex; align-items: center; gap: 2px; padding: 5px 6px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 12px 30px rgba(30, 64, 175, .3);
}
.float-ad-link { display: flex; align-items: center; gap: 8px; padding: 4px 8px; color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.float-ad-spark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 12px; }
.float-ad-arrow { opacity: .75; font-size: 12px; }
.ad-close { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1; background: rgba(255, 255, 255, .14); }
.ad-close:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.side-ad { position: fixed; right: 0; top: 46%; z-index: 790; display: flex; align-items: flex-start; border: 1px solid var(--brand-100); border-right: 0; border-radius: 14px 0 0 14px; background: #fff; box-shadow: 0 8px 26px rgba(30, 64, 175, .12); overflow: hidden; }
.side-ad-link { display: flex; align-items: center; gap: 10px; padding: 14px 12px; color: var(--brand-700); font-size: 13px; font-weight: 600; writing-mode: vertical-rl; letter-spacing: 2px; }
.side-ad-icon { writing-mode: horizontal-tb; font-size: 16px; color: var(--brand-500); }
.side-ad-close { position: absolute; top: 2px; left: 2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ink-400); font-size: 14px; line-height: 1; background: var(--brand-50); }
.side-ad-close:hover { color: var(--brand-700); }

/* ============================================================
   添字弹窗
   ============================================================ */
.word-modal { max-width: 600px; }
.origin-line { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--brand-50); }
.origin-label { flex: none; padding: 3px 9px; border-radius: 6px; background: #fff; color: var(--brand-700); font-size: 11.5px; font-weight: 700; }
.origin-title { font-size: 20px; font-weight: 700; color: var(--brand-900); word-break: break-all; }
.word-builder {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px;
  margin: 26px 0 22px; padding: 22px 14px;
  border: 1.5px dashed var(--brand-200); border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
}
.slot-pair { display: inline-flex; align-items: center; gap: 7px; }
.orig-char { font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--ink-900); }
.slot-input {
  width: 38px; height: 40px; flex: none; border: 1.5px dashed var(--brand-400);
  border-radius: 9px; background: #fff; color: var(--brand-700);
  font-size: 20px; font-weight: 700; text-align: center; outline: none; transition: all .16s;
}
.slot-input:hover { border-color: var(--brand-600); background: var(--brand-50); }
.slot-input:focus { border-style: solid; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(59, 130, 246, .14); }
.slot-input.filled { border-style: solid; border-color: var(--brand-600); background: var(--brand-600); color: #fff; }
.preview-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: all .2s; }
.preview-box.ready { border-color: var(--brand-300); background: var(--brand-50); }
.preview-label { font-size: 12px; font-weight: 600; color: var(--ink-400); }
.preview-text { font-size: 20px; font-weight: 700; color: var(--ink-900); word-break: break-all; }
.preview-box.ready .preview-text { color: var(--brand-700); }
.preview-ok { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-600); }
.builder-tip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--ink-400); }
.clear-btn { flex: none; color: var(--brand-600); font-size: 12.5px; font-weight: 600; }
.clear-btn:hover { text-decoration: underline; }
.loading-box, .error-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; }
.error-box p { margin: 0; color: var(--ink-500); font-size: 14px; text-align: center; }
.loading-box .sk-line { width: 80%; height: 22px; }
.loading-box .sk-line.short { width: 55%; height: 40px; }

.notfound { padding-top: 60px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; padding-bottom: 50px; }
  .hero-demo { max-width: 420px; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .app-main { padding-bottom: 48px; }
  .hero h1 { font-size: 31px; }
  .hero-desc { font-size: 14px; }
  .hero-inner { padding-top: 24px; padding-bottom: 42px; }
  .demo-card { padding: 16px; }
  .demo-word { font-size: 20px; }
  .section-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .section-title h2 { font-size: 22px; }
  .sort-tabs { width: 100%; }
  .sort-tab { flex: 1; padding: 9px 6px; font-size: 13px; text-align: center; }
  .card-grid { gap: 14px; }
  .name-card { padding: 18px 18px 15px; }
  .card-title { font-size: 21px; }
  .card-result { font-size: 20px; }
  .pager { margin-top: 26px; }
  .pager-desktop { display: none; }
  .pager-mobile { display: flex; }
  .info-page { padding-top: 18px; }
  .info-hero { flex-direction: column; align-items: stretch; gap: 22px; padding: 26px 22px; border-radius: 20px; }
  .info-hero-actions { flex-direction: row; }
  .info-hero-actions .btn { flex: 1; padding: 0 12px; font-size: 13.5px; }
  .info-hero-tip { font-size: 12px; }
  .result-head { margin: 26px 0 14px; }
  .result-head h2 { font-size: 19px; }
  .result-count { font-size: 11.5px; }
  .bottom-cta { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .bottom-cta-actions { width: 100%; }
  .bottom-cta-actions .btn { flex: 1; }
  .footer-inner { flex-direction: column; gap: 24px; padding-top: 30px; padding-bottom: 28px; }
  .side-ad { display: none; }
  /* 手机端不采用 fixed 悬浮（会持续压住列表内容），改为页尾的普通广告条 */
  .float-ad {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0 auto max(20px, env(safe-area-inset-bottom));
  }
  .toast-host { top: calc(var(--header-h) + 10px); }
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal-panel { max-width: none; max-height: 88vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .info-modal-body { padding: 14px; }
  .info-modal .info-hero { padding: 24px 20px; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(100%) } to { opacity: 1; transform: none } }
  .modal-head { padding: 22px 20px 0; }
  .modal-body { padding: 20px 20px 26px; }
  .orig-char { font-size: 25px; }
  .slot-input { width: 32px; height: 36px; font-size: 18px; }
  .word-builder { gap: 5px; padding: 18px 8px; }
  .slot-pair { gap: 5px; }
  .preview-text { font-size: 17px; }
  .builder-tip span { font-size: 11px; }
}
@media (max-width: 640px) {
  .comment-card { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .comment-content { flex: 1 1 calc(100% - 48px); }
  .comment-title { font-size: 18px; }
  .vote-group { width: 100%; padding-left: 42px; }
  .vote-btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .header-cta { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .header-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   只读预览提示条（仅 CORS 未放行、自动降级时出现）
   ============================================================ */
.preview-bar {
  background: linear-gradient(90deg, #e2edff, #ecf5ff);
  border-bottom: 1px solid var(--brand-200);
  color: var(--brand-900);
  font-size: 13px;
  line-height: 1.7;
}
.preview-bar-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.preview-icon { flex: none; font-size: 16px; line-height: 1.4; color: var(--brand-600); }
.preview-bar p { flex: 1; margin: 0; }
.preview-bar b { color: var(--brand-800); }
.preview-bar code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.09);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.preview-close {
  flex: none;
  width: 24px;
  height: 24px;
  line-height: 22px;
  border-radius: 6px;
  color: var(--brand-700);
  font-size: 18px;
}
.preview-close:hover { background: rgba(37, 99, 235, 0.1); }
@media (max-width: 640px) {
  .preview-bar-inner { padding-left: 14px; padding-right: 14px; font-size: 12px; }
  .preview-bar code { font-size: 11px; }
}
