:root {
  --green: #19c37d;
  --green-dark: #12a150;
  --green-bg: #eafaf2;
  --page-bg: #f5f6f8;
  --title: #111827;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg);
  color: var(--title);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px 28px;
}

/* 顶栏搜索 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid rgba(25, 195, 125, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 18px;
  flex-shrink: 0;
}

.topbar__search-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.topbar__search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.topbar__search {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 14px 0 36px;
  font-size: 14px;
  background: #f9fafb;
  outline: none;
}

.topbar__search:focus {
  border-color: rgba(25, 195, 125, 0.55);
  background: #fff;
}

.topbar__search::placeholder {
  color: #9ca3af;
}

.site-back {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.site-back a {
  color: var(--green-dark);
  font-weight: 600;
}

/* 厂商 Tab */
.vendor-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  margin: 0 -4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vendor-tabs::-webkit-scrollbar {
  display: none;
}

.vendor-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vendor-tab[aria-selected="true"] {
  background: var(--green-bg);
  color: var(--green-dark);
  border-color: rgba(25, 195, 125, 0.45);
}

/* 厂商专区入口（.page 最大约 480px，三列会导致标题区过窄、中文被压成一字一行） */
.vendor-zone {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.vendor-zone__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  font-size: 14px;
  font-weight: 800;
  color: var(--title);
  min-height: 52px;
}

.vendor-zone__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--green-bg);
  border: 1px solid rgba(25, 195, 125, 0.2);
}

.vendor-zone__card--global {
  grid-column: 1 / -1;
  border-color: rgba(13, 148, 136, 0.35);
  background: linear-gradient(135deg, #fff, #ecfdf5);
}

.vendor-zone__name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.vendor-zone__tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.vendor-zone__go {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--green-dark);
}

/* Banner */
.banner-wrap {
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.5 / 1;
  max-height: 168px;
}

.banner__slides {
  display: flex;
  transition: transform 0.35s ease;
}

.banner__slide {
  flex: 0 0 100%;
  position: relative;
}

.banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__slide--strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  position: relative;
  background: #ecfdf5;
}

.banner__strip-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%);
  z-index: 0;
}

.banner__strip-row,
.banner__strip-cap {
  position: relative;
  z-index: 1;
}

.banner__strip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0;
  scrollbar-width: none;
}

.banner__strip-row::-webkit-scrollbar {
  display: none;
}

.banner__strip-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
  background: #fff;
}

.banner__strip-cap {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  text-align: center;
  line-height: 1.35;
  padding: 0 8px;
}

.banner__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 12px;
}

.banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
}

.banner__dot[aria-current="true"] {
  background: var(--green);
  width: 16px;
  border-radius: 999px;
}

/* 充值加赠说明 */
.promo-panel {
  margin-top: 14px;
}

.promo-panel__inner {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 45%, #ecfdf5 100%);
  border: 1px solid rgba(25, 195, 125, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.promo-panel__head {
  padding: 14px 14px 10px;
}

.promo-panel__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.promo-panel__line1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--title);
  line-height: 1.45;
}

.promo-panel__line1 strong {
  color: #047857;
}

.promo-panel__line2 {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.promo-panel__rule {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  border: 1px solid rgba(25, 195, 125, 0.2);
}

.promo-tiers {
  padding: 4px 12px 14px;
  gap: 8px;
}

.tier-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.tier-chip--max {
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(180deg, #fff, #ecfdf5);
}

.tier-chip__y {
  font-size: 15px;
  font-weight: 800;
  color: var(--title);
}

.tier-chip__p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green-dark);
}

/* 区块标题 */
.section {
  margin-top: 18px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section__title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
}

.section__more {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* 横向滑动卡片 */
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.hot-card {
  flex: 0 0 132px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
}

.hot-card__img {
  height: 72px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--green-dark);
}

.hot-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-card__body {
  padding: 10px 10px 12px;
}

.hot-card__vendor {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.hot-card__name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-card__price {
  margin-top: 6px;
  font-size: 11px;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 热销产品 */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spotlight-grid--six {
  grid-template-columns: 1fr 1fr;
}

.spot-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(25, 195, 125, 0.22);
  box-shadow: var(--shadow);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 128px;
}

.spot-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spot-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--green-dark);
  overflow: hidden;
  flex-shrink: 0;
}

.spot-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-card__meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.spot-card__meta p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.spot-card__badge {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 1px 6px;
  border-radius: 999px;
}

.spot-card__badge--global {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spot-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* 游戏列表 */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  cursor: pointer;
  transition: border-color 0.15s;
}

.game-row:hover,
.game-row:focus-visible {
  border-color: rgba(25, 195, 125, 0.4);
}

.game-row__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--green-dark);
  font-size: 13px;
  overflow: hidden;
}

.game-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-row__text {
  flex: 1;
  min-width: 0;
}

.game-row__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.game-row__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--title);
}

.game-row__tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}

.game-row__tag--global {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.game-row__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.game-row__go {
  flex-shrink: 0;
  min-width: 72px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.game-row.hidden,
.hot-card.hidden,
.spot-card.hidden {
  display: none !important;
}

.empty-hint {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
  font-size: 14px;
}

footer.page-foot {
  margin-top: 24px;
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.page-foot a {
  color: var(--green-dark);
  font-weight: 600;
}
