/* ==========================================================================
   Sky雷达 —— 门户主样式（浅色调 · 二次元手感）
   --------------------------------------------------------------------------
   设计基线（用户指定）：
     背景   #f7f9fc → linear-gradient(180deg,#ffffff,#eef2ff)
     卡片   #ffffff + 1px solid #e6ebf5 + 0 8px 24px rgba(80,110,180,.08)
     主色   #4f7cff → #6ea8ff
     点缀   青 #22d3ee / 粉 #ff7ac6（小面积点缀）
     文字   #1a2233 / #5b6b86
     成功   #16a34a
   保留二次元手感：浅紫/浅青柔光光斑、大圆角 16–20px、hover 轻微上浮、
   细描边渐变按钮、圆润图标。无深色底、无霓虹发光文字、无暗紫渐变。
   离线可用：无任何外链字体 / 图片 / CDN，图标与看板娘全部内联 SVG。
   ========================================================================== */

:root {
  /* 底色 */
  --bg-0:        #ffffff;
  --bg-1:        #f7f9fc;
  --bg-2:        #eef2ff;
  --surface:     #ffffff;
  --surface-2:   #f8faff;
  --surface-3:   #f1f5ff;
  --line:        #e6ebf5;
  --line-2:      #d7e0f2;
  --line-3:      #c3d0ea;

  /* 文字 */
  --txt:         #1a2233;
  --txt-dim:     #35415a;
  --txt-mute:    #5b6b86;
  --txt-faint:   #8494ad;

  /* 主色与点缀 */
  --violet:      #4f7cff;
  --violet-soft: #6ea8ff;
  --violet-pale: #eaf0ff;
  --violet-deep: #3560e0;
  --cyan:        #22d3ee;
  --cyan-pale:   #e4f8fd;
  --pink:        #ff7ac6;
  --pink-pale:   #ffe9f5;
  --amber:       #d97706;
  --mint:        #16a34a;
  --ok:          #16a34a;
  --warn:        #d97706;
  --err:         #e11d48;
  --err-pale:    #ffe9ee;

  /* 渐变 */
  --grad-main:   linear-gradient(135deg, #4f7cff 0%, #6ea8ff 100%);
  --grad-cyan:   linear-gradient(135deg, #22d3ee 0%, #6ea8ff 100%);
  --grad-pink:   linear-gradient(135deg, #ff7ac6 0%, #ffb1dd 100%);
  --grad-text:   linear-gradient(120deg, #3560e0 0%, #4f7cff 45%, #22a8c9 100%);

  /* 浅色下的「玻璃」= 白底半透明 */
  --glass:       rgba(255, 255, 255, .72);
  --glass-2:     rgba(255, 255, 255, .92);

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  /* 阴影（浅色体系：柔和蓝调投影，不用黑色） */
  --sh-1: 0 2px 8px rgba(80, 110, 180, .06);
  --sh-2: 0 8px 24px rgba(80, 110, 180, .08);
  --sh-3: 0 14px 34px rgba(80, 110, 180, .13);
  --sh-4: 0 20px 46px rgba(80, 110, 180, .18);
  --glow-v: 0 8px 22px rgba(79, 124, 255, .30);
  --glow-c: 0 8px 22px rgba(34, 211, 238, .28);
  --glow-p: 0 8px 22px rgba(255, 122, 198, .28);

  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--txt);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.7;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 42%, #eef2ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.2px; color: var(--txt); }
a { color: var(--violet); }
a:hover { color: var(--violet-deep); }
::selection { background: var(--violet-pale); color: var(--violet-deep); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0f4fb; }
::-webkit-scrollbar-thumb { background: #cbd8ee; border-radius: 99px; border: 2px solid #f0f4fb; }
::-webkit-scrollbar-thumb:hover { background: #b0c2e2; }

/* ---------------- 背景装饰：浅紫 / 浅青柔光光斑 ---------------- */

.bg-fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; top: -120px; left: -90px; background: radial-gradient(circle, rgba(110,168,255,.42), transparent 70%); }
.orb-2 { width: 360px; height: 360px; top: 20%; right: -100px; background: radial-gradient(circle, rgba(34,211,238,.30), transparent 70%); animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; bottom: -110px; left: 36%; background: radial-gradient(circle, rgba(255,122,198,.24), transparent 70%); animation-delay: -12s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(18px, -22px, 0) scale(1.06); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,124,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,124,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.particles { position: absolute; inset: 0; }
.particles i {
  position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,.55), rgba(34,211,238,.18));
  animation: float-up linear infinite; opacity: 0;
}
.particles i:nth-child(3n) { background: radial-gradient(circle, rgba(255,122,198,.5), transparent); }
.particles i:nth-child(4n) { width: 3px; height: 3px; }
@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(.6); }
  12%  { opacity: .75; }
  85%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(-105vh) scale(1.05); }
}
.particles i:nth-child(1)  { left: 6%;  animation-duration: 15s; animation-delay: 0s;   }
.particles i:nth-child(2)  { left: 15%; animation-duration: 19s; animation-delay: -2s;  }
.particles i:nth-child(3)  { left: 24%; animation-duration: 13s; animation-delay: -5s;  }
.particles i:nth-child(4)  { left: 33%; animation-duration: 21s; animation-delay: -1s;  }
.particles i:nth-child(5)  { left: 42%; animation-duration: 17s; animation-delay: -7s;  }
.particles i:nth-child(6)  { left: 51%; animation-duration: 14s; animation-delay: -3s;  }
.particles i:nth-child(7)  { left: 60%; animation-duration: 23s; animation-delay: -9s;  }
.particles i:nth-child(8)  { left: 69%; animation-duration: 16s; animation-delay: -4s;  }
.particles i:nth-child(9)  { left: 78%; animation-duration: 18s; animation-delay: -11s; }
.particles i:nth-child(10) { left: 87%; animation-duration: 12s; animation-delay: -6s;  }
.particles i:nth-child(11) { left: 94%; animation-duration: 20s; animation-delay: -8s;  }
.particles i:nth-child(12) { left: 46%; animation-duration: 25s; animation-delay: -13s; }

/* ---------------- 布局 ---------------- */

.page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 880px; }
main { flex: 1 0 auto; padding: 30px 0 56px; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--txt); font-weight: 700; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-main);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--glow-v);
  position: relative; overflow: hidden;
}
.brand .logo::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 74% 22%, rgba(255,255,255,.55), transparent 58%);
}
.brand-name { font-size: 17.5px; letter-spacing: .2px; color: var(--txt); }
.brand-name .accent {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 10.5px; color: var(--txt-faint); letter-spacing: 2.4px; text-transform: uppercase; margin-top: -4px; }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  padding: 8px 13px; border-radius: var(--r-sm); color: var(--txt-mute);
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--violet-deep); background: var(--violet-pale); }
.nav a.on { color: var(--violet-deep); background: var(--violet-pale); box-shadow: inset 0 0 0 1px rgba(79,124,255,.22); }
.nav .btn-nav {
  background: var(--grad-main); color: #fff; font-weight: 600; margin-left: 4px;
  box-shadow: 0 6px 16px rgba(79, 124, 255, .28);
}
.nav .btn-nav:hover { transform: translateY(-1px); background: var(--grad-main); color: #fff; box-shadow: 0 10px 22px rgba(79,124,255,.36); }

.burger {
  display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line);
  color: var(--txt); width: 40px; height: 40px; border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------------- 卡片 ---------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-2);
}
.card-hover { transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, border-color .28s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.card > * { position: relative; z-index: 1; }

/* ---------------- Hero ---------------- */

/* 首屏背景图（浅色雾光，楪祈风）——左侧近白遮罩保证文案可读，右侧露出人物本体 */
.hero {
  position: relative;
  overflow: hidden;                       /* 裁掉放大后溢出的像素 */
  padding: 56px 0 40px;
  display: block;
  min-height: 560px;
  margin: -30px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fe 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* 背景图：用伪元素 + transform。
   注意不能用 background-position 的百分比右移 —— 图片 1920x1080(1.78) 比容器(约2.1) 更方，
   cover 按宽度缩放后水平方向零溢出，x 百分比完全无效。
   transform 不受溢出限制，必然生效。 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/bg-hero.jpg?v=20261020d') center center / cover no-repeat;
  /* 放大 s 倍 ⇒ 单侧溢出 (s-1)/2；translateX 必须 < 溢出量，否则露边。
     s=1.45 ⇒ 单侧溢出 22.5% ⇒ 13% 安全。想更靠右请同步加大 scale。 */
  transform: scale(1.45) translateX(13%);
  transform-origin: center center;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.90) 42%,
    rgba(255,255,255,.40) 70%,
    rgba(247,250,255,.04) 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  pointer-events: none;
  z-index: 1;                                /* 必须叠在 ::after 之上 */
}
.hero > * { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--txt-mute);
  box-shadow: var(--sh-1);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px rgba(22,163,74,.14);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }

.hero h1 {
  font-size: 44px; line-height: 1.18; margin: 20px 0 16px; font-weight: 800;
  letter-spacing: -1px; color: var(--txt);
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--txt-mute); font-size: 15.5px; margin: 0 0 26px; max-width: 580px; }
.hero p.lead b { color: var(--txt-dim); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; color: var(--txt);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  background: var(--surface-2);
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn .ico { flex: none; }

.btn-primary {
  background: var(--grad-main); color: #fff;
  border-color: rgba(79, 124, 255, .5);
  box-shadow: 0 8px 22px rgba(79, 124, 255, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(79, 124, 255, .4); color: #fff; }

.btn-ghost { background: var(--surface); color: var(--txt-dim); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--violet-pale); color: var(--violet-deep); border-color: rgba(79,124,255,.4); transform: translateY(-2px); }

.btn-cyan { background: var(--grad-cyan); color: #06333d; box-shadow: 0 8px 22px rgba(34,211,238,.3); }
.btn-cyan:hover { transform: translateY(-2px); color: #06333d; }

.btn-pink { background: var(--grad-pink); color: #6b1442; box-shadow: 0 8px 22px rgba(255,122,198,.3); }
.btn-pink:hover { transform: translateY(-2px); color: #6b1442; }

.btn-danger { background: var(--err-pale); color: #b01239; border-color: rgba(225,29,72,.34); }
.btn-danger:hover { background: #ffd9e2; border-color: rgba(225,29,72,.5); transform: translateY(-2px); }

.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: var(--r-sm); gap: 6px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled, .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------------- 统计小卡 ---------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; text-align: center; box-shadow: var(--sh-1);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(79,124,255,.4); box-shadow: var(--sh-2); }
.stat .k { font-size: 11.5px; color: var(--txt-faint); letter-spacing: 1.1px; }
.stat .v { font-size: 25px; font-weight: 800; font-family: var(--font-mono); margin-top: 4px; color: var(--violet-deep); }

/* ---------------- 区块 ---------------- */

.sec { margin-top: 52px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sec-head h2 .ico { color: var(--violet); }
.sec-head .desc { color: var(--txt-mute); font-size: 13.5px; margin-top: 2px; }

/* ---------------- 领取面板（Hero 内） ---------------- */

.claim-panel {
  margin-top: 28px; padding: 22px; border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  position: relative; overflow: hidden;
}
.claim-panel::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-main);
}
.claim-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.claim-head .ttl { font-size: 16px; font-weight: 700; }
.claim-head .sub { font-size: 12.5px; color: var(--txt-mute); }
.claim-empty { text-align: center; padding: 18px 8px; color: var(--txt-mute); }
.claim-empty .ic { color: var(--violet-soft); opacity: .75; margin-bottom: 8px; }

/* 三件套只读凭据 */
.creds { display: grid; gap: 10px; margin-bottom: 16px; }
.cred {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.cred:hover { border-color: var(--line-3); background: var(--surface-3); }
.cred .lab { font-size: 12.5px; color: var(--txt-mute); letter-spacing: .4px; }
.cred .val {
  font-family: var(--font-mono); font-size: 17px; font-weight: 700;
  letter-spacing: 1.2px; color: var(--txt);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cred .val.violet { color: var(--violet-deep); }
.cred .val.cyan   { color: #0e93ad; }
.cred .val.pink   { color: #d1489a; }

.cred-hint {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12.5px; color: var(--txt-mute); line-height: 1.6;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  margin-bottom: 14px;
}
.cred-hint .ico { color: var(--amber); flex: none; margin-top: 2px; }
.cred-hint b { color: var(--txt-dim); }

.claim-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------- 雷达显示区（iframe） ---------------- */

.radar-holder {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--sh-2); overflow: hidden;
}
.radar-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8faff);
}
.radar-bar .bdg {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-dim);
}
.radar-bar .bdg b { font-family: var(--font-mono); color: var(--txt); font-weight: 700; letter-spacing: .6px; }
.radar-bar .spacer { margin-left: auto; }

.radar-frame {
  display: block; width: 100%; height: 640px; border: 0;
  background: var(--surface-2);
}
.radar-holder.is-full { position: fixed; inset: 12px; z-index: 200; border-radius: var(--r-md); box-shadow: var(--sh-4); }
.radar-holder.is-full .radar-frame { height: calc(100vh - 70px); }

.radar-gate {
  position: absolute; inset: 46px 0 0 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,255,.99));
  text-align: center; padding: 30px 20px;
}
.radar-gate[hidden] { display: none; }
.radar-gate .spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--violet-pale); border-top-color: var(--violet);
  animation: spin .9s linear infinite;
}
.radar-gate h3 { margin: 0; font-size: 17px; }
.radar-gate p { margin: 0; color: var(--txt-mute); font-size: 13.5px; max-width: 480px; }
.radar-gate .port-no {
  font-family: var(--font-mono); font-weight: 800; color: var(--violet-deep);
  background: var(--violet-pale); padding: 2px 9px; border-radius: 7px;
}

/* ---------------- HTTPS 下的雷达引导卡（不内嵌 iframe） ---------------- */

.radar-external {
  padding: 38px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}
.radar-external .re-ic {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-pale), var(--cyan-pale));
  color: var(--violet-deep);
}
.radar-external h3 { margin: 0; font-size: 18px; }
.radar-external p {
  margin: 0; color: var(--txt-mute); font-size: 13.5px;
  max-width: 520px; line-height: 1.75;
}
.radar-external .re-note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--txt-mute);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.radar-external .re-note .ico { color: var(--amber); }

/* ---------------- 预缓存进度面板 ---------------- */

.pf-panel {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8faff);
  box-shadow: var(--sh-2); padding: 18px; margin-bottom: 16px;
}
.pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pf-head .ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--violet-pale); color: var(--violet-deep); flex: none;
}
.pf-head .ttl { font-size: 15px; font-weight: 700; }
.pf-state { font-size: 12.5px; color: var(--txt-mute); display: flex; flex-direction: column; line-height: 1.45; }
.pf-state strong { color: var(--txt); font-weight: 600; font-size: 13.5px; }
.pf-pct {
  margin-left: auto; font-family: var(--font-mono); font-size: 22px; font-weight: 800;
  color: var(--violet-deep);
}

.pf-track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--line); }
.pf-bar {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: var(--grad-main); transition: width .35s ease;
  position: relative; overflow: hidden;
}
.pf-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: pf-shine 1.6s linear infinite;
}
.pf-bar.is-pending { background: linear-gradient(135deg, #ffb1dd, #ff7ac6); }
@keyframes pf-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.pf-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-top: 14px;
}
.pf-meta .mi {
  padding: 9px 11px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line);
}
.pf-meta .mk { font-size: 11px; color: var(--txt-faint); letter-spacing: .8px; }
.pf-meta .mv { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--txt-dim); margin-top: 2px; }

.pf-list { margin-top: 12px; }
.pf-err {
  font-size: 12.5px; color: #a8143c; background: var(--err-pale);
  border: 1px solid rgba(225,29,72,.24); border-radius: var(--r-sm);
  padding: 7px 10px; margin-top: 6px; font-family: var(--font-mono);
}
.pf-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* ---------------- 游戏/房间卡片 ---------------- */

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.game-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-2);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-3); }
.game-card > * { position: relative; z-index: 1; }
.game-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.game-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--violet-pale), var(--cyan-pale));
  color: var(--violet-deep); border: 1px solid var(--line);
}
.game-meta h3 { margin: 0; font-size: 17.5px; }
.game-meta .sub { font-size: 12.5px; color: var(--txt-mute); }
.game-desc { color: var(--txt-mute); font-size: 13.5px; min-height: 42px; margin: 0 0 16px; }
.game-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.room-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.room-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; }
.room-row .lab { font-size: 12.5px; color: var(--txt-mute); letter-spacing: .4px; }
.room-row .val { font-family: var(--font-mono); font-size: 16px; font-weight: 700; letter-spacing: 1.3px; color: var(--txt); }
.room-row .val.violet { color: var(--violet-deep); }
.room-row .val.cyan   { color: #0e93ad; }
.room-row .val.pink   { color: #d1489a; }
.room-empty { text-align: center; color: var(--txt-mute); font-size: 13.5px; padding: 18px 0; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--txt-mute);
  cursor: pointer; font-family: inherit;
  transition: all .2s ease;
}
.copy-btn:hover { color: var(--violet-deep); border-color: rgba(79,124,255,.5); background: var(--violet-pale); }
.copy-btn.done { color: var(--mint); border-color: rgba(22,163,74,.45); background: #e9f9ef; }

/* ---------------- 标签 / 状态 ---------------- */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--txt-mute);
  white-space: nowrap;
}
.st-idle     { background: var(--violet-pale); color: var(--violet-deep); border-color: rgba(79,124,255,.32); }
.st-live     { background: #e9f9ef; color: #11713a; border-color: rgba(22,163,74,.34); }
.st-expired  { background: #f1f5f9; color: #55637a; border-color: #dbe3ef; }
.st-released { background: var(--err-pale); color: #a8143c; border-color: rgba(225,29,72,.28); }
.tag-info    { background: var(--cyan-pale); color: #0e7f96; border-color: rgba(34,211,238,.4); }
.tag-warn    { background: #fef5e3; color: #a15c07; border-color: rgba(217,119,6,.32); }
.tag-ok      { background: #e9f9ef; color: #11713a; border-color: rgba(22,163,74,.34); }
.tag-pink    { background: var(--pink-pale); color: #b73c85; border-color: rgba(255,122,198,.44); }

.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(22,163,74,.16); animation: pulse 2s infinite; }
.dot-dead { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--txt-faint); }

.countdown { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 13px; color: var(--txt-mute); }
.countdown .ico { color: var(--amber); }
.countdown.urgent { color: #b01239; }
.countdown.urgent .ico { color: var(--err); animation: pulse 1.4s infinite; }

.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--grad-main); transition: width .6s ease; }
.progress.urgent span { background: linear-gradient(90deg, #ff7ac6, #d97706); }

/* ---------------- 表单 ---------------- */

.auth-wrap { display: grid; place-items: center; padding: 30px 0; }
.auth-card { width: 100%; max-width: 440px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .lg {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
  background: var(--grad-main); display: grid; place-items: center; color: #fff;
  box-shadow: var(--glow-v);
}
.auth-head h2 { margin: 0 0 6px; font-size: 22px; }
.auth-head p { margin: 0; color: var(--txt-mute); font-size: 13.5px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--txt-dim); margin-bottom: 7px; font-weight: 600; }
.field label .req { color: var(--pink); }
.field-hint { font-size: 12px; color: var(--txt-faint); margin-top: 6px; }
.field-err { font-size: 12.5px; color: #b01239; margin-top: 6px; display: flex; align-items: center; gap: 5px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ico { position: absolute; left: 13px; color: var(--txt-faint); pointer-events: none; }
.input-wrap .toggle {
  position: absolute; right: 10px; background: none; border: 0; cursor: pointer;
  color: var(--txt-faint); padding: 4px; display: grid; place-items: center; border-radius: 7px;
}
.input-wrap .toggle:hover { color: var(--violet); background: var(--violet-pale); }

input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--txt); font-family: inherit; font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrap input { padding-left: 40px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(79,124,255,.14);
  background: var(--surface);
}
input::placeholder, textarea::placeholder { color: var(--txt-faint); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--txt-mute) 50%), linear-gradient(135deg, var(--txt-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
select option { background: var(--surface); color: var(--txt); }

.pw-strength { display: flex; gap: 5px; margin-top: 8px; }
.pw-strength i { flex: 1; height: 4px; border-radius: 999px; background: var(--line-2); transition: background .25s ease; }
.pw-strength.s1 i:nth-child(1) { background: var(--err); }
.pw-strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.pw-strength.s3 i:nth-child(-n+3) { background: var(--mint); }
.pw-strength.s4 i { background: var(--grad-cyan); }

/* ---------------- 提示条 ---------------- */

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: var(--r-md); font-size: 13.5px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--txt-dim);
  margin-bottom: 16px; box-shadow: var(--sh-1);
}
.alert .ico { flex: none; margin-top: 1px; }
.alert a { color: var(--violet-deep); font-weight: 600; }
.alert-info    { background: var(--cyan-pale); border-color: rgba(34,211,238,.4); color: #0b6d80; }
.alert-success { background: #e9f9ef;          border-color: rgba(22,163,74,.34); color: #11713a; }
.alert-warning { background: #fef5e3;          border-color: rgba(217,119,6,.32); color: #8a5206; }
.alert-error   { background: var(--err-pale);  border-color: rgba(225,29,72,.3);  color: #a8143c; }

/* ---------------- 页脚 ---------------- */

footer.site-foot { border-top: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); padding: 24px 0; margin-top: 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--txt-mute); text-decoration: none; font-size: 13px; transition: color .2s; }
.foot-links a:hover { color: var(--violet-deep); }
.foot-copy { color: var(--txt-faint); font-size: 12.5px; }

/* ---------------- KPI ---------------- */

.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--sh-1);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.kpi:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: var(--sh-2); }
.kpi .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-pale); color: var(--violet-deep); margin-bottom: 10px; }
.kpi .lbl { font-size: 12px; color: var(--txt-faint); letter-spacing: .6px; }
.kpi .num { font-size: 28px; font-weight: 800; font-family: var(--font-mono); margin-top: 4px; color: var(--txt); }
.kpi .sub { font-size: 12px; color: var(--txt-faint); margin-top: 2px; }

/* ---------------- 表格 ---------------- */

.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 660px; }
table.data th {
  text-align: left; padding: 11px 14px; font-size: 12px; font-weight: 700;
  color: var(--txt-mute); background: var(--surface-2); letter-spacing: .5px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--txt-dim); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .18s ease; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .mono { font-family: var(--font-mono); }
table.data .muted { color: var(--txt-faint); }
table.data .nowrap { white-space: nowrap; }

/* ---------------- 分页 ---------------- */

.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.pager-btn {
  padding: 7px 12px; border-radius: var(--r-sm); font-size: 13px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--txt-mute);
  transition: all .2s ease; font-weight: 500;
}
.pager-btn:hover { color: var(--violet-deep); border-color: rgba(79,124,255,.45); background: var(--violet-pale); transform: translateY(-1px); }
.pager-btn.active { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(79,124,255,.3); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-dots { color: var(--txt-faint); padding: 0 4px; }
.pager-info { color: var(--txt-faint); font-size: 12.5px; margin-left: 8px; }

/* ---------------- 筛选器 ---------------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin-bottom: 0; min-width: 150px; }
.filters .field.grow { flex: 1; min-width: 220px; }
.filters .field label { margin-bottom: 5px; }

/* ---------------- 公告（仅 /notices.php 与后台使用） ---------------- */

.notice-list { display: grid; gap: 14px; }
.notice {
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  box-shadow: var(--sh-1);
  transition: transform .26s ease, box-shadow .26s ease;
}
.notice:hover { transform: translateX(3px); box-shadow: var(--sh-2); }
.notice.t-success { border-left-color: var(--mint); }
.notice.t-warning { border-left-color: var(--amber); }
.notice.t-danger  { border-left-color: var(--err); }
.notice.t-info    { border-left-color: var(--cyan); }
.notice h4 { margin: 0 0 6px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice p { margin: 0; color: var(--txt-mute); font-size: 13.5px; white-space: pre-wrap; }
.notice .time { font-size: 12px; color: var(--txt-faint); margin-top: 8px; }

/* ---------------- 空态 ---------------- */

.empty { text-align: center; padding: 50px 20px; color: var(--txt-mute); }
.empty .ic { color: var(--violet-soft); opacity: .55; margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; color: var(--txt-dim); font-size: 16px; }

/* ---------------- Toast ---------------- */

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  padding: 12px 16px; border-radius: var(--r-md); min-width: 220px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--txt-dim); font-size: 13.5px; box-shadow: var(--sh-3);
  animation: toast-in .26s cubic-bezier(.2,.8,.3,1);
}
.toast .ico { flex: none; color: var(--violet); }
.toast.ok { border-color: rgba(22,163,74,.4); }
.toast.ok .ico { color: var(--mint); }
.toast.err { border-color: rgba(225,29,72,.4); }
.toast.err .ico { color: var(--err); }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ---------------- Modal ---------------- */

.modal-back {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(26, 34, 51, .34); backdrop-filter: blur(3px);
}
.modal-back.show { display: flex; }
.modal {
  width: 100%; max-width: 520px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-4);
  animation: rise .3s cubic-bezier(.2,.8,.3,1);
}
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------------- 用户中心侧栏 ---------------- */

.uc-layout { display: grid; grid-template-columns: 236px 1fr; gap: 22px; align-items: start; }
.uc-side { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-1); }
.uc-profile { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.uc-avatar {
  width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 10px;
  background: var(--grad-main); display: grid; place-items: center; color: #fff;
  box-shadow: var(--glow-v);
}
.uc-name { font-size: 16px; font-weight: 700; }
.uc-mail { font-size: 12.5px; color: var(--txt-faint); }
.uc-menu { display: grid; gap: 4px; }
.uc-menu a {
  padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--txt-mute); font-size: 13.5px; transition: all .2s ease;
  display: flex; align-items: center; gap: 9px;
}
.uc-menu a:hover { background: var(--surface-2); color: var(--violet-deep); }
.uc-menu a.on { background: var(--violet-pale); color: var(--violet-deep); font-weight: 600; }

/* ---------------- 后台（同样浅色，前台白后台也白） ---------------- */

.admin-layout { display: grid; grid-template-columns: 236px 1fr; gap: 0; min-height: 100vh; }
.admin-side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.admin-brand .logo {
  width: 36px; height: 36px; border-radius: 12px; background: var(--grad-main);
  display: grid; place-items: center; color: #fff; box-shadow: var(--glow-v);
}
.admin-menu { display: grid; gap: 3px; }
.admin-menu a {
  padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--txt-mute); font-size: 13.5px; display: flex; align-items: center; gap: 9px;
  transition: all .2s ease;
}
.admin-menu a:hover { background: var(--surface-2); color: var(--violet-deep); }
.admin-menu a.on { background: var(--violet-pale); color: var(--violet-deep); font-weight: 600; }
.admin-main { padding: 22px 26px 46px; min-width: 0; background: linear-gradient(180deg, #fbfcff, #f4f7fe); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: 21px; margin: 0; }
.admin-head .crumb { font-size: 12.5px; color: var(--txt-faint); }

/* ---------------- 图表 ---------------- */

.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 8px 4px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; gap: 3px; align-items: flex-end; width: 100%; height: 100%; justify-content: center; }
.chart .bar { width: 42%; max-width: 18px; border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; transition: opacity .2s; }
.chart .bar.u { background: linear-gradient(180deg, #6ea8ff, #4f7cff); }
.chart .bar.r { background: linear-gradient(180deg, #67e8f9, #22d3ee); }
.chart .bar:hover { opacity: .82; }
.chart .lbl { font-size: 11.5px; color: var(--txt-faint); font-family: var(--font-mono); }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--txt-mute); margin-top: 12px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.chart-legend .u { background: #4f7cff; }
.chart-legend .r { background: #22d3ee; }

/* ---------------- 首页填充区块：参数释义 / 线路 / 特性 ---------------- */

/* ① 三件套参数释义 */
.param-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.param-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-1);
}
.pc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pc-ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-pale), var(--cyan-pale));
  color: var(--violet-deep); flex: none;
}
.pc-name { font-size: 15px; font-weight: 700; }
.pc-sample {
  font-family: var(--font-mono); font-size: 19px; font-weight: 800; letter-spacing: 1px;
  color: var(--violet-deep); padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px;
}
.pc-note { font-size: 12.5px; color: var(--txt-mute); line-height: 1.65; }

/* ② 雷达线路 */
.line-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
/* 只有一条线路时居中、限宽，不拉成半屏空 */
.line-grid-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.line-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-2); position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.line-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(135deg, var(--accent, #4f7cff), var(--accent2, #6ea8ff));
}
.line-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-3); }
.lc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lc-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--violet-pale), var(--cyan-pale));
  color: var(--violet-deep); border: 1px solid var(--line);
}
.lc-meta h3 { margin: 0; font-size: 17px; }
.lc-meta .sub { font-size: 12.5px; color: var(--txt-mute); }
.lc-desc { color: var(--txt-mute); font-size: 13.5px; margin: 0 0 14px; min-height: 42px; }
.lc-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ③ 站点特性 */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-1);
}
.fc-ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-pale), var(--pink-pale));
  color: var(--violet-deep); margin-bottom: 12px;
}
.feat-card h3 { margin: 0 0 6px; font-size: 15.5px; }
.feat-card p { margin: 0; font-size: 12.5px; color: var(--txt-mute); line-height: 1.7; }

/* ---------------- 工具类 ---------------- */

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mono { font-family: var(--font-mono); }
.dim { color: var(--txt-dim); } .mute { color: var(--txt-mute); }
.f-sm { font-size: 13px; } .f-xs { font-size: 12px; }
.w-100 { width: 100%; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s cubic-bezier(.2,.8,.3,1) both; }
.rise-d1 { animation-delay: .08s; } .rise-d2 { animation-delay: .16s; } .rise-d3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .hero {
    gap: 24px; text-align: center;
    min-height: 0; padding: 40px 0 32px;
  }
  .hero::after { transform: scale(1.7) translateX(6%) translateY(-6%); }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(255,255,255,.95) 0%,
      rgba(255,255,255,.88) 55%,
      rgba(255,255,255,.78) 100%);
  }
  .hero-copy { margin: 0 auto; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .uc-layout, .admin-layout { grid-template-columns: 1fr; }
  .uc-side, .admin-side { position: static; height: auto; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-menu { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

@media (max-width: 768px) {
  .hero { padding: 32px 0 26px; }
  .hero h1 { font-size: 30px; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px; box-shadow: var(--sh-3);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .btn-nav { margin-left: 0; text-align: center; justify-content: center; }
  .burger { display: flex; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 14.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cred { grid-template-columns: 66px 1fr; row-gap: 6px; }
  .cred .copy-btn { grid-column: 2; justify-self: start; }
  .radar-frame { height: 480px; }
  .pf-pct { margin-left: 0; }
  .sec { margin-top: 40px; }
  main { padding: 20px 0 40px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 26px 0 22px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .hero h1 { font-size: 25px; }
  .card, .claim-panel, .pf-panel { padding: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 21px; }
  .btn { padding: 10px 16px; font-size: 13.5px; }
  .claim-foot .btn { flex: 1 1 100%; }
  .radar-frame { height: 400px; }
  .brand-name { font-size: 16px; }
}
