/* ============================================================
   星游集市 - 清新浅色主题
   柔光渐变 · 毛玻璃白卡 · 圆角卡片 · 精致动效
   ============================================================ */
:root {
  --bg: #f2f5ff;
  --bg2: #eaf0ff;
  --card: rgba(255,255,255,.72);
  --card-solid: #ffffff;
  --card-solid2: #f5f7ff;
  --line: rgba(46,58,110,.08);
  --line2: rgba(46,58,110,.16);
  --text: #1c2440;
  --text2: #5a6487;
  --text3: #8a94b5;
  --pri: #7c5cff;
  --pri2: #00a8d6;
  --green: #00b894;
  --gold: #ff9f43;
  --red: #ff5c7a;
  --grad-main: linear-gradient(135deg, #7c5cff 0%, #5a8cff 50%, #22d6ee 100%);
  --grad-pri: linear-gradient(135deg, #7c5cff, #a35cff);
  --grad-gold: linear-gradient(135deg, #ffb454, #ff7a3f);
  --grad-green: linear-gradient(135deg, #00d9a3, #00b894);
  --grad-red: linear-gradient(135deg, #ff5c7a, #ff3d68);
  --shadow: 0 10px 30px rgba(58,74,138,.13);
  --shadow-pri: 0 8px 24px rgba(124,92,255,.25);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --tabbar-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 520px at -8% 18%, rgba(0,212,255,.13), transparent 55%),
    radial-gradient(800px 420px at 50% 110%, rgba(0,229,160,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; border: none; background: none; }
input, textarea, select { width: 100%; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: calc(var(--tabbar-h) + 24px); }

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.brand { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #fff;
  box-shadow: var(--shadow-pri), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 1px;
  background: linear-gradient(90deg, #4a3f9e, #2b6ee0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo-img { height: 26px; width: auto; border-radius: 8px; flex-shrink: 0; }
.top-search {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line2);
  border-radius: 999px; padding: 9px 14px;
  transition: border-color .2s;
}
.top-search:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.search-ico { color: var(--pri2); font-size: 16px; }
.top-search input { background: none; font-size: 13px; color: var(--text); }
.top-search input::placeholder { color: var(--text3); }
.top-icon { position: relative; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.top-icon .ico-bubble { font-size: 17px; }

/* ===== 首页 ===== */
.page { padding: 14px; }
.section { margin-bottom: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.sec-title::before { content: ''; width: 4px; height: 16px; border-radius: 4px; background: var(--grad-main); box-shadow: 0 0 8px rgba(124,92,255,.6); }
.sec-more { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 3px; }
.sec-more:active { opacity: .6; }

/* 轮播 */
.banner { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; box-shadow: 0 14px 34px rgba(58,74,138,.18); }
.banner-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.banner-slide { position: relative; min-width: 100%; height: 170px; overflow: hidden; }
.banner-slide .banner-bg { position: absolute; inset: 0; }
.banner-slide .banner-inner { position: relative; z-index: 2; padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.banner-tag { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); margin-bottom: 10px; }
.banner-title { font-size: 23px; font-weight: 900; line-height: 1.25; text-shadow: 0 3px 14px rgba(0,0,0,.4); }
.banner-sub { margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.banner-btn { margin-top: 14px; align-self: flex-start; padding: 8px 20px; border-radius: 999px; background: rgba(255,255,255,.95); color: #101528; font-size: 13px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.banner-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.35); transition: all .3s; }
.banner-dots i.on { width: 20px; background: #fff; }
.banner-slide .banner-img-link { display: block; width: 100%; height: 100%; }
.banner-slide .banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 公告 */
.notice-bar { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, rgba(124,92,255,.16), rgba(0,212,255,.08)); border: 1px solid rgba(124,92,255,.3); border-radius: var(--r-md); padding: 11px 14px; margin-bottom: 16px; }
.notice-bar .n-ico { flex-shrink: 0; font-size: 15px; }
.notice-bar .n-text { flex: 1; font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-bar .n-more { flex-shrink: 0; font-size: 11px; color: var(--pri2); }

/* 分类宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 0; border-radius: var(--r-md); transition: transform .18s; }
.cat-item:active { transform: scale(.93); }
.cat-ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(58,74,138,.18), inset 0 1px 0 rgba(255,255,255,.6); }
.cat-ico::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.28), transparent 45%); }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 12px; color: var(--text2); }

/* 商品卡片 */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.goods-card { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; position: relative; }
.goods-card:active { transform: scale(.97); }
.goods-card:hover { box-shadow: 0 14px 30px rgba(58,74,138,.18); }
.goods-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.goods-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.goods-card:hover .goods-cover img { transform: scale(1.06); }
.goods-tag { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.goods-tag span { padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff; backdrop-filter: blur(4px); }
.tag-hot { background: linear-gradient(135deg, #ff5c7a, #ff3d68); box-shadow: 0 4px 12px rgba(255,60,104,.4); }
.tag-verified { background: rgba(255,255,255,.92); border: 1px solid rgba(58,74,138,.16); color: #4a3f9e; }
.goods-flag { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); font-size: 10px; color: #00a384; font-weight: 700; }
.goods-body { padding: 10px 11px 12px; }
.goods-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-meta { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11px; color: var(--text3); }
.goods-meta .gm-item { padding: 2px 7px; border-radius: 6px; background: rgba(46,58,110,.05); border: 1px solid var(--line); }
.goods-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.goods-price { color: var(--gold); font-weight: 900; font-size: 17px; line-height: 1; }
.goods-price small { font-size: 11px; font-weight: 600; margin-right: 1px; }
.goods-orig { font-size: 11px; color: var(--text3); text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.goods-seller { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.goods-seller img { width: 15px; height: 15px; border-radius: 50%; }

/* 商品列表（横排大卡片） */
.goods-list { display: flex; flex-direction: column; gap: 12px; }
.goods-row { display: flex; gap: 12px; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 11px; transition: transform .18s; }
.goods-row:active { transform: scale(.98); }
.goods-row .goods-cover { width: 108px; flex-shrink: 0; border-radius: var(--r-md); aspect-ratio: 4/3.4; }
.goods-row .goods-body { padding: 2px 4px; flex: 1; display: flex; flex-direction: column; }
.goods-row .goods-title { height: auto; -webkit-line-clamp: 2; }
.goods-row .goods-meta { margin-top: 6px; }
.goods-row .goods-price-row { margin-top: auto; }

/* ===== 列表页 ===== */
.filter-bar { position: sticky; top: 62px; z-index: 50; display: flex; gap: 8px; padding: 8px 0 12px; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.filter-bar .f-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 0; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line); font-size: 12.5px; color: var(--text2); transition: all .2s; }
.filter-bar .f-btn.on { color: #fff; background: var(--grad-pri); border-color: transparent; box-shadow: var(--shadow-pri); }
.filter-bar .f-btn .arr { font-size: 9px; }
.sort-row { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.sort-row::-webkit-scrollbar { display: none; }
.sort-chip { flex-shrink: 0; padding: 7px 15px; border-radius: 999px; font-size: 12px; color: var(--text2); background: var(--card-solid); border: 1px solid var(--line); }
.sort-chip.on { color: #fff; background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(0,212,255,.75)); border-color: transparent; }
.game-filter { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.game-filter::-webkit-scrollbar { display: none; }
.game-chip { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 12px; color: var(--text2); background: var(--card-solid); border: 1px solid var(--line); }
.game-chip img { width: 20px; height: 20px; border-radius: 6px; }
.game-chip.on { color: #fff; background: var(--grad-pri); border-color: transparent; box-shadow: var(--shadow-pri); }
.empty-box { text-align: center; padding: 60px 0; color: var(--text3); }
.empty-box .eb-ico { font-size: 46px; margin-bottom: 12px; opacity: .6; }

/* ===== 详情页 ===== */
.detail-cover { border-radius: var(--r-lg); overflow: hidden; position: relative; margin-bottom: 14px; box-shadow: 0 14px 34px rgba(58,74,138,.18); }
.detail-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.detail-cover .dc-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 45%, rgba(245,247,255,.92)); }
.detail-cover .dc-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.detail-cover .dc-tags span { padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; backdrop-filter: blur(6px); }
.detail-cover .dc-game { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.detail-cover .dc-game img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 12px rgba(58,74,138,.22); }
.detail-cover .dc-game b { font-size: 15px; color: #1c2440; text-shadow: 0 1px 6px rgba(255,255,255,.9); }

.card { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px; margin-bottom: 13px; }
.card-title { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.card-title::before { content: ''; width: 4px; height: 14px; border-radius: 4px; background: var(--grad-pri); }

.detail-title { font-size: 18px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.price-card { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.price-now { color: var(--gold); font-size: 30px; font-weight: 900; line-height: 1; text-shadow: 0 0 24px rgba(255,180,84,.35); }
.price-now small { font-size: 14px; margin-right: 2px; }
.price-orig { font-size: 13px; color: var(--text3); text-decoration: line-through; padding-bottom: 4px; }
.price-safe { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--green); padding-bottom: 4px; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags .d-tag { padding: 6px 12px; border-radius: 9px; font-size: 12px; background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(34,214,238,.10)); border: 1px solid rgba(124,92,255,.32); color: #4a3f9e; font-weight: 600; }

.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { width: 86px; color: var(--text3); font-size: 13px; flex-shrink: 0; }
.info-row .v { flex: 1; color: var(--text); font-size: 13.5px; }
.info-row .v.badge { color: var(--green); font-weight: 700; }

.detail-intro { font-size: 13.5px; line-height: 1.85; color: var(--text2); white-space: pre-wrap; }
.detail-imgs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; margin-top: 4px; scrollbar-width: thin; }
.detail-imgs img { height: 120px; width: auto; max-width: 100%; border-radius: 12px; flex-shrink: 0; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(58,74,138,.1); background: #fff; }

.safe-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.safe-item { display: flex; gap: 9px; align-items: flex-start; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px; }
.safe-item .s-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--grad-green); display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 4px 12px rgba(0,229,160,.3); }
.safe-item .s-txt b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.safe-item .s-txt span { font-size: 11px; color: var(--text3); line-height: 1.5; }

/* 底部购买栏 */
.buy-bar { position: fixed; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(58,74,138,.10); }
.buy-bar .bb-info { flex: 1; }
.buy-bar .bb-price { color: var(--gold); font-size: 20px; font-weight: 900; }
.buy-bar .bb-price small { font-size: 12px; }
.buy-bar .bb-sold { font-size: 11px; color: var(--text3); margin-top: 2px; }
.buy-bar .bb-btns { display: flex; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: all .2s; border: none; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-pri); }
.btn-ghost { background: rgba(255,255,255,.8); border: 1px solid var(--line2); color: var(--text); }
.btn-outline { background: transparent; border: 1.5px solid var(--pri2); color: var(--pri2); }
.btn-green { background: var(--grad-green); color: #052018; box-shadow: 0 8px 20px rgba(0,229,160,.3); }
.btn-lg { padding: 13px 34px; font-size: 15px; }
.btn-md { padding: 10px 22px; font-size: 13.5px; }
.btn-sm { padding: 7px 15px; font-size: 12.5px; }
.btn-block { width: 100%; padding: 14px 0; font-size: 15px; border-radius: var(--r-md); }
.btn:disabled { opacity: .5; }

/* ===== 登录注册 ===== */
.auth-wrap { padding: 20px 0 10px; }
.auth-card { background: var(--card-solid); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: -80px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.35), transparent 70%); }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo .a-logo { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; background: var(--grad-main); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: #fff; box-shadow: var(--shadow-pri); }
.auth-logo h1 { font-size: 20px; font-weight: 800; }
.auth-logo p { font-size: 12px; color: var(--text3); margin-top: 4px; }
.form-item { margin-bottom: 15px; }
.form-label { font-size: 12.5px; color: var(--text2); margin-bottom: 7px; display: block; }
.form-input { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.8); border: 1px solid var(--line2); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .2s; }
.form-input:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(124,92,255,.16); }
.form-input .f-ico { font-size: 16px; color: var(--text3); }
.form-input input { background: none; font-size: 14px; }
.form-input input::placeholder { color: var(--text3); }
.form-tip { font-size: 12px; color: var(--text3); text-align: center; margin-top: 12px; }
.form-tip a { color: var(--pri2); }
.auth-hint { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(0,212,255,.08); border: 1px dashed rgba(0,212,255,.35); font-size: 12px; color: var(--text2); line-height: 1.8; }
.auth-hint b { color: var(--gold); }

/* ===== 个人中心 ===== */
.user-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(0,212,255,.1)); border: 1px solid rgba(124,92,255,.3); border-radius: var(--r-lg); padding: 18px 16px; margin-bottom: 13px; position: relative; overflow: hidden; }
.user-hero::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,.25), transparent 70%); }
.user-avatar { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 8px 20px rgba(58,74,138,.18); flex-shrink: 0; background: #e8ecff; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; }
.user-info .u-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.user-info .u-name .vip-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--grad-gold); color: #221400; font-weight: 800; }
.user-info .u-desc { font-size: 12px; color: var(--text2); margin-top: 5px; }
.user-stats { display: flex; gap: 22px; margin-top: 12px; }
.user-stats .us-item { text-align: center; }
.user-stats .us-item b { display: block; font-size: 17px; font-weight: 900; color: #3d2f8f; }
.user-stats .us-item span { font-size: 11px; color: var(--text3); }

.menu-group { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 13px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); position: relative; transition: background .15s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: rgba(46,58,110,.04); }
.menu-item .m-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mi-purple { background: rgba(124,92,255,.18); }
.mi-cyan { background: rgba(0,212,255,.15); }
.mi-green { background: rgba(0,229,160,.15); }
.mi-gold { background: rgba(255,180,84,.16); }
.mi-red { background: rgba(255,92,122,.15); }
.menu-item .m-txt { flex: 1; font-size: 14px; font-weight: 600; }
.menu-item .m-txt small { display: block; font-size: 11px; color: var(--text3); font-weight: 400; margin-top: 2px; }
.menu-item .m-arrow { color: var(--text3); font-size: 14px; }
.menu-item .m-badge { padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; }

/* ===== 订单列表 ===== */
.order-card { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px; margin-bottom: 12px; }
.order-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text3); margin-bottom: 10px; }
.order-status { font-weight: 800; }
.st-paid { color: var(--pri2); }
.st-done { color: var(--green); }
.st-cancel { color: var(--text3); }
.order-main { display: flex; gap: 11px; }
.order-main .om-cover { width: 84px; height: 66px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.order-main .om-cover img { width: 100%; height: 100%; object-fit: cover; }
.order-main .om-info { flex: 1; }
.order-main .om-title { font-size: 13px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-main .om-price { color: var(--gold); font-weight: 800; font-size: 15px; margin-top: 5px; }
.order-main .om-price small { font-size: 11px; }
.order-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }

/* ===== 聊天 ===== */
.chat-session { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--card-solid); border: 1px solid var(--line); margin-bottom: 11px; position: relative; }
.chat-session .cs-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e8ecff; position: relative; }
.chat-session .cs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-session .cs-avatar .online-dot { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--card-solid); }
.chat-session .cs-info { flex: 1; min-width: 0; }
.chat-session .cs-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.chat-session .cs-name .kf-tag { font-size: 9.5px; padding: 1px 6px; border-radius: 5px; background: var(--grad-pri); color: #fff; font-weight: 700; }
.chat-session .cs-last { font-size: 12px; color: var(--text3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-session .cs-time { position: absolute; right: 14px; top: 14px; font-size: 10.5px; color: var(--text3); }
.chat-session .cs-unread { position: absolute; right: 14px; top: 34px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 6px rgba(255,92,122,.55); font-size: 0; line-height: 0; overflow: hidden; }

/* 聊天室 */
.chat-room { display: flex; flex-direction: column; height: calc(100vh - 64px - var(--tabbar-h) - 28px); }
.chat-room-head { display: flex; align-items: center; gap: 10px; padding: 13px 4px; }
.chat-room-head .cr-back { width: 34px; height: 34px; border-radius: 10px; background: var(--card-solid); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.chat-room-head .cr-title { flex: 1; font-weight: 800; font-size: 16px; }
.chat-room-head .cr-title small { display: block; font-size: 10.5px; color: var(--text3); font-weight: 400; margin-top: 2px; }
.msg-box { flex: 1; overflow-y: auto; padding: 6px 2px; scroll-behavior: smooth; }
.msg-item { display: flex; gap: 9px; margin-bottom: 14px; }
.msg-item .m-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e8ecff; }
.msg-item .m-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-item .m-body { max-width: 74%; }
.msg-item .m-name { font-size: 10.5px; color: var(--text3); margin-bottom: 4px; }
.msg-item .m-bubble { display: inline-block; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; background: var(--card-solid2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg-item.me { flex-direction: row-reverse; }
.msg-item.me .m-body { text-align: right; }
.msg-item.me .m-bubble { background: var(--grad-pri); color: #fff; border-color: transparent; border-top-left-radius: 14px; border-top-right-radius: 4px; box-shadow: 0 6px 18px rgba(124,92,255,.3); }
.msg-sys { text-align: center; font-size: 11px; color: var(--text3); margin: 10px 0 16px; }
.msg-sys span { background: var(--card-solid); border: 1px solid var(--line); padding: 4px 13px; border-radius: 999px; }
.msg-form { display: flex; gap: 9px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.msg-form textarea { flex: 1; resize: none; height: 44px; max-height: 110px; background: var(--card-solid); border: 1px solid var(--line2); border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; line-height: 1.4; }
.msg-form textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.msg-form .btn { padding: 12px 22px; flex-shrink: 0; }

/* ===== 群聊 ===== */
.group-hero { background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(124,92,255,.14)); border: 1px solid rgba(0,212,255,.28); border-radius: var(--r-lg); padding: 16px; margin-bottom: 13px; display: flex; align-items: center; gap: 12px; }
.group-hero .gh-ico { width: 52px; height: 52px; border-radius: 15px; background: var(--grad-main); display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: var(--shadow-pri); }
.group-hero .gh-info b { font-size: 16px; font-weight: 800; display: block; }
.group-hero .gh-info span { font-size: 11.5px; color: var(--text2); }
.group-hero .gh-online { margin-left: auto; text-align: center; }
.group-hero .gh-online b { display: block; font-size: 19px; color: var(--green); font-weight: 900; }
.group-hero .gh-online span { font-size: 10.5px; color: var(--text3); }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.9); background: rgba(255,255,255,.96); border: 1px solid var(--line2); color: #1c2440; padding: 12px 22px; border-radius: 12px; font-size: 13.5px; z-index: 999; opacity: 0; pointer-events: none; transition: all .25s; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== 通用 ===== */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.page-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.page-title::before { content: ''; width: 4px; height: 17px; border-radius: 4px; background: var(--grad-main); }

/* ===== 客服浮窗 ===== */
.kf-float {
  position: fixed; right: 14px; bottom: 92px; z-index: 120;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-main); color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(124,92,255,.5), inset 0 0 0 2px rgba(255,255,255,.14);
  animation: kfPulse 2.6s infinite;
}
.kf-float::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(124,92,255,.35); animation: kfRing 2.6s infinite;
}
.kf-float-ico { width: 22px; height: 22px; line-height: 1; }
.kf-float-txt { font-size: 9.5px; margin-top: 3px; font-weight: 700; letter-spacing: 1px; }
@keyframes kfPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes kfRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ===== 红色未读角标（纯红点，不显示数字） ===== */
.ub-badge {
  position: absolute; z-index: 3;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 6px rgba(255,92,122,.55);
  font-size: 0; line-height: 0; overflow: hidden;
}
/* 顶部消息图标角标 */
.ub-top { top: -5px; right: -6px; border: 2px solid #fff; }
/* 客服浮窗角标 */
.ub-float { top: -3px; right: -3px; border: 2px solid #fff; }
/* 底部 TabBar 客服项角标 */
.ub-tab { top: 2px; left: 50%; transform: translateX(10px); border: 2px solid rgba(255,255,255,.85); }

/* ===== 底部 TabBar ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  width: 100%; max-width: 720px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(46,58,110,.08);
  box-shadow: 0 -8px 30px rgba(58,74,138,.12);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
  padding-left: max(2px, env(safe-area-inset-left, 0px));
  padding-right: max(2px, env(safe-area-inset-right, 0px));
}
.tab-item {
  flex: 1; min-width: 0; text-align: center; color: var(--text3); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2px; padding: 4px 0 3px; position: relative; transition: color .2s;
}
.tab-item .tab-ico {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; line-height: 1; color: #8a94b5; transition: all .2s;
}
.tab-item .tab-ico .svg-ico { width: 20px; height: 20px; }
.tab-item .tab-txt { font-weight: 600; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.tab-item.on { color: var(--pri2); }
.tab-item.on .tab-ico { color: var(--pri); transform: translateY(-1px); }
.tab-item.on::after {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad-main);
  box-shadow: 0 2px 10px rgba(0,212,255,.6);
}
.tab-center { position: relative; }
.tab-fab {
  position: absolute; top: -32px; left: 0; right: 0; margin: 0 auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-main); color: #fff; font-weight: 400;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 6px 18px rgba(124,92,255,.45), inset 0 0 0 2.5px rgba(255,255,255,.22);
}
.tab-fab .svg-ico { width: 22px; height: 22px; }
.tab-center .tab-txt { margin-top: 24px; }

@media (max-width: 900px) {
  .tabbar { max-width: 100%; }
}

@media (min-width: 900px) {
  .app { max-width: 720px; }
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SVG 图标基础 ===== */
.svg-ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
/* 各图标容器适配 */
.tab-ico { width: 22px; height: 22px; color: var(--text3); }
.tab-item.on .tab-ico { color: var(--pri); }
.kf-float-ico { width: 22px; height: 22px; color: #fff; }
.kf-float .svg-ico { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.cr-back .svg-ico { width: 17px; height: 17px; color: var(--text2); }
.m-ico { color: #4a3f9e; }
.m-ico .svg-ico { width: 18px; height: 18px; }
.s-ico { color: #fff; }
.s-ico .svg-ico { width: 17px; height: 17px; }
.n-ico { color: var(--pri); display: inline-flex; }
.n-ico .svg-ico { width: 15px; height: 15px; }
.gh-ico { color: #fff; }
.gh-ico .svg-ico { width: 26px; height: 26px; }
.eb-ico { color: var(--pri); opacity: .55; }
.eb-ico .svg-ico { width: 46px; height: 46px; }
.f-ico { color: var(--text3); display: inline-flex; }
.f-ico .svg-ico { width: 17px; height: 17px; }
.ico-bubble { display: inline-flex; }
.ico-bubble .svg-ico { width: 19px; height: 19px; color: var(--text2); }
.sec-title .svg-ico { width: 18px; height: 18px; color: var(--pri); }
.banner-tag { color: #fff; }
.banner-tag .svg-ico { width: 12px; height: 12px; }
.arr { display: inline-flex; }
.arr .svg-ico { width: 12px; height: 12px; }
.m-arrow { display: inline-flex; }
.m-arrow .svg-ico { width: 14px; height: 14px; }
.chat-session .svg-ico, .msg-item .svg-ico { width: 17px; height: 17px; }
.group-hero .gh-ico .svg-ico { width: 26px; height: 26px; color: #fff; }
.auth-logo .a-logo { box-shadow: var(--shadow-pri); }
.price-safe .svg-ico { width: 14px; height: 14px; }
.info-row .v.badge .svg-ico { width: 13px; height: 13px; }

/* 搜索图标 */
.search-ico { display: inline-flex; align-items: center; }
.search-ico .svg-ico { width: 16px; height: 16px; color: var(--text3); }

/* ===== 客服中心 Tabs（大号按钮式，明显可点击） ===== */
.kf-tabs {
  display: flex; gap: 12px; padding: 14px; margin-bottom: 16px;
  background: #fff;
  border: 1px solid rgba(46,58,110,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(58,74,138,.10);
}
.kf-tab {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 8px; border-radius: 14px;
  font-size: 14.5px; font-weight: 800; text-decoration: none;
  color: var(--pri);
  background: #fff;
  border: 1.5px solid rgba(124,92,255,.55);
  box-shadow: 0 4px 12px rgba(124,92,255,.12);
  transition: all .22s ease;
}
.kf-tab .kf-tab-ico {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #eef1ff, #e6f8ff);
  color: var(--pri); flex-shrink: 0;
  transition: all .22s ease;
}
.kf-tab .kf-tab-ico .svg-ico { width: 18px; height: 18px; }
.kf-tab .kf-tab-txt { line-height: 1.2; white-space: nowrap; }
.kf-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(124,92,255,.2); }
.kf-tab:active { transform: scale(.97); }
.kf-tab.on {
  background: linear-gradient(135deg, #7c5cff, #5a8cff 55%, #22d6ee);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(124,92,255,.4);
}
.kf-tab.on::before {
  content: ''; position: absolute; top: 5px; left: 14px; right: 14px; height: 3px;
  border-radius: 999px; background: rgba(255,255,255,.75);
}
.kf-tab.on .kf-tab-ico { background: #fff; color: var(--pri); }
.kf-tab-badge {
  position: absolute; top: -6px; right: -4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 6px rgba(255,92,122,.55);
  border: 2px solid #fff;
  font-size: 0; line-height: 0; overflow: hidden;
}
.kf-tab.on .kf-tab-badge { border-color: rgba(255,255,255,.9); }

/* ===== 订单交易会话返回链接 ===== */
.oc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text2); margin-bottom: 10px; text-decoration: none; }
.oc-back .svg-ico { width: 15px; height: 15px; }

/* ============================================================
   首页重构增强区块（index.php 结构升级配套样式）
   参考交易猫 / 螃蟹账号移动端首页观感：
   金刚区服务入口 + 服务保障条 + 游戏横向滑动卡 + 热卖双列精致卡 + 最新上架横条卡
   ============================================================ */

/* ---- 轮播强化（保留 .banner-track/.banner-slide/.banner-dots 结构，兼容 main.js） ---- */
.banner { border-radius: 22px; }
.banner-slide { height: 180px; }
.banner-dots { gap: 7px; bottom: 13px; }
.banner-dots i {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.banner-dots i.on {
  width: 22px;
  background: linear-gradient(90deg, #fff, #e8ecff);
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(255,255,255,.55);
}

/* ---- 金刚区服务入口 ---- */
.quick-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px 6px 10px; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(58,74,138,.08);
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; transition: transform .16s; }
.quick-item:active { transform: scale(.92); }
.quick-ico {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(58,74,138,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.quick-ico::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.32), transparent 45%); }
.quick-ico .svg-ico { width: 21px; height: 21px; position: relative; z-index: 1; }
.qg-pri { background: linear-gradient(135deg, #8f6cff, #6a4dff); }
.qg-gold { background: linear-gradient(135deg, #ffb454, #ff7a3f); }
.qg-cyan { background: linear-gradient(135deg, #38b6f5, #00a8d6); }
.qg-green { background: linear-gradient(135deg, #00d9a3, #00b894); }
.qg-red { background: linear-gradient(135deg, #ff5c7a, #ff3d68); }
.quick-txt { font-size: 11.5px; font-weight: 700; color: var(--text2); }

/* ---- 服务保障条 ---- */
.guarantee-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px;
}
.g-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 4px; text-align: center;
}
.g-ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.g-ico .svg-ico { width: 14px; height: 14px; }
.gi-pri { background: linear-gradient(135deg, #8f6cff, #6a4dff); }
.gi-cyan { background: linear-gradient(135deg, #38b6f5, #00a8d6); }
.gi-gold { background: linear-gradient(135deg, #ffb454, #ff7a3f); }
.gi-green { background: linear-gradient(135deg, #00d9a3, #00b894); }
.g-txt { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.g-txt b { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.g-txt small { font-size: 9.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---- 游戏分类横向滑动卡 ---- */
.cat-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 2px 2px 8px; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.game-card {
  flex-shrink: 0; width: 92px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: transform .18s;
}
.game-card:active { transform: scale(.94); }
.game-card-ico {
  width: 56px; height: 56px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  box-shadow: 0 8px 18px rgba(58,74,138,.2), inset 0 1px 0 rgba(255,255,255,.55);
}
.game-card-ico::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.3), transparent 45%); }
.game-card-ico img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.game-card-name { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.game-card-cnt { font-size: 10px; color: var(--text3); background: rgba(124,92,255,.08); border-radius: 999px; padding: 2px 8px; }

/* ---- 热卖推荐双列精致卡 ---- */
.hm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hm-card {
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.hm-card:active { transform: scale(.97); }
.hm-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.hm-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.hm-card:hover .hm-cover img { transform: scale(1.06); }
.hm-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.hm-badge { padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff; backdrop-filter: blur(4px); }
.hm-badge.hot { background: linear-gradient(135deg, #ff5c7a, #ff3d68); box-shadow: 0 4px 12px rgba(255,60,104,.4); }
.hm-badge.safe { background: rgba(255,255,255,.92); border: 1px solid rgba(58,74,138,.16); color: #4a3f9e; }
.hm-flag {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  font-size: 10px; color: #00a384; font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
}
.hm-flag .svg-ico { width: 11px; height: 11px; }
.hm-body { padding: 10px 11px 12px; }
.hm-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-tags { display: flex; align-items: center; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.hm-tags span { padding: 2px 7px; border-radius: 6px; background: rgba(46,58,110,.05); border: 1px solid var(--line); font-size: 10.5px; color: var(--text3); }
.hm-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.hm-price { color: var(--gold); font-weight: 900; font-size: 17px; line-height: 1; }
.hm-price small { font-size: 11px; font-weight: 600; margin-right: 1px; }
.hm-views { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.hm-views .svg-ico { width: 13px; height: 13px; }

/* ---- 最新上架横条卡 ---- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card {
  display: flex; gap: 12px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 11px; position: relative;
  transition: transform .18s;
}
.news-card:active { transform: scale(.98); }
.news-cover { position: relative; width: 104px; flex-shrink: 0; border-radius: var(--r-md); aspect-ratio: 4/3.2; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-new {
  position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px;
  background: linear-gradient(135deg, #ffb454, #ff7a3f); color: #fff;
  font-size: 9.5px; font-weight: 800; box-shadow: 0 3px 10px rgba(255,122,63,.4);
}
.news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.news-meta span { padding: 2px 7px; border-radius: 6px; background: rgba(46,58,110,.05); border: 1px solid var(--line); font-size: 10.5px; color: var(--text3); }
.news-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.news-price { color: var(--gold); font-weight: 900; font-size: 16px; line-height: 1; }
.news-price small { font-size: 11px; font-weight: 600; margin-right: 1px; }
.news-time { margin-left: auto; font-size: 10.5px; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.news-time .svg-ico { width: 12px; height: 12px; }
.news-views { font-size: 10.5px; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.news-views .svg-ico { width: 12px; height: 12px; }

/* 宽屏适配：热卖卡 3 列 */
@media (min-width: 900px) {
  .hm-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   首页第二轮重构增强区块（index.php v2 配套样式）
   参考螃蟹账号首页：运营横幅 + 金刚区升级 + 新人礼包促销条
   + 特色服务横滑卡 + 信任保障数据背书 + 品牌感游戏卡 + 商品卡质感
   ============================================================ */

/* ---- 顶部运营横幅条 ---- */
.op-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 10px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(255,155,60,.16), rgba(255,214,102,.12) 55%, rgba(124,92,255,.10));
  border: 1px solid rgba(255,155,60,.32);
}
.op-inner { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.op-ico {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff9f43, #ff7a3f);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(255,122,63,.35);
}
.op-ico .svg-ico { width: 16px; height: 16px; }
.op-txt { display: flex; flex-direction: column; min-width: 0; }
.op-txt b { font-size: 13px; font-weight: 800; color: #5a3a10; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-txt small { font-size: 10.5px; color: #a3702e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-cs {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(255,155,60,.4);
  font-size: 12px; font-weight: 800; color: #ff7a3f;
}
.op-cs .svg-ico { width: 14px; height: 14px; }

/* ---- 金刚区升级（5 格圆角大卡 + 副文案） ---- */
.quick-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 8px 12px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(58,74,138,.08);
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 2px 0; position: relative; transition: transform .16s;
}
.quick-item:active { transform: scale(.92); }
.quick-ico {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(58,74,138,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.quick-ico::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.32), transparent 45%); }
.quick-ico .svg-ico { width: 22px; height: 22px; position: relative; z-index: 1; }
.qg-pri { background: linear-gradient(135deg, #8f6cff, #6a4dff); }
.qg-gold { background: linear-gradient(135deg, #ffb454, #ff7a3f); }
.qg-cyan { background: linear-gradient(135deg, #38b6f5, #00a8d6); }
.qg-green { background: linear-gradient(135deg, #00d9a3, #00b894); }
.qg-red { background: linear-gradient(135deg, #ff5c7a, #ff3d68); }
.quick-txt { font-size: 11.5px; font-weight: 800; color: var(--text); }
.quick-sub { font-size: 9px; color: var(--text3); }

/* ---- 新人礼包促销条 ---- */
.gift-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 12px 14px;
  border-radius: var(--r-md); position: relative; overflow: hidden;
  background: linear-gradient(120deg, #ff5c7a, #ff3d68 60%, #ff7a3f);
  box-shadow: 0 10px 24px rgba(255,60,104,.28);
}
.gift-bar::after {
  content: ''; position: absolute; right: -18px; top: -22px;
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.gift-bar::before {
  content: ''; position: absolute; right: 26px; bottom: -30px;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.gift-ico {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; position: relative; z-index: 1;
  background: rgba(255,255,255,.22); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(4px);
}
.gift-ico .svg-ico { width: 18px; height: 18px; }
.gift-txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.gift-txt b { font-size: 14px; font-weight: 900; color: #fff; letter-spacing: .3px; }
.gift-txt b em { font-style: normal; font-size: 17px; }
.gift-txt small { display: block; font-size: 10.5px; color: rgba(255,255,255,.85); margin-top: 2px; }
.gift-btn {
  flex-shrink: 0; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 7px 13px; border-radius: 999px;
  background: #fff; color: #ff3d68;
  font-size: 12px; font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.gift-btn .svg-ico { width: 13px; height: 13px; }

/* ---- 特色服务横向滚动卡 ---- */
.srv-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 2px 2px 8px; margin-bottom: 12px; scrollbar-width: none;
}
.srv-scroll::-webkit-scrollbar { display: none; }
.srv-card {
  flex-shrink: 0; width: 150px;
  display: flex; align-items: center; gap: 9px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 11px;
  position: relative; overflow: hidden; transition: transform .18s;
}
.srv-card:active { transform: scale(.96); }
.srv-ico {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.srv-ico .svg-ico { width: 17px; height: 17px; }
.sc-flash { border-color: rgba(255,92,122,.35); }
.sc-flash .srv-ico { background: linear-gradient(135deg, #ff5c7a, #ff3d68); }
.sc-safe { border-color: rgba(124,92,255,.35); }
.sc-safe .srv-ico { background: linear-gradient(135deg, #8f6cff, #6a4dff); }
.sc-fast { border-color: rgba(0,168,214,.35); }
.sc-fast .srv-ico { background: linear-gradient(135deg, #38b6f5, #00a8d6); }
.sc-care { border-color: rgba(0,184,148,.35); }
.sc-care .srv-ico { background: linear-gradient(135deg, #00d9a3, #00b894); }
.srv-txt { display: flex; flex-direction: column; min-width: 0; }
.srv-txt b { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.srv-txt small { font-size: 9.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-tag {
  position: absolute; right: 0; top: 0;
  font-size: 8.5px; font-weight: 700; color: #fff;
  padding: 3px 7px 2px 9px; border-radius: 0 var(--r-md) 0 8px;
}
.sc-flash .srv-tag { background: linear-gradient(135deg, #ff5c7a, #ff3d68); }
.sc-safe .srv-tag { background: linear-gradient(135deg, #8f6cff, #6a4dff); }
.sc-fast .srv-tag { background: linear-gradient(135deg, #38b6f5, #00a8d6); }
.sc-care .srv-tag { background: linear-gradient(135deg, #00d9a3, #00b894); }

/* ---- 信任保障区 ---- */
.trust-box {
  margin-bottom: 16px; padding: 13px 14px;
  background: linear-gradient(135deg, rgba(255,224,178,.35), rgba(255,246,214,.28));
  border: 1px solid rgba(255,185,96,.35);
  border-radius: var(--r-lg);
}
.trust-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.trust-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #6b4a12; }
.trust-title .svg-ico { width: 15px; height: 15px; color: #ff9f43; }
.trust-stat { font-size: 10.5px; color: #a3702e; }
.trust-stat b { color: #ff7a3f; font-size: 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,185,96,.3);
  border-radius: var(--r-md); padding: 10px 4px; text-align: center;
}
.t-ico {
  width: 28px; height: 28px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.t-ico .svg-ico { width: 15px; height: 15px; }
.ti-pri { background: linear-gradient(135deg, #8f6cff, #6a4dff); }
.ti-cyan { background: linear-gradient(135deg, #38b6f5, #00a8d6); }
.ti-gold { background: linear-gradient(135deg, #ffb454, #ff7a3f); }
.ti-green { background: linear-gradient(135deg, #00d9a3, #00b894); }
.t-txt { display: flex; flex-direction: column; gap: 2px; }
.t-txt b { font-size: 10.5px; font-weight: 800; color: var(--text); white-space: nowrap; }
.t-txt small { font-size: 8.5px; color: var(--text3); white-space: nowrap; }

/* ---- 品牌感游戏分类卡（渐变底 + 小标） ---- */
.game-card { position: relative; overflow: visible; }
.game-card-tag {
  position: absolute; right: -4px; top: -4px; z-index: 2;
  font-size: 8.5px; font-weight: 800; color: #fff;
  padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(58,74,138,.3);
}
.game-card-ico {
  width: 58px; height: 58px; border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,.9);
}

/* ---- 热卖推荐商品卡质感强化 ---- */
.hm-cover { overflow: hidden; }
.hm-cover-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 0; }
.hm-cover-grad { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hm-cover-game {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); overflow: hidden;
}
.hm-cover-game img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-flag { right: 8px; bottom: 8px; z-index: 2; }
.hm-badges { z-index: 2; }
.hm-title { font-size: 14px; }

/* ---- 最新上架商品卡质感强化 ---- */
.news-cover { overflow: hidden; }
.news-game {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); overflow: hidden;
}
.news-game img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ===== 首页 AI 小狐狸宠物（op-bar 趴姿） ===== */
.op-bar { position: relative; }
/* 趴姿：露脸在横幅上方，身子藏在横幅后面 */
.op-bar-pet { margin-top: 36px; }
.pet-layer { position: absolute; pointer-events: none; z-index: 5; }
/* 官方 Guga 原图 · 头部层：背景裁切显示原图顶部，帽顶+眼+腮红+嘴+下巴完整露出横幅上沿 */
.pet-head {
  left: 30px; top: -45px; width: 102px; height: 48px;
  background: url('../images/pet-guga.png') no-repeat 0 0;
  background-size: auto 110px;
  animation: petHeadBob 2.6s ease-in-out infinite;
}
/* 打招呼气泡：位于宠物头部右侧，气泡指向头部 */
.pet-bubble {
  position: absolute; left: 120px; top: -70px; z-index: 6; white-space: nowrap;
  background: #fff; border: 1px solid rgba(255,155,60,.35); border-radius: 14px;
  padding: 7px 13px; font-size: 12px; font-weight: 800; color: #ff7a3f;
  box-shadow: 0 8px 20px rgba(255,122,63,.20);
  opacity: 0; visibility: hidden;
}
.pet-bubble-arr {
  position: absolute; left: 16px; bottom: -6px; width: 10px; height: 10px;
  background: #fff; border-right: 1px solid rgba(255,155,60,.35);
  border-bottom: 1px solid rgba(255,155,60,.35);
  transform: rotate(45deg); border-radius: 2px;
}
.pet-bubble.show { visibility: visible; animation: petBubblePop .55s cubic-bezier(.34,1.56,.64,1) forwards; }

/* 动画：趴着呼吸浮动 */
@keyframes petHeadBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 气泡弹入 */
@keyframes petBubblePop {
  0% { opacity: 0; transform: scale(.3) translateY(6px); }
  60% { opacity: 1; transform: scale(1.07) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 移动端窄屏：宠物等比缩小，同样趴姿 */
@media (max-width: 520px) {
  .op-bar-pet { margin-top: 36px; }
  .pet-head { left: 22px; top: -37px; width: 81px; height: 40px; background-size: auto 87px; }
  .pet-bubble { left: 96px; top: -58px; font-size: 11px; padding: 6px 11px; }
}

/* ===== 首页公告轮播栏（全新样式：明亮浅色 · 精致卡片） ===== */
.notice-marquee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #ffffff 0%, #f4f0ff 52%, #edf9ff 100%);
  border: 1px solid rgba(124,92,255,.16);
  box-shadow: 0 8px 22px rgba(124,92,255,.10), inset 0 1px 0 rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
}
/* 左侧渐变描边点缀 */
.notice-marquee::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffb454, #ff7a3f 45%, #7c5cff);
}
/* 彩色圆底喇叭 + 「公告」标签 */
.notice-marquee .nb-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #5a8cff);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(124,92,255,.35);
}
.notice-marquee .nb-tag svg { width: 13px; height: 13px; }
.notice-marquee .nb-tag em { font-style: normal; letter-spacing: .5px; }
/* 垂直轮播容器：单行高度，超出隐藏 */
.notice-marquee .nb-slider {
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
  position: relative;
}
.notice-marquee .nb-track {
  list-style: none;
  margin: 0;
  padding: 0;
  will-change: transform;
}
/* 单条公告：主色渐变文字 + 加粗，单行截断 */
.notice-marquee .nb-item {
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.notice-marquee .nb-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #6a4cff 0%, #2b7fe8 55%, #00a8d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* 详情胶囊按钮 */
.notice-marquee .nb-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #7c5cff;
  background: linear-gradient(135deg, rgba(124,92,255,.10), rgba(0,168,214,.10));
  border: 1px solid rgba(124,92,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .15s, box-shadow .15s;
}
.notice-marquee .nb-more:active { transform: scale(.95); box-shadow: 0 4px 14px rgba(124,92,255,.22); }
.notice-marquee .nb-more svg { width: 12px; height: 12px; }

/* 移动端窄屏适配：单行不换行、按钮不挤 */
@media (max-width: 520px) {
  .notice-marquee { gap: 8px; padding: 8px 10px; }
  .notice-marquee .nb-tag { padding: 3px 8px; font-size: 10.5px; }
  .notice-marquee .nb-slider { height: 22px; }
  .notice-marquee .nb-item { height: 22px; line-height: 22px; font-size: 12px; }
  .notice-marquee .nb-more { padding: 4px 10px; font-size: 10.5px; }
}

/* ===== 登录/注册页 LOGO（后台可上传，回退星字） ===== */
.auth-logo .a-logo.a-logo-img {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(124,92,255,.22);
}
.auth-logo .a-logo.a-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== 公告详情页 ===== */
.notice-detail .detail-title { font-size: 19px; line-height: 1.5; }
.notice-detail-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text3);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.notice-detail-meta svg { width: 13px; height: 13px; }
.notice-detail-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text2);
  word-break: break-word;
}
.notice-detail .btn-block { margin-top: 6px; }

/* 懒加载图片占位背景：加载完成前显示浅色底，避免闪白 */
img[loading="lazy"] { background: #f0f2f8; }
