/* ============================================================
   SVIP 百度代下 · 客户界面（v4 深色企业级简洁风）
   设计：深蓝黑底（与后台一致）+ 深色卡片 + 蓝青主色
   注意：类名与 index.php / 页面 JS 保持一致（v2/v3 类名全部保留）
   ============================================================ */

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0b1220;
  color: #e6edf7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
  background-image: radial-gradient(ellipse 900px 420px at 50% -120px, rgba(59, 130, 246, .16), transparent 70%);
}

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部公告 */
.topbar-notice {
  background: #101a2e;
  color: #9db4d0;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid #1f2f4a;
}

/* 顶部导航条 */
.site-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2f4a;
}
.site-topbar-inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(34, 211, 238, .35);
  letter-spacing: .5px;
}
.site-actions { display: flex; gap: 10px; }

/* 容器与英雄区 */
.container { max-width: 860px; margin: 0 auto; padding: 0 16px 60px; }

.hero { text-align: center; padding: 46px 0 30px; }
.hero h1 {
  font-size: 28px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.hero p { color: #8aa0bd; font-size: 14px; }
.hero-badges { display: flex; justify-content: center; gap: 26px; margin-top: 18px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; color: #9db4d0; font-size: 13px; }
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, .8); }

/* 卡片 */
.card {
  background: #131c30;
  border: 1px solid #1f2f4a;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.card-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, rgba(6, 182, 212, .2), rgba(59, 130, 246, .2));
  color: #22d3ee; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* 标签 */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #1a2740; color: #8aa0bd; border: 1px solid #24365a; white-space: nowrap; flex-shrink: 0; }
.tag.ok { background: rgba(52, 211, 153, .12); color: #34d399; border-color: rgba(52, 211, 153, .25); }
.tag.warn { background: rgba(251, 191, 36, .12); color: #fbbf24; border-color: rgba(251, 191, 36, .25); }
.tag.err { background: rgba(248, 113, 113, .12); color: #f87171; border-color: rgba(248, 113, 113, .25); }
.tag.vip { background: linear-gradient(135deg, rgba(6, 182, 212, .18), rgba(59, 130, 246, .18)); color: #7dd3fc; border-color: rgba(34, 211, 238, .3); font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff; border: 0; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s; box-shadow: 0 2px 10px rgba(34, 211, 238, .22);
  text-decoration: none;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; border: 1px solid #2a3c5e; color: #8aa0bd; box-shadow: none; }
.btn.ghost:hover { color: #e6edf7; border-color: #3b5a7f; }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }

/* 信息行（卡密信息） */
.info-list { display: flex; flex-wrap: wrap; gap: 0; }
.info-item { flex: 1 1 200px; padding: 8px 4px; }
.info-item .k { font-size: 12px; color: #8aa0bd; margin-bottom: 3px; }
.info-item .v { font-size: 15px; font-weight: 600; word-break: break-all; }
.info-item .v.mono { font-family: Consolas, Menlo, monospace; }

/* 容量条 */
.cap-bar { height: 8px; border-radius: 5px; background: #1a2740; overflow: hidden; margin: 10px 0 6px; }
.cap-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #06b6d4, #3b82f6); transition: width .4s; }
.cap-meta { display: flex; justify-content: space-between; font-size: 12px; color: #8aa0bd; }
.cap-meta b { color: #e6edf7; }
.muted { color: #8aa0bd; font-size: 12px; }

/* ---------- 卡密信息卡 ---------- */
.kami-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kami-info .label { font-size: 12px; color: #8aa0bd; margin-bottom: 4px; }
.kami-code { font-family: Consolas, Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #e6edf7; word-break: break-all; }
.status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag.info { background: rgba(96, 165, 250, .12); color: #93c5fd; border-color: rgba(96, 165, 250, .3); }

/* 下载容量 */
.quota-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid #1f2f4a; }
.quota-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.quota-label { font-size: 13px; font-weight: 600; color: #cbd7ea; }
.quota-num { font-size: 12px; color: #8aa0bd; }
.quota-bar { height: 8px; border-radius: 5px; background: #1a2740; overflow: hidden; }
.quota-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #06b6d4, #3b82f6); transition: width .4s; }
/* 合并卡底部：充值升级 / 兑换码充值（统一简洁卡片行，桌面端并排一行） */
.up-row-wrap { display: flex; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #1f2f4a; }
.up-row-wrap .upgrade-row { flex: 1; min-width: 0; margin-top: 0; padding-top: 0; border-top: 0; }
.up-row-wrap .exc-row { margin-top: 0; }
.upgrade-row { display: flex; gap: 12px; }
.up-card { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px 14px; background: rgba(14, 26, 46, .85); border: 1px solid #22344f; border-radius: 10px; }
.up-card.ghost { background: rgba(10, 20, 38, .5); border-style: dashed; }
.up-main { font-size: 13px; font-weight: 600; color: #cbd7ea; line-height: 1.4; }
.up-sub { display: block; font-size: 11.5px; font-weight: 400; color: #5b6f8f; margin-top: 2px; }
.up-card .ue-btn { white-space: nowrap; flex-shrink: 0; }
.ue-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; border: 0; border-radius: 10px;
  padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(249, 115, 22, .35); transition: all .18s;
}
.ue-btn:hover { filter: brightness(1.12); }
.ue-btn.ghost {
  background: transparent; border: 1px solid rgba(125, 211, 252, .4); color: #7dd3fc;
  box-shadow: none; font-weight: 600;
}
.ue-btn.ghost:hover { border-color: #7dd3fc; background: rgba(125, 211, 252, .08); filter: none; }

/* 兑换码充值入口（随充值卡统一样式） */
.exc-row .ue-btn { padding: 8px 16px; font-size: 13px; }

/* 弹窗（套餐选择 / 订单支付 共用） */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 9, 18, .72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  width: 420px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  background: #131c30; border: 1px solid #24365a; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid #1f2f4a; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: #8aa0bd; font-size: 15px; cursor: pointer; transition: all .15s; }
.modal-close:hover { background: rgba(248, 113, 113, .15); color: #f87171; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; gap: 10px; padding: 12px 20px 18px; }

/* 套餐选择视图 */
.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-opt {
  display: flex; align-items: center; justify-content: space-between;
  background: #0f1830; border: 1px solid #22334f; border-radius: 12px;
  padding: 13px 16px; cursor: pointer; transition: all .15s; position: relative;
}
.pkg-opt:hover { border-color: #3b82f6; background: #12203d; }
.pkg-opt.hot { border-color: rgba(249, 115, 22, .5); background: linear-gradient(135deg, rgba(249, 115, 22, .08), rgba(59, 130, 246, .06)); }
.pkg-opt .pkg-name { font-size: 15px; font-weight: 700; }
.pkg-opt .pkg-name small { font-weight: 400; color: #8aa0bd; margin-left: 8px; font-size: 12px; }
.pkg-opt .pkg-right { display: flex; align-items: center; gap: 10px; }
.pkg-opt .pkg-price { font-size: 15px; font-weight: 700; color: #7dd3fc; }
.pkg-opt .pkg-go { color: #8aa0bd; font-size: 13px; }
.pkg-hot-tag {
  position: absolute; top: -8px; right: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, .4);
}
.pkg-tip { text-align: center; color: #8aa0bd; font-size: 12px; margin-top: 12px; }

/* 订单支付视图 */
.pay-order-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.pay-order-line .k { color: #8aa0bd; }
.pay-order-line .v { font-weight: 600; }
.pay-order-line .v.money { color: #7dd3fc; font-size: 18px; font-weight: 800; }
.pay-order-line .v.mono { font-family: Consolas, Menlo, monospace; font-size: 12px; color: #9db4d0; }
.pay-qr { text-align: center; padding: 14px 0 6px; }
.pay-qr img { width: 168px; height: 168px; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px; }
.pay-epay { margin-top: 12px; }
.pay-epay iframe { width: 100%; height: 430px; border: 1px solid #1f2f4a; border-radius: 12px; background: #fff; display: block; }
.pay-epay-open { margin-top: 8px; font-size: 12px; color: #8aa0bd; text-align: center; }
.pay-epay-open a { color: #7dd3fc; margin-left: 6px; }
.pay-text { color: #8aa0bd; font-size: 12px; line-height: 1.7; margin-top: 10px; }
.pay-status-tip { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .2); color: #7dd3fc; font-size: 13px; text-align: center; }
.pay-status-tip.err { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); color: #f87171; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #8aa0bd; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: #0f1830; border: 1px solid #22334f; border-radius: 10px;
  color: #e6edf7; padding: 10px 12px; font-size: 14px; outline: none; transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #3b82f6; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #5b6f8f; }

/* 表格（任务列表等） */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: #8aa0bd; font-weight: 600; padding: 9px 10px; border-bottom: 1px solid #1f2f4a; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #16233c; color: #cbd7ea; vertical-align: middle; }
.tbl tr:hover td { background: rgba(34, 211, 238, .04); }

/* 状态行 / 提示 */
.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9db4d0; margin-top: 8px; }
.spin { width: 14px; height: 14px; border: 2px solid #24365a; border-top-color: #22d3ee; border-radius: 50%; animation: sp .8s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }

.tip-box { background: #0f1830; border: 1px solid #1f2f4a; border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #8aa0bd; margin-top: 12px; }

/* toast */
#toastBox { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast-item { background: #1a2740; color: #e6edf7; border: 1px solid #2a3c5e; padding: 9px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: tt .25s ease; }
.toast-item.err { border-color: rgba(248, 113, 113, .4); color: #fda4af; }
@keyframes tt { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 页脚 */
.footer { text-align: center; color: #5b6f8f; font-size: 12px; padding: 26px 0 10px; }
.footer a { color: #5b8ed9; margin: 0 6px; }

/* 空状态 / 加载 */
.empty { text-align: center; color: #5b6f8f; padding: 26px 0; font-size: 13px; }
.loading { text-align: center; color: #8aa0bd; padding: 20px 0; font-size: 13px; }

/* ---------- 表单 ---------- */
.field label { display: block; font-size: 13px; font-weight: 600; color: #cbd7ea; margin-bottom: 8px; }
.field .tip { color: #5b6f8f; font-weight: 400; font-size: 12px; }
.ipt {
  width: 100%; background: #0f1830; border: 1px solid #22334f; border-radius: 10px;
  color: #e6edf7; padding: 11px 14px; font-size: 14px; outline: none; transition: border-color .15s;
}
.ipt:focus { border-color: #3b82f6; }
.ipt::placeholder { color: #5b6f8f; }
.ipt-lg { padding: 13px 16px; font-size: 15px; }
.ipt-row { display: flex; gap: 10px; }
.ipt-row .ipt { flex: 1; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.result-msg { margin-top: 10px; font-size: 13px; }
.result-msg.ok { color: #34d399; }
.result-msg.err { color: #f87171; }

/* 通知 / 警告 */
.notice-box { background: #0f1830; border: 1px solid #22334f; border-left: 3px solid #f59e0b; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 13px; color: #cbd7ea; }
.warn-card { text-align: center; padding: 30px 22px; }
.warn-card .card-icon { margin: 0 auto 10px; width: 42px; height: 42px; border-radius: 12px; background: rgba(248, 113, 113, .12); color: #f87171; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.warn-card h3 { margin-bottom: 6px; }

/* ---------- 任务列表 ---------- */
.task-item { background: #0f1830; border: 1px solid #22334f; border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; }
.task-item.active { border-color: #2f4468; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.file-chip { width: 34px; height: 34px; flex: none; border-radius: 9px; background: #152238; color: #7dd3fc; display: flex; align-items: center; justify-content: center; }
.file-chip svg { width: 17px; height: 17px; }
.task-info { min-width: 0; flex: 1; }
.task-file { font-size: 13.5px; font-weight: 600; color: #e6edf7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { font-size: 12px; color: #5b6f8f; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; }
.task-meta span { white-space: nowrap; }
.task-meta.small { font-size: 12px; }
.progress { height: 8px; border-radius: 6px; background: #1a2740; overflow: hidden; margin-top: 10px; box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.progress-bar { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #06b6d4, #3b82f6); transition: width .8s cubic-bezier(.4,0,.2,1); position: relative; min-width: 0; }
.progress-bar.ok { background: linear-gradient(90deg, #10b981, #06b6d4); }
.progress-bar.err { background: linear-gradient(90deg, #f43f5e, #ef4444); }
.task-result { margin-top: 10px; }
.ok-btn { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 2px 10px rgba(16, 185, 129, .25); }

/* 极速下载按钮：闪电图标 + 光泽扫过 + 绿色光晕，强化"极速"观感 */
.ok-btn.xdl-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; font-weight: 700; font-size: 13.5px; letter-spacing: .4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2fd07a 0%, #17b863 50%, #0e9a52 100%);
  box-shadow: 0 5px 16px rgba(23, 184, 99, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ok-btn.xdl-btn::after {
  content: ""; position: absolute; top: -45%; left: -45%; width: 38%; height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
  animation: xdl-shine 2.8s ease-in-out infinite;
}
@keyframes xdl-shine { 0% { left: -45%; } 55% { left: 135%; } 100% { left: 135%; } }
.ok-btn.xdl-btn .xdl-ico {
  width: 15px; height: 15px; flex: none; position: relative; z-index: 1;
  color: #ffffff; filter: drop-shadow(0 0 5px rgba(255,255,255,.55));
  animation: xdl-pulse 1.9s ease-in-out infinite;
}
@keyframes xdl-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .82; } }
.ok-btn.xdl-btn > span { position: relative; z-index: 1; }
.ok-btn.xdl-btn:hover { transform: translateY(-1px); filter: saturate(1.12) brightness(1.05); box-shadow: 0 7px 20px rgba(23, 184, 99, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.ok-btn.xdl-btn:active { transform: translateY(0) scale(.985); }
@media (prefers-reduced-motion: reduce) { .ok-btn.xdl-btn::after, .ok-btn.xdl-btn .xdl-ico { animation: none; } }
.task-err { margin-top: 10px; font-size: 12.5px; color: #f87171; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .2); border-radius: 8px; padding: 8px 12px; }
.task-actions { margin-top: 10px; display: flex; justify-content: flex-end; }

/* toast（JS 使用 .toast + .err） */
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; background: #1a2740; color: #e6edf7; border: 1px solid #2a3c5e; padding: 9px 18px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: tt .25s ease; max-width: 86vw; text-align: center; }
.toast.err { border-color: rgba(248, 113, 113, .4); color: #fda4af; }

/* ---------- 入口页 / 错误页 ---------- */
.entry-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: radial-gradient(ellipse 900px 420px at 50% -120px, rgba(59, 130, 246, .16), transparent 70%); }
.entry-card { width: 400px; max-width: 100%; background: #131c30; border: 1px solid #1f2f4a; border-radius: 16px; padding: 36px 30px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.entry-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(34, 211, 238, .4); }
.entry-mark.err { background: linear-gradient(135deg, #f87171, #f43f5e); box-shadow: 0 6px 20px rgba(248, 113, 113, .4); }
.entry-card h1 { font-size: 22px; margin-bottom: 8px; }
.entry-card h2 { font-size: 20px; margin-bottom: 8px; }
.entry-sub { color: #8aa0bd; font-size: 13px; margin-bottom: 22px; line-height: 1.7; }
.entry-form { display: flex; flex-direction: column; gap: 12px; }
.entry-limit { color: #5b6f8f; font-size: 12px; margin-top: 14px; }
.entry-buy { display: inline-block; margin-top: 16px; color: #60a5fa; font-size: 13px; }

/* 并发限制弹窗（复用 modal 框架） */
#concModal { align-items: center; justify-content: center; }
#concModal .modal { width: 400px; }
#concModal .modal-body { padding: 20px; font-size: 13.5px; color: #cbd7ea; line-height: 1.7; }
#concModal .modal-foot { justify-content: center; padding: 0 20px 18px; }

/* 其他 */
.small { font-size: 12px; }
.err { color: #f87171; }
.k { color: #8aa0bd; }
.v { font-weight: 600; }
.money { color: #7dd3fc; font-weight: 800; }
.mono { font-family: Consolas, Menlo, monospace; }

/* ---------- 移动端 ---------- */
@media (max-width: 480px) {
  .site-topbar-inner { padding: 10px 14px; gap: 8px; }
  .site-brand { font-size: 13.5px; gap: 8px; min-width: 0; flex: 1; }
  .brand-mark { width: 30px; height: 30px; font-size: 11px; }
  .site-actions { gap: 6px; flex-shrink: 0; }
  .site-actions .btn { padding: 5px 10px; font-size: 12px; }
  /* hero 精简：避免与顶部品牌重复、压缩纵向空间 */
  .hero { padding: 22px 0 14px; }
  .hero h1 { font-size: 19px; margin-bottom: 8px; letter-spacing: .5px; }
  .hero p { font-size: 12.5px; line-height: 1.55; }
  .hero-badges { gap: 14px; margin-top: 12px; }
  .hero-badge { font-size: 12px; gap: 5px; }
  .card { padding: 16px; }
  .modal { width: 100%; }
  .ipt-row { flex-direction: column; }
  .ipt-row .btn { width: 100%; }
  /* 充值升级 / 兑换码充值：并排一行，卡片内文案在上、按钮在下，压缩纵向高度 */
  .up-row-wrap { flex-direction: row; gap: 8px; }
  .up-row-wrap .upgrade-row { width: auto; flex: 1; min-width: 0; }
  .up-card { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 10px 10px 9px; gap: 8px; }
  .up-card .up-main { flex: none; font-size: 11.5px; line-height: 1.35; }
  .up-sub { display: none; }
  .up-card .ue-btn, .exc-row .ue-btn { width: 100%; padding: 8px 0; font-size: 12px; }
  .quota-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .quota-num { font-size: 11.5px; line-height: 1.5; overflow-wrap: break-word; }
  /* 任务记录：收紧留白，标签与时间不换行 */
  .task-item { padding: 11px 13px; }
  .task-top { gap: 8px; }
  .task-title { gap: 8px; }
  .task-meta { gap: 2px 10px; font-size: 11.5px; }
  .task-meta.small { font-size: 11.5px; }
  .kami-info { gap: 8px; }
  .kami-code { font-size: 15px; }
  .status-row { gap: 6px; }
  .card-title { font-size: 15px; }
  .field label { font-size: 13px; }
  .footer { font-size: 12px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 17px; }
  .site-brand { font-size: 12.5px; }
  .hero-badges { gap: 10px; }
  .hero p { font-size: 12px; }
  /* 极窄屏：入口文案再收一档，保证两个入口各占半行且文案不折行 */
  .up-card .up-main { font-size: 10.5px; letter-spacing: -.2px; }
  .up-card .ue-btn, .exc-row .ue-btn { font-size: 11.5px; padding: 7px 0; }
  .up-row-wrap { gap: 6px; }
  .up-card { padding: 9px 8px 8px; gap: 7px; }
}
