/* ==========================================================================
   GBWatch 云市场 · 设计系统 v2（高端深色 / 渐变 / 玻璃拟态）
   ========================================================================== */
:root {
  --ink-0: #05070f;        /* 最深底 */
  --ink-1: #0a0f1e;        /* 页面底 */
  --ink-2: #101728;        /* 卡片底 */
  --ink-3: #161f36;        /* 抬升面 */
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .24);
  --txt-1: #f1f5f9;
  --txt-2: #b6c2d6;
  --txt-3: #7787a1;
  --brand: #3b82f6;
  --brand-2: #8b5cf6;      /* 渐变副色 */
  --brand-soft: rgba(59, 130, 246, .12);
  --glow: 0 0 24px rgba(59, 130, 246, .35);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --grad-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.16));
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(2,6,18,.45);
  --shadow-2: 0 2px 6px rgba(0,0,0,.45), 0 18px 50px rgba(2,6,18,.6);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(1000px 520px at -10% 8%, rgba(59, 130, 246, .12), transparent 55%),
    var(--ink-1);
  color: var(--txt-1);
  font-size: 15px; line-height: 1.65;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: #7fb0ff; text-decoration: none; transition: color .15s; }
a:hover { color: #a9c8ff; }
h1, h2, h3 { letter-spacing: .01em; }
button { font-family: inherit; }
::selection { background: rgba(59,130,246,.35); }

/* ===== SVG 图标基础 ===== */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.22em; flex: none; }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; color: #fff; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(2,6,18,.5);
}
.icon-tile .ic { width: 22px; height: 22px; }
.icon-tile.icon-lg { width: 64px; height: 64px; border-radius: 17px; }
.icon-tile.icon-lg .ic { width: 30px; height: 30px; }
.icon-tile.icon-sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-tile.icon-sm .ic { width: 17px; height: 17px; }
.grad-a { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.grad-b { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.grad-c { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.grad-d { background: linear-gradient(135deg, #10b981, #34d399); }
.grad-e { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-f { background: linear-gradient(135deg, #64748b, #94a3b8); }
.grad-brand { background: var(--grad-brand); }

/* ===== 顶部导航（玻璃拟态） ===== */
.site-header {
  position: sticky; top: 0; z-index: 60; height: 62px; padding: 0 26px;
  display: flex; align-items: center; gap: 30px;
  background: rgba(8, 12, 26, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .logo {
  font-size: 17px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; letter-spacing: .02em;
}
.site-header .logo .logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--glow);
}
.site-header .logo .logo-mark .ic { width: 18px; height: 18px; }
.site-header nav { display: flex; gap: 2px; flex: 1; }
.site-header nav a {
  color: var(--txt-2); padding: 7px 15px; border-radius: 9px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
}
.site-header nav a .ic { width: 15px; height: 15px; color: var(--txt-3); transition: color .15s; }
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-header nav a:hover .ic { color: #9db8ff; }
.site-header nav a.active { color: #fff; background: var(--brand-soft); }
.site-header nav a.active .ic { color: #7fb0ff; }
.site-header .user-area { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.site-header .user-area a { color: var(--txt-2); display: inline-flex; align-items: center; gap: 6px; }
.site-header .user-area a:hover { color: #fff; }
.site-header .user-area .uname { color: #9db8ff; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }

/* ===== 页脚（多列，高端） ===== */
.site-footer {
  margin-top: auto; background: var(--ink-0); border-top: 1px solid var(--line);
  padding: 44px 26px 30px;
}
.site-footer .foot-grid {
  max-width: 1120px; margin: 0 auto 26px; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer h4 { font-size: 13px; color: var(--txt-1); margin-bottom: 14px; letter-spacing: .06em; }
.site-footer a, .site-footer p { color: var(--txt-3); font-size: 13px; display: block; padding: 3px 0; }
.site-footer a:hover { color: #a9c8ff; }
.site-footer .foot-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 16px; margin-bottom: 10px; }
.site-footer .foot-logo .logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.site-footer .foot-logo .logo-mark .ic { width: 17px; height: 17px; }
.site-footer .foot-bottom {
  max-width: 1120px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--txt-3); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ===== 通用布局 ===== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 30px 24px 60px; flex: 1; }
.page-title { font-size: 28px; font-weight: 750; letter-spacing: .01em; }
.page-sub { color: var(--txt-3); margin: 8px 0 26px; font-size: 14.5px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: #8fb0ff; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.card .card-body { padding: 22px; }
.muted { color: var(--txt-3); font-size: 13px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  padding: 9px 18px; font-size: 14px; font-weight: 600; transition: all .18s ease; white-space: nowrap;
}
.btn .ic { width: 15px; height: 15px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.35); }
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 6px 22px rgba(59,130,246,.5); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #9db8ff; border-color: rgba(59,130,246,.5); }
.btn-ghost:hover { background: var(--brand-soft); border-color: #3b82f6; }
.btn-plain { background: rgba(255,255,255,.03); color: var(--txt-2); border-color: var(--line-strong); }
.btn-plain:hover { color: #fff; border-color: rgba(148,163,184,.45); }
.btn-danger { background: rgba(248,113,113,.08); color: var(--err); border-color: rgba(248,113,113,.35); }
.btn-danger:hover { background: rgba(248,113,113,.16); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* ===== 徽章（圆点式） ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-official { background: rgba(59,130,246,.14); color: #8fb0ff; border-color: rgba(59,130,246,.3); }
.badge-third { background: rgba(148,163,184,.1); color: #aab8cf; border-color: rgba(148,163,184,.25); }
.badge-ok { background: rgba(52,211,153,.1); color: var(--ok); border-color: rgba(52,211,153,.3); }
.badge-warn { background: rgba(251,191,36,.1); color: var(--warn); border-color: rgba(251,191,36,.3); }
.badge-err { background: rgba(248,113,113,.1); color: var(--err); border-color: rgba(248,113,113,.3); }
.badge-line { background: rgba(255,255,255,.03); color: var(--txt-3); border-color: var(--line-strong); }
.badge-line::before, .badge-official.no-dot::before { display: none; }

/* ===== 表单 ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--txt-2); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: rgba(5,8,18,.6); color: var(--txt-1); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #5a6a85; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.field input[type="checkbox"] { width: auto; accent-color: #3b82f6; margin-right: 6px; }
.form-narrow { max-width: 420px; margin: 44px auto; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ===== 首页 Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 24px 88px; text-align: center;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(820px 400px at 18% 6%, rgba(59,130,246,.22), transparent 58%),
    linear-gradient(180deg, #070b17 0%, #0a0f1e 78%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 68% at 50% 32%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 68% at 50% 32%, #000 30%, transparent 75%);
}
.hero > * { position: relative; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 18px; border-radius: 999px;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.35);
  color: #9db8ff; font-size: 13px; font-weight: 600; letter-spacing: .05em; margin-bottom: 26px;
}
.hero .hero-badge .ic { width: 14px; height: 14px; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.18; letter-spacing: .01em; }
.hero h1 .grad-text {
  background: linear-gradient(100deg, #6ea8ff 0%, #a78bfa 55%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.hero-lead { max-width: 660px; margin: 20px auto 34px; color: var(--txt-2); font-size: 16.5px; line-height: 1.8; }
.hero .hero-cta { display: flex; gap: 14px; justify-content: center; }
.hero .hero-cta .btn { padding: 12px 28px; font-size: 15px; border-radius: 12px; }
.hero-stats {
  display: flex; justify-content: center; gap: 0; margin-top: 58px;
  background: rgba(10,15,30,.55); border: 1px solid var(--line); border-radius: 16px;
  max-width: 720px; margin-left: auto; margin-right: auto; backdrop-filter: blur(8px);
}
.hero-stats > div { flex: 1; padding: 20px 10px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats .num { font-size: 27px; font-weight: 750; color: #fff; }
.hero-stats .num .ic { width: 20px; height: 20px; color: #7fb0ff; margin-right: 4px; }
.hero-stats .lab { font-size: 12.5px; color: var(--txt-3); letter-spacing: .08em; margin-top: 2px; }

/* ===== 区块标题 ===== */
.section-head { margin: 52px 0 26px; }
.section-head h2 { font-size: 23px; font-weight: 750; }
.section-head p { color: var(--txt-3); font-size: 14px; margin-top: 6px; }

/* ===== 特性卡片 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: 26px 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgba(59,130,246,.4); box-shadow: var(--shadow-2); }
.feature .icon-tile { margin-bottom: 16px; }
.feature h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature p { font-size: 13px; color: var(--txt-3); line-height: 1.75; }

/* ===== 商城筛选 ===== */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.filter-bar input[type=text] {
  flex: 1; min-width: 220px; padding: 10px 14px 10px 38px; border: 1px solid var(--line-strong);
  border-radius: 10px; font-size: 14px; color: var(--txt-1); outline: none;
  background: rgba(5,8,18,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%237787a1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 13px center;
  transition: border-color .15s, box-shadow .15s;
}
.filter-bar input[type=text]:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.filter-bar select { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; background: rgba(5,8,18,.6); color: var(--txt-1); outline: none; }
.seg { display: inline-flex; background: rgba(5,8,18,.6); border: 1px solid var(--line-strong); border-radius: 11px; padding: 4px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 7px 17px; font-size: 13px; border-radius: 8px;
  cursor: pointer; color: var(--txt-3); font-weight: 600; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button .ic { width: 13px; height: 13px; }
.seg button.active { background: var(--grad-brand); color: #fff; box-shadow: 0 2px 10px rgba(59,130,246,.4); }

/* ===== 插件卡片 ===== */
.grid-plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.plugin-card {
  display: flex; flex-direction: column; padding: 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plugin-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.45); box-shadow: var(--shadow-2); }
.plugin-card .head { display: flex; gap: 14px; align-items: flex-start; }
.plugin-card h3 { font-size: 16px; letter-spacing: .01em; }
.plugin-card .desc { color: var(--txt-3); font-size: 13px; margin-top: 12px; flex: 1; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plugin-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.price { color: #a5c4ff; font-weight: 750; }
.price small { font-weight: 500; color: var(--txt-3); }
.plugin-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; }
.plugin-card .foot .muted { display: inline-flex; align-items: center; gap: 6px; }
.plugin-card .foot .muted .ic { width: 13px; height: 13px; }
/* 兼容旧 emoji 瓦片类名（若残留） */
.plugin-icon { border-radius: 13px; background: var(--grad-brand-soft); display: inline-flex; align-items: center; justify-content: center; }

/* ===== 详情页 ===== */
.detail-head { display: flex; gap: 20px; padding: 28px; align-items: flex-start; }
.detail-head h1 { font-size: 25px; }
.detail-head .badges { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.detail-head .desc { color: var(--txt-2); max-width: 640px; font-size: 14.5px; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }
.buy-box .amount { font-size: 24px; color: #a5c4ff; font-weight: 750; }
.buy-box select { width: 100%; margin: 12px 0; }
.trust-list { margin-top: 14px; display: grid; gap: 10px; }
.trust-list li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--txt-3); }
.trust-list .ic { width: 15px; height: 15px; color: var(--ok); margin-top: 2px; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
table.plain th { color: var(--txt-3); font-weight: 600; font-size: 12.5px; letter-spacing: .05em; }
table.plain tbody tr { transition: background .12s; }
table.plain tbody tr:hover { background: rgba(59,130,246,.045); }
.empty { text-align: center; color: var(--txt-3); padding: 52px 0; font-size: 14px; }

/* ===== 页签 ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: none; padding: 11px 17px; font-size: 14px; cursor: pointer; color: var(--txt-3);
  border-bottom: 2px solid transparent; font-weight: 600; display: inline-flex; align-items: center; gap: 7px;
  transition: color .15s;
}
.tabs button .ic { width: 15px; height: 15px; }
.tabs button:hover { color: var(--txt-2); }
.tabs button.active { color: #9db8ff; border-bottom-color: #3b82f6; }

/* ===== 统计卡 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 20px; display: flex; gap: 14px; align-items: center; }
.stat-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.stat-card .icon-tile .ic { width: 20px; height: 20px; }
.stat-card .num { font-size: 24px; font-weight: 750; line-height: 1.15; }
.stat-card .lab { font-size: 12.5px; color: var(--txt-3); }

/* ===== 收银台 ===== */
.pay-panel { max-width: 460px; margin: 40px auto; }
.pay-amount { font-size: 38px; font-weight: 800; text-align: center; padding: 24px 0 6px; }
.pay-methods { display: grid; gap: 10px; margin: 20px 0; }
.pay-method {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: all .15s;
}
.pay-method:hover { border-color: rgba(59,130,246,.45); }
.pay-method.sel { border-color: #3b82f6; background: var(--brand-soft); box-shadow: 0 0 0 1px rgba(59,130,246,.4); }
.pay-method .pm-ico {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); color: #9db8ff;
}
.pay-method .pm-ico .ic { width: 18px; height: 18px; }

/* ===== 步骤 / 模态 / 提示 ===== */
.el-steps-v { display: grid; gap: 0; }
.step-row { display: flex; gap: 14px; padding: 12px 0; }
.step-row .no {
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none;
}
.step-row b { display: block; font-size: 14px; }
.step-row .muted { font-size: 12.5px; }
#toast-box { position: fixed; top: 74px; right: 20px; z-index: 999; display: grid; gap: 8px; }
.toast {
  background: var(--ink-3); color: var(--txt-1); border: 1px solid var(--line-strong);
  padding: 11px 17px; border-radius: 11px; font-size: 13px; box-shadow: var(--shadow-2); max-width: 340px;
}
.toast.err { border-color: rgba(248,113,113,.45); color: #fca5a5; }
.toast.ok { border-color: rgba(52,211,153,.45); color: #6ee7b7; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.inline-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; background: rgba(255,255,255,.05); padding: 2px 7px; border-radius: 6px; color: var(--txt-2); }
.text-center { text-align: center; }

/* 兼容旧页面用到的浅色变量名（防个别内联样式失效） */
:root { --brand-dark: #60a5fa; }
