* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --indexBaseWidth: 1400px;
  --primary-color: #e01b28;   /* 搜索主红 */
  --search-btn-bg: #e01b28;
  --hot-red: #e60f0f;         /* 导航 hover / 选中红 */
  --input-bg: hsla(0, 0%, 100%, 0.8);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: #333;
  font-size: 14px;
  background: #F5F7F9 url(images/bg.png) no-repeat top !important;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== 头部容器 ===== */
.app-header {
  position: relative;
}

/* ===== 顶部栏 ===== */
.top-bar {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.5);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: var(--indexBaseWidth);
  height: 40px;
  margin: 0 auto;
}

.top-left {
  display: flex;
  align-items: center;
}

.top-home-icon {
  flex-shrink: 0;
  color: #4d4d4d;
}

.top-welcome {
  margin-left: 6px;
  font-size: 13px;
  color: #262626;
  line-height: 17px;
}

.top-right {
  display: flex;
  align-items: center;
}

.top-redpack {
  display: flex;
  align-items: center;
  margin-right: 18px;
  cursor: pointer;
}

.top-redpack-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.top-redpack-text {
  margin-left: 5px;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  transition: color 0.2s;
}

.top-redpack:hover .top-redpack-text {
  color: var(--hot-red);
}

.top-divider {
  width: 1px;
  height: 14px;
  margin: 0 6px;
  background: #dcdcdc;
}

/* 在线客服（无下拉） */
.top-service {
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.top-service:hover {
  color: var(--hot-red);
}

/* 下拉菜单（关于我们） */
.top-menu {
  position: relative;
}

.top-menu-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.top-menu:hover .top-menu-link {
  color: var(--hot-red);
}

.top-caret {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}

.top-menu:hover .top-caret {
  transform: rotate(180deg);
}

.top-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  min-width: 128px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 80, 60, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.top-menu:hover .top-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-menu-panel a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.top-menu-panel a:hover {
  color: var(--hot-red);
  background: #fff1f2;
}

/* ===== 搜索区 ===== */
.search-header {
  margin-top: 12px;
}

.search-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 24px;
  width: var(--indexBaseWidth);
}

/* 左侧 Logo（160x56 图片） */
.logo-link {
  flex-shrink: 0;
  margin-right: 96px;
  line-height: 0;
  width: 135px;
}

.logo {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* 中间：搜索框 */
.search-box-container {
  display: flex;
  flex-direction: column;
}

.header-search {
  position: relative;
}

.input-box {
  padding: 4px;
  padding-bottom: 0;
}

.input-container {
  position: relative;
  display: flex;
  width: 668px;
  height: 40px;
  padding-left: 16px;
  padding-right: 4px;
  background: var(--input-bg);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--primary-color);
}

.prepend-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.prepend-box .search-icon {
  color: var(--primary-color);
}

.input-input {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  min-width: 0;
}

.input-input input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #333;
  font-size: 14px;
  line-height: 18px;
}

.input-input input::placeholder {
  color: #666;
}

.append-box {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  flex-shrink: 0;
}

.append-box .search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--search-btn-bg);
  color: #fff;
  cursor: pointer;
}

.append-box .search-btn:hover {
  opacity: 0.88;
}

/* ===== 搜索框左侧：游戏选择下拉（必须先选游戏才能搜索） ===== */
.search-game-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid rgba(224, 27, 40, 0.18);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.sg-label {
  max-width: 108px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--primary-color);
  transition: transform 0.2s;
}

.search-game-select.is-open .sg-caret {
  transform: rotate(180deg);
}

.sg-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  z-index: 130;
  width: 720px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(20, 80, 60, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  cursor: default;
}

.search-game-select.is-open .sg-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sg-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.sg-tab {
  padding: 5px 14px;
  border: none;
  border-radius: 14px;
  background: #f2f4f7;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.sg-tab:hover {
  background: #fff1f2;
  color: var(--hot-red);
}

.sg-tab.is-active {
  background: linear-gradient(90deg, #ff5a7a, #e0344e);
  color: #fff;
}

.sg-cate-empty {
  padding: 20px 12px;
  font-size: 13px;
  color: #9aa3a0;
  text-align: center;
}

.sg-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sg-item:hover {
  background: #fff1f2;
  color: var(--hot-red);
}

.sg-item.is-active {
  background: linear-gradient(90deg, #ff5a7a, #e0344e);
  color: #fff;
}

.sg-ico {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
  background: #eef1f5;
}

.sg-item em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-empty {
  padding: 20px 12px;
  font-size: 13px;
  color: #9aa3a0;
  text-align: center;
}

/* 搜索提示气泡（未选游戏 / 未配置搜索链接时） */
.search-hint {
  position: absolute;
  top: calc(100% + 9px);
  left: 14px;
  z-index: 129;
  padding: 7px 12px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(224, 52, 78, 0.95);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(224, 52, 78, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.search-hint.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.search-hint::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 26px;
  width: 8px;
  height: 8px;
  background: rgba(224, 52, 78, 0.95);
  transform: rotate(45deg);
}

/* 右侧 下载App（160x40 图片） */
.download-link {
  flex-shrink: 0;
  margin-left: 100px;
  line-height: 0;
  transition: opacity 0.2s;
}

.download-link:hover {
  opacity: 0.8;
}

.download-icon {
  display: block;
  width: 160px;
  height: 40px;
}

/* ===== 主导航（居中圆角卡片） ===== */
.nav-header {
  margin-bottom: 12px;
}

.nav-ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: var(--indexBaseWidth);
  height: 48px;
  margin: 0 auto;
  padding: 0 30px;
  list-style: none;
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.6), #fff);
  border: 2px solid #fff;
  border-radius: 12px;
}

.nav-ul li {
  position: relative;
  display: flex;
  justify-content: center;
  width: 88px;
}

.nav-ul li a,
.nav-ul li .nav-modal {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 44px;
}

.nav-ul li a > span,
.nav-ul li .nav-modal > span {
  position: relative;
  display: inline-block;
  height: 20px;
  line-height: 20px;
}

.nav-ul li:hover a,
.nav-ul li:hover .nav-modal {
  color: var(--hot-red);
}

/* 选中态：红字 + 红色渐变下划线 */
.nav-ul li .active {
  position: relative;
}

.nav-ul li .active a {
  color: var(--hot-red);
}

.nav-ul li .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(270deg, #ee5757, #e60f0f);
}

/* HOT 角标（32x16 图片） */
.nav-ul li .hot-img {
  position: absolute;
  top: 2px;
  right: -34px;
  width: 32px;
  height: 16px;
}

/* ===================== 主体 / 轮播区 ===================== */
.home-main {
  width: var(--indexBaseWidth);
  margin: 0 auto;
  padding-bottom: 40px;
}

.hero-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  height: 396px;
}

/* 通用卡片底 */
.games-card,
.side-card,
.carousel,
.stat-bar {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(20, 80, 60, 0.07);
}

/* 卡片头部 */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  margin-bottom: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.more-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #9aa3a0;
}

.more-link:hover {
  color: var(--hot-red);
}

.chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
}

/* 左：游戏推荐 */
.games-card {
  width: 296px;
  flex-shrink: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), #fff);
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(95, 125, 154, 0.06);
}

/* 顶部分类 Tab */
.games-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  margin-bottom: 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(95, 125, 154, 0.06);
}

.g-tab {
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.g-tab:hover {
  color: var(--hot-red);
}

.g-tab.is-active,
.g-tab.is-active:hover {
  color: #fff;
  background: linear-gradient(90deg, #ff4592, #ff3258);
}

.games-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 8px;
  /* 单分类配置过多游戏时裁掉超出部分，避免撑破卡片 */
  overflow: hidden;
}

.game-row {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 14px 0 16px;
  border-radius: 10px;
  transition: background 0.18s;
}

.game-row:hover {
  background: rgba(255, 69, 146, 0.06);
}

.g-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #eef1f5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.txt {
  flex: 1;
  min-width: 0;
  margin: 0 8px 0 12px;
  color: #888;
  font-size: 12px;
}

.txt p {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-row:hover .txt p {
  color: var(--hot-red);
}

.txt span {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.g-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.g-arrow::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: -2px;
  border-right: 1.6px solid #c9c9d1;
  border-top: 1.6px solid #c9c9d1;
  transform: rotate(45deg);
  transition: border-color 0.18s;
}

.game-row:hover .g-arrow {
  background: linear-gradient(135deg, #ff7a59, #ef3b3b);
}

.game-row:hover .g-arrow::after {
  border-color: #fff;
}

/* 游戏无图标时的文字兜底 */
.g-ico-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8a9b, #e0344e);
}

/* 分类下无游戏时的占位 */
.ge-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #9aa3a0;
}

/* 全部游戏 */
.game-all {
  height: 40px;
  justify-content: space-between;
}

.ga-text {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.game-all:hover .ga-text {
  color: var(--hot-red);
}

/* 中：轮播图 */
.carousel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
}

.slides {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.is-active {
  opacity: 1;
  transform: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 箭头 */
.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.carousel:hover .car-arrow {
  opacity: 1;
}

.car-arrow:hover {
  background: rgba(0, 0, 0, 0.45);
}

.car-prev {
  left: 14px;
}

.car-next {
  right: 14px;
}

/* 轮播底部标题导航（叠加在 Banner 底部） */
.title-list {
  position: absolute;
  z-index: 9;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 42px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(2, 14, 32, 0), rgba(3, 20, 44, 0.7));
  border-radius: 0 0 14px 14px;
  font-size: 12px;
  line-height: 16px;
}

.title-list span {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: color 0.18s;
}

.title-list span:hover {
  color: #fff;
}

.title-list .activity {
  color: #fff;
}

/* 右：用户卡 */
.side-card {
  width: 296px;
  flex-shrink: 0;
  padding: 20px 16px 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), #fff);
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(95, 125, 154, 0.06);
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0 10px;
}

.user-welcome b {
  font-size: 16px;
  color: #222;
}

.user-welcome span {
  font-size: 12px;
  color: #ff6a3d;
}

.vip-card {
  flex-shrink: 0;
  width: 48px;
  height: 40px;
  object-fit: contain;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff5a7a, #e0344e);
  border-radius: 21px;
  box-shadow: 0 8px 18px rgba(224, 52, 78, 0.3);
  transition: transform 0.18s;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.acc-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  margin-top: 18px;
}

.user-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.user-link:hover {
  color: var(--hot-red);
}

.ul-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* 最近订单（空状态） */
.last-order {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 130px;
  margin-top: 20px;
  padding: 8px 14px;
  background: #f3f6f9;
  border: 1px solid #fff;
  border-radius: 12px;
  box-sizing: border-box;
}

.lo-ico {
  flex-shrink: 0;
  width: 70px;
  height: 55px;
  object-fit: contain;
}

.lo-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lo-text b {
  font-size: 14px;
  color: #444;
}

.lo-text span {
  font-size: 12px;
  color: #9aa3a0;
}

/* 公告（上下滚动轮播） */
/* 平台公告：帮助中心文章标题列表 */
.annc-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 16px 0 14px;
  padding: 10px 12px 8px;
  background: #f6f8fb;
  border: 1px solid #fff;
  border-radius: 12px;
  overflow: hidden;
}

.annc-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.annc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.annc-horn {
  color: var(--hot-red);
}

.annc-more {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #9aa3a0;
}

.annc-more:hover {
  color: var(--hot-red);
}

.annc-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.annc-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  color: #555;
}

.annc-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb3c0;
  transition: background 0.15s;
}

.annc-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

.annc-list li a:hover .annc-text {
  color: var(--hot-red);
}

.annc-list li a:hover .annc-dot {
  background: var(--hot-red);
}

.annc-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9aa3a0;
}

.broadcast {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin-top: auto;
  padding: 0 2px;
}

.bc-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.bc-viewport {
  flex: 1;
  height: 20px;
  overflow: hidden;
  min-width: 0;
}

.bc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-list li {
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #9aa3a0;
}

.bc-more:hover {
  color: var(--hot-red);
}

/* 数据统计条 */
.stat-bar {
  display: flex;
  align-items: center;
  height: 54px;
  margin-top: 12px;
  padding: 0 22px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.stat-item b {
  color: #333;
  font-weight: 700;
}

.stat-red {
  color: var(--hot-red) !important;
  font-size: 16px;
}

.stat-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot-red);
}

.stat-sep {
  width: 1px;
  height: 18px;
  margin: 0 22px;
  background: #eee;
}

.stat-deal {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  overflow: hidden;
}

.deal-label {
  flex-shrink: 0;
  padding: 1px 6px;
  font-size: 11px;
  color: #ff7a18;
  border: 1px solid #ffd9b2;
  border-radius: 4px;
}

.deal-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--hot-red);
}

/* 最新成交：上下滚动轮播 */
.deal-viewport {
  flex: 1;
  height: 20px;
  min-width: 0;
  overflow: hidden;
}

.deal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deal-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 20px;
}

/* ===================== 商品卡片区（按游戏分类） ===================== */
.home-rent {
  margin-top: 20px;
}

.rent-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 510px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, #e4e9ef 0%, #ffffff 50%);
  border: 1px solid #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.rent-card:last-child {
  margin-bottom: 0;
}

/* 左侧角色图（标题文字已包含在图片中） */
.rent-title {
  flex-shrink: 0;
  width: 242px;
  background: url(images/rent-cf.png) center / cover no-repeat;
}

/* 未上传板块题图时的文字兜底底图 */
.rent-title--text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  text-align: center;
  background: linear-gradient(160deg, #2b3a55 0%, #4c2a3d 60%, #e0344e 160%);
}

.rent-title--text .rt-name {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.rent-title--text .rt-sub {
  padding: 4px 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

/* 右侧列表 */
.rent-list {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  padding-right: 22px;
}

.keywords-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hot-keywords {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  overflow: hidden;
  max-height: 36px;
}

.hot-keywords li {
  padding: 7px 18px;
  font-size: 14px;
  color: #555;
  background: #f2f5f9;
  border-radius: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}

.hot-keywords li:hover {
  color: var(--hot-red);
  background: #ffeef2;
}

.hot-keywords li.active {
  color: #fff;
  background: linear-gradient(90deg, #ff5a7a, #e0344e);
  box-shadow: 0 4px 12px rgba(224, 52, 78, 0.28);
}

/* 真实搜索开启时关键词是链接：撑满整个胶囊可点，颜色继承胶囊态 */
.hot-keywords li a {
  display: block;
  margin: -7px -18px;
  padding: 7px 18px;
  color: inherit;
  border-radius: 18px;
}

.keywords-con .more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  font-size: 13px;
  color: #75747f;
}

.keywords-con .more:hover {
  color: var(--hot-red);
}

/* 商品卡片行 */
.hot-rent {
  display: flex;
  gap: 12px;
  list-style: none;
  margin-top: 16px;
}

.hot-rent .card {
  flex: 1;
  min-width: 0;
  height: 410px;
  padding: 11px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 16px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(95, 125, 154, 0.08);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.hot-rent .card:hover {
  border-color: #ffd0c2;
  box-shadow: 0 10px 24px rgba(255, 77, 54, 0.12);
}

/* 卡片主体链接（图片+标题跳商品详情） */
.card-link {
  display: block;
  color: inherit;
}

.img-box {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-box .img-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 70px;
  height: auto;
}

.img-hot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  height: 20px;
  padding: 0 8px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-sizing: border-box;
}

.img-hot .hot-fire {
  width: 12px;
  height: 14px;
  object-fit: contain;
}

.hot-rent .card h4 {
  margin-top: 8px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 22px;
  overflow: hidden;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.qf-txt {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qf-txt span {
  color: #009dff;
}

.pop-box {
  display: flex;
  margin-top: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f9f1ff 0%, #f3f9fd 100%);
}

.pop-item {
  position: relative;
  width: 33.33%;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #222;
}

.pop-item p {
  max-width: 100%;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-item span {
  margin-top: -2px;
  color: #999;
  transform: scale(0.9);
}

.pop-item:not(:last-child)::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #e1d6ea;
}

.tag-box {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tag-box .tag-item {
  height: 22px;
  line-height: 20px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 4px;
  box-sizing: border-box;
}

.tag-box .tag-item:nth-child(1) {
  color: #ff6a3d;
  background: linear-gradient(90deg, #fff5ef, #ffe9df);
  border: 1px solid #ffd0bd;
}

.tag-box .tag-item:nth-child(2) {
  color: #28a37a;
  background: linear-gradient(90deg, #eefaf4, #e0f5ec);
  border: 1px solid #b7e6cf;
}

.tag-box .tag-item:nth-child(3) {
  color: #e0344e;
  background: linear-gradient(90deg, #fff0f3, #ffe2e8);
  border: 1px solid #ffc2cd;
}

.make-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 47px;
  margin-top: 14px;
}

.make-box .price-txt {
  position: relative;
  transition: transform 0.4s ease;
}

.make-box .price-txt p {
  font-size: 13px;
  color: #333;
}

.make-box .price-txt p i {
  margin-right: 2px;
  font-size: 22px;
  font-weight: 600;
  font-style: normal;
  color: #ff3d13;
}

.make-box .price-txt .p-price {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 2px;
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hot-rent .card:hover .price-txt {
  transform: translateY(-9px);
}

.hot-rent .card:hover .price-txt .p-price {
  opacity: 1;
}

.make-box .btn {
  width: 92px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff5a7a, #e0344e);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.18s;
}

.make-box .btn:hover {
  background: linear-gradient(135deg, #ff3d6e, #c9184a);
  box-shadow: 0 6px 16px rgba(224, 52, 78, 0.35);
  transform: translateY(-1px);
}

/* ===== 首卡促销：标语 + 抢购进度条 ===== */
.hot-rent .card:first-child {
  display: flex;
  flex-direction: column;
}

.hot-rent .card:first-child .img-box {
  flex-shrink: 0;
}

.hot-rent .card:first-child .make-box {
  margin-top: auto;
}

/* 标语（结合“精选低价好号”与“甄选低价牛号数量有限”） */
.deal-tips {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #ad5948;
}

.deal-fire {
  flex-shrink: 0;
  width: 12px;
  height: 14px;
  background: url(images/fire.png) center / contain no-repeat;
  animation: deal-fire-pulse 1s ease-in-out infinite;
}

/* 抢购进度（重新设计：渐变填充 + 流动条纹 + 叠头像） */
.deal-rush {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}

.rush-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rush-track {
  position: relative;
  width: 100%;
  height: 11px;
  background: #ffe0ea;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(244, 0, 89, 0.12);
}

.rush-fill {
  position: relative;
  display: block;
  width: var(--rush, 50%);
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff8fb6, #f4005a);
  box-shadow: 0 1px 6px rgba(244, 0, 89, 0.35);
  overflow: hidden;
  animation: rush-grow 1.2s cubic-bezier(0.25, 0.8, 0.3, 1) both;
}

.rush-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.5) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.5) 75%,
    transparent 75%
  );
  background-size: 16px 16px;
  animation: rush-stripes 0.55s linear infinite;
}

.rush-pct {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #f4005a;
}

.rush-people {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rush-avatars {
  display: flex;
  align-items: center;
}

.rush-avatars img {
  width: 20px;
  height: 20px;
  margin-right: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s;
}

.rush-avatars img:last-child {
  margin-right: 0;
}

.rush-people em {
  font-size: 12.5px;
  font-style: normal;
  color: #75747f;
  white-space: nowrap;
}

/* 折扣角标 */
.deal-off {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff4d4f);
  border-radius: 8px 8px 8px 2px;
  vertical-align: 2px;
  box-shadow: 0 3px 8px rgba(255, 77, 79, 0.32);
}

/* 立即抢 按钮 */
.btn-grab {
  position: relative;
  padding: 0;
  border: none;
  overflow: hidden;
  font-family: inherit;
  background: linear-gradient(135deg, #ff6a9b, #f4005a);
  box-shadow: 0 6px 14px rgba(244, 0, 89, 0.3);
}

.btn-grab > span {
  position: relative;
  z-index: 1;
}

.btn-grab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 2.6s ease-in-out infinite;
}

.btn-grab:hover {
  background: linear-gradient(135deg, #ff4d86, #d1004e);
  box-shadow: 0 10px 22px rgba(244, 0, 89, 0.42);
  transform: translateY(-2px);
}

@keyframes rush-grow {
  from {
    width: 0;
  }
  to {
    width: var(--rush, 50%);
  }
}

@keyframes rush-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 32px 0;
  }
}

@keyframes deal-fire-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes btn-shine {
  0% {
    left: -60%;
  }
  60%, 100% {
    left: 120%;
  }
}


/* ===================== 页脚 ===================== */
.footer-new {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  border-top: 1px solid #eef1f4;
  box-shadow: 0 -6px 24px rgba(20, 80, 60, 0.05);
}

.footer-main {
  width: var(--indexBaseWidth);
  margin: 0 auto;
  padding: 0 0 30px;
}

.main-box1 {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f2f2f2;
}

.main-box1 li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  height: 110px;
  list-style: none;
}

.main-box1 li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 46px;
  background: #f0f0f0;
}

.main-box1 li img {
  width: 48px;
  height: 48px;
  transition: transform 0.25s;
}

.main-box1 li:hover img {
  transform: scale(1.08);
}

.ft-info {
  margin-left: 12px;
}

.ft-info p {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

.ft-info span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #999;
}

.main-box2 {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin-top: 30px;
}

.main-box2 .lf {
  display: flex;
  align-items: flex-start;
  width: 75%;
}

.main-box2 .lf ul {
  width: 20%;
  list-style: none;
}

.main-box2 .lf li {
  margin-bottom: 14px;
  font-size: 13px;
  color: #666;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.main-box2 .lf li.tit {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.main-box2 .lf li.tit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff5a7a, #e0344e);
}

.main-box2 .lf li a {
  color: #666;
  transition: color 0.18s;
}

.main-box2 .lf li a:hover {
  color: var(--hot-red);
}

.main-box2 .rg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 25%;
  min-height: 170px;
  border-left: 1px solid #f2f2f2;
}

.main-box2 .rg h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.kf-phone {
  font-size: 26px;
  font-weight: 800;
  color: var(--hot-red);
  letter-spacing: 1px;
}

.svc-time {
  font-size: 14px;
  color: #999;
}

.kf-btn {
  margin-top: 4px;
  padding: 9px 36px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff5a7a, #e0344e);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(224, 52, 78, 0.3);
  transition: transform 0.18s;
}

.kf-btn:hover {
  transform: translateY(-2px);
}

.main-box3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #f2f2f2;
  font-size: 12px;
  color: #666;
}

.main-box3 p {
  margin-bottom: 8px;
}

.main-box3 .lf img {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

.main-box3 a {
  color: #666;
}

.main-box3 a:hover {
  color: var(--hot-red);
}

.main-box3 .rg {
  text-align: right;
}
