/* ==========================================================================
   ultrav.cn — 设计系统（暗色科技风）
   ========================================================================== */
:root {
  --bg: #04060e;
  --bg-2: #070b18;
  --panel: rgba(14, 20, 38, .72);
  --panel-solid: #0b1223;
  --line: rgba(120, 160, 255, .14);
  --line-2: rgba(120, 160, 255, .28);
  --txt: #e6edff;
  --txt-2: #9aa9c9;
  --txt-3: #64739a;
  --cy: #22d3ee;
  --vi: #8b5cf6;
  --pk: #f472b6;
  --gr: #34d399;
  --or: #fbbf24;
  --rd: #f87171;
  --grad: linear-gradient(100deg, #22d3ee 0%, #6366f1 45%, #a855f7 100%);
  --grad-2: linear-gradient(100deg, #f472b6 0%, #a855f7 100%);
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .8);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, .35); }

/* 背景层 */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, .22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(34, 211, 238, .12), transparent 70%),
    radial-gradient(ellipse 60% 60% at 5% 90%, rgba(168, 85, 247, .12), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(120, 160, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 20%, transparent 85%);
}
.wrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 6, 14, .78); border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: .5px; white-space: nowrap; }
.logo .mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  display: grid; place-items: center; font-size: 14px; box-shadow: 0 0 18px rgba(99, 102, 241, .6);
  animation: spinpulse 6s ease-in-out infinite;
}
@keyframes spinpulse { 0%,100% { box-shadow: 0 0 18px rgba(99,102,241,.5);} 50% { box-shadow: 0 0 26px rgba(34,211,238,.75);} }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo span.dim { color: var(--txt-3); font-weight: 500; font-size: 11px; letter-spacing: 2px; }
nav.menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.menu::-webkit-scrollbar { display: none; }
nav.menu a {
  padding: 7px 11px; border-radius: 9px; white-space: nowrap; color: var(--txt-2);
  font-size: 13px; transition: .18s; position: relative;
}
nav.menu a:hover { color: #fff; background: rgba(120, 160, 255, .09); }
nav.menu a.on { color: #fff; background: rgba(99, 102, 241, .18); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-r { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(120, 160, 255, .06); display: grid; place-items: center; cursor: pointer; transition: .18s; position: relative;
}
.iconbtn:hover { border-color: var(--line-2); background: rgba(120, 160, 255, .14); }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--pk); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
#searchbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(3, 5, 12, .8);
  backdrop-filter: blur(6px); display: none; padding-top: 12vh;
}
#searchbox.open { display: block; animation: fade .18s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sb-in { max-width: 680px; margin: 0 auto; }
.sb-in input {
  width: 100%; padding: 16px 20px; border-radius: 14px; background: var(--panel-solid);
  border: 1px solid var(--line-2); font-size: 16px; outline: none;
}
.sb-res { margin-top: 10px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 55vh; overflow-y: auto; }
.sb-res a { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.sb-res a:hover { background: rgba(120, 160, 255, .08); }

/* ---------------- 通用 ---------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.page-title { font-size: 30px; margin: 34px 0 6px; letter-spacing: -.02em; }
.page-sub { color: var(--txt-2); margin-bottom: 22px; font-size: 13.5px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--txt-3); }
.rankbadge {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 700; font-size: 13px;
}
.sec-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.sec-head h2 { font-size: 19px; }
.sec-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(120, 160, 255, .07); cursor: pointer;
  transition: .18s; font-size: 13px; font-weight: 600;
}
.btn:hover { background: rgba(120, 160, 255, .16); transform: translateY(-1px); }
.btn.pri { background: var(--grad); border: none; color: #04060e; font-weight: 700; }
.btn.pri:hover { box-shadow: 0 8px 26px -8px rgba(99, 102, 241, .85); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.ghost { background: transparent; }

input.f, select.f, textarea.f {
  width: 100%; padding: 9px 12px; border-radius: 10px; background: rgba(5, 8, 18, .8);
  border: 1px solid var(--line); outline: none; transition: .18s;
}
input.f:focus, select.f:focus, textarea.f:focus { border-color: var(--cy); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
label.lb { display: block; font-size: 12px; color: var(--txt-2); margin-bottom: 5px; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); background: rgba(120, 160, 255, .05);
  cursor: pointer; font-size: 12.5px; transition: .16s; color: var(--txt-2); white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: #fff; }
.chip.on { background: var(--grad); color: #04060e; border-color: transparent; font-weight: 700; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px;
  background: rgba(120, 160, 255, .1); border: 1px solid var(--line); color: var(--txt-2);
}
.tag.t-text { background: rgba(34, 211, 238, .12); color: #67e8f9; border-color: rgba(34, 211, 238, .28); }
.tag.t-vision { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .28); }
.tag.t-image { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .28); }
.tag.t-video { background: rgba(244, 114, 182, .12); color: #f9a8d4; border-color: rgba(244, 114, 182, .28); }

/* 数据表 */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 11px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--txt-3); border-bottom: 1px solid var(--line); background: rgba(10, 16, 32, .85);
  position: sticky; top: 60px; backdrop-filter: blur(12px); white-space: nowrap; z-index: 5;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(120, 160, 255, .07); vertical-align: middle; }
table.tbl tbody tr { transition: .12s; }
table.tbl tbody tr:hover { background: rgba(120, 160, 255, .06); }
table.tbl td.num { font-family: var(--mono); white-space: nowrap; }
.cny { color: #67e8f9; font-weight: 600; }
.usd { color: var(--txt-3); font-size: 11.5px; }
.mname { font-weight: 600; color: #fff; }
.mname:hover { color: var(--cy); }
.star { cursor: pointer; font-size: 15px; opacity: .35; transition: .16s; user-select: none; }
.star.on { opacity: 1; transform: scale(1.12); }

.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.pager button.on { background: var(--grad); border-color: transparent; color: #04060e; font-weight: 700; }
.pager button:disabled { opacity: .35; cursor: default; }

.skel { background: linear-gradient(90deg, rgba(120,160,255,.06), rgba(120,160,255,.14), rgba(120,160,255,.06)); background-size: 200% 100%; animation: shim 1.2s infinite; border-radius: 8px; }
@keyframes shim { to { background-position: -200% 0; } }

/* 首页 hero */
.hero { padding: 66px 0 30px; position: relative; }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.1; letter-spacing: -.03em; }
.hero p.lead { color: var(--txt-2); font-size: 15.5px; max-width: 660px; margin: 16px 0 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 28px; }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.stat.in::after { transform: scaleX(1); }
.stat .v { font-size: 26px; font-weight: 800; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .k { font-size: 12px; color: var(--txt-3); margin-top: 2px; }

.cat-card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; transition: .25s; display: block; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px -18px rgba(99, 102, 241, .7); }
.cat-card .ic { font-size: 26px; margin-bottom: 8px; }
.cat-card h3 { font-size: 16px; margin-bottom: 4px; }
.cat-card .n { font-family: var(--mono); font-size: 12px; color: var(--cy); }
.cat-card .glow { position: absolute; width: 160px; height: 160px; border-radius: 50%; filter: blur(46px); opacity: .3; right: -50px; top: -50px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* 滚动价格带 */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 12, 24, .6); padding: 9px 0; }
.ticker-in { display: flex; gap: 34px; width: max-content; animation: tick 42s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker span { font-family: var(--mono); font-size: 12.5px; color: var(--txt-2); white-space: nowrap; }
.ticker b { color: #67e8f9; }

/* 详情页 */
.detail-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin-top: 26px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kv .item { padding: 14px; border-radius: 12px; background: rgba(8, 12, 24, .6); border: 1px solid var(--line); }
.kv .item .k { font-size: 11.5px; color: var(--txt-3); }
.kv .item .v { font-family: var(--mono); font-size: 16px; margin-top: 3px; }

/* 提示词 */
.pcard { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 9px; transition: .22s; }
.pcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pcard .ph { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pcard .pt { font-weight: 700; font-size: 14.5px; }
.pcard .pp { font-family: var(--mono); font-size: 12px; color: #a5b4fc; background: rgba(99, 102, 241, .09); border: 1px solid rgba(99, 102, 241, .2); border-radius: 9px; padding: 10px; max-height: 128px; overflow: auto; line-height: 1.55; }
.pcard .pz { font-size: 12.5px; color: var(--txt-2); }

/* 时间线 */
.tl { position: relative; padding-left: 26px; margin-top: 20px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--cy), var(--vi), transparent); }
.tl-item { position: relative; padding: 0 0 20px 0; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cy); box-shadow: 0 0 12px rgba(34, 211, 238, .8); }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--cy); }

/* 对比 */
.cmp { display: grid; gap: 12px; }
.cmp-row { display: grid; gap: 12px; }
.cmp-cell { padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.cmp-cell.best { border-color: rgba(52, 211, 153, .5); box-shadow: 0 0 0 1px rgba(52, 211, 153, .2), 0 0 24px -10px rgba(52, 211, 153, .6); }

footer { margin: 60px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--txt-3); font-size: 12.5px; }
footer .fl { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a:hover { color: var(--cy); }

#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 200;
  background: var(--panel-solid); border: 1px solid var(--line-2); padding: 10px 20px; border-radius: 12px;
  opacity: 0; transition: .28s; pointer-events: none; font-size: 13px;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 问题反馈 */
.fb-card { margin: 44px 0 20px; padding: 20px; display: grid; gap: 16px; }
.fb-card h3 { font-size: 17px; margin-bottom: 6px; }
.fb-card p { font-size: 12.5px; margin: 0 0 12px; max-width: 760px; }
.fb-l { display: grid; gap: 10px; }
.fb-l textarea, .fb-l input.f { width: 100%; }
.fb-l .chips { gap: 7px; }
.fb-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fb-item { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.fb-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--txt-3); }
.st-pending { color: #fcd34d; }
.st-fixed { color: #6ee7b7; }
.st-ignored { color: #9aa9c9; }
.st-duplicate { color: #a5b4fc; }
.st-human { color: #f9a8d4; }
.st-failed { color: #f87171; }

@media (max-width: 720px) {
  .page-title { font-size: 23px; }
  table.tbl th { top: 60px; }
  .hero { padding-top: 38px; }
  nav.menu { gap: 0; }
}
