/* ==========================================================
   星云游戏商城 —— 全局样式（电脑端 + 手机端响应式）
   浅色游戏交易平台设计系统（黄白暖色风）
   ========================================================== */
:root {
  --bg: #f7f6f1;
  --bg-soft: #efede5;
  --card: #ffffff;
  --card-2: #f5f3ec;
  --line: rgba(30, 26, 16, 0.1);
  --text: #211d14;
  --text-2: #6d685c;
  --text-3: #a09a8c;
  --primary: #ff7a00;
  --primary-2: #ff9633;
  --cyan: #0ba5a5;
  --pink: #ff4d6d;
  --green: #1fae6f;
  --orange: #ff7a00;
  --danger: #ff4d6d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 26px rgba(40, 30, 10, 0.12);
  --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: var(--text); }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfc9ba; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 背景光晕装饰 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(255, 122, 0, 0.1), transparent 60%),
    radial-gradient(500px 280px at 90% 0%, rgba(255, 190, 60, 0.08), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(11, 165, 165, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--card-2);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff9d2e);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
}
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #077d7d);
  color: #fff;
  box-shadow: 0 4px 18px rgba(11, 165, 165, 0.3);
}
.btn-danger { background: rgba(255, 77, 109, 0.1); color: var(--pink); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ==================== 顶部导航 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.5);
}
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: var(--primary-2); font-weight: 600; }

.header-search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 14px;
  width: 260px;
  height: 38px;
  flex-shrink: 0;
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 0;
}
.header-search .search-btn {
  background: linear-gradient(135deg, var(--primary), #5b3df0);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: rgba(124, 92, 255, 0.5); }
.icon-btn .dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.5);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
}
.user-chip:hover { border-color: rgba(124, 92, 255, 0.5); }
.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.user-chip .uname { font-size: 13px; color: var(--text); max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

/* 汉堡菜单 */
.hamburger { display: none; }

/* ==================== 轮播 ==================== */
.hero { margin: 22px 0 8px; }
.hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 56px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s, transform 0.6s;
  cursor: pointer;
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slide::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  z-index: 0;
}
.hero-slide .hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-slide .hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero-slide h2 { font-size: 40px; font-weight: 800; letter-spacing: 2px; line-height: 1.2; margin-bottom: 10px; }
.hero-slide p { font-size: 16px; opacity: 0.85; margin-bottom: 22px; }
.hero-slide .btn { background: #fff; color: #0b0d1a; font-weight: 700; }
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots span.active { width: 22px; background: #fff; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.38); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

/* ==================== 商城模板（mall.html） ==================== */
.mall-hero {
  background: linear-gradient(135deg, #ffedcd, #fff7e6 45%, #ffe1a8);
  border: 1px solid rgba(255, 158, 46, 0.35);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255, 158, 46, 0.14);
}
.mall-hero::after {
  content: "🎮";
  position: absolute;
  right: -8px;
  bottom: -22px;
  font-size: 92px;
  opacity: 0.12;
  transform: rotate(-12deg);
}
.mall-hero-main {
  font-size: 22px;
  font-weight: 800;
  color: #211d14;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.mall-hero-main span { color: var(--primary-2); }
.mall-hero-sub { font-size: 13px; color: #8a7f66; margin-bottom: 12px; }
.mall-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.mall-hero-badge {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.mall-hero-badge.ghost { background: rgba(255, 255, 255, 0.85); color: var(--primary-2); border: 1px solid rgba(255, 158, 46, 0.5); }
.mall-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mall-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mall-cat b { font-weight: 700; color: var(--primary-2); font-size: 12px; }
.mall-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mall-cat.active b { color: #fff; }
.mall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-thumb {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  position: relative;
}
.sc-thumb span { line-height: 1; }
.sc-type {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #5b5138;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.sc-body { padding: 10px 12px 12px; }
.sc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-title .badge { margin-left: 4px; transform: scale(0.85); }
.sc-shop {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-meta { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sc-price { font-size: 15px; font-weight: 800; color: var(--danger); }
.sc-price s { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 3px; }
@media (max-width: 900px) {
  .mall-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .mall-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-thumb { height: 64px; font-size: 24px; }
  .sc-body { padding: 8px 10px 10px; }
  .sc-title { font-size: 13px; }
  .sc-price { font-size: 14px; }
}
@media (max-width: 400px) {
  .mall-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sc-foot { flex-direction: column; align-items: flex-start; }
}

/* ==================== 店铺主页（shop.html?view=shop） ==================== */
.shop-home { display: flex; flex-direction: column; gap: 14px; }
.sh-hero {
  background: linear-gradient(135deg, #ffedcd, #fff7e6 50%, #ffe1a8);
  border: 1px solid rgba(255, 158, 46, 0.35);
  border-radius: 16px;
  padding: 18px 18px 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255, 158, 46, 0.12);
}
.sh-hero-top { display: flex; gap: 14px; align-items: center; }
.sh-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #ff7a00, #ffc24d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}
.sh-info { flex: 1; min-width: 0; }
.sh-name { font-size: 19px; font-weight: 800; color: #211d14; line-height: 1.3; }
.sh-name .badge { margin-left: 5px; vertical-align: 2px; }
.sh-stats { display: flex; gap: 14px; margin-top: 5px; font-size: 12px; color: #8a7f66; flex-wrap: wrap; }
.sh-stats b { color: var(--primary-2); font-size: 16px; font-weight: 800; }
.sh-badges { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.sh-badge {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 158, 46, 0.45);
  color: #7a5b1f;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.sh-badge.live { background: var(--primary); color: #fff; border-color: var(--primary); }
.sh-slogan { margin-top: 12px; font-size: 13px; color: #8a7f66; line-height: 1.65; }
.sh-slogan p { margin: 0 0 2px; }
.sh-actions { display: flex; gap: 10px; margin: 12px 0 0; }
.sh-actions .btn { flex: 1; padding: 9px 0; border-radius: 999px; font-size: 13px; }
.sh-actions .btn-on { background: linear-gradient(135deg, #ff7a00, #ff9d2e); color: #fff; border: none; }
.sh-tabs { display: flex; margin-top: 14px; border-bottom: 2px solid rgba(30, 26, 16, 0.07); }
.sh-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.sh-tab.active { color: var(--primary-2); border-bottom-color: var(--primary); }
.sh-panel-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sh-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.sh-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 640px) {
  .sh-hero { padding: 14px 14px 0; }
  .sh-name { font-size: 17px; }
  .sh-logo { width: 54px; height: 54px; min-width: 54px; font-size: 23px; }
  .sh-stats b { font-size: 14px; }
}

/* ==================== 区块标题 ==================== */
.section { margin: 30px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
}
.section-more { color: var(--text-2); font-size: 13px; transition: color 0.2s; }
.section-more:hover { color: var(--primary-2); }

/* ==================== 游戏卡片 ==================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(40, 30, 10, 0.14);
  border-color: rgba(255, 122, 0, 0.5);
}
.game-card .cover-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.game-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .cover-wrap img { transform: scale(1.06); }
.game-card .hot-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  background: linear-gradient(135deg, #ff7a00, #ff9d2e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.4);
  z-index: 2;
}
.game-card .cat-tag {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 26, 16, 0.08);
  color: var(--text-2);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.game-card .card-body { padding: 8px 10px 10px; }
.game-card .g-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .g-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.game-card .g-price { font-size: 15px; font-weight: 800; color: var(--orange); }
.game-card .g-price small { font-size: 11px; color: var(--text-3); text-decoration: line-through; margin-left: 3px; font-weight: 400; }
.game-card .g-sales { font-size: 11px; color: var(--text-3); }
.game-card .card-actions { display: flex; gap: 6px; }
.game-card .card-actions .btn { flex: 1; padding: 5px 6px; font-size: 12px; }

/* ==================== 分类栏 ==================== */
.cat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
}
.cat-bar .cat-item {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.cat-bar .cat-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.cat-bar .cat-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5b3df0);
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}
.cat-bar .cat-item .count { font-size: 11px; opacity: 0.7; margin-left: 2px; }
.cat-bar .cat-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.sort-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sort-bar .sort-item {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  transition: all 0.2s;
}
.sort-bar .sort-item:hover { color: var(--text); }
.sort-bar .sort-item.active { color: var(--primary-2); border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.08); }

/* ==================== 公告 ==================== */
.notice-card {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.1), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}
.notice-card .notice-icon { font-size: 20px; flex-shrink: 0; }
.notice-card .notice-title { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.notice-card .notice-content { color: var(--text-2); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================== 页脚 ==================== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 36px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-size: 18px; font-weight: 800; }
.footer-brand span { color: var(--primary-2); }
.footer-text { color: var(--text-3); font-size: 12px; }

/* ==================== 通用组件 ==================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-primary { background: rgba(124, 92, 255, 0.16); color: var(--primary-2); }
.badge-cyan { background: rgba(0, 212, 255, 0.14); color: var(--cyan); }
.badge-green { background: rgba(61, 220, 151, 0.14); color: var(--green); }
.badge-orange { background: rgba(255, 176, 32, 0.14); color: var(--orange); }
.badge-red { background: rgba(255, 77, 109, 0.14); color: var(--pink); }
.badge-gray { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }

.rating { color: var(--orange); font-size: 13px; }
.stars { color: var(--orange); letter-spacing: 1px; }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-item {
  font-size: 12px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 6px;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty .empty-icon { font-size: 44px; margin-bottom: 12px; opacity: 0.6; }
.empty p { font-size: 14px; margin-bottom: 16px; }

/* ==================== Toast ==================== */
#toast-box {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
}
.toast.success { border-color: rgba(61, 220, 151, 0.4); }
.toast.success::before { content: "✓"; color: var(--green); font-weight: 700; }
.toast.error { border-color: rgba(255, 77, 109, 0.4); }
.toast.error::before { content: "✕"; color: var(--pink); font-weight: 700; }
.toast.info::before { content: "ℹ"; color: var(--cyan); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== 弹窗 ==================== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 15, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.25s ease;
}
.modal-lg { max-width: 720px; }
.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.modal-body { padding: 20px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: rgba(124, 92, 255, 0.6); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ==================== 表格 ==================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 700px; }
.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table-img { width: 44px; height: 62px; border-radius: 6px; object-fit: cover; }
.table-tool { display: flex; gap: 6px; flex-wrap: wrap; }

/* ==================== 后台布局 ==================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-side .side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  font-weight: 800;
  font-size: 17px;
}
.admin-side .side-brand .logo-icon { width: 32px; height: 32px; font-size: 16px; }
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.side-nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.side-nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(0, 212, 255, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.35);
}
.side-nav-item .icon { width: 20px; text-align: center; font-size: 16px; }
.side-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

.admin-main { flex: 1; padding: 24px 28px; min-width: 0; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.admin-topbar h2 { font-size: 22px; font-weight: 800; }
.admin-topbar .sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--stat-color, rgba(124, 92, 255, 0.12));
}
.stat-card .stat-label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; }
.stat-card .stat-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 22px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--cyan)); }

/* 简易柱状图（原生实现） */
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding: 0 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .bar {
  width: 100%;
  max-width: 42px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary), rgba(124, 92, 255, 0.35));
  transition: height 0.6s ease;
  position: relative;
}
.bar-col .bar .bar-val {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}
.bar-col .bar-label { font-size: 11px; color: var(--text-3); }

/* 环形图简化：横条分布 */
.dist-list { display: flex; flex-direction: column; gap: 10px; }
.dist-item .dist-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.dist-item .dist-head b { color: var(--text-2); font-weight: 600; }
.dist-track { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.dist-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width 0.6s; }

/* 工具条 */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .form-control { width: auto; }
.toolbar .grow { flex: 1; }

/* ==================== 详情页 ==================== */
.detail-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 30px; margin: 26px 0; }
.detail-cover {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 400 / 560;
  background: var(--card);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.detail-info .detail-tags { margin: 12px 0; }
.detail-info .detail-rows { margin: 16px 0; }
.detail-row { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-3); width: 90px; flex-shrink: 0; }
.detail-row .v { color: var(--text-2); }
.price-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.price-box .price { font-size: 28px; font-weight: 800; color: var(--orange); }
.price-box .price small { font-size: 14px; color: var(--text-3); text-decoration: line-through; font-weight: 400; }
.price-box .stock { font-size: 13px; color: var(--text-2); }
.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.qty-stepper button {
  width: 34px;
  height: 36px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 17px;
  transition: all 0.2s;
}
.qty-stepper button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.qty-stepper input {
  width: 48px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-intro { margin-top: 30px; }
.detail-intro h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.detail-intro p { color: var(--text-2); font-size: 14px; line-height: 1.9; }

/* ==================== 购物车 ==================== */
.cart-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin: 26px 0; align-items: start; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.cart-item:hover { border-color: rgba(124, 92, 255, 0.35); }
.cart-item .ci-cover { width: 58px; height: 78px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .ci-cat { font-size: 12px; color: var(--text-3); }
.cart-item .ci-price { font-size: 15px; font-weight: 800; color: var(--orange); margin-top: 4px; }
.cart-item .ci-sub { display: flex; align-items: center; gap: 14px; }
.summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--text); font-weight: 700; font-size: 15px; }
.sum-row.total .amount { color: var(--orange); font-size: 22px; font-weight: 800; }
.checkout-form { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ==================== 订单 ==================== */
.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
  gap: 8px;
}
.order-head .order-no { font-size: 13px; color: var(--text-2); }
.order-head .order-no b { color: var(--text); }
.order-body { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.order-body .oi-cover { width: 54px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.order-body .oi-info { flex: 1; min-width: 160px; }
.order-body .oi-name { font-size: 14px; font-weight: 700; }
.order-body .oi-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.order-body .oi-price { font-size: 15px; font-weight: 800; color: var(--orange); }
.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}
.order-foot .of-total { font-size: 14px; }
.order-foot .of-total b { color: var(--orange); font-size: 17px; }
.order-foot .of-actions { display: flex; gap: 8px; }

/* ==================== 个人中心 ==================== */
.user-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 22px; margin: 26px 0; align-items: start; }
.user-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.user-profile {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.14), transparent 70%);
}
.user-profile .avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 10px;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
}
.user-profile .uname { font-weight: 700; font-size: 15px; }
.user-profile .urole { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.user-side .side-nav-item { border-radius: 0; padding-left: 20px; }
.user-main { min-width: 0; }
.balance-card {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(0, 212, 255, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.balance-card .balance-label { font-size: 13px; color: var(--text-2); }
.balance-card .balance-value { font-size: 32px; font-weight: 800; }
.balance-card .balance-value span { color: var(--orange); }
.balance-card .balance-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ==================== 登录页 ==================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.auth-card .auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.auth-tabs { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button {
  flex: 1;
  padding: 9px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.auth-tabs button.active { background: var(--card-2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.auth-extra { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 16px; }

/* ==================== 底部 Tab（手机端） ==================== */
.mobile-tabbar { display: none; }

/* ==================== 响应式：平板 ==================== */
@media (max-width: 1024px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .header-search { width: 200px; }
  .detail-wrap { grid-template-columns: 260px 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}

/* ==================== 响应式：手机端 ==================== */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding: 0 12px; }

  /* 导航 */
  .hamburger {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-2);
    font-size: 18px;
    align-items: center;
    justify-content: center;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    padding: 12px;
    gap: 4px;
    display: none;
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; font-size: 15px; }
  .header-search { width: 38px; padding: 0; border: none; background: none; }
  .header-search input, .header-search .search-btn { display: none; }
  .header-search.mobile-open {
    width: calc(100vw - 24px);
    padding: 0 8px 0 14px;
    border: 1px solid var(--line);
    background: var(--card);
  }
  .header-search.mobile-open input, .header-search.mobile-open .search-btn { display: block; }
  .user-chip .uname { display: none; }
  .user-chip { padding: 5px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .logo { font-size: 17px; }
  .logo .logo-icon { width: 30px; height: 30px; font-size: 15px; }

  /* 轮播 */
  .hero-slider { height: 190px; border-radius: 14px; }
  .hero-slide { padding: 0 26px; }
  .hero-arrow { width: 32px; height: 32px; font-size: 18px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-slide h2 { font-size: 24px; }
  .hero-slide p { font-size: 13px; margin-bottom: 14px; }
  .hero-slide .hero-tag { font-size: 10px; margin-bottom: 10px; }
  .hero-slide .btn { padding: 7px 14px; font-size: 12px; }

  /* 网格 */
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card .g-name { font-size: 12px; }
  .game-card .g-price { font-size: 14px; }
  .game-card .card-body { padding: 7px 9px 9px; }
  .game-card .card-actions .btn { padding: 5px 4px; font-size: 11px; }
  .game-card .card-actions .btn:last-child { display: none; }
  .game-card .hot-tag, .game-card .cat-tag { font-size: 9px; padding: 2px 6px; }
  .section { margin: 22px 0; }
  .section-title { font-size: 17px; }

  /* 详情 */
  .detail-wrap { grid-template-columns: 1fr; gap: 18px; }
  .detail-cover { max-width: 220px; margin: 0 auto; }
  .detail-info h1 { font-size: 22px; }
  .detail-actions .btn { flex: 1; }

  /* 购物车 */
  .cart-wrap { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .cart-item { padding: 10px; }
  .cart-item .ci-cover { width: 46px; height: 62px; }

  /* 订单 */
  .order-body .oi-cover { width: 44px; height: 58px; }

  /* 个人中心 */
  .user-wrap { grid-template-columns: 1fr; }
  .user-side { display: flex; overflow-x: auto; }
  .user-profile { display: none; }
  .user-side .side-nav-item { flex-shrink: 0; border-radius: 8px; margin: 8px; padding: 8px 14px; }
  .user-side .side-nav-item.active { background: rgba(124, 92, 255, 0.18); }

  /* 表单 */
  .form-row { grid-template-columns: 1fr; }

  /* 后台 */
  .admin-layout { display: block; }
  .admin-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: 240px;
  }
  .admin-side.open { transform: translateX(0); }
  .admin-main { padding: 16px 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 20px; }
  .admin-topbar h2 { font-size: 18px; }
  .admin-side-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 25, 15, 0.5);
    z-index: 190;
    display: none;
  }
  .admin-side-backdrop.show { display: block; }
  .panel { padding: 14px; }
  .bar-chart { gap: 8px; }

  /* 底部 Tab */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(40, 30, 10, 0.08);
    z-index: 150;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 0;
    color: var(--text-3);
    font-size: 10px;
    transition: color 0.2s;
  }
  .mobile-tabbar a.active { color: var(--primary); }
  .mobile-tabbar a .tab-icon { font-size: 19px; }
  .site-footer { margin-top: 80px; padding-bottom: 70px; }

  .notice-card { flex-wrap: wrap; }
  .notice-card .notice-content { white-space: normal; }
}

/* ==================== 小屏 ==================== */
@media (max-width: 480px) {
  .hero-slider { height: 170px; }
  .game-grid { gap: 10px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
}

/* ==========================================================
 * 消息中心
 * ========================================================== */
.msg-tabs { display: flex; gap: 8px; margin: 20px 0 16px; flex-wrap: wrap; }
.msg-tab { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.msg-tab.active { background: rgba(124, 92, 255, 0.15); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ==========================================================
 * 单选卡片（radio-chip）
 * ========================================================== */
.radio-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel); cursor: pointer; font-size: 13px; color: var(--text-2); }
.radio-chip input { accent-color: var(--primary); }
.radio-chip:has(input:checked) { border-color: var(--primary); background: rgba(124, 92, 255, .08); color: var(--text-1); }

/* ==========================================================
 * 我的页面功能宫格（代练妈妈风格）
 * ========================================================== */.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.quick-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center; cursor: pointer; transition: all .2s; }
.quick-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.quick-item .q-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.quick-item .q-label { font-size: 12px; color: var(--text-2); }
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-item { padding: 12px 4px; }
  .quick-item .q-icon { font-size: 20px; }
  .quick-item .q-label { font-size: 11px; }
}

/* ==========================================================
 * 浅色主题适配（黄白暖色风 · 覆盖深色残留）
 * ========================================================== */
/* 交互背景：浅色下白色 hover 不可见 → 深色透明 */
.main-nav a:hover, .main-nav a.active { background: rgba(20, 16, 8, 0.05); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.icon-btn:hover { color: var(--primary); border-color: rgba(255, 122, 0, 0.5); }
.user-chip:hover { border-color: rgba(255, 122, 0, 0.5); }
.cat-bar .cat-item:hover { color: var(--text); background: rgba(20, 16, 8, 0.04); }
.cat-bar .cat-item.active { color: #fff; background: linear-gradient(135deg, var(--primary), #ff9d2e); box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3); }
.sort-bar .sort-item:hover { color: var(--text); }
.sort-bar .sort-item.active { color: var(--primary); border-color: rgba(255, 122, 0, 0.5); background: rgba(255, 122, 0, 0.08); }
.notice-card { background: linear-gradient(90deg, rgba(255, 122, 0, 0.08), rgba(255, 190, 60, 0.05)); border-color: rgba(255, 122, 0, 0.25); }
.badge-gray { background: rgba(20, 16, 8, 0.05); color: var(--text-2); }
.tag-item { background: rgba(20, 16, 8, 0.04); }
.data-table tbody tr:hover { background: rgba(20, 16, 8, 0.03); }
.side-nav-item:hover { color: var(--text); background: rgba(20, 16, 8, 0.04); }
.side-nav-item.active { color: var(--primary); background: linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(255, 190, 60, 0.08)); border-color: rgba(255, 122, 0, 0.35); }
.panel-title::before { background: linear-gradient(180deg, var(--primary), var(--cyan)); }
.section-title::before { background: linear-gradient(180deg, var(--primary), var(--cyan)); }
.dist-track { background: rgba(20, 16, 8, 0.06); }
.dist-fill { background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.bar-col .bar { background: linear-gradient(180deg, var(--primary), rgba(255, 122, 0, 0.35)); }
.qty-stepper button:hover { color: var(--text); background: rgba(20, 16, 8, 0.05); }
.modal-close:hover { background: rgba(20, 16, 8, 0.06); color: var(--text); }
.user-profile { background: linear-gradient(160deg, rgba(255, 122, 0, 0.1), transparent 70%); }
.user-profile .avatar-lg, .user-chip .avatar, .logo .logo-icon { background: linear-gradient(135deg, var(--primary), var(--cyan)); box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3); }
.balance-card { background: linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(11, 165, 165, 0.08)); border-color: rgba(255, 122, 0, 0.3); }
.auth-tabs button.active { background: var(--card-2); color: var(--text); box-shadow: 0 2px 8px rgba(40, 30, 10, 0.12); }
.header-search .search-btn { background: linear-gradient(135deg, var(--primary), #ff9d2e); }
.toast { background: var(--card); border: 1px solid var(--line); color: var(--text); box-shadow: 0 8px 24px rgba(40, 30, 10, 0.18); }
.cart-item:hover { border-color: rgba(255, 122, 0, 0.35); }
.game-card:hover { box-shadow: 0 16px 36px rgba(40, 30, 10, 0.16); border-color: rgba(255, 122, 0, 0.5); }
.form-control:focus { border-color: rgba(255, 122, 0, 0.6); box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12); }
.badge-primary { background: rgba(255, 122, 0, 0.12); color: var(--primary); }
.badge-cyan { background: rgba(11, 165, 165, 0.12); color: var(--cyan); }
.badge-green { background: rgba(31, 174, 111, 0.12); color: var(--green); }
.badge-orange { background: rgba(255, 122, 0, 0.12); color: var(--orange); }
.badge-purple { background: rgba(139, 92, 246, 0.13); color: #7c3aed; }
.badge-red { background: rgba(255, 77, 109, 0.12); color: var(--pink); }
.msg-tab { background: var(--card); }
.msg-tab.active { background: rgba(255, 122, 0, 0.1); border-color: var(--primary); color: var(--primary); }
.radio-chip { background: var(--card); }
.radio-chip:has(input:checked) { border-color: var(--primary); background: rgba(255, 122, 0, 0.08); color: var(--text); }
.quick-item:hover { border-color: var(--primary); }
.hero-slide .btn { background: #fff; color: #1c1710; font-weight: 700; }
.header-search { background: var(--card); }
.auth-tabs { background: var(--bg-soft); }
.qty-stepper { background: var(--bg-soft); }
.form-control { background: var(--bg-soft); }

/* ==================== 首页新组件（密马式布局） ==================== */
.slogan-bar { background: linear-gradient(135deg, #fff7ec, #ffe9cf); border-bottom: 1px solid rgba(255, 122, 0, 0.15); }
.slogan-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; flex-wrap: wrap; }
.slogan-main { font-size: 18px; font-weight: 800; color: #211d14; }
.slogan-main b { color: var(--primary); }
.slogan-sub { font-size: 12px; color: var(--text-2); }
.slogan-tag { background: linear-gradient(135deg, var(--primary), #ff9d2e); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.mobile-search-wrap { display: none; }
.quick-entries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0 6px; }
.qe-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; text-align: center; transition: all 0.2s; }
.qe-item:hover { transform: translateY(-3px); border-color: rgba(255, 122, 0, 0.5); box-shadow: 0 8px 20px rgba(255, 122, 0, 0.1); }
.qe-item .qe-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.qe-item .qe-label { font-size: 13px; font-weight: 600; color: var(--text); }
.qe-item .qe-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.hot-zone { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin: 22px 0; }
.hot-panel .panel-title { margin-bottom: 12px; }
.hot-rank { display: flex; flex-direction: column; gap: 8px; }
.hot-item { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: all 0.2s; }
.hot-item:hover { border-color: rgba(255, 122, 0, 0.5); transform: translateX(3px); }
.hot-item .rank { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: rgba(20, 16, 8, 0.05); color: var(--text-2); flex-shrink: 0; }
.hot-item:nth-child(1) .rank { background: linear-gradient(135deg, #ffd700, #ff9d2e); color: #fff; }
.hot-item:nth-child(2) .rank { background: linear-gradient(135deg, #b9b4a6, #e8e4da); color: #fff; }
.hot-item:nth-child(3) .rank { background: linear-gradient(135deg, #d59a5a, #b0702a); color: #fff; }
.hot-item .hot-info { flex: 1; min-width: 0; }
.hot-item .hot-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-item .hot-meta { font-size: 12px; color: var(--text-3); }
.hot-item .hot-price { font-size: 15px; font-weight: 800; color: var(--orange); flex-shrink: 0; }
.deal-card { background: linear-gradient(135deg, #fff3e0, #ffe8c9); border: 1px solid rgba(255, 122, 0, 0.25); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.deal-card .deal-main { font-size: 16px; font-weight: 800; color: #211d14; }
.deal-card .deal-main b { color: var(--primary); font-size: 22px; }
.deal-card .deal-sub { font-size: 12px; color: var(--text-2); }
.deal-card .deal-link { margin-top: 6px; align-self: flex-start; background: linear-gradient(135deg, var(--primary), #ff9d2e); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }

@media (max-width: 768px) {
  .slogan-inner { padding: 12px 12px; }
  .slogan-main { font-size: 16px; }
  .mobile-search-wrap { display: block; margin: 12px 0 0; }
  .mobile-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; }
  .mobile-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; min-width: 0; color: var(--text); }
  .mobile-search button { background: linear-gradient(135deg, var(--primary), #ff9d2e); color: #fff; border: none; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; }
  .quick-entries { grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 4px; }
  .qe-item { padding: 12px 4px; border-radius: 12px; }
  .qe-item .qe-icon { font-size: 22px; margin-bottom: 5px; }
  .qe-item .qe-label { font-size: 12px; }
  .qe-item .qe-desc { display: none; }
  .hot-zone { grid-template-columns: 1fr; gap: 12px; }
  .deal-card { padding: 16px; }
}
@media (max-width: 480px) {
  .slogan-sub { display: none; }
}

/* ==========================================================
 * 我的首页（参考图风格：横幅 / 会员卡 / 统计宫格 / 订单宫格 / 钱包红包条 / 我的商品 / 更多服务）
 * ========================================================== */
.my-home { display: flex; flex-direction: column; gap: 14px; }
.mh-banner { position: relative; display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 22px 20px;
  background: linear-gradient(120deg, #ffb03d 0%, #ff7a3d 50%, #ff5e62 100%); color: #fff; overflow: hidden; }
.mh-banner::after { content: '🎮'; position: absolute; right: -10px; bottom: -18px; font-size: 90px; opacity: .22; }
.mh-avatar { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.mh-id { flex: 1; min-width: 0; }
.mh-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.mh-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mh-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.22); }
.mh-badge.ok { background: rgba(46, 204, 113, .9); }
.mh-badge.admin { background: rgba(20, 16, 8, .35); }
.mh-login-btn { z-index: 1; font-size: 12.5px; color: #7a2e00; background: #ffe9c9; padding: 7px 13px; border-radius: 18px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.mh-member { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 14px; padding: 14px 18px; cursor: pointer;
  background: linear-gradient(135deg, #fdf3e3, #ffecd0); border: 1px solid #f5d9ae; position: relative; }
.mh-member-l b { display: block; color: #7a3b00; font-size: 14.5px; }
.mh-member-l span { font-size: 12px; color: #a67c3d; }
.mh-member-r { font-size: 12.5px; color: #c77b1e; font-weight: 600; }
.mh-lvbar { width: 100%; height: 7px; border-radius: 99px; background: rgba(199, 123, 30, .14); margin-top: 10px; overflow: hidden; }
.mh-lvbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb03d, #ff5e62); transition: width .6s ease; }
.mh-badge.lv { background: linear-gradient(120deg, #ffb03d, #ff7a3d); color: #fff; }
.lv-chip { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #7a3b00;
  background: linear-gradient(120deg, #ffe9c9, #ffd9a8); border: 1px solid #f5d9ae; border-radius: 99px; padding: 4px 14px; }
.mh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mh-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 8px; text-align: center; cursor: pointer; }
.mh-stat b { display: block; font-size: 16.5px; color: var(--primary-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-stat span { font-size: 11.5px; color: var(--text-3); }
.mh-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-top: 4px; }
.mh-orders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mh-ocard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; cursor: pointer; }
.mh-ocard .oc-icon { font-size: 20px; display: block; margin-bottom: 5px; }
.mh-ocard b { display: block; font-size: 15px; color: var(--text-1); }
.mh-ocard span { font-size: 11px; color: var(--text-3); }
.mh-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mh-witem { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.mh-witem .wi-icon { font-size: 22px; }
.mh-witem b { display: block; font-size: 14.5px; color: var(--primary-2); }
.mh-witem span { font-size: 11px; color: var(--text-3); }
.mh-witem em { margin-left: auto; font-style: normal; color: var(--text-3); }
.mh-goods { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.mh-goods .mg-ico { font-size: 26px; }
.mh-goods b { display: block; font-size: 14px; }
.mh-goods span { font-size: 12px; color: var(--text-3); }
.mh-goods em { margin-left: auto; font-style: normal; color: var(--text-3); }
.mh-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mh-mitem { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; text-align: center; cursor: pointer; }
.mh-mitem span { font-size: 22px; display: block; margin-bottom: 6px; }
.mh-mitem b { font-size: 12px; font-weight: 500; color: var(--text-2); }
@media (max-width: 640px) {
  .mh-stats, .mh-orders, .mh-more { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mh-wallet { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mh-banner { padding: 18px 16px; }
  .mh-avatar { width: 46px; height: 46px; font-size: 20px; }
}
@media (max-width: 480px) {
  .mh-stats, .mh-orders, .mh-more { gap: 6px; }
  .mh-mitem b { font-size: 11px; }
}

/* ==========================================================
 * 全局动态特效（水波纹 / 入场动画 / 卡片悬浮 / 微倾斜）
 * ========================================================== */
.fx-ripple { position: fixed; z-index: 99999; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .55) 0%, rgba(255, 158, 46, .35) 60%, transparent 70%);
  pointer-events: none; animation: fx-ripple .65s ease-out forwards; }
@keyframes fx-ripple {
  0% { transform: scale(.3); opacity: .9; }
  100% { transform: scale(6.5); opacity: 0; }
}
.fx-enter { animation: fx-fade-up .5s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes fx-fade-up {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.panel, .game-card, .mall-item, .svc-card, .coupon-card, .shop-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (pointer: fine) {
  .panel:hover, .game-card:hover, .mall-item:hover, .svc-card:hover, .coupon-card:hover, .shop-card:hover {
    transform: translateY(-3px) perspective(600px) rotateX(var(--fx-tilt-x, 0deg)) rotateY(var(--fx-tilt-y, 0deg));
    box-shadow: 0 12px 26px rgba(124, 92, 255, .14), 0 3px 8px rgba(0, 0, 0, .06);
    border-color: var(--primary-3, #c9b8ff);
  }
}
.btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(124, 92, 255, .22); }
.btn:active { transform: translateY(1px) scale(.97); }
.modal-mask .modal { animation: fx-modal-in .28s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes fx-modal-in {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary-3, #c9b8ff), #ffd9a8); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }


/* ===== 区服按钮选择 + 服务单进度条 ===== */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-item { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 20px;
  border: 1.5px solid var(--line, #e8e0d2); background: #fff; color: var(--text-2, #555);
  font-size: 13px; cursor: pointer; transition: all .2s; user-select: none; }
.chip-item:hover { border-color: var(--primary-2, #ff7a18); color: var(--primary-2, #ff7a18); }
.chip-item.active { background: linear-gradient(135deg, var(--primary-2, #ff7a18), var(--primary, #ff9d3c));
  border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(255, 122, 24, .28); }

.sv-progress { display: flex; align-items: center; margin: 10px 0 4px; }
.sv-progress .sp-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.sv-progress .sp-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; background: #f2ede4; color: #b9ad9c; border: 2px solid #e4dccb; transition: all .25s; z-index: 2; }
.sv-progress .sp-label { font-size: 11px; color: var(--text-3, #999); white-space: nowrap; }
.sv-progress .sp-line { flex: 1; height: 2px; background: #e4dccb; margin-top: -14px; transition: background .3s; }
.sv-progress .sp-step.done .sp-dot { background: linear-gradient(135deg, var(--primary-2), var(--primary)); border-color: transparent; color: #fff; }
.sv-progress .sp-step.done .sp-line { background: var(--primary-2, #ff7a18); }
.sv-progress .sp-step.active .sp-dot { background: #fff; border-color: var(--primary-2, #ff7a18); color: var(--primary-2, #ff7a18); font-weight: 800; box-shadow: 0 0 0 4px rgba(255, 122, 24, .15); }
.sv-progress .sp-step.active .sp-label { color: var(--primary-2, #ff7a18); font-weight: 700; }
.sv-progress .sp-step.error .sp-dot { background: #fff; border-color: var(--danger, #ff4d6d); color: var(--danger, #ff4d6d); font-weight: 800; }
.sv-progress .sp-step.error .sp-label { color: var(--danger, #ff4d6d); font-weight: 700; }

.upload-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ==========================================================
 * 商品详情模板（参考代练平台风格）
 * ========================================================== */
.pd-banner { background: linear-gradient(120deg, #ff8a3d, #ff4f81); color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.pd-banner-main { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.pd-banner-fans { background: rgba(255, 255, 255, .22); border-radius: 99px; font-size: 11px; font-weight: 600; padding: 2px 10px; }
.pd-banner-slogan { font-size: 12px; opacity: .95; margin: 6px 0 8px; }
.pd-banner-tags { display: flex; gap: 6px; }
.pd-banner-tags span { background: rgba(255, 255, 255, .18); border-radius: 6px; font-size: 11px; padding: 2px 8px; }
.pd-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; margin-bottom: 12px; }
.pd-cover-empty { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 42px; color: var(--text-3); background: var(--panel-2); }
.pd-sale { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, rgba(255, 122, 24, .1), rgba(255, 79, 129, .08)); border: 1px dashed rgba(255, 122, 24, .35); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.pd-sale-tag { background: var(--primary, #ff7a18); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; flex-shrink: 0; }
.pd-sale-text { font-size: 12px; color: var(--text-2); }
.pd-price { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.pd-price-main { color: var(--primary, #ff7a18); font-weight: 900; font-size: 26px; line-height: 1; }
.pd-price-main small { font-size: 14px; }
.pd-orig { color: var(--text-3); font-size: 13px; font-weight: 400; text-decoration: line-through; margin-left: 8px; }
.pd-price-side { text-align: right; font-size: 12px; color: var(--text-3); }
.pd-sold { display: block; color: var(--text-2); }
.pd-stock { display: inline-block; margin-top: 4px; background: rgba(0, 196, 180, .1); color: var(--success, #00c4b4); border-radius: 6px; padding: 1px 8px; font-size: 11px; }
.pd-stock-empty { background: rgba(255, 77, 109, .1); color: var(--danger, #ff4d6d); }
.pd-title { font-size: 17px; font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.pd-shoptype { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }
.pd-veri { display: inline-block; color: var(--success, #00c4b4); font-size: 11px; font-weight: 700; border: 1px solid rgba(0, 196, 180, .4); border-radius: 6px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.pd-shopbar { display: flex; background: var(--panel-2); border-radius: 12px; padding: 10px 0; margin-bottom: 12px; }
.pd-sb-item { flex: 1; text-align: center; }
.pd-sb-item b { display: block; font-size: 15px; color: var(--text); }
.pd-sb-item span { font-size: 11px; color: var(--text-3); }
.pd-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.pd-row-k { color: var(--text-2); }
.pd-row-v { color: var(--text); font-weight: 600; text-align: right; }
.pd-serv { margin: 12px 0; }
.pd-serv-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pd-serv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-serv-tags span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; padding: 5px 10px; }
.pd-buyform { background: var(--panel-2); border-radius: 12px; padding: 14px; margin-top: 12px; }
.pd-buyform-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pd-actions { display: flex; align-items: center; gap: 4px; width: 100%; }
.pd-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: var(--text-2); font-size: 18px; padding: 4px 10px; border-radius: 10px; transition: all .2s; }
.pd-act span { font-size: 10px; color: var(--text-3); }
.pd-act:hover { background: var(--panel-2); color: var(--text); }
.pd-buy { flex: 1; background: linear-gradient(90deg, #ff7a18, #ff4f81); color: #fff; font-size: 15px; font-weight: 800; border: none; border-radius: 12px; padding: 12px 0; cursor: pointer; transition: transform .15s, box-shadow .2s; box-shadow: 0 6px 16px rgba(255, 90, 60, .3); }
.pd-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255, 90, 60, .35); }
@media (max-width: 768px) {
  .pd-act { padding: 4px 8px; }
  .pd-buy { font-size: 14px; padding: 11px 0; }
}
.upload-thumbs .ut-item { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #eee); }
.upload-thumbs .ut-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumbs .ut-item .ut-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer; }
.sv-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sv-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 1px solid var(--line, #eee); }