/* ============================================================
   引航采集器 · 设计系统 v2「深海之光」
   深空科技风 · 玻璃拟态 · 霓虹强调 · 移动优先 · 克制的高阶动效
   ============================================================ */

/* ---------------- 设计令牌 ---------------- */
:root {
  /* 底色层次 */
  --void:      #eef4fd;
  --abyss:     #f6faff;
  --deep:      #e7f0fd;
  --panel:     rgba(255,255,255,.84);
  --panel-2:   rgba(255,255,255,.68);
  --panel-hi:  rgba(255,255,255,.92);

  /* 描边 */
  --edge:      rgba(37,99,235,.14);
  --edge-2:    rgba(37,99,235,.3);
  --edge-glow: rgba(59,130,246,.5);

  /* 文字 */
  --tx-1: #0d1b33;
  --tx-2: #3d5675;
  --tx-3: #5b7699;
  --tx-4: #7d90a8;

  /* 强调色 */
  --cyan:   #0891b2;
  --sky:    #2563eb;
  --blue:   #2563eb;
  --indigo: #6366f1;
  --ok:     #34d399;
  --warn:   #fbbf24;
  --bad:    #f87171;

  /* 渐变 */
  --grad-main: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #4f46e5 100%);
  --grad-soft: linear-gradient(135deg, rgba(8,145,178,.14), rgba(99,102,241,.16));
  --grad-text: linear-gradient(150deg, #1e40af 0%, #2563eb 50%, #0891b2 100%);

  /* 尺寸 */
  --r-xs: 8px;  --r-sm: 11px;  --r: 16px;  --r-lg: 22px;  --r-xl: 30px;

  /* 阴影与发光 */
  --sh-1: 0 1px 2px rgba(30,58,138,.08), 0 10px 30px -18px rgba(30,58,138,.18);
  --sh-2: 0 2px 6px rgba(30,58,138,.10), 0 24px 60px -28px rgba(30,58,138,.20);
  --glow-cyan: 0 0 0 1px rgba(34,211,238,.22), 0 0 28px -6px rgba(34,211,238,.45);
  --glow-blue: 0 0 0 1px rgba(59,130,246,.25), 0 0 30px -8px rgba(59,130,246,.5);

  --max: 1240px;
  --ease: cubic-bezier(.22,.9,.28,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--tx-1);
  background: var(--void);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(56,189,248,.28); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56,189,248,.35), rgba(99,102,241,.35));
  border-radius: 10px; border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(56,189,248,.6), rgba(99,102,241,.6));
  background-clip: content-box;
}

/* ---------------- 背景光层 ---------------- */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 780px at 8% -12%, rgba(8,145,178,.14), transparent 58%),
    radial-gradient(1000px 700px at 96% -4%, rgba(79,70,229,.12), transparent 56%),
    radial-gradient(900px 900px at 50% 118%, rgba(59,130,246,.13), transparent 60%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep) 46%, var(--void) 100%);
}
/* 科技网格 */
.bg::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(37,99,235,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.085) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 92% 68% at 50% 24%, #000 6%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 92% 68% at 50% 24%, #000 6%, transparent 78%);
}
/* 光斑呼吸 */
.bg::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(520px 380px at 22% 18%, rgba(56,189,248,.16), transparent 62%),
    radial-gradient(460px 360px at 78% 32%, rgba(99,102,241,.10), transparent 64%);
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-2.4%, 2.2%, 0) scale(1.06); }
}

main, header, footer, .shell { position: relative; z-index: 1; }

/* ---------------- 排版 ---------------- */
a { color: var(--sky); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.024em; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding-left: 18px; }
li { margin: 3px 0; }
code, kbd, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
}
kbd {
  padding: 1px 6px; border-radius: 5px; border: 1px solid var(--edge-2);
  background: rgba(56,189,248,.08); color: var(--sky); font-size: 11.5px;
}
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------------- 布局 ---------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 0 26px; }
.row { display: flex; gap: 14px; align-items: center; }
.between { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.mt-1{margin-top:6px} .mt-2{margin-top:12px} .mt-3{margin-top:20px} .mt-4{margin-top:30px} .mt-5{margin-top:44px}
.mb-2{margin-bottom:12px} .mb-3{margin-bottom:20px}
.muted { color: var(--tx-2); } .muted-2 { color: var(--tx-4); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; }
.center { text-align: center; } .nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ---------------- 顶栏 ---------------- */
header.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-bottom: 1px solid var(--edge);
}
header.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.5) 22%, rgba(99,102,241,.5) 78%, transparent);
  opacity: .7;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 660; letter-spacing: -.02em; color: var(--tx-1); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none; position: relative;
  background: var(--grad-main);
  box-shadow: 0 0 0 1px rgba(125,211,252,.32), 0 8px 24px -8px rgba(56,189,248,.8);
  overflow: hidden;
}
.brand .mark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.6), transparent 55%);
}
.brand .mark::after {
  content: ""; position: absolute; inset: 10px; border-radius: 3px;
  border: 2.5px solid rgba(255,255,255,.96);
  border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg);
}
.brand small {
  display: block; font-size: 9.5px; letter-spacing: .22em; font-weight: 640;
  color: var(--sky); opacity: .78; text-transform: uppercase; margin-top: 1px;
}
.brand .txt { font-size: 15.5px; }

nav.top-nav { display: flex; gap: 4px; align-items: center; }
nav.top-nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--tx-2);
  font-size: 13.5px; font-weight: 520; transition: .2s var(--ease);
  position: relative;
}
nav.top-nav a:hover { background: rgba(56,189,248,.09); color: var(--tx-1); }
nav.top-nav a.on {
  background: rgba(56,189,248,.12); color: var(--sky);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.22);
}

/* ---------------- 卡片 ---------------- */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 22px;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
/* 顶部高光线 */
.card::before {
  content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.42), transparent);
  opacity: .8; pointer-events: none;
}
.card:hover {
  border-color: var(--edge-2);
  box-shadow: var(--sh-2), 0 0 40px -22px rgba(56,189,248,.7);
}
.card.tight { padding: 18px; }
.card.flat { box-shadow: none; background: rgba(255,255,255,.6); }
.card.hl { border-color: var(--edge-2); box-shadow: var(--sh-1), var(--glow-blue); }

.card h3 { font-size: 15px; }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card .hd .t { font-size: 13px; font-weight: 640; letter-spacing: .04em; color: var(--tx-2); text-transform: uppercase; }
.card .hd .s { font-size: 11.5px; color: var(--tx-4); }

/* ---------------- 数字指标 ---------------- */
.kpi { display: flex; flex-direction: column; gap: 3px; }
.kpi .n {
  font-size: 46px; line-height: 1.02; font-weight: 660; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 12px rgba(37,99,235,.20));
}
.kpi .n.sm { font-size: 32px; }
.kpi .u {
  font-size: 11.5px; color: var(--tx-3); font-weight: 560;
  letter-spacing: .1em; text-transform: uppercase;
}
.kpi .l { font-size: 12.5px; color: var(--tx-3); margin-top: 1px; }

/* 迷你趋势线 */
.spark { display: block; width: 100%; height: 44px; overflow: visible; margin-top: 10px; }
.spark path.line {
  fill: none; stroke: url(#sparkg); stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(56,189,248,.7));
}
.spark path.area { fill: url(#sparka); stroke: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid var(--edge-2);
  background: rgba(255,255,255,.9); color: var(--tx-1);
  font-weight: 560; font-size: 13.5px; cursor: pointer;
  transition: .2s var(--ease); white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover:not([disabled]) {
  background: rgba(239,246,255,.98); border-color: var(--edge-glow);
  transform: translateY(-1px); box-shadow: 0 8px 26px -12px rgba(56,189,248,.7);
}
.btn:active:not([disabled]) { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .38; cursor: not-allowed; }
.btn.pri {
  background: var(--grad-main); border-color: transparent; color: #ffffff;
  font-weight: 640; box-shadow: 0 10px 30px -14px rgba(56,189,248,.9);
}
.btn.pri:hover:not([disabled]) {
  box-shadow: 0 14px 40px -14px rgba(56,189,248,1);
  filter: brightness(1.08);
}
/* 扫光 */
.btn.pri::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .55s var(--ease);
}
.btn.pri:hover::after { left: 130%; }
.btn.dgr { color: var(--bad); border-color: rgba(248,113,113,.32); background: rgba(254,242,242,.92); }
.btn.dgr:hover:not([disabled]) { background: rgba(254,226,226,.96); border-color: rgba(248,113,113,.55); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 50px; padding: 0 30px; font-size: 15px; border-radius: 13px; }
.btn.blk { width: 100%; }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 560; color: var(--tx-2); letter-spacing: .02em; }
.field .hint { font-size: 11.5px; color: var(--tx-4); line-height: 1.5; }

input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], select, textarea {
  height: 46px; padding: 0 15px; border-radius: var(--r-sm);
  border: 1px solid var(--edge); background: rgba(255,255,255,.88);
  color: var(--tx-1); transition: .2s var(--ease); width: 100%; outline: none;
}
textarea { height: auto; min-height: 88px; padding: 13px 15px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--edge-glow); background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(56,189,248,.14), 0 0 26px -10px rgba(56,189,248,.7);
}
input::placeholder, textarea::placeholder { color: var(--tx-4); }
input[disabled] { opacity: .55; cursor: not-allowed; }
select {
  appearance: none; background-image:
    linear-gradient(45deg, transparent 50%, var(--sky) 50%),
    linear-gradient(135deg, var(--sky) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 38px;
}
select option { background: #e7f0fd; color: var(--tx-1); }
.chk { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--tx-2); cursor: pointer; }
.chk input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--sky); cursor: pointer; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
th {
  text-align: left; font-weight: 600; color: var(--tx-4); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px;
  border-bottom: 1px solid var(--edge-2); white-space: nowrap;
  background: rgba(241,247,255,.85); position: sticky; top: 0; z-index: 2;
}
th:first-child { border-radius: var(--r-xs) 0 0 0; }
th:last-child { border-radius: 0 var(--r-xs) 0 0; }
td { padding: 13px 12px; border-bottom: 1px solid rgba(37,99,235,.07); vertical-align: middle; }
tbody tr { transition: background .18s var(--ease); }
tbody tr:hover { background: rgba(56,189,248,.055); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- 标签 / 状态 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 7px; font-size: 11.5px; font-weight: 560;
  background: rgba(100,116,139,.12); color: var(--tx-2);
  border: 1px solid rgba(100,116,139,.24);
}
.tag.ok   { background: rgba(52,211,153,.13); color: #047857; border-color: rgba(52,211,153,.3); }
.tag.warn { background: rgba(251,191,36,.13); color: #b45309; border-color: rgba(251,191,36,.3); }
.tag.bad  { background: rgba(248,113,113,.13); color: #b91c1c; border-color: rgba(248,113,113,.3); }
.tag.blue { background: rgba(56,189,248,.13); color: #1d4ed8; border-color: rgba(56,189,248,.3); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-4); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.2), 0 0 12px rgba(52,211,153,.9);
          animation: pulse 2.2s var(--ease) infinite; }
.dot.off { background: var(--tx-4); }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(52,211,153,.18), 0 0 10px rgba(52,211,153,.7); }
  50%     { box-shadow: 0 0 0 5px rgba(52,211,153,.06), 0 0 18px rgba(52,211,153,1); }
}

/* ---------------- 提示 ---------------- */
.alert {
  padding: 13px 16px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.65;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.alert::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px;
}
.alert.info { background: rgba(56,189,248,.09); border-color: rgba(56,189,248,.24); color: #1e40af; }
.alert.info::before { background: var(--sky); }
.alert.ok   { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.26); color: #065f46; }
.alert.ok::before { background: var(--ok); }
.alert.bad  { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.26); color: #991b1b; }
.alert.bad::before { background: var(--bad); }
.alert.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.26); color: #92400e; }
.alert.warn::before { background: var(--warn); }

.empty { padding: 52px 20px; text-align: center; color: var(--tx-4); font-size: 13px; }
.empty::before {
  content: ""; display: block; width: 42px; height: 42px; margin: 0 auto 14px;
  border-radius: 12px; border: 1.5px dashed rgba(100,116,139,.42);
  background: radial-gradient(circle at 50% 50%, rgba(56,189,248,.1), transparent 70%);
}

/* ---------------- 侧栏 + 主区 ---------------- */
.shell {
  display: grid; grid-template-columns: 224px minmax(0,1fr); gap: 26px;
  align-items: start; padding: 30px 0 76px;
}
aside.side {
  position: sticky; top: 96px;
  background: linear-gradient(165deg, rgba(255,255,255,.92), rgba(241,247,255,.82));
  border: 1px solid var(--edge); border-radius: var(--r);
  padding: 10px; box-shadow: var(--sh-1);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
aside.side a {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border-radius: var(--r-sm); color: var(--tx-2); font-size: 13.5px; font-weight: 520;
  position: relative; transition: .2s var(--ease); margin-bottom: 2px;
}
aside.side a:hover { background: rgba(56,189,248,.07); color: var(--tx-1); }
aside.side a.on {
  background: linear-gradient(90deg, rgba(56,189,248,.16), rgba(99,102,241,.05));
  color: var(--sky); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.2);
}
aside.side a.on::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px;
  border-radius: 2px; background: var(--grad-main);
  box-shadow: 0 0 14px rgba(56,189,248,.9);
}
aside.side .ico { width: 16px; height: 16px; flex: none; opacity: .8; }
aside.side .sep { height: 1px; background: var(--edge); margin: 8px 12px; }
.pane { min-width: 0; }

/* ---------------- 弹层 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center;
  justify-content: center; padding: 22px;
  background: rgba(15,32,64,.26);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .18s var(--ease);
}
.modal .box {
  background: linear-gradient(165deg, rgba(255,255,255,.99), rgba(250,252,255,.99));
  border: 1px solid var(--edge-2); border-radius: var(--r-lg);
  width: 100%; max-width: 540px; max-height: 88vh; overflow: auto;
  box-shadow: var(--sh-2), 0 0 80px -30px rgba(56,189,248,.6);
  animation: rise .24s var(--ease); position: relative;
}
.modal .box::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.65), transparent);
}
.modal .box.wide { max-width: 860px; }
.modal .box .mh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0; font-weight: 640; font-size: 16px;
}
.modal .box .mb { padding: 18px 24px 24px; }
.x {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--edge);
  background: transparent; cursor: pointer; color: var(--tx-3);
  line-height: 1; font-size: 18px; transition: .18s var(--ease);
}
.x:hover { background: rgba(248,113,113,.12); color: var(--bad); border-color: rgba(248,113,113,.3); }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }

/* ---------------- Toast ---------------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 99;
  display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none;
}
#toast div {
  background: rgba(255,255,255,.97); color: var(--tx-1);
  padding: 11px 20px; border-radius: var(--r-sm); font-size: 13px;
  border: 1px solid var(--edge-2);
  box-shadow: var(--sh-2), 0 0 40px -14px rgba(56,189,248,.8);
  animation: rise .22s var(--ease); max-width: 88vw;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
#toast div.ok  { border-color: rgba(52,211,153,.45); box-shadow: var(--sh-2), 0 0 40px -14px rgba(52,211,153,.8); }
#toast div.bad { border-color: rgba(248,113,113,.45); box-shadow: var(--sh-2), 0 0 40px -14px rgba(248,113,113,.8); }

/* ---------------- 登录页 ---------------- */
.auth {
  min-height: 100dvh; display: flex; flex-direction: column;
  justify-content: center; padding: 44px 0 64px;
}
.auth .head { text-align: center; margin-bottom: 26px; }
.auth .head h1 { font-size: 26px; letter-spacing: -.03em; }
.auth .head p { color: var(--tx-3); font-size: 13.5px; margin-top: 7px; }
.auth .card { padding: 30px 28px; }
.auth .brand { justify-content: center; margin-bottom: 18px; }
.auth .brand .txt { font-size: 17px; }

.tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 12px;
  background: rgba(255,255,255,.82); border: 1px solid var(--edge); margin-bottom: 22px;
}
.tabs button {
  flex: 1; height: 36px; border: none; background: transparent; border-radius: 9px;
  cursor: pointer; font-size: 13.5px; font-weight: 560; color: var(--tx-3);
  transition: .2s var(--ease);
}
.tabs button:hover { color: var(--tx-1); }
.tabs button.on {
  background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(99,102,241,.14));
  color: var(--sky); box-shadow: inset 0 0 0 1px rgba(56,189,248,.28);
}

/* ---------------- 下载页 ---------------- */
.hero { padding: 76px 0 40px; text-align: center; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sky); font-weight: 640; margin-bottom: 20px;
  padding: 6px 15px; border-radius: 100px;
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.22);
}
.hero .eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px); line-height: 1.08; letter-spacing: -.045em;
  background: linear-gradient(160deg, #0b2545 3%, #1d4ed8 46%, #0891b2 94%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(37,99,235,.18));
}
.hero .sub {
  color: var(--tx-2); font-size: 15.5px; margin: 20px auto 0; max-width: 620px; line-height: 1.75;
}

.dl-card {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  flex-wrap: wrap; padding: 30px 34px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(240,247,255,.96), rgba(255,255,255,.92));
  border: 1px solid var(--edge-2);
  box-shadow: var(--sh-2), 0 0 70px -30px rgba(56,189,248,.7);
  position: relative; overflow: hidden;
}
.dl-card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.8), transparent);
}
.dl-card .v {
  font-size: 34px; font-weight: 660; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 0 24px rgba(56,189,248,.4));
}

.step { display: flex; gap: 15px; align-items: flex-start; }
.step .no {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 660; color: #ffffff;
  background: var(--grad-main); box-shadow: 0 6px 18px -8px rgba(56,189,248,.9);
}

footer.foot {
  border-top: 1px solid var(--edge); margin-top: 64px; padding: 30px 0 50px;
  font-size: 12.5px; color: var(--tx-4);
}
footer.foot a { color: var(--tx-3); }
footer.foot a:hover { color: var(--sky); }

/* ---------------- 页面标题块 ---------------- */
.pg-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.pg-head h2 { font-size: 23px; letter-spacing: -.03em; }
.pg-head .desc { font-size: 13px; color: var(--tx-3); margin-top: 5px; }

/* ---------------- 进度条 ---------------- */
.bar-track { height: 6px; border-radius: 4px; background: rgba(37,99,235,.12); overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 4px; background: var(--grad-main);
  box-shadow: 0 0 14px -2px rgba(56,189,248,.9);
  transition: width .5s var(--ease);
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; gap: 16px; padding: 18px 0 60px; }
  aside.side {
    position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px;
    scrollbar-width: none; border-radius: var(--r-sm);
  }
  aside.side::-webkit-scrollbar { display: none; }
  aside.side a { white-space: nowrap; padding: 9px 14px; font-size: 13px; margin-bottom: 0; }
  aside.side a.on::before { display: none; }
  aside.side .sep { display: none; }
  aside.side .ico { display: none; }
  .wrap { padding: 0 16px; }
  .card { padding: 17px; border-radius: 14px; }
  .kpi .n { font-size: 34px; }
  .kpi .n.sm { font-size: 26px; }
  nav.top-nav a { padding: 7px 10px; font-size: 12.5px; }
  .top .wrap { height: 58px; }
  .brand .txt { font-size: 14px; }
  .brand small { display: none; }
  input, select, textarea { font-size: 16px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal .box { max-width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .hero { padding: 44px 0 26px; }
  .dl-card { padding: 22px; gap: 18px; }
  .dl-card .btn { width: 100%; }
}
@media (max-width: 560px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .kpi .n { font-size: 30px; }
}

/* ---------------- 动效与可访问性 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* 进场动画 */
.fade-up { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.stagger > * { animation: fadeUp .5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s }
.stagger > *:nth-child(2) { animation-delay: .06s }
.stagger > *:nth-child(3) { animation-delay: .10s }
.stagger > *:nth-child(4) { animation-delay: .14s }
.stagger > *:nth-child(5) { animation-delay: .18s }
.stagger > *:nth-child(6) { animation-delay: .22s }

/* 数字跳动 */
.bump { animation: bump .5s var(--ease); }
@keyframes bump {
  0%   { transform: scale(1); filter: brightness(1); }
  35%  { transform: scale(1.035); filter: brightness(1.35); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* 3D 倾斜容器 */
.tilt-wrap { perspective: 1400px; }
.tilt {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) {
  .tilt:hover { transform: translateY(-3px) rotateX(1.2deg) rotateY(-1.6deg); }
}
@media (hover: none) { .tilt:hover { transform: none; } }

/* ============================================================
   下载页专用：终端命令块 + 平台卡片
   ============================================================ */

/* 终端命令 */
.term {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(165deg, #101d33, #0a1626);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-1);
}
.term-hd {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-bottom: 1px solid rgba(125,211,252,.14); background: rgba(6,14,28,.6);
}
.term-hd .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.term-hd .t { font-size: 11.5px; color: #7d95b5; margin-left: 4px; letter-spacing: .04em; }
.term-hd .os {
  margin-left: auto; font-size: 11px; color: #7dd3fc; font-weight: 600;
  padding: 2px 9px; border-radius: 6px; background: rgba(56,189,248,.1);
  border: 1px solid rgba(125,211,252,.26);
}
.term-bd { padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; }
.cmd {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; background: rgba(4,10,20,.8); border: 1px solid rgba(125,211,252,.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; position: relative; overflow: hidden;
}
.cmd::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--grad-main);
}
.cmd .pfx { color: var(--ok); flex: none; font-weight: 700; user-select: none; }
.cmd code {
  flex: 1; color: #7dd3fc; white-space: nowrap; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd .cp {
  flex: none; height: 28px; padding: 0 11px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(125,211,252,.24); background: rgba(24,40,68,.7); color: #a9c4e8;
  font-size: 11px; font-weight: 600; transition: .18s var(--ease);
  font-family: inherit;
}
.cmd .cp:hover { border-color: rgba(125,211,252,.5); color: #7dd3fc; background: rgba(32,52,86,.85); }
.cmd .cp.done { color: #6ee7b7; border-color: rgba(52,211,153,.45); }

/* 平台卡片 */
.plats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.plat {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px 20px; border-radius: var(--r);
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--edge); box-shadow: var(--sh-1);
  backdrop-filter: blur(22px) saturate(1.5);
  transition: .26s var(--ease); overflow: hidden;
}
.plat::before {
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,.4), transparent);
}
.plat:hover { border-color: var(--edge-2); transform: translateY(-3px); box-shadow: var(--sh-2), 0 0 44px -24px rgba(56,189,248,.8); }
.plat.rec { border-color: var(--edge-glow); box-shadow: var(--sh-2), var(--glow-blue); }
.plat.rec::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(8,145,178,.14), transparent 42%);
  pointer-events: none;
}
.plat .badge {
  position: absolute; top: 15px; right: 15px; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
  background: var(--grad-main); color: #ffffff;
}
.plat .badge.soft {
  background: rgba(56,189,248,.13); color: var(--sky);
  border: 1px solid rgba(56,189,248,.26);
}
.plat .ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.2); }
.plat .ico svg { width: 22px; height: 22px; }
.plat .nm { font-size: 15.5px; font-weight: 640; letter-spacing: -.015em; }
.plat .ds { font-size: 12px; color: var(--tx-3); margin-top: 3px; line-height: 1.6; }
.plat .meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--tx-4); flex-wrap: wrap; }
.plat .meta b { color: var(--tx-2); font-weight: 600; }
.plat .btn { margin-top: auto; }
.plat .sha { font-size: 10px; color: var(--tx-4); font-family: ui-monospace, Menlo, monospace;
  word-break: break-all; opacity: .8; }

@media (max-width: 1080px) { .plats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .plats { grid-template-columns: 1fr; }
  .cmd code { font-size: 11.5px; }
  .cmd .cp { display: none; }
  .term-bd { padding: 13px; }
}
