/* ============================================================
   游戏代练接单系统 - 前台样式 v2
   现代化游戏平台风格：玻璃态导航 / 渐变主色 / 精致卡片动效
   ============================================================ */
:root {
  --primary: #7c6bff;
  --primary-2: #8b5cf6;
  --primary-3: #a78bfa;
  --accent: #ff8a3d;
  --accent-2: #22d3ee;
  --bg: #070b1a;
  --bg-deep: #04070f;
  --card: rgba(19, 25, 51, 0.72);
  --text: #e8ebff;
  --text-2: #aab1d5;
  --muted: #7a82ad;
  --border: rgba(130, 140, 255, 0.14);
  --border-glow: rgba(124, 107, 255, 0.45);
  --danger: #f43f5e;
  --success: #10d9a3;
  --warning: #f5b30b;
  --dark: #04070f;
  --dark-2: #0d1330;
  --radius: 16px;
  --shadow-sm: 0 2px 12px rgba(3, 6, 18, 0.45);
  --shadow-md: 0 8px 32px rgba(3, 6, 18, 0.55);
  --shadow-lg: 0 20px 55px rgba(3, 6, 18, 0.7);
  --grad-main: linear-gradient(135deg, #7c6bff 0%, #8b5cf6 50%, #22d3ee 100%);
  --grad-accent: linear-gradient(135deg, #ff8a3d 0%, #ff5d8f 55%, #22d3ee 100%);
  --grad-dark: linear-gradient(140deg, #0b1029 0%, #0e1440 60%, #141b52 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  background-image:
    linear-gradient(rgba(124, 107, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 107, 255, 0.05) 1px, transparent 1px),
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 107, 255, 0.14), transparent 60%),
    radial-gradient(900px 420px at -10% 25%, rgba(34, 211, 238, 0.08), transparent 55%),
    radial-gradient(1200px 600px at 50% 120%, rgba(139, 92, 246, 0.12), transparent 60%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-3); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   顶部导航（玻璃态 + 霓虹科技）
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 26, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(130, 140, 255, 0.18);
  box-shadow: 0 6px 24px rgba(3, 6, 18, 0.5), 0 1px 0 rgba(124, 107, 255, 0.15);
}
.nav { display: flex; align-items: center; height: 66px; }
.logo {
  font-size: 21px; font-weight: 900; color: #fff; margin-right: 34px;
  letter-spacing: .4px; display: flex; align-items: center; gap: 9px;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(124,107,255,.45));
  transition: filter .25s;
}
.logo:hover { filter: drop-shadow(0 2px 18px rgba(124,107,255,.75)); }
.logo .logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 6px 16px rgba(255,122,61,.35);
  animation: logoPulse 2.8s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(255,122,61,.35); }
  50% { box-shadow: 0 6px 26px rgba(124,107,255,.65), 0 0 20px rgba(34,211,238,.35); }
}
.logo .logo-icon::after { content: "\2694"; }
.logo .logo-icon-img {
  width: 34px; height: 34px; border-radius: 10px; object-fit: contain;
  background: transparent; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(124,107,255,.45));
  transition: filter .25s, transform .25s;
}
.logo:hover .logo-icon-img { transform: scale(1.06) rotate(-4deg); filter: drop-shadow(0 0 14px rgba(34,211,238,.6)); }
.logo .logo-icon-img:not([src]), .logo .logo-icon-img[src=""] { display: none; }
.logo .logo-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  color: #b9c0dd; padding: 9px 15px; border-radius: 10px; font-size: 15px;
  font-weight: 500; position: relative; transition: all .22s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.09); transform: translateY(-1px); }
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,107,255,.35), rgba(34,211,238,.22));
  box-shadow: inset 0 0 0 1px rgba(124,107,255,.5), 0 0 18px rgba(124,107,255,.28);
}
.nav-user { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-user-name {
  color: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 10px; transition: all .2s;
  max-width: 170px;
}
.nav-user-name .avatar { transition: box-shadow .2s, transform .2s; }
.nav-user-name .name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-name:hover { background: rgba(255,255,255,.08); }
.nav-user-name:hover .avatar { transform: scale(1.08); box-shadow: 0 0 0 2px rgba(124,107,255,.5), 0 0 16px rgba(124,107,255,.4); }
.nav-user .btn { padding: 8px 17px; font-size: 14px; }

/* 移动端汉堡菜单按钮 */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 38px; height: 38px; padding: 8px; border: 1px solid rgba(124,107,255,.25); border-radius: 10px;
  background: rgba(124,107,255,.08); cursor: pointer; transition: all .2s;
  flex-shrink: 0;
}
.nav-burger:hover { background: rgba(124,107,255,.18); box-shadow: 0 0 16px rgba(124,107,255,.35); border-color: rgba(124,107,255,.5); }
.nav-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端下拉导航 */
.mobile-nav {
  display: none; flex-direction: column; padding: 6px 0 14px;
}
.mobile-nav a {
  color: #c3c9e2; padding: 13px 14px; border-radius: 10px; font-size: 15px;
  font-weight: 500; transition: all .18s;
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.mobile-nav a.active { color: #fff; background: linear-gradient(135deg, rgba(109,92,255,.28), rgba(255,138,61,.22)); }
.mobile-nav-user {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  margin-bottom: 6px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.mobile-nav-user .m-name { flex: 1; min-width: 0; }
.mobile-nav-user .m-nick { color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav-user .m-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mobile-nav-user .m-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mobile-nav-user .m-actions .btn { padding: 7px 14px; font-size: 13px; }
.mobile-nav .m-sep { height: 1px; background: rgba(255,255,255,.07); margin: 6px 14px; }
.mobile-nav .m-logout { color: #ff8f8f; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid rgba(255,255,255,.25);
}
.avatar.sm { width: 24px; height: 24px; border-width: 1px; }

.user-dropdown { position: relative; }
.user-dropdown-menu {
  position: absolute; right: 0; top: 46px; background: rgba(18, 24, 52, 0.97);
  border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,107,255,.25);
  min-width: 172px; padding: 7px;
  display: none; z-index: 60; border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.user-dropdown:hover .user-dropdown-menu { display: block; }
.user-dropdown-menu a {
  display: block; padding: 10px 14px; color: var(--text); font-size: 14px;
  border-radius: 9px; transition: all .15s;
}
.user-dropdown-menu a:hover { background: linear-gradient(135deg, rgba(124,107,255,.2), rgba(34,211,238,.14)); color: var(--primary-3); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border: none; border-radius: 11px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .22s; line-height: 1.4; text-decoration: none;
  position: relative; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 6px 20px rgba(124,107,255,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(124,107,255,.6), inset 0 0 0 1px rgba(255,255,255,.2); transform: translateY(-1px); }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 20px rgba(255,122,61,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-accent:hover { color: #fff; box-shadow: 0 10px 28px rgba(255,122,61,.6), inset 0 0 0 1px rgba(255,255,255,.2); transform: translateY(-1px); }
.btn-outline { background: rgba(124,107,255,.07); border: 1px solid rgba(124,107,255,.35); color: #d6daff; backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: rgba(124,107,255,.8); color: #fff; background: rgba(124,107,255,.14); box-shadow: 0 0 18px rgba(124,107,255,.25); }
.btn-soft { background: rgba(124,107,255,.16); color: var(--primary-3); }
.btn-soft:hover { background: rgba(124,107,255,.24); color: var(--primary-3); }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #ef4444); color: #fff; box-shadow: 0 6px 18px rgba(239,68,68,.32); }
.btn-danger:hover { color: #fff; box-shadow: 0 9px 24px rgba(239,68,68,.45); transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 6px 18px rgba(16,185,129,.32); }
.btn-success:hover { color: #fff; box-shadow: 0 9px 24px rgba(16,185,129,.45); transform: translateY(-1px); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 22px; transition: box-shadow .25s, transform .25s, border-color .25s;
  backdrop-filter: blur(8px);
}
.card:hover { border-color: rgba(124,107,255,.4); box-shadow: var(--shadow-md), 0 0 22px rgba(124,107,255,.1); }
.card + .card { margin-top: 16px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title::before {
  content: ""; width: 4px; height: 17px; border-radius: 4px;
  background: var(--grad-main);
}

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-dark);
  padding: 74px 0 40px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(124,107,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,107,255,.09) 1px, transparent 1px),
    radial-gradient(600px 300px at 15% 20%, rgba(124,107,255,.5), transparent 60%),
    radial-gradient(500px 260px at 80% 10%, rgba(255,138,61,.35), transparent 55%),
    radial-gradient(700px 380px at 90% 100%, rgba(34,211,238,.28), transparent 60%);
  background-size: 38px 38px, 38px 38px, 100% 100%, 100% 100%, 100% 100%;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 38px; font-weight: 900; line-height: 1.25; margin-bottom: 14px;
  letter-spacing: .5px;
  background: linear-gradient(120deg, #fff, #c9d4ff, #7c6bff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 22px rgba(124,107,255,.4));
}
.hero h1 .hl {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: #aab4e8; font-size: 16px; margin-bottom: 28px; max-width: 560px; text-shadow: 0 2px 14px rgba(3,6,18,.6); }
.hero .hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.hero .hero-badges span {
  font-size: 12.5px; padding: 5px 12px; border-radius: 20px;
  background: rgba(124,107,255,.12); border: 1px solid rgba(124,107,255,.4);
  color: #cdd6ff; backdrop-filter: blur(6px);
}
.hero .stats {
  display: flex; gap: 46px; margin-top: 36px;
  padding-top: 26px; border-top: 1px solid rgba(124,107,255,.28);
}
.hero .stats .num {
  font-size: 30px; font-weight: 900;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255,138,61,.4));
}
.hero .stats .label { font-size: 13px; color: #8d97c8; margin-top: 2px; }

/* ============================================================
   区块
   ============================================================ */
.section { margin: 38px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 21px; font-weight: 800; position: relative; }
.section-head h2::after {
  content: ""; display: block; width: 34px; height: 4px; margin-top: 7px;
  border-radius: 4px; background: var(--grad-main);
  box-shadow: 0 0 12px rgba(124,107,255,.6);
}
.section-head .more { font-size: 14px; color: var(--muted); font-weight: 500; }
.section-head .more:hover { color: var(--primary); }

/* ============================================================
   游戏卡片
   ============================================================ */
.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 16px; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: all .2s; backdrop-filter: blur(8px);
}
.game-row:hover {
  transform: translateX(4px); border-color: rgba(124,107,255,.55);
  box-shadow: var(--shadow-md), 0 0 20px rgba(124,107,255,.15);
}
.game-row .icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, #6d5cff, #a855f7);
  box-shadow: 0 6px 14px rgba(109,92,255,.3); overflow: hidden;
}
.game-row .icon img { width: 100%; height: 100%; object-fit: cover; }
.game-row .body { flex: 1; min-width: 0; }
.game-row .name { font-size: 15px; font-weight: 700; color: var(--text); display: block; }
.game-row .desc {
  font-size: 12px; color: var(--muted); display: block; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-row .arrow { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: all .2s; }
.game-row:hover .arrow { color: var(--primary); transform: translateX(3px); }

/* ============================================================
   订单卡片
   ============================================================ */
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.order-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 18px; box-shadow: var(--shadow-sm); transition: all .25s;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.order-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 90px;
  background: radial-gradient(circle at top right, rgba(124,107,255,.16), transparent 70%);
}
.order-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad-main); opacity: 0; transition: opacity .25s;
}
.order-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 0 26px rgba(124,107,255,.22); border-color: rgba(124,107,255,.55); }
.order-card:hover::before { opacity: 1; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; }
.order-card .game-tag {
  background: linear-gradient(135deg, rgba(124,107,255,.22), rgba(34,211,238,.16));
  color: var(--primary-3); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px;
  border: 1px solid rgba(124,107,255,.3);
}
.order-card .price {
  color: transparent; font-weight: 900; font-size: 20px;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
}
.order-card .price::before { content: "\FFE5"; }
.order-card .title {
  font-size: 15px; font-weight: 600; line-height: 1.55; height: 46px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.order-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.order-card .meta i { font-style: normal; }
.order-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--border); padding-top: 11px;
}
.order-card .foot .time { color: var(--muted); font-size: 12.5px; }

/* ============================================================
   徽章
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-1 { background: rgba(124,107,255,.18); color: #a5b8ff; }
.badge-2 { background: rgba(245,179,11,.16); color: #ffd35c; }
.badge-3 { background: rgba(34,211,238,.14); color: #5ee6ff; }
.badge-4 { background: rgba(16,217,163,.14); color: #4ef2c2; }
.badge-5 { background: rgba(150,158,200,.16); color: #a6adcf; }

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; color: #b9c0e8; font-size: 14px; font-weight: 600; }
.form-control {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 14px; background: rgba(10, 14, 32, 0.7); color: var(--text);
  transition: all .2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary); background: rgba(14, 19, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(124,107,255,.16), 0 0 16px rgba(124,107,255,.2);
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   文件上传（统一美化组件）
   ============================================================ */
.file-upload { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; cursor: pointer; }
.file-upload .fu-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.fu-trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1.5px dashed var(--border); border-radius: 11px;
  background: rgba(10, 14, 32, 0.5); color: var(--text-2); font-size: 13px;
  transition: all .2s; white-space: nowrap; user-select: none;
}
.fu-trigger svg { flex-shrink: 0; color: var(--primary-2); transition: color .2s; }
.fu-trigger:hover {
  border-color: var(--primary); color: var(--primary-3);
  background: rgba(124, 107, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 107, 255, 0.12);
}
.fu-trigger:hover svg { color: var(--primary-3); }
.fu-trigger:active { transform: scale(.98); }
.fu-name { font-size: 12px; color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   表格
   ============================================================ */
.table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.table th {
  background: linear-gradient(180deg, rgba(124,107,255,.14), rgba(34,211,238,.06)); text-align: left; padding: 14px 16px;
  font-size: 13px; color: #b9c0e8; font-weight: 700;
}
.table th:last-child { text-align: right; }
.table td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.table td[data-label="操作"] { text-align: right; }
.table td[data-label="操作"] .btn { margin-left: 8px; }
.table td[data-label="操作"] .btn:first-child { margin-left: 0; }
.table td.order-title-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: rgba(124,107,255,.07); }

.table tbody tr:hover td.money-num,
.table tbody tr:hover td .money-num {
  color: transparent;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.table tbody tr:first-child td { border-top: none; }

/* ============================================================
   分页
   ============================================================ */
.pagination { display: flex; gap: 7px; justify-content: center; margin: 28px 0; }
.pagination a, .pagination span {
  padding: 9px 15px; border-radius: 10px; background: var(--card); color: var(--text);
  font-size: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all .2s;
  backdrop-filter: blur(6px);
}
.pagination a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.pagination .current {
  background: var(--grad-main); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(109,92,255,.35);
}

/* ============================================================
   登录/注册
   ============================================================ */
.auth-wrap {
  max-width: 480px; margin: 34px auto; padding: 0 16px;
  position: relative;
}
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 15% 10%, rgba(124,107,255,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(255,138,61,.12), transparent 55%),
    radial-gradient(1200px 600px at 50% 110%, rgba(34,211,238,.12), transparent 60%),
    var(--bg-deep);
}
.auth-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(124,107,255,.22) 1px, transparent 1px);
  background-size: 26px 26px;
}
.auth-page > * { position: relative; z-index: 1; }
.auth-page .auth-card { width: 100%; max-width: 460px; }
.auth-bg-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: .5; pointer-events: none;
}
.auth-bg-glow.a { width: 280px; height: 280px; background: rgba(109,92,255,.35); top: -60px; right: -40px; }
.auth-bg-glow.b { width: 240px; height: 240px; background: rgba(255,138,61,.3); bottom: -70px; left: -50px; }
.auth-card {
  background: var(--card); border-radius: 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(124,107,255,.12); padding: 36px 38px 30px; position: relative;
  overflow: hidden; z-index: 1; backdrop-filter: blur(14px);
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-main);
}
.auth-card-lg { padding: 40px 42px 32px; }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--grad-main); display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 10px 26px rgba(109,92,255,.4);
  animation: authFloat 3.5s ease-in-out infinite;
}
.auth-brand-icon svg { width: 30px; height: 30px; }
@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; font-weight: 800; letter-spacing: .5px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.auth-input { position: relative; }
.auth-input .form-control { padding-left: 44px; }
.auth-input-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--muted); pointer-events: none; z-index: 1;
  transition: color .2s;
}
.auth-input:focus-within .auth-input-ico { color: var(--primary); }
.auth-input.auth-code-row .form-control { padding-right: 108px; }
.auth-input.auth-code-row .btn-code { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; white-space: nowrap; }
.btn-auth {
  padding: 13px; font-size: 16px; font-weight: 700; letter-spacing: 4px; margin-top: 6px;
  border-radius: 12px; box-shadow: 0 10px 24px rgba(109,92,255,.32);
  transition: all .22s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(109,92,255,.42); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-foot a { font-weight: 700; }
@media (max-width: 560px) {
  .auth-wrap { margin: 18px auto; }
  .auth-card-lg { padding: 30px 22px 26px; }
}

/* ============================================================
   弹窗 / Toast
   ============================================================ */
.modal-mask { position: fixed; inset: 0; background: rgba(4,7,15,.7); display: none; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(6px); }
.modal-mask.show { display: flex; }
.modal { background: #121a3a; border-radius: 16px; width: 92%; max-width: 420px; padding: 26px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,107,255,.3); border: 1px solid var(--border); }

.toast-wrap { position: fixed; top: 22px; right: 22px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #121a3a; border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,107,255,.25); font-size: 14px; font-weight: 500; color: var(--text);
  animation: slideIn .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   订单详情页
   ============================================================ */
.detail-header {
  background: var(--grad-dark); color: #fff; padding: 34px 0; position: relative; overflow: hidden;
}
.detail-header::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 40px;
  background: var(--bg-deep); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.detail-header .container { position: relative; z-index: 2; }
.detail-header h1 {
  font-size: 25px; font-weight: 800; margin-bottom: 12px;
  overflow-wrap: break-word; word-break: break-all; line-height: 1.4;
  filter: drop-shadow(0 2px 16px rgba(124,107,255,.35));
}
.detail-meta { display: flex; gap: 22px; color: #aab4e8; font-size: 14px; flex-wrap: wrap; }
.detail-meta > span { max-width: 100%; overflow-wrap: break-word; word-break: break-all; }
.detail-box { display: grid; grid-template-columns: 1fr 320px; gap: 18px; margin: 24px 0; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; }
.detail-side { position: sticky; top: 86px; }
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { width: 112px; color: var(--muted); flex-shrink: 0; }
.info-row .v { flex: 1; color: var(--text); word-break: break-all; }

.chat-box { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 6px; }
.chat-item { display: flex; gap: 10px; }
.chat-item.own { flex-direction: row-reverse; }
.chat-item .avatar { flex-shrink: 0; }
.chat-bubble { background: rgba(124,107,255,.14); border-radius: 14px; border-bottom-left-radius: 4px; padding: 11px 15px; font-size: 14px; max-width: 75%; color: var(--text); }
.chat-item.own .chat-bubble { background: var(--grad-main); color: #fff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.chat-bubble .who { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.chat-item.own .chat-bubble .who { color: rgba(255,255,255,.75); }

/* ============================================================
   用户中心
   ============================================================ */
.profile-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 18px; margin: 26px 0; align-items: start; }
.profile-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.profile-menu { display: flex; flex-direction: column; gap: 3px; }
.profile-menu a {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 11px;
  color: var(--text-2); font-size: 15px; font-weight: 500; transition: all .18s;
}
.profile-menu a:hover { background: rgba(124,107,255,.12); color: var(--primary-3); transform: translateX(2px); }
.profile-menu a.active { background: var(--grad-main); color: #fff; box-shadow: 0 6px 18px rgba(124,107,255,.45); }
.balance-card {
  background: var(--grad-dark); color: #fff; border-radius: var(--radius); padding: 24px;
  text-align: center; position: relative; overflow: hidden;
}
.balance-card::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255,138,61,.4), transparent 70%);
}
.balance-card::after {
  content: ""; position: absolute; bottom: -50px; left: -30px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(109,92,255,.5), transparent 70%);
}
.balance-card > * { position: relative; z-index: 2; }
.balance-card .amount { font-size: 32px; font-weight: 900; margin: 8px 0; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.balance-card .frozen { color: #9aa4d1; font-size: 13px; }
.balance-card .actions { display: flex; gap: 10px; margin-top: 16px; justify-content: center; }
.balance-card .actions .btn { flex: 1; padding: 8px 0; font-size: 13px; }

/* ============================================================
   页脚（霓虹科技）
   ============================================================ */
.site-footer {
  background: transparent; color: #7a82ad; padding: 18px 0 20px; margin-top: 24px;
  font-size: 13px; position: relative; text-align: center;
  border-top: 1px solid rgba(130, 140, 255, 0.1);
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer .footer-bottom {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: #6a729a; font-size: 12.5px; flex-wrap: wrap;
}
.site-footer .footer-bottom .footer-icp { color: #6a729a; }

@media (max-width: 560px) {
  .site-footer .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================================
   公告
   ============================================================ */
.notice-list .notice-item { padding: 17px 0; border-bottom: 1px dashed var(--border); transition: padding .2s; }
.notice-item:last-child { border-bottom: none; }
.notice-item .t { font-size: 16px; font-weight: 600; }
.notice-item:hover .t { color: var(--primary); }
.notice-item .time { color: var(--muted); font-size: 13px; margin-top: 4px; }
.notice-content { line-height: 1.9; }

/* ============================================================
   工具类
   ============================================================ */
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.empty .big {
  font-size: 46px; margin-bottom: 12px; font-weight: 900;
  background: linear-gradient(135deg, #c6cbf5, #e6d9ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.text-accent { color: transparent; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--muted); }
.font-bold { font-weight: 700; }
.money-num { color: transparent; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; font-weight: 800; }

/* ============================================================
   订单详情卡片优化
   ============================================================ */
/* 状态进度条 */
.order-progress-card { padding: 18px 20px; }
.order-steps { display: flex; align-items: center; }
.order-steps .step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; gap: 6px; }
.order-steps .step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.order-steps .step:first-child::before { display: none; }
.order-steps .step-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: #0d1430; border: 2px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.order-steps .step-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.order-steps .step.active::before { background: var(--accent); }
.order-steps .step.active .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-steps .step.active .step-label { color: var(--accent); font-weight: 700; }
.order-steps.cancelled .step::before { display: none; }
.order-steps.cancelled .step-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.order-steps.cancelled .step-label { color: var(--danger); font-weight: 700; }

/* 金额汇总块 */
.amount-summary { display: flex; flex-direction: column; }
.amount-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.amount-item .k { color: var(--muted); }
.amount-item .v { font-weight: 700; color: var(--text); }
.amount-item .v.money-num { font-size: 15px; }
.amount-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 2px; font-size: 14px; }
.amount-total .k { color: var(--muted); }
.amount-total .v { font-size: 17px; }

/* 充值渠道 Tab */
.pay-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: rgba(10,14,32,.7); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.pay-tab { flex: 1; padding: 9px 0; border: none; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.pay-tab.active { background: var(--grad-main); color: #fff; box-shadow: 0 2px 10px rgba(124,107,255,.4); }
.pay-pane { display: none; }
.pay-pane.active { display: block; }

/* 支付方式单选 */
.pay-type-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-type-item { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 14px; transition: all .15s; }
.pay-type-item:hover { border-color: var(--accent); }
.pay-type-item input { width: auto; accent-color: var(--accent); }
.pay-type-item:has(input:checked) { border-color: var(--accent); background: rgba(255,138,61,.12); color: var(--accent); font-weight: 700; }

/* 快捷金额 */
.amount-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.amount-chip {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; background: rgba(10,14,32,.6);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.amount-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,138,61,.1); }

/* 分组卡片标题 */
.detail-side .card-title { font-size: 14px; font-weight: 700; letter-spacing: .3px; }

/* ============================================================
   筛选栏
   ============================================================ */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter-bar .form-control { width: auto; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .detail-box { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .hero h1 { font-size: 27px; }
  .hero .stats { gap: 28px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.show { display: flex; }
  .nav-user .btn, .nav-user .user-dropdown { display: none; }

  /* 表格卡片化：移动端无需横向滑动 */
  .table thead { display: none; }
  .table,
  .table tbody,
  .table tr,
  .table td { display: block; }
  .table { background: transparent; border: none; box-shadow: none; }
  .table tbody { display: flex; flex-direction: column; gap: 12px; }
  .table tbody tr {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 8px 14px;
  }
  .table td {
    border-top: none; padding: 9px 0; font-size: 14px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    min-width: 0;
  }
  .table td::before {
    content: attr(data-label); flex-shrink: 0; color: var(--muted);
    font-size: 12.5px; font-weight: 600; min-width: 60px;
  }
  .table td > a, .table td > span, .table td > div {
    min-width: 0; overflow-wrap: break-word; word-break: break-all;
  }
  .table td:last-child { border-bottom: none; }
  .table tbody tr:first-child td { border-top: none; }
  .table .text-muted, .table .money-num { margin-left: auto; }
  .table td[data-label="操作"] > a, .table td[data-label="操作"] > button { margin-left: auto; }
  .table td.order-title-cell { max-width: none; width: 100%; }
}

@media (max-width: 560px) {
  /* 订单进度条移动端紧凑布局 */
  .order-steps .step-label { font-size: 11px; }
  .order-progress-card { padding: 14px 12px; }
  .order-steps .step::before { top: 12px; }
  .order-steps .step-dot { width: 24px; height: 24px; }
}

/* ============================================================
   首页公告条（site_notice）醒目样式
   ============================================================ */
.notice-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,179,11,.13), rgba(255,122,61,.07) 60%, rgba(124,107,255,.06));
  border: 1px solid rgba(245,179,11,.45);
  box-shadow: 0 6px 22px rgba(245,179,11,.14), inset 0 0 26px rgba(245,179,11,.05);
  position: relative; overflow: hidden;
  backdrop-filter: blur(6px);
}
.notice-banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #f5b30b, #ff7a3d);
  box-shadow: 0 0 12px rgba(245,179,11,.8);
}
.notice-banner::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(245,179,11,.16), transparent 70%);
  pointer-events: none;
}
.notice-banner .notice-ico {
  width: 22px; height: 22px; flex-shrink: 0; color: #f5b30b; filter: drop-shadow(0 0 6px rgba(245,179,11,.7));
  animation: noticeWave .6s ease-in-out infinite alternate;
}
.notice-banner .notice-tag {
  flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: #1a1502; background: linear-gradient(135deg, #f5b30b, #ffce5e);
  padding: 3px 10px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(245,179,11,.5);
}
.notice-banner .notice-text {
  flex: 1; min-width: 0; font-size: 14px; color: #ffd98c; line-height: 1.6;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notice-banner .notice-more {
  flex-shrink: 0; font-size: 12.5px; color: #ffb830; font-weight: 600; white-space: nowrap;
  text-decoration: none; transition: color .2s;
}
.notice-banner .notice-more:hover { color: #fff; text-shadow: 0 0 8px rgba(245,179,11,.8); }
@keyframes noticeWave {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

/* ============================================================
   细节精修 v2（按钮高光 / hero 光泽 / 卡片质感 / 交互反馈）
   ============================================================ */

/* 文本选区 */
::selection { background: rgba(124,107,255,.35); color: #fff; }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,107,255,.55), rgba(34,211,238,.45));
  border-radius: 6px; border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(124,107,255,.8), rgba(34,211,238,.7)); }
* { scrollbar-width: thin; scrollbar-color: rgba(124,107,255,.5) var(--bg-deep); }

/* ---------- 按钮：顶部高光 + 聚焦环 + 点击反馈 ---------- */
.btn { will-change: transform; }
.btn-primary, .btn-accent, .btn-success, .btn-danger { position: relative; overflow: hidden; }
.btn-primary::after, .btn-accent::after, .btn-success::after, .btn-danger::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  opacity: .8; border-radius: 2px;
}
.btn:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(124,107,255,.35), 0 0 20px rgba(124,107,255,.3);
}
.btn-primary:active, .btn-accent:active, .btn-success:active, .btn-danger:active,
.btn-outline:active, .btn-soft:active { transform: translateY(1px) scale(.98); }

/* 涟漪感：鼠标按下瞬间的微光 */
.btn:active { box-shadow: inset 0 2px 8px rgba(0,0,0,.28); }

/* ---------- hero 标题光泽扫过 ---------- */
.hero h1 { position: relative; display: inline-block; }
.hero h1::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 60px;
  left: -20%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: heroShine 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroShine {
  0%, 55% { left: -20%; }
  75%, 100% { left: 120%; }
}

/* hero 徽章：逐颗微浮 */
.hero .hero-badges span { animation: badgeFloat 3s ease-in-out infinite; }
.hero .hero-badges span:nth-child(2) { animation-delay: .3s; }
.hero .hero-badges span:nth-child(3) { animation-delay: .6s; }
.hero .hero-badges span:nth-child(4) { animation-delay: .9s; }
@keyframes badgeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* hero stats 数字呼吸光 */
.hero .stats .num { animation: statGlow 3.2s ease-in-out infinite; }
@keyframes statGlow {
  0%,100% { filter: drop-shadow(0 2px 14px rgba(255,138,61,.4)); }
  50% { filter: drop-shadow(0 4px 22px rgba(255,138,61,.65)); }
}

/* ---------- section 标题渐变字 ---------- */
.section-head h2 {
  background: linear-gradient(120deg, #fff 20%, #b9c0ff 55%, #8fd8ff 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(124,107,255,.18));
}
.section-head .more {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); transition: all .2s;
}
.section-head .more::after { content: "\2192"; transition: transform .2s; }
.section-head .more:hover { color: var(--primary-3); }
.section-head .more:hover::after { transform: translateX(3px); }

/* ---------- 订单卡片细节 ---------- */
.order-card .top .price {
  text-shadow: 0 0 18px rgba(255,122,61,.0);
  transition: text-shadow .25s;
}
.order-card:hover .top .price { text-shadow: 0 0 18px rgba(255,122,61,.35); }
.order-card .game-tag { transition: all .25s; }
.order-card:hover .game-tag { border-color: rgba(124,107,255,.6); background: linear-gradient(135deg, rgba(124,107,255,.32), rgba(34,211,238,.24)); }
.order-card .meta i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(122,130,173,.8); box-shadow: 0 0 4px rgba(124,107,255,.5);
  vertical-align: middle; margin-right: 14px;
}

/* ---------- 游戏行细节 ---------- */
.game-row .icon { transition: transform .22s, box-shadow .22s; }
.game-row:hover .icon { transform: scale(1.1) rotate(-4deg); box-shadow: 0 0 22px rgba(124,107,255,.5); }

/* ---------- 表单 label 装饰 ---------- */
.form-group label { display: flex; align-items: center; gap: 7px; }
.form-group label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-main); box-shadow: 0 0 7px rgba(124,107,255,.8), inset 0 0 2px rgba(255,255,255,.4);
}

/* ---------- 徽章荧光 ---------- */
.badge { box-shadow: 0 0 0 1px rgba(255,255,255,.03), inset 0 0 8px rgba(255,255,255,.03); }
.badge-1 { box-shadow: 0 0 10px rgba(124,107,255,.25), inset 0 0 8px rgba(124,107,255,.12); }
.badge-2 { box-shadow: 0 0 10px rgba(245,179,11,.22), inset 0 0 8px rgba(245,179,11,.1); }
.badge-3 { box-shadow: 0 0 10px rgba(34,211,238,.22), inset 0 0 8px rgba(34,211,238,.1); }
.badge-4 { box-shadow: 0 0 10px rgba(16,217,163,.22), inset 0 0 8px rgba(16,217,163,.1); }

/* ---------- 分页细节 ---------- */
.pagination a, .pagination span { position: relative; overflow: hidden; }
.pagination a:hover { box-shadow: 0 0 16px rgba(124,107,255,.35); }

/* ---------- 卡片质感：顶部高光缘 ---------- */
.card, .order-card, .game-row, .auth-card, .form-panel {
  background-image: linear-gradient(180deg, rgba(255,255,255,.045), transparent 22%);
}

/* ---------- toast 底部进度条 ---------- */
.toast { position: relative; overflow: hidden; }
.toast::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px;
  background: var(--grad-main); animation: toastLife 2.6s linear forwards;
}
.toast.success::after { background: linear-gradient(90deg, #10d9a3, #22d3ee); }
.toast.error::after { background: linear-gradient(90deg, #f43f5e, #ff8a3d); }
@keyframes toastLife { from { width: 100%; } to { width: 0%; } }

/* ---------- 空状态插画动效 ---------- */
.empty .big { animation: emptyFloat 3s ease-in-out infinite; }
@keyframes emptyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 链接下划线细节（通用正文，不含导航/页脚） ---------- */
.card a:not(.btn):not(.badge):not(.more) { border-bottom: 1px dashed transparent; }
.card a:not(.btn):not(.badge):not(.more):hover { border-bottom-color: var(--primary); }

/* ---------- 滚动进入淡入（轻量） ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.section { animation: fadeUp .5s ease both; }
.section:nth-child(2) { animation-delay: .06s; }
.section:nth-child(3) { animation-delay: .12s; }

/* ---------- 移动端抽屉优化 ---------- */
.mobile-nav a { display: flex; align-items: center; }
.mobile-nav a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; margin-right: 11px;
  background: linear-gradient(135deg, #7c6bff, #22d3ee);
  box-shadow: 0 0 8px rgba(124,107,255,.55), inset 0 0 3px rgba(255,255,255,.35);
  transition: all .18s; flex-shrink: 0;
}
.mobile-nav a:hover::before, .mobile-nav a.active::before {
  background: linear-gradient(135deg, #ff8a3d, #f5b30b);
  box-shadow: 0 0 12px rgba(255,138,61,.7), inset 0 0 3px rgba(255,255,255,.4);
  transform: scale(1.15);
}

/* ---------- 用户下拉菜单高亮 ---------- */
.user-dropdown-menu a { position: relative; padding-left: 16px; }
.user-dropdown-menu a::before {
  content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: linear-gradient(135deg, #7c6bff, #22d3ee);
  box-shadow: 0 0 6px rgba(124,107,255,.6); transform: translateY(-50%);
}
.user-dropdown-menu a:hover::before {
  background: linear-gradient(135deg, #ff8a3d, #f5b30b); box-shadow: 0 0 10px rgba(255,138,61,.7);
}

/* ---------- 移动端访客卡（登录/注册） ---------- */
.mobile-nav-user.guest {
  flex-direction: column; align-items: stretch; gap: 12px;
  background: linear-gradient(135deg, rgba(124,107,255,.14), rgba(34,211,238,.06));
  border: 1px solid rgba(124,107,255,.22);
  padding: 15px 15px 14px;
}
.mobile-nav-user.guest .m-welcome { min-width: 0; }
.mobile-nav-user.guest .m-title {
  color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-nav-user.guest .m-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.mobile-nav-user.guest .m-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%;
}
.mobile-nav-user.guest .m-actions .btn {
  width: 100%; padding: 11px 0; font-size: 14.5px; font-weight: 700;
  justify-content: center;
}
.mobile-nav-user.guest .m-actions .btn-outline { background: rgba(124,107,255,.12); }

/* ============================================================
   最新订单卡片增强
   ============================================================ */
.order-card .game-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px;
}
.order-card .game-ico {
  width: 24px; height: 24px; border-radius: 7px; object-fit: cover;
  box-shadow: 0 0 8px rgba(124,107,255,.35), 0 0 0 1px rgba(255,255,255,.12);
}
.order-card .top .price {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-size: 22px;
}
.order-card .top .price::before { font-size: 14px; }
.order-card .meta { gap: 8px 16px; }
.order-card .meta .mi {
  display: inline-flex; align-items: center; gap: 5px; color: var(--muted);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-card .meta .mi svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .85; }
.order-card .foot .foot-side {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
}
.order-card .foot .publisher {
  display: inline-flex; align-items: center; gap: 5px; color: var(--muted);
  font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-card .foot .pub-avatar {
  width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ============================================================
   平台公告卡片
   ============================================================ */
.notice-card { padding: 6px 22px; }
.notice-card .notice-list { display: flex; flex-direction: column; }
.notice-card .notice-item {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 8px; border-bottom: 1px dashed rgba(122,130,173,.22);
  text-decoration: none; transition: all .2s; border-radius: 12px;
  position: relative;
}
.notice-card .notice-item:last-child { border-bottom: none; }
.notice-card .notice-item:hover { background: linear-gradient(90deg, rgba(124,107,255,.09), transparent 75%); padding-left: 14px; }
.notice-card .n-ico {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,107,255,.2), rgba(34,211,238,.14));
  color: var(--primary-3); border: 1px solid rgba(124,107,255,.3);
}
.notice-card .n-ico.hot {
  background: linear-gradient(135deg, rgba(245,179,11,.22), rgba(255,138,61,.16));
  color: #ffce5e; border-color: rgba(245,179,11,.4);
  box-shadow: 0 0 12px rgba(245,179,11,.2);
}
.notice-card .n-ico svg { width: 18px; height: 18px; }
.notice-card .n-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notice-card .n-body .t {
  color: var(--text); font-size: 15.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s;
}
.notice-card .notice-item:hover .t { color: var(--primary-3); }
.notice-card .n-body .excerpt {
  color: var(--muted); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-card .n-meta {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.notice-card .n-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #1a1502; background: linear-gradient(135deg, #f5b30b, #ffce5e);
  padding: 2px 8px; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(245,179,11,.45);
}
.notice-card .n-meta .time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.notice-card .n-meta .arrow {
  color: var(--muted); font-size: 15px; transition: all .2s;
}
.notice-card .notice-item:hover .n-meta .arrow { color: var(--accent); transform: translateX(3px); }

@media (max-width: 560px) {
  .notice-card .n-body .excerpt { display: none; }
  .notice-card .notice-item { gap: 12px; }
  .notice-card .n-ico { width: 34px; height: 34px; }
}

/* ============================================================
   个人中心总览页
   ============================================================ */
.center-page { margin: 26px auto; max-width: 860px; display: flex; flex-direction: column; gap: 16px; }

.center-hero {
  position: relative; overflow: hidden; padding: 26px 26px 22px;
  border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(600px 220px at 90% -20%, rgba(34,211,238,.35), transparent 60%),
    radial-gradient(520px 260px at -10% 110%, rgba(255,138,61,.28), transparent 55%),
    linear-gradient(135deg, #7c6bff 0%, #5b3df5 55%, #4b2fd6 100%);
  box-shadow: 0 18px 45px rgba(91,61,245,.35);
  border: 1px solid rgba(255,255,255,.14);
}
.center-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.center-hero-top { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.center-avatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.65); box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.center-hero-info { flex: 1; min-width: 0; }
.center-hero-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 19px; font-weight: 800; }
.center-hero-badge {
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  background: rgba(255,255,255,.22); color: #fff; letter-spacing: .5px;
  flex-shrink: 0;
}
/* 自定义称号徽章：金色 */
.title-badge {
  display: inline-flex; align-items: center; flex-shrink: 0; vertical-align: middle;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #6b3a00; letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(253, 160, 133, .35);
}
.title-badge-nav { font-size: 10px; padding: 3px 8px; margin-left: 6px; }
.center-hero-sub { font-size: 13px; opacity: .85; margin-top: 5px; }
.center-hero-edit {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 13px; padding: 7px 14px; border-radius: 20px; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.center-hero-edit:hover { background: rgba(255,255,255,.28); color: #fff; }

.center-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 20px; background: rgba(255,255,255,.13); border-radius: 12px; padding: 14px 0;
  text-align: center; backdrop-filter: blur(4px);
}
.center-stat + .center-stat { border-left: 1px solid rgba(255,255,255,.18); }
.center-stat .cs-num { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.center-stat .cs-label { font-size: 12px; opacity: .85; margin-top: 4px; }

.center-hero-actions { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 16px; }
.center-hero-actions .btn {
  flex: 1; padding: 11px 0; font-weight: 600; color: var(--primary);
  background: #fff; border: none;
}
.center-hero-actions .btn-accent {
  background: linear-gradient(135deg, #ff8a3d, #ff5d8f); color: #fff;
}
.center-hero-actions .btn:hover { opacity: .92; }

.center-block .card-title { margin-bottom: 12px; }
.center-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.center-entry {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 8px; border-radius: 12px; color: var(--text-2); font-size: 13.5px;
  background: rgba(124,107,255,.05); border: 1px solid var(--border);
  transition: all .2s;
}
.center-entry:hover { background: rgba(124,107,255,.12); color: var(--primary-3); transform: translateY(-2px); }
.center-entry .ce-ico {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
}
.center-entry .ce-txt { font-weight: 600; }

.center-list { display: flex; flex-direction: column; }
.center-line {
  display: flex; align-items: center; gap: 12px; padding: 13px 6px;
  border-bottom: 1px dashed var(--border); color: var(--text); font-size: 14.5px; transition: color .2s;
  font-family: inherit; font-weight: normal; text-align: left; cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
  width: 100%;
}
.center-line:last-child { border-bottom: none; }
.center-line:hover { color: var(--primary-3); }
.center-line .cl-ico {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(124,107,255,.1);
}
.center-line .cl-txt { font-weight: 600; min-width: 96px; }
.center-line .cl-desc { flex: 1; color: var(--muted); font-size: 12.5px; }
.center-line .cl-arrow { color: var(--muted); font-size: 15px; }

.center-logout {
  display: block; text-align: center; padding: 13px 0; border-radius: 12px;
  color: var(--danger); font-size: 14.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); transition: all .2s;
}
.center-logout:hover { background: rgba(244,63,94,.12); color: var(--danger); border-color: rgba(244,63,94,.4); }

.center-taker {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 14px; position: relative; overflow: hidden;
  width: 100%; font-family: inherit; font-weight: normal; text-align: left; cursor: pointer;
  background:
    radial-gradient(420px 160px at 95% 0%, rgba(255,93,143,.3), transparent 60%),
    radial-gradient(360px 140px at 5% 100%, rgba(255,138,61,.25), transparent 55%),
    linear-gradient(135deg, rgba(255,138,61,.14), rgba(255,93,143,.14));
  border: 1px solid rgba(255,138,61,.35);
  transition: all .2s;
}
.center-taker:hover {
  border-color: rgba(255,138,61,.6);
  box-shadow: 0 8px 24px rgba(255,138,61,.18);
  transform: translateY(-1px);
}
.center-taker .ct-ico {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff8a3d, #ff5d8f); color: #fff;
  box-shadow: 0 6px 16px rgba(255,93,143,.4);
}
.center-taker .ct-body { flex: 1; min-width: 0; }
.center-taker .ct-title {
  display: block; font-size: 15.5px; font-weight: 800; color: var(--text);
}
.center-taker .ct-desc {
  display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.center-taker .ct-arrow { color: var(--accent); font-size: 18px; font-weight: 700; }

@media (max-width: 560px) {
  .center-page { margin: 14px auto; }
  .center-hero { padding: 20px 16px 18px; }
  .center-hero-edit { font-size: 12px; padding: 6px 10px; }
  .center-stats .cs-num { font-size: 17px; }
  .center-hero-actions { gap: 8px; }
  .center-line .cl-desc { display: none; }
  .center-line .cl-txt { min-width: 0; flex: 1; }
}

/* ============================================================
   底部 Tab 栏（移动端）
   ============================================================ */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  height: 58px; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 32, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(124,107,255,.16);
  box-shadow: 0 -6px 24px rgba(3,6,18,.5);
}
.tabbar-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; gap: 2px; color: var(--muted); font-size: 11px; transition: color .2s;
}
.tabbar-item:hover { color: var(--primary-3); }
.tabbar-item.active { color: var(--primary-3); }
.tabbar-item .tb-ico { display: flex; align-items: center; justify-content: center; line-height: 1; }
.tabbar-add .tb-ico {
  width: 44px; height: 44px; margin-top: -18px; border-radius: 50%;
  background: var(--grad-main); color: #fff;
  box-shadow: 0 6px 18px rgba(124,107,255,.5);
  border: 3px solid var(--bg-deep);
}
.tabbar-add .tb-txt { margin-top: 1px; }
.tabbar-add.active .tb-ico { color: #fff; }
.tabbar-add.active { color: var(--accent); }

@media (max-width: 860px) {
  .tabbar { display: flex; }
  body { padding-bottom: 66px; }
  .site-footer { padding-bottom: 70px; }
}

/* ============================================================
   个人资料页
   ============================================================ */
.p-card { margin-top: 16px; padding: 22px; }
.p-card .p-form { max-width: 520px; }
.p-submit { width: 100%; max-width: 520px; margin-top: 18px; padding: 13px 0; font-size: 15px; font-weight: 600; }

.role-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  background: rgba(10, 14, 32, 0.5);
}
.role-switch-info .rs-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.role-switch-info .rs-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.switch-row input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-ui {
  position: relative; width: 46px; height: 26px; border-radius: 20px; flex-shrink: 0;
  background: rgba(255,255,255,.14); transition: background .25s; display: block; cursor: pointer;
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: transform .25s;
}
.switch-row input[type="checkbox"]:checked + .switch-ui { background: var(--success); }
.switch-row input[type="checkbox"]:checked + .switch-ui::after { transform: translateX(20px); }

.role-badge-success {
  padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  background: rgba(16,217,163,.12); color: #4ef2c2; border: 1px solid rgba(16,217,163,.3);
}
.role-badge-warn {
  padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  background: rgba(245,179,11,.12); color: #ffd35c; border: 1px solid rgba(245,179,11,.3);
}
.role-badge-danger {
  padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  background: rgba(244,63,94,.12); color: #ff7d96; border: 1px solid rgba(244,63,94,.3);
}

@media (max-width: 560px) {
  .p-card { padding: 18px; }
  .role-switch { padding: 12px 14px; }
}

/* ============================================================
   弹窗（个人中心编辑）
   ============================================================ */
.modal-mask { position: fixed; inset: 0; background: rgba(4,7,15,.72); display: none; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(6px); padding: 16px; }
.modal-mask.show { display: flex; }
.modal {
  background: linear-gradient(180deg, #121a3a 0%, #0e1533 100%);
  border-radius: 16px; width: 100%; max-width: 440px; padding: 0;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,107,255,.3);
  border: 1px solid var(--border); color: var(--text);
  max-height: 86vh; display: flex; flex-direction: column;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,107,255,.16), rgba(34,211,238,.08));
  border-radius: 16px 16px 0 0;
}
.modal-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--text-2); font-size: 18px; line-height: 1;
  transition: all .15s;
}
.modal-close:hover { background: rgba(244,63,94,.25); color: #fff; }
.modal > form { padding: 20px; overflow-y: auto; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; padding: 11px 0; }
@media (max-width: 560px) {
  .modal { max-width: 100%; }
}
