/* app.aurhub.cn — 分发中心前端
   单文件设计系统，无框架、无构建。深色为主，浅色可切。 */

:root {
  --bg: #04070a;
  --bg-2: #070d11;
  --ink: #eaf2ee;
  --ink-2: #b9c7c1;
  --muted: #93a39c;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .038);
  --card-2: rgba(255, 255, 255, .065);
  --brand: #34d399;
  --brand-2: #0ea472;
  --brand-ink: #04211a;
  --brand-soft: rgba(52, 211, 153, .12);
  --accent: #fb7185;
  --amber: #fbbf24;
  --shadow: 0 34px 90px -46px rgba(0, 0, 0, .95);
  --r: 18px;
  --r-lg: 24px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
  --bg: #f4f7f5;
  --bg-2: #e9efeb;
  --ink: #0c1512;
  --ink-2: #2f3f39;
  --muted: #6b7a74;
  --line: rgba(12, 21, 18, .09);
  --line-2: rgba(12, 21, 18, .16);
  --card: rgba(255, 255, 255, .78);
  --card-2: #ffffff;
  --brand: #0f9d6e;
  --brand-2: #0b7d57;
  --brand-ink: #ffffff;
  --brand-soft: rgba(15, 157, 110, .1);
  --shadow: 0 30px 70px -50px rgba(9, 30, 22, .55);
}

* { box-sizing: border-box; }

/* hidden 属性必须能压过 display:grid / flex，否则 .modal 会一直显示 */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
b, strong { font-weight: 650; }
code, pre { font-family: var(--mono); font-size: 12.5px; }
::selection { background: var(--brand-soft); color: var(--ink); }

/* ---------------- 背景光斑 ---------------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora .a1 { width: 720px; height: 720px; left: -240px; top: -320px; background: radial-gradient(circle, rgba(52, 211, 153, .45), transparent 68%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 640px; height: 640px; right: -260px; top: -180px; background: radial-gradient(circle, rgba(251, 113, 133, .3), transparent 70%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora .a3 { width: 900px; height: 520px; left: 30%; bottom: -420px; background: radial-gradient(circle, rgba(14, 164, 114, .28), transparent 72%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
html[data-theme="light"] .aurora span { opacity: .38; }
@keyframes drift1 { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-50px, 60px, 0) scale(1.1); } }

/* ---------------- 布局骨架 ---------------- */
.nav, main, footer { position: relative; z-index: 1; }
main { max-width: 1120px; margin: 0 auto; padding: 26px 22px 10px; }
footer { max-width: 1120px; margin: 0 auto; padding: 18px 22px 44px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------------- 顶栏 ---------------- */
.nav {
  max-width: 1120px; margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(52, 211, 153, .22), rgba(251, 113, 133, .16));
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 14.5px; letter-spacing: -.01em; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; transition: .18s; }
.nav-links > a:hover { color: var(--ink); background: var(--card-2); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 17px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer;
  transition: transform .16s ease, background .18s, border-color .18s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.995); }
.btn.sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.btn.ghost { background: transparent; }
.btn.primary {
  border: none; color: var(--brand-ink);
  background: linear-gradient(135deg, #4ade80, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px -16px rgba(52, 211, 153, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  position: relative; overflow: hidden;
}
.btn.primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45), transparent 72%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn.primary:hover { color: var(--brand-ink); background: linear-gradient(135deg, #6ee7a8, #34d399, #0ea472); transform: translateY(-1px); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.primary[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: .18s;
}
.icon-btn:hover { color: var(--ink); background: var(--card-2); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
html[data-theme="dark"] .ico-sun { display: none; }
html[data-theme="light"] .ico-moon { display: none; }

/* ---------------- 站点公告 ---------------- */
.notice {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; padding: 11px 15px;
  border-radius: 14px; font-size: 13px; color: var(--ink);
  border: 1px solid rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .09);
}
.notice svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--amber); }

/* ---------------- hero ---------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 228px; gap: 30px;
  align-items: center; padding: 34px 0 30px;
  animation: rise .6s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.eyebrow b { color: var(--brand); letter-spacing: .06em; font-weight: 600; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.app-line { display: flex; align-items: center; gap: 18px; margin: 20px 0 0; }
.app-icon {
  width: 76px; height: 76px; border-radius: 20px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(150deg, rgba(52, 211, 153, .3), rgba(251, 113, 133, .22));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -26px rgba(52, 211, 153, .8);
  display: grid; place-items: center; position: relative;
}
.app-icon img, .app-icon svg { width: 100%; height: 100%; object-fit: cover; }
.app-head { min-width: 0; }
h1 {
  margin: 0; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700;
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 62%, var(--brand)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-sub { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hero-desc { margin: 18px 0 0; color: var(--ink-2); max-width: 46ch; font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 12.5px;
}
.chip b { color: var(--ink); font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.chip.mono { font-family: var(--mono); }
.chip.tint { border-color: rgba(52, 211, 153, .35); background: var(--brand-soft); color: var(--brand); }
.chip.tint b { color: inherit; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------------- 两个客户端下载卡 ---------------- */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.client {
  display: flex; align-items: center; gap: 13px; padding: 14px 15px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--card); transition: .2s; position: relative; overflow: hidden;
}
.client:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.client-ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2);
}
.client:hover .client-ico { color: var(--brand); border-color: rgba(52, 211, 153, .4); }
.client-ico svg { width: 20px; height: 20px; }
.client-body { min-width: 0; flex: 1 1 auto; }
.client-os { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.client-ver { font-family: var(--mono); font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.client-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-go {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); transition: .18s;
}
.client:hover .client-go { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.client-go svg { width: 16px; height: 16px; }
.client.none { opacity: .55; }
.client.none .client-go { display: none; }

.app-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.app-switch button {
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: .18s;
}
.app-switch button:hover { color: var(--ink); border-color: var(--line-2); }
.app-switch button[aria-selected="true"] { color: var(--brand-ink); background: var(--brand); border-color: transparent; font-weight: 600; }

/* ---------------- 二维码卡 ---------------- */
.qr-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: rise .7s .06s cubic-bezier(.22, .8, .3, 1) both;
}
.qr-wrap { padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); }
.qr { width: 148px; height: 148px; }
.qr svg, .qr canvas, .qr img { width: 100%; height: 100%; display: block; }
.qr-meta { text-align: center; line-height: 1.35; }
.qr-meta b { font-size: 13.5px; display: block; }
.qr-meta span { font-size: 11.5px; color: var(--muted); }
.qr-url {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border-top: 1px dashed var(--line-2); padding-top: 10px; width: 100%; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 统计 ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 30px;
  animation: rise .6s .1s cubic-bezier(.22, .8, .3, 1) both;
}
.stat {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  padding: 15px 16px; backdrop-filter: blur(14px); transition: border-color .2s, transform .2s;
}
.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stat-k { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.stat-v { display: block; margin-top: 4px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-x { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------------- 面板 ---------------- */
.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  padding: 22px; margin-bottom: 22px; backdrop-filter: blur(16px); box-shadow: var(--shadow);
  animation: rise .6s .16s cubic-bezier(.22, .8, .3, 1) both;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.panel h2 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.panel-head p { margin: 5px 0 0; font-size: 12.5px; }
.seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-2); }
.seg button {
  height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: .16s;
}
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; margin-top: 12px; }
.rel {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.rel:first-child { border-top: 0; }
.rel::before {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.rel:first-child::before { top: 18px; }
.rel:last-child::before { bottom: calc(100% - 18px); }
.rel-dot {
  position: relative; z-index: 1; width: 25px; height: 25px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2);
}
.rel-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.rel.is-latest .rel-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.rel.is-latest .rel-dot i { background: var(--brand); }
.rel-main { min-width: 0; }
.rel-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rel-ver { font-family: var(--mono); font-size: 15px; font-weight: 650; letter-spacing: -.01em; min-width: 84px; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .04em; border: 1px solid var(--line-2); color: var(--ink-2);
  text-transform: uppercase; font-weight: 600;
}
.badge.new { border-color: transparent; background: var(--brand); color: var(--brand-ink); }
.badge.must { border-color: transparent; background: rgba(251, 191, 36, .18); color: var(--amber); }
.badge.beta { border-color: rgba(251, 113, 133, .4); color: var(--accent); background: rgba(251, 113, 133, .1); }
.rel-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rel-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rel-note { margin: 9px 0 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.rel-actions { display: flex; align-items: center; align-self: center; gap: 8px; }
.rel-dl {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card-2); font-size: 12.5px; font-weight: 550; transition: .18s;
}
.rel-dl:hover { border-color: var(--brand); color: var(--brand); }
.rel-dl svg { width: 14px; height: 14px; }
.row-btn {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: .18s;
}
.row-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--card-2); }
.row-btn svg { width: 14px; height: 14px; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 30px 10px 16px; }
.empty-art { width: 96px; height: 96px; margin: 0 auto 8px; color: var(--brand); opacity: .85; }
.empty-art svg { width: 100%; height: 100%; }
.empty h3 { margin: 0 0 6px; font-size: 16px; }
.empty p { margin: 0 0 14px; font-size: 13px; }
.empty .snippet { text-align: left; margin: 0 auto 12px; max-width: 760px; }

/* ---------------- 代码卡 ---------------- */
.code-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.code-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.code-card header {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-2) 60%, transparent);
}
.code-card header code { color: var(--ink); font-size: 12.5px; }
.method {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 6px;
}
.method.get { color: #6ee7b7; background: rgba(52, 211, 153, .14); }
.method.put { color: #fdba74; background: rgba(251, 146, 60, .14); }
.copy {
  margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--muted);
  height: 26px; padding: 0 10px; border-radius: 8px; font: inherit; font-size: 11.5px; cursor: pointer; transition: .18s;
}
.copy:hover { color: var(--ink); border-color: var(--line-2); }
.snippet {
  margin: 0; padding: 14px 13px; font-size: 11.75px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere; background: transparent;
}
.code-note { margin: 0; padding: 0 13px 13px; font-size: 11.5px; color: var(--muted); }
.code-note code { color: var(--ink-2); font-size: 11.5px; }

/* ---------------- 骨架 ---------------- */
.sk { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 37%, var(--card) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-row { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.sk-row:first-child { border-top: 0; }
.sk-dot { width: 25px; height: 25px; border-radius: 50%; }
.sk-lines { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.sk-l1 { height: 13px; width: 34%; }
.sk-l2 { height: 11px; width: 66%; }

/* ---------------- 页脚 ---------------- */
.health { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.health i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.health.ok i { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.health.bad i { background: var(--accent); box-shadow: 0 0 0 4px rgba(251, 113, 133, .14); }
.foot-right { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.sep { opacity: .4; }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 4, .62); backdrop-filter: blur(6px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2);
  box-shadow: 0 40px 100px -40px #000; padding: 20px; animation: pop .24s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 15.5px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; outline: none; transition: .18s;
}
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .checkline { flex-direction: row; align-items: center; gap: 8px; align-self: end; margin-bottom: 10px; padding-bottom: 0; }
.form .checkline input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; padding-top: 4px; }
.form-foot .muted { font-size: 11px; line-height: 1.5; max-width: 58%; }

/* 自定义文件选择器 */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 14px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--line-2); background: var(--card); transition: .18s;
}
.drop:hover, .drop.hot { border-color: var(--brand); background: var(--brand-soft); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop svg { width: 22px; height: 22px; color: var(--brand); }
.drop b { font-size: 12.5px; font-weight: 550; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop i { font-style: normal; font-size: 11px; color: var(--muted); }
.bar { height: 4px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #4ade80); transition: width .2s; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 550; opacity: 0; pointer-events: none; transition: .22s ease; z-index: 80;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 22px 0 26px; }
  .qr-card { flex-direction: row; justify-content: flex-start; gap: 16px; align-self: start; }
  .qr-wrap { flex: 0 0 auto; }
  .qr { width: 96px; height: 96px; }
  .qr-meta { text-align: left; }
  .qr-url { display: none; }
  .code-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  main { padding: 14px 15px 0; }
  .nav { padding: 12px 15px; }
  .hide-sm { display: none; }
  footer { padding: 12px 15px 34px; }
  .app-line { gap: 13px; }
  .app-icon { width: 60px; height: 60px; border-radius: 16px; }
  .panel { padding: 16px; border-radius: 18px; }
  .rel { grid-template-columns: 22px minmax(0, 1fr); gap: 11px; }
  .rel-actions { grid-column: 2; justify-content: flex-start; }
  .rel::before { left: 10px; }
  .rel-dot { width: 21px; height: 21px; }
  .cta .btn { flex: 1 1 auto; }
  .clients { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .client { padding: 12px 13px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-v { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
