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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f5f7;
  color: #1f2028;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1f2028;
  color: #c8cad0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #2e303a; border-radius: 3px; }

.logo {
  padding: 20px 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #2a2c36;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 11px;
  color: #6a6d7a;
  margin-top: 2px;
  display: block;
}

.side-search {
  padding: 14px 14px 6px;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #6a6d7a;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #2a2c36;
  color: #e4e5ea;
  font-size: 13px;
  padding: 0 12px 0 32px;
  outline: none;
  transition: all 0.15s;
}

.search-wrap input::placeholder {
  color: #6a6d7a;
}

.search-wrap input:focus {
  background: #2e313c;
  border-color: #667eea;
}

.side-nav {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 14px;
}

.nav-title {
  font-size: 11px;
  font-weight: 600;
  color: #6a6d7a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 10px 6px;
}

.nav-section ul {
  list-style: none;
}

.nav-section ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #a0a3ad;
  cursor: pointer;
  transition: all 0.12s;
}

.nav-section ul li a:hover {
  background: #2a2c36;
  color: #e4e5ea;
}

.nav-section ul li a.active {
  background: linear-gradient(135deg, rgba(102,126,234,0.18), rgba(118,75,162,0.18));
  color: #fff;
}

.nav-section ul li a .count {
  font-size: 11px;
  font-weight: 600;
  color: #667eea;
  background: rgba(102,126,234,0.15);
  padding: 1px 7px;
  border-radius: 10px;
}

/* ============ LETTER GRID ============ */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
}

.letter-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  padding: 0 4px;
  background: #252830;
  color: #8a8f9c;
  border-radius: 7px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
}

.letter-item:hover:not(.empty) {
  background: #2e313c;
  color: #e4e5ea;
  transform: translateY(-1px);
}

.letter-item.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 3px 10px rgba(102,126,234,0.35);
}

.letter-item.empty {
  opacity: 0.35;
  cursor: default;
}

.letter-count {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.55;
}

.letter-item.active .letter-count,
.letter-item:hover:not(.empty) .letter-count {
  opacity: 0.8;
}

/* ============ USER AREA ============ */
.vip-entry { padding: 14px 14px 0; }
.vip-entry[style*="display: none"] { padding: 0; }
.btn-vip {
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd479 0%, #ffb347 100%);
  color: #2b2f55;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(255, 196, 71, 0.25);
}
.btn-vip:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 196, 71, 0.4);
}
.btn-vip:active { transform: translateY(0); }
.vip-crown { width: 16px; height: 16px; }

.user-area {
  padding: 14px 14px 18px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #2a2c36;
}

.user-area .btn-login,
.user-area .btn-register {
  flex: 1;
  height: 34px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  transition: all 0.15s;
}

.btn-login {
  background: transparent;
  color: #c8cad0;
  border: 1px solid #3a3d48 !important;
}

.btn-login:hover {
  background: #2a2c36;
  color: #fff;
}

.btn-register {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.btn-register:hover {
  filter: brightness(1.1);
}

/* ============ 已登录用户卡片（统一框框：头像 + 用户名 + 会员等级 + 退出）============ */
.auth-card {
  display: flex;
  align-items: center;          /* 垂直居中，让退出按钮在卡片内居中 */
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 4px 5px 4px 4px;     /* 内边距让退出按钮不至于贴右边框 */
  box-sizing: border-box;
  border-radius: 8px;
  background: #2a2c36;
  border: 1px solid #3a3d48;
  overflow: hidden;
}
.auth-user {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 6px;           /* 内部细分，仅 hover 高亮 */
  background: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-user:hover {
  background: rgba(255, 255, 255, 0.04);
}
.auth-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;           /* 圆形头像，与参考图一致 */
  overflow: hidden;
  background: #1a1c22;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-avatar-default {
  width: 100%;
  height: 100%;
  display: block;
}
.auth-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.35;
  gap: 1px;
}
.auth-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-user-level {
  font-size: 11px;
  color: #ffc857;              /* VIP 等级文字：金色，与皇冠图标一致 */
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.auth-user-level .fa {
  font-size: 10px;
  color: #ffc857;
}

/* 右侧动作按钮容器——目前仅留退出，水平居中 */
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px 0 0;
}
.auth-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: #b8becd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.auth-icon-btn:hover {
  background: #2a2c36;
  color: #fff;
  border-color: #3a3d48;
}
.auth-icon-logout:hover {
  background: #d9534f;
  border-color: #d9534f;
  color: #fff;
}

/* 退出：卡片内部的胶囊按钮（不再独立成框，紧贴 .auth-card 右侧垂直居中） */
.auth-logout {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;          /* 半径 = height/2 → 完整胶囊 */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: #c8cdda;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.auth-logout:hover {
  background: #d9534f;
  border-color: #d9534f;
  color: #fff;
}
.auth-logout svg {
  display: block;
}

/* ============ CONTENT ============ */
.content {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 28px 40px;            /* 2026-09-10 v121 取消 top 16px 留白，按用户要求 banner 顶部直接贴 viewport 顶端 */
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding-top: 184px;       /* banner 180 + 安全 4 */
}

/* ============ BANNER ============ */
.banner-carousel {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 180px;
  margin-top: 0;
  margin-bottom: 0;
  background: #f4f5f7;             /* 2026-09-10 v120 banner 容器自带页面背景色，遮住 .banner-slides 圆角(14px)外上下各 14px 透明 halo——否则滚动卡片会从圆角外区域穿透 */
  pointer-events: none;
}
.banner-slides,
.banner-slide,
.banner-dots,
.banner-dots .dot { pointer-events: auto; }   /* banner 内容、链接、轮播指示点恢复可点击 */
.banner-slide {
  text-align: center;          /* 内容居中，避免右侧大片纯渐变空白 */
}

.banner-carousel::before {
  /* 2026-09-10 注释：原本用于遮住 banner 下方 -16px 区域防卡片尾部露出。
     现已通过 .content padding-top:16px + sticky top:0 让 banner 上方永久被页面背景遮罩，
     此 ::before 灰色延伸块不再需要，保留也无副作用但视觉上会盖住 vip-panel 顶 16px → 删除 */
  content: none;
}

.banner-carousel::after {
  /* 2026-09-10 v122 改为实色遮罩：覆盖 banner slides 圆角外下方 14px halo + banner 容器外延伸 16px，
     确保 banner 下方彻底不穿透（页面背景色 #f4f5f7） */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 16px;
  background: #f4f5f7;
  z-index: 1;
  pointer-events: none;
}

.banner-slides {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f5f7;          /* 2026-09-10 v122 banner slides 圆角外 halo 显示页面背景色兜底 */
  /* 2026-09-10 原 0 6px 20px 阴影向下延伸 ~20px，会遮住点击导航后 section 标题上半部
     改为内嵌阴影 + 极弱下沿，保留立体感但不向下溢出 */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 0 rgba(0,0,0,0.04);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 44px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.banner-slide p {
  font-size: 15px;
  opacity: 0.92;
}

.banner-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 7px;
}

.banner-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  padding: 0;
  transition: all 0.2s;
  cursor: pointer;
}

.banner-dots .dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ============ SECTIONS & CARDS ============ */
.sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #8a8f9c;
  font-size: 14px;
}

.game-section {
  scroll-margin-top: 200px;  /* 兜底：scrollIntoView 也避开 sticky banner */
  padding-top: 16px;          /* 2026-09-10 让 section-header 距 section 顶 16px，避开 banner 圆角/渐变视觉延伸 */
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2028;
}

.section-title .section-count {
  font-size: 12px;
  color: #8a8f9c;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.game-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #eaebef;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #d8dae2;
}

.card-icon {
  position: relative;          /* 让封面图绝对定位覆盖渐变 */
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2c36;         /* 图片加载前的底色，避免暗灰背景闪烁 */
}
.card-icon-letter {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  z-index: 1;
}
.card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;                   /* 盖住字母 z-index:1 的字 */
  transition: opacity 0.25s, transform 0.4s;
}
.game-card:hover .card-cover-img {
  transform: scale(1.04);       /* hover 微放大，符合原卡片 hover 互动感 */
}

.grad-A { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.grad-B { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.grad-C { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.grad-D { background: linear-gradient(135deg, #f6d365, #fda085); }
.grad-E { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.grad-F { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.grad-G { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.grad-H { background: linear-gradient(135deg, #667eea, #764ba2); }
.grad-I { background: linear-gradient(135deg, #30cfd0, #330867); }
.grad-J { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.grad-K { background: linear-gradient(135deg, #ff9966, #ff5e62); }
.grad-L { background: linear-gradient(135deg, #5ee7df, #b490ca); }
.grad-M { background: linear-gradient(135deg, #f093fb, #f5576c); }
.grad-N { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.grad-O { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.grad-P { background: linear-gradient(135deg, #fa709a, #fee140); }
.grad-Q { background: linear-gradient(135deg, #30cfd0, #330867); }
.grad-R { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.grad-S { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.grad-T { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.grad-U { background: linear-gradient(135deg, #667eea, #764ba2); }
.grad-V { background: linear-gradient(135deg, #f093fb, #f5576c); }
.grad-W { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.grad-X { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.grad-Y { background: linear-gradient(135deg, #fa709a, #fee140); }
.grad-Z { background: linear-gradient(135deg, #30cfd0, #330867); }
.grad-# { background: linear-gradient(135deg, #636e72, #2d3436); }
.grad-0 { background: linear-gradient(135deg, #636e72, #2d3436); }
.grad-month { background: linear-gradient(135deg, #667eea, #764ba2); }

.card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2028;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8a8f9c;
  flex-wrap: wrap;
}

.card-meta .tag {
  background: #f0f1f4;
  color: #6a6d7a;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f4f5f7;
  font-size: 11px;
}

.card-bottom .size {
  color: #667eea;
  font-weight: 600;
}

.card-bottom .price {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

.price-free {
  background: #e8f7ed;
  color: #2e8b57;
}

.price-pay {
  background: #fff0e8;
  color: #d2691e;
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 36px 20px 0;
  color: #a0a3ad;
  font-size: 12px;
}

/* ============ MODAL ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 30, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-mask.active, .modal-mask.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4f5f7;
  border: none;
  font-size: 14px;
  color: #6a6d7a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.15s;
}

.modal-close:hover {
  background: #eaebef;
  color: #1f2028;
}

.modal-body {
  padding: 28px;
}

/* ============ DETAIL MODAL（点击游戏卡片弹窗） ============ */
.modal-detail {
  max-width: 520px;
}
.modal-detail .modal-body {
  padding: 26px 26px 22px;
}

/* 弹窗里的滚动条更细 */
.modal-detail::-webkit-scrollbar { width: 6px; }
.modal-detail::-webkit-scrollbar-thumb { background: #d6d8de; border-radius: 3px; }

.detail-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 头部：封面 + 标题 + 标签 */
.detail-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed #e8eaef;
}

.detail-cover {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.18);
  overflow: hidden;
  position: relative;
}

.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* fallback：图片隐藏时让父容器露出渐变背景 */
.detail-cover.fb .detail-cover-letter { display: flex; }

.detail-cover-letter {
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  letter-spacing: -1px;
  display: flex;
}

.detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2028;
  margin: 0;
  word-break: break-word;
  padding-right: 28px;     /* 给右上角关闭按钮留位 */
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-free {
  background: rgba(67, 233, 123, 0.12);
  color: #2c9c5b;
}
.tag-price {
  background: rgba(255, 159, 102, 0.16);
  color: #d96826;
}
.tag-ghost {
  background: #f4f5f7;
  color: #6a6d7a;
}

/* 下载区 */
.detail-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #a0a3ad;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dl-source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  text-decoration: none;
  color: #1f2028;
  transition: all 0.18s ease;
  cursor: pointer;
}
.dl-source:hover {
  background: #fff;
  border-color: #d6d8de;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 22, 30, 0.06);
}
.dl-source:active {
  transform: translateY(0);
}

/* 图标方块：着色 + 内联 SVG  */
.dl-source-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.dl-source-icon svg {
  width: 18px;
  height: 18px;
}
.dl-icon-baidu .dl-source-icon { background: linear-gradient(135deg, #3385ff, #1565e0); }
.dl-icon-buy   .dl-source-icon { background: linear-gradient(135deg, #ff9966, #ff5e62); }
.dl-icon-info  .dl-source-icon { background: linear-gradient(135deg, #95a5a6, #636e72); }

.dl-source-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl-source-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2028;
}
.dl-source-sub {
  font-size: 12px;
  color: #8a8f9c;
  word-break: break-all;
}

.dl-source-arrow {
  width: 18px;
  height: 18px;
  color: #a0a3ad;
  flex-shrink: 0;
  transition: transform 0.18s, color 0.18s;
}
.dl-source-arrow svg { width: 100%; height: 100%; }
.dl-source:hover .dl-source-arrow {
  transform: translateX(2px);
  color: #667eea;
}

.detail-empty {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: #a0a3ad;
}

/* 版本介绍区块 */
/* 版本介绍内容（2026-09-10 v125 起放 detail-info 标签下方，不再独占外层 section） */
.detail-info .intro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.detail-info .intro-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f4f5f7;
  color: #5a5d6a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid #eceef2;
  white-space: nowrap;
}
.detail-info .detail-intro-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #6b6e7a;
  word-break: break-word;
}

/* ============ LOGIN/VIP MODAL 复用 ============ */

/* 登录/注册弹窗：iframe 嵌入前台用户页 */
.modal-auth {
  max-width: 440px;
}
.modal-auth .modal-body {
  padding: 0;
}

/* VIP 会员弹窗：宽度加大，让等级卡片舒服 */
.modal-vip {
  max-width: 840px;
}
.modal-vip .modal-body {
  padding: 0;
}
.modal-vip .vip-card {
  border-radius: 14px;
  margin: 0;
}

/* ============ VIP 开通确认弹窗 ============ */
.modal-vip-confirm {
  max-width: 380px;
}
.modal-vip-confirm .modal-body {
  padding: 0;
}
.vip-confirm {
  font-family: inherit;
}
.vc-head {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 26px 24px 22px;
  text-align: center;
  color: #fff;
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}
.vc-head::before,
.vc-head::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.vc-head::before {
  width: 120px;
  height: 120px;
  top: -60px;
  right: -40px;
}
.vc-head::after {
  width: 90px;
  height: 90px;
  bottom: -50px;
  left: -30px;
}
.vc-crown {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd76a;
  position: relative;
  z-index: 1;
}
.vc-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.vc-sub {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.82);
  position: relative;
  z-index: 1;
}
.vc-plan {
  padding: 18px 24px 6px;
}
.vc-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #eceef2;
  font-size: 14px;
}
.vc-plan-row:last-child {
  border-bottom: none;
}
.vc-plan-row .vc-k {
  color: #8a8d99;
  font-size: 13px;
}
.vc-plan-row .vc-v {
  color: #23242c;
  font-weight: 600;
}
.vc-plan-row.vc-price .vc-v {
  color: #e6533c;
  font-size: 18px;
  font-weight: 800;
}
.vc-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 8px;
}
.vc-actions .btn-primary {
  flex: 1;
}
.vc-btn-ghost {
  flex: 1;
  padding: 11px 0;
  border: 1px solid #e2e4ea;
  border-radius: 10px;
  background: #fff;
  color: #5a5d6a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.vc-btn-ghost:hover {
  background: #f4f5f8;
  color: #23242c;
}
/* 微信/支付宝品牌色支付按钮 */
.vc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 0;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.vc-btn:hover {
  filter: brightness(1.06);
}
.vc-btn:active {
  transform: translateY(1px);
}
.vc-btn svg {
  flex: none;
}
.vc-btn-wechat {
  background: #07c160;
  box-shadow: 0 4px 12px rgba(7, 193, 96, .28);
}
.vc-btn-alipay {
  background: #1677ff;
  box-shadow: 0 4px 12px rgba(22, 119, 255, .28);
}
.vc-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 6px 24px 22px;
  font-size: 12px;
  color: #a0a3ae;
}
.vc-note svg {
  flex: none;
  color: #667eea;
}

/* 微信扫码支付弹窗 */
.modal-vip-pay .modal-body {
  padding: 8px 24px 26px;
}
.vip-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vip-pay .vp-brand {
  width: 48px;
  height: 48px;
  margin: 18px auto 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(40, 44, 70, .14);
}
.vip-pay.vp-wechat .vp-brand {
  background: #07c160;
}
.vip-pay.vp-alipay .vp-brand {
  background: #1677ff;
}
.vip-pay .vp-head h3 {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #23242c;
}
.vip-pay .vp-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8a8d99;
}
.vip-pay .vp-qr {
  width: 200px;
  height: 200px;
  padding: 10px;
  border: 1px solid #e2e4ea;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(40, 44, 70, .08);
}
.vip-pay.vp-wechat .vp-qr {
  border-color: rgba(7, 193, 96, .35);
  box-shadow: 0 6px 20px rgba(7, 193, 96, .10);
}
.vip-pay.vp-alipay .vp-qr {
  border-color: rgba(22, 119, 255, .35);
  box-shadow: 0 6px 20px rgba(22, 119, 255, .10);
}
.vip-pay .vp-qr img,
.vip-pay .vp-qr canvas {
  width: 180px !important;
  height: 180px !important;
  display: block;
}
.vip-pay .vp-loading,
.vip-pay .vp-err {
  font-size: 13px;
  color: #a0a3ae;
  padding: 20px 8px;
  line-height: 1.6;
}
.vip-pay .vp-err {
  color: #e25563;
}
.vip-pay .vp-code-text {
  font-size: 11px;
  word-break: break-all;
  color: #8a8d99;
}
.vip-pay .vp-tip {
  display: inline-block;
  margin: 16px 0 10px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.vip-pay.vp-wechat .vp-tip {
  color: #07c160;
  background: rgba(7, 193, 96, .09);
}
.vip-pay.vp-alipay .vp-tip {
  color: #1677ff;
  background: rgba(22, 119, 255, .09);
}
.vip-pay .vp-status {
  font-size: 14px;
  font-weight: 600;
  color: #8a8d99;
  margin-bottom: 16px;
  min-height: 20px;
}
.vip-pay .vp-status.ok {
  color: #2bb673;
}
.vip-pay .vp-status.err {
  color: #e25563;
}
/* 取消：纯文字弱化按钮 */
.vip-pay .vp-cancel {
  background: none;
  border: none;
  padding: 4px 14px;
  margin-top: -4px;
  color: #a0a3ae;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s ease;
}
.vip-pay .vp-cancel:hover {
  color: #5a5d6a;
}

/* ============ 下载超限提示弹窗 ============ */
.modal-limit {
  max-width: 420px;
}
.modal-limit .modal-body {
  padding: 30px 26px 24px;
}
.limit-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.limit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #fff4e5;
  color: #ff8f1f;
}
.limit-icon svg {
  width: 30px;
  height: 30px;
}
.limit-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c2f38;
  margin-bottom: 10px;
}
.limit-msg {
  font-size: 13.5px;
  line-height: 1.7;
  color: #5a5d6a;
  margin: 0 0 22px;
  word-break: break-word;
}
.limit-upgrade {
  width: 100%;
  margin-bottom: 10px;
}
.limit-close {
  width: 100%;
  padding: 11px 0;
  border: 1px solid #e4e6ec;
  border-radius: 10px;
  background: #f6f7f9;
  color: #5a5d6a;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.limit-close:hover {
  background: #eceef2;
}
.code-strong {
  color: #764ba2;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 15px;
}
.limit-copy {
  width: 100%;
  margin-bottom: 10px;
}

/* 详情页：未登录时的下载入口占位提示 */
.detail-login-tip {
  margin: 4px 0 2px;
  padding: 14px 16px;
  border: 1px dashed #d9d3ee;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f5fd 0%, #f3f0fb 100%);
  color: #6b5ca5;
  font-size: 13.5px;
  text-align: center;
}

/* 通用主按钮（升级会员 / 确认开通等弹窗按钮复用） */
.btn-primary {
  padding: 11px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102,126,234,0.32);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.auth-iframe {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 0 0 14px 14px;
  display: block;
  background: #fff;
}

.modal-body .m-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-right: 40px;
}

.modal-body .m-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

.modal-body .m-row .label {
  color: #8a8f9c;
  min-width: 70px;
  flex-shrink: 0;
}

.modal-body .m-row .value {
  color: #1f2028;
  word-break: break-all;
}

.modal-body .m-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-body .dl-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  border: none;
  text-align: left;
}

.modal-body .dl-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.modal-body .dl-btn.alt {
  background: #f4f5f7;
  color: #1f2028;
}

.modal-body .dl-btn .dl-label {
  opacity: 0.8;
  font-size: 11px;
  display: block;
  font-weight: 500;
}

.modal-body .dl-btn .dl-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .letter-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .content {
    padding: 0 16px 16px;
  }
  .banner-carousel {
    margin-top: 16px;
  }
  .banner-slide h2 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    max-height: 40vh;
  }
  .content {
    height: 0;
    flex: 1 1 auto;
    min-height: 0;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-carousel {
    height: 140px;
  }
  .banner-slide {
    padding: 0 24px;
  }
  .banner-slide h2 {
    font-size: 18px;
  }
}

/* ===== VIP 会员面板 ===== */
.vip-panel { padding: 16px 16px 0; display: none; } /* VIP 区块改为弹窗展示，不再暴露在首页 */
.vip-card {
  background: linear-gradient(135deg, #2b2f55 0%, #3a2c5e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(43,47,85,.18);
}
.vip-head { text-align: center; margin-bottom: 18px; }
.vip-head h2 { font-size: 22px; margin-bottom: 6px; }
.vip-head p { opacity: .85; font-size: 14px; white-space: pre-line; }
.vip-plans {
  display: grid;
  /* 单卡最小 140px：840px 弹窗内最多排 5 个/行，档位少时自动均分铺满一行 */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.vip-plan {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 14px 10px 12px;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.vip-plan:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,212,121,.55);
}
.vip-plan-hot {
  background: rgba(255,255,255,.16);
  border-color: #ffd479;
  box-shadow: 0 0 0 2px rgba(255,212,121,.35) inset;
}
.vip-plan-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.vip-plan-price { font-size: 22px; font-weight: 700; color: #ffd479; line-height: 1.2; }
.vip-plan-dur { font-size: 12.5px; opacity: .9; margin-top: 4px; white-space: nowrap; }
.vip-plan-dl { font-size: 12px; opacity: .75; margin-top: 3px; white-space: nowrap; }
.vip-buy {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 7px 0;
  background: #ffd479;
  color: #2b2f55;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s ease;
}
.vip-buy:hover { background: #ffc94d; }
.vip-plan-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 0;
  opacity: .8;
}
.vip-note {
  text-align: center;
  font-size: 12px;
  opacity: .75;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .letter-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
