:root {
  --primary: #ff9500;
  --primary-deep: #ff8000;
  --price: #ff301a;
  --green: #0bd570;
  --green-deep: #047d41;
  --blue: #2191e1;
  --gold: #ffc150;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #3d3d3d;
  --text-3: #666666;
  --muted: #8d9199;
  --line: #e6e8eb;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.page-body { min-height: calc(100vh - 300px); padding: 12px 12px 40px; }

/* ---------- header：白底 52px（真实站规格） ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,.05);
  position: sticky; top: 0; z-index: 50;
}
.header-top { display: flex; align-items: center; gap: 26px; height: 56px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 24px; color: var(--primary-deep); flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(180deg, #ffa726, #ff8000);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-style: italic; font-weight: 800;
}
.logo-text { line-height: 1.1; color: var(--text); }
.logo-text em {
  display: block; font-style: normal; font-size: 10px; font-weight: 400;
  color: var(--primary-deep); letter-spacing: 1px; margin-top: 1px;
}
.header-search { flex: 1; max-width: 540px; display: flex; align-items: stretch; height: 38px; }
.header-search .search-game {
  border: 1px solid var(--primary); border-right: none;
  border-radius: 19px 0 0 19px; padding: 0 14px; background: #fff;
  font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 4px;
  white-space: nowrap; cursor: pointer;
}
.header-search input {
  flex: 1; border: 1px solid var(--primary); border-left: none; border-right: none;
  padding: 0 12px; font-size: 14px; outline: none; color: var(--text);
}
.header-search button {
  border: none; background: var(--primary); color: #fff;
  border-radius: 0 19px 19px 0; padding: 0 26px; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
}
.header-search button:hover { background: var(--primary-deep); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .user-name { font-size: 13px; color: var(--text-2); }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #ffa726, #ff8000);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 16px; border-radius: 6px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 11px 26px; font-size: 15px; border-radius: 8px; }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--price); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 标题 ---------- */
.section-title {
  font-size: 20px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #ffa726, #ff8000);
}

/* ---------- 首页三栏 banner 区（真实高度 308px） ---------- */
.hero-grid {
  display: grid; grid-template-columns: 190px 1fr 250px; gap: 12px;
  height: 308px; margin-bottom: 12px;
}
.side-panel {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden;
}
.sp-user {
  background: #fff; border-radius: 8px; padding: 18px 14px; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.sp-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #fff3e2, #ffe1b8);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary-deep); font-weight: 700;
}
.sp-hello { font-size: 13px; font-weight: 600; }
.sp-btns { display: flex; gap: 8px; }
.sp-btns .btn { padding: 6px 14px; font-size: 13px; }
.sp-notice { background: #fff; border-radius: 8px; padding: 12px 14px; flex: 1; overflow: hidden; }
.sp-notice-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 13px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--line); margin-bottom: 6px;
}
.sp-notice-head a { color: var(--muted); font-weight: 400; font-size: 12px; }
.sp-notice ul { list-style: none; }
.sp-notice li { padding: 4px 0; font-size: 12.5px; }
.sp-notice li a {
  color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.sp-notice li a:hover { color: var(--primary-deep); }
.side-cats {
  width: 190px; flex-shrink: 0; background: rgba(255,255,255,.92);
  border-radius: 8px; padding: 8px 0; overflow: hidden;
}
.side-cats-head { font-weight: 700; font-size: 14px; padding: 8px 16px 6px; }
.side-cat {
  display: flex; align-items: center; gap: 9px; padding: 6px 16px; font-size: 13px;
  color: var(--text-2); height: 28px;
}
.side-cat:hover { background: var(--primary); color: #fff; }
.sc-icon {
  width: 22px; height: 22px; border-radius: 6px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.side-cat:hover .sc-icon { transform: scale(1.05); }
.sc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-arrow { color: #c2c5cc; }
.side-cat:hover .sc-arrow { color: #fff; }

/* 轮播 */
.carousel { position: relative; border-radius: 8px; overflow: hidden; flex: 1; min-width: 0; }
.carousel .slides { display: flex; height: 100%; transition: transform .5s ease; }
.carousel .slide {
  min-width: 100%; height: 100%; display: flex; flex-direction: column;
  justify-content: center; padding: 40px; color: #fff;
}
.carousel .slide h2 { font-size: 30px; margin-bottom: 12px; letter-spacing: 1px; }
.carousel .slide p { opacity: .92; font-size: 15px; max-width: 460px; }
.carousel .slide .s-badge {
  margin-top: 20px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; width: fit-content;
}
.carousel .dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.carousel .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.carousel .dot.on { background: #fff; width: 20px; border-radius: 4px; }

/* 右侧登录面板 */
.banner-right { width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.lc-btns { display: flex; gap: 8px; margin-top: 2px; }
.lc-btns .btn { padding: 6px 16px; font-size: 13px; }
.deal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; padding: 4px 0; color: var(--text-3);
}
.deal-row b { color: var(--price); font-weight: 700; }

/* ---------- 五大金刚区 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
.service-card {
  background: #fff; border-radius: 8px; padding: 18px 14px;
  display: flex; align-items: center; gap: 14px; transition: all .15s;
}
.service-card:hover { box-shadow: 0 4px 14px rgba(255,153,0,.25); transform: translateY(-2px); }
.service-card .s-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
}
.service-card .s-title { font-weight: 700; font-size: 15px; }
.service-card .s-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 平台服务数据条 ---------- */

/* ---------- 楼层（真实 280px） ---------- */
.floor { margin-bottom: 16px; }
.floor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.floor-sub { color: var(--muted); font-size: 13px; }
.floor-more { margin-left: auto; color: var(--muted); font-size: 13px; }
.floor-more:hover { color: var(--primary); }
.floor-body { display: grid; grid-template-columns: 188px 1fr; gap: 12px; height: 280px; }
.floor-promo {
  border-radius: 8px; color: #fff; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 6px; font-size: 13px; overflow: hidden; position: relative;
}
.floor-promo .fp-icon { font-size: 38px; margin-bottom: 6px; }
.floor-promo strong { font-size: 20px; letter-spacing: 1px; }
.floor-promo .fp-go {
  margin-top: auto; background: rgba(255,255,255,.22); align-self: flex-start;
  padding: 5px 16px; border-radius: 999px; font-size: 12px;
}
.promo-account { background: linear-gradient(160deg, #ff9f43, #ff6a00); }
.promo-charge { background: linear-gradient(160deg, #ff5e62, #ff2e50); }
.promo-boost { background: linear-gradient(160deg, #9b6bff, #7a4cf0); }
.promo-item { background: linear-gradient(160deg, #21b6e8, #0e8fc9); }
.promo-coin { background: linear-gradient(160deg, #ffc83d, #f5a300); }
.floor-goods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.f-goods {
  background: #fff; border-radius: 8px; padding: 12px;
  display: flex; flex-direction: column; gap: 7px; transition: all .15s; border: 1px solid transparent;
}
.f-goods:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: #ffe1b8; transform: translateY(-2px); }
.f-goods-cover {
  height: 110px; border-radius: 6px; margin-bottom: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff;
}
.f-goods-title {
  font-size: 13px; font-weight: 600; line-height: 1.45; height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.f-goods-meta { display: flex; gap: 5px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.f-goods-meta span { background: #f6f6f6; padding: 2px 7px; border-radius: 4px; }
.f-goods-bottom { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.goods-price { color: var(--price); font-weight: 800; font-size: 17px; }
.goods-price::before { content: "¥"; font-size: 12px; margin-right: 1px; }
.f-seller { font-size: 11px; color: var(--muted); max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 底部双栏（实时成交 / 攻略 + 品牌号） ---------- */
.deal-list .deal-row { padding: 9px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; }
.deal-list .deal-row:last-child { border-bottom: none; }
.brand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brand-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 6px; background: #fafafa; font-size: 12.5px;
}
.brand-item .bi-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ---------- 保障条 ---------- */
.trust-bar {
  margin-top: 16px; background: #fff; border-radius: 8px;
  padding: 18px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust-item { display: flex; align-items: center; gap: 11px; }
.trust-item .t-icon {
  width: 40px; height: 40px; border-radius: 10px; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8fbf1, #c9f5dd);
}
.trust-item strong { font-size: 14px; display: block; }
.trust-item p { font-size: 12px; color: var(--muted); }

/* ---------- 商品卡片（列表/通用） ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.goods-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  transition: all .15s; display: flex; flex-direction: column; border: 1px solid transparent;
}
.goods-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: #ffe1b8; transform: translateY(-2px); }
.goods-cover {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #fff;
}
.goods-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.goods-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-meta { display: flex; gap: 6px; font-size: 11px; color: var(--muted); }
.goods-meta .tag { background: #f6f6f6; border-radius: 4px; padding: 2px 8px; }
.goods-bottom { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.goods-seller { font-size: 11px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 列表页 ---------- */
.filter-bar {
  background: #fff; border-radius: 8px; padding: 14px 18px; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 14px;
}
.filter-bar .label { color: var(--muted); margin-right: 2px; }
.filter-chip {
  padding: 5px 14px; border-radius: 999px; background: #f6f6f6;
  border: 1px solid transparent; cursor: pointer; font-size: 13px;
}
.filter-chip.active { background: #fff3e2; color: var(--primary-deep); border-color: var(--primary); }
.sort-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sort-row .count { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; border-radius: 6px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); font-size: 14px;
}
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-tip { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }

/* ---------- 游戏分区 ---------- */
.game-card {
  background: #fff; border-radius: 8px; padding: 18px 10px; text-align: center;
  cursor: pointer; transition: all .15s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,153,0,.18); }
.game-card .icon {
  width: 50px; height: 50px; margin: 0 auto 9px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 25px; color: #fff;
}
.game-card .name { font-weight: 600; font-size: 14px; }
.game-card .cat { font-size: 12px; color: var(--muted); }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.detail-main, .detail-side { background: #fff; border-radius: 8px; }
.detail-main { padding: 24px 28px; }
.detail-side { padding: 22px; height: fit-content; position: sticky; top: 78px; }
.detail-cover {
  height: 260px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 76px; color: #fff; margin-bottom: 20px;
}
.detail-title { font-size: 21px; margin-bottom: 12px; line-height: 1.4; }
.detail-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-tags .tag { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: #f6f6f6; color: var(--muted); }
.detail-tags .tag.ok { background: #e8fbf1; color: var(--green-deep); }
.detail-desc { font-size: 14px; white-space: pre-wrap; line-height: 1.9; }
.detail-desc h4 { margin: 18px 0 8px; font-size: 15px; }
.side-price { font-size: 30px; color: var(--price); font-weight: 800; }
.side-price::before { content: "¥"; font-size: 18px; margin-right: 2px; }
.side-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.side-row:last-of-type { border-bottom: none; }
.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fav-btn.active { border-color: var(--gold); color: #d98a00; }

/* ---------- 表单 ---------- */
.auth-card {
  max-width: 420px; margin: 30px auto; background: #fff;
  border-radius: 12px; padding: 32px 34px;
}
.auth-card h2 { font-size: 21px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 10px 13px; font-size: 14px; outline: none; background: #fff;
  font-family: inherit; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { height: 44px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.form-error {
  background: #fdecec; color: var(--price); border: 1px solid #f7c8ca;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 15px; display: none;
}
.form-error.show { display: block; }
.form-ok {
  background: #e8fbf1; color: var(--green-deep); border: 1px solid #bfe6d0;
  radius: 8px; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 15px; display: none;
}
.form-ok.show { display: block; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-alt a { color: var(--primary-deep); font-weight: 600; }

/* ---------- 个人中心 ---------- */
.user-nav { background: #fff; border-radius: 8px; padding: 14px 0; position: sticky; top: 78px; }
.user-nav a { display: block; padding: 10px 22px; font-size: 14px; color: var(--text-3); border-left: 3px solid transparent; }
.user-nav a.active, .user-nav a:hover { color: var(--primary-deep); border-left-color: var(--primary); background: #fff7ef; }
.user-panel { background: #fff; border-radius: 8px; padding: 22px 26px; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.order-row:last-child { border-bottom: none; }
.order-status { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.order-status.st-pending_pay { background: #fff3e2; color: #d98a00; }
.order-status.st-paid { background: #e8f3fc; color: var(--blue); }
.order-status.st-delivered { background: #e8fbf1; color: var(--green-deep); }
.order-status.st-completed { background: #f0f0f0; color: var(--muted); }
.order-status.st-cancelled { background: #fdecec; color: var(--price); }
.order-acts { margin-left: auto; display: flex; gap: 8px; }
.order-acts .btn { padding: 6px 13px; font-size: 13px; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 32px 0 22px; margin-top: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 420px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.copyright { color: #b3b3b3; font-size: 12px; margin-top: 22px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(20px);
  background: rgba(26,26,26,.92); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { height: auto; grid-template-columns: 1fr; }
  .side-cats, .banner-right { width: 100%; }
  .carousel { height: 200px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
    .floor-body { grid-template-columns: 1fr; height: auto; }
  .floor-promo { display: none; }
  .floor-goods { grid-template-columns: repeat(2, 1fr); }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap, .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .detail-side { position: static; }
  .header-search .search-game { display: none; }
}

/* ---------- 面包屑（真实站规格：12px/#999/当前#111） ---------- */
.breadcrumb ul { display: flex; align-items: center; font-size: 12px; color: #999; line-height: 1.4; padding: 12px 0; }
.breadcrumb .separator { padding: 0 5px; }
.breadcrumb .current { color: #111; }

/* ---------- 列表页（真实站规格） ---------- */
.goods-box { background: #fff; border-radius: 8px; margin-top: 4px; padding: 24px; }
.filter-row { display: flex; align-items: flex-start; margin-bottom: 16px; }
.filter-label {
  color: var(--text-2); flex-shrink: 0; font-size: 14px; font-weight: 600;
  margin-right: 16px; width: 60px; line-height: 32px;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; flex: 1; }
.filter-opts .opt {
  padding: 5px 12px; border: 1px solid transparent; border-radius: 8px;
  color: var(--text-3); font-size: 14px; cursor: pointer; display: inline-block;
}
.filter-opts .opt:hover { color: var(--primary-deep); }
.filter-opts .opt.selected {
  background: #fff3e2; border: 1px solid var(--primary);
  color: var(--primary-deep); font-weight: 600;
}
.sort-bar {
  display: flex; align-items: center; border-top: 1px solid #f2f2f2;
  padding-top: 14px; margin-top: 4px;
}
.sort-bar .filter-label { line-height: 1; }
.result-count { margin-left: auto; color: var(--muted); font-size: 13px; }

/* 商品网格（真实站：4列，行距24 列距16，图200px 圆角6px） */
.list-container { min-height: 380px; margin-top: 6px; }
.goods-list-dom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.g-item { cursor: pointer; display: flex; flex-direction: column; border-radius: 6px; }
.g-item:hover .g-item-title { color: var(--primary-deep); }
.g-item-top { position: relative; }
.g-item-img {
  width: 100%; height: 200px; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 58px; color: rgba(255,255,255,.92);
}
.g-item-guarantee {
  position: absolute; top: 8px; left: 8px; background: rgba(11,213,112,.95);
  color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px;
}
.g-item-bottom { padding: 8px 2px 18px; }
.g-item-title-line { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.g-item-text-tag {
  flex-shrink: 0; border: none; border-radius: 2px; font-size: 11px; padding: 0 4px;
  background: #fff3e2; color: #d98a00; line-height: 18px; height: 18px;
}
.g-item-title {
  font-size: 14px; color: var(--text-2); line-height: 18px; height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g-item-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.g-item-tags .g-item-text-tag { background: #f6f6f6; color: var(--muted); }
.g-item-price-line { display: flex; align-items: baseline; justify-content: space-between; }
.g-item-price { color: var(--price); font-size: 18px; font-weight: 700; }
.g-item-price i { font-style: normal; font-size: 12px; margin-right: 1px; }
.g-item-seller { font-size: 12px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 详情页（真实站结构：两栏 + sticky 购买面板） ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.detail-left { display: flex; flex-direction: column; gap: 16px; }
.detail-main-img {
  height: 380px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 110px; color: rgba(255,255,255,.92);
}
.detail-info-card { background: #fff; border-radius: 8px; padding: 0 24px 24px; }
.detail-info-tabs { display: flex; gap: 32px; border-bottom: 1px solid #f2f2f2; }
.detail-info-tabs .d-tab {
  padding: 14px 2px; font-size: 15px; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.detail-info-tabs .d-tab.active { color: var(--primary-deep); font-weight: 700; border-bottom-color: var(--primary); }
.detail-desc { font-size: 14px; white-space: pre-wrap; line-height: 1.9; padding-top: 16px; color: var(--text-2); }
.detail-desc h4 { margin: 14px 0 8px; font-size: 15px; color: var(--text); }

.buy-card {
  background: #fff; border-radius: 8px; padding: 20px;
  position: sticky; top: 74px;
}
.buy-price-line { display: flex; align-items: baseline; margin-bottom: 8px; }
.buy-title { font-size: 17px; margin-bottom: 12px; line-height: 1.5; font-weight: 600; }
.buy-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.buy-tags .tag { font-size: 12px; padding: 3px 10px; border-radius: 3px; background: #f6f6f6; color: var(--muted); }
.buy-tags .tag.ok { background: #e8fbf1; color: var(--green-deep); }
.buy-rows { border-top: 1px dashed var(--line); padding-top: 8px; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.btn-buy { width: 100%; padding: 13px; font-size: 16px; border-radius: 8px; letter-spacing: 2px; }
.buy-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.buy-hint.safe { color: var(--green-deep); background: #e8fbf1; border-radius: 6px; padding: 8px 10px; }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .goods-list-dom { grid-template-columns: repeat(2, 1fr); }
  .g-item-img { height: 150px; }
  .filter-opts { gap: 4px 14px; }
}

/* ---------- 发布页：图片上传 ---------- */
.upload-box { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.up-cell { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; }
.up-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-del {
  position: absolute; top: 0; right: 0; width: 20px; height: 20px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 0 0 0 8px;
}
.upload-add {
  width: 84px; height: 84px; border: 1.5px dashed #d9dce3; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #b3b9c9; cursor: pointer; transition: all .15s;
}
.upload-add:hover { border-color: var(--primary); color: var(--primary); }

/* 商品卡真实图片模式 */
.g-item-img img, .detail-main-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.f-goods-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 首页：实时成交（右侧面板） ---------- */
.deal-lines { list-style: none; }
.deal-lines li { padding: 3px 0; }
.deal-lines li a {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3);
  overflow: hidden;
}
.deal-lines li a:hover { color: var(--primary-deep); }
.dl-game { flex-shrink: 0; }
.dl-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-price { color: var(--price); font-size: 12px; flex-shrink: 0; }

/* ---------- 首页：昨日热销榜 ---------- */
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hot-item {
  background: #fff; border-radius: 8px; padding: 12px;
  display: flex; gap: 10px; align-items: center; transition: all .15s; border: 1px solid transparent;
}
.hot-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: #ffe1b8; transform: translateY(-2px); }
.hot-rank {
  width: 20px; height: 24px; flex-shrink: 0; font-size: 15px; font-weight: 800;
  font-style: italic; color: #c2c5cc; font-family: Georgia, serif;
}
.hot-rank.r1 { color: #ff301a; }
.hot-rank.r2 { color: #ff8000; }
.hot-rank.r3 { color: #ffb300; }
.hot-cover {
  width: 88px; height: 66px; border-radius: 6px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: rgba(255,255,255,.92);
}
.hot-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hot-title {
  font-size: 13px; color: var(--text-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 首页：品牌官方号 ---------- */
.brand-zone { margin-top: 26px; }
.brand-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.brand-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 8px; background: #fff; font-size: 13px; color: var(--text-2);
  transition: all .15s;
}
.brand-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); color: var(--primary-deep); }
.brand-item .bi-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

@media (max-width: 960px) {
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 搜索联想 / 游戏选择弹层 ---------- */
.header-search { position: relative; }
.search-suggest, .game-panel {
  position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
  background: #fff; border-radius: 10px; z-index: 60;
  box-shadow: 0 8px 28px rgba(0,0,0,.14); border: 1px solid #f0f0f0;
  display: none; overflow: hidden;
}
.search-suggest.open, .game-panel.open { display: block; }
.ss-head { font-size: 12px; color: var(--muted); padding: 10px 14px 4px; }
.ss-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px;
  color: var(--text-2);
}
.ss-item:hover { background: #fff7ef; }
.ss-icon { flex-shrink: 0; }
.ss-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-price { color: var(--price); font-size: 12px; flex-shrink: 0; }
.ss-more {
  display: block; padding: 9px 14px; font-size: 12px; color: var(--primary-deep);
  border-top: 1px solid #f5f5f5; text-align: center;
}
.ss-more:hover { background: #fff7ef; }

.gp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 700; padding: 12px 16px 8px;
}
.gp-close { color: var(--muted); cursor: pointer; font-weight: 400; font-size: 14px; padding: 2px 6px; }
.gp-close:hover { color: var(--text); }
.gp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 14px 12px;
  max-height: 300px; overflow-y: auto;
}
.gp-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; font-size: 13px; color: var(--text-2);
}
.gp-item:hover { background: #fff7ef; color: var(--primary-deep); }
.gp-all {
  display: block; text-align: center; padding: 10px; font-size: 13px;
  color: var(--primary-deep); border-top: 1px solid #f5f5f5;
}
.gp-all:hover { background: #fff7ef; }

/* ---------- 热销榜 tabs ---------- */
.hot-tabs { display: flex; gap: 4px; margin-left: 6px; }
.hot-tab {
  padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--text-3);
  background: #fff;
}
.hot-tab:hover { color: var(--primary-deep); }
.hot-tab.on { background: var(--primary); color: #fff; font-weight: 600; }
.hide { display: none !important; }

@media (max-width: 960px) {
  .gp-grid { grid-template-columns: repeat(3, 1fr); }
  .hot-tabs { flex-wrap: wrap; }
}

/* ---------- 游戏排行（昨日热销榜：游戏维度） ---------- */
.rank-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px;
  background: #fff; border-radius: 8px; padding: 16px 20px;
}
.rank-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; font-size: 14px;
}
.rank-item:hover { background: #fff7ef; }
.rank-item .hot-rank { width: 18px; }
.rank-name { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-count { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.rank-item:hover .rank-name { color: var(--primary-deep); }

/* ---------- 游戏攻略 ---------- */
.strategy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.strategy-card {
  background: #fff; border-radius: 8px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px; transition: all .15s;
}
.strategy-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.strategy-card h4 { font-size: 15px; line-height: 1.5; }
.strategy-card:hover h4 { color: var(--primary-deep); }
.strategy-card p {
  font-size: 13px; color: var(--text-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.strategy-card span { font-size: 12px; color: var(--muted); }

/* ---------- 右侧快捷入口 ---------- */
.sp-links { display: flex; gap: 14px; }
.sp-links a { font-size: 13px; color: var(--text-3); }
.sp-links a:hover { color: var(--primary-deep); }

@media (max-width: 960px) {
  .rank-grid { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
}

/* ---------- 用户中心（对齐源站：左分组菜单 + 资料卡 + 统计卡） ---------- */
.uc-grid { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }
.uc-nav { background: #fff; border-radius: 8px; padding: 10px 0; position: sticky; top: 78px; }
.uc-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 12px 22px;
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
}
.uc-nav-item:hover, .uc-nav-item.on { color: var(--primary-deep); background: #fff7ef; }
.uc-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; font-size: 14.5px; font-weight: 600; color: var(--text-2);
}
.uc-nav-head i { font-style: normal; color: #c2c5cc; font-size: 12px; }
.uc-nav-sub {
  display: block; padding: 9px 22px 9px 48px; font-size: 13.5px; color: var(--text-3);
}
.uc-nav-sub:hover { color: var(--primary-deep); background: #fff7ef; }
.uc-main { display: flex; flex-direction: column; gap: 14px; }
.uc-profile {
  background: linear-gradient(90deg, #fff8ef, #fff);
  border: 1px solid #ffe9d2; border-radius: 8px; padding: 22px 26px;
  display: flex; align-items: center; gap: 18px;
}
.uc-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #ffa726, #ff8000); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}
.uc-profile-info { flex: 1; }
.uc-nick { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.uc-nick b { font-size: 19px; }
.uc-uid { font-size: 13px; color: var(--muted); }
.uc-tags { margin-top: 6px; display: flex; gap: 8px; }
.uc-tags .tag { font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.uc-tags .tag.ok { background: #e8fbf1; color: var(--green-deep); }
.uc-panel { background: #fff; border-radius: 8px; padding: 22px 26px; }
.uc-panel h3 { font-size: 16px; margin-bottom: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stat-card .sc-label { font-size: 13px; color: var(--text-3); display: block; margin-bottom: 8px; }
.stat-card .sc-num { font-size: 26px; font-weight: 800; color: var(--primary); }
@media (max-width: 960px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-nav { position: static; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 详情页 v2（源站模块） ---------- */
.card-title { font-size: 16px; margin-bottom: 14px; font-weight: 700; }
.flow-steps { display: flex; gap: 8px; }
.flow-step {
  flex: 1; text-align: center; padding: 14px 6px;
  background: #fff8ef; border-radius: 8px;
}
.flow-step .fs-n {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 6px;
}
.flow-step b { display: block; font-size: 14px; margin-bottom: 3px; }
.flow-step p { font-size: 11.5px; color: var(--muted); }
.flow-note { margin-top: 12px; font-size: 13px; color: var(--green-deep); background: #e8fbf1; border-radius: 6px; padding: 8px 12px; }

.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.asset-item { background: #fff8ef; border-radius: 8px; padding: 12px; text-align: center; }
.asset-item b { display: block; font-size: 18px; color: var(--primary-deep); }
.asset-item span { font-size: 12px; color: var(--muted); }
.skin-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-tag {
  background: #f6f6f6; border-radius: 5px; padding: 5px 10px; font-size: 12.5px; color: var(--text-2);
}
.skin-tag i { font-style: normal; color: var(--primary-deep); margin-left: 4px; font-size: 11px; }

.safety-card { background: #fff8ef; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.safety-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.safety-head b { color: var(--price); font-size: 13px; }
.safety-bar { height: 8px; background: #ffe9d2; border-radius: 4px; margin: 9px 0 7px; overflow: hidden; }
.safety-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffa726, #ff8000); }
.safety-note { font-size: 11px; color: var(--muted); }

.seller-cert { border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 6px; }
.seller-cert h4 { font-size: 13.5px; margin-bottom: 9px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 9px; }
.cert-item { font-size: 12px; color: var(--green-deep); background: #e8fbf1; border-radius: 5px; padding: 5px 9px; }
.cert-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); padding: 5px 0; }
.cert-row b { color: var(--text); font-weight: 600; }

/* ---------- 列表页热搜标签（源站 hot keywords） ---------- */
.hot-keywords .hot-kw {
  font-size: 13px; color: var(--text-2); background: #f6f6f6;
  border-radius: 5px; padding: 4px 12px;
}
.hot-keywords .hot-kw:hover { color: var(--primary-deep); background: #fff3e2; }

/* ---------- 登录页 tabs + 协议（源站结构） ---------- */
.login-tabs { display: flex; gap: 26px; margin: 14px 0 20px; border-bottom: 1px solid var(--line); }
.login-tab {
  padding: 10px 2px; font-size: 15px; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.login-tab.on { color: var(--primary-deep); font-weight: 700; border-bottom-color: var(--primary); }
.agree-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px;
  font-size: 12px; color: var(--muted); margin: 4px 0 14px; cursor: pointer;
}
.agree-row input { width: auto; margin: 0 4px 0 0; accent-color: var(--primary); }
.agree-row .lk { color: var(--primary-deep); }

/* ---------- 顶栏（源站 topbar） ---------- */
.topbar { background: #f7f8fa; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.tb-links { display: flex; gap: 16px; }
.tb-links a:hover { color: var(--primary-deep); }

/* ---------- 平台服务数据条（稳/多/快/真） ---------- */
.ps-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 16px; background: #fff; border-radius: 8px; padding: 18px 24px;
}
.ps-item { display: flex; align-items: center; gap: 14px; }
.ps-item .ps-key {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff9f43, #ff6a00);
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ps-item strong { font-size: 15px; display: block; }
.ps-item p { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .ps-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 列表页侧边专区（源站） ---------- */
.list-with-side { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; }
.side-zones { background: #fff; border-radius: 8px; padding: 10px 0; }
.sz-head { font-weight: 700; font-size: 14px; padding: 8px 18px 6px; }
.sz-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13.5px; color: var(--text-2); }
.sz-item:hover { background: #fff7ef; color: var(--primary-deep); }
.sz-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.g-item-time { font-size: 11px; color: var(--muted); }
.g-item-meta2 { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.g-item-want { font-size: 11px; color: var(--muted); }
.g-item-price em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
@media (max-width: 960px) { .list-with-side { grid-template-columns: 1fr; } .side-zones { display: none; } }

/* ---------- 游戏选择页（A-Z 索引，源站 /youxi/） ---------- */
.letter-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.letter-cell { display: flex; gap: 14px; width: 100%; }
.letter-tag {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  background: #f6f6f6; color: var(--text-2); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.letter-tag.hot { background: var(--primary); color: #fff; }
.letter-games { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.lg-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2);
}
.lg-item:hover { background: #fff7ef; color: var(--primary-deep); }
.lg-item .sc-icon { width: 22px; height: 22px; font-size: 12px; }

/* ---------- 新闻资讯页（源站 /news） ---------- */
.news-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.news-card { background: #fff; border-radius: 8px; padding: 24px 28px; }
.news-title { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.news-title a:hover { color: var(--primary-deep); }
.news-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.news-author { color: var(--primary-deep); font-weight: 600; }
.news-summary { font-size: 14px; color: var(--text-3); line-height: 1.8; margin-bottom: 12px; }
.news-more { font-size: 13px; color: var(--primary-deep); }
.news-detail .news-title { font-size: 24px; }
.news-body p { font-size: 14.5px; line-height: 2; color: var(--text-2); margin-bottom: 14px; }

/* ---------- 详情页 v3（源站模块：SKU/店铺卡/商品信息表/相似推荐） ---------- */
.viewing-tip { margin-left: 14px; font-size: 12px; color: var(--muted); }
.sku-block { margin-bottom: 14px; }
.sku-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sku-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-opt {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--text-2); background: #fafafa;
}
.sku-opt:hover { border-color: var(--primary); color: var(--primary-deep); }
.sku-opt.selected {
  background: #fff3e2; border: 1px solid var(--primary);
  color: var(--primary-deep); font-weight: 600;
}
.seller-say { font-size: 14px; line-height: 1.9; color: var(--text-2); white-space: pre-wrap; }
.say-warn { margin-top: 10px; font-size: 12.5px; color: var(--price); background: #fdecec; border-radius: 6px; padding: 8px 12px; }
.info-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.info-tr {
  display: flex; padding: 10px 16px; font-size: 13.5px;
  border-bottom: 1px solid #f5f5f5;
}
.info-tr:last-child { border-bottom: none; }
.info-tr span { width: 90px; color: var(--muted); flex-shrink: 0; }
.info-tr b { font-weight: 600; }
.disclaimer-list { padding-left: 18px; }
.disclaimer-list li { font-size: 12.5px; color: var(--muted); line-height: 1.9; }

.shop-card { background: #fff8ef; border-radius: 8px; padding: 14px 16px; margin-bottom: 6px; }
.shop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.shop-name { font-weight: 700; font-size: 14px; }
.shop-online { font-size: 11.5px; color: var(--success); }
.shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 9px; }
.ss-item { text-align: center; }
.ss-item b { display: block; font-size: 16px; color: var(--primary-deep); }
.ss-item span { font-size: 11px; color: var(--muted); }

.sim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sim-item { display: flex; flex-direction: column; gap: 5px; border-radius: 8px; }
.sim-cover {
  height: 92px; border-radius: 6px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(255,255,255,.92);
}
.sim-cover img { width: 100%; height: 100%; object-fit: cover; }
.sim-title {
  font-size: 12.5px; color: var(--text-2); line-height: 1.4; height: 35px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sim-item:hover .sim-title { color: var(--primary-deep); }
.sim-seller { font-size: 11px; color: var(--muted); }
.sim-item .goods-price { font-size: 15px; }
@media (max-width: 960px) { .sim-grid { grid-template-columns: repeat(2, 1fr); } .shop-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 收银台 ---------- */
.cashier-card {
  max-width: 480px; margin: 30px auto; background: #fff;
  border-radius: 12px; padding: 30px 32px;
}
.cashier-card h2 { font-size: 21px; margin-bottom: 4px; }
.cashier-card .sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; word-break: break-all; }
.cashier-amount {
  display: flex; justify-content: space-between; align-items: baseline;
  background: #fff8ef; border-radius: 8px; padding: 14px 18px; margin-bottom: 18px;
}
.cashier-amount span { font-size: 14px; }
.pay-channels { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pay-channel {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px; cursor: pointer;
  transition: border-color .15s;
}
.pay-channel:has(input:checked) { border-color: var(--primary); background: #fff8ef; }
.pay-channel input { accent-color: var(--primary); }
.pc-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pc-info { flex: 1; }
.pc-info b { display: block; font-size: 14.5px; }
.pc-info span { font-size: 12px; color: var(--muted); }
.pc-check { color: var(--primary); font-weight: 800; opacity: 0; }
.pay-channel:has(input:checked) .pc-check { opacity: 1; }
.pay-mock-tip { font-size: 12px; color: #d98a00; background: #fff3e2; border-radius: 6px; padding: 8px 12px; margin: 12px 0; }
.mono { font-size: 11.5px; color: var(--muted); font-family: Menlo, monospace; }


/* ---------- 实名认证 ---------- */
.verify-done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
}
.verify-done .vd-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #16A34A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.verify-done b { display: block; margin-bottom: 4px; color: #15803D; }
.verify-done p { margin: 0; font-size: 13px; color: #166534; }

/* ---------- 数据导出 ---------- */
.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.export-row select,
.export-row input[type="date"] {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--text, #111827);
}
.export-row .btn { height: 38px; }

/* 订单页游戏账号明文 */
#accountPlain {
  display: inline-block;
  padding: 3px 8px;
  background: #F3F4F6;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

@media (max-width: 720px) {
  .export-row select,
  .export-row input[type="date"],
  .export-row .btn { width: 100%; }
}


/* ==========================================================================
   手机端适配（≤640px 常规手机横向，≤480px 窄屏）
   960px 断点已把首页各栅格降列，这里解决头部挤压与窄屏细节。
   ========================================================================== */

@media (max-width: 640px) {
  /* 顶栏在手机上无信息价值，占高度就隐藏 */
  .topbar { display: none; }

  /* 头部换行：logo 与操作区同排，搜索框独占第二排 */
  .header-top {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0 10px;
  }
  .logo { font-size: 19px; gap: 7px; }
  .logo-mark { width: 28px; height: 28px; font-size: 16px; border-radius: 6px; }
  .logo-text em { display: none; }

  .header-search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    height: 36px;
  }
  .header-search button { padding: 0 18px; letter-spacing: 1px; }

  .header-actions { gap: 8px; }
  /* 昵称文字让位给按钮，头像本身即可表达登录态 */
  .header-actions .user-name { display: none; }
  .header-actions .btn { padding: 0 12px; height: 32px; font-size: 13px; }

  /* 搜索联想与选择游戏弹层跟随整行宽度 */
  .search-suggest, .game-panel { left: 0; right: 0; width: auto; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); }

  /* 粘性头部变高，需要同步下移吸顶元素 */
  .uc-nav, .detail-side { top: 8px; }

  /* 内容区收紧，把宽度留给内容本身 */
  .container { padding: 0 10px; }
  .goods-box { padding: 14px; }
  .uc-panel, .uc-profile { padding: 16px 14px; }
  .auth-card, .cashier-card { margin: 14px auto; padding: 20px 16px; }

  /* 轮播降高，避免首屏被 banner 占满 */
  .carousel { height: 160px; }
  .carousel .slide h3 { font-size: 18px; }
  .carousel .slide p { font-size: 13px; }

  /* 触控目标：按钮与筛选项保证约 44px 可点区域 */
  .btn { min-height: 38px; }
  .btn-lg { min-height: 44px; }
  .filter-opts .opt { padding: 9px 12px; }
  .pay-channel { padding: 14px 12px; }

  /* 筛选行改为上下排布，标签不再挤压选项 */
  .filter-row { flex-direction: column; }
  .filter-label { width: auto; line-height: 1.6; margin-bottom: 6px; }
  .sort-bar { flex-wrap: wrap; gap: 8px; }
  .result-count { margin-left: 0; width: 100%; }

  /* 个人中心：左侧菜单横向滚动，省掉整屏高度 */
  .uc-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 6px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .uc-nav-group { display: flex; flex-shrink: 0; }
  .uc-nav-head { display: none; }
  .uc-nav-item, .uc-nav-sub {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  /* 订单行改为竖排，避免标题被压成一列字 */
  .order-row { flex-wrap: wrap; gap: 8px; }
  .order-acts { width: 100%; justify-content: flex-end; }

  /* 表格型信息行左右对齐即可，不再强撑等宽 */
  .info-tr, .side-row { font-size: 13.5px; }
}

@media (max-width: 480px) {
  /* 商品卡降为单列：两列在 375px 下每张仅约 160px，图文都挤 */
  .goods-grid, .floor-goods, .goods-list-dom { grid-template-columns: 1fr; }
  .goods-list-dom { gap: 14px; }

  /* 服务/信任/统计类卡片保持两列，它们内容短，两列更省屏 */
  .service-grid, .trust-bar, .ps-bar, .stat-cards, .hot-grid, .brand-list, .sim-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title { font-size: 17px; }
  .carousel { height: 140px; }
  .uc-avatar { width: 52px; height: 52px; font-size: 22px; }
  .stat-card { padding: 12px 14px; }
  .stat-card .sc-num { font-size: 21px; }

  /* 详情页价格与主按钮占满，方便单手操作 */
  .side-actions { flex-direction: column; }
  .side-actions .btn { width: 100%; }
}

/* 移动版提示条：手机访问 PC 域名时给出切换入口 */
.mobile-hint {
  display: none;
  background: #fff7ef;
  border-bottom: 1px solid #ffe0c2;
  font-size: 13px;
  color: var(--primary-deep);
  padding: 8px 12px;
  text-align: center;
}
.mobile-hint a { color: var(--primary-deep); font-weight: 700; text-decoration: underline; }
@media (max-width: 640px) {
  .mobile-hint.show { display: block; }
}


/* 页脚版本切换入口 */
.site-switch a { color: var(--muted); text-decoration: underline; }
.site-switch a:hover { color: var(--primary-deep); }
