/* ============================================================
   三角洲行动租号 · 前台电竞风样式
   ============================================================ */
:root {
  --bg: #0a0e1a;
  --panel: #131a2c;
  --panel2: #1a2338;
  --border: rgba(148, 163, 210, 0.14);
  --text: #e9edf7;
  --muted: #8b93ab;
  --primary: #6c5ce7;
  --cyan: #22d3ee;
  --gold: #ffb648;
  --ok: #2ed573;
  --danger: #ff5e6c;
  --warn: #ffa502;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  /* 上传/拖拽框虚线边框：深浅主题分别取值，避免白色主题下看不见 */
  --upload-border: rgba(255, 255, 255, .34);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 400px at 85% -80px, rgba(108, 92, 231, .16), transparent),
    radial-gradient(700px 380px at -10% 10%, rgba(34, 211, 238, .08), transparent);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* ---------- 页脚置底（内容不足一屏时贴住底部，不浮空） ---------- */
/* 用 min-height 撑高内容区实现，保持 body 原生块布局，避免 flex 引起的宽度横跳 */
.site-main { min-height: calc(100vh - 62px - 240px); }
.user-page .user-layout { min-height: calc(100vh - 62px - 54px); }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-outline, .btn-link, .btn-xs, .btn-warn, .btn-danger {
  display: inline-block; border: none; cursor: pointer; border-radius: 8px;
  font-size: 14px; transition: all .18s; text-align: center; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #7b5cff, #3aa9ff);
  color: #fff; padding: 9px 20px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(108, 92, 231, .35);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text); padding: 8px 18px;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: #b9a7ff; }
.btn-link { color: var(--cyan); padding: 6px 10px; }
.btn-link:hover { text-decoration: underline; }
.btn-xs { padding: 3px 10px; font-size: 12px; border-radius: 6px; }
.btn-warn { background: #2a2620; color: var(--warn); border: 1px solid rgba(255,165,2,.4); padding: 3px 10px; font-size: 12px; }
.btn-danger { background: #33222a; color: var(--danger); border: 1px solid rgba(255,94,108,.4); padding: 3px 10px; font-size: 12px; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn-block { display: block; width: 100%; }
.btn-rent {
  width: 100%; padding: 13px; font-size: 17px; font-weight: 700; color: #101426;
  background: linear-gradient(135deg, #ffd76a, #ffb648); border: none; border-radius: 10px;
  cursor: pointer; transition: all .2s; letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(255, 182, 72, .3);
}
.btn-rent:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 182, 72, .45); }
.btn-rent-link { display: inline-block; text-align: center; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-size: 14px; border: 1px solid transparent; }
.flash-info { background: rgba(108,92,231,.12); border-color: rgba(108,92,231,.4); color: #c9bdff; }
.flash-success { background: rgba(46,213,115,.12); border-color: rgba(46,213,115,.4); color: #8ff0bd; }
.flash-warning { background: rgba(255,165,2,.1); border-color: rgba(255,165,2,.4); color: #ffce8a; }
.flash-danger { background: rgba(255,94,108,.1); border-color: rgba(255,94,108,.4); color: #ff9aa2; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; font-size: 18px;
  background: linear-gradient(135deg, #7b5cff, #22d3ee); color: #fff;
  box-shadow: 0 4px 12px rgba(108, 92, 231, .45);
}
.logo-text { background: linear-gradient(90deg, #fff, #b9c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 8px 13px; border-radius: 8px; color: #c3cadf; font-size: 15px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; background: rgba(123, 92, 255, .18); }
.header-search { flex: 1; max-width: 300px; }
.header-search form { display: flex; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.header-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); padding: 7px 14px; font-size: 13px; min-width: 0; }
.header-search button { border: none; background: linear-gradient(135deg, #7b5cff, #3aa9ff); color: #fff; padding: 0 16px; cursor: pointer; font-size: 13px; }
.header-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-menu { position: relative; cursor: pointer; }
/* hover 桥接层：鼠标从按钮滑向下拉菜单途中不会丢失 hover，避免菜单闪收 */
.user-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.user-name { padding: 8px 14px; border-radius: 8px; font-size: 14px; color: #e4e8f6; display: inline-block; border: 1px solid rgba(123,92,255,.38); background: rgba(123,92,255,.12); text-decoration: none; line-height: 1.4; }
.user-menu:hover .user-name { background: rgba(123,92,255,.28); border-color: rgba(123,92,255,.6); }
.user-drop {
  position: absolute; right: 0; top: 100%; min-width: 150px; display: none;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px 10px 10px 10px;
  box-shadow: var(--shadow); padding: 6px; z-index: 50;
}
/* 菜单顶部同样垫一层透明桥（即使 drop 与按钮间出现间隙也保持连续） */
.user-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.user-menu:hover .user-drop { display: block; }
.user-drop a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: #cdd3e8; }
.user-drop a:hover { background: rgba(123,92,255,.18); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 70px; }
.hero-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 300px;
  background: radial-gradient(ellipse at center, rgba(123, 92, 255, .28), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 1px; }
.hero h1 .grad { background: linear-gradient(90deg, #7b5cff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); margin-top: 12px; font-size: 16px; }
.hero-search {
  display: flex; max-width: 620px; margin: 26px auto 0; padding: 6px; gap: 6px;
  background: var(--panel2); border: 1px solid rgba(123,92,255,.4); border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
}
.hero-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); padding: 10px 18px; font-size: 15px; }
.hero-search button {
  border: none; cursor: pointer; padding: 10px 30px; border-radius: 999px;
  background: linear-gradient(135deg, #7b5cff, #3aa9ff); color: #fff; font-size: 15px; font-weight: 600;
}
.hero-tags { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.hero-tags a {
  padding: 5px 14px; border-radius: 999px; font-size: 13px; color: #aeb6d2;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.hero-tags a:hover { color: #fff; border-color: var(--primary); }

/* ---------- 区块 ---------- */
.section { margin: 38px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; font-weight: 800; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  background: linear-gradient(180deg, #7b5cff, #22d3ee); border-radius: 3px;
}
.more-link { color: var(--muted); font-size: 14px; }
.more-link:hover { color: var(--cyan); }

/* 游戏横条 */
.game-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.game-item {
  flex: 0 0 auto; width: 92px; text-align: center; padding: 14px 6px 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .18s;
}
.game-item:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.game-ico {
  display: block; width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 14px;
  color: #fff; font-size: 22px; font-weight: 800; line-height: 48px;
}
.game-name { font-size: 13px; color: #cdd3e8; }

/* 账号卡片 */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.acc-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .2s; display: block;
}
.acc-card:hover { transform: translateY(-4px); border-color: rgba(123,92,255,.6); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.acc-cover { position: relative; height: 128px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.acc-cover img { width: 100%; height: 100%; object-fit: cover; }
.acc-cover-word { font-size: 58px; font-weight: 900; color: rgba(255,255,255,.32); }
.acc-status {
  position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; backdrop-filter: blur(4px);
}
.acc-rented { position: absolute; bottom: 8px; right: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,.4); padding: 1px 8px; border-radius: 999px; }
.st-ok { background: rgba(46,213,115,.85); color: #fff; }
.st-warn { background: rgba(255,165,2,.9); color: #1a1204; }
.st-busy { background: rgba(255,94,108,.9); color: #fff; }
.st-gray { background: rgba(120,130,160,.85); color: #fff; }
.acc-info { padding: 12px 14px 14px; }
.acc-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 1px 9px; font-size: 12px; border-radius: 6px;
  background: rgba(255,255,255,.07); color: #b6bfd9;
}
.tag-game { background: rgba(123,92,255,.2); color: #c3b6ff; }
.tag-gold { background: rgba(255,182,72,.16); color: var(--gold); }
.tag-hot { background: rgba(255,94,108,.16); color: var(--danger); }
.tag-owner { background: rgba(34,211,238,.14); color: var(--cyan); }
.acc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.price-wrap .price { color: var(--gold); font-size: 20px; font-weight: 800; }
.price-unit { color: var(--muted); font-size: 12px; margin-left: 2px; }
.deposit-tip { color: var(--muted); font-size: 12px; margin-left: 6px; }
.rent-btn {
  padding: 6px 16px; font-size: 13px; border-radius: 8px; color: #fff;
  background: linear-gradient(135deg, #7b5cff, #3aa9ff);
}
.acc-card:hover .rent-btn { box-shadow: 0 4px 12px rgba(108,92,231,.5); }
.empty-tip { color: var(--muted); font-size: 14px; padding: 14px 2px; }
.empty-box { text-align: center; color: var(--muted); padding: 60px 10px; }

/* 流程 */
.steps-section { }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-item {
  position: relative; text-align: center; padding: 30px 20px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  position: absolute; top: 14px; right: 16px; font-size: 44px; font-weight: 900;
  color: rgba(123,92,255,.18);
}
.step-ico { font-size: 34px; }
.step-item h4 { margin: 12px 0 6px; font-size: 17px; }
.step-item p { color: var(--muted); font-size: 13px; }

/* 底部两栏 */
.home-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin: 30px 0 10px; }
.home-col { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.notice-list li, .tips-list li { list-style: none; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.notice-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list a:hover { color: var(--cyan); }
.notice-date { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.tips-list li { color: #c3cadf; display: block; }
.tips-list li::before { content: "✔ "; color: var(--ok); }

/* ---------- 面板 & 通用 ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel h3 { font-size: 16px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.panel-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head-row h3 { font-size: 20px; font-weight: 800; }
.form-tip { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.c-gold { color: var(--gold); }
.c-up { color: var(--ok); }
.c-down { color: var(--danger); }
.mono { font-family: Consolas, Menlo, monospace; }
.sub { color: var(--muted); font-size: 12.5px; }
.link { color: var(--cyan); }
hr { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
.rich-text { line-height: 1.9; font-size: 15px; color: #d7dcea; white-space: pre-wrap; }
.rich-text img { border-radius: 8px; }

/* ---------- 分页 ---------- */
.pager-wrap { padding: 10px 0 6px; display: flex; justify-content: center; }
.pager { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.pager a { display: block; padding: 6px 13px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--border); font-size: 13px; color: #cdd3e8; }
.pager a:hover { border-color: var(--primary); }
.pager .active a { background: linear-gradient(135deg, #7b5cff, #3aa9ff); color: #fff; border-color: transparent; }

/* ---------- Banner 页头 ---------- */
.page-banner { padding: 34px 0; border-bottom: 1px solid var(--border); margin-bottom: 22px;
  background: radial-gradient(600px 200px at 20% 0, rgba(123,92,255,.14), transparent); }
.page-banner h1 { font-size: 28px; }
.page-banner p { color: var(--muted); margin-top: 6px; }

/* 帮助中心页内切换标签 */
.help-tabs { margin-bottom: 18px; }
.help-tabs-inner {
  display: flex; gap: 6px; padding: 6px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
}
.help-tabs-inner a {
  flex: 1; text-align: center; padding: 10px 16px; border-radius: 9px;
  color: #c3cadf; font-size: 14px; white-space: nowrap;
}
.help-tabs-inner a:hover { color: #fff; background: rgba(255,255,255,.06); }
.help-tabs-inner a.on { color: #fff; background: linear-gradient(135deg, #7b5cff, #3aa9ff); }
@media (max-width: 640px) {
  .help-tabs-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .help-tabs-inner::-webkit-scrollbar { display: none; }
  .help-tabs-inner a { flex: 0 0 auto; }
}

/* ---------- 列表页布局 ---------- */
.list-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.filter-side { position: sticky; top: 78px; }
.filter-side h3, .panel h3 { margin-bottom: 12px; }
.filter-games { list-style: none; }
.filter-games li a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #c6cddf; font-size: 14px; }
.filter-games li a:hover { background: rgba(255,255,255,.05); }
.filter-games li a.on { background: rgba(123,92,255,.2); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.help-panel p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb a { color: var(--cyan); }
.sort-bar { display: flex; gap: 4px; }
.sort-bar a { padding: 5px 11px; border-radius: 7px; font-size: 13px; color: #aab2cd; }
.sort-bar a.on { background: rgba(123,92,255,.2); color: #fff; }

/* ---------- 详情页 ---------- */
.detail-page { padding-top: 16px; }
.crumb-bar { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumb-bar a { color: #aeb6d2; }
.crumb-bar a:hover { color: var(--cyan); }
.detail-top { display: grid; grid-template-columns: 340px 1fr 260px; gap: 18px; margin-bottom: 18px; }
.detail-cover { position: relative; }
.detail-cover img, .detail-cover .cover-ph {
  width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cover-ph { display: flex; align-items: center; justify-content: center; font-size: 90px; font-weight: 900; color: rgba(255,255,255,.25); }
.detail-st { top: 12px; left: 12px; font-size: 13px; }
.detail-main h1 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 16px; }
.detail-facts li { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 7px; }
.detail-facts span { color: var(--muted); }
.notice-bar { padding: 10px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.warn-bar { background: rgba(255,165,2,.1); border: 1px solid rgba(255,165,2,.35); color: #ffce8a; }
.busy-bar { background: rgba(255,94,108,.1); border: 1px solid rgba(255,94,108,.35); color: #ff9aa2; }
.info-bar { background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.3); color: #9be8f6; }
.rent-panel { background: var(--panel2); border: 1px solid rgba(123,92,255,.35); border-radius: var(--radius); padding: 16px; }
.rent-price-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.big-price { color: var(--gold); font-size: 28px; font-weight: 800; }
.big-price em { font-style: normal; font-size: 13px; color: var(--muted); }
.dep-label { color: var(--gold); background: rgba(255,182,72,.12); padding: 2px 8px; border-radius: 6px; }
.tier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier { position: relative; cursor: pointer; padding: 9px 8px; text-align: center; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.03); transition: all .15s; }
.tier input { display: none; }
.tier.on { border-color: var(--primary); background: rgba(123,92,255,.16); }
.tier-label { display: block; font-size: 13px; color: #cdd3e8; }
.tier-price { display: block; color: var(--gold); font-weight: 700; font-size: 15px; }
.custom-tier { grid-column: span 1; }
.custom-hours { width: 100%; margin-top: 6px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: #0d1322; color: var(--text); font-size: 13px; }
.rent-total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.rent-total b { color: var(--gold); font-size: 20px; }
.total-tip { color: var(--muted); font-size: 12px; }
.seller-card .seller-name { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.guarantee-card ul { list-style: none; }
.guarantee-card li { padding: 5px 0; font-size: 14px; color: #cdd3e8; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-intro h2, .detail-login h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.detail-side { display: flex; flex-direction: column; gap: 0; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #aab2cd; margin-bottom: 6px; }
.req { color: var(--danger); font-style: normal; font-weight: 700; }
.form-item input[type=text], .form-item input[type=password], .form-item input[type=number],
.form-item input[type=email], .form-item select, .form-item textarea, .toolbar-form input[type=text] {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  background: #0d1322; border: 1px solid var(--border); color: var(--text); outline: none;
  font-family: inherit;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--primary); }
.form-item input[type=color] { width: 60px; height: 36px; border: none; background: none; padding: 0; cursor: pointer; }
.form-item textarea { resize: vertical; }
.form-max { max-width: 720px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-checks { display: flex; gap: 20px; padding-top: 4px; }
.check-line, .radio-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #cdd3e8; cursor: pointer; }
.check-line input, .radio-line input { width: auto; accent-color: #7b5cff; }
.form-subhead { margin: 16px 0 10px; font-size: 15px; color: #9be8f6; }
.img-preview { width: 100px; height: 60px; object-fit: cover; border-radius: 8px; margin-top: 8px; border: 1px solid var(--border); }
.img-sm { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.mini-ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; color: #fff; font-weight: 800; }

/* ---------- 认证 ---------- */
.auth-wrap {
  min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; position: relative; overflow: hidden;
}
.auth-wrap::before {
  content: ""; position: absolute; top: -140px; right: 6%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.24), transparent 70%); filter: blur(12px); pointer-events: none;
}
.auth-wrap::after {
  content: ""; position: absolute; bottom: -140px; left: 5%; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); filter: blur(12px); pointer-events: none;
}
.auth-card {
  position: relative; width: 420px; max-width: 100%;
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 34px 32px;
  box-shadow: var(--shadow);
}
.auth-card::before {
  content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 3px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #7b5cff, #22d3ee, #7b5cff); background-size: 200% 100%;
  animation: authBorder 6s linear infinite;
}
@keyframes authBorder { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
.auth-logo {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7b5cff, #22d3ee);
  box-shadow: 0 10px 26px rgba(108,92,231,.5);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h2 { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.auth-head p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.auth-card .form-item { margin-bottom: 16px; }
.auth-card .form-item label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px;
}
.auth-card .form-item label .tip { color: var(--muted); font-weight: 400; font-size: 12px; opacity: .8; }
.auth-card .form-item input[type=text],
.auth-card .form-item input[type=password],
.auth-card .form-item input[type=email] {
  padding: 12px 14px; border-radius: 10px; font-size: 14px;
}
.auth-card .form-item input::placeholder { color: var(--muted); opacity: .7; }
.auth-card .form-item input:focus { box-shadow: 0 0 0 3px rgba(123,92,255,.18); }
.auth-card .btn-primary {
  width: 100%; padding: 14px; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  border-radius: 11px; margin-top: 6px; box-shadow: 0 10px 24px rgba(108,92,231,.4);
}
.auth-card .btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(108,92,231,.55); }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-foot a { color: var(--cyan); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* ---------- 个人中心 ---------- */
.user-page .site-main { }
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; padding-top: 22px; padding-bottom: 30px; }
.user-side { position: sticky; top: 78px; }
.user-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 14px; }
.user-avatar { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, #7b5cff, #22d3ee); color: #fff; font-size: 26px; font-weight: 800; line-height: 64px; }
.user-info b { display: block; font-size: 16px; }
.role-badge { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--cyan); background: rgba(34,211,238,.12); padding: 1px 8px; border-radius: 999px; }
.wallet-mini { margin-top: 14px; background: rgba(255,182,72,.08); border: 1px dashed rgba(255,182,72,.3); border-radius: 10px; padding: 10px; }
.wallet-mini span { display: block; font-size: 12px; color: var(--muted); }
.wallet-mini b { color: var(--gold); font-size: 18px; }
.wallet-mini a { font-size: 12px; color: var(--cyan); }
.user-nav { list-style: none; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.user-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: #c3cadf; font-size: 14px; }
.user-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.user-nav li.on a { background: rgba(123,92,255,.2); color: #fff; font-weight: 600; }
.user-main { min-width: 0; }
.user-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card b { display: block; font-size: 28px; margin: 4px 0; }
.stat-card a { font-size: 12px; color: var(--cyan); }
.stat-card.accent { background: linear-gradient(135deg, rgba(123,92,255,.25), transparent 70%); border-color: rgba(123,92,255,.4); }
.stat-card.gold { background: linear-gradient(135deg, rgba(255,182,72,.2), transparent 70%); border-color: rgba(255,182,72,.4); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa { text-align: center; padding: 16px 8px; background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; transition: all .15s; }
.qa:hover { border-color: var(--primary); transform: translateY(-2px); }
.qa b { display: block; font-size: 15px; }
.qa span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.log-list { list-style: none; }
.log-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.log-type { flex: 1; }
.log-amount { font-weight: 700; }
.log-amount.up { color: var(--ok); }
.log-amount.down { color: var(--danger); }
.log-time { color: var(--muted); font-size: 12px; }

/* 表格 */
/* 悬浮客服按钮（后台可配置图标与链接） */
.float-service-btn {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 900;
  width: 54px; height: 54px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7b5cff, #3aa9ff); color: #fff; font-size: 24px;
  box-shadow: 0 8px 24px rgba(123, 92, 255, .35); transition: transform .18s, box-shadow .18s;
}
.float-service-btn img { width: 100%; height: 100%; object-fit: cover; }
.float-service-btn:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 12px 30px rgba(123, 92, 255, .5); }
@media (max-width: 640px) { .float-service-btn { right: 10px; width: 46px; height: 46px; } }

/* 通用输入框：用于弹窗/表格内不走 .form-item 的裸输入 */
.ipt {
  padding: 9px 11px; border-radius: 8px; font-size: 13px;
  background: #0d1322; border: 1px solid var(--border); color: var(--text); outline: none;
  font-family: inherit;
}
.ipt:focus { border-color: var(--primary); }
[data-theme="light"] .ipt { background: #fff; border-color: rgba(32, 45, 90, .22); }

/* 一键复制 */
.copy-btn {
  border: none; background: none; padding: 0 0 0 6px; cursor: pointer;
  font-size: 12px; color: var(--cyan); opacity: .85; font-family: inherit;
}
.copy-btn:hover { opacity: 1; text-decoration: underline; }
.copy-tip {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 99998;
  padding: 9px 16px; border-radius: 10px; font-size: 13px;
  background: rgba(20, 26, 44, .96); color: #fff; border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
[data-theme="light"] .copy-tip { background: #fff; color: #1d2436; }

/* border-collapse:separate：避免 Chrome 在系统缩放下合并边框取整错位、行分割线歪斜 */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-sm { font-size: 13px; }
.ops { display: flex; gap: 5px; flex-wrap: wrap; }
.ops form.inline-form { display: inline-flex; }
/* td 上不能设 display:flex：会失去 table-cell 身份，行高与同行单元格脱钩导致分割线错位 */
td.ops { display: table-cell; vertical-align: middle; }
td.ops > a, td.ops > form, td.ops > button { margin: 2px 6px 2px 0; }
td.ops > a:last-child, td.ops > form:last-child, td.ops > button:last-child { margin-right: 0; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.b-ok { background: rgba(46,213,115,.15); color: var(--ok); }
.b-warn { background: rgba(255,165,2,.15); color: var(--warn); }
.b-busy { background: rgba(123,92,255,.18); color: #b3a5ff; }
.b-gray { background: rgba(140,150,175,.16); color: #98a1bd; }
.b-danger { background: rgba(255,94,108,.15); color: var(--danger); }
.b-info { background: rgba(34,211,238,.14); color: var(--cyan); }
.b-gold { background: rgba(255,182,72,.16); color: var(--gold); }
.tab-bar { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tab-bar a { padding: 9px 18px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-bar a.on { color: #fff; border-color: var(--primary); }

/* 钱包/充值 */
.wallet-hero { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(123,92,255,.3), rgba(34,211,238,.1)); }
.wl-label { color: var(--muted); font-size: 13px; }
.wl-balance { font-size: 34px; font-weight: 800; color: var(--gold); margin: 4px 0; }
.wallet-actions { display: flex; gap: 10px; }
.recharge-grid { }
.amount-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.amt-btn {
  padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text);
}
.amt-btn:hover { border-color: var(--gold); color: var(--gold); }
.msg-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.msg-content { font-size: 14px; }
.msg-reply { margin-top: 10px; background: rgba(46,213,115,.07); border: 1px dashed rgba(46,213,115,.3); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: #bfe8d2; }

/* ---------- 订单页 ---------- */
.order-page { padding-top: 16px; }
.order-status-banner { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(123,92,255,.22), transparent); }
.order-actions { display: flex; gap: 8px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.info-table td { padding: 8px 10px; }
.info-table td:first-child { color: var(--muted); width: 96px; }
.cred-panel { border-color: rgba(255,182,72,.45); }
.cred-item { margin-bottom: 12px; }
.cred-item > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cred-value { display: flex; gap: 8px; }
.cred-value input {
  flex: 1; padding: 9px 12px; border-radius: 8px; font-family: Consolas, monospace; font-size: 14px;
  background: #0d1322; border: 1px solid var(--border); color: #ffe08a;
}
.copy-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,182,72,.5); background: rgba(255,182,72,.12); color: var(--gold); cursor: pointer; }
.copy-btn:hover { background: rgba(255,182,72,.25); }
.cred-note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px dashed var(--border); font-size: 13px; }
.renew-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.renew-tier { cursor: pointer; text-align: center; padding: 8px 4px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.03); }
.renew-tier.on { border-color: var(--primary); background: rgba(123,92,255,.16); }
.renew-tier input { display: none; }
.renew-tier span { display: block; font-size: 13px; }
.renew-tier b { display: block; color: var(--gold); font-size: 14px; }

/* ---------- 公告/文章 ---------- */
.narrow-page { max-width: 860px; }
.news-list { list-style: none; }
.news-list li a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.news-list li a:hover .news-title { color: var(--cyan); }
.news-title { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-date { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; }
.article-panel .article-meta { color: var(--muted); font-size: 13px; border-bottom: 1px dashed var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.article-nav { display: flex; justify-content: space-between; margin-top: 24px; border-top: 1px dashed var(--border); padding-top: 14px; font-size: 14px; color: var(--cyan); }

/* ---------- 平台介绍 ---------- */
.pf-banner-sub { font-size: 14px; }
.pf-section { margin-top: 28px; }
.pf-section-title { position: relative; padding-left: 12px; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.pf-section-title::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px;
  background: linear-gradient(135deg, #7b5cff, #22d3ee);
}
.pf-adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pf-adv-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.pf-adv-icon { font-size: 22px; margin-bottom: 8px; line-height: 1; }
.pf-adv-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.pf-adv-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.pf-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 6px; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--border); background: #080c16; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 40px 16px 26px; }
.footer-col h4 { font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-desc { color: var(--muted); font-size: 13px; }
.footer-col p { color: var(--muted); font-size: 13px; padding: 3px 0; }
.footer-bottom { border-top: 1px solid var(--border); padding: 14px 0; }
.footer-bottom p { color: var(--muted); font-size: 12.5px; text-align: center; }
.footer-bottom a { color: var(--muted); }
.site-footer-mini { margin-top: 0; padding-top: 30px; }
.float-service { position: fixed; right: 18px; bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fs-item { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #7b5cff, #3aa9ff); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); cursor: pointer; }

/* ---------- 错误页 ---------- */
.error-box { text-align: center; padding: 70px 20px; }
.error-code { font-size: 90px; font-weight: 900; background: linear-gradient(135deg, #7b5cff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-box h2 { margin: 10px 0 8px; }
.error-box p { color: var(--muted); margin-bottom: 20px; }
.error-box .btn-outline { margin-left: 8px; }

/* ---------- 响应式 ---------- */
/* 汉堡菜单按钮：默认隐藏，窄屏显示 */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: #fff; font-size: 17px; cursor: pointer; padding: 0; flex: 0 0 auto;
}
@media (max-width: 1000px) {
  .detail-top { grid-template-columns: 1fr; }
  .detail-cover img, .detail-cover .cover-ph { height: 240px; }
  .detail-cols, .order-grid, .user-grid, .home-cols { grid-template-columns: 1fr; }
  .user-layout { grid-template-columns: 1fr; }
  .user-side { position: static; }
  .stat-cards, .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .filter-side { position: static; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* 顶栏：横排导航收进汉堡下拉面板（不再直接消失） */
  .header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; gap: 2px; padding: 10px 14px;
    background: rgba(10, 14, 26, .97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px); box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
    z-index: 99;
  }
  .site-header.nav-open .main-nav { display: flex; }
  /* 窄屏无 hover：下拉直接展开为缩进子列表 */
  .nav-menu { width: 100%; }
  .user-name { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

  /* 用户中心：信息卡横排，导航横滑 */
  .user-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .user-card .user-avatar { width: 42px; height: 42px; font-size: 16px; line-height: 42px; }
  .user-card .user-info { flex: 1 1 auto; min-width: 0; }
  .user-card .wallet-mini { flex: 0 0 auto; margin-left: auto; }
  .user-nav {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .user-nav::-webkit-scrollbar { display: none; }
  .user-nav li { flex: 0 0 auto; }
  .user-nav a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 620px) {
  .hero { padding: 42px 0 48px; }
  .hero h1 { font-size: 25px; }
  .hero-sub { font-size: 13.5px; }
  .hero-search { padding: 5px; gap: 5px; }
  .hero-search input { padding: 8px 12px; font-size: 14px; min-width: 0; }
  .hero-search button { padding: 8px 16px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding: 12px 0; }
  .logo-text {
    max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: inline-block; vertical-align: bottom;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .logo-text { display: none; }
  .theme-toggle, .nav-toggle { width: 34px; height: 34px; font-size: 15px; }
}

/* ============================================================
 * 移动端适配补强（手机浏览器）
 * ------------------------------------------------------------
 * 目标：不横向溢出、可点区域 ≥44px、表单不触发 iOS 自动缩放、
 *       表格/长内容可横向滚动、弹窗适配小屏、底部留安全区。
 * ============================================================ */
@media (max-width: 1000px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  img, video, canvas { max-width: 100%; height: auto; }

  /* 容器与面板 */
  .container { padding-left: 14px; padding-right: 14px; }
  .panel { padding: 14px 14px; margin-bottom: 14px; border-radius: 12px; }
  .panel-head-row { flex-wrap: wrap; gap: 8px; }
  .panel-head-row h3 { font-size: 17px; }

  /* 触控友好：按钮最小高度 44px */
  .btn-primary, .btn-outline, .btn-link, .btn-xs, .btn-warn, .btn-danger { min-height: 40px; }

  /* 表单：字号 ≥16px 防止 iOS 聚焦时自动放大页面 */
  .form-item input[type=text], .form-item input[type=password], .form-item input[type=number],
  .form-item input[type=email], .form-item select, .form-item textarea,
  .toolbar-form input[type=text], .toolbar-form select, input, select, textarea {
    font-size: 16px;
  }
  .form-item input, .form-item select, .form-item textarea { min-height: 44px; }
  .form-row { flex-wrap: wrap; gap: 0; }
  .form-row > .form-item { flex: 1 1 100%; min-width: 0; }

  /* 表格：横向滚动，避免撑破视口 */
  .table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table thead, .table tbody { display: table; width: 100%; min-width: 560px; }
  .table th, .table td { white-space: nowrap; }

  /* 长串文本（订单号/卡号/链接）允许折行 */
  .mono, .order-no, .od-title, code { word-break: break-all; }

  /* 详情页 */
  .detail-top { gap: 14px; }
  .detail-main h1 { font-size: 20px; }
  .detail-facts { grid-template-columns: 1fr; gap: 4px; }
  .detail-cover img, .detail-cover .cover-ph { height: 210px; }

  /* 用户中心 */
  .stat-cards { gap: 10px; }
  .user-card { padding: 12px; }

  /* 底部为悬浮客服/系统手势留白 */
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
}

@media (max-width: 760px) {
  /* 顶栏更紧凑：搜索框隐藏后让 logo 与按钮不挤 */
  .header-inner { gap: 10px; }
  .header-user { gap: 8px; }
  .user-drop { min-width: 140px; }

  /* 订单详情：头部信息堆叠、步骤条可横滑 */
  .od-head { flex-wrap: wrap; }
  .od-head-right { width: 100%; justify-content: flex-start; }
  .od-steps { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .od-steps::-webkit-scrollbar { display: none; }
  .od-step { flex: 0 0 auto; white-space: nowrap; }
  .od-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .od-scan-qrline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .od-scan-qr { width: 148px; height: 148px; }

  /* 表格在窄屏允许单元格内容换行，减少横向滚动距离 */
  .table thead, .table tbody { min-width: 480px; }
  .table th, .table td { white-space: normal; }
}

@media (max-width: 620px) {
  /* 支付弹窗：贴底抽屉，宽度铺满，内容可滚动 */
  .pm-wrap {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .pm-card {
    width: 100% !important; max-width: 100% !important;
    max-height: 88vh; overflow-y: auto;
    border-radius: 16px 16px 0 0 !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
  }
  .pm-btns { flex-direction: column; gap: 8px; }
  .pm-btns button { width: 100%; min-height: 46px; }
  .pm-acc-line { flex-wrap: wrap; }

  /* 手机号/金额类大行自适应 */
  .hero h1 { font-size: 22px; }
  .section-title { font-size: 18px; }
  .toolbar-form { flex-wrap: wrap; gap: 8px; }
  .toolbar-form select, .toolbar-form input { min-height: 40px; }

  /* 悬浮客服按钮：避开右下手势区 */
  .float-service-btn { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0)); }
}

@media (max-width: 400px) {
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .user-avatar { width: 40px; height: 40px; line-height: 40px; }
  .btn-primary, .btn-outline, .btn-danger { padding: 10px 14px; font-size: 14px; }
}

/* ---------- 移动端底部 Tab 栏（≤768px） ---------- */
.mobile-tabbar { display: none; }
@media (max-width: 768px) {
  /* 悬浮毛玻璃胶囊 TabBar：左右留边、圆角悬浮，内部 SVG 线性图标 */
  .mobile-tabbar {
    display: flex; align-items: stretch;
    position: fixed; left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0));
    z-index: 950; height: 62px; padding: 0 8px;
    background: var(--panel2, #10162c);
    border: 1px solid var(--border, rgba(148, 163, 210, .16));
    border-radius: 22px;
    -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .mobile-tabbar a {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 52px;
    color: var(--muted, #8b94ad); text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: color .18s ease;
  }
  .mobile-tabbar a .ico { display: flex; }
  .mobile-tabbar a svg { width: 22px; height: 22px; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
  .mobile-tabbar a .txt { font-size: 10.5px; letter-spacing: .04em; }
  /* 激活：顶部渐变胶囊指示条 + 图标点亮上浮发光 */
  .mobile-tabbar a.on { color: #b9aeff; }
  .mobile-tabbar a.on::before {
    content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 18px; height: 3px; border-radius: 99px;
    background: linear-gradient(90deg, #8b5cff, #3aa9ff);
  }
  .mobile-tabbar a.on svg {
    color: #fff; transform: translateY(-1.5px) scale(1.1);
    filter: drop-shadow(0 3px 9px rgba(123, 92, 255, .6));
  }
  .mobile-tabbar a.on .txt { color: #fff; font-weight: 700; }
  /* 发布 = 凸起渐变 FAB */
  .mobile-tabbar a.fab { flex: 0 0 62px; }
  .mobile-tabbar a.fab .fab-btn {
    width: 47px; height: 47px; margin-top: -26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 17px; color: #fff;
    background: linear-gradient(135deg, #8b5cff 0%, #5f8bff 55%, #3aa9ff 100%);
    box-shadow: 0 10px 24px rgba(101, 98, 255, .5), 0 3px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .16s ease, box-shadow .16s ease;
  }
  .mobile-tabbar a.fab .fab-btn svg { width: 22px; height: 22px; }
  .mobile-tabbar a.fab:active .fab-btn { transform: scale(.92); }
  .mobile-tabbar a.fab .txt { margin-top: -3px; }
  .mobile-tabbar a.fab.on .txt { color: #b9aeff; font-weight: 700; }
  /* 内容避让悬浮 Tab（62 + 10 + 余量）与顶栏 */
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0)); }
  .site-header { z-index: 960; }
  /* 悬浮客服按钮上移，别压住 Tab */
  .float-service-btn { bottom: calc(106px + env(safe-area-inset-bottom, 0)) !important; top: auto; transform: none; }
  .float-service-btn:hover { transform: none; }
}

/* 触摸设备：去掉纯 hover 位移，避免点按残留态 */
@media (hover: none) {
  .dl-acc-card:hover, .btn-primary:hover, .dl-rent-btn:hover { transform: none; }
  /* 触屏无 hover：改用点击展开（.open 由 _header.php 的脚本切换） */
  .user-menu:hover .user-drop { display: none; }
  .user-menu.open .user-drop, .user-menu:focus-within .user-drop { display: block; }
}
