* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#0b0f1a; --bg2:#111827; --card:#151c2e; --border:#232c42;
  --text:#e5e9f2; --muted:#8a94ad; --accent:#22d3ee; --accent2:#8b5cf6;
  --ok:#34d399; --warn:#fbbf24; --err:#f87171;
}
body { background:var(--bg); color:var(--text); font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; min-height:100vh; }
.container { max-width:1100px; margin:0 auto; padding:0 20px; }
.muted { color:var(--muted); font-size:13px; }
.note { margin-top:8px; }
.center { text-align:center; }

/* 顶栏 */
.topbar { background:rgba(13,18,32,.92); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:50; backdrop-filter:blur(8px); }
.topbar-inner { display:flex; align-items:center; gap:28px; height:60px; }
.logo { display:flex; align-items:center; gap:8px; cursor:pointer; user-select:none; }
.logo-icon { font-size:22px; }
.logo-text { font-size:19px; font-weight:700; background:linear-gradient(90deg,var(--accent),var(--accent2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.nav { display:flex; gap:6px; flex:1; }
.nav-link { color:var(--muted); text-decoration:none; padding:8px 14px; border-radius:8px; font-size:14px; cursor:pointer; transition:.2s; }
.nav-link:hover { color:var(--text); background:rgba(255,255,255,.05); }
.nav-link.active { color:var(--accent); background:rgba(34,211,238,.1); }
.user-area { display:flex; align-items:center; gap:10px; }
.balance-pill { background:rgba(52,211,153,.12); color:var(--ok); border:1px solid rgba(52,211,153,.3); padding:5px 12px; border-radius:999px; font-size:13px; }
.user-name { font-size:14px; color:var(--text); }

/* 按钮 */
.btn { padding:8px 18px; border-radius:8px; border:1px solid transparent; font-size:14px; cursor:pointer; transition:.2s; font-family:inherit; }
.btn-primary { background:linear-gradient(90deg,var(--accent),var(--accent2)); color:#fff; font-weight:600; }
.btn-primary:hover { filter:brightness(1.15); transform:translateY(-1px); }
.btn-ghost { background:transparent; color:var(--muted); border-color:var(--border); }
.btn-ghost:hover { color:var(--text); border-color:var(--muted); }
.btn-block { width:100%; margin-top:12px; }
.btn-sm { padding:4px 10px; font-size:12px; border-radius:6px; }

/* Hero + 商品 */
.hero { text-align:center; padding:56px 0 36px; }
.hero h1 { font-size:32px; background:linear-gradient(90deg,#fff,var(--accent)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:10px; }
.hero p { color:var(--muted); font-size:15px; }
.section-title { font-size:20px; margin:24px 0 16px; }
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; padding-bottom:40px; }
.product-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:22px; transition:.25s; cursor:pointer; position:relative; overflow:hidden; }
.product-card:hover { transform:translateY(-4px); border-color:var(--accent); box-shadow:0 8px 28px rgba(34,211,238,.15); }
.product-card .p-icon { font-size:34px; margin-bottom:12px; }
.product-card .p-name { font-size:17px; font-weight:600; margin-bottom:6px; }
.product-card .p-desc { color:var(--muted); font-size:12.5px; min-height:34px; line-height:1.5; }
.product-card .p-bottom { display:flex; justify-content:space-between; align-items:center; margin-top:14px; }
.product-card .p-price { color:var(--accent); font-size:20px; font-weight:700; }
.product-card .p-price small { font-size:12px; color:var(--muted); font-weight:400; }
.p-tag { position:absolute; top:12px; right:-26px; background:linear-gradient(90deg,var(--accent),var(--accent2)); color:#fff; font-size:11px; padding:3px 28px; transform:rotate(45deg); }

/* 订单列表 */
.order-list { display:flex; flex-direction:column; gap:12px; padding-bottom:40px; }
.order-card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:16px 18px; display:flex; align-items:center; gap:16px; cursor:pointer; transition:.2s; }
.order-card:hover { border-color:var(--accent); }
.order-card .oc-name { font-weight:600; font-size:15px; }
.order-card .oc-meta { color:var(--muted); font-size:12px; margin-top:4px; }
.order-card .oc-amount { margin-left:auto; font-size:17px; font-weight:700; color:var(--accent); }
.status-pill { padding:3px 10px; border-radius:999px; font-size:12px; white-space:nowrap; }
.st-pending { background:rgba(251,191,36,.12); color:var(--warn); }
.st-processing { background:rgba(34,211,238,.12); color:var(--accent); }
.st-completed { background:rgba(52,211,153,.12); color:var(--ok); }
.st-cancelled { background:rgba(248,113,113,.12); color:var(--err); }
.code-box { background:#0a0e18; border:1px dashed var(--accent); border-radius:8px; padding:10px 14px; font-family:Consolas,monospace; color:var(--accent); font-size:15px; letter-spacing:1px; word-break:break-all; }

/* 充值 */
.recharge-box { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:26px; max-width:520px; }
.recharge-presets { display:flex; gap:10px; margin:16px 0; flex-wrap:wrap; }
.preset { padding:10px 22px; border-radius:10px; border:1px solid var(--border); background:var(--bg2); color:var(--text); cursor:pointer; font-size:14px; transition:.2s; }
.preset:hover, .preset.active { border-color:var(--accent); color:var(--accent); }
.recharge-custom { display:flex; gap:10px; }
.recharge-custom input { flex:1; }
.history { margin-top:22px; border-top:1px solid var(--border); padding-top:14px; }
.history-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--border); font-size:13px; color:var(--muted); }

/* ===== 充值页改版 2026-10-15 ===== */
.rc-card { background:linear-gradient(180deg, rgba(34,211,238,.06), transparent 120px), var(--card); border:1px solid var(--border); border-radius:18px; padding:22px; max-width:520px; }
/* 充值活动条 2026-10-18 */
.rc-bonus { margin-bottom:16px; padding:11px 13px; border-radius:12px; font-size:12.5px; line-height:1.65;
  background:linear-gradient(135deg, rgba(251,191,36,.16), rgba(239,68,68,.10));
  border:1px solid rgba(251,191,36,.34); color:#fbbf24; }
.rc-bonus b { color:#fde68a; }
.rc-amt .rc-bonus-tag { position:absolute; top:-9px; right:-6px; font-size:10px; font-weight:600;
  background:linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; padding:2px 7px; border-radius:20px; }
.rc-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.rc-title { font-size:15px; font-weight:600; }
.rc-rate { font-size:12px; color:var(--muted); background:var(--bg2); padding:3px 9px; border-radius:20px; border:1px solid var(--border); white-space:nowrap; }
.rc-amounts { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.rc-amt { position:relative; padding:16px 6px 14px; border-radius:14px; border:1.5px solid var(--border); background:var(--bg2); color:var(--text); cursor:pointer; transition:.18s; display:flex; flex-direction:column; align-items:center; gap:3px; font-family:inherit; }
.rc-amt b { font-size:22px; font-weight:700; line-height:1; }
.rc-amt span { font-size:11.5px; color:var(--muted); }
.rc-amt:hover { border-color:var(--accent); transform:translateY(-2px); }
.rc-amt.active { border-color:var(--accent); background:linear-gradient(160deg, rgba(34,211,238,.20), rgba(34,211,238,.05)); box-shadow:0 6px 20px rgba(34,211,238,.18); }
.rc-amt.active b, .rc-amt.active span { color:var(--accent); }
.rc-hot { position:absolute; top:-9px; right:-5px; font-size:10px; font-style:normal; background:linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; padding:2px 7px; border-radius:20px; font-weight:600; }
.rc-custom { display:flex; align-items:center; gap:8px; margin-top:12px; padding:0 14px; height:48px; border-radius:14px; border:1.5px solid var(--border); background:var(--bg2); transition:.18s; }
.rc-custom:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px rgba(34,211,238,.12); }
.rc-yen { color:var(--muted); font-size:16px; }
.rc-custom input { flex:1; border:0; background:transparent; outline:none; font-size:16px; color:var(--text); margin:0; height:100%; padding:0; -moz-appearance:textfield; }
.rc-custom input::-webkit-outer-spin-button, .rc-custom input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.rc-pay { margin-top:20px; }
.rc-pay-title { font-size:13px; color:var(--muted); margin-bottom:10px; }
.rc-ways { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rc-way { position:relative; display:flex; align-items:center; gap:8px; padding:13px 12px; border-radius:14px; border:1.5px solid var(--border); background:var(--bg2); cursor:pointer; transition:.18s; }
.rc-way input { position:absolute; opacity:0; width:0; height:0; margin:0; }
.rc-way-ico { width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; background:rgba(255,255,255,.07); flex-shrink:0; }
.rc-way-name { font-size:13.5px; }
.rc-way-check { margin-left:auto; font-size:12px; opacity:0; color:var(--accent); transition:.18s; }
.rc-way.active { border-color:var(--accent); background:linear-gradient(160deg, rgba(34,211,238,.15), rgba(34,211,238,.04)); }
.rc-way.active .rc-way-check { opacity:1; }
.rc-note { font-size:12px; color:var(--muted); margin:12px 0 0; line-height:1.6; min-height:16px; }
.rc-submit { width:100%; margin-top:16px; height:52px; border-radius:14px; border:0; cursor:pointer; font-family:inherit; font-size:16px; font-weight:700; color:#04222b; background:linear-gradient(135deg,#22d3ee,#0ea5e9); display:flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 8px 24px rgba(14,165,233,.32); transition:.18s; }
.rc-submit:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(14,165,233,.42); }
.rc-submit:active { transform:translateY(0) scale(.99); }
.rc-submit-arrow { font-size:18px; }
.rc-tip { font-size:12px; color:var(--muted); text-align:center; margin:14px 0 0; line-height:1.6; }
@media (max-width:430px) {
  .rc-card { padding:16px 14px; border-radius:16px; }
  .rc-amt { padding:14px 4px 12px; }
  .rc-amt b { font-size:19px; }
  .rc-way { padding:11px 10px; gap:6px; }
  .rc-way-name { font-size:12.5px; }
  .rc-submit { height:48px; font-size:15px; }
}

/* 表单 */
input, select { background:var(--bg2); border:1px solid var(--border); color:var(--text); padding:10px 14px; border-radius:8px; font-size:14px; outline:none; width:100%; margin:6px 0 12px; font-family:inherit; }
input:focus, select:focus { border-color:var(--accent); }
label { font-size:13px; color:var(--muted); display:block; }
.auth-error { color:var(--err); font-size:13px; min-height:18px; margin-top:4px; }
.auth-switch { text-align:center; margin-top:10px; font-size:13px; color:var(--muted); cursor:pointer; }
.auth-switch b { color:var(--accent); font-weight:600; }

/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index:100; backdrop-filter:blur(3px); }
.modal { background:var(--card); border:1px solid var(--border); border-radius:16px; width:420px; max-width:92vw; max-height:86vh; overflow-y:auto; }
.modal-small { width:360px; }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--border); }
.modal-head h3 { font-size:16px; }
.modal-close { background:none; border:none; color:var(--muted); font-size:22px; cursor:pointer; line-height:1; }
.modal-body { padding:20px; }
.order-product { background:var(--bg2); border-radius:10px; padding:14px; margin-bottom:14px; }
.order-product .op-name { font-weight:700; font-size:16px; }
.order-product .op-price { color:var(--accent); font-size:20px; font-weight:700; margin-top:6px; }
.pay-methods { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0; }
.pay-method { border:1px solid var(--border); border-radius:10px; padding:12px 6px; text-align:center; font-size:13px; cursor:pointer; transition:.2s; color:var(--muted); }
.pay-method.selected { border-color:var(--accent); color:var(--accent); background:rgba(34,211,238,.08); }
.pay-method input { display:none; }
.pay-status { font-size:44px; margin-bottom:10px; }
.detail-row { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px dashed var(--border); font-size:14px; }
.detail-row span:first-child { color:var(--muted); }

/* 管理后台 */
.admin-body { background:var(--bg); }
.admin-topbar .logo-text { -webkit-text-fill-color:unset; background:none; color:var(--accent); }
.admin-wrap { display:flex; min-height:calc(100vh - 60px); }
.admin-side { width:200px; border-right:1px solid var(--border); padding:20px 10px; display:flex; flex-direction:column; gap:4px; flex-shrink:0; }
.side-link { padding:11px 16px; border-radius:9px; color:var(--muted); font-size:14px; cursor:pointer; text-decoration:none; transition:.2s; }
.side-link:hover { color:var(--text); background:rgba(255,255,255,.05); }
.side-link.active { color:var(--accent); background:rgba(34,211,238,.1); }
.admin-main { flex:1; min-width:0; padding:24px 28px; overflow-x:auto; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-bottom:24px; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px; }
.stat-card .st-num { font-size:26px; font-weight:700; color:var(--accent); }
.stat-card .st-label { color:var(--muted); font-size:13px; margin-top:4px; }
.table { width:100%; border-collapse:collapse; background:var(--card); border-radius:12px; overflow:hidden; margin-top:14px; }
.table th { background:var(--bg2); color:var(--muted); font-size:12.5px; text-align:left; padding:11px 14px; border-bottom:1px solid var(--border); white-space:nowrap; }
.table td { padding:11px 14px; font-size:13.5px; border-bottom:1px solid rgba(35,44,66,.5); }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:rgba(255,255,255,.02); }
.filter-row { display:flex; gap:10px; margin-top:14px; }
.filter-row select { width:140px; margin:0; }
.filter-row input { flex:1; margin:0; }
.form-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:22px; max-width:520px; }
.form-card input, .form-card select { margin:4px 0 14px; }
.footer { border-top:1px solid var(--border); padding:18px 0; text-align:center; color:var(--muted); font-size:13px; }
/* ===== 移动端适配 ===== */
@media (max-width:900px) {
  .container { padding: 0 12px; }
  .topbar-inner { gap:10px; height:auto; min-height:52px; padding:8px 0; flex-wrap:wrap; }
  .logo-text { font-size:17px; }
  .logo-icon { font-size:19px; }
  .user-area { margin-left:auto; gap:6px; }
  .btn { padding:7px 13px; font-size:13px; }
  .balance-pill { font-size:12px; padding:4px 9px; }
  .hero { padding:30px 0 22px; }
  .hero h1 { font-size:23px; }
  .hero p { font-size:13px; }
  .section-title { font-size:17px; margin:18px 0 12px; }
  .footer { font-size:12px; }
  /* 导航改横向滑动条 */
  .nav { flex:0 0 100%; order:3; display:flex; overflow-x:auto; gap:4px; -webkit-overflow-scrolling:touch; padding-bottom:2px; }
  .nav::-webkit-scrollbar { display:none; }
  .nav-link { padding:7px 12px; font-size:13px; white-space:nowrap; flex-shrink:0; }
  /* 商品两列 */
  .product-grid { grid-template-columns:repeat(2,1fr); gap:10px; padding-bottom:24px; }
  .product-card { padding:14px; }
  .product-card .p-name { font-size:15px; }
  .product-card .p-desc { font-size:11.5px; min-height:30px; }
  .product-card .p-price { font-size:17px; }
  /* 订单卡片 */
  .order-card { flex-wrap:wrap; gap:8px 12px; padding:12px 14px; }
  .order-card .oc-amount { margin-left:auto; font-size:15px; }
  .status-pill { font-size:11px; padding:3px 8px; }
  /* 弹窗全屏化 */
  .modal { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; border:none; display:flex; flex-direction:column; }
  .modal-body { overflow-y:auto; flex:1; }
  .modal-small { width:100vw; }
  .modal-head { padding:14px 16px; }
  .recharge-box { padding:18px; }
  .order-query { padding:16px; margin-bottom:22px; }
  /* 后台侧栏改顶部横向 */
  .admin-wrap { flex-direction:column; }
  .admin-side { width:100%; flex-direction:row; overflow-x:auto; padding:8px 6px; border-right:none; border-bottom:1px solid var(--border); -webkit-overflow-scrolling:touch; }
  .admin-side::-webkit-scrollbar { display:none; }
  .side-link { white-space:nowrap; font-size:13px; padding:8px 12px; flex-shrink:0; }
  .admin-main { padding:16px 12px; }
  .stat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  /* 表格横向滚动 */
  .table { min-width:640px; }
  .admin-main { overflow-x:auto; }
  .filter-row { flex-wrap:wrap; }
  .filter-row select { width:100%; }
  .filter-row input { flex:1; min-width:160px; }
  .form-card { padding:16px; }
}
@media (max-width:480px) {
  .hero h1 { font-size:20px; }
  .product-card .p-desc { min-height:0; }
  .recharge-presets { gap:8px; }
  .preset { padding:8px 16px; font-size:13px; }
  .pay-methods { gap:8px; }
  .code-box { font-size:13px; }
  .captcha-row img { height:38px; }
}
/* 验证码 */
.captcha-row { display:flex; gap:10px; align-items:center; margin:6px 0 12px; }
.captcha-row input { flex:1; margin:0; }
.captcha-row img { height:40px; border-radius:8px; border:1px solid var(--border); cursor:pointer; background:var(--bg2); }
/* 订单查询 */
.order-query { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:20px; max-width:560px; margin:0 auto 34px; }
.order-query h3 { margin-bottom:4px; font-size:16px; }
.query-row { display:flex; gap:10px; margin-top:12px; }
.query-row input { flex:1; margin:0; }

.plat-checkbox-row { display:flex; gap:14px; flex-wrap:wrap; margin:4px 0 14px; }
.plat-cb { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--text); cursor:pointer; }
.plat-cb input { width:auto; margin:0; }

.captcha-text { display:inline-flex; align-items:center; justify-content:center; min-width:110px; height:40px; border:1px solid var(--border); border-radius:8px; background:var(--bg2); color:var(--accent); font-size:17px; font-weight:700; cursor:pointer; user-select:none; letter-spacing:1px; padding:0 10px; }

.no-code-tag { font-size:12px; color:var(--muted); background:rgba(255,255,255,.06); padding:5px 10px; border-radius:6px; border:1px dashed var(--border); }
.card-disabled { opacity:.6; cursor:not-allowed; }
.card-disabled:hover { transform:none; box-shadow:none; border-color:var(--border); }

.toast { position:fixed; top:20px; left:50%; transform:translateX(-50%); background:#fff; color:#111; padding:12px 24px; border-radius:10px; box-shadow:0 6px 24px rgba(0,0,0,.35); font-size:14px; z-index:9999; animation:toastIn .25s ease; max-width:90vw; text-align:center; }
.toast.err { background:#ff5252; color:#fff; }
.toast.ok { background:#34d399; color:#111; }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(-12px);} to { opacity:1; transform:translateX(-50%) translateY(0);} }

/* 游戏切换 Tabs */
.game-switch {
  display: flex;
  gap: 12px;
  margin: 20px 0 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.game-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-tab:hover {
  color: var(--text);
  background: var(--bg2);
}
.game-tab.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(230,57,70,.3);
}
.empty-game {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin: 10px 0 30px;
}
.empty-game .icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty-game h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

/* compact slider */
.tac-box { transform:scale(.82); transform-origin:left top; width:122%; margin-bottom:-42px; }

/* ===== 售后客服联系方式 ===== */
.support-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(139,92,246,.10));
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 16px 20px; margin: 2px 0 24px;
}
.support-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.support-ico { font-size: 26px; line-height: 1; }
.support-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.support-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.support-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.support-wx-label { font-size: 12.5px; color: var(--muted); }
.support-wx {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); background: var(--bg2);
  border: 1px dashed var(--accent); border-radius: 8px;
  padding: 7px 14px; user-select: all; -webkit-user-select: all;
}
.footer-support { margin-top: 6px; font-size: 12.5px; }
.footer-wx {
  color: var(--accent); font-family: ui-monospace, Consolas, monospace;
  letter-spacing: .5px; user-select: all;
}
@media (max-width: 720px) {
  .support-card { padding: 14px 15px; gap: 12px; }
  .support-ico { font-size: 22px; }
  .support-title { font-size: 14px; }
  .support-sub { font-size: 12px; }
  .support-right { width: 100%; justify-content: space-between; }
  .support-wx { font-size: 16px; padding: 6px 11px; }
}

/* ===== 管理后台：表格搜索栏 ===== */
.admin-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.admin-search input[type="text"] {
  flex: 1; min-width: 190px; max-width: 330px;
  padding: 9px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg2); color: var(--text);
  font-size: 14px; outline: none; transition: border-color .2s;
}
.admin-search input[type="text"]:focus { border-color: var(--accent); }
.admin-search input[type="text"]::placeholder { color: var(--muted); }
#userSearchHint { font-size: 12.5px; }
@media (max-width: 720px) {
  .admin-search input[type="text"] { max-width: none; width: 100%; }
}

/* ===== 安卓/移动端补充适配 2026-09-21 ===== */
@media (max-width:720px) {
  .container { padding: 0 14px; }
  .hero { padding: 24px 0 18px; }
  .hero h1 { font-size: 21px; line-height: 1.35; }
  .hero p { font-size: 12.5px; line-height: 1.6; }
  /* 支付方式/规格: 桌面三列在窄屏挤 -> 单列整行 */
  .pay-methods { grid-template-columns: 1fr; gap: 8px; }
  .pay-method { width: 100%; }
  .spec-opt { display: block; width: 100%; line-height: 1.55; word-break: break-word; white-space: normal; }
  /* 弹窗: 窄屏全宽 */
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: 14px; }
  .modal-small { width: 100vw; }
  .modal-head { padding: 13px 15px; }
  .modal-body { padding: 16px 14px; }
  .recharge-box { padding: 16px 14px; max-width: none; }
  .order-card { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .order-card .oc-amount { margin-left: auto; font-size: 16px; }
  .code-box { font-size: 14px; letter-spacing: 0; padding: 9px 12px; }
  /* 滑块: 桌面缩放值在窄屏会溢出 */
  .tac-box { transform: scale(.78); transform-origin: left top; width: 128%; margin-bottom: -52px; }
  /* 游戏切换页签横向滑动 */
  .game-switch { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 8px; }
  .game-tab { flex-shrink: 0; padding: 7px 14px; font-size: 14px; }
  /* 商品两列 */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 26px; }
  .product-card { padding: 13px; }
  .product-card .p-name { font-size: 14.5px; }
  .product-card .p-desc { font-size: 11.5px; min-height: 30px; }
  .product-card .p-price { font-size: 16px; }
  .product-card .p-bottom { flex-wrap: wrap; gap: 8px; }
  /* 输入框 16px 防触屏自动放大 */
  input, select, textarea { font-size: 16px; }
  .support-card { padding: 14px 15px; }
  .support-right { width: 100%; justify-content: space-between; }
}
@media (max-width:400px) {
  /* ★ 2026-10-15 调整：原来这里强制单列，导致手机上一行只放一个商品；改为保持两列 */
  .hero h1 { font-size: 19px; }
  .container { padding: 0 11px; }
}
@media (max-width:330px) {
  /* 只有极窄老机型才回单列 */
  .product-grid { grid-template-columns: 1fr; }
}

/* ===== 商品卡片价格/按钮防换行 2026-09-21 ===== */
.product-card .p-bottom { flex-wrap: nowrap; gap: 8px; align-items: center; }
.product-card .p-price { white-space: nowrap; flex-shrink: 0; }
.product-card .p-bottom .btn { white-space: nowrap; flex-shrink: 0; padding: 7px 12px; font-size: 13px; }
.product-card .p-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 430px) {
  /* ★ 2026-10-15 两列紧凑排版：卡片变窄后收紧内边距/字号，描述限两行 */
  .product-grid { gap: 8px; }
  .product-card { padding: 10px; border-radius: 12px; }
  .product-card .p-name { font-size: 13.5px; line-height: 1.35; }
  .product-card .p-desc { font-size: 11px; min-height: 0; -webkit-line-clamp: 2; }
  .product-card .p-price { font-size: 15px; }
  .product-card .p-bottom { flex-wrap: wrap; gap: 6px; }
  .product-card .p-bottom .btn { width: 100%; text-align: center; padding: 6px 8px; font-size: 12.5px; }
}

/* ★ 要塞/战场 网格按钮（手机优先 2026-10-17） */
.fort-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(46px,1fr)); gap:8px; margin-top:10px; }
.fort-btn { display:flex; align-items:center; justify-content:center; min-height:42px; border-radius:10px;
  border:1px solid var(--border); background:var(--bg2); color:var(--text); font-size:15px; line-height:1;
  cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent;
  transition:transform .12s, border-color .12s, background .12s; }
.fort-btn:active { transform:scale(.94); }

/* ===== 首页改版 2026-10-15 ===== */
/* ===== 协议/勾选 2026-10-18 ===== */
.terms-check { display:flex; align-items:flex-start; gap:8px; font-size:12.5px; line-height:1.7;
  color:var(--muted); cursor:pointer; padding:10px 12px; border-radius:10px;
  background:var(--bg2); border:1px solid var(--border); }
.terms-check input[type=checkbox] { width:16px; height:16px; margin:2px 0 0; flex-shrink:0;
  accent-color:#22d3ee; cursor:pointer; }
.terms-check a { color:var(--accent); text-decoration:none; }
.terms-check a:hover { text-decoration:underline; }
.forgot-link { text-align:right; margin:-6px 0 8px; font-size:12.5px; }
.forgot-link a { color:var(--muted); text-decoration:none; }
.forgot-link a:hover { color:var(--accent); }
.footer-legal { margin-bottom:8px; font-size:12.5px; }
.footer-legal a { color:var(--muted); text-decoration:none; }
.footer-legal a:hover { color:var(--accent); }
.footer-legal span { margin:0 8px; color:var(--border); }

/* ===== 首页公告弹窗 2026-10-18 ===== */
.notice-modal { max-width:420px; }
.notice-body { white-space:pre-wrap; font-size:13.5px; line-height:1.95; color:var(--text);
  max-height:52vh; overflow-y:auto; margin:0 0 16px; word-break:break-word;
  padding-right:2px; }
.notice-body::-webkit-scrollbar { width:4px; }
.notice-body::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }
.gift-chip { color:#34d399; font-size:.92em; }

.h-head { padding:18px 0 16px; }
.h-head h1 { font-size:22px; font-weight:700; letter-spacing:-.3px; margin:0 0 6px;
  background:linear-gradient(90deg,#fff,#9fe9f7); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.h-head p { font-size:12.5px; color:var(--muted); margin:0; }

.h-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.h-q { display:flex; flex-direction:column; align-items:center; gap:7px; padding:14px 4px 12px;
  background:var(--card); border:1px solid var(--border); border-radius:14px; cursor:pointer;
  color:var(--text); font-family:inherit; transition:.18s; }
.h-q i { font-size:21px; font-style:normal; line-height:1; }
.h-q span { font-size:11.5px; color:var(--muted); white-space:nowrap; }
.h-q:hover, .h-q:active { border-color:var(--accent); transform:translateY(-2px); }
.h-q:hover span { color:var(--accent); }

.h-trust { display:flex; gap:8px; margin-bottom:18px; }
.h-trust > div { flex:1; display:flex; align-items:center; justify-content:center; gap:5px;
  padding:9px 6px; background:rgba(34,211,238,.06); border:1px solid rgba(34,211,238,.16);
  border-radius:10px; font-size:11.5px; color:#9fe9f7; }
.h-trust b { font-size:13px; }

.pc { position:relative; display:flex; flex-direction:column; background:var(--card);
  border:1px solid var(--border); border-radius:14px; padding:13px 13px 11px; cursor:pointer;
  transition:.18s; overflow:hidden; }
.pc:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 10px 26px rgba(34,211,238,.14); }
.pc-top { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.pc-kind-row { margin-bottom:8px; }

/* QQ 交流群卡片 */
.qq-card { display:flex; align-items:center; gap:14px; margin-bottom:16px; padding:14px;
  background:linear-gradient(135deg, rgba(34,211,238,.08), rgba(139,92,246,.06)), var(--card);
  border:1px solid var(--border); border-radius:16px; }
.qq-qr { width:80px; height:84px; flex-shrink:0; border-radius:10px; background:#fff; padding:4px; object-fit:contain; }
.qq-info { flex:1; min-width:0; }
.qq-title { font-size:14.5px; font-weight:600; margin-bottom:3px; }
.qq-sub { font-size:11.5px; color:var(--muted); margin-bottom:9px; }
.qq-row { display:flex; align-items:center; gap:8px; }
.qq-num { font-size:12px; color:var(--muted); }
.qq-num b { color:var(--accent); font-size:14px; letter-spacing:.4px; }
.qq-btn { margin-left:auto; font-size:11.5px; padding:6px 12px; border-radius:9px; border:0; cursor:pointer;
  color:#04222b; background:linear-gradient(135deg,#22d3ee,#0ea5e9); font-weight:600; font-family:inherit; white-space:nowrap; }
.pc-badge { width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; flex-shrink:0; }
.pc-kind { font-size:10.5px; padding:2px 7px; border-radius:20px; background:var(--bg2);
  border:1px solid var(--border); color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pc-name { font-size:14px; font-weight:600; line-height:1.35; margin-bottom:5px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:38px; }
.pc-desc { font-size:11px; color:var(--muted); line-height:1.5; margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:33px; }
.pc-bottom { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.pc-price { font-size:17px; font-weight:700; color:var(--accent); white-space:nowrap; }
.pc-price small { font-size:10.5px; color:var(--muted); font-weight:400; }
.pc-btn { font-size:12px; padding:6px 12px; border-radius:9px; border:0; cursor:pointer; font-family:inherit;
  color:#04222b; background:linear-gradient(135deg,#22d3ee,#0ea5e9); font-weight:600; white-space:nowrap; }
.pc.disabled { opacity:.55; }
.pc.disabled .pc-btn { background:var(--bg2); color:var(--muted); }
@media (max-width:430px) {
  .h-head { padding:14px 0 12px; }
  .h-head h1 { font-size:19px; }
  .h-q { padding:12px 2px 10px; gap:6px; }
  .h-q i { font-size:19px; }
  .h-q span { font-size:10.5px; }
  .pc { padding:11px 10px 10px; border-radius:13px; }
  .pc-name { font-size:13px; min-height:35px; }
  .pc-desc { min-height:30px; }
  .pc-price { font-size:15.5px; }
  .pc-btn { padding:5px 10px; font-size:11.5px; }
  .h-trust { gap:6px; margin-bottom:14px; }
  .h-trust > div { padding:8px 4px; font-size:10.5px; }
}
.fort-btn.on { border-color:var(--accent); background:rgba(34,211,238,.14); color:var(--accent); font-weight:700; }
@media (max-width:720px) {
  .fort-grid { grid-template-columns:repeat(auto-fit,minmax(44px,1fr)); gap:6px; }
  .fort-btn { min-height:46px; font-size:16px; }
}


/* ===== 后台宽屏优化 + 手机卡片布局（2026-10-19）===== */
.admin-side { width:200px; }
.admin-main { padding:24px 28px; }

/* 桌面：字号加大、行距放宽，绑定时间不折行 */
#ebList .table th { font-size:13.5px; padding:14px 16px; }
#ebList .table td { font-size:14.5px; padding:16px; line-height:1.6; }
#ebInvites .table th { font-size:13.5px; padding:13px 16px; }
#ebInvites .table td { font-size:14px; padding:14px 16px; }
#ebInvites .table td:nth-child(6),
#ebInvites .table td:nth-child(7) { white-space:nowrap; }

@media (max-width:900px) {
  .admin-side { width:100%; }
  /* 邮箱/邀请表在手机上改成卡片式，不用横滑 */
  #ebList .table, #ebInvites .table { min-width:0; width:100%; background:none; border-radius:0; }
  #ebList .table thead, #ebInvites .table thead { display:none; }
  #ebList .table tbody, #ebInvites .table tbody { display:block; }
  #ebList .table tr, #ebInvites .table tr {
    display:block; background:var(--card); border:1px solid var(--border);
    border-radius:12px; margin-bottom:10px; padding:8px 13px;
  }
  #ebList .table tr:hover td, #ebInvites .table tr:hover td { background:none; }
  #ebList .table td, #ebInvites .table td {
    display:flex; justify-content:space-between; align-items:center; gap:12px;
    border:none; padding:5px 0; font-size:13px; text-align:right;
    white-space:normal; max-width:none; overflow:visible;
  }
  #ebList .table td::before, #ebInvites .table td::before {
    content:attr(data-label); color:var(--muted); font-size:12.5px;
    text-align:left; flex-shrink:0;
  }
  #ebList .table td:first-child, #ebInvites .table td:first-child {
    border-bottom:1px dashed var(--border); padding-bottom:8px; margin-bottom:3px;
    font-weight:600;
  }
}


/* ===== 邮箱/邀请卡片式布局（2026-10-19 v3，彻底替代表格）===== */
.eb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px; }
.eb-card { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
.eb-top { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:8px; }
.eb-top b { font-size:15.5px; color:var(--text); }
.eb-id { font-size:12px; color:var(--muted); }
.eb-tag { font-size:11.5px; padding:2px 9px; border-radius:20px; border:1px solid; white-space:nowrap; }
.eb-ok { color:#34d399; border-color:rgba(52,211,153,.35); background:rgba(52,211,153,.1); }
.eb-bad { color:#f87171; border-color:rgba(248,113,113,.35); background:rgba(248,113,113,.1); }
.eb-off { color:#94a3b8; border-color:rgba(148,163,184,.3); background:rgba(148,163,184,.08); }
.eb-email { font-size:14px; color:var(--text); word-break:break-all; margin-bottom:5px; }
.eb-time { font-size:13px; color:var(--muted); white-space:nowrap; margin-bottom:10px; }
.eb-foot { display:flex; gap:14px; flex-wrap:wrap; align-items:center; font-size:13px; color:var(--muted); border-top:1px dashed var(--border); padding-top:9px; }
.eb-foot b { color:var(--accent); font-size:13.5px; }
