/* ============================================================
   塔塔电竞 - 全站统一样式（浅色玻璃拟态 · 可爱风 · 单一主题）
   断点三档：手机 ≤640 / 平板 641-1024 / 桌面 ≥1025
   ============================================================ */

:root {
  --bg-gradient: linear-gradient(135deg, #8b7cf6 0%, #f472b6 100%);
  --bg-light: #fdf7fb;
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 10px 34px rgba(167, 139, 250, 0.14);
  --glass-blur: blur(20px);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-hover: rgba(255, 255, 255, 0.95);
  --primary: #8b7cf6;
  --primary-light: #a5b4fc;
  --primary-dark: #7c6cf0;
  --secondary: #f472b6;
  --accent: #67e8f9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --text-primary: #3b3450;
  --text-secondary: #6f6885;
  --text-muted: #a49db8;
  --border: rgba(196, 181, 253, 0.28);
  --border-light: rgba(196, 181, 253, 0.14);
  --shadow-sm: 0 2px 8px rgba(139, 124, 246, 0.06);
  --shadow-md: 0 4px 16px rgba(139, 124, 246, 0.09);
  --shadow-lg: 0 8px 32px rgba(139, 124, 246, 0.13);
  --shadow-xl: 0 16px 48px rgba(139, 124, 246, 0.16);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-height: 68px;
  --sidebar-width: 260px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 手机端点击按钮时浏览器默认的蓝色高亮方块 */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* 有固定顶栏的页面（index.php / player.php）：内容整体下移，否则标题和步骤条会被顶栏盖住 */
body.has-header { padding-top: var(--header-height); }

/* 有固定底栏的页面（index.php）：留出 62px 导航 + 刘海屏安全区，否则最后一行表单会被压住 */
body.has-nav-bottom { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 18% 30%, rgba(244, 114, 182, 0.10) 0%, transparent 46%),
    radial-gradient(circle at 78% 18%, rgba(167, 139, 250, 0.12) 0%, transparent 46%),
    radial-gradient(circle at 50% 85%, rgba(103, 232, 249, 0.10) 0%, transparent 42%);
  z-index: -1;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(167, 152, 214, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 152, 214, 0.55); }

/* 主内容包裹层：避开固定头部 */
.main-wrap { margin-top: var(--header-height); }

/* ===== 玻璃卡片 ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--card-hover);
  box-shadow: var(--shadow-lg);
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
}
.header-left, .header-right { display: flex; align-items: center; gap: 10px; min-width: 0; }

.header-logo, .logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.18rem; font-weight: 800;
  color: var(--text-primary);
  cursor: pointer; flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--bg-gradient);
  color: #fff; font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(244, 114, 182, 0.32);
  overflow: hidden; flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-img { width: 40px; height: 40px; border-radius: 14px; object-fit: cover; }
.logo-letter {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--bg-gradient); color: #fff;
  font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.18rem; font-weight: 800; letter-spacing: 0.5px;
  background: var(--bg-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
}

.header-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header-nav a, .header-nav .nav-link {
  padding: 8px 15px; border-radius: 999px;
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.header-nav a:hover, .header-nav .nav-link:hover { color: var(--primary); background: rgba(139, 124, 246, 0.08); }
.header-nav a.active, .header-nav .nav-link.active {
  color: #fff; background: var(--bg-gradient);
  box-shadow: 0 4px 12px rgba(139, 124, 246, 0.3);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.header-btn {
  position: relative; width: 40px; height: 40px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-secondary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition); font-family: inherit;
}
.header-btn:hover { color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.header-btn svg { width: 19px; height: 19px; }
.header-btn .badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--secondary);
  color: #fff; font-size: 0.64rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.notification-btn, .notif-btn {
  position: relative; width: 40px; height: 40px;
  border-radius: 14px; border: 1px solid var(--glass-border);
  background: var(--glass-bg); cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.notification-btn:hover, .notif-btn:hover { color: var(--primary); border-color: var(--primary); }
.notification-btn svg { width: 19px; height: 19px; }
.notification-btn .badge, .notification-btn .badge-dot, .notification-btn .notif-badge,
.notif-btn .badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--secondary);
  color: #fff; font-size: 0.64rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.user-info {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}
.user-info:hover { box-shadow: var(--shadow-sm); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info .user-name, .user-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.user-info .user-vip, .user-vip { font-size: 0.68rem; color: var(--secondary); font-weight: 600; line-height: 1.2; }
.user-role { font-size: 0.72rem; color: var(--text-muted); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card-bg);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); transition: var(--transition);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; }

.mobile-menu-btn, .header-btn.menu-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 14px;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); flex-shrink: 0;
}
.mobile-menu-btn svg { width: 20px; height: 20px; }

.mobile-overlay {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(30, 27, 55, 0.35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none;
}
.mobile-overlay.show { display: block; }

/* ===== 站点公告条 ===== */
.site-notice {
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.12), rgba(244, 114, 182, 0.12));
  border-bottom: 1px solid var(--border-light);
}
.site-notice-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 8px 20px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--text-secondary);
}
.site-notice-inner svg { width: 16px; height: 16px; color: var(--secondary); flex-shrink: 0; }
.site-notice-inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 英雄区 ===== */
.hero-section { padding: 40px 20px 26px; text-align: center; }
.hero-section h1 {
  font-size: 1.75rem; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(135deg, #7c6cf0, #f472b6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-section p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 22px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-section .search-box {
  max-width: 560px; margin: 0 auto;
  display: flex; gap: 8px; padding: 8px;
  border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.hero-section .search-box input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 8px 14px; font-size: 0.92rem; color: var(--text-primary);
}
.hero-section .search-box input::placeholder { color: var(--text-muted); }
.hero-section .search-box .btn { flex-shrink: 0; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.hot-tags span {
  padding: 5px 13px; border-radius: 999px;
  background: rgba(139, 124, 246, 0.10); color: var(--primary-dark);
  font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.hot-tags span:hover { background: rgba(244, 114, 182, 0.16); }

/* ===== 页面容器与版块标题 ===== */
.page-content { max-width: 1180px; margin: 0 auto; padding: 20px; }
.section-block { margin-bottom: 30px; }
.section-view { display: none; }
.section-view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.section-title h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--text-primary);
  position: relative; padding-left: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 999px;
  background: linear-gradient(180deg, #8b7cf6, #f472b6);
}
.section-title h2 svg { width: 19px; height: 19px; color: var(--primary); }
.section-title a, .section-title .view-all {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 3px; cursor: pointer;
}
.section-title a:hover, .section-title .view-all:hover { color: var(--primary); }
.section-title .view-all svg { width: 14px; height: 14px; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 13px;
  border-bottom: 1px solid var(--border-light);
  gap: 10px;
}
.card-title {
  font-size: 1rem; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.card-title svg { width: 18px; height: 18px; color: var(--primary); }

/* ===== 统计卡片 ===== */
.stat-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; max-width: 1180px; margin: 0 auto; padding: 0 20px 6px;
}
.stat-cards .stat-card { border-radius: var(--radius-lg); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--bg-gradient);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .stat-info h3 { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.stat-info { flex: 1; min-width: 0; }
.stat-value {
  font-size: 1.7rem; font-weight: 800; line-height: 1.2;
  background: var(--bg-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.stat-card .stat-info .stat-change { font-size: 0.75rem; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }
.stat-card .stat-icon, .stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  background: rgba(139, 124, 246, 0.1); color: var(--primary);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.blue { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.stat-icon.purple { background: rgba(139, 124, 246, 0.1); color: var(--secondary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent); }
.stat-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.mini-stat {
  background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 12px; text-align: center;
}

/* ===== 轮播广告 ===== */
.slideshow-ad { position: relative; max-width: 1180px; margin: 0 auto 16px; padding: 0 20px; }
.slideshow-ad > #slideshowSlides,
.slideshow-ad > div:first-child {
  position: relative; height: 220px;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--glass-shadow);
  background: var(--card-bg);
}
.slideshow-ad .slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  cursor: pointer;
}
.slideshow-ad .slide.active { opacity: 1; transform: scale(1); }
.slideshow-ad .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow-ad .slide-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; color: #fff;
}
.slideshow-ad .slide-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 27, 55, 0.55) 100%);
}
.slideshow-ad .slide-info { padding: 18px 22px; color: #fff; }
.slideshow-ad .slide-info h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.slideshow-ad .slide-info p { font-size: 0.82rem; opacity: 0.92; }
.slide-link {
  display: inline-block; margin-top: 8px; padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.slide-link:hover { background: rgba(255, 255, 255, 0.35); color: #fff; }
.slideshow-nav {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; gap: 6px; justify-content: center; z-index: 3;
}
.slideshow-nav span {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: var(--transition);
}
.slideshow-nav span.active { width: 20px; background: #fff; }

/* ===== 接单播报跑马灯 ===== */
.order-marquee { max-width: 1180px; margin: 0 auto 20px; padding: 0 20px; }
.marquee-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-bottom: none;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  font-size: 0.88rem; font-weight: 700; color: var(--text-primary);
}
.marquee-header svg { width: 16px; height: 16px; color: var(--secondary); }
.marquee-header > a { margin-left: auto; }
.marquee-body {
  height: 132px; overflow: hidden; position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.marquee-track { transition: transform 0.5s ease; }
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px dashed var(--border);
}
.marquee-item:last-child { border-bottom: none; }
.marquee-avatar {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #fbcfe8);
  color: #6d28d9; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.marquee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.marquee-content { flex: 1; min-width: 0; }
.marquee-text {
  font-size: 0.82rem; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.marquee-text .highlight { color: var(--primary-dark); font-weight: 700; }
.marquee-text .game-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; margin: 0 3px;
  background: rgba(139, 124, 246, 0.1); color: var(--primary);
}
.marquee-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.marquee-amount { font-weight: 800; color: var(--secondary); font-size: 0.92rem; flex-shrink: 0; white-space: nowrap; }

/* ===== 游戏分类 ===== */
.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.game-card {
  padding: 16px 8px; text-align: center;
  border-radius: var(--radius-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer; transition: var(--transition);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card.active { border-color: var(--primary); background: rgba(139, 124, 246, 0.08); }
.game-card .game-icon {
  width: 44px; height: 44px; margin: 0 auto 8px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  background: var(--bg-gradient);
  box-shadow: 0 4px 12px rgba(139, 124, 246, 0.3);
  overflow: hidden;
}
.game-card .game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-card h4, .game-card .game-name { font-size: 0.86rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.game-card p, .game-card .game-count { font-size: 0.72rem; color: var(--text-muted); }

/* ===== 打手卡片 ===== */
.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.player-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(139, 124, 246, 0.35); }
.player-card .player-header, .player-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.player-card .player-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 4px 12px rgba(139, 124, 246, 0.25);
}
.player-card .player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-card .player-name { font-weight: 700; font-size: 0.96rem; color: var(--text-primary); }
.player-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-nickname { font-size: 0.96rem; font-weight: 700; color: var(--text-primary); }
.player-card .player-rank, .player-game {
  font-size: 0.78rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
}
.player-card .player-rank .rank-icon { color: var(--warning); }
.player-rating { font-size: 0.8rem; color: var(--warning); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.player-rating svg { width: 13px; height: 13px; }
.player-card .player-stats {
  display: flex; gap: 16px; padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}
.player-card .player-stat { text-align: center; flex: 1; }
.player-card .player-stat .value { font-size: 1rem; font-weight: 700; color: var(--primary); }
.player-card .player-stat .label { font-size: 0.7rem; color: var(--text-muted); }
.player-card .player-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.player-card .player-tag {
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; background: rgba(139, 124, 246, 0.09);
  color: var(--primary); font-weight: 600;
}
.player-card .player-footer, .player-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-card .player-price { font-size: 1.1rem; font-weight: 800; color: var(--secondary); }
.player-card .player-price small { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.player-card .online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block;
  margin-right: 5px; animation: pulse 2s infinite;
}
.player-card .offline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted); display: inline-block; margin-right: 5px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.fav-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: var(--transition);
  flex-shrink: 0;
}
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn:hover { color: var(--secondary); border-color: var(--secondary); }
.fav-btn.favorited { color: var(--secondary); border-color: var(--secondary); background: rgba(244, 114, 182, 0.1); }

/* ===== 筛选条 ===== */
.filter-bar {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 14px; padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); flex-shrink: 0; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  font-family: inherit;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  background: var(--bg-gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 10px rgba(139, 124, 246, 0.3);
}
.load-more {
  display: block; margin: 18px auto 0;
  padding: 10px 34px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-bg);
  color: var(--text-secondary); font-size: 0.87rem; font-family: inherit;
  cursor: pointer; transition: var(--transition);
}
.load-more:hover { border-color: var(--primary); color: var(--primary); }
.load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 排行榜 ===== */
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.leaderboard-list { list-style: none; }
.rank-item, .rank-list .leaderboard-item, .leaderboard-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition);
}
.rank-item:hover, .rank-list .leaderboard-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.rank-list .leaderboard-item .rank, .leaderboard-item .rank, .rank-item .rank-num {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: rgba(148, 163, 184, 0.16); color: var(--text-secondary);
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.rank-list .leaderboard-item:nth-child(1) .rank { background: linear-gradient(135deg, #fde047, #f59e0b); color: #7c2d12; }
.rank-list .leaderboard-item:nth-child(2) .rank { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #334155; }
.rank-list .leaderboard-item:nth-child(3) .rank { background: linear-gradient(135deg, #fdba74, #c2703d); color: #fff; }
.rank-list .lb-avatar, .leaderboard-item .lb-avatar, .rank-item .rank-avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-list .lb-info, .leaderboard-item .lb-info, .rank-item .rank-info { flex: 1; min-width: 0; }
.rank-list .lb-name, .leaderboard-item .lb-name, .rank-item .rank-name {
  font-size: 0.9rem; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-list .lb-game, .leaderboard-item .lb-game, .leaderboard-item .lb-sub { font-size: 0.74rem; color: var(--text-muted); }
.rank-list .lb-score, .leaderboard-item .lb-score, .rank-item .rank-score { font-size: 0.85rem; font-weight: 800; color: var(--primary-dark); flex-shrink: 0; }
/* 第 4 名及以后：不抢前三名的金银铜配色 */
.leaderboard-item .rank.rank-other { background: rgba(148, 163, 184, 0.14); color: var(--text-muted); }

/* ===== VIP 套餐 ===== */
/* 套餐数量由后台配置，用 auto-fit 保证 1~N 个都不会变形 */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.vip-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.vip-card {
  position: relative;
  background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 20px; text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.vip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vip-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(160deg, rgba(139, 124, 246, 0.08), rgba(244, 114, 182, 0.06)), var(--card-bg);
}
.vip-card .vip-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 999px;
  background: var(--bg-gradient); color: #fff;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.vip-card .vip-icon {
  width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: rgba(139, 124, 246, 0.08);
}
.vip-card .vip-icon svg { width: 28px; height: 28px; color: var(--primary); }
.vip-level-name, .vip-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.vip-card .vip-price, .vip-price {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 4px;
  background: var(--bg-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.vip-card .vip-price small, .vip-price small { font-size: 0.82rem; font-weight: 400; -webkit-text-fill-color: var(--text-muted); }
.vip-card .vip-period { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.vip-discount {
  display: inline-block; margin: 4px 0 12px;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(244, 114, 182, 0.12); color: var(--secondary);
  font-size: 0.78rem; font-weight: 700;
}
.vip-card ul, .vip-benefits { list-style: none; text-align: left; margin: 0 0 18px; padding: 0; }
.vip-card ul li, .vip-benefits li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.vip-card ul li::before, .vip-benefits li::before {
  content: '';
  position: absolute; left: 4px; top: 13px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

/* ===== 优惠券 ===== */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.coupon-card {
  background: var(--card-bg);
  border: 1px dashed rgba(244, 114, 182, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; gap: 14px; align-items: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.coupon-card:hover { border-color: var(--secondary); box-shadow: var(--shadow-md); }
.coupon-card.claimed { opacity: 0.62; }
.coupon-card .coupon-amount {
  width: 66px; height: 66px; border-radius: var(--radius-sm);
  background: var(--bg-gradient);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(139, 124, 246, 0.25);
}
.coupon-card .coupon-amount .value { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.1; }
.coupon-card .coupon-amount .unit { font-size: 0.65rem; color: rgba(255, 255, 255, 0.85); }
.coupon-card .coupon-info { flex: 1; min-width: 0; }
.coupon-card .coupon-info h4, .coupon-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.coupon-card .coupon-info p, .coupon-desc { font-size: 0.77rem; color: var(--text-secondary); }
.coupon-card .coupon-info .expiry, .coupon-expire { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.coupon-btn-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ===== 下单步骤条 ===== */
.progress-steps { display: flex; align-items: center; gap: 8px; margin: 6px 0 20px; }
.progress-step { display: flex; align-items: center; gap: 7px; }
.progress-step .step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(148, 163, 184, 0.18); color: var(--text-secondary);
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.progress-step.active .step-num {
  background: var(--bg-gradient); color: #fff;
  box-shadow: 0 4px 12px rgba(139, 124, 246, 0.35);
}
.progress-step.completed .step-num { background: var(--success); color: #fff; }
.progress-step .step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.progress-step.active .step-label { color: var(--primary-dark); }
.progress-line { flex: 1; min-width: 18px; height: 2px; border-radius: 999px; background: var(--border); }
.progress-line.completed { background: var(--success); }

/* ===== 登录方式标签 ===== */
.login-method-tabs { display: flex; gap: 10px; }
.login-tab {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 8px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.login-tab svg { width: 17px; height: 17px; }
.login-tab:hover { border-color: var(--primary); color: var(--primary); }
.login-tab.active { border-color: var(--primary); color: var(--primary-dark); background: rgba(139, 124, 246, 0.08); }
.login-tab .tab-badge {
  position: absolute; top: -8px; right: 8px;
  padding: 1px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #fb7185);
  color: #fff; font-size: 0.62rem; font-weight: 700;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-group-full { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 600;
}
.form-label .required { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem; transition: var(--transition);
  font-family: inherit; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.12);
  background: #fff;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 85px; }
.form-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a49db8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-hint, .field-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

.search-box { position: relative; display: flex; align-items: center; }
.search-box .form-input { padding-left: 40px; }
.search-box .search-icon, .search-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a49db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}
.search-box .search-icon { position: absolute; left: 13px; }

/* ===== 订单摘要与支付方式 ===== */
.order-summary {
  background: rgba(139, 124, 246, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 16px;
}
.order-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-secondary); padding: 4px 0;
}
.order-summary-row b { color: var(--text-primary); font-weight: 600; }
.order-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.92rem; font-weight: 700; color: var(--text-primary);
}
.order-summary-total .total-price { font-size: 1.3rem; font-weight: 800; color: var(--secondary); }
.order-price-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; text-align: right; }

.pay-method-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-method-chip {
  flex: 1; min-width: 96px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card-bg);
  font-size: 0.86rem; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.pay-method-chip svg { width: 18px; height: 18px; }
.pay-method-chip input { display: none; }
.pay-method-chip.active, .pay-method-chip:has(input:checked) {
  border-color: var(--primary); color: var(--primary);
  background: rgba(139, 124, 246, 0.07); font-weight: 600;
}

/* ===== 订单卡片 ===== */
.order-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 14px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card .order-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.order-card .order-id, .order-id { font-size: 0.78rem; color: var(--text-muted); font-family: Consolas, monospace; }
.order-card .order-body { display: flex; align-items: center; gap: 14px; }
.order-card .order-game-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; color: #fff;
  flex-shrink: 0; background: var(--bg-gradient);
  overflow: hidden;
}
.order-card .order-info { flex: 1; min-width: 0; }
.order-card .order-info h4, .order-info .order-game {
  font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-card .order-info p, .order-info .order-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.order-card .order-price, .order-price { font-size: 1.1rem; font-weight: 800; color: var(--secondary); white-space: nowrap; flex-shrink: 0; }
.order-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.rank-line { font-size: 0.8rem; color: var(--text-secondary); }
.rank-line b { color: var(--primary); font-weight: 600; }
.progress-track, .order-progress-bar {
  height: 6px; border-radius: 3px;
  background: rgba(167, 152, 214, 0.15);
  overflow: hidden; margin-top: 10px;
}
.progress-fill, .order-progress-fill {
  height: 100%; border-radius: 3px;
  background: var(--bg-gradient);
  transition: width 0.4s ease;
}
.progress-text, .order-progress-text { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.mini-progress { height: 4px; border-radius: 2px; background: rgba(167, 152, 214, 0.15); overflow: hidden; }
.mini-progress > div { height: 100%; background: var(--bg-gradient); border-radius: 2px; }

/* ===== 个人中心 ===== */
.profile-header {
  text-align: center; padding: 26px 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 14px;
}
.avatar-upload { position: relative; display: inline-block; width: 76px; height: 76px; cursor: pointer; }
/* 文件框铺满头像并透明，点「更换头像」任意位置都能直接唤起相册/文件选择 */
.avatar-upload input, .avatar-upload input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; opacity: 0; cursor: pointer; z-index: 2;
}
.avatar-preview {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
  color: #fff; font-size: 1.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(139, 124, 246, 0.3);
  overflow: hidden;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(30, 27, 55, 0.45); color: #fff;
  font-size: 0.62rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  opacity: 0; transition: var(--transition);
}
.avatar-overlay svg { width: 16px; height: 16px; }
.avatar-upload:hover .avatar-overlay { opacity: 1; }
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, #a5b4fc, #f9a8d4);
  color: #fff; font-size: 1.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(139, 124, 246, 0.3);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.profile-vip {
  display: inline-block; margin-top: 4px; padding: 3px 14px;
  border-radius: 999px; background: rgba(244, 114, 182, 0.12);
  color: var(--secondary); font-size: 0.74rem; font-weight: 700;
}
.profile-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.profile-balance { margin-top: 10px; }
.profile-balance .balance-num { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.profile-balance .balance-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-mini {
  background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 14px 10px; text-align: center;
}
.stat-mini .stat-value { font-size: 1.2rem; }
.stat-mini .stat-label { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.profile-menu {
  display: flex; flex-direction: column; gap: 8px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden; margin-bottom: 14px;
}
.profile-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; color: var(--text-primary);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: none; background: transparent; text-align: left;
  font-family: inherit; width: 100%;
}
.profile-menu-item:hover { background: rgba(139, 124, 246, 0.06); }
.profile-menu-item svg { color: var(--primary); flex-shrink: 0; width: 19px; height: 19px; }
.profile-menu-item span { flex: 1; }
.profile-menu-item .arrow, .profile-menu-item .pm-arrow { margin-left: auto; color: var(--text-muted); font-weight: 400; width: 15px; height: 15px; flex: none; }
.profile-menu-item .pm-extra { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.profile-menu-item.danger { color: var(--danger); }
.profile-menu-item.danger svg { color: var(--danger); }
.profile-actions { margin-top: 14px; }

/* ============================================================
   CHUNK 3 · 按钮 / 徽章 / 工具类 / 弹窗 / Toast / 导航 /
             评价 / 详情 / 陪玩专区 / 下单支付
   ============================================================ */

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border: none; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: var(--transition);
  font-family: inherit; white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--bg-gradient); color: #fff; box-shadow: 0 6px 18px rgba(139, 124, 246, 0.28); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(139, 124, 246, 0.36); }
.btn-secondary { background: rgba(139, 124, 246, 0.12); color: var(--primary-dark); }
.btn-secondary:hover:not(:disabled) { background: rgba(139, 124, 246, 0.2); }
.btn-ghost { background: rgba(255, 255, 255, 0.6); color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: rgba(139, 124, 246, 0.07); }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn.icon-btn { padding: 7px 10px; }

/* ===== 徽章 ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge-primary { background: rgba(139, 124, 246, 0.14); color: var(--primary-dark); }
.badge-success { background: rgba(16, 185, 129, 0.14); color: #059669; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.badge-danger  { background: rgba(239, 68, 68, 0.13); color: var(--danger); }
.badge-gray    { background: rgba(148, 163, 184, 0.16); color: var(--text-secondary); }

.kind-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; margin-right: 6px; vertical-align: 1px;
}
.kind-badge.kind-boost { background: rgba(139, 124, 246, 0.14); color: var(--primary-dark); }
.kind-badge.kind-play  { background: rgba(244, 114, 182, 0.16); color: #db2777; }

/* ===== 工具类 ===== */
.w-full { width: 100%; }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mono, .mono-note { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mono-note { font-size: 0.76rem; color: var(--text-muted); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ===== 空状态 / 加载 ===== */
.empty-state {
  grid-column: 1 / -1;
  padding: 38px 20px; text-align: center; color: var(--text-muted);
}
.empty-state svg { opacity: 0.45; margin-bottom: 10px; }
.empty-state p { font-size: 0.86rem; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 3px solid rgba(139, 124, 246, 0.18); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton-card { pointer-events: none; }
.skeleton-line {
  height: 13px; border-radius: 7px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(196,181,253,0.14) 25%, rgba(196,181,253,0.3) 37%, rgba(196,181,253,0.14) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
}
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ===== 底部导航 ===== */
.nav-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -6px 22px rgba(167, 139, 250, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 4px; font-size: 0.72rem; color: var(--text-muted); text-decoration: none;
  transition: var(--transition);
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: var(--primary); }
.nav-item.active { color: var(--primary); font-weight: 700; }

/* ===== 移动端侧滑菜单 ===== */
.mobile-menu { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mobile-menu-overlay {
  position: absolute; inset: 0; background: rgba(59, 52, 80, 0.34);
  opacity: 0; transition: opacity 0.28s ease;
}
.mobile-menu.open .mobile-menu-overlay { opacity: 1; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(78vw, 300px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--glass-border);
  box-shadow: -12px 0 40px rgba(139, 124, 246, 0.16);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-light);
  font-weight: 700; color: var(--text-primary);
}
.mobile-menu-header button {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(139, 124, 246, 0.1); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.mobile-menu-header button:hover { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.mobile-menu-nav { display: flex; flex-direction: column; padding: 10px 0; }
.mobile-menu-nav a {
  padding: 13px 22px; font-size: 0.92rem; color: var(--text-secondary);
  border-left: 3px solid transparent; transition: var(--transition);
}
.mobile-menu-nav a:hover { background: rgba(139, 124, 246, 0.07); color: var(--primary); border-left-color: var(--primary); }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(59, 52, 80, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateY(14px) scale(0.98); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); }
.modal-header {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.modal-close {
  width: 30px; height: 30px; flex-shrink: 0; border: none; border-radius: 50%;
  background: rgba(139, 124, 246, 0.1); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.modal-body { padding: 22px; }
.modal-footer {
  display: flex; gap: 10px; align-items: center;
  padding: 16px 22px; border-top: 1px solid var(--border-light);
  position: sticky; bottom: 0; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed; top: calc(var(--header-height) + 12px); right: 16px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none; max-width: min(360px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; line-height: 1.4;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  opacity: 1; transform: translateX(0); transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.toast svg { flex-shrink: 0; }
.toast.success { color: #059669; border-left: 3px solid var(--success); }
.toast.error   { color: var(--danger); border-left: 3px solid var(--danger); }
.toast.warning { color: #d97706; border-left: 3px solid var(--warning); }
.toast.info    { color: var(--primary-dark); border-left: 3px solid var(--primary); }

/* ===== 页签 ===== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn {
  padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); color: var(--text-secondary);
  font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--bg-gradient); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(139,124,246,0.26); }

.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rank-tab {
  padding: 7px 15px; border: 1.5px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); color: var(--text-secondary);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.rank-tab:hover { border-color: var(--primary); color: var(--primary); }
.rank-tab.active { background: rgba(139, 124, 246, 0.13); border-color: var(--primary); color: var(--primary-dark); }

.seg-switch { display: inline-flex; background: rgba(139, 124, 246, 0.09); border-radius: 999px; padding: 3px; gap: 3px; }
.seg-btn {
  border: none; background: transparent; padding: 8px 22px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.seg-btn.active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(139,124,246,0.2); }

/* ===== 消息通知 ===== */
.notif-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 22px; border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem; color: var(--text-secondary);
}
.notification-list { list-style: none; }
.notification-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 22px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: var(--transition);
}
.notification-item:hover { background: rgba(139, 124, 246, 0.05); }
.notification-item.unread { background: rgba(139, 124, 246, 0.06); }
.notification-item.unread .notif-content h4::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--secondary); margin-right: 7px; vertical-align: 1px;
}
.notif-icon {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 124, 246, 0.1); color: var(--primary-dark);
}
.notification-item.unread .notif-icon { background: rgba(139, 124, 246, 0.18); color: var(--primary); }
.notif-content { flex: 1; min-width: 0; }
.notif-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.notif-content p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; word-break: break-word; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ===== 下单动态列表 ===== */
.notice-list { list-style: none; }
.notice-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; border-bottom: 1px solid var(--border-light);
}
.notice-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 0.84rem; }
.notice-user { font-weight: 700; color: var(--text-primary); }
.notice-game {
  padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(139, 124, 246, 0.12); color: var(--primary-dark);
}
.notice-svc { color: var(--text-secondary); font-size: 0.78rem; }
.notice-right { text-align: right; flex-shrink: 0; }
.notice-amount { display: block; font-weight: 700; color: var(--secondary); font-size: 0.9rem; }
.notice-time { display: block; font-size: 0.72rem; color: var(--text-muted); }

/* ===== 安全 / 客服 ===== */
.safety-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.07); border: 1px solid rgba(16, 185, 129, 0.18);
}
.sb-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px;
  background: rgba(16, 185, 129, 0.14); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.safety-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.safety-list li {
  position: relative; padding-left: 20px; font-size: 0.84rem;
  color: var(--text-secondary); line-height: 1.6;
}
.safety-list li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.safety-list b { color: var(--text-primary); }
.kefu-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  background: rgba(139, 124, 246, 0.05); border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.kefu-label { font-size: 0.82rem; color: var(--text-secondary); flex-shrink: 0; }
.kefu-value { flex: 1; font-weight: 700; color: var(--text-primary); font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* ===== 详情通用 ===== */
.detail-head { display: flex; align-items: center; gap: 14px; }
.detail-name { font-size: 1.08rem; font-weight: 700; color: var(--text-primary); }
.detail-sub { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }
.detail-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.detail-unit { font-size: 0.72rem; color: var(--text-muted); }
.detail-sub-title {
  font-size: 0.86rem; font-weight: 700; color: var(--text-primary);
  margin: 20px 0 10px; padding-left: 10px; border-left: 3px solid var(--primary);
}
.detail-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.kv-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 0.86rem;
}
.kv-row > span:first-child { color: var(--text-secondary); flex-shrink: 0; }
.kv-row > span:last-child { text-align: right; word-break: break-word; }
.kv-row.total {
  border-bottom: none; margin-top: 8px; padding-top: 14px;
  border-top: 2px solid var(--border); font-weight: 700; font-size: 1.1rem;
}
.kv-row .price { color: var(--warning); }
.order-no-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px;
  background: rgba(139, 124, 246, 0.05); border-radius: var(--radius-md);
}
.order-no-box .mono { flex: 1; font-size: 0.84rem; color: var(--text-primary); word-break: break-all; }
.qrcode-hint {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px;
  background: rgba(16, 185, 129, 0.06); border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--radius-md);
}
.qrcode-hint b { display: block; font-size: 0.86rem; color: var(--text-primary); margin-bottom: 3px; }
.qrcode-hint p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ===== 评价 ===== */
.review-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.review-item {
  padding: 13px 15px; background: rgba(139, 124, 246, 0.04);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.review-user { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.review-stars { display: inline-flex; gap: 2px; color: rgba(196, 181, 253, 0.5); }
.review-text { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.review-reply {
  margin-top: 8px; padding: 8px 10px; font-size: 0.78rem; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7); border-radius: var(--radius-sm);
}
.review-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }
.star { display: inline-flex; color: rgba(196, 181, 253, 0.5); }
.star.on { color: #fbbf24; }
.star-picker { display: flex; gap: 6px; }
.star-pick {
  width: 38px; height: 38px; border: 1.5px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, 0.6); color: rgba(196, 181, 253, 0.55);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.star-pick svg { width: 18px; height: 18px; }
.star-pick.on { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.09); }
.star-pick:hover { border-color: var(--primary); }

/* ===== 金额构成 / 支付 / 充值 ===== */
.order-summary {
  background: rgba(139, 124, 246, 0.045); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 16px 18px; margin-top: 16px;
}
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.86rem; color: var(--text-secondary); }
.sum-row > span:last-child { color: var(--text-primary); font-weight: 600; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--border);
  font-weight: 700; font-size: 1.05rem;
}
.sum-total .price { color: var(--warning); font-size: 1.2rem; }
.summary-hint { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 6px 0; }
.summary-error { font-size: 0.82rem; color: var(--danger); text-align: center; padding: 6px 0; }

.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip { flex: 1; min-width: 92px; text-align: center; cursor: pointer; padding: 11px 8px; }

.balance-box {
  padding: 18px; margin-bottom: 18px; text-align: center;
  background: linear-gradient(135deg, rgba(139,124,246,0.1), rgba(244,114,182,0.08));
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
}
.balance-label { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; }
.balance-value { font-size: 1.9rem; font-weight: 800; color: var(--primary-dark); }
.amount-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  background: rgba(139, 124, 246, 0.05); border-radius: var(--radius-md);
  font-size: 0.85rem; color: var(--text-secondary);
}
.amount-value { font-size: 1.3rem; font-weight: 800; color: var(--warning); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-chip {
  padding: 14px 6px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62); color: var(--text-primary);
  font-size: 0.98rem; font-weight: 700; cursor: pointer; transition: var(--transition);
  font-family: inherit; text-align: center; line-height: 1.4;
}
.amount-chip small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--success); margin-top: 3px; }
.amount-chip:hover { border-color: var(--primary); }
.amount-chip.active { border-color: var(--primary); background: rgba(139, 124, 246, 0.12); color: var(--primary-dark); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .form-input { flex: 1; text-align: center; font-weight: 700; }
.stepper .btn { width: 40px; height: 40px; padding: 0; font-size: 1.1rem; flex-shrink: 0; }

/* ===== 陪玩专区 ===== */
.companion-rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.companion-rail::-webkit-scrollbar { height: 5px; }
.companion-card {
  flex: 0 0 210px; scroll-snap-align: start;
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.companion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--card-hover); }
.companion-click { cursor: pointer; }
.companion-cover { position: relative; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #fbc2eb, #a6c1ee); overflow: hidden; }
.companion-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.companion-cover-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; color: rgba(255, 255, 255, 0.85);
}
.companion-state {
  position: absolute; top: 9px; left: 9px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.companion-state.on { background: rgba(16, 185, 129, 0.9); color: #fff; }
.companion-state.off { background: rgba(100, 116, 139, 0.85); color: #fff; }
.companion-voice {
  position: absolute; bottom: 9px; left: 9px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.88); color: var(--primary-dark);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.companion-body { padding: 12px 13px 8px; flex: 1; }
.companion-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 0.92rem; font-weight: 700; color: var(--text-primary);
}
.companion-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 0.76rem; color: #f59e0b; font-weight: 700; }
.companion-games { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.companion-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 13px; border-top: 1px solid var(--border-light);
}
.companion-price { font-size: 1.02rem; font-weight: 800; color: var(--secondary); }
.companion-price small { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.cmp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cmp-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border-light); cursor: zoom-in;
}
.cmp-tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  background: rgba(244, 114, 182, 0.12); color: #db2777;
}
.cmp-order-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 15px; margin-bottom: 16px;
  background: rgba(244, 114, 182, 0.07); border-radius: var(--radius-md);
}

/* ===== 补：既有组件里新用到的子元素 ===== */
.hot-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.hot-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(139, 124, 246, 0.09); }
.game-card { cursor: pointer; }
.game-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.player-head-click { cursor: pointer; }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.player-stat .value.small { font-size: 0.82rem; line-height: 1.3; }
.order-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; flex-wrap: wrap; }
.order-id { cursor: pointer; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.leaderboard-item { cursor: pointer; }
.vip-coupon-tip, .vip-discount-tip {
  margin-top: 8px; padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 0.74rem; font-weight: 600; text-align: center;
}
.vip-coupon-tip { background: rgba(244, 114, 182, 0.1); color: #db2777; }
.vip-discount-tip { background: rgba(139, 124, 246, 0.1); color: var(--primary-dark); }
.coupon-card.disabled { opacity: 0.6; }
.progress-track { margin-top: 8px; height: 6px; border-radius: 999px; background: rgba(139, 124, 246, 0.13); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.4s ease; }
.progress-text { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.rank-line { font-size: 0.76rem; color: var(--text-secondary); margin-top: 3px; }

/* ===== 账号设置 / 充值记录 ===== */
.sms-row { display: flex; gap: 10px; align-items: stretch; }
.sms-row .form-input { flex: 1; min-width: 0; }
.sms-row .btn { flex-shrink: 0; white-space: nowrap; }
.summary-strip {
  display: flex; gap: 10px; margin-bottom: 18px;
}
.summary-strip > div {
  flex: 1; text-align: center; padding: 13px 8px;
  background: rgba(139, 124, 246, 0.055); border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.summary-strip b { display: block; font-size: 1rem; font-weight: 800; color: var(--primary-dark); }
.summary-strip span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }
.record-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.record-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; background: rgba(139, 124, 246, 0.04);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
}
.record-main { min-width: 0; flex: 1; }
.record-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.record-bonus { font-size: 0.74rem; font-weight: 600; color: var(--success); }
.record-sub {
  font-size: 0.74rem; color: var(--text-muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.record-right { text-align: right; flex-shrink: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.pager-info { font-size: 0.78rem; color: var(--text-muted); }

/* ===== 响应式补丁 ===== */
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .modal-content { width: 100%; max-height: 92vh; border-radius: var(--radius-lg); }
  .modal-header, .modal-footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-footer { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .modal-body { padding: 16px; }
  .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .notification-item, .notice-item, .notif-toolbar { padding-left: 16px; padding-right: 16px; }
  .toast-container { right: 12px; left: 12px; align-items: stretch; max-width: none; }
  .toast { justify-content: flex-start; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .companion-card { flex: 0 0 168px; }
  .detail-head { gap: 10px; }
  .kv-row { font-size: 0.82rem; }
  .pay-chip { min-width: 78px; font-size: 0.8rem; padding: 10px 6px; }
  .star-pick { width: 34px; height: 34px; }
}

/* ============================================================
   首页改版（h 版）
   - 桌面：左文案 + 右数据面板；轮播与实时动态并排
   - 平板 <=960：主视觉改单列，数据横排
   - 手机 <=640：打手卡片改为横滑轨道，游戏三列
   ============================================================ */
.home-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 18px 20px 10px;
  display: flex; flex-direction: column; gap: 18px;
}

/* --- 主视觉 --- */
.home-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px; align-items: center;
  padding: 30px 32px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(139, 124, 246, 0.16);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.home-hero::before {
  content: ''; position: absolute; width: 380px; height: 380px;
  right: -110px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.30), transparent 66%);
  pointer-events: none;
}
.home-hero::after {
  content: ''; position: absolute; width: 420px; height: 420px;
  left: -150px; bottom: -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.28), transparent 66%);
  pointer-events: none;
}
.hero-copy, .hero-side { position: relative; z-index: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(139, 124, 246, 0.12); color: var(--primary-dark);
  font-size: 0.76rem; font-weight: 700;
}
.hero-badge svg { color: var(--primary); }
.home-hero h1 {
  margin: 14px 0 10px;
  font-size: 2.15rem; line-height: 1.24; font-weight: 800;
  letter-spacing: -0.5px; color: var(--text-primary);
}
.home-hero h1 span {
  display: block;
  background: linear-gradient(135deg, #7c6cf0, #f472b6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.home-hero .hero-sub {
  color: var(--text-secondary); font-size: 0.92rem;
  max-width: 520px; margin-bottom: 20px;
}
.home-hero .search-box {
  max-width: 540px; margin: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 6px 18px rgba(139, 124, 246, 0.10);
  transition: var(--transition);
}
.home-hero .search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 124, 246, 0.12), 0 6px 18px rgba(139, 124, 246, 0.12);
}
.home-hero .search-box .search-icon {
  position: static; width: auto; height: auto; background: none;
  display: flex; color: var(--text-muted); flex-shrink: 0;
}
.home-hero .search-box input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  padding: 8px 4px; font-size: 0.92rem; color: var(--text-primary);
}
.home-hero .search-box input::placeholder { color: var(--text-muted); }
.home-hero .search-box .btn { flex-shrink: 0; border-radius: 999px; padding: 9px 22px; }
.home-hero .hot-tags { justify-content: flex-start; margin-top: 14px; }

/* 右栏数据面板 */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-stats {
  max-width: none; margin: 0; padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.hero-stats .stat-card {
  padding: 14px; border-radius: 16px; gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(139, 124, 246, 0.07);
}
.hero-stats .stat-card::before { height: 3px; opacity: 0.9; }
.hero-stats .stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139, 124, 246, 0.13); }
.hero-stats .stat-icon { width: 36px; height: 36px; border-radius: 12px; }
.hero-stats .stat-icon svg { width: 18px; height: 18px; }
.hero-stats .stat-value { font-size: 1.28rem; line-height: 1.15; }
.hero-stats .stat-label { font-size: 0.72rem; margin-top: 2px; color: var(--text-muted); }
.stat-card.tone-violet .stat-icon { background: rgba(139, 124, 246, 0.13); color: #7c6cf0; }
.stat-card.tone-blue .stat-icon { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-card.tone-teal .stat-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-card.tone-amber .stat-icon { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 16px;
  font-size: 0.74rem; color: var(--text-muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust svg { color: var(--success); }

/* --- 快捷入口 --- */
.home-quick {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.quick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  color: inherit; transition: var(--transition);
}
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.92); color: inherit; }
.quick-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.quick-icon.tone-purple { background: rgba(139, 124, 246, 0.12); color: #7c6cf0; }
.quick-icon.tone-pink { background: rgba(244, 114, 182, 0.13); color: #ec4899; }
.quick-icon.tone-cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.quick-icon.tone-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.quick-text { min-width: 0; display: flex; flex-direction: column; }
.quick-text b { font-size: 0.86rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.quick-text small { font-size: 0.7rem; color: var(--text-muted); }

/* --- 轮播 + 实时动态 --- */
.home-feature {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 14px; align-items: stretch;
}
.home-feature .slideshow-ad { max-width: none; margin: 0; padding: 0; }
.home-feature .slideshow-ad > #slideshowSlides { height: 180px; border-radius: var(--radius-lg); }
.home-feature .order-marquee { max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.home-feature .marquee-header { padding: 11px 16px 8px; }
.home-feature .marquee-body { height: 138px; }
.home-feature .marquee-item { padding: 9px 16px; }

/* --- 版块 --- */
.home-section { display: block; }
.home-section .section-title { margin-bottom: 12px; }
.home-section .section-title h2 svg { flex-shrink: 0; }
.home-section .section-title a svg { width: 14px; height: 14px; }
.rank-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.rank-toolbar .rank-tabs { margin-bottom: 0; }

/* --- 响应式 --- */
@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stats .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .home-feature { grid-template-columns: minmax(0, 1fr); }
  .home-feature .slideshow-ad > #slideshowSlides { height: 200px; }
  .home-feature .marquee-body { height: 138px; }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .player-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .home-wrap { padding: 14px 14px 6px; gap: 14px; }
  .home-hero { padding: 22px 18px; border-radius: 22px; }
  .home-hero h1 { font-size: 1.7rem; }
  .home-hero .hero-sub { font-size: 0.86rem; margin-bottom: 16px; }
  .hero-badge { font-size: 0.7rem; padding: 5px 10px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-trust { gap: 6px 12px; font-size: 0.7rem; }
  .home-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick-item { padding: 10px 12px; border-radius: 14px; }
  .quick-icon { width: 34px; height: 34px; border-radius: 11px; }
  .quick-text b { font-size: 0.8rem; }
  .quick-text small { font-size: 0.66rem; }
  .home-feature .slideshow-ad > #slideshowSlides { height: 168px; }
  .home-feature .marquee-body { height: 124px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .game-card { padding: 13px 6px; }
  .game-card .game-icon { width: 40px; height: 40px; border-radius: 12px; }
  .game-card .game-name { font-size: 0.78rem; }
  .game-card .game-count { font-size: 0.68rem; }
  .home-section .section-title h2 { font-size: 1.02rem; }
  .home-hero .search-box input { font-size: 16px; }
}
@media (max-width: 640px) {
  .home-wrap { padding: 12px 12px 4px; }
  .home-hero { padding: 20px 15px; }
  .home-hero h1 { font-size: 1.5rem; }
  .home-hero .search-box { padding: 6px 6px 6px 13px; }
  .hero-stats .stat-card { padding: 11px 12px; }
  .hero-stats .stat-value { font-size: 1.15rem; }
  .hero-stats .stat-icon { width: 30px; height: 30px; border-radius: 10px; }
  .hero-stats .stat-icon svg { width: 16px; height: 16px; }
  .home-feature .slideshow-ad > #slideshowSlides { height: 160px; }
  .home-feature .marquee-body { height: 118px; }
  #servicePlayerGrid { grid-template-columns: 1fr; }
  /* 手机端推荐打手改为横滑，节省纵向空间 */
  #playerGrid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 10px;
    margin: 0 -12px; padding: 0 12px 6px;
    scrollbar-width: none;
  }
  #playerGrid::-webkit-scrollbar { display: none; }
  #playerGrid > .player-card { flex: 0 0 84%; scroll-snap-align: start; }
  #playerGrid > .empty-state { flex: 0 0 100%; }
  .player-card { padding: 15px; }
  .rank-toolbar { gap: 8px; }
  .rank-toolbar .rank-tab { padding: 6px 12px; font-size: 0.76rem; }
  .home-section .section-title a { font-size: 0.76rem; }
}
@media (max-width: 400px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero h1 { font-size: 1.36rem; }
  .quick-text small { display: none; }
}

/* ============================================================
   陪玩卡片底栏修复 + 移动端流畅度（i 版）
   1) 210px 卡片里价格和两个按钮总宽超出，导致「约 TA」被圆角裁掉、/小时 折行
   2) 手机上全屏渐变位移动画 + 满地毛玻璃 = 每帧重绘，滚动发卡
   ============================================================ */
.companion-foot { flex-wrap: wrap; row-gap: 8px; }
.companion-price { white-space: nowrap; flex-shrink: 0; }
.companion-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.companion-rail .companion-foot { padding: 10px 12px; }
.companion-rail .companion-price { font-size: 0.95rem; }
.companion-rail .companion-price small { font-size: 0.62rem; }
.companion-rail .companion-foot .btn.icon-btn { width: 30px; height: 30px; padding: 0; }
.companion-rail .companion-foot .btn-sm { padding: 6px 11px; font-size: 0.76rem; }

@media (max-width: 640px) {
  /* 窄卡片（首页轨道和陪玩专区网格都只有 150-170px）：
     价格两行紧凑排 + 约 TA 同行，收藏挪到封面右上角，底栏不再被挤爆 */
  .companion-card { position: relative; }
  .companion-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; padding: 8px 10px 10px;
  }
  .companion-price {
    display: flex; flex-direction: column; align-items: flex-start;
    font-size: 0.98rem; line-height: 1.15; white-space: nowrap; min-width: 0;
  }
  .companion-price small { font-size: 0.62rem; margin: 1px 0 0; }
  .companion-actions { display: contents; }
  .companion-actions .icon-btn {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 28px; height: 28px; padding: 0;
    background: rgba(255, 255, 255, 0.88); border-color: rgba(255, 255, 255, 0.92);
  }
  .companion-actions .btn-primary { padding: 7px 13px; font-size: 0.78rem; }
  /* 横滑轨道不显示滚动条，避免出现一条灰色小横杠 */
  .companion-rail { scrollbar-width: none; -ms-overflow-style: none; }
  .companion-rail::-webkit-scrollbar { display: none; height: 0; }
  #playerGrid { scrollbar-width: none; }
}

@media (max-width: 1024px) {
  /* 全屏 fixed 渐变层做 20s 位移动画，会让整页每帧重绘 */
  body::before { animation: none; top: 0; left: 0; width: 100%; height: 100%; }
  :root { --glass-blur: none; }
  /* 毛玻璃在移动 GPU 上开销极高，改用高不透明度底色，观感基本一致 */
  .header, .header-btn, .user-info, .nav-bottom, .toast,
  .home-hero, .quick-item, .glass-card, .game-card, .filter-bar,
  .rank-item, .leaderboard-item, .marquee-header, .marquee-body,
  .modal-overlay, .modal-header, .modal-footer, .mobile-menu-panel,
  .companion-state, .companion-voice, .slide-link,
  .hero-section .search-box {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .header { background: rgba(255, 255, 255, 0.96); }
  .nav-bottom { background: rgba(255, 255, 255, 0.97); }
  .home-hero { background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)); }
  .quick-item, .glass-card, .filter-bar, .game-card, .rank-item, .leaderboard-item,
  .marquee-header, .marquee-body { background: rgba(255, 255, 255, 0.9); }
}

/* 触屏没有 hover：点击后残留的位移/阴影会显得页面在抖 */
@media (hover: none) {
  .player-card:hover, .companion-card:hover, .quick-item:hover, .game-card:hover,
  .stat-card:hover, .rank-item:hover, .rank-list .leaderboard-item:hover,
  .header-btn:hover, .btn-primary:hover:not(:disabled) { transform: none; }
}

/* ============================================================
   手机端通用适配（k 版）
   1) 订单卡在窄屏被价格和三个按钮挤到只剩一个字宽，中文变成竖排
   2) player.php 的通知弹窗用的是 .modal，样式表原来只有 .modal-content
   3) 长单号 / 输入框 / 弹窗按钮在窄屏上的换行与缩放
   ============================================================ */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: 88vh; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(59, 52, 80, 0.22);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show .modal { transform: none; }
.modal > .modal-header { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

#ordersList .order-card .order-info h4 { white-space: normal; overflow: visible; text-overflow: clip; }

@media (max-width: 640px) {
  /* 图标 + 信息占整行，价格与按钮另起一行，信息列不会再被挤成竖排 */
  #ordersList .order-card { padding: 14px; }
  #ordersList .order-card .order-body {
    display: grid; grid-template-columns: 44px minmax(0, 1fr);
    align-items: start; gap: 10px 12px;
  }
  #ordersList .order-card .order-game-icon { width: 44px; height: 44px; border-radius: 13px; }
  #ordersList .order-card .order-info { min-width: 0; }
  #ordersList .order-card .order-info h4 { line-height: 1.45; }
  #ordersList .order-card .order-info p { line-height: 1.55; font-size: 0.78rem; overflow-wrap: anywhere; }
  #ordersList .order-card .order-body > div:last-child {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; text-align: left;
  }
  #ordersList .order-card .order-price { font-size: 1.1rem; }
  #ordersList .order-card .order-actions { margin-top: 0; flex: 1 1 auto; justify-content: flex-end; }
  #ordersList .order-card .order-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
  #ordersList .order-card .order-id { overflow-wrap: anywhere; }

  /* 长串（单号 / 邮箱 / 链接）不撑破卡片 */
  .kv-row { flex-wrap: wrap; gap: 2px 12px; }
  .kv-row > span:last-child { text-align: right; overflow-wrap: anywhere; }
  .record-sub { overflow-wrap: anywhere; }
  .modal-body { overflow-wrap: anywhere; }

  /* iOS 聚焦输入框会放大页面，16px 是阈值 */
  .form-input, .form-select, .form-textarea { font-size: 16px !important; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 400px) {
  #ordersList .order-card .order-actions .btn { font-size: 0.78rem; padding-left: 8px; padding-right: 8px; }
}

