/**
 * 电竞邦 · 微信端全局设计系统 v3
 * 品牌色：紫-青渐变（与官网 djb-theme.css 保持一致）
 * 移动优先 · 触控友好 · 全95个类名完整覆盖
 */

/* ===== CSS 变量 ===== */
.wx-djb {
  --wx-primary: #6b5ce7;
  --wx-primary-dark: #5646d4;
  --wx-primary-darker: #4538b8;
  --wx-primary-light: #f1eeff;
  --wx-primary-muted: #9d90f0;
  --wx-gradient-start: #7c3aed;
  --wx-gradient-end: #38bdf8;
  --wx-gradient: linear-gradient(135deg, var(--wx-gradient-start), var(--wx-gradient-end));
  --wx-bg: #f5f3fa;
  --wx-surface: #ffffff;
  --wx-text: #1a1630;
  --wx-text-muted: #6b6880;
  --wx-text-light: #9b98b0;
  --wx-border: #e8e5f2;
  --wx-danger: #e53935;
  --wx-success: #10b981;
  --wx-warning: #f59e0b;
  --wx-accent-green: #159f95;
  --wx-accent-green-light: #e0f2f1;
  --wx-accent-orange: #f97316;
  --wx-radius: 12px;
  --wx-radius-sm: 8px;
  --wx-radius-lg: 16px;
  --wx-shadow-sm: 0 2px 8px rgba(107,92,231,.06);
  --wx-shadow: 0 4px 16px rgba(107,92,231,.08);
  --wx-shadow-lg: 0 8px 32px rgba(107,92,231,.12);
  --wx-safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  background: var(--wx-bg);
  color: var(--wx-text);
  margin: 0; padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ===== Reset ===== */
.wx-djb *, .wx-djb *::before, .wx-djb *::after { box-sizing: border-box; }
.wx-djb a { color: var(--wx-primary); text-decoration: none; }
.wx-djb img { max-width: 100%; height: auto; }
.wx-djb input, .wx-djb select, .wx-djb textarea, .wx-djb button { font-family: inherit; font-size: inherit; }
.wx-djb ul, .wx-djb ol { margin: 0; padding-left: 18px; }

/* ===== Header ===== */
.wx-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px;
  background: linear-gradient(135deg, #1a1035 0%, #312e81 24%, #5b21b6 46%, #7c3aed 62%, #4f46e5 78%, #0891b2 100%);
  box-shadow: 0 2px 12px rgba(91,33,182,.25);
}
.wx-header .wx-logo {
  font-size: 18px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, #f5f3ff 0%, #c4b5fd 40%, #a5f3fc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.wx-header .wx-back {
  display: flex; align-items: center; gap: 4px; font-size: 14px;
  color: rgba(255,255,255,.85); padding: 6px 2px;
}
.wx-header .wx-back::before { content: '\2039'; font-size: 22px; line-height: 1; font-weight: 300; }
.wx-header .wx-header-right {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.8); font-size: 13px;
}

/* ===== Page Header (简约标题栏，用于公众号导航) ===== */
.wx-page-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 16px;
  background: linear-gradient(135deg, #1a1035 0%, #312e81 24%, #5b21b6 46%, #7c3aed 62%, #4f46e5 78%, #0891b2 100%);
  box-shadow: 0 2px 12px rgba(91,33,182,.25);
}
.wx-page-header-left, .wx-page-header-right { width: 48px; flex-shrink: 0; }
.wx-page-header-title {
  flex: 1; text-align: center;
  font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .03em;
}
.wx-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 18px; cursor: pointer; transition: background .2s;
}
.wx-back-btn:active { background: rgba(255,255,255,.3); }

/* ===== Main Content ===== */
.wx-main {
  padding: 12px 12px calc(60px + var(--wx-safe-bottom) + 12px);
  min-height: 100vh;
}
.wx-main.no-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.wx-main.no-tabbar { padding-bottom: calc(12px + var(--wx-safe-bottom)); }

/* ===== Bottom Tabbar ===== */
.wx-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; background: var(--wx-surface);
  border-top: 1px solid var(--wx-border);
  padding-bottom: var(--wx-safe-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.wx-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; height: 52px;
  color: var(--wx-text-light); font-size: 10px; font-weight: 500;
  transition: color .2s;
}
.wx-tabbar a .tab-icon { font-size: 22px; line-height: 1; }
.wx-tabbar a.active { color: var(--wx-primary); }
.wx-tabbar a.active .tab-icon { text-shadow: 0 2px 8px rgba(107,92,231,.3); }

/* ===== Search Bar ===== */
.wx-search-bar {
  position: sticky; top: 48px; z-index: 20;
  display: flex; gap: 8px; padding: 10px 12px; background: var(--wx-bg);
}
.wx-search-bar input {
  flex: 1; padding: 10px 14px 10px 38px;
  border: none; border-radius: 999px; background: var(--wx-surface);
  font-size: 14px; color: var(--wx-text);
  box-shadow: var(--wx-shadow-sm); outline: none; -webkit-appearance: none;
}
.wx-search-bar input:focus { box-shadow: var(--wx-shadow); }
.wx-search-bar .search-icon-wrap { position: relative; flex: 1; }
.wx-search-bar .search-icon-wrap::before {
  content: '\1F50D'; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: 15px; z-index: 1; pointer-events: none;
}
.wx-search-bar .btn-cancel {
  padding: 0 12px; background: none; border: none;
  font-size: 14px; color: var(--wx-primary); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.wx-search-bar .btn-search {
  padding: 10px 18px; background: var(--wx-gradient); color: #fff;
  border: none; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}

/* ===== Card ===== */
.wx-card {
  background: var(--wx-surface); border-radius: var(--wx-radius-lg);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--wx-shadow-sm); border: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.wx-card:hover { box-shadow: var(--wx-shadow); }

/* ===== Page Title ===== */
.wx-page-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--wx-text); }
.wx-page-subtitle { font-size: 13px; color: var(--wx-text-muted); margin: 0 0 16px; line-height: 1.5; }

/* ===== Section Title & Section Header ===== */
.wx-section-title {
  font-size: 15px; font-weight: 600; margin: 16px 0 10px;
  padding-left: 10px; border-left: 3px solid var(--wx-primary); color: var(--wx-text);
}
.wx-section-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 10px; font-size: 14px; font-weight: 700;
  color: var(--wx-text); background: var(--wx-bg);
}

/* ===== Buttons =====
 * 语义化分层（直观配色）：
 *  - primary : 核心正向主操作（发布 / 提交 / 支付 / 接单 / 购买 / 确认）—— 品牌紫青渐变
 *  - cta     : 关键引导转化（去认证 / 申请电竞师）—— 金橙渐变，醒目且独立于支付流程
 *  - outline : 次级 / 查看类 —— 浅灰描边，低存在感
 *  - danger  : 危险 /  destructive 操作 —— 红
 *  - ghost   : 轻量补充（添加类）—— 浅紫底
 */
.wx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--wx-primary);
  color: var(--wx-primary); background: var(--wx-surface);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .2s; line-height: 1.2;
}
.wx-btn:hover { background: var(--wx-primary-light); }
.wx-btn:active { transform: scale(.97); }
.wx-btn-primary {
  background: var(--wx-gradient); color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.wx-btn-primary:hover { box-shadow: 0 6px 24px rgba(124,58,237,.4); transform: translateY(-1px); background: var(--wx-gradient); }
.wx-btn-primary, .wx-btn-primary:hover, .wx-btn-primary:active, .wx-btn-primary:focus, .wx-btn-primary:visited { color: #fff; }
/* 深色渐变背景下的文字一律白色（防御性，避免深色背景配深色文字） */
.wx-btn-primary *, .wx-btn-search, .wx-btn-search *, .wx-filter-chip.active, .wx-filter-chip.active *, .wx-tab.active, .wx-tabs .wx-tab.active, .wx-tabs:not(.wx-filter-chip-row) .wx-tab.active * { color: #fff; }

.wx-btn-danger { border-color: var(--wx-danger); color: var(--wx-danger); }
.wx-btn-danger:hover { background: #fdecec; }
.wx-btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 999px; }
.wx-btn-block { display: flex; width: 100%; }
.wx-btn-outline {
  border-color: #d8d4e8; color: var(--wx-text-muted); background: var(--wx-surface);
  box-shadow: 0 1px 3px rgba(26, 22, 48, .04);
}
.wx-btn-outline:hover { background: var(--wx-bg); border-color: #c7c2dc; color: var(--wx-text); }
.wx-btn-ghost {
  border-color: transparent; color: var(--wx-primary-darker); background: var(--wx-primary-light);
  font-weight: 700;
}
.wx-btn-ghost:hover { background: #e9e4fb; }
.wx-btn-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== 通盘修复：深紫蓝背景按钮/选中态前景色 =====
 * 任何以实色主色 / 渐变 / 深主色为背景的按钮、标签、选中态，
 * 前景强制白色，避免“深底深字”不可读（防御性，压制后续任何覆盖）。
 * 浅紫底（--wx-primary-light）/ 白底浮起的 segmented 选中态不在其列，保持深紫字。
 */
.wx-btn-primary, .wx-btn-primary:hover, .wx-btn-primary:active, .wx-btn-primary:focus, .wx-btn-primary:visited,
.wx-btn-search, .wx-btn-search:hover, .wx-btn-search:active,
.wx-filter-chip.active,
.wx-user-card, .wx-hero,
.wx-game-avatar-ph, .hot-game-icon-ph, .wx-game-item .game-icon-ph,
.wx-alphabet-index span:active, .wx-alphabet-toast,
.wx-tabs:not(.wx-filter-chip-row) .wx-tab.active,
.wx-tabs:not(.wx-filter-chip-row) .wx-tab.active:hover,
.wx-tabs:not(.wx-filter-chip-row) .wx-tab.active:active {
  color: #fff !important;
}
.wx-btn-primary *, .wx-btn-search *, .wx-filter-chip.active *,
.wx-user-card *, .wx-hero *,
.wx-tabs:not(.wx-filter-chip-row) .wx-tab.active * {
  color: #fff !important;
}

/* ===== Forms ===== */
.wx-form label {
  display: block; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--wx-text);
}
.wx-form label > span.label-hint { font-weight: 400; font-size: 12px; color: var(--wx-text-muted); }
.wx-form input[type="text"], .wx-form input[type="number"],
.wx-form input[type="search"], .wx-form input[type="datetime-local"],
.wx-form input[type="password"], .wx-form input[type="tel"], .wx-form input[type="email"],
.wx-form input:not([type]), .wx-form select, .wx-form textarea {
  width: 100%; padding: 12px 14px; margin-top: 6px;
  border: 1.5px solid var(--wx-border); border-radius: 12px;
  background: var(--wx-surface); font-size: 15px; color: var(--wx-text);
  box-shadow: var(--wx-shadow-sm);
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none;
}
.wx-form input::placeholder, .wx-form textarea::placeholder { color: var(--wx-text-light); }
.wx-form input:focus, .wx-form select:focus, .wx-form textarea:focus {
  outline: none; border-color: var(--wx-primary-muted); background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1), var(--wx-shadow-sm);
}
.wx-form textarea { resize: vertical; min-height: 72px; }
.wx-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b98b0' fill='none' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.wx-form .form-row { display: flex; gap: 10px; }
.wx-form .form-row > * { flex: 1; }
.wx-form .form-section {
  font-size: 16px; font-weight: 600; color: var(--wx-text);
  margin: 20px 0 12px; padding-left: 10px; border-left: 3px solid var(--wx-primary);
}
.wx-form .checkbox-row {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wx-text);
}
.wx-form .checkbox-row input[type="checkbox"],
.wx-form .checkbox-row input[type="radio"] {
  width: 18px; height: 18px; margin: 0; accent-color: var(--wx-primary); flex-shrink: 0;
}
.wx-choice-card {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px; border: 1.5px solid #d8d4e8; border-radius: var(--wx-radius-sm);
  background: #faf9fd; font-size: 15px; font-weight: 600; color: var(--wx-text);
  cursor: pointer; transition: all .2s; margin: 0;
}
.wx-choice-card:has(input:checked) {
  border-color: var(--wx-primary); background: var(--wx-primary-light); color: var(--wx-primary-dark);
  box-shadow: 0 0 0 3px rgba(107,92,231,.1);
}
.wx-choice-card input { position: absolute; opacity: 0; pointer-events: none; }

/* ===== 折叠面板 ===== */
.wx-collapse { margin-top: 12px; }
.wx-collapse-panel {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
}
.wx-collapse-panel.is-open { max-height: 1200px; opacity: 1; margin-top: 12px; }
.wx-collapse-trigger { width: 100%; }

/* ===== List Items ===== */
.wx-list-item {
  display: flex; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--wx-border); gap: 12px;
  text-decoration: none; color: inherit; transition: background .15s;
}
.wx-list-item:last-child { border-bottom: none; }
.wx-list-item:active { background: rgba(107,92,231,.04); }
.wx-list-item .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--wx-primary-light); }
.wx-list-item .list-body { flex: 1; min-width: 0; }
.wx-list-item .list-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-list-item .list-meta { font-size: 12px; color: var(--wx-text-muted); margin-top: 2px; }
.wx-list-item .list-right { font-size: 13px; color: var(--wx-text-muted); flex-shrink: 0; text-align: right; }

/* ===== Status Badges ===== */
.wx-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.wx-badge-success { background: #d1fae5; color: #065f46; }
.wx-badge-warning { background: #fef3c7; color: #92400e; }
.wx-badge-danger { background: #fee2e2; color: #991b1b; }
.wx-badge-info { background: var(--wx-primary-light); color: var(--wx-primary-dark); }
.wx-badge-outline { background: transparent; border: 1px solid var(--wx-border); color: var(--wx-text-muted); }

/* ===== Mini Badge (热门游戏区) ===== */
.wx-badge-mini {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 999px;
  font-size: 9px; font-weight: 600; line-height: 1.4; border: 1px solid;
}
.wx-badge-mini.boost { background: rgba(107,92,231,.08); border-color: rgba(107,92,231,.2); color: var(--wx-primary-dark); }
.wx-badge-mini.trade { background: rgba(21,159,149,.08); border-color: rgba(21,159,149,.2); color: var(--wx-accent-green); }

/* ===== Service Tags (游戏服务标记) ===== */
.wx-service-tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px;
  border-radius: 999px; font-size: 10px; font-weight: 600; border: 1px solid;
}
.wx-service-tag.boost { background: linear-gradient(135deg, rgba(107,92,231,.08), rgba(56,189,248,.08)); border-color: rgba(107,92,231,.25); color: var(--wx-primary-dark); }
.wx-service-tag.account { background: linear-gradient(135deg, rgba(21,159,149,.08), rgba(13,122,114,.08)); border-color: rgba(21,159,149,.25); color: var(--wx-accent-green); }

/* ===== Grid Layouts ===== */
.wx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ===== Menu Grid (个人中心) ===== */
.wx-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.wx-center-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.wx-menu-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 10px; background: var(--wx-surface);
  border: 1px solid var(--wx-border); border-radius: var(--wx-radius);
  color: var(--wx-text); text-decoration: none; font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.wx-center-grid .wx-menu-item { padding: 12px 6px; }
.wx-menu-item:active { background: var(--wx-primary-light); border-color: var(--wx-primary-muted); transform: scale(.97); }
.wx-menu-item .menu-icon { font-size: 28px; line-height: 1; }
.wx-center-grid .wx-menu-item .menu-icon { font-size: 24px; }

/* ===== User Profile Card ===== */
.wx-user-card {
  display: flex; align-items: center; gap: 14px; padding: 20px 16px;
  background: var(--wx-gradient); border-radius: var(--wx-radius-lg);
  color: #fff; margin-bottom: 16px; position: relative; overflow: hidden;
}
.wx-user-card::before {
  content: ''; position: absolute; top: -30px; right: -20px;
  width: 120px; height: 120px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.wx-user-card * { position: relative; z-index: 1; }
.wx-user-card .avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); object-fit: cover; flex-shrink: 0; }
.wx-user-card .user-name { font-size: 18px; font-weight: 700; }
.wx-user-card .user-meta { font-size: 12px; opacity: .8; margin-top: 2px; }

/* ===== Hero Banner ===== */
.wx-hero {
  background: var(--wx-gradient); color: #fff; border-radius: var(--wx-radius-lg);
  padding: 24px 20px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.wx-hero::before { content: ''; position: absolute; top: -40px; right: -30px; width: 140px; height: 140px; background: rgba(255,255,255,.08); border-radius: 50%; }
.wx-hero::after { content: ''; position: absolute; bottom: -30px; left: -20px; width: 100px; height: 100px; background: rgba(255,255,255,.05); border-radius: 50%; }
.wx-hero * { position: relative; z-index: 1; }
.wx-hero h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.wx-hero .hero-subtitle { font-size: 13px; opacity: .85; margin: 0 0 16px; }
.wx-hero .hero-stats { display: flex; gap: 20px; margin-bottom: 16px; }
.wx-hero .hero-stat { font-size: 13px; opacity: .85; }
.wx-hero .hero-stat strong { font-size: 20px; font-weight: 700; opacity: 1; }
.wx-hero-accent { background: linear-gradient(135deg, var(--wx-accent-green), #0d7a72); }

/* ===== Detail Head ===== */
.wx-detail-head { padding-bottom: 4px; }
.wx-detail-head .wx-poster-img {
  display: block; width: 100%; max-height: 240px; object-fit: cover;
  border-radius: var(--wx-radius); margin-bottom: 12px;
}

/* ===== A-Z Alphabet Index (右侧导航) ===== */
.wx-alphabet-index {
  position: fixed; right: 2px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 1px;
  padding: 6px 3px; background: rgba(255,255,255,.88); border-radius: 10px;
  box-shadow: var(--wx-shadow-sm);
}
.wx-alphabet-index span {
  display: block; width: 24px; height: 20px; line-height: 20px;
  text-align: center; font-size: 10px; font-weight: 700;
  color: var(--wx-primary); cursor: pointer; border-radius: 4px;
  transition: all .15s;
}
.wx-alphabet-index span:active, .wx-alphabet-index-active span { background: var(--wx-primary); color: #fff; }
.wx-alphabet-index-active { background: rgba(255,255,255,.95); }

/* ===== A-Z Toast (触摸提示) ===== */
.wx-alphabet-toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 9999; width: 60px; height: 60px; line-height: 60px; text-align: center;
  font-size: 26px; font-weight: 700; color: #fff;
  background: var(--wx-primary-dark); border-radius: 12px; opacity: 0;
  pointer-events: none; transition: opacity .15s;
}
.wx-alphabet-toast-show { opacity: 1; }

/* ===== A-Z Group ===== */
.wx-alpha-group { margin-bottom: 0; }
.wx-alpha-group-header {
  padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: var(--wx-primary); background: var(--wx-primary-light);
  border-bottom: 1px solid rgba(107,92,231,.1);
  position: sticky; top: 48px; z-index: 10;
}

/* ===== Hot Games Section ===== */
.wx-hot-section { margin-bottom: 8px; }
.wx-hot-games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px 10px; }

/* Hot Game Card (带图标+标签的快捷入口) */
.wx-hot-game-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 2px 10px; border-radius: var(--wx-radius);
  cursor: pointer; transition: background .15s;
}
.wx-hot-game-card:active { background: var(--wx-primary-light); }

/* Hot Game Card (旧版兼容) */
.wx-hot-game-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 4px; border-radius: var(--wx-radius);
  text-decoration: none; color: inherit; transition: background .15s;
}
.wx-hot-game-item:active { background: var(--wx-primary-light); }

/* Game Avatar */
.wx-game-avatar { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; margin-bottom: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wx-game-avatar-ph { width: 52px; height: 52px; border-radius: 14px; background: var(--wx-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 6px; }

/* Hot Game (old) */
.hot-game-icon { width: 48px; height: 48px; border-radius: var(--wx-radius-sm); object-fit: cover; margin-bottom: 6px; }
.hot-game-icon-ph { width: 48px; height: 48px; border-radius: var(--wx-radius-sm); background: var(--wx-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.wx-hot-game-name { font-size: 11px; text-align: center; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; color: var(--wx-text); }
.wx-hot-game-tags { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }

/* ===== Game Row (A-Z 列表行) ===== */
.wx-game-row {
  display: flex; align-items: center; padding: 12px 16px; gap: 12px;
  background: var(--wx-surface); border-bottom: 1px solid #f0edf8;
  cursor: pointer; transition: background .15s;
}
.wx-game-row:active { background: var(--wx-primary-light); }
.wx-game-row .wx-game-avatar { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.wx-game-row .wx-game-avatar-ph { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; font-size: 16px; }
.wx-game-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wx-game-row-name { font-size: 15px; font-weight: 500; color: var(--wx-text); }
.wx-game-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wx-game-row-arrow { color: var(--wx-text-light); flex-shrink: 0; }

/* ===== Game Item (经典通讯录风格, 旧兼容) ===== */
.wx-game-item {
  display: flex; align-items: center; padding: 12px 16px; gap: 12px;
  background: var(--wx-surface); border-bottom: 1px solid var(--wx-border);
  cursor: pointer; transition: background .15s;
}
.wx-game-item:active { background: var(--wx-primary-light); }
.wx-game-item .game-icon { width: 44px; height: 44px; border-radius: var(--wx-radius-sm); object-fit: cover; flex-shrink: 0; }
.wx-game-item .game-icon-ph { width: 44px; height: 44px; border-radius: var(--wx-radius-sm); background: var(--wx-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.wx-game-item .game-info { flex: 1; min-width: 0; }
.wx-game-item .game-name { font-size: 15px; font-weight: 500; color: var(--wx-text); margin-bottom: 4px; }
.wx-game-item .game-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Spinner ===== */
.wx-spinner {
  display: block; width: 28px; height: 28px; margin: 0 auto;
  border: 3px solid var(--wx-border); border-top-color: var(--wx-primary);
  border-radius: 50%; animation: wxSpin .6s linear infinite;
}
@keyframes wxSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== Overlay ===== */
.wx-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0); transition: background .25s;
}
.wx-overlay-show { background: rgba(0,0,0,.45); }

/* ===== Action Sheet ===== */
.wx-action-sheet {
  width: 100%; max-width: 480px; padding: 0 0 calc(12px + var(--wx-safe-bottom));
  background: var(--wx-surface); border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 4px;
}
.wx-overlay-show .wx-action-sheet { transform: translateY(0); }
.wx-action-sheet-title {
  display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px;
  font-size: 16px; font-weight: 600; color: var(--wx-text);
  border-bottom: 1px solid var(--wx-border);
}
.wx-action-sheet-game-icon { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.wx-action-sheet-btn {
  display: flex; align-items: center; gap: 10px; margin: 0 12px;
  padding: 14px 16px; border-radius: 12px; border: none;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.wx-action-sheet-btn-primary { background: var(--wx-primary-light); color: var(--wx-primary-darker); font-weight: 700; }
.wx-action-sheet-btn-primary:active { background: #e2ddf8; }
.wx-action-sheet-btn-accent { background: var(--wx-accent-green-light); color: var(--wx-accent-green); }
.wx-action-sheet-btn-accent:active { background: #c8e8e5; }
.wx-action-sheet-btn-cancel {
  margin-top: 4px; justify-content: center; color: var(--wx-text-muted);
  background: var(--wx-bg); font-weight: 400;
}
.wx-action-sheet-btn-cancel:active { background: #e8e5f2; }
.wx-action-sheet-icon { font-size: 22px; flex-shrink: 0; width: 28px; text-align: center; }
.wx-action-sheet-text { flex: 1; }

/* ===== Toast / Tips ===== */
.wx-toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 9999; padding: 12px 24px; background: rgba(0,0,0,.75);
  color: #fff; border-radius: 999px; font-size: 14px;
  animation: wxToastIn .25s ease;
}
@keyframes wxToastIn { from { opacity:0; transform:translate(-50%,-50%) scale(.85); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }

/* ===== Price Display ===== */
.wx-price { color: var(--wx-danger); font-weight: 700; }
.wx-price-lg { font-size: 24px; color: var(--wx-danger); font-weight: 700; }
.wx-price-sm { font-size: 14px; color: var(--wx-danger); font-weight: 600; }
.wx-price-box {
  background: #f8f9fb; border-radius: var(--wx-radius); padding: 14px;
  margin: 12px 0; font-size: 14px; line-height: 1.8;
}
.wx-price-box .total {
  font-size: 18px; font-weight: 700; color: var(--wx-danger);
  border-top: 1px dashed var(--wx-border); padding-top: 8px; margin-top: 4px;
}

/* ===== Info Row ===== */
.wx-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.wx-info-row .label { color: var(--wx-text-muted); }
.wx-info-row .value { font-weight: 500; text-align: right; }
.wx-title-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 15px; font-weight: 600; }

/* ===== Tabs（独立 pill，非分段容器内） ===== */
.wx-tabs:not(.wx-filter-chip-row) .wx-tab {
  padding: 9px 16px; border-radius: 999px; background: var(--wx-surface);
  color: var(--wx-text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--wx-border); text-decoration: none;
  transition: all .2s; box-shadow: var(--wx-shadow-sm);
}
.wx-tabs:not(.wx-filter-chip-row) .wx-tab.active {
  border-color: transparent; background: var(--wx-gradient); color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .25);
}

/* ===== Task Card ===== */
.wx-task-card {
  background: var(--wx-surface); border-radius: var(--wx-radius);
  padding: 14px; margin-bottom: 10px; border: 1px solid var(--wx-border);
  transition: box-shadow .2s;
}
.wx-task-card:active { box-shadow: var(--wx-shadow); }
.wx-task-card .task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.wx-task-card .task-title { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.wx-task-card .task-meta { font-size: 12px; color: var(--wx-text-muted); line-height: 1.6; }

/* ===== Photo Upload ===== */
.wx-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wx-photo-preview .thumb { position: relative; width: 80px; height: 80px; }
.wx-photo-preview .thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--wx-radius-sm); border: 1px solid var(--wx-border); }
.wx-photo-preview .thumb .remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--wx-danger); color: #fff; border: none; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ===== Account Trade Card ===== */
.wx-account-card {
  display: flex; gap: 12px; padding: 12px; background: var(--wx-surface);
  border: 1px solid var(--wx-border); border-radius: var(--wx-radius);
  text-decoration: none; color: inherit; transition: box-shadow .2s; margin-bottom: 10px;
}
.wx-account-card:active { box-shadow: var(--wx-shadow); }
.wx-account-card .cover { width: 88px; height: 88px; border-radius: var(--wx-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--wx-bg); }
.wx-account-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.wx-account-card .cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--wx-text-light); font-size: 13px; background: var(--wx-primary-light); }
.wx-account-card .body { flex: 1; min-width: 0; }
.wx-account-card .title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-account-card .meta { font-size: 12px; color: var(--wx-text-muted); margin-top: 4px; }

/* ===== Order Item ===== */
.wx-order-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--wx-border); text-decoration: none; color: inherit; gap: 10px; }
.wx-order-item:last-child { border-bottom: none; }
.wx-order-item .order-title { font-size: 15px; font-weight: 500; }
.wx-order-item .order-meta { font-size: 12px; color: var(--wx-text-muted); margin-top: 4px; }
.wx-order-item .order-game-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--wx-bg); }
.wx-order-item .order-game-icon-placeholder { background: linear-gradient(135deg, #e8e5f2, #ddd8ec); }

/* ===== Wallet ===== */
.wx-wallet-balance { text-align: center; padding: 24px 0 16px; }
.wx-wallet-balance .label { font-size: 13px; color: var(--wx-text-muted); margin-bottom: 4px; }
.wx-wallet-balance .amount { font-size: 36px; font-weight: 700; background: var(--wx-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wx-wallet-balance .frozen { font-size: 12px; color: var(--wx-text-muted); margin-top: 4px; }

/* ===== Flow Item (流水) ===== */
.wx-flow-item { padding: 12px 0; border-bottom: 1px solid var(--wx-border); }
.wx-flow-item:last-child { border-bottom: none; }
.wx-flow-item .flow-head { display: flex; justify-content: space-between; align-items: center; }
.wx-flow-item .flow-remark { font-size: 14px; }
.wx-flow-item .flow-amount { font-size: 15px; font-weight: 600; }
.wx-flow-item .flow-amount.positive { color: var(--wx-accent-green); }
.wx-flow-item .flow-amount.negative { color: var(--wx-danger); }
.wx-flow-item .flow-time { font-size: 12px; color: var(--wx-text-muted); margin-top: 4px; }

/* ===== Gallery ===== */
.wx-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.wx-gallery img { height: 160px; border-radius: var(--wx-radius-sm); flex-shrink: 0; scroll-snap-align: start; }

/* ===== Guarantee Box ===== */
.wx-guarantee { background: #f8f9fa; border-radius: var(--wx-radius); padding: 14px; margin: 16px 0; font-size: 13px; line-height: 1.8; }
.wx-guarantee h3 { font-size: 14px; margin: 0 0 8px; color: var(--wx-text); }
.wx-guarantee li { color: var(--wx-text-muted); }

/* ===== Attribute List ===== */
.wx-attr-list { list-style: none; padding: 0; margin: 0; }
.wx-attr-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--wx-border); font-size: 14px; }
.wx-attr-list li:last-child { border-bottom: none; }
.wx-attr-list li .attr-label { color: var(--wx-text-muted); }
.wx-attr-list li .attr-value { font-weight: 500; }

/* ===== Delivery Box ===== */
.wx-deliver-box { background: var(--wx-primary-light); border: 1px solid rgba(107,92,231,.15); border-radius: var(--wx-radius); padding: 14px; margin: 16px 0; }
.wx-deliver-box h3 { font-size: 15px; margin: 0 0 12px; color: var(--wx-text); }
.wx-deliver-box label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--wx-text-muted); }
.wx-deliver-box input, .wx-deliver-box textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--wx-border); border-radius: var(--wx-radius-sm); font-size: 14px; margin-top: 4px; background: var(--wx-surface); }
.wx-deliver-box textarea { min-height: 60px; resize: vertical; }

/* ===== Credential View ===== */
.wx-cred-view { background: var(--wx-surface); border: 1px solid var(--wx-border); border-radius: var(--wx-radius); padding: 14px; margin-top: 10px; font-size: 14px; line-height: 1.8; }

/* ===== Bid Box ===== */
.wx-bid-box { background: var(--wx-surface); border: 1px solid var(--wx-border); border-radius: var(--wx-radius); padding: 14px; margin-bottom: 10px; }
.wx-bid-box .bid-row { display: flex; align-items: flex-start; gap: 10px; }
.wx-bid-box .bid-info { flex: 1; min-width: 0; }
.wx-bid-box .bidder { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.wx-bid-box .bid-message { font-size: 13px; color: var(--wx-text-muted); margin-bottom: 8px; }
.wx-bid-box .order-game-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--wx-bg); }
.wx-bid-box .order-game-icon-placeholder { background: linear-gradient(135deg, #e8e5f2, #ddd8ec); }

/* ===== Empty State ===== */
.wx-empty { text-align: center; padding: 48px 16px; color: var(--wx-text-muted); }
.wx-empty .wx-empty-icon, .wx-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.wx-empty p { font-size: 14px; margin: 0; }

/* ===== Loading ===== */
.wx-loading { text-align: center; padding: 32px 16px; color: var(--wx-text-muted); font-size: 14px; }
.wx-loading p { margin-top: 8px; }

/* ===== Divider ===== */
.wx-divider { height: 1px; background: var(--wx-border); margin: 16px 0; }

/* ===== Alerts ===== */
.wx-alert { padding: 12px 16px; border-radius: var(--wx-radius); margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.wx-alert-info { background: var(--wx-primary-light); color: var(--wx-primary-darker); border: 1px solid rgba(107,92,231,.15); }
.wx-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid rgba(245,158,11,.2); }
.wx-alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid rgba(229,57,53,.15); }

/* ===== Poster Image ===== */
.wx-poster-img { display: block; max-width: 100%; border-radius: var(--wx-radius); box-shadow: var(--wx-shadow-lg); margin: 0 auto; }

/* ===== Utility Overrides ===== */
.hint { color: var(--wx-text-muted); font-size: 13px; line-height: 1.5; }
.text-danger { color: var(--wx-danger); }
.text-success { color: var(--wx-success); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ===== UI v3.2 控件：搜索 / 筛选 / Tab / 上传 ===== */
.wx-card { border: 1px solid rgba(232, 229, 242, .8); }
.wx-form .form-section { font-size: 15px; letter-spacing: .02em; }
.wx-form label { line-height: 1.4; }
.wx-wallet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wx-wallet-actions .wx-btn-group { margin-top: 4px; }

.wx-icon-search,
.wx-search-input-wrap .wx-search-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
  font-size: 0; color: transparent; opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b98b0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* 内联搜索栏 */
.wx-search-inline {
  display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px;
}
.wx-search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 16px;
  border-radius: 14px; background: var(--wx-surface);
  border: 1.5px solid var(--wx-border);
  box-shadow: var(--wx-shadow-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.wx-search-input-wrap:focus-within {
  border-color: var(--wx-primary-muted); background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .12), var(--wx-shadow-sm);
}
.wx-search-input-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 15px; color: var(--wx-text); min-width: 0; line-height: 1.3;
}
.wx-search-input-wrap input::placeholder { color: var(--wx-text-light); }
.wx-search-input-wrap input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.wx-search-inline .wx-btn-search {
  flex-shrink: 0; padding: 0 20px; min-height: 46px; min-width: 72px;
  border: none; border-radius: 14px;
  background: var(--wx-gradient); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .28);
  transition: transform .15s, box-shadow .2s;
}
.wx-search-inline .wx-btn-search:active {
  transform: scale(.97); box-shadow: 0 3px 10px rgba(124, 58, 237, .22);
}

/* 筛选行 */
.wx-filter-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px;
}
.wx-filter-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.wx-filter-select {
  width: 100%; min-height: 44px;
  padding: 0 36px 0 14px; margin: 0;
  border: 1.5px solid var(--wx-border); border-radius: 12px;
  background: var(--wx-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b98b0' fill='none' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 14px; font-weight: 600; color: var(--wx-text);
  box-shadow: var(--wx-shadow-sm);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.wx-filter-select:focus {
  outline: none; border-color: var(--wx-primary-muted); background-color: #fff;
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1), var(--wx-shadow-sm);
}
.wx-filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--wx-border); background: var(--wx-surface);
  color: var(--wx-text); font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--wx-shadow-sm); transition: all .15s;
}
.wx-filter-toggle::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6880' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wx-filter-toggle.is-active {
  border-color: var(--wx-primary-muted); background: var(--wx-primary-light);
  color: var(--wx-primary-darker); box-shadow: 0 0 0 3px rgba(107, 92, 231, .08);
}
.wx-filter-panel {
  display: none; padding: 14px; margin-bottom: 14px;
  border-radius: 14px; background: var(--wx-surface);
  border: 1.5px solid var(--wx-border);
  box-shadow: var(--wx-shadow-sm);
}
.wx-filter-panel.is-open {
  display: block; animation: wxFilterIn .22s ease;
}
@keyframes wxFilterIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wx-filter-panel label {
  display: block; font-size: 13px; font-weight: 600; color: var(--wx-text-muted);
  margin-bottom: 12px;
}
.wx-filter-panel label:last-child { margin-bottom: 0; }

/* 筛选 Chip */
.wx-filter-chip-row {
  display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 0 10px; scrollbar-width: none;
}
.wx-filter-chip-row::-webkit-scrollbar { display: none; }
.wx-filter-chip {
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--wx-border); background: var(--wx-surface);
  color: var(--wx-text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; box-shadow: var(--wx-shadow-sm);
  white-space: nowrap;
}
.wx-filter-chip:active { transform: scale(.97); }
.wx-filter-chip.active {
  border-color: transparent;
  background: var(--wx-gradient); color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .28);
}
a.wx-filter-chip {
  display: inline-flex; align-items: center; text-decoration: none;
}
a.wx-filter-chip:not(.active) { color: var(--wx-text-muted); }
.wx-filter-chip-row .wx-filter-chip-end { margin-left: auto; }
.wx-filter-check.wx-filter-check-grow { flex: 1; margin: 0; min-width: 0; }
.wx-filter-check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--wx-surface); border: 1.5px solid var(--wx-border);
  font-size: 14px; font-weight: 500; color: var(--wx-text);
  cursor: pointer; box-shadow: var(--wx-shadow-sm);
  transition: border-color .15s, background .15s;
}
.wx-filter-check:has(input:checked) {
  border-color: var(--wx-primary-muted); background: var(--wx-primary-light);
  color: var(--wx-primary-darker);
}
.wx-filter-check input {
  width: 18px; height: 18px; accent-color: var(--wx-primary); margin: 0; flex-shrink: 0;
}

/* 分段 Tab（排序 / 角色切换） */
.wx-segmented,
.wx-card > .wx-tabs,
.wx-filter-chip-row.wx-tabs {
  display: flex; gap: 4px; padding: 10px 8px 14px 8px; margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ebe8f6 0%, #e4e0f2 100%);
  box-shadow: inset 0 1px 2px rgba(26, 22, 48, .06);
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.wx-filter-chip-row.wx-tabs::-webkit-scrollbar { display: none; }
.wx-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wx-tab {
  flex: 1; min-width: 0; justify-content: center; text-align: center;
  padding: 10px 12px; border-radius: 11px;
  background: transparent; color: var(--wx-text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: all .18s;
}
.wx-segmented .wx-tab,
.wx-card > .wx-tabs .wx-tab,
.wx-filter-chip-row.wx-tabs .wx-filter-chip {
  border: none; background: transparent; box-shadow: none;
  color: var(--wx-text-muted); border-radius: 11px;
  flex-shrink: 0; -webkit-flex-shrink: 0; min-width: max-content;
}
.wx-segmented .wx-tab.active,
.wx-card > .wx-tabs .wx-tab.active,
.wx-filter-chip-row.wx-tabs .wx-filter-chip.active {
  background: var(--wx-surface); color: var(--wx-primary-dark);
  box-shadow: 0 2px 10px rgba(91, 33, 182, .12);
  font-weight: 700;
  background-image: none;
}
/* 恢复 filter-chip 在 chip-row 中的 active 样式：渐变背景+白色文字 */
.wx-filter-chip-row.wx-tabs .wx-filter-chip.active {
  background: var(--wx-gradient); color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .28);
  border-color: transparent;
}
.wx-tab.active {
  background: var(--wx-primary-light); color: var(--wx-primary-darker);
  border-color: var(--wx-primary-muted); font-weight: 700;
}

/* 弹窗表单 */ */
.ui-form-overlay { z-index: 3100; align-items: flex-end; }
.ui-form-sheet {
  width: 100%; max-width: 480px; max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--wx-surface); border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  padding-bottom: calc(8px + var(--wx-safe-bottom));
}
.wx-overlay-show .ui-form-sheet { transform: translateY(0); }
.ui-form-sheet-head {
  position: relative; flex-shrink: 0;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--wx-border);
}
.ui-form-sheet-title {
  margin: 0; text-align: center; font-size: 17px; font-weight: 700; color: var(--wx-text);
}
.ui-form-close {
  position: absolute; right: 12px; top: 12px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--wx-bg); color: var(--wx-text-muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.ui-form-sheet-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px;
}
.ui-form-sheet-body .wx-form .form-section { margin-top: 0; }
.ui-form-sheet-foot {
  flex-shrink: 0; padding: 0 16px 8px;
}

/* ===== 上传区 ===== */
.wx-upload-zone { margin-top: 8px; }
.wx-upload-preview {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px;
}
.wx-upload-thumb {
  position: relative; width: 88px; height: 88px; flex-shrink: 0;
}
.wx-upload-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px; border: 1.5px solid var(--wx-border);
  box-shadow: var(--wx-shadow-sm);
}
.wx-upload-remove {
  position: absolute; top: -7px; right: -7px;
  width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%;
  background: var(--wx-danger); color: #fff; font-size: 14px;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(229, 57, 53, .35);
}
.wx-upload-add {
  width: 88px; height: 88px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px dashed rgba(107, 92, 231, .35); border-radius: 14px;
  background: linear-gradient(145deg, #faf9fd, #f3f0fc);
  color: var(--wx-primary); cursor: pointer;
  font-size: 24px; font-weight: 300; transition: all .15s;
}
.wx-upload-add:active { background: var(--wx-primary-light); border-color: var(--wx-primary-muted); }
.wx-upload-add small { font-size: 11px; font-weight: 600; color: var(--wx-text-muted); }
.wx-upload-trigger {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border: 2px dashed rgba(107, 92, 231, .3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(241, 238, 255, .9), rgba(255, 255, 255, .95));
  cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: var(--wx-shadow-sm);
}
.wx-upload-trigger:active,
.wx-upload-zone.is-uploading .wx-upload-trigger {
  border-color: var(--wx-primary); background: var(--wx-primary-light);
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1);
}
.wx-upload-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  font-size: 0; color: transparent;
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(56, 189, 248, .12))
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5ce7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h3l2-3h6l2 3h3a2 2 0 012 2v9a2 2 0 01-2 2H4a2 2 0 01-2-2V9a2 2 0 012-2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.wx-upload-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wx-upload-label { font-size: 15px; font-weight: 700; color: var(--wx-text); }
.wx-upload-hint { font-size: 12px; color: var(--wx-text-muted); line-height: 1.4; }

/* 上传缩略图：已上传/上传中/失败状态角标 */
.wx-upload-thumb { cursor: zoom-in; }
.wx-upload-badge {
  position: absolute; left: 0; bottom: 0; width: 100%;
  font-size: 10px; line-height: 1.7; text-align: center; color: #fff;
  background: rgba(16, 185, 129, .88); border-bottom-left-radius: 14px; border-bottom-right-radius: 14px;
}
.wx-upload-badge.is-error { background: rgba(229, 57, 53, .92); }
.wx-upload-zone.is-uploading .wx-upload-add,
.wx-upload-zone.is-uploading .wx-upload-thumb { opacity: .55; pointer-events: none; }

/* 图片预览灯箱（点击缩略图放大、删除、重新上传） */
.wx-lightbox {
  position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; opacity: 0; transition: opacity .22s;
}
.wx-lightbox.show { opacity: 1; }
.wx-lightbox-mask { position: absolute; inset: 0; background: rgba(16, 14, 30, .92); }
.wx-lightbox-body { position: relative; z-index: 1; max-width: 92vw; max-height: 70vh; }
.wx-lightbox-body img {
  max-width: 92vw; max-height: 70vh; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.wx-lightbox-bar { position: relative; z-index: 1; display: flex; gap: 12px; margin-top: 18px; }
.wx-lightbox-btn {
  padding: 10px 18px; border: none; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); transition: background .15s;
}
.wx-lightbox-btn:active { background: rgba(255, 255, 255, .28); }
.wx-lightbox-danger { background: rgba(229, 57, 53, .85); }

/* ===== 骨架屏 ===== */
.wx-skeleton-list { display: flex; flex-direction: column; gap: 10px; }
.wx-skeleton-item {
  height: 72px; border-radius: var(--wx-radius);
  background: linear-gradient(90deg, #f0edf8 25%, #faf9fd 50%, #f0edf8 75%);
  background-size: 200% 100%; animation: wxShimmer 1.2s ease-in-out infinite;
}
@keyframes wxShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 个人中心增强 ===== */
/* 数据条：发单 / 接单 / 购买 / 挂牌 */
.wx-center-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: -28px 12px 12px; position: relative; z-index: 2;
}
.wx-center-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 4px; background: var(--wx-surface);
  border: 1px solid var(--wx-border); border-radius: var(--wx-radius);
  text-decoration: none; box-shadow: var(--wx-shadow-sm);
  transition: all .15s;
}
.wx-center-stat:active { background: var(--wx-primary-light); border-color: var(--wx-primary-muted); transform: scale(.98); }
.wx-center-stat .num { font-size: 20px; font-weight: 700; color: var(--wx-primary-dark); line-height: 1.1; }
.wx-center-stat .label { font-size: 12px; color: var(--wx-text-muted); }

/* 认证引导卡（未认证时） */
.wx-center-promo {
  background: var(--wx-primary-light);
  border: 1px solid rgba(107, 92, 231, .18);
}
.wx-center-promo .promo-title { font-size: 15px; font-weight: 700; color: var(--wx-primary-dark); }
.wx-center-promo .promo-desc { font-size: 13px; color: var(--wx-text-muted); line-height: 1.5; margin: 6px 0 14px; }

.wx-center-quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px;
}
.wx-center-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: var(--wx-radius);
  background: var(--wx-surface); border: 1px solid var(--wx-border);
  color: var(--wx-text); text-decoration: none; font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.wx-center-quick a:active { background: var(--wx-primary-light); border-color: var(--wx-primary-muted); }
.wx-center-quick .ico { font-size: 24px; line-height: 1; }
.wx-menu-item .menu-desc {
  font-size: 11px; color: var(--wx-text-muted); font-weight: 400; margin-top: 2px;
}
.wx-order-item {
  padding: 14px 0; border-radius: var(--wx-radius-sm);
  transition: background .12s;
}
/* 列表卡片底部操作区（发布入口等） */
.wx-list-footer {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--wx-border);
}
.wx-order-item .order-info { flex: 1; min-width: 0; }
.wx-order-item .order-arrow { color: var(--wx-text-light); font-size: 18px; flex-shrink: 0; }
.wx-listing-card {
  background: var(--wx-surface); border: 1px solid var(--wx-border);
  border-radius: var(--wx-radius); padding: 14px; margin-bottom: 10px;
}
.wx-listing-card .listing-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.wx-listing-card .listing-actions { display: flex; gap: 8px; flex-shrink: 0; margin-top: 4px; }

/* ===== 固定底栏操作区 ===== */
.wx-page-with-actions {
  padding-bottom: calc(84px + var(--wx-safe-bottom));
}
.wx-action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 10px 12px calc(10px + var(--wx-safe-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--wx-border);
  box-shadow: 0 -4px 24px rgba(26, 22, 48, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.wx-action-bar-inner {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
}
.wx-action-bar-inner .wx-btn { flex: 1; min-width: 0; }
.wx-action-bar-inner .wx-btn-primary { flex: 1.4; }
.wx-action-bar-note {
  max-width: 480px; margin: 0 auto 8px;
  font-size: 12px; color: var(--wx-text-muted); text-align: center; line-height: 1.4;
}

/* ============================================================
 * 账号市场 / 我的订单 · 界面优化（2026-07）
 * 设计方向：移动端双列网格市场感 + 卡片化订单，统一紫青品牌色
 * ============================================================ */

/* —— 账号市场：工具栏 —— */
.mkt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; }
.mkt-toolbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mkt-filter-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--wx-border); background: var(--wx-surface);
  color: var(--wx-text); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.mkt-filter-btn.active { border-color: var(--wx-primary); color: var(--wx-primary); background: var(--wx-primary-light); }
.mkt-filter-btn .mkt-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.mkt-pill-toggle {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--wx-border); background: var(--wx-surface);
  color: var(--wx-text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.mkt-pill-toggle.active { border-color: var(--wx-accent-green); color: var(--wx-accent-green); background: var(--wx-accent-green-light); }
.mkt-pill-toggle .ic { margin-right: 3px; }
.mkt-sort { display: flex; gap: 2px; background: var(--wx-bg); padding: 3px; border-radius: 999px; flex-shrink: 0; }
.mkt-sort a { padding: 6px 11px; border-radius: 999px; font-size: 12px; color: var(--wx-text-muted); text-decoration: none; white-space: nowrap; transition: all .2s; }
.mkt-sort a.active { background: var(--wx-surface); color: var(--wx-primary); font-weight: 700; box-shadow: var(--wx-shadow-sm); }

/* —— 账号市场：筛选面板 —— */
.mkt-filter-panel { display: none; padding: 14px; margin-bottom: 12px; background: var(--wx-surface); border: 1px solid var(--wx-border); border-radius: var(--wx-radius); box-shadow: var(--wx-shadow-sm); }
.mkt-filter-panel.is-open { display: block; }
.mkt-filter-panel label { display: block; font-size: 13px; color: var(--wx-text-muted); margin: 12px 0 6px; }
.mkt-filter-panel label:first-child { margin-top: 0; }
.mkt-filter-panel .wx-filter-select { width: 100%; box-sizing: border-box; }

/* —— 账号市场：双列网格 —— */
.mkt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mkt-grid .wx-empty { grid-column: 1 / -1; }
.mkt-card {
  display: flex; flex-direction: column; background: var(--wx-surface);
  border: 1px solid var(--wx-border); border-radius: var(--wx-radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .12s;
}
.mkt-card:active { box-shadow: var(--wx-shadow); transform: translateY(1px); }
.mkt-cover { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--wx-bg); overflow: hidden; }
.mkt-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-cover-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--wx-text-light); background: linear-gradient(135deg, #f3f0fb, #eef6f5); }
.mkt-cover-ph .ph-ico { font-size: 30px; line-height: 1; }
.mkt-cover-tags { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.mkt-cover-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: #fff; backdrop-filter: blur(2px); }
.mkt-cover-tag.comp { background: rgba(21, 159, 149, .92); }
.mkt-cover-tag.verify { background: rgba(107, 92, 231, .92); }
.mkt-cover-tag.hot { background: rgba(245, 158, 11, .94); }
.mkt-card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mkt-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--wx-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.mkt-meta { font-size: 11px; color: var(--wx-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.mkt-price { color: var(--wx-danger); font-weight: 800; font-size: 18px; line-height: 1; }
.mkt-price i { font-style: normal; font-size: 12px; font-weight: 700; margin-right: 1px; }
.mkt-no { font-size: 10px; color: var(--wx-text-light); white-space: nowrap; }

/* —— 我的订单：卡片 —— */
.ord-card {
  display: flex; gap: 12px; padding: 12px; align-items: stretch;
  background: var(--wx-surface); border: 1px solid var(--wx-border);
  border-radius: var(--wx-radius); text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .12s; margin-bottom: 10px;
}
.ord-card:active { box-shadow: var(--wx-shadow); transform: translateY(1px); }
.ord-cover { position: relative; width: 72px; height: 72px; border-radius: var(--wx-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--wx-bg); }
.ord-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--wx-text-light); font-size: 22px; background: linear-gradient(135deg, #f3f0fb, #eef6f5); }
.ord-role { position: absolute; top: 0; left: 0; font-size: 10px; font-weight: 700; color: #fff; background: var(--wx-primary); padding: 1px 6px; border-bottom-right-radius: 6px; }
.ord-role.sell { background: var(--wx-accent-green); }
.ord-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ord-title { font-size: 15px; font-weight: 600; color: var(--wx-text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ord-meta { font-size: 12px; color: var(--wx-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.ord-price { color: var(--wx-danger); font-weight: 800; font-size: 17px; line-height: 1; }
.ord-price i { font-style: normal; font-size: 11px; font-weight: 700; margin-right: 1px; }
.ord-deliver { font-size: 11px; color: var(--wx-text-light); }
.ord-arrow { align-self: center; color: var(--wx-text-light); font-size: 18px; flex-shrink: 0; }

/* —— 空状态强化 —— */
.wx-empty { padding: 40px 16px; text-align: center; }
.wx-empty-icon { font-size: 40px; margin-bottom: 8px; }
.wx-empty p { color: var(--wx-text-muted); font-size: 14px; margin: 0; }
.wx-action-bar-publish {
  display: flex; align-items: center; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.wx-action-price { flex: 1; min-width: 0; }
.wx-action-price .label { display: block; font-size: 11px; color: var(--wx-text-muted); }
.wx-action-price .amount {
  font-size: 22px; font-weight: 700; color: var(--wx-danger); line-height: 1.2;
}
.wx-action-price .amount.is-empty { font-size: 15px; color: var(--wx-text-muted); font-weight: 500; }
.wx-action-bar-publish .wx-btn-primary {
  flex-shrink: 0; min-width: 132px; padding-left: 24px; padding-right: 24px;
}
/* ===== 评价区域优化（2026-07） ===== */
.wx-review-section { margin-top: 12px; padding-top: 4px; }

.wx-detail-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.wx-detail-head-row .wx-page-title { margin: 0; flex: 1; min-width: 0; }
.wx-detail-head-row .wx-badge { flex-shrink: 0; }

.wx-review-stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.wx-review-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #d8d4e8;
  background: #faf9fd;
  font-size: 13px;
  color: var(--wx-text);
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
}
.wx-review-star .stars { font-size: 12px; letter-spacing: -1px; }
.wx-review-star .text { white-space: nowrap; }
.wx-review-star.active {
  border-color: var(--wx-primary);
  background: var(--wx-primary-light);
  color: var(--wx-primary-dark);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(107, 92, 231, .1);
}
.wx-review-star:active { transform: scale(.97); }

.wx-review-comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.wx-review-comment-row .wx-review-label {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--wx-text-muted);
  padding-top: 10px;
  line-height: 1.4;
}
.wx-review-comment-row textarea {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--wx-border);
  border-radius: 10px;
  background: var(--wx-surface);
  font-size: 14px;
  color: var(--wx-text);
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  -webkit-appearance: none;
}
.wx-review-comment-row textarea:focus {
  outline: none;
  border-color: var(--wx-primary-muted);
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1);
}
.wx-review-comment-row textarea::placeholder { color: var(--wx-text-light); }


/* ===== 游戏目录页（catalog） ===== */
.cat-page { background: var(--wx-bg); min-height: 100vh; }
.cat-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--wx-surface);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--wx-border);
  box-shadow: var(--wx-shadow-sm);
}
.cat-back {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--wx-text); cursor: pointer;
  border-radius: 50%; background: var(--wx-bg);
}
.cat-search-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border-radius: 14px; background: var(--wx-bg);
  border: 1.5px solid var(--wx-border);
  box-shadow: inset 0 1px 2px rgba(26, 22, 48, .04);
  transition: border-color .2s, box-shadow .2s;
}
.cat-search-wrap:focus-within {
  border-color: var(--wx-primary-muted); background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1);
}
.cat-search-wrap .cat-search-icon {
  width: 18px; height: 18px; flex-shrink: 0; font-size: 0; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b98b0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cat-search-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 15px; color: var(--wx-text); min-width: 0;
}
.cat-search-wrap input::placeholder { color: var(--wx-text-light); }
.cat-hot { background: var(--wx-surface); padding: 16px 16px 6px; }
.cat-hot-title {
  font-size: 16px; font-weight: 700; color: var(--wx-text); margin-bottom: 12px;
}
.cat-hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.cat-hot-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 4px; border-radius: 12px; transition: background .12s;
}
.cat-hot-item:active { background: var(--wx-primary-light); }
.cat-hot-icon, .cat-hot-icon-ph {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  position: relative; background: var(--wx-bg);
}
.cat-hot-icon-ph {
  background: var(--wx-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.cat-hot-tag {
  position: absolute; left: -2px; bottom: -2px;
  padding: 2px 6px; border-radius: 6px 6px 6px 0;
  font-size: 9px; font-weight: 700; color: #fff; z-index: 2;
}
.cat-hot-tag.tag-mobile { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.cat-hot-tag.tag-pc { background: linear-gradient(135deg, #667eea, #764ba2); }
.cat-hot-name {
  font-size: 12px; color: var(--wx-text); text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-tabs {
  display: flex; gap: 4px; padding: 4px 12px 10px;
  background: var(--wx-surface); border-bottom: 1px solid var(--wx-border);
  position: sticky; top: 66px; z-index: 90;
  overflow-x: auto; flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs.wx-segmented {
  margin: 0 12px 10px; padding: 4px; border-radius: 14px;
  background: linear-gradient(180deg, #ebe8f6, #e4e0f2);
  border: none; box-shadow: inset 0 1px 2px rgba(26, 22, 48, .06);
}
.cat-tab {
  flex-shrink: 0; padding: 10px 12px; font-size: 14px; font-weight: 600;
  white-space: nowrap; text-align: center;
  color: var(--wx-text-muted); cursor: pointer;
  border: none; background: transparent; border-radius: 11px;
  transition: all .18s; position: relative;
}
.cat-tab.active {
  color: var(--wx-primary-dark); background: var(--wx-surface);
  box-shadow: 0 2px 10px rgba(91, 33, 182, .12);
}
.cat-list { padding-bottom: 30px; }
.cat-letter-header {
  padding: 8px 16px 6px; font-size: 13px; font-weight: 700;
  color: var(--wx-primary); background: var(--wx-primary-light);
  position: sticky; top: 120px; z-index: 2;
}
.cat-game-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--wx-surface);
  border-bottom: 1px solid #f0edf8; cursor: pointer; transition: background .12s;
}
.cat-game-row:active { background: var(--wx-primary-light); }
.cat-game-icon, .cat-game-icon-ph {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.cat-game-icon-ph {
  background: var(--wx-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.cat-game-name { font-size: 15px; color: var(--wx-text); font-weight: 500; }
.cat-game-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cat-svc-tag {
  display: inline-flex; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; border: 1px solid;
}
.cat-svc-tag.tag-boost { background: rgba(124, 58, 237, .08); border-color: rgba(124, 58, 237, .22); color: #6d28d9; }
.cat-svc-tag.tag-account { background: rgba(21, 159, 149, .08); border-color: rgba(21, 159, 149, .22); color: #0f766e; }
.cat-alpha-nav {
  position: fixed; right: 4px; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; padding: 4px 2px;
}
.cat-alpha-nav span {
  display: block; width: 24px; height: 20px; line-height: 20px;
  text-align: center; font-size: 10px; font-weight: 700;
  color: var(--wx-primary); cursor: pointer; border-radius: 4px;
}
.cat-alpha-nav span:active,
.cat-alpha-nav span.nav-active { background: var(--wx-primary); color: #fff; }
.cat-toast {
  position: fixed; top: 45%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  z-index: 9999; width: 72px; height: 72px; line-height: 72px;
  text-align: center; font-size: 32px; font-weight: 700; color: #fff;
  background: rgba(26, 22, 48, .72); border-radius: 16px;
  opacity: 0; pointer-events: none; transition: all .15s ease;
  backdrop-filter: blur(8px);
}
.cat-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cat-empty { text-align: center; padding: 60px 20px; color: var(--wx-text-muted); }
.cat-loading { text-align: center; padding: 40px; color: var(--wx-text-muted); font-size: 14px; }

/* ===== 账号发布动态属性 ===== */
.acc-form-sec {
  font-size: 15px; font-weight: 700; margin: 18px 0 12px;
  padding-left: 10px; border-left: 3px solid var(--wx-primary); color: var(--wx-text);
}
.acc-req { color: var(--wx-danger); font-weight: 600; }
.acc-checkbox-group { margin-bottom: 14px; }
.acc-checkbox-search {
  display: block; width: 100%; margin-bottom: 10px;
  padding: 11px 14px 11px 40px; min-height: 44px;
  border: 1.5px solid var(--wx-border); border-radius: 12px;
  background: var(--wx-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b98b0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 14px center / 16px;
  font-size: 14px; color: var(--wx-text); outline: none;
  box-shadow: var(--wx-shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.acc-checkbox-search:focus {
  border-color: var(--wx-primary-muted);
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1);
}
.acc-checkbox-list {
  display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px; border-radius: 12px;
  background: var(--wx-bg); border: 1.5px solid var(--wx-border);
}
.acc-check.acc-checkbox-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; margin: 0; border-radius: 999px;
  border: 1.5px solid var(--wx-border); background: var(--wx-surface);
  font-size: 13px; font-weight: 500; color: var(--wx-text);
  cursor: pointer; transition: all .15s; box-shadow: var(--wx-shadow-sm);
}
.acc-check.acc-checkbox-item:has(input:checked) {
  border-color: var(--wx-primary-muted); background: var(--wx-primary-light);
  color: var(--wx-primary-dark); font-weight: 600;
}
.acc-check.acc-checkbox-item input { width: 16px; height: 16px; accent-color: var(--wx-primary); margin: 0; }

/* ===== 竞价出价 / 出价列表 弹层 ===== */
.wx-sheet-mask {
  position: fixed; inset: 0; z-index: 3200;
  background: rgba(16, 14, 30, .5);
  display: flex; align-items: flex-end; justify-content: center;
}
.wx-sheet {
  width: 100%; max-width: 480px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--wx-surface); border-radius: 16px 16px 0 0;
  padding-bottom: calc(8px + var(--wx-safe-bottom));
  animation: wxSheetUp .25s cubic-bezier(.4, 0, .2, 1);
}
@keyframes wxSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.wx-sheet-head {
  position: relative; flex-shrink: 0;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--wx-border);
  font-size: 17px; font-weight: 700; color: var(--wx-text); text-align: center;
}
.wx-sheet-close {
  position: absolute; right: 12px; top: 12px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--wx-bg); color: var(--wx-text-muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.wx-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.wx-sheet-body .wx-form .form-section { margin-top: 0; }
.wx-sheet-foot { flex-shrink: 0; padding: 0 16px 8px; }
.wx-bid-list { display: flex; flex-direction: column; }
.wx-bid-box {
  background: var(--wx-surface); border: 1px solid var(--wx-border);
  border-radius: var(--wx-radius); padding: 14px; margin-bottom: 10px;
}
.wx-bid-box .bidder { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.wx-bid-box .bid-message { font-size: 13px; color: var(--wx-text-muted); margin-bottom: 8px; white-space: pre-wrap; }

/* ===== 竞拍角标（市场列表/首页） ===== */
.mkt-cover-tag.auction {
  background: linear-gradient(135deg, #ff7a18, #ff3d00);
  color: #fff;
  box-shadow: 0 1px 4px rgba(255, 61, 0, .35);
}

/* ===== 动态隐藏类（账号发布级联区服切换） ===== */
.djb-hidden-zone { display: none !important; }

/* ===== 账号发布：可折叠分组（对标盼之） ===== */
.acc-group {
  background: var(--wx-surface);
  border: 1px solid var(--wx-border);
  border-radius: var(--wx-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.acc-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; cursor: pointer; user-select: none;
  font-size: 15px; font-weight: 600; color: var(--wx-text);
}
.acc-group-arrow {
  width: 9px; height: 9px; border-right: 2px solid var(--wx-text-muted);
  border-bottom: 2px solid var(--wx-text-muted); transform: rotate(45deg);
  transition: transform .2s; margin-right: 4px;
}
.acc-group.collapsed .acc-group-arrow { transform: rotate(-45deg); }
.acc-group-body { padding: 4px 14px 14px; }
.acc-group.collapsed .acc-group-body { display: none; }
.acc-field-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--wx-text); margin: 12px 0 8px;
}

/* ===== 标签按钮选择器（单选 / 多选） ===== */
.acc-tag-group { margin-bottom: 6px; }
.acc-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; min-height: 36px; box-sizing: border-box;
  background: var(--wx-bg); border: 1px solid var(--wx-border);
  border-radius: 999px; font-size: 13px; color: var(--wx-text);
  cursor: pointer; transition: all .15s; line-height: 1.1; text-align: center;
}
.acc-tag:active { transform: scale(.96); }
.acc-tag.active {
  background: var(--wx-primary-light); border-color: var(--wx-primary);
  color: var(--wx-primary); font-weight: 600;
}
.acc-tag-overflow { display: none; }
.acc-tag-group.expanded .acc-tag-overflow { display: inline-flex; }
.acc-tag-more {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; min-height: 36px; box-sizing: border-box;
  background: var(--wx-bg); border: 1px dashed var(--wx-border);
  border-radius: 999px; font-size: 13px; color: var(--wx-primary);
  cursor: pointer;
}
.acc-tag-more:active { transform: scale(.96); }
.zone-level { margin-top: 8px; }


/* ===== 收起态标签字段（选完只留已选项，点击就地展开重选） ===== */
.acc-field { padding: 12px 14px; }
.acc-text-input { margin-top: 6px; }
.acc-field-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--wx-text); margin-bottom: 8px;
}
.acc-field-control {
  min-height: 42px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 6px 10px; box-sizing: border-box;
  background: var(--wx-bg); border: 1px solid var(--wx-border);
  border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.acc-field-control:focus { outline: none; border-color: var(--wx-primary); }
.acc-field-placeholder { color: var(--wx-text-muted); font-size: 14px; }
.acc-tag-static {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 999px; background: var(--wx-primary-light);
  border: 1px solid var(--wx-primary); color: var(--wx-primary);
  font-size: 13px; font-weight: 600; line-height: 1.1;
}
.acc-field-highlight { animation: accHi .6s ease; }
@keyframes accHi { 0% { box-shadow: 0 0 0 3px var(--wx-primary-light); } 100% { box-shadow: none; } }

/* ===== 游戏已选卡片 ===== */
.game-selected-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--wx-border); border-radius: 10px;
  background: #faf9fd;
}
.game-selected-name { flex: 1; font-weight: 600; font-size: 15px; color: var(--wx-text); }
.game-selected-change { color: var(--wx-primary); font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.game-selected-change:active { opacity: 0.7; }

/* ===== 摘要修改按钮 ===== */
.acc-change-btn { color: var(--wx-primary); font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.acc-change-btn:active { opacity: 0.7; }



