/* ===== 充值中心 · 前台样式（超自然行动组 · 暗红恐怖风） ===== */
:root {
  --red: #d81e1e;
  --red-deep: #b0231e;
  --red-dark: #8e1f1c;
  --bg: #f2f3f5;
  --card: #fff;
  --card-2: #f6f6f6;
  --text: #1a1a1a;
  --text-2: #999;
  --text-3: #666;
  --line: #eee;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .022) 0px, rgba(0, 0, 0, .022) 1px, transparent 1px, transparent 12px),
    #eef0f3;
  color: var(--text);
}

/* ===== 主视觉 Banner ===== */
.hero {
  position: relative; height: 150px; overflow: hidden;
  margin: 8px 8px 0;
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(70% 110% at 85% 5%, #c32a24 0%, transparent 60%),
    linear-gradient(180deg, #6d1512 0%, #8e1f1c 50%, #b0231e 100%);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(142, 31, 28, .26);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(40, 5, 4, .5) 100%);
  pointer-events: none;
}
.hero-title {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-title .ht-main {
  font-family: "STKaiti","KaiTi","KaiTi_GB2312","楷体",serif;
  font-size: 34px; font-weight: 700; color: #fff; letter-spacing: 6px;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero-title .ht-line { display: flex; align-items: center; width: 136px; margin-top: 4px; }
.hero-title .ht-line::before, .hero-title .ht-line::after { content: ""; flex: 1; height: 2px; background: rgba(255,255,255,.85); }
.hero-title .ht-sub {
  font-family: "STKaiti","KaiTi","楷体",serif;
  font-size: 15px; color: #fff; padding: 0 8px; letter-spacing: 4px;
}
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particles span {
  position: absolute; background: rgba(0,0,0,.4); border-radius: 1px;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: .85; }
  85% { opacity: .5; }
  100% { transform: translateY(-130px) rotate(320deg); opacity: 0; }
}

/* ===== 主体 ===== */
.page { max-width: 560px; margin: 0 auto; padding-bottom: 20px; }

/* ===== 查询账号 ===== */
.q-title { font-size: 14px; font-weight: 700; margin: 9px 14px 7px; }
.query-bar { display: flex; align-items: center; gap: 8px; margin: 0 12px; }
.q-avatar {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #c32a24, #6d1512); color: #fff;
  font-family: "STKaiti","KaiTi","楷体",serif; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.q-input-wrap { position: relative; flex: 1; min-width: 0; }
.q-input-wrap input {
  width: 100%; height: 36px; padding: 0 32px 0 13px;
  border: 1px solid #e2e2e2; outline: none; background: #fff; border-radius: 8px;
  font-size: 14px; color: var(--text);
}
.q-input-wrap input:focus { border-color: var(--red); }
.q-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: #c8c8c8; color: #fff;
  font-size: 15px; line-height: 18px; text-align: center; cursor: pointer; display: none;
}
.q-btn {
  height: 36px; padding: 0 18px; border: none; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.q-btn:active { opacity: .85; }
.q-result { margin: 5px 12px 0; padding-left: 44px; font-size: 12.5px; color: var(--red); }
.q-result b { font-weight: 700; }

/* ===== 公告条 ===== */
.notice {
  display: flex; align-items: center; gap: 7px;
  margin: 9px 12px 0; padding: 8px 11px; background: var(--card-2); border-radius: 9px;
  font-size: 12px; color: var(--text-3); line-height: 1.45;
  overflow: hidden;
}
.notice .nic { flex-shrink: 0; display: flex; align-items: center; }
.notice-scroll { flex: 1; min-width: 0; overflow: hidden; }
.notice-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 16s linear infinite; }
.notice-track .ntext { display: inline-block; padding-right: 48px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== 区块标题 ===== */
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 11px 12px 0; }
.sec-title .bar { width: 28px; height: 3px; border-radius: 2px; background: var(--red); }

/* ===== 充值档位（3 列网格） ===== */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 9px 12px 0; }
.plan {
  position: relative; padding: 10px 5px 8px; text-align: center; cursor: pointer;
  background: #ffffff; border: 2px solid transparent; border-radius: 11px;
  transition: all .15s ease; -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}
.plan .coin { display: flex; align-items: center; justify-content: center; min-height: 34px; }
.plan .pname { font-size: 13px; font-weight: 700; margin-top: 5px; line-height: 1.25; }
.plan .pgive { font-size: 11px; color: var(--red); margin-top: 2px; min-height: 13px; line-height: 1.1; }
.plan .price {
  margin-top: 6px; width: 100%; padding: 7px 0; border: none; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 13.5px; font-weight: 800; cursor: pointer;
}
.plan .price:active { opacity: .85; }
.plan.on { border-color: var(--red); background: #fff; box-shadow: 0 4px 12px rgba(216, 30, 30, .14); }
.plan.on::after {
  content: "✓"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px;
  border-radius: 50%; line-height: 20px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
}
.empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 24px 0; }

/* ===== 底部 ===== */
.footer { margin-top: 14px; background: #fff; border-top: 1px solid #f0f0f0; }
.f-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; }
.f-brand { display: flex; align-items: baseline; gap: 6px; }
.f-brand .gl-main { font-family: "STKaiti","KaiTi","楷体",serif; font-size: 20px; font-weight: 700; color: #1a1a1a; letter-spacing: 2px; }
.f-brand .pay-tag {
  display: inline-block; background: var(--red); color: #fff; padding: 2px 7px;
  font-size: 10px; font-weight: 700; border-radius: 3px; transform: skewX(-8deg); letter-spacing: 1px;
}
.f-brand .gl-sub { font-family: "STKaiti","KaiTi","楷体",serif; font-size: 11px; color: #1a1a1a; }
.f-actions { display: flex; gap: 10px; }
.fa-ic {
  width: 34px; height: 34px; border-radius: 50%; background: #f5f6f7;
  display: flex; align-items: center; justify-content: center;
}
.f-contact { padding: 0 14px 18px; font-size: 13px; color: var(--red); text-align: center; font-weight: 700; word-break: break-all; }

/* ===== 支付弹层 ===== */
.sheet-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 560px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 16px 20px; transform: translateY(100%); transition: transform .25s ease;
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sh-title { font-size: 16px; font-weight: 800; text-align: center; }
.sh-plans { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.sh-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.pm {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; font-size: 14px;
  transition: all .15s ease;
}
.pm .pm-ic { display: flex; align-items: center; flex-shrink: 0; }
.pm .pm-name { font-weight: 600; }
.pm.on { border-color: var(--red); background: #fff7f7; }
.sh-confirm {
  display: block; width: 100%; margin-top: 18px; padding: 14px; border: none; border-radius: 12px;
  background: var(--red); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; letter-spacing: .1em;
}
.sh-confirm:active { opacity: .88; }
.sh-confirm:disabled { opacity: .55; }
.sh-cancel { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 14px; cursor: pointer; }

/* ===== toast ===== */
#toast {
  position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300;
  max-width: 80vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 登录 / 注册页（暗红调） ===== */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px;
  background: linear-gradient(180deg, #6d1512 0%, #8e1f1c 55%, #5a100e 100%);
}
.auth-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 18px;
  padding: 30px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.auth-card h1 { margin: 0 0 4px; font-size: 24px; color: var(--red-deep); text-align: center; }
.auth-card .sub { text-align: center; font-size: 13px; color: var(--text-2); margin: 0 0 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 15px; outline: none; background: #fafafa; transition: border-color .15s ease;
}
.field input:focus { border-color: var(--red); background: #fff; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 46px; border-radius: 11px; cursor: pointer; border: 1px solid var(--line); flex-shrink: 0; }
.auth-btn {
  width: 100%; margin-top: 8px; padding: 14px; border: none; border-radius: 12px;
  background: var(--red); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .15em; cursor: pointer;
}
.auth-btn:active { opacity: .9; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 18px; }
.auth-foot a { color: var(--red); text-decoration: none; cursor: pointer; }
.auth-err { display: none; color: #fa5151; font-size: 13px; text-align: center; margin-bottom: 12px; }
.auth-err.show { display: block; }
