/* ============================================================
   EXERCISE SYSTEM · 深空科技风 UI
   零依赖 / 纯 CSS / 霓虹渐变 + 玻璃面板
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050914;
  --bg2: #081126;
  --panel: rgba(12, 22, 44, .78);
  --panel-solid: #0b1428;
  --line: rgba(96, 165, 250, .16);
  --line-hi: rgba(34, 211, 238, .45);
  --text: #e8f1ff;
  --muted: #8ea4c8;
  --dim: #61769c;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --grad: linear-gradient(120deg, #22d3ee 0%, #60a5fa 52%, #a78bfa 100%);
  --shadow: 0 18px 48px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .045);
  --glow: 0 0 22px rgba(34, 211, 238, .18);
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 深空底纹：网格 + 呼吸光斑 + 顶部扫描光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 130, 210, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 130, 210, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
  animation: gridDrift 32s linear infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 8% -6%, rgba(34, 211, 238, .15), transparent 70%),
    radial-gradient(720px 480px at 96% 4%, rgba(139, 92, 246, .16), transparent 72%),
    radial-gradient(900px 500px at 50% 110%, rgba(37, 99, 235, .12), transparent 75%);
  animation: orbBreathe 11s ease-in-out infinite alternate;
}
@keyframes gridDrift { to { background-position: 44px 44px; } }
@keyframes orbBreathe { from { opacity: .75; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: .82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }

a { color: var(--cyan); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: rgba(34, 211, 238, .3); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb { background: rgba(94, 160, 230, .3); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, .5); background-clip: padding-box; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(900px 620px at 50% 45%, rgba(29, 78, 216, .16), transparent 72%),
    #040813;
}
/* 透视地面网格 */
.login-wrap::before {
  content: "";
  position: absolute;
  left: -60%; right: -60%; bottom: -46%; height: 115%;
  background-image:
    linear-gradient(rgba(34, 211, 238, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .16) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(760px) rotateX(66deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 78%);
  mask-image: linear-gradient(to top, #000 5%, transparent 78%);
  animation: gridDrift 12s linear infinite;
  pointer-events: none;
}
.login-wrap::after {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.10), transparent 62%);
  border: 1px solid rgba(34,211,238,.08);
  pointer-events: none;
  animation: orbBreathe 6s ease-in-out infinite alternate;
}
.login-card {
  width: 420px;
  max-width: 100%;
  position: relative;
  z-index: 2;
  padding: 44px 42px 34px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(18, 32, 62, .93), rgba(7, 13, 29, .96));
  border: 1px solid rgba(56, 189, 248, .3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 70px rgba(34, 211, 238, .1), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  animation: fadeUp .65s ease both;
}
.login-card::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: -1px; height: 2px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(34, 211, 238, .8);
}
.login-card::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 54px; height: 54px;
  background: linear-gradient(225deg, rgba(34,211,238,.42), transparent 72%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}
.login-emblem {
  width: 54px; height: 54px;
  margin-bottom: 22px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #eafcff;
  background: linear-gradient(140deg, rgba(34,211,238,.24), rgba(139,92,246,.24));
  border: 1px solid rgba(34, 211, 238, .5);
  clip-path: polygon(25% 4%, 75% 4%, 97% 50%, 75% 96%, 25% 96%, 3% 50%);
  box-shadow: 0 0 30px rgba(34,211,238,.25);
  text-shadow: 0 0 12px rgba(103, 232, 249, .9);
}
.login-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.25;
  background: linear-gradient(95deg, #67e8f9, #93c5fd 48%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-card .sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 8px 0 30px;
  padding-left: 10px;
  border-left: 2px solid rgba(34, 211, 238, .6);
}
.login-card label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #b9cbe8;
  margin: 17px 0 7px;
}
.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 9px;
  outline: none;
  background: rgba(3, 8, 20, .72);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-card input::placeholder { color: #52658a; }
.login-card input:focus {
  border-color: var(--cyan);
  background: rgba(6, 16, 36, .9);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .13), 0 0 20px rgba(34, 211, 238, .16);
}
.login-card .btn { width: 100%; margin-top: 26px; padding: 13px; font-size: 15px; letter-spacing: 5px; }
.login-err { color: var(--red); font-size: 12px; min-height: 20px; margin-top: 11px; }
.login-foot {
  text-align: center;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(96, 165, 250, .12);
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 11, 24, .84);
  border-bottom: 1px solid rgba(96, 165, 250, .17);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.75), rgba(167,139,250,.6), transparent);
  opacity: .7;
}
.topbar-inner {
  max-width: 1280px;
  margin: auto;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
}
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 15px;
  color: #eafcff;
  background: linear-gradient(140deg, rgba(34,211,238,.28), rgba(139,92,246,.3));
  border: 1px solid rgba(34, 211, 238, .55);
  clip-path: polygon(25% 3%, 75% 3%, 98% 50%, 75% 97%, 25% 97%, 2% 50%);
  text-shadow: 0 0 10px rgba(103, 232, 249, .9);
}
.brand-en {
  display: block;
  font-size: 9px;
  letter-spacing: 2.3px;
  color: var(--dim);
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}
.tabs { display: flex; gap: 6px; flex: 1; }
.tab {
  position: relative;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid transparent;
  background: transparent;
  transition: .2s;
}
.tab:hover { color: #d8ecff; background: rgba(96, 165, 250, .08); }
.tab.active {
  color: #dffaff;
  border-color: rgba(34, 211, 238, .3);
  background: linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(99, 102, 241, .12));
  box-shadow: 0 0 18px rgba(34, 211, 238, .12), inset 0 1px 0 rgba(255,255,255,.06);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: -1px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.top-user {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}
.user-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 7px;
  animation: pulseDot 2.6s infinite;
}

/* ============ 页面与面板 ============ */
.page { max-width: 1280px; margin: auto; padding: 30px 28px 70px; }
.page section { animation: fadeUp .4s ease both; }
.page-head { margin-bottom: 22px; }
.page-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding-left: 14px;
  position: relative;
  line-height: 1.3;
  background: linear-gradient(90deg, #e8f8ff, #a5c8ff 70%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
}
.page-head p { color: var(--muted); font-size: 12.5px; margin: 7px 0 0 14px; }

.card {
  position: relative;
  background: linear-gradient(155deg, rgba(15, 27, 52, .82), rgba(8, 15, 32, .86));
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  transition: border-color .22s, box-shadow .22s;
}
.card:hover { border-color: rgba(96, 165, 250, .3); box-shadow: var(--shadow), var(--glow); }
.card::before {
  content: "";
  position: absolute;
  left: 18px; top: -1px;
  width: 76px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: .85;
}
.card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.1px;
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeaff;
}
.card h3::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(34, 211, 238, .5);
}
.card h3::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,.2), transparent);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .tabs { overflow-x: auto; } }

/* ============ 表单 ============ */
label.field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  color: #b9cbe8;
  margin-bottom: 8px;
}
.field-hint { color: var(--dim); font-size: 11px; font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.form-group { margin-bottom: 18px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 8px;
  outline: none;
  background: rgba(3, 9, 22, .68);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #52658a; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(34, 211, 238, .75);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .1), 0 0 16px rgba(34, 211, 238, .1);
}
input:disabled, input[disabled] {
  background: rgba(255, 255, 255, .035) !important;
  color: var(--muted) !important;
  border-color: rgba(96, 165, 250, .1) !important;
  box-shadow: none !important;
}
select option { background: #0b1428; color: var(--text); }
input[type=checkbox] { accent-color: var(--cyan); }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(120deg, #0891b2, #2563eb 58%, #6d28d9);
  color: #f4fbff;
  border: 1px solid rgba(103, 232, 249, .32);
  border-radius: 8px;
  padding: 10px 19px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 6px 22px rgba(37, 99, 235, .24), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-160%);
  pointer-events: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 10px 28px rgba(34, 211, 238, .28), 0 0 20px rgba(34, 211, 238, .16); }
.btn:hover::after { animation: sweep .8s ease; }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: rgba(96, 165, 250, .07);
  color: #cfe0ff;
  border: 1px solid rgba(96, 165, 250, .25);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(34, 211, 238, .13); border-color: rgba(34, 211, 238, .45); box-shadow: var(--glow); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.danger { background: rgba(251, 113, 133, .14); color: var(--red); border-color: rgba(251,113,133,.4); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.4); }

/* 科目选择 */
.subjects { display: flex; gap: 14px; }
.subject-opt {
  position: relative;
  flex: 1;
  padding: 17px 16px 15px 62px;
  min-height: 76px;
  border: 1px solid rgba(96, 165, 250, .2);
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.4px;
  color: #c6d8f5;
  background: rgba(4, 11, 25, .55);
  transition: .2s;
  overflow: hidden;
}
.subject-opt::before {
  content: attr(data-icon);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #87a8dc;
  background: rgba(96, 165, 250, .09);
  border: 1px solid rgba(96, 165, 250, .16);
}
.subject-opt small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--dim);
  margin-top: 3px;
}
.subject-opt:hover { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .06); }
.subject-opt.on {
  border-color: rgba(34, 211, 238, .65);
  color: #eafcff;
  background: linear-gradient(120deg, rgba(34, 211, 238, .15), rgba(99, 102, 241, .13));
  box-shadow: 0 0 26px rgba(34, 211, 238, .14), inset 0 0 20px rgba(34, 211, 238, .05);
}
.subject-opt.on::before {
  color: #d9fbff;
  background: linear-gradient(140deg, rgba(34,211,238,.32), rgba(139,92,246,.3));
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 14px rgba(34, 211, 238, .3);
}
.subject-opt.on small { color: #9bc7e8; }

/* 单元列表 */
.unit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 330px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
}
.unit-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .6px;
  color: #bcd6f5;
}
.unit-group-head b { font-weight: 600; }
.unit-group-head b::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, .7);
  vertical-align: middle;
}
.unit-group-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 760px) { .unit-group-items { grid-template-columns: 1fr; } }
.unit-item {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, .14);
  border-radius: 9px;
  cursor: pointer;
  background: rgba(5, 12, 27, .5);
  transition: .18s;
}
.unit-item::before {
  content: "";
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: .18s;
}
.unit-item:hover { border-color: rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .05); }
.unit-item:has(input:checked) {
  border-color: rgba(34, 211, 238, .42);
  background: linear-gradient(100deg, rgba(34, 211, 238, .1), rgba(96, 165, 250, .03));
}
.unit-item:has(input:checked)::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.unit-item input { margin-top: 4px; flex: none; }
.unit-item .u-name { font-weight: 600; font-size: 13px; color: #d8e8ff; }
.unit-item .u-meta { font-size: 11px; color: #8198bf; }

.slider-row { display: flex; align-items: center; gap: 14px; }
input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(34,211,238,.45), rgba(139,92,246,.45));
  border: 1px solid rgba(96,165,250,.18);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  margin-top: -7px;
  border-radius: 50%;
  background: #d9fbff;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, .8);
}
.ratio-val {
  font-weight: 800;
  font-size: 19px;
  min-width: 56px;
  text-align: right;
  background: linear-gradient(90deg, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.note {
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .24);
  border-left: 3px solid var(--cyan);
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 12px;
  color: #a8d8e8;
  margin-top: 10px;
}

/* ============ 表格 / 徽章 ============ */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid rgba(96, 165, 250, .11); vertical-align: middle; }
th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 11px;
  background: rgba(96, 165, 250, .055);
  white-space: nowrap;
}
tbody tr { transition: background .16s; }
tbody tr:hover td { background: rgba(34, 211, 238, .045); }
td b { color: #e4f1ff; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(148, 163, 184, .12);
  color: #b6c6dd;
  border: 1px solid rgba(148, 163, 184, .18);
}
.badge.blue { background: rgba(34, 211, 238, .1); color: #7dd3fc; border-color: rgba(34, 211, 238, .3); }
.badge.green { background: rgba(52, 211, 153, .1); color: #6ee7b7; border-color: rgba(52, 211, 153, .3); }
.badge.amber { background: rgba(251, 191, 36, .1); color: #fcd34d; border-color: rgba(251, 191, 36, .3); }
.badge.red { background: rgba(251, 113, 133, .1); color: #fda4af; border-color: rgba(251, 113, 133, .3); }
.empty { text-align: center; color: var(--dim); padding: 42px 10px; font-size: 13px; }

/* ============ 统计 ============ */
.stat-card {
  position: relative;
  background: linear-gradient(155deg, rgba(16, 29, 55, .84), rgba(8, 15, 32, .88));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 19px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 70%);
}
.stat-card:nth-child(2)::before { background: radial-gradient(circle, rgba(96,165,250,.17), transparent 70%); }
.stat-card:nth-child(3)::before { background: radial-gradient(circle, rgba(167,139,250,.18), transparent 70%); }
.stat-card:nth-child(4)::before { background: radial-gradient(circle, rgba(52,211,153,.14), transparent 70%); }
.stat-card .k { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.stat-card .v {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.2;
  background: linear-gradient(90deg, #67e8f9, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(34, 211, 238, .12);
}
.stat-card:nth-child(3) .v { background: linear-gradient(90deg, #c4b5fd, #93c5fd); -webkit-background-clip: text; background-clip: text; }
.stat-card:nth-child(4) .v { background: linear-gradient(90deg, #6ee7b7, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.stat-card .s { color: var(--dim); font-size: 10.5px; margin-top: 3px; letter-spacing: .5px; }
.chart-box { width: 100%; overflow-x: auto; }
.chart-box svg { display: block; min-width: 480px; }
.legend { display: flex; gap: 18px; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; box-shadow: 0 0 8px currentColor; }

/* ============ 预览 / 反馈 / 弹窗 ============ */
#result { border-color: rgba(34, 211, 238, .3); box-shadow: var(--shadow), 0 0 30px rgba(34,211,238,.08); }
#result-meta { margin-bottom: 14px; color: #9fc4df; font-size: 12.5px; }
.preview-q { border-bottom: 1px dashed rgba(96, 165, 250, .16); padding: 9px 0; font-size: 12.5px; color: #ccdcf4; }
.preview-q:last-child { border-bottom: none; }
.preview-q .no { font-weight: 800; color: #67e8f9; margin-right: 6px; text-shadow: 0 0 10px rgba(34,211,238,.5); }
.toast {
  position: fixed;
  top: 80px; right: 26px;
  z-index: 99;
  background: linear-gradient(135deg, rgba(13, 30, 56, .96), rgba(8, 16, 34, .97));
  color: #e2f5ff;
  padding: 12px 19px;
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 238, .38);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 20px rgba(34,211,238,.15);
  font-size: 13px;
  animation: fadeUp .25s ease;
}
#modal { background: rgba(2, 6, 17, .76); backdrop-filter: blur(7px); }
.modal-card {
  background: linear-gradient(155deg, rgba(17, 30, 58, .98), rgba(8, 15, 32, .99));
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 14px;
  width: 470px;
  max-width: 92vw;
  padding: 25px 27px;
  box-shadow: 0 26px 80px rgba(0,0,0,.6), 0 0 50px rgba(34,211,238,.1);
  animation: fadeUp .3s ease both;
}
.modal-card::before {
  content: "";
  display: block;
  width: 74px; height: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px var(--cyan);
  margin: -8px 0 14px;
}
.modal-card h3 { font-size: 16px; letter-spacing: 1px; margin-bottom: 16px; color: #dff1ff; }
.hidden { display: none !important; }
