/* =========================================================
   新能源设计平台 · 华为数字能源风格
   纯白底 + 电光蓝主色 + 浅绿能源点缀 + 企业级科技排版
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* 色板 */
  --primary: #2d9bff;          /* 电光蓝（主色） */
  --primary-strong: #1d86e6;
  --primary-deep: #0b3a66;
  --primary-tint: rgba(45,155,255,.12);
  --cyan: #4fc3f7;
  --green: #3ddc97;            /* 浅绿（能源） */
  --green-tint: rgba(61,220,151,.12);
  --warn: #f5a94f;
  --warn-tint: rgba(245,169,79,.12);
  --danger: #ff6b6b;
  --danger-tint: rgba(255,107,107,.12);
  --bg: #ffffff;               /* 纯白背景 */
  --bg2: #f2f6fc;
  --panel: #ffffff;            /* 卡片面板 */
  --panel2: #f7fafd;
  --line: rgba(13,42,84,.10);
  --line2: rgba(13,42,84,.20);
  --text: #16233a;
  --text2: #55657e;
  --text3: #8b99ad;
  --radius: 6px;
  --shadow-card: 0 2px 10px rgba(15,35,70,.08);
  --shadow-modal: 0 12px 40px rgba(15,35,70,.16);
  --shadow-top: 0 2px 14px rgba(15,35,70,.10);
  --glow: 0 0 24px rgba(45,155,255,.20);
  --fs-1: 18px; --fs-2: 16px; --fs-3: 14px; --fs-4: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 480px at 12% -12%, rgba(45,155,255,.10), transparent 62%),
    radial-gradient(900px 520px at 92% -14%, rgba(61,220,151,.06), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(45,155,255,.06), transparent 65%);
  background-attachment: fixed;
  color: var(--text); line-height: 1.65; font-size: 14px;
  min-height: 100vh; letter-spacing: .2px;
}
/* 科技网格底纹 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(45,90,150,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,90,150,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 95% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 0%, #000 25%, transparent 78%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: none; color: var(--primary-strong); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::selection { background: rgba(45,155,255,.3); }

/* 英文小字标签（华为式） */
.en-label {
  font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px; display: block;
}

/* ============ 布局 ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }

/* ============ 顶部导航（置顶 · 深投影） ============ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-top);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text); }
.logo .dot {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: grid; place-items: center; color: #04121f; font-size: 16px;
  box-shadow: var(--glow);
}
.logo .logo-img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 2px 8px rgba(13, 27, 42, .18); background: #fff;
}
.logo small { display: block; font-size: 10px; font-weight: 500; color: var(--text3); letter-spacing: 2px; margin-top: -2px; }
.topbar .links { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.topbar .links a { color: var(--text2); font-weight: 500; transition: color .15s; }
.topbar .links a:hover { color: var(--primary-strong); }
.topbar .links a.active { color: var(--primary-strong); font-weight: 600; }

/* ============ 右上角用户区（开通 VIP 后显示姓名） ============ */
.user-area { display: flex; align-items: center; gap: 8px; margin-left: 22px; font-size: 14px; white-space: nowrap; }
.user-area .user-name { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.user-area .user-avatar {
  position: relative; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(45,155,255,.35), inset 0 0 0 2px rgba(255,255,255,.4);
}
.user-area .user-avatar .crown {
  position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px;
  filter: drop-shadow(0 1px 2px rgba(15,35,70,.35));
}
.user-area .user-name .uname { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 主视觉 Banner ============ */
.hero { position: relative; padding: 88px 0 64px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 720px; height: 480px; background: radial-gradient(ellipse, rgba(45,155,255,.16), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 460px; height: 260px; border: 1px solid rgba(45,155,255,.16); border-radius: 50%;
  animation: pulse-ring 5s ease-in-out infinite; pointer-events: none;
}
@keyframes pulse-ring {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.08); opacity: .55; }
}
.hero .en-label { margin-bottom: 16px; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 2px; line-height: 1.3; position: relative; }
.hero .sub { margin-top: 14px; color: var(--text2); font-size: 16px; position: relative; }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }
.vip-chip {
  display: inline-block; margin-top: 22px;
  background: rgba(45,155,255,.08); border: 1px solid rgba(45,155,255,.28); border-radius: 999px;
  padding: 7px 18px; font-size: 13px; color: var(--text2); position: relative;
}
.vip-chip b { color: var(--cyan); font-size: 20px; font-weight: 700; }
.announce {
  margin-top: 18px; display: inline-block; max-width: 780px; position: relative;
  background: var(--warn-tint); border: 1px solid rgba(245,169,79,.3); color: #9a6a10;
  padding: 8px 18px; border-radius: var(--radius); font-size: 12px;
}

/* ============ 数据条（华为式大数字） ============ */
.stats-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 8px auto 0; max-width: 960px; box-shadow: var(--shadow-card);
}
.stats-band .stat-item { background: var(--panel); padding: 22px 16px; text-align: center; }
.stats-band .num { font-size: 32px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.stats-band .num i { font-style: normal; font-size: 16px; color: var(--cyan); margin-left: 2px; }
.stats-band .lab { font-size: 12px; color: var(--text2); margin-top: 4px; letter-spacing: 1px; }

/* ============ 工具模块（解决方案卡片） ============ */
.section-head { text-align: center; margin: 64px 0 30px; }
.section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.section-head p { color: var(--text2); font-size: 14px; margin-top: 8px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding: 0 0 30px; }
.tool-card {
  position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
  box-shadow: var(--shadow-card); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.tool-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--cyan)); opacity: 0; transition: opacity .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: rgba(45,155,255,.45); box-shadow: 0 10px 30px rgba(45,155,255,.12); }
.tool-card:hover::before { opacity: 1; }
.tool-card .icon {
  font-size: 34px; width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto;
  background: rgba(45,155,255,.08); border: 1px solid rgba(45,155,255,.2); border-radius: 18px;
  padding: 12px;
}
.tool-card .icon img { border-radius: 10px; }
.tool-card .name { font-size: 16px; font-weight: 700; }
.tool-card .desc { color: var(--text2); font-size: 13px; flex: 1; min-height: 40px; }
.tool-card .open { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ============ VIP 会员区（华为式深蓝渐变横幅） ============ */
.vip-banner {
  margin: 40px 0 30px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0b3a66 0%, #0d1626 55%, #0a273f 100%);
  border: 1px solid rgba(45,155,255,.25); border-radius: var(--radius);
  padding: 40px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.vip-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 15% 0%, rgba(45,155,255,.16), transparent 60%); pointer-events: none; }
.vip-banner .vb-left { position: relative; flex: 1; min-width: 260px; }
.vip-banner h3 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.vip-banner h3 { color: #fff; }
.vip-banner p { color: rgba(234,240,250,.75); font-size: 13px; margin-top: 8px; }
.vip-banner .vb-right { position: relative; text-align: center; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius); padding: 10px 20px; font-size: 14px; font-weight: 600;
  transition: all .15s ease; user-select: none; letter-spacing: .3px;
}
.btn:active { opacity: .85; }
.btn-primary { background: var(--primary); color: #04121f; }
.btn-primary:hover { background: var(--cyan); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(45,155,255,.08); }
.btn-danger { background: var(--danger-tint); color: #d64545; border: 1px solid rgba(255,107,107,.3); }
.btn-danger:hover { background: rgba(255,107,107,.18); }
.btn-success { background: var(--green); color: #04211a; }
.btn-success:hover { background: #5ae8ab; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line2); border-radius: var(--radius);
  background: var(--bg2); color: var(--text); outline: none; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45,155,255,.15); }
.select option { background: var(--panel); color: var(--text); }
.textarea { min-height: 84px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ 卡片 / 面板 ============ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-pad { padding: 24px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.card-sub { font-size: 12px; color: var(--text2); margin-bottom: 18px; }
.section-title { font-size: 18px; font-weight: 700; margin: 36px 0 2px; letter-spacing: .5px; }
.section-title::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 8px; border-radius: 1px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.section-sub { color: var(--text2); font-size: 12px; margin-bottom: 18px; }

/* ============ 徽标 ============ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-tint); color: #0f9d68; border: 1px solid rgba(61,220,151,.3); }
.badge-red { background: var(--danger-tint); color: #d64545; border: 1px solid rgba(255,107,107,.3); }
.badge-amber { background: var(--warn-tint); color: #9a6a10; border: 1px solid rgba(245,169,79,.3); }
.badge-gray { background: rgba(148,170,205,.1); color: var(--text3); border: 1px solid rgba(148,170,205,.2); }
.badge-blue { background: rgba(45,155,255,.12); color: #1d7fd4; border: 1px solid rgba(45,155,255,.3); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 9px 12px; background: rgba(148,170,205,.06); color: var(--text2);
  font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(45,155,255,.04); }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ 工具访问页 ============ */
.access-wrap { max-width: 620px; margin: 44px auto; }
.state-card { text-align: center; padding: 40px 30px; position: relative; overflow: hidden; }
.state-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.state-card .big-icon { font-size: 46px; margin-bottom: 12px; }
.state-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.state-card .tip { color: var(--text2); font-size: 14px; margin-bottom: 22px; }
.countdown { font-size: 34px; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; margin: 8px 0 2px; text-shadow: 0 0 18px rgba(79,195,247,.35); }
.state-card .meta { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.tool-brief { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; text-align: left; padding: 14px 16px; background: rgba(148,170,205,.06); border: 1px solid var(--line); border-radius: var(--radius); }
.tool-brief .icon { font-size: 26px; }
.tool-brief .name { font-weight: 700; font-size: 16px; }
.tool-brief .desc { color: var(--text2); font-size: 12px; }

/* ============ VIP 页面 ============ */
.vip-hero { text-align: center; padding: 46px 0 12px; }
.vip-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.vip-hero .sub { color: var(--text2); margin-top: 10px; font-size: 14px; }
.vip-status-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 8px; }
.vip-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 24px 0 60px; }
@media (max-width: 800px) { .vip-layout { grid-template-columns: 1fr; } }
.plan-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border: 1px solid var(--line2); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: all .15s; background: var(--bg2); }
.plan-row:hover { border-color: var(--primary); }
.plan-row.active { border-color: var(--primary); background: rgba(45,155,255,.1); box-shadow: var(--glow); }
.plan-row .p-name { font-weight: 600; font-size: 16px; }
.plan-row .p-price { color: var(--cyan); font-weight: 700; font-size: 18px; }
.plan-row .p-tag { font-size: 12px; color: var(--green); font-weight: 600; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); font-size: 14px; font-weight: 600; color: var(--text2); transition: all .15s; }
.tab.active { background: var(--primary); color: #04121f; border-color: var(--primary); }
.pay-qr { max-width: 210px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--card); }
.pay-qr img { width: 100%; display: block; border-radius: 4px; }
.order-no { background: var(--bg2); border: 1px dashed var(--line2); border-radius: var(--radius); padding: 10px 14px; font-family: Inter, Consolas, Menlo, monospace; font-size: 14px; letter-spacing: 1px; user-select: all; color: var(--cyan); }

/* ============ 弹窗（中度投影） ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(2,6,12,.66); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(4px); }
.modal-mask.show { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); width: 100%; max-width: 500px; max-height: 88vh; overflow: auto; padding: 24px; box-shadow: var(--shadow-modal); }
.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.modal .modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal--wide { max-width: 780px; }

/* ============ 案例文档列表 ============ */
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); margin-bottom: 6px; }
.doc-row.is-new { border-style: dashed; }
.doc-ic { font-size: 18px; flex: 0 0 auto; }
.doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.doc-meta { flex: 0 0 auto; font-size: 12px; color: var(--text3); }

/* ============ Toast ============ */
#toast-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 9px 20px; border-radius: var(--radius); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-modal); animation: toast-in .18s ease; }
.toast.ok { background: var(--green); color: #04211a; }
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); background: rgba(241,246,252,.85); padding: 26px 0; text-align: center; color: var(--text3); font-size: 12px; }
.footer b { color: var(--text2); font-weight: 600; }

/* ============ 空状态 ============ */
.empty { text-align: center; color: var(--text2); padding: 34px 0; font-size: 12px; }
.empty .e-icon { font-size: 34px; margin-bottom: 6px; opacity: .75; }
/* ============ 管理后台（深色企业风） ============ */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; background: rgba(248,250,254,.96); border-right: 1px solid var(--line); flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  backdrop-filter: blur(10px);
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px; font-size: 16px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); }
.sidebar .brand .dot { width: 30px; height: 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--cyan)); display: grid; place-items: center; color: #04121f; font-size: 15px; box-shadow: var(--glow); }
.sidebar nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--radius);
  color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.nav-item:hover { background: rgba(45,155,255,.08); color: var(--primary-strong); }
.nav-item.active { background: linear-gradient(90deg, rgba(45,155,255,.18), rgba(45,155,255,.06)); color: var(--primary-strong); border: 1px solid rgba(45,155,255,.3); font-weight: 600; }
.nav-item .n-count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; }
.sidebar .foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text3); }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  height: 58px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-top);
}
.admin-topbar .page-name { font-size: 18px; font-weight: 700; }
.admin-topbar .page-name::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(61,220,151,.8); margin-right: 9px; vertical-align: middle; }
.admin-topbar a { color: var(--text2); }
.admin-topbar a:hover { color: var(--cyan); }
.admin-body { padding: 22px; max-width: 1320px; }
.alert-bar { background: var(--danger-tint); border: 1px solid rgba(255,107,107,.3); color: #d64545; border-radius: var(--radius); padding: 11px 16px; margin-bottom: 18px; font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--primary), var(--cyan)); opacity: .8; }
.stat-card .s-label { font-size: 12px; color: var(--text2); font-weight: 600; }
.stat-card .s-value { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-card .s-extra { font-size: 12px; color: var(--text3); margin-top: 2px; }
.stat-card.hot .s-value { color: var(--cyan); }
.stat-card.warn .s-value { color: var(--warn); }
.stat-card.danger .s-value { color: var(--danger); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { font-size: 16px; font-weight: 700; }
.panel-body { padding: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input, .filters .select { width: auto; }
.search-input { min-width: 220px; }

.remind-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.remind-row:last-child { border-bottom: none; }
.remind-row .r-name { font-weight: 600; min-width: 84px; font-size: 14px; }
.remind-row .r-meta { color: var(--text2); font-size: 12px; }
.remind-row .spacer { flex: 1; }
.code-chip { font-family: Inter, Consolas, Menlo, monospace; font-size: 13px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 5px 10px; user-select: all; color: var(--cyan); letter-spacing: .5px; }
.code-chip.used { opacity: .4; text-decoration: line-through; }

.month-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.month-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--bg2); }
.month-card .m { font-size: 12px; font-weight: 600; color: var(--text2); }
.month-card .a { font-size: 18px; font-weight: 700; color: var(--cyan); }
.month-card .c { font-size: 12px; color: var(--text3); }

.activity-line { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; }
.activity-line:last-child { border-bottom: none; }
.activity-line .at { color: var(--text3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.toggle { position: relative; width: 38px; height: 21px; border-radius: 999px; background: #cdd7e3; transition: background .15s; cursor: pointer; }
.toggle.on { background: var(--green); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.toggle.on::after { left: 19px; }

/* ============ 登录页 ============ */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.login-page::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .3; background: radial-gradient(circle, rgba(45,155,255,.5), transparent 65%); top: -160px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.login-card { position: relative; width: 100%; max-width: 384px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-modal); padding: 32px; }
.login-card .logo-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.login-card .logo-row .dot { width: 44px; height: 44px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--cyan)); display: grid; place-items: center; color: #04121f; font-size: 22px; box-shadow: var(--glow); }
.login-card h1 { font-size: 18px; font-weight: 700; text-align: center; letter-spacing: .5px; }
.login-card .sub { text-align: center; color: var(--text2); font-size: 12px; margin: 4px 0 22px; }
.login-hint { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text3); }

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3cfdd; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a9b9cb; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; }
  .sidebar nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .sidebar .foot { display: none; }
  .nav-item { white-space: nowrap; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 30px; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; row-gap: 6px; }
  .topbar .links { gap: 14px; }
  .user-area { margin-left: 0; }
}

/* =========================================================
   三栏布局（左中右）· 板块内容页
   ========================================================= */
.layout-3col {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 272px;
  gap: 20px;
  align-items: start;
  padding: 30px 0 64px;
}
.layout-3col > .col { min-width: 0; }
.col-left, .col-right {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 16px;
}

/* 侧栏卡片 */
.side-card {
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 35, 70, .06);
  padding: 15px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.side-card .side-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text);
  padding: 0 4px 10px; letter-spacing: .5px;
}
.side-card .side-title .ico {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px;
  background: var(--primary-tint); color: var(--primary-strong);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--text2); font-size: 13px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}
.side-nav a:hover { background: var(--bg2); color: var(--primary-strong); }
.side-nav a.active {
  background: rgba(45, 155, 255, .10); color: var(--primary-strong);
  border-color: rgba(45, 155, 255, .22); font-weight: 600;
}
.side-nav a .n-ico { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.side-nav a .n-num {
  margin-left: auto; font-size: 11px; color: var(--text3);
  background: var(--bg2); border-radius: 999px; padding: 1px 8px; min-width: 18px; text-align: center;
}
.side-nav a.active .n-num { background: rgba(45, 155, 255, .14); color: var(--primary-strong); }
.side-divider { height: 1px; background: var(--line); margin: 10px 4px; }

/* 右侧信息列表 */
.side-list { display: flex; flex-direction: column; }
.side-list .item {
  display: flex; gap: 10px; padding: 9px 4px;
  border-bottom: 1px dashed var(--line); align-items: flex-start;
}
.side-list .item:last-child { border-bottom: none; }
.side-list .item .i-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; margin-top: 1px; }
.side-list .item .i-main { font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.4; }
.side-list .item .i-sub { font-size: 12px; color: var(--text3); margin-top: 2px; line-height: 1.5; word-break: break-all; }
.side-list a.item { text-decoration: none; }
.side-list a.item:hover .i-main { color: var(--primary-strong); }

/* VIP 侧栏卡 */
.side-vip {
  background: linear-gradient(135deg, rgba(45, 155, 255, .10), rgba(61, 220, 151, .08));
  border: 1px solid rgba(45, 155, 255, .18);
}
.side-vip .vip-state { text-align: center; padding: 4px 0 2px; }
.side-vip .vip-state .vip-ico { font-size: 26px; }
.side-vip .vip-state .vip-name { font-size: 14px; font-weight: 700; margin: 6px 0 4px; }
.side-vip .vip-state .vip-tip { font-size: 12px; color: var(--text2); line-height: 1.6; }
.side-vip .vip-state .vip-tip b { color: var(--primary-strong); }

/* 中心列 */
.col-center .section-head { text-align: left; margin: 0 0 16px; }
.col-center .section-head h2 { font-size: 20px; }
.col-center .section-head p { margin-top: 6px; }
.col-center .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 0; }

/* 工具中心 · 搜索栏 */
.center-tools-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.center-tools-bar .search-input { min-width: 240px; flex: 1; }
.center-tools-bar .bar-count { font-size: 12px; color: var(--text3); white-space: nowrap; }

/* VIP 页中心列 */
.col-center .vip-layout { grid-template-columns: 1fr; padding: 0; gap: 18px; }
.col-center .vip-layout .card { border-radius: 14px; }

/* 工具入口页 */
.access-wrap { max-width: 720px; margin: 0 auto; padding: 44px 0 60px; }
.access-wrap .state-card { border-radius: 16px; }

/* 响应式 */
@media (max-width: 1080px) {
  .layout-3col { grid-template-columns: 196px minmax(0, 1fr); }
  .col-right {
    position: static; grid-column: 1 / -1;
    flex-direction: row; flex-wrap: wrap;
  }
  .col-right .side-card { flex: 1 1 220px; }
}
@media (max-width: 760px) {
  .layout-3col { grid-template-columns: 1fr; }
  .col-left { position: static; }
  .col-center .tool-grid { grid-template-columns: 1fr; }
}
/* ============ 工具 Logo ============ */
.tool-card .icon img, .tool-brief .icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.side-nav a .n-ico img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; vertical-align: -4px; }
.t-logo-cell { display: inline-flex; align-items: center; }
.t-logo-sm { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; margin-right: 6px; vertical-align: -6px; }
.logo-pick { display: flex; align-items: center; gap: 12px; }
.logo-preview { width: 64px; height: 64px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; font-size: 30px; background: var(--bg2); overflow: hidden; flex-shrink: 0; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }