/* ===== 全局变量：深色专业金融风 ===== */
:root {
  --bg: #0a0e1a;
  --bg-2: #0e1424;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf4;
  --text-dim: #97a2b8;
  --text-faint: #5e6b85;
  --gold: #f5b942;
  --gold-2: #ffd479;
  --blue: #4d8dff;
  --green: #2fd47a;
  --red: #ff5b6e;
  --purple: #a779ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(245, 185, 66, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(77, 141, 255, 0.10), transparent 55%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #e08600);
  display: grid; place-items: center; color: #1a1206; font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 14px rgba(245, 185, 66, .35);
}
.logo .accent { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; color: var(--text-dim); font-size: 14.5px; font-weight: 500;
  transition: .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; transition: .18s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #e6991f); color: #1a1206; box-shadow: 0 6px 20px rgba(245,185,66,.28); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,.09); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero { padding: 80px 0 50px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; margin-bottom: 22px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .g { background: linear-gradient(135deg, var(--gold-2), #e6991f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 20px auto 0; max-width: 640px; color: var(--text-dim); font-size: 17px; }
.hero .cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 统计条 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--gold-2); }
.stat .lbl { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.section-head h2 .g { color: var(--gold); }
.section-head p { color: var(--text-dim); font-size: 14.5px; margin-top: 4px; }
.link-more { color: var(--gold); font-size: 14.5px; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* ===== 评分星级 ===== */
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.stars-num { color: var(--text-faint); font-size: 12px; letter-spacing: 0; margin-left: 2px; }

/* ===== 评论区 ===== */
.comments { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 22px; }
.comments h3 { font-size: 19px; margin-bottom: 16px; }
.comment { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.c-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); margin-bottom: 6px; }
.c-head b { color: var(--text); }
.c-date { margin-left: auto; font-size: 12px; }
.c-body { color: #cdd5e6; font-size: 14px; line-height: 1.7; }
.comment-form { margin-top: 18px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.comment-form textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; font-family: inherit; resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form .row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.comment-form select { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); padding: 9px 12px; border-radius: 10px; outline: none; }

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: .2s; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb {
  height: 120px; border-radius: 12px; margin-bottom: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(245,185,66,.16), rgba(77,141,255,.12));
  font-size: 38px; position: relative; overflow: hidden;
}
.card .tag {
  position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(245,185,66,.18); color: var(--gold-2); border: 1px solid rgba(245,185,66,.35);
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card .desc { color: var(--text-dim); font-size: 13.5px; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.chip { font-size: 11.5px; padding: 3px 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); }
.chip.risk-high { color: var(--red); border-color: rgba(255,91,110,.35); background: rgba(255,91,110,.12); }
.chip.risk-mid { color: var(--gold); border-color: rgba(245,185,66,.35); background: rgba(245,185,66,.12); }
.chip.risk-low { color: var(--green); border-color: rgba(47,212,122,.35); background: rgba(47,212,122,.12); }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-weight: 800; font-size: 17px; color: var(--gold-2); }
.price.free { color: var(--green); }
.card .foot .date { font-size: 12px; color: var(--text-faint); }

/* ===== VIP 区块 ===== */
.vip-box {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(245,185,66,.16), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; padding: 44px;
}
.vip-box h2 { font-size: 30px; font-weight: 800; }
.vip-box .price-big { font-size: 44px; font-weight: 800; color: var(--gold-2); margin: 16px 0 4px; }
.vip-feats { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.vip-feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14.5px; }
.vip-feats li .ic { color: var(--green); font-weight: 800; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.benefit { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.benefit .ic { font-size: 30px; }
.benefit h4 { margin: 10px 0 6px; font-size: 16px; }
.benefit p { color: var(--text-dim); font-size: 13.5px; }

/* ===== 筛选栏 ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; align-items: center; }
.filters select, .filters input {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; outline: none;
}
.filters input { min-width: 220px; }
.filters select:focus, .filters input:focus { border-color: var(--gold); }
/* 下拉项在深色面板上经常糊成一片：强制高对比，并让选中/悬停态明显 */
.filters select option {
  background-color: #ffffff;
  color: #1a1f2e;
  padding: 8px 10px;
  font-weight: 500;
}
.filters select option:checked {
  background-color: #f5b942;
  color: #1a1f2e;
  font-weight: 700;
}
.filters select option:hover {
  background-color: #ffe2a3;
  color: #1a1f2e;
}

/* ===== 详情页 ===== */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.detail-body { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.detail-body h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.detail-body .meta { color: var(--text-dim); font-size: 13.5px; margin-bottom: 20px; }
.detail-body .content { color: #cdd5e6; font-size: 15px; line-height: 1.85; }
.detail-body .content h2 { font-size: 20px; margin: 24px 0 10px; color: var(--text); }
.detail-body .content h3 { font-size: 16px; margin: 18px 0 8px; color: var(--gold-2); }
.detail-body .content ul, .detail-body .content ol { padding-left: 22px; margin: 10px 0; }
.detail-body .content li { margin: 6px 0; }
.detail-body .content code { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; font-size: 13px; color: var(--gold-2); }
.detail-body .content blockquote { border-left: 3px solid var(--gold); padding: 6px 16px; margin: 14px 0; color: var(--text-dim); background: var(--panel-2); border-radius: 0 8px 8px 0; }

/* ===== 详情页新结构（仿 eafxm 风格） ===== */
.detail-page { display: flex; flex-direction: column; gap: 22px; }
.detail-page > .card-block { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 26px 30px; }

/* 详情页风险提示横幅（评论上方，全局，后台「通用文档」维护） */
.risk-tip { border-color: rgba(255,91,110,.40); background: linear-gradient(135deg, rgba(255,91,110,.10), rgba(245,185,66,.07)); }
.risk-tip .risk-tip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.risk-tip .risk-tip-ic { font-size: 18px; line-height: 1; }
.risk-tip .risk-tip-tt { font-size: 16px; font-weight: 800; color: var(--red); letter-spacing: .5px; }
.risk-tip .risk-tip-body { color: var(--text-dim); font-size: 14px; line-height: 1.75; }
.risk-tip .risk-tip-body > :first-child { margin-top: 0; }
.risk-tip .risk-tip-body > :last-child { margin-bottom: 0; }
.risk-tip .risk-tip-body p { margin: 6px 0; }
.risk-tip .risk-tip-body ul, .risk-tip .risk-tip-body ol { margin: 6px 0 6px 20px; }
.risk-tip .risk-tip-body li { margin: 3px 0; }
.risk-tip .risk-tip-body strong { color: var(--text); }
.risk-tip .risk-tip-body code { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; font-size: 13px; color: var(--gold-2); }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-faint); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: var(--text-faint); opacity: .6; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* 头部信息卡 */
.detail-hero { display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: start; }
.detail-hero-icon {
  width: 140px; height: 140px; border-radius: 18px;
  background: linear-gradient(135deg, #1a2336 0%, #0d1424 100%);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.detail-hero-icon::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(59,130,246,.18), transparent 60%);
  pointer-events: none;
}
.detail-hero-icon-emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 2px 8px rgba(59,130,246,.35)); }
.detail-hero-icon-glyph { color: #3b82f6; font-size: 40px; font-weight: 800; letter-spacing: -1px; font-family: 'Segoe UI', system-ui, sans-serif; }
.detail-hero-info { min-width: 0; }
.detail-hero-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.detail-hero-title h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--text); }
.platform-tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(59,130,246,.3);
}
.detail-hero-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; color: #fbbf24; }
.detail-hero-rating .star { color: #fbbf24; }
.detail-hero-rating .num { color: var(--text); }
.detail-hero-rating .count { color: var(--text-faint); font-size: 13px; font-weight: 400; margin-left: 4px; }

/* 头部描述段（无 h2/h3 干扰） */
.hero-desc { color: #cdd5e6; font-size: 14.5px; line-height: 1.85; }
.hero-desc > div { margin: 8px 0; }
.hero-desc p { margin: 8px 0; }
.hero-desc b, .hero-desc strong { color: #fff; font-weight: 600; }

/* 横条标签格式：**核心逻辑**：xxx → 左侧蓝条 + 标签 + 正文 */
.hero-row { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.hero-row-tag {
  flex: 0 0 auto; min-width: 70px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(59,130,246,.12); color: #6b8cff;
  font-size: 13px; font-weight: 600; position: relative;
  margin-top: 2px;
}
.hero-row-tag::before { content: ''; width: 3px; height: 12px; background: #3b82f6; border-radius: 2px; }
.hero-row-body { color: #cdd5e6; font-size: 14.5px; line-height: 1.8; flex: 1 1 auto; min-width: 0; }
.hero-row-body b, .hero-row-body strong { color: #fff; font-weight: 600; }

/* 头部按钮组 */
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.btn-dl-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 6px 20px rgba(59,130,246,.4);
  transition: all .18s;
}
.btn-dl-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(59,130,246,.55); filter: brightness(1.06); }
.btn-dl-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-dl-primary .dl-ic { font-size: 16px; }
.btn-fav {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; cursor: pointer;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
  transition: all .18s;
}
.btn-fav:hover { border-color: #ef4444; color: #fca5a5; }
.btn-fav .fav-ic { font-size: 15px; color: #ef4444; }
.hero-hint { font-size: 12.5px; color: var(--text-faint); margin: 0; margin-left: 4px; width: 100%; }

/* 3 列特性卡 */
.detail-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s;
}
.feat-card:hover { border-color: rgba(59,130,246,.35); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 4px;
}
.feat-icon.feat-safe { background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.04)); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.feat-icon.feat-install { background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(59,130,246,.04)); color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.feat-icon.feat-auth { background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(168,85,247,.04)); color: #c084fc; border: 1px solid rgba(168,85,247,.25); }
.feat-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.feat-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; margin: 0; }
.detail-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.side-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-card .row:last-child { border-bottom: none; }
.side-card .row span:first-child { color: var(--text-dim); }
.side-card .big-price { font-size: 30px; font-weight: 800; color: var(--gold-2); text-align: center; margin: 8px 0 16px; }
.side-card .big-price.free { color: var(--green); }

/* ===== 详情页 4 Tab（功能说明 / 安装教程 / 参数配置 / 常见问题） ===== */
.detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 18px 0 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.d-tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  padding: 12px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.d-tab:hover { color: var(--text); }
.d-tab.active {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}
.d-tab-ic { font-size: 14px; }
.detail-tab-body { min-height: 200px; }
.tab-empty {
  background: var(--panel-2);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 50px 24px;
  text-align: center;
}
.tab-empty-ic { font-size: 38px; margin-bottom: 12px; }
.tab-empty-tt { font-size: 16px; color: var(--text); font-weight: 600; }
.tab-empty-sub { color: var(--text-faint); font-size: 13.5px; margin-top: 6px; }

/* ===== 表单 / 登录 ===== */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 7px; }
.field input { width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14.5px; outline: none; }
.field input:focus { border-color: var(--gold); }
.field select, select.field-input {
  width: 100%;
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 38px 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1l5 5 5-5' stroke='%2397a2b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 8px;
  transition: border-color .15s ease, background-color .15s ease;
}
.field select:hover, select.field-input:hover { border-color: var(--border-strong); background-color: #131a2e; }
.field select:focus, select.field-input:focus { border-color: var(--gold); }
.field select option, select.field-input option {
  background-color: var(--bg-2);
  color: var(--text);
  padding: 6px 10px;
}
.field select option:checked, select.field-input option:checked { background: linear-gradient(0deg, var(--gold) 0%, var(--gold) 100%); color: #0e1424; font-weight: 600; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--text-dim); font-size: 14px; }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* ===== 后台 ===== */
.admin-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--border); }
th { background: var(--panel-2); color: var(--text-dim); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td .mini { font-size: 12.5px; padding: 5px 10px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #11192b; border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; transition: .25s; z-index: 200; pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(47,212,122,.5); }
.toast.err { border-color: rgba(255,91,110,.5); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0 30px; color: var(--text-dim); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; font-size: 13.5px; margin-bottom: 9px; color: var(--text-dim); }
.footer a:hover { color: var(--gold); }
.footer .copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; text-align: center; color: var(--text-faint); }
/* 版权行 + 法律 3 链接 同行：左版权，右 legal（小链接） */
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-meta .copy { margin: 0; padding: 0; border: 0; text-align: left; font-size: 13px; color: var(--text-faint); }
.footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal a { display: inline; font-size: 13px; color: var(--text-dim); margin: 0; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal-sep { color: var(--text-faint); font-size: 12px; }
/* 底部风险提示：横跨整行，居中、深灰、半透明背景 */
.footer-risk { margin-top: 18px; padding: 14px 18px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; color: var(--text-faint); text-align: center; line-height: 1.75; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .vip-box { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; gap: 18px; }
  .detail-hero-icon { width: 110px; height: 110px; }
  .detail-hero-icon-emoji { font-size: 44px; }
  .detail-hero-title h1 { font-size: 26px; }
  .detail-features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav-links { flex-wrap: wrap; gap: 4px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .nav-right { margin-left: auto; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 0 30px; }
}

/* ===== 帮助中心 ===== */
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.help-side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 84px; }
.help-cat { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; margin: 14px 6px 6px; }
.help-cat:first-child { margin-top: 0; }
.help-link { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text-dim); font-size: 14px; cursor: pointer; transition: .15s; }
.help-link:hover { background: var(--panel-2); color: var(--text); }
.help-link.active { background: rgba(245,185,66,.14); color: var(--gold-2); font-weight: 600; }
.help-main { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; min-height: 400px; }
.help-breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 10px; }
.help-title { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.help-body h2 { font-size: 21px; margin: 22px 0 12px; }
.help-body h3 { font-size: 17px; margin: 18px 0 10px; color: var(--gold-2); }
.help-body p { color: var(--text); margin: 10px 0; }
.help-body ul { margin: 10px 0 10px 22px; }
.help-body li { margin: 6px 0; }
.help-body blockquote { border-left: 3px solid var(--gold); padding: 6px 16px; margin: 14px 0; color: var(--text-dim); background: var(--panel-2); border-radius: 0 8px 8px 0; }
.help-body code { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; font-size: 13px; color: var(--gold-2); }
.md-table { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text-dim); white-space: pre; margin: 8px 0; overflow-x: auto; }

/* ===== 后台上传 ===== */
.upload-box { background: var(--panel-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px; }
.upload-box label { font-size: 14px; font-weight: 600; color: var(--text); }
.upload-box input[type=file] { display: block; margin-top: 4px; color: var(--text-dim); }

@media (max-width: 980px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-side { position: static; }
}

/* ===== 列表页右侧栏 ===== */
.list-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 26px;
  align-items: start;
}
.list-main { min-width: 0; }
.list-side { display: grid; gap: 16px; position: sticky; top: 84px; align-self: start; }

.side-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.side-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.side-title-en {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* 平台药丸按钮组 */
.side-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.side-pill {
  flex: 1;
  min-width: 64px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: .15s;
  text-align: center;
}
.side-pill:hover { color: var(--text); border-color: var(--border-strong); }
.side-pill.active {
  background: linear-gradient(135deg, rgba(245,185,66,.18), rgba(245,185,66,.10));
  border-color: rgba(245,185,66,.55);
  color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(245,185,66,.18) inset;
}

/* 特色 / 风险：行式列表 */
.side-list { display: grid; gap: 4px; }
.side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  border-radius: 9px;
  font-size: 14px;
  text-align: left;
  transition: .15s;
  cursor: pointer;
}
.side-row:hover { background: var(--panel-2); color: var(--text); }
.side-row.active {
  background: rgba(245,185,66,.14);
  border-color: rgba(245,185,66,.40);
  color: var(--gold-2);
  font-weight: 600;
}
.side-row-ic {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-size: 14px; flex-shrink: 0;
}
.side-row-sub { color: var(--text-faint); font-size: 12.5px; margin-left: auto; }
.side-row-tag { color: var(--green); font-size: 14px; margin-left: auto; }
.side-row.active .side-row-sub { color: rgba(245,185,66,.65); }
.side-row.active .side-row-tag { color: var(--green); }

/* 客服二维码卡片（白底，深色文字，居中） */
.support-card-wrap { padding: 0; background: transparent; border: none; }
.support-card {
  background: linear-gradient(180deg, rgba(77,141,255,.08), rgba(77,141,255,.02));
  border: 1px solid rgba(77,141,255,.25);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  text-align: center;
}
.support-card-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 14px;
}
.support-ic { font-size: 18px; }
.support-qr-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  display: grid; place-items: center;
  width: 200px; height: 200px;
  margin: 0 auto;          /* 在 support-card 中居中 */
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  box-sizing: border-box;
}
.support-qr-box img { width: 100%; max-width: 172px; aspect-ratio: 1/1; display: block; }
.support-qr-empty {
  color: #999; font-size: 13px; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1/1; max-width: 172px;
}
.support-id-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; font-size: 13.5px;
}
.support-id-label { color: var(--text-dim); }
.support-id {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.support-copy {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  cursor: pointer;
  transition: .15s;
}
.support-copy:hover { color: var(--gold-2); border-color: rgba(245,185,66,.4); }
.support-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .list-layout { grid-template-columns: 1fr; }
  .list-side { position: static; }
}

/* ===== 风险等级行（3 个汉字不会挤进 22px 图标框） ===== */
.side-row-risk { gap: 4px; }
.side-row-risk-label {
  font-weight: 600; color: var(--text); font-size: 14.5px;
  padding-left: 6px;
  flex-shrink: 0;
}
.side-row-risk .side-row-sub { color: var(--text-faint); font-size: 12.5px; margin-left: auto; }
.side-row-risk.active .side-row-risk-label { color: var(--gold-2); }
.side-row-risk.active .side-row-sub { color: rgba(245, 185, 66, .65); }

/* ===== 列表页顶部 Hero 横幅（VIP Banner，后台可配） ===== */
.hero-banner-wrap { margin: 0 0 26px; }
.hero-banner {
  display: block;
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .25s, box-shadow .25s;
}
.hero-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.hero-banner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 193, 7, .18);
  color: #ffce4d;
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255, 193, 7, .4);
  margin-bottom: 14px;
}
.hero-banner-badge::before { content: "👑"; font-size: 13px; }
.hero-banner-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; line-height: 1.25;
  letter-spacing: -.3px; margin: 0 0 8px;
}
.hero-banner-sub {
  font-size: 14.5px; color: rgba(255, 255, 255, .82);
  max-width: 760px; line-height: 1.65;
}
.hero-banner-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 10px 22px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  transition: .18s;
  backdrop-filter: blur(6px);
}
.hero-banner:hover .hero-banner-cta { background: rgba(255, 255, 255, .22); }
.hero-banner-cta span { transition: transform .18s; }
.hero-banner:hover .hero-banner-cta span { transform: translateX(3px); }

.hero-bg-blue {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(77, 141, 255, .35), transparent 60%),
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #2b3aa0 100%);
}
.hero-bg-gold {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(245, 185, 66, .4), transparent 60%),
    linear-gradient(135deg, #f5b942 0%, #d97706 50%, #92400e 100%);
}
.hero-bg-purple {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(167, 121, 255, .4), transparent 60%),
    linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
}
.hero-bg-dark {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(77, 141, 255, .25), transparent 60%),
    linear-gradient(135deg, #0e1424 0%, #131b32 50%, #0a0e1a 100%);
}
.hero-bg-dark .hero-banner-sub { color: var(--text-dim); }

@media (max-width: 640px) {
  .hero-banner { padding: 26px 22px; border-radius: 16px; }
  .hero-banner-title { font-size: 22px; }
}

/* ===== 法律文档模态框（点击 footer 3 链接触发） ===== */
.legal-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .18s ease;
}
.legal-modal-overlay.show { opacity: 1; }
.legal-modal {
  width: 100%; max-width: 720px; max-height: 80vh;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.legal-modal-overlay.show .legal-modal { transform: translateY(0) scale(1); }
.legal-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.legal-modal-title { display: flex; align-items: center; gap: 12px; }
.legal-modal-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff; font-size: 20px;
  box-shadow: 0 6px 18px rgba(59,130,246,.35);
}
.legal-modal-h { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; }
.legal-modal-sub { font-size: 11px; color: #6b8cff; letter-spacing: 2px; margin-top: 2px; }
.legal-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-faint); font-size: 14px; cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
}
.legal-modal-close:hover { color: var(--text); border-color: var(--gold); }
.legal-modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  color: var(--text);
  font-size: 14px; line-height: 1.85;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.legal-modal-body::-webkit-scrollbar { width: 6px; }
.legal-modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.legal-modal-body h1, .legal-modal-body h2, .legal-modal-body h3 {
  margin: 22px 0 12px; font-weight: 700; color: var(--text);
  position: relative; padding-left: 12px;
}
.legal-modal-body h1 { font-size: 18px; }
.legal-modal-body h2 { font-size: 16px; border-left: 3px solid #3b82f6; }
.legal-modal-body h3 { font-size: 14.5px; border-left: 2px solid #3b82f6; color: #cfd6e4; }
.legal-modal-body p { margin: 10px 0; color: #d0d6e2; }
.legal-modal-body strong { color: #fff; font-weight: 600; }
.legal-modal-body ul { margin: 10px 0; padding-left: 22px; }
.legal-modal-body li { margin: 6px 0; }
.legal-modal-body blockquote {
  margin: 12px 0; padding: 8px 14px;
  background: rgba(59,130,246,.08);
  border-left: 3px solid #3b82f6;
  color: #cfd6e4; border-radius: 4px;
}
.legal-modal-loading {
  padding: 60px 20px; text-align: center; color: var(--text-faint);
  font-size: 14px;
}
.legal-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.02);
}
.legal-modal-confirm {
  min-width: 240px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff; font-size: 14.5px; font-weight: 600;
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(59,130,246,.4);
  transition: all .18s;
}
.legal-modal-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(59,130,246,.55);
  filter: brightness(1.05);
}
.legal-modal-confirm:active { transform: translateY(0); }

@media (max-width: 640px) {
  .legal-modal { max-height: 90vh; border-radius: 14px; }
  .legal-modal-header { padding: 14px 16px; }
  .legal-modal-body { padding: 16px 18px; font-size: 13.5px; }
  .legal-modal-confirm { min-width: 100%; }
}

/* ===== 支付方式选择器（VIP 页 + 详情页侧栏共用）===== */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 18px; }
.pay-method {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; transition: .18s;
  font-size: 14px;
}
.pay-method:hover { border-color: var(--border-strong); }
.pay-method.active { border-color: var(--green); background: rgba(47, 212, 122, .08); color: var(--green); font-weight: 700; }
.pay-method .ico { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; font-size: 13px; color: #fff; }
.pay-method .lbl2 { font-size: 13px; }
.pay-method.active .lbl2 { color: var(--green); }
.pay-method[data-m="wechat"] .ico,
.pay-method[data-m="wechat_qr"] .ico { background: #07c160; }
.pay-method[data-m="alipay"] .ico,
.pay-method[data-m="alipay_qr"] .ico { background: #1677ff; }
.pay-method[data-m="usdt_trc20"] .ico,
.pay-method[data-m="usdt_bep20"] .ico,
.pay-method[data-m="usdt_solana"] .ico { background: #26a17b; }
