/* ============================================================
   Xboard-Glass · 自定义前端设计系统  v2.0
   玻璃拟态 + 霓虹暗色科技风（对标并超越 oixcloud）
   纯原生 CSS，零依赖。
   主色由后台「主色方案」配置注入（见 dashboard.blade.php），
   全部派生色都基于 --accent-rgb / --accent-2-rgb / --accent-3-rgb，
   改一处即可整体换色。
   ============================================================ */

:root {
  /* 基底：中性冷黑（不偏色，换主色时不会串色） */
  --bg-0: #04070a;
  --bg-1: #070b0f;
  --bg-2: #0a1016;
  --surface: rgba(12, 18, 23, 0.55);
  --surface-2: rgba(16, 23, 29, 0.72);
  --surface-solid: #0b1116;

  /* 主色（默认矩阵绿；后台可切换，blade 会覆盖这几行） */
  --accent: #00ff9c;
  --accent-rgb: 0, 255, 156;
  --accent-2: #15e0c4;
  --accent-2-rgb: 21, 224, 196;
  --accent-3: #36b6ff;
  --accent-3-rgb: 54, 182, 255;

  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-glow: rgba(var(--accent-rgb), 0.35);

  /* 按钮/徽章上的深色前景（主色为亮色时的对比色） */
  --on-accent: #04130c;

  /* 文本 */
  --text-1: #eef3f5;
  --text-2: #a6b8c2;
  --text-3: #68808d;

  /* 描边 / 分割 */
  --line: rgba(var(--accent-rgb), 0.16);
  --line-strong: rgba(var(--accent-rgb), 0.4);
  --line-mute: rgba(255, 255, 255, 0.08);

  /* 语义色 */
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #ff6b81;

  /* 形状 / 阴影 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-1: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 40px -10px var(--accent-glow);

  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --maxw: 1200px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
#tech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(var(--accent-3-rgb), 0.10), transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, rgba(var(--accent-2-rgb), 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
#tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 78%);
}
body.tech-no-anim #tech-bg::before { opacity: 1; }
#app { position: relative; z-index: 1; min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--text-1); }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg-0);
}

/* ---------- 布局工具 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mono { font-family: var(--mono); }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 玻璃卡片 ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

/* ---------- 文字 / 标题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.5px; }
.h-hero { font-size: clamp(38px, 6vw, 76px); letter-spacing: -1.5px; }
.h-sec { font-size: clamp(28px, 4vw, 46px); }
.lead { color: var(--text-2); font-size: clamp(15px, 1.6vw, 19px); line-height: 1.7; max-width: 620px; }
.text-accent { color: var(--accent); }
.text-grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn.disabled { opacity: 0.55; pointer-events: none; }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  color: var(--text-1);
  background: var(--surface-2);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--line-strong); box-shadow: 0 0 24px -6px var(--accent-glow); }
.btn-line { color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); }
.btn-line:hover { box-shadow: 0 0 24px -6px var(--accent-glow); }
.btn-danger { color: #ffd7dd; background: rgba(255, 107, 129, 0.14); border-color: rgba(255, 107, 129, 0.4); }
.btn-danger:hover { background: rgba(255, 107, 129, 0.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 999px; }
.btn-xs { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: 12px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(5, 10, 12, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: var(--on-accent); font-weight: 900;
  box-shadow: 0 0 22px -4px var(--accent-glow);
  flex: none;
}
/* ---------- 站点 LOGO（后台上传，尺寸必须锁死）----------
   来源：window.settings.logo（后台「站点设置 → LOGO」）。
   线上实测是 2332×674 的「黑字透明 PNG」：不锁尺寸会把导航栏撑爆，
   直接内联在暗色主题上又是一片看不见的黑，所以：
   · 高度由内联 style 固定（logo_height，默认 30px），宽度按比例自适应并设上限
   · .invert 把黑字 LOGO 反色成白色（暗色主题默认显示方式）
   · .chip 保留原始黑色 LOGO，垫一层浅色圆角底板
   · 图片加载失败 → .brand-fallback 用字形 + 站名兜底 */
.brand-logo {
  display: block; flex: none;
  width: auto; max-width: 190px; min-height: 16px;
  object-fit: contain; object-position: left center;
  filter: none;
}
.brand-logo.invert { filter: invert(1) brightness(1.06); }
.brand-logo.chip {
  padding: 5px 10px; border-radius: 10px;
  background: #f5f7fa; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.65);
}
.brand-logo.bad { display: none; }
.brand-fallback::before {
  content: "◈"; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: var(--on-accent); font-weight: 900; flex: none;
}
.brand-fallback::after {
  content: attr(data-name); font-weight: 800; font-size: 18px; letter-spacing: 0.5px;
}
.brand-txt { font-weight: 800; letter-spacing: 0.5px; }
.sidebar .brand-logo { max-width: 150px; }
.auth-aside .brand-logo { max-width: 210px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-1); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  background:
    radial-gradient(420px 420px at 30% 30%, rgba(var(--accent-rgb), 0.18), transparent 60%),
    radial-gradient(380px 380px at 75% 70%, rgba(var(--accent-3-rgb), 0.16), transparent 60%),
    linear-gradient(160deg, rgba(12, 20, 22, 0.8), rgba(7, 11, 15, 0.9));
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.hero-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 22s linear infinite;
}
.hero-visual .ring.r1 { inset: 12%; border-color: rgba(var(--accent-rgb), 0.25); }
.hero-visual .ring.r2 { inset: 26%; border-color: rgba(var(--accent-3-rgb), 0.22); animation-duration: 30s; animation-direction: reverse; }
.hero-visual .ring.r3 { inset: 40%; border-color: rgba(var(--accent-2-rgb), 0.22); animation-duration: 18s; }
.hero-visual .core {
  position: absolute; inset: 0; margin: auto; width: 90px; height: 90px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 60px -6px var(--accent-glow);
  display: grid; place-items: center; color: var(--on-accent); font-weight: 900; font-size: 34px;
}
.hero-visual .float-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px 2px var(--accent-glow);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat .n { font-size: 30px; font-weight: 800; color: var(--text-1); }
.hero-stats .stat .l { font-size: 13px; color: var(--text-3); letter-spacing: 1px; }

/* ---------- 功能网格 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.feature {
  padding: 30px;
  border-radius: var(--r-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent);
  font-size: 24px; margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ---------- 网络覆盖 / 统计条 ---------- */
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.cover-card { padding: 26px; text-align: center; }
.cover-card .n { font-size: 34px; font-weight: 800; }
.cover-card .l { color: var(--text-3); font-size: 13px; margin-top: 6px; letter-spacing: 1px; }

/* ---------- 定价 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; align-items: stretch; }
.price-card { padding: 34px 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.price-card .tag {
  position: absolute; top: 16px; right: 16px; font-size: 12px; padding: 4px 10px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.price-card .name { font-size: 20px; font-weight: 800; }
.price-card .desc { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.price-card .amount { font-size: 44px; font-weight: 800; margin: 20px 0 4px; }
.price-card .amount small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.price-card li { color: var(--text-2); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; color: var(--text-1); margin: 0 0 16px; letter-spacing: 1px; }
.footer a { color: var(--text-3); font-size: 14px; display: block; margin-bottom: 10px; }
.footer a:hover { color: var(--accent); }
.footer .copy { color: var(--text-3); font-size: 13px; margin-top: 36px; }
/* 版权文案允许写 HTML（公司链接 / 备案号等）—— 必须覆盖 .footer a 的块级样式，
   否则内联 <a> 会被撑成独立一行，把版权行拆散 */
.footer .copy a {
  display: inline; margin: 0; font-size: inherit;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.footer .copy a:hover { color: var(--accent-2); }

/* ---------- 认证页（登录/注册） ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-aside {
  position: relative;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    radial-gradient(600px 500px at 90% 90%, rgba(var(--accent-3-rgb), 0.14), transparent 60%),
    linear-gradient(160deg, rgba(8, 14, 18, 0.95), rgba(5, 9, 11, 0.98));
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-aside .glow-orb {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(20px); animation: floaty 9s ease-in-out infinite;
}
.auth-aside .quote { position: relative; z-index: 2; }
.auth-aside .quote h2 { font-size: 34px; margin-bottom: 16px; }
.auth-aside .quote p { color: var(--text-2); line-height: 1.7; }
.auth-card {
  display: flex; align-items: center; justify-content: center; padding: 48px;
  background: var(--bg-0);
}
.auth-form { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form .sub { color: var(--text-3); margin-bottom: 30px; font-size: 14px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.5px; }
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(7, 11, 15, 0.7);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.select option { background: var(--surface-solid); color: var(--text-1); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.auth-foot a { color: var(--accent); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 输入框内联按钮（发送验证码） */
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

/* ---------- 人机验证（Cloudflare Turnstile）挂载位 ----------
   后台开启 Turnstile 后，注册页与找回密码页会在此渲染组件；
   未拿到 token 时「发送验证码」保持禁用，避免服务端返回「验证码有误」。 */
.cap-box {
  margin: 2px 0 18px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.cap-box:empty { display: none; }
.cap-slot { min-height: 65px; display: flex; align-items: center; }
.cap-slot:empty { min-height: 0; }
.cap-tip { font-size: 12px; color: var(--text-3); letter-spacing: 0.3px; }
.cap-tip.ok { color: var(--accent); }

/* 着陆页套餐脚注 */
.pricing-note {
  grid-column: 1 / -1; text-align: center;
  color: var(--text-3); font-size: 13px; margin-top: 6px;
}

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s; position: relative;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-2); transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .track { background: var(--accent-soft); border-color: var(--line-strong); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- 提示 / 状态 ---------- */
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-err { background: rgba(255, 80, 80, 0.1); border-color: rgba(255, 80, 80, 0.4); color: #ff9b9b; }
.alert-ok { background: var(--accent-soft); border-color: var(--line-strong); color: var(--accent); }
.alert-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.4); color: #ffd98a; }
.muted { color: var(--text-3); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #04130c;
  animation: spin 0.8s linear infinite; display: inline-block;
  vertical-align: -3px;
}
.spinner.big { width: 34px; height: 34px; border-width: 3px; border-top-color: var(--accent); border-color: rgba(255,255,255,0.14); }
.center-screen { min-height: 100vh; display: grid; place-items: center; }
.center-box { min-height: 260px; display: grid; place-items: center; }

/* ============================================================
   仪表盘
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px;
  background: var(--surface-2); backdrop-filter: blur(18px);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.sidebar .brand { padding: 6px 10px 18px; }
.side-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 14.5px; transition: background 0.2s, color 0.2s; cursor: pointer;
  border: 1px solid transparent; user-select: none;
}
.side-item:hover { background: var(--accent-soft); color: var(--text-1); }
.side-item.active { background: var(--accent-soft); color: var(--accent); border-color: var(--line); }
.side-item .ico { font-size: 17px; width: 22px; text-align: center; flex: none; }
.sidebar .spacer { flex: 1; min-height: 18px; }
.side-foot { font-size: 12px; color: var(--text-3); padding: 10px 14px; }
.side-user {
  padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-mute); margin-bottom: 10px;
}
.side-user .em { font-size: 13px; font-weight: 700; word-break: break-all; }
.side-user .bl { font-size: 12px; color: var(--accent); margin-top: 4px; }

.main { padding: 26px 30px 70px; min-width: 0; }
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px;
  gap: 16px; flex-wrap: wrap;
}
.topbar h1 { font-size: 26px; }
.topbar .sub { color: var(--text-3); font-size: 13px; margin-top: 6px; }
.top-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-weight: 800;
  flex: none;
}
.menu-btn { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { padding: 22px; }
.stat-card .k { color: var(--text-3); font-size: 13px; letter-spacing: 1px; }
.stat-card .v { font-size: 28px; font-weight: 800; margin-top: 8px; word-break: break-all; }
.stat-card .v.small { font-size: 20px; }
.stat-card .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); margin-top: 14px; overflow: hidden; }
.stat-card .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.dash-grid.wide-left { grid-template-columns: 1.7fr 1fr; }
.panel { padding: 24px; }
.panel h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.panel h3 .ico { color: var(--accent); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.node-row, .news-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-mute); }
.node-row:last-child, .news-row:last-child { border-bottom: 0; }
.node-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex: none; }
.node-row .name { font-weight: 600; }
.node-row .meta { color: var(--text-3); font-size: 13px; }
.tag-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); white-space: nowrap; }
.plan-box { display: flex; flex-direction: column; gap: 14px; }
.plan-box .big { font-size: 30px; font-weight: 800; }
.progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }
.progress.thin { height: 6px; }
.progress.warn > i { background: linear-gradient(90deg, var(--warn), #ff8a3d); box-shadow: 0 0 12px rgba(251,191,36,0.4); }
.progress.danger > i { background: linear-gradient(90deg, var(--err), #ff3d6e); box-shadow: 0 0 12px rgba(255,107,129,0.4); }

/* 键值表 */
.kv { display: grid; gap: 12px; }
.kv .item { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-mute); }
.kv .item:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .item .k { color: var(--text-3); flex: none; }
.kv .item .v { color: var(--text-1); text-align: right; word-break: break-all; }

/* 徽章 */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-mute); color: var(--text-2); white-space: nowrap; }
.badge-ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.badge-warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); }
.badge-err { color: var(--err); border-color: rgba(255, 107, 129, 0.4); background: rgba(255, 107, 129, 0.1); }
.badge-accent { color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); }
.badge-mute { color: var(--text-3); }

/* 复制框 */
.copy-field { display: flex; gap: 10px; align-items: center; }
.copy-field input {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px;
  padding: 12px 14px; border-radius: var(--r-sm); color: var(--text-2);
  background: rgba(7, 11, 15, 0.7); border: 1px solid var(--line); outline: none;
}

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line-mute); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.table th, table.table td { padding: 13px 16px; text-align: left; white-space: nowrap; }
table.table thead th {
  color: var(--text-3); font-weight: 600; font-size: 12.5px; letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line-mute);
}
table.table tbody tr { border-bottom: 1px solid var(--line-mute); transition: background 0.18s; }
table.table tbody tr:last-child { border-bottom: 0; }
table.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.table .num { font-family: var(--mono); }

/* 分段控件 / 选项卡 */
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-mute); gap: 4px; flex-wrap: wrap; }
.segmented .seg {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  cursor: pointer; transition: all 0.2s; white-space: nowrap; border: 1px solid transparent;
}
.segmented .seg:hover { color: var(--text-1); }
.segmented .seg.active { background: var(--accent-soft); color: var(--accent); border-color: var(--line); font-weight: 700; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line-mute); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 12px 4px; margin-right: 20px; font-size: 14.5px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* 节点卡 */
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.node-card { padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-mute); transition: border-color 0.2s, transform 0.2s; }
.node-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.node-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.node-card .nm { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-card .addr { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 8px; word-break: break-all; }
.node-card .foot { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.node-group-title { font-size: 13px; color: var(--text-3); letter-spacing: 1px; margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.node-group-title:first-of-type { margin-top: 0; }
.node-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-mute); }

/* 套餐卡（仪表盘内） */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.plan-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan-card .nm { font-size: 18px; font-weight: 800; }
.plan-card .quota { display: flex; align-items: baseline; gap: 6px; }
.plan-card .quota .big { font-size: 26px; font-weight: 800; }
.plan-card .quota .unit { color: var(--text-3); font-size: 13px; }
.plan-card .price { font-size: 15px; }
.plan-card .price .big { font-size: 30px; font-weight: 800; }
.plan-card .price small { color: var(--text-3); font-size: 13px; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.plan-feats li { display: flex; gap: 8px; }
.plan-feats li::before { content: "•"; color: var(--accent); }
.plan-card .spacer { flex: 1; }

/* 流量柱状图 */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; min-width: 6px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.25)); box-shadow: 0 0 12px -2px var(--accent-glow); position: relative; transition: filter 0.2s; min-height: 3px; }
.bars .b:hover { filter: brightness(1.3); }
.bars .b > span {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--surface-solid); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px;
  font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.bars .b:hover > span { opacity: 1; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 5, 7, 0.72);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px;
  animation: fade 0.18s ease both; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 520px; border-radius: var(--r-lg); position: relative;
  background: linear-gradient(180deg, rgba(14, 21, 26, 0.96), rgba(9, 14, 18, 0.98));
  border: 1px solid var(--line); box-shadow: var(--shadow-glow);
  animation: pop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; margin: auto;
}
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line-mute); }
.modal-head h3 { font-size: 17px; }
.modal-x { background: transparent; border: 0; color: var(--text-3); font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.modal-x:hover { color: var(--text-1); background: rgba(255,255,255,0.06); }
.modal-body { padding: 22px 24px; max-height: min(66vh, 560px); overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-mute); display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Toast */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  min-width: 220px; max-width: 340px; padding: 13px 16px; border-radius: var(--r-sm);
  background: rgba(12, 19, 24, 0.96); border: 1px solid var(--line); color: var(--text-1);
  font-size: 14px; box-shadow: var(--shadow-1); display: flex; gap: 10px; align-items: flex-start;
  animation: toastIn 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; word-break: break-word;
}
.toast .ic { flex: none; }
.toast.ok { border-color: rgba(52, 211, 153, 0.45); }
.toast.err { border-color: rgba(255, 107, 129, 0.45); }
.toast.warn { border-color: rgba(251, 191, 36, 0.45); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* 工单聊天 */
.chat { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.bubble .t { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.bubble.me { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--line-strong); border-bottom-right-radius: 4px; }
.bubble.other { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-mute); border-bottom-left-radius: 4px; }

/* 邀请 */
.invite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.invite-card { padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-mute); }
.feature-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--line-mute); transition: border-color .2s, transform .2s; cursor: pointer; }
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-card .ico { font-size: 22px; flex: none; }
.feature-card .t { font-weight: 700; }
.feature-card .s { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 空状态 / 骨架 */
.empty { text-align: center; padding: 64px 24px; }
.empty .ic { font-size: 44px; opacity: 0.5; margin-bottom: 14px; }
.empty .t { font-weight: 700; margin-bottom: 8px; }
.empty .s { color: var(--text-3); font-size: 13.5px; max-width: 420px; margin: 0 auto; line-height: 1.7; }
.skeleton { height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 公告 */
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line-mute); }
.news-item:last-child { border-bottom: 0; }
.news-item .t { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.news-item .c { color: var(--text-2); font-size: 13.5px; line-height: 1.7; margin-top: 8px; white-space: pre-wrap; max-height: 96px; overflow: hidden; }
.news-item .d { color: var(--text-3); font-size: 12px; margin-top: 8px; }

/* 客户端导入按钮 */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.client-chip { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,0.04); border: 1px solid var(--line-mute); font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.client-chip:hover { border-color: var(--line-strong); color: var(--accent); }

/* ---------- 入场动画 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation: rise 0.6s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-3 { animation: rise 0.6s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-4 { animation: rise 0.6s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .cover-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid.wide-left { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 160; width: 258px;
    transform: translateX(-102%); transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: var(--shadow-1);
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 18px 16px 60px; }
  .dash-mask { position: fixed; inset: 0; background: rgba(2,5,7,0.6); z-index: 150; animation: fade 0.2s both; }
}
@media (max-width: 560px) {
  .features-grid, .pricing-grid, .cover-grid, .stat-grid, .footer-grid, .grid-2, .grid-3, .row-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .stat-card .v { font-size: 22px; }
  .bubble { max-width: 90%; }
  .topbar h1 { font-size: 21px; }
}

/* ============================================================
   v2.1 新增：侧栏分组 / 捷径 / 钱包 / 使用文档 / 节点状态 / 套餐详情
   ============================================================ */
.side-group {
  margin: 16px 10px 6px; font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-3); text-transform: uppercase;
}

/* 捷径（仪表盘） */
.shortcut { display: flex; align-items: center; gap: 14px; padding: 14px 6px; cursor: pointer; border-top: 1px solid var(--line-mute); }
.shortcut:first-of-type { border-top: 0; }
.shortcut .si {
  width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 16px; border: 1px solid var(--line-mute);
}
.shortcut .st { font-weight: 700; font-size: 14px; transition: color 0.18s; }
.shortcut .ss { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.shortcut .arrow { margin-left: auto; color: var(--text-3); font-size: 20px; transition: transform 0.18s, color 0.18s; }
.shortcut:hover .st, .shortcut:hover .arrow { color: var(--accent); }
.shortcut:hover .arrow { transform: translateX(2px); }

/* 钱包 / 佣金大数字 */
.wallet { display: flex; align-items: flex-end; gap: 8px; }
.wallet .amt { font-size: 40px; font-weight: 800; line-height: 1; }
.wallet .unit { font-size: 14px; color: var(--text-3); padding-bottom: 5px; }
.sub-plan { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }

/* 未开通订阅时的购买引导（对齐原生：整块可点击跳转购买页） */
.sub-empty { padding: 26px 12px 18px; text-align: center; cursor: pointer; border-radius: 14px; transition: background .18s, transform .18s; }
.sub-empty:hover { background: rgba(var(--accent-rgb), .07); }
.sub-empty:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sub-empty .sei {
  width: 56px; height: 56px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1; font-weight: 400; border-radius: 50%;
  color: var(--accent); border: 1px dashed rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .06);
}
.sub-empty .set { font-size: 17px; font-weight: 700; color: var(--accent); }
.sub-empty .ses { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* 表格居中列 */
table.table th.ctr, table.table td.ctr { text-align: center; }

/* 节点在线状态 */
.online-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.online-tag i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.online-tag.on { color: var(--accent); }
.online-tag.on i { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.online-tag.off { color: #ff8b8b; }
.online-tag.off i { background: #ff5c5c; }

/* 套餐卡：价格行 / 分组标题 / 服务说明 */
.plan-card .price-line { font-size: 15px; }
.plan-card .price-line .big { font-size: 30px; font-weight: 800; }
.plan-card .price-line small { color: var(--text-3); font-size: 13px; }
.plan-sec { font-size: 12px; color: var(--text-3); letter-spacing: 1px; margin-top: 4px; }
.plan-feats.support li::before { content: none; }
.plan-feats.support li i { color: var(--accent); font-style: normal; font-weight: 700; }
.plan-feats.support li.no { opacity: 0.42; }
.plan-feats.support li.no i { color: var(--text-3); }

/* 中性提示条 */
.alert-info { background: var(--accent-soft); border-color: var(--line-mute); color: var(--text-2); }

/* 使用文档 */
.kb-search { display: flex; gap: 10px; }
.kb-search .input { flex: 1; }
.kb-cat { margin-top: 14px; border: 1px solid var(--line-mute); border-radius: var(--r-sm); overflow: hidden; }
.kb-cat > .h {
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
  background: rgba(var(--accent-rgb), 0.05); font-weight: 700; font-size: 14px; cursor: pointer;
}
.kb-cat > .h:hover { background: rgba(var(--accent-rgb), 0.09); }
.kb-cat.fold .item { display: none; }
.kb-cat .item {
  padding: 13px 16px; border-top: 1px solid var(--line-mute); cursor: pointer;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.kb-cat .item:hover { background: rgba(255, 255, 255, 0.03); }
.kb-cat .item .kt { font-size: 14px; transition: color 0.18s; }
.kb-cat .item:hover .kt { color: var(--accent); }
.kb-body { font-size: 14px; line-height: 1.8; color: var(--text-2); word-break: break-word; }
.kb-body h1, .kb-body h2, .kb-body h3, .kb-body h4 { color: var(--text-1); margin: 20px 0 10px; }
.kb-body p { margin: 10px 0; }
.kb-body a { color: var(--accent); }
.kb-body img { max-width: 100%; border-radius: 10px; }
.kb-body pre, .kb-body code {
  background: rgba(0, 0, 0, 0.35); border-radius: 8px; font-family: var(--mono); font-size: 13px;
}
.kb-body pre { padding: 12px 14px; overflow: auto; }
.kb-body code { padding: 2px 6px; }
.kb-body blockquote { margin: 12px 0; padding: 6px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.kb-body table { width: 100%; border-collapse: collapse; }
.kb-body th, .kb-body td { border: 1px solid var(--line-mute); padding: 8px 10px; text-align: left; }

/* ============================================================
   v2.5 新增：顶栏头像 / 支付方式图标 / 二维码
   ============================================================ */
/* 顶栏右上角头像：有 avatar_url 显示图片，没有则显示邮箱首字母；点击进入个人中心 */
button.avatar {
  border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 16px;
  overflow: hidden; transition: transform 0.18s, box-shadow 0.18s;
}
button.avatar:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.28); }
button.avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* 支付方式（订单支付弹窗）：图标取自后台支付插件配置的 icon 字段 */
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line-mute); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.pay-method:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.pay-method.on { border-color: var(--accent); background: var(--accent-soft); }
.pay-method.on .pm-n { color: var(--accent); }
.pay-ico { width: 30px; height: 30px; flex: none; object-fit: contain; border-radius: 8px; }
.pay-ico-txt {
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent);
}
.pm-txt { min-width: 0; }
.pm-n { font-weight: 700; font-size: 14px; }
.pm-f { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 订单金额行 */
.pay-amount .v { color: var(--accent); font-weight: 800; font-size: 16px; }

/* 二维码支付 */
.qr-box {
  margin-top: 16px; padding: 18px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-mute); text-align: center;
}
.qr-h { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.qr-img { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px; display: inline-block; }
.qr-fail .qr-img { display: none; }

/* 提交订单页脚提示 */
.buy-tip { margin-top: 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v2.6 新增：配置订阅页 + 页脚外链
   ============================================================ */

/* 配置订阅卡片 */
.sub-card { padding: 22px; border-radius: var(--r-lg); }
.sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.sub-name { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.sub-status { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid transparent; }
.sub-status.active { color: var(--accent); background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.25); }
.sub-status.expired { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.25); }
.sub-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.meta-item { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-mute); }
.meta-item .k { font-size: 12px; color: var(--text-3); }
.meta-item .v { font-size: 14px; font-weight: 700; word-break: break-all; }
.meta-item .sk-el { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 流量进度条 */
.traffic-bar-wrap { margin-bottom: 20px; }
.traffic-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.traffic-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.traffic-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }

/* 操作按钮 */
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-actions .btn { min-width: 120px; }

/* 套餐详情子面板 */
.plan-detail-body { padding: 16px; }
.plan-detail-body .plan-sec { margin-top: 14px; margin-bottom: 10px; }

/* 页脚外链样式 */
.footer a[href^="http"], .footer a[href^="//"] { cursor: pointer; }
.footer a[href^="http"]:hover, .footer a[href^="//"]:hover { color: var(--accent); }

/* sk-el 点击复制提示 */
.sk-el.copy-hint { position: relative; }

/* ============================================================
   v2.6.3 配置订阅页：左右布局 + 内嵌周期列表
   ============================================================ */
.sub-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.sub-right { position: sticky; top: 20px; }
.sub-form { border-radius: var(--r-lg); overflow: hidden; }
.sub-form-body { padding: 18px; }

/* 周期单选列表 */
.cycle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cycle-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-mute); background: rgba(255,255,255,0.02); cursor: pointer; transition: all .15s ease; }
.cycle-row:hover { background: rgba(255,255,255,0.04); border-color: rgba(var(--accent-rgb),0.2); }
.cycle-row.on { background: rgba(var(--accent-rgb),0.08); border-color: rgba(var(--accent-rgb),0.45); }
.cycle-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-3); display: flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.cycle-row.on .cycle-radio { border-color: var(--accent); }
.cycle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0); transition: all .15s ease; }
.cycle-row.on .cycle-dot { opacity: 1; transform: scale(1); }
.cycle-info { flex: 1; }
.cycle-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.cycle-hint { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cycle-price { font-size: 15px; font-weight: 700; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* 流量重置包行：视觉上单独强调（它最容易「找不到」） */
.cycle-row.is-reset { border-style: dashed; }
.cycle-row.is-reset.on { border-style: solid; }

/* 套餐卡上的流量重置包提示 */
.plan-reset-hint { margin-top: 8px; font-size: 12px; color: var(--accent); }

/* 续费表单合计区 */
.sub-total { padding: 16px; border-radius: var(--r-md); background: rgba(255,255,255,0.03); border: 1px solid var(--line-mute); margin: 18px 0; }
.sub-total .row { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 860px) {
  .sub-layout { grid-template-columns: 1fr; }
  .sub-right { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   v2.6.6 新增：头像编辑 / 在线客服入口 / 订阅二维码
   ============================================================ */
.avatar.avatar-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.avatar.avatar-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 28px; }
/* 图片加载失败 → 自动回退成首字母，不留破图 */
.avatar.fallback > img { display: none; }
.avatar.fallback::after { content: attr(data-n); font-weight: 800; }

.avatar-edit {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 2px 0 18px; margin-bottom: 12px; border-bottom: 1px solid var(--line-mute);
}
.avatar-edit .av-act { flex: 1; min-width: 0; }
.avatar-edit .av-t { font-weight: 700; margin-bottom: 4px; }
.avatar-edit .field { margin-bottom: 0; }

.su-row { display: flex; gap: 10px; align-items: flex-start; }
.su-row .su-meta { flex: 1; min-width: 0; }
.su-row .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 180;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px -12px var(--accent-glow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-glow); }
.support-fab .sf-t { white-space: nowrap; }
.qr-warn { display: none; }
.qr-fail .qr-warn { display: block; }

@media (max-width: 640px) {
  .support-fab { right: 14px; bottom: 14px; padding: 13px; }
  .support-fab .sf-t { display: none; }
  .avatar-edit { gap: 12px; }
  .avatar.avatar-lg { width: 60px; height: 60px; border-radius: 16px; }
}
