/* 观看页和后台共用的底色、字体、玻璃面板 —— 取自 1031 主视觉（深蓝底 + 青蓝光） */
:root {
  --ink-0: #020713;
  --ink-1: #061230;
  --ink-2: #0b1d45;
  --glass: rgba(110, 190, 255, 0.06);
  --glass-2: rgba(110, 190, 255, 0.11);
  --line: rgba(140, 215, 255, 0.16);
  --line-strong: rgba(140, 225, 255, 0.34);
  --text: #eaf6ff;
  --muted: #8ea6c6;
  --faint: #5d7397;
  --cyan: #46f0e4;
  --azure: #3aa8ff;
  --blue: #3b6dff;
  --violet: #8a7dff;
  --live: #ff4d6d;
  --good: #3ee0a0;
  --warn: #ffc24b;
  --bad: #ff5d73;
  --grad: linear-gradient(100deg, #46f0e4 0%, #3aa8ff 48%, #7b84ff 100%);
  --radius: 14px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "SF Pro Display", var(--font);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink-0); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
/* 手机/平板连点按钮会被当成「双击放大」：关掉双击缩放（双指缩放照常），去掉点按灰块 */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--azure); }

/* 背景：主视觉虚化 + 两团冷光 + 极细网格 */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(58, 168, 255, 0.20), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(70, 240, 228, 0.10), transparent 70%),
    linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 70%);
}
.sky::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/kv-blur.webp") center top / cover no-repeat;
  opacity: 0.22; mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140, 215, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 215, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 75%);
}

.glass {
  background: linear-gradient(180deg, rgba(120, 200, 255, 0.085), rgba(120, 200, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 60px -30px rgba(0, 10, 40, 0.9);
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--grad); color: #03122b; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 8px 30px -10px rgba(58, 168, 255, 0.8);
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: var(--glass-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); font-weight: 500; }
.btn.danger { background: rgba(255, 93, 115, 0.14); color: #ffb3bf; border: 1px solid rgba(255, 93, 115, 0.35); box-shadow: none; font-weight: 600; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.field {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(2, 10, 30, 0.55); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field:focus { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(58, 168, 255, 0.18); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  padding: 10px 18px; border-radius: 12px; background: rgba(8, 22, 54, 0.92); border: 1px solid var(--line-strong);
  font-size: 14px; transition: 0.25s; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
