/* =========================================================
   MdayS 用户中心 · 设计系统
   配色取自 MdayS 官网：主蓝 #2563eb / #3b82f6，霓虹渐变
   #667eea → #764ba2 → #f093fb → #4facfe → #00f2fe，深色面板 #0f172a / #1e293b
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-3: #0ea5e9;
  --neon-1: #667eea;
  --neon-2: #764ba2;
  --neon-3: #f093fb;
  --neon-4: #4facfe;
  --neon-5: #00f2fe;

  --bg: #05070d;
  --bg-2: #080d1a;
  --panel: rgba(13, 19, 33, 0.74);
  --panel-solid: #0d1321;
  --line: rgba(59, 130, 246, 0.16);
  --line-strong: rgba(59, 130, 246, 0.34);

  --text: #e7edf8;
  --text-2: #b8c4d6;
  --muted: #8d9bb1;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 8px 30px -18px rgba(37, 99, 235, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #3b82f6 48%, #4facfe 100%);
  --grad-neon: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- 背景层：深色渐变 + 光斑 + 网格 + 星点画布 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(900px 520px at 88% 6%, rgba(118, 75, 162, 0.22), transparent 62%),
    radial-gradient(800px 700px at 60% 110%, rgba(14, 165, 233, 0.14), transparent 60%),
    linear-gradient(160deg, #05070d 0%, #070c18 45%, #04060c 100%);
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.9), transparent 78%);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(420px 420px at 20% 30%, rgba(79, 172, 254, 0.10), transparent 70%),
    radial-gradient(380px 380px at 78% 68%, rgba(240, 147, 251, 0.08), transparent 70%);
  animation: float-orb 22s ease-in-out infinite alternate;
}

@keyframes float-orb {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- 通用组件 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background: var(--grad-brand);
  box-shadow: 0 12px 30px -14px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(37, 99, 235, 0.95), 0 0 0 1px rgba(96, 165, 250, 0.35);
  filter: saturate(1.08);
}

.btn:hover::before { left: 130%; }

.btn:active { transform: translateY(0) scale(0.985); }

.btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 3px;
}

.btn-block { width: 100%; }

.btn-label { position: relative; z-index: 1; transition: opacity 0.25s ease; }

.btn .spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}

.btn.loading { pointer-events: none; }
.btn.loading .btn-label { opacity: 0; }
.btn.loading .spinner { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none;
  border: 0;
  color: var(--brand-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.link-btn:hover { color: #93c5fd; }
.link-btn:disabled { color: var(--muted); cursor: not-allowed; }

/* ---------- 返回官网 ---------- */
.back-home {
  position: fixed;
  top: 26px;
  right: 32px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 10px 26px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, background 0.3s ease,
    color 0.3s ease, box-shadow 0.35s var(--ease);
}

.back-home::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(79, 172, 254, 0.12));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.back-home:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.55);
  color: #e0f2fe;
  box-shadow: 0 16px 34px -20px rgba(37, 99, 235, 0.95);
}

.back-home:hover::before { opacity: 1; }

.back-home svg {
  position: relative;
  color: #93c5fd;
  transition: transform 0.35s var(--ease);
}

.back-home:hover svg { transform: translateX(-3px); }

.back-home span { position: relative; }

/* ---------- 登录页布局 ---------- */
.auth-shell {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1.05fr 460px;
  align-items: center;
  gap: 64px;
}

.brand {
  animation: rise 0.9s var(--ease) both;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-neon);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 19, 33, 0.5);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.brand-title {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.brand-title em {
  font-style: normal;
  background: var(--grad-neon);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.brand-desc {
  color: var(--text-2);
  font-size: 15px;
  max-width: 430px;
  margin-bottom: 34px;
}

.brand-points {
  display: grid;
  gap: 14px;
  list-style: none;
  margin-bottom: 46px;
}

.brand-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 14px;
}

.brand-points .dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--line);
  color: #93c5fd;
  font-size: 14px;
}

.brand-foot {
  color: rgba(141, 155, 177, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- 表单卡片 ---------- */
.card {
  position: relative;
  padding: 30px 30px 26px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(20, 27, 45, 0.86), rgba(9, 13, 24, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  animation: rise 0.9s var(--ease) 0.08s both;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.75), transparent);
}

.card::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 标签切换 */
.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(8, 13, 26, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.tabs button {
  position: relative;
  z-index: 1;
  height: 42px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.35s ease;
}

.tabs button.active { color: #fff; }

.tab-glider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.75));
  box-shadow: 0 8px 22px -10px rgba(37, 99, 235, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

/* 表单面板：容器高度平滑过渡 */
.panes {
  position: relative;
  transition: height 0.46s var(--ease);
}

.pane {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease), visibility 0.42s;
}

.pane.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.field { margin-bottom: 16px; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field-label .hint { color: rgba(141, 155, 177, 0.75); font-size: 11.5px; }

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-control .icon {
  position: absolute;
  left: 16px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(148, 163, 184, 0.85);
  pointer-events: none;
  transition: color 0.3s ease;
}

.field-control input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 44px;
  border-radius: 13px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(6, 10, 20, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.35s var(--ease), background 0.3s ease;
}

.field-control input::placeholder { color: rgba(141, 155, 177, 0.6); }

.field-control input:hover { border-color: rgba(59, 130, 246, 0.3); }

.field-control input:focus {
  border-color: rgba(96, 165, 250, 0.85);
  background: rgba(9, 15, 30, 0.92);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 0 28px -8px rgba(59, 130, 246, 0.55);
}

.field-control:focus-within .icon { color: #93c5fd; }

.field-control.invalid input {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  44% { transform: translateX(5px); }
  66% { transform: translateX(-3px); }
  88% { transform: translateX(2px); }
}

.eye {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.eye:hover { color: #93c5fd; background: rgba(59, 130, 246, 0.1); }

.code-row { display: flex; gap: 10px; }
.code-row .field-control { flex: 1; }

.code-btn {
  flex: 0 0 auto;
  min-width: 118px;
  height: 52px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
  white-space: nowrap;
}

.code-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateY(-1px);
}

.code-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 20px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.form-note .mark { color: #93c5fd; font-weight: 700; }

.form-error {
  min-height: 16px;
  margin: 0 0 10px;
  color: #fca5a5;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-error.show { opacity: 1; transform: translateY(0); }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(59, 130, 246, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.card-foot a { color: var(--brand-2); text-decoration: none; }
.card-foot a:hover { color: #93c5fd; }

.demo-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(240, 147, 251, 0.35);
  background: linear-gradient(120deg, rgba(118, 75, 162, 0.14), rgba(79, 172, 254, 0.1));
  color: #d8c8ea;
  font-size: 12px;
  line-height: 1.7;
}

.demo-tip b { color: #f0abfc; font-weight: 600; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(13, 19, 33, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  animation: toast-in 0.45s var(--ease) both;
}

.toast.leaving { animation: toast-out 0.35s ease forwards; }
.toast .bar { width: 3px; border-radius: 3px; background: var(--brand-2); flex: none; }
.toast.error .bar { background: var(--danger); }
.toast.success .bar { background: var(--ok); }
.toast.error { border-color: rgba(239, 68, 68, 0.35); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(28px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px) scale(0.97); }
}

/* =========================================================
   后台
   ========================================================= */
.dash-body { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.logo-wrap { display: flex; align-items: center; gap: 10px; }

.badge {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(13, 19, 33, 0.6);
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.user-chip .name { font-size: 13px; color: var(--text-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ghost-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ghost-btn:hover { color: #bfdbfe; border-color: rgba(96, 165, 250, 0.5); background: rgba(37, 99, 235, 0.12); }

.dash-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 32px) 72px;
}

/* 主视觉卡 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3.4vw, 42px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(680px 280px at 88% -20%, rgba(79, 172, 254, 0.2), transparent 70%),
    linear-gradient(155deg, rgba(22, 32, 55, 0.9), rgba(9, 13, 24, 0.92));
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 48%, transparent 62%);
  transform: translateX(-60%);
  animation: sweep 7s var(--ease) infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%, 55% { transform: translateX(-70%); }
  100% { transform: translateX(80%); }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(147, 197, 253, 0.8);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero h1 span {
  background: var(--grad-neon);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.hero-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.pill .led { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }

.pill.ok { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.34); }
.pill.expired { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.34); }
.pill.info { color: #93c5fd; background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.34); }

.countdown {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
}

.countdown strong {
  font-size: 26px;
  font-weight: 900;
  color: #e0f2fe;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(79, 172, 254, 0.45);
}

/* 环形剩余天数 */
.ring { position: relative; width: 156px; height: 156px; flex: none; }

.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring .track { stroke: rgba(59, 130, 246, 0.14); }
.ring .bar {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.ring .center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}

.ring .num { font-size: 30px; font-weight: 900; line-height: 1; color: #f0f9ff; font-variant-numeric: tabular-nums; }
.ring .unit { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }

/* 信息网格 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 18px;
}

.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.section-head .sub { font-size: 12px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(20, 28, 47, 0.78), rgba(9, 13, 24, 0.82));
  border: 1px solid rgba(59, 130, 246, 0.16);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 120px at 20% 0%, rgba(79, 172, 254, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: 0 24px 46px -26px rgba(37, 99, 235, 0.65);
}

.info-card:hover::after { opacity: 1; }

.info-card .k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.info-card .k svg { color: rgba(147, 197, 253, 0.8); }

.info-card .v {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.info-card .v.small { font-size: 15px; font-weight: 600; }

.info-card .memo { margin-top: 6px; font-size: 11.5px; color: rgba(141, 155, 177, 0.8); }

/* 卡密卡片：原生 details 展开，不依赖脚本 */
.info-card .v.card-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.4px;
  color: #93c5fd;
  border-bottom: 1px dashed rgba(147, 197, 253, 0.45);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}
.card-reveal { margin: 2px 0 0; }
.card-reveal summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  outline: none;
}
.card-reveal summary::-webkit-details-marker { display: none; }
.card-reveal summary:hover .v.card-value {
  color: #bfdbfe;
  border-bottom-color: rgba(191, 219, 254, 0.8);
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
}
.card-reveal[open] summary .v.card-value { color: #e2e8f0; border-bottom-color: transparent; }
.card-reveal.is-empty summary { cursor: default; }
.card-reveal.is-empty summary .v.card-value {
  color: rgba(141, 155, 177, 0.9);
  border-bottom-color: transparent;
}
.card-reveal .card-full {
  margin-top: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: #e2e8f0;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  word-break: break-all;
  animation: cardOpen 0.26s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
@keyframes cardOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片内文字按钮 */
.link-btn {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #93c5fd;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.3s var(--ease);
}

.link-btn:hover {
  color: #e0f2fe;
  text-shadow: 0 0 16px rgba(79, 172, 254, 0.7);
  transform: translateX(3px);
}

/* 修改密码弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.74);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 24px clamp(20px, 3vw, 28px) 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 28, 47, 0.97), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 40px 90px -40px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(18px) scale(0.965);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.modal.show .modal-backdrop { opacity: 1; }
.modal.show .modal-card { opacity: 1; transform: none; }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-head h3 { font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }

.modal-sub {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 330px;
}

.modal-close {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(11, 17, 31, 0.8);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease);
}

.modal-close:hover {
  color: #e2e8f0;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.16);
  transform: rotate(90deg);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-foot .btn { width: auto; min-width: 132px; padding: 0 22px; height: 46px; }
.modal-foot .ghost-btn { height: 46px; padding: 0 20px; }


/* 下载卡 */
.download {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 26px clamp(20px, 3vw, 32px);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.14), rgba(118, 75, 162, 0.12) 55%, rgba(79, 172, 254, 0.1)),
    rgba(10, 15, 28, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.26);
  box-shadow: 0 26px 60px -34px rgba(37, 99, 235, 0.7);
}

.download .file {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.file-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #93c5fd;
}

.download .meta { min-width: 0; }
.download .meta h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download .meta p { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }
.download .meta p span { display: inline-flex; align-items: center; gap: 4px; }

.dl-action { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.progress {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.18);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress.show { opacity: 1; }

.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(79, 172, 254, 0.8);
  transition: width 0.2s linear;
}

/* 其他下载 */
.dl-others { margin-top: 22px; }

.dl-others-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.dl-others-head h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.dl-others-head span { font-size: 12px; color: var(--muted); }

.dl-list { display: grid; gap: 10px; }

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(13, 19, 33, 0.55);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.dl-item:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(17, 26, 44, 0.7);
}

.dl-item .di-meta { min-width: 0; }

.dl-item .di-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-item .di-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.dl-item .ghost-btn { height: 32px; padding: 0 14px; font-size: 12px; flex: none; }

.dl-item .ghost-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: rgba(59, 130, 246, 0.14);
}

/* 教程 */
.steps {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(13, 19, 33, 0.55);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.step:hover { border-color: rgba(96, 165, 250, 0.34); transform: translateY(-3px); }

.step .no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.step h4 { font-size: 14px; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 公告 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 入场序列 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 1020px) {
  .back-home {
    top: 14px;
    right: 16px;
    height: 36px;
    padding: 0 13px 0 11px;
    font-size: 12px;
  }
  .auth-shell { grid-template-columns: 1fr; gap: 34px; max-width: 520px; padding: 68px 20px 64px; }
  .brand-top { margin-bottom: 26px; justify-content: center; }
  .brand { text-align: center; }
  .brand-desc { margin-left: auto; margin-right: auto; }
  .brand-points, .brand-foot { display: none; }
  .brand-title { font-size: 30px; }
  .card { padding: 24px 20px 22px; border-radius: 22px; }
}

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .ring { justify-self: center; }
  .download { grid-template-columns: 1fr; }
  .dl-action { align-items: stretch; }
}

@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; }
  .user-chip .name { display: none; }
  .toasts { right: 16px; left: 16px; bottom: 16px; max-width: none; }
  .card { border-radius: 18px; }
  .code-btn { min-width: 104px; font-size: 12px; }
  .hero { border-radius: 20px; }
  .ring { width: 132px; height: 132px; }
}

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

/* 静态模式（?static=1）：直接呈现最终画面，用于截图与打印 */
.no-anim .reveal,
.no-anim .reveal.in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.no-anim *,
.no-anim *::before,
.no-anim *::after {
  animation: none !important;
  transition: none !important;
}
