/* =========================================================
   Deal Terminal shell — 把首页视觉扩展到列表/详情/免费/Demo
   依赖：terminal.css（结构） + 可选 fx.css（动效）
   ========================================================= */

:root {
  --bg: #0b0f18;
  --panel: #141a26;
  --panel-2: #1a2233;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #c5cede;
  --strong: #f4f7ff;
  --muted: #8b96ab;
  --soft: #6b7690;
  --blue: #3d8bfd;
  --blue-2: #6aa8ff;
  --blue-ink: #8bbcff;
  --blue-soft: rgba(61, 139, 253, 0.14);
  --green: #3dd68c;
  --green-soft: rgba(61, 214, 140, 0.14);
  --amber: #ffc14a;
  --amber-soft: rgba(255, 193, 74, 0.14);
  --wrap: 1280px; /* 与原型 store.css 舞台宽一致 */
  --r: 16px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

html:not([data-theme="light"]) body.dt-body {
  background: #0b0f18;
}

html:not([data-theme="light"]) body.dt-body::before {
  background:
    radial-gradient(1000px 560px at 12% -10%, rgba(61, 139, 253, 0.2), transparent 55%),
    radial-gradient(800px 480px at 90% 0%, rgba(255, 77, 154, 0.1), transparent 50%),
    radial-gradient(700px 420px at 50% 110%, rgba(61, 214, 140, 0.07), transparent 55%),
    #0b0f18;
}

/* —— 全站顶栏（与首页一致） —— */
.dt-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 24, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.dt-topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.dt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f7ff;
}

.dt-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3d8bfd, #2563eb);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  font-size: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}

.dt-brand-mark svg {
  width: 18px;
  height: 18px;
}

.dt-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.dt-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #8b96ab;
  transition: 0.15s ease;
}

.dt-nav a:hover {
  color: #8bbcff;
  background: rgba(61, 139, 253, 0.12);
}

.dt-nav a.is-active {
  color: #8bbcff;
  background: rgba(61, 139, 253, 0.16);
}

/* 搜索：与首页同款（图标 + input + 搜索按钮） */
.dt-topbar .top-search,
form.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 38vw);
  height: 40px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: 0.18s ease;
}

.dt-topbar .top-search:focus-within,
form.top-search:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(61, 139, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.12);
}

.dt-topbar .top-search svg,
form.top-search svg {
  width: 16px;
  height: 16px;
  color: #6b7690;
  flex-shrink: 0;
  display: block;
}

.dt-topbar .top-search input,
form.top-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  height: 32px;
  line-height: 32px;
  padding: 0;
  margin: 0;
  color: #f4f7ff;
  font-size: 14px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.dt-topbar .top-search input::placeholder,
form.top-search input::placeholder {
  color: #6b7690;
}

.dt-topbar .top-search input::-webkit-search-decoration,
.dt-topbar .top-search input::-webkit-search-cancel-button,
form.top-search input::-webkit-search-decoration,
form.top-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.dt-topbar .top-search button[type="submit"],
form.top-search button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4d8bff, #2563eb);
  color: #fff;
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 32px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: none;
}

.dt-topbar .top-search button[type="submit"]:hover,
form.top-search button[type="submit"]:hover {
  filter: brightness(1.06);
  transform: none;
}

.dt-topbar .top-search button[type="submit"]::after,
form.top-search button[type="submit"]::after {
  display: none !important;
  content: none !important;
}

/* 兼容旧 label.dt-search */
.dt-search {
  display: none;
}

/* 区域 / 主题 / 头像 */
.dt-topbar .region-wrap,
.region-wrap {
  position: relative;
  flex-shrink: 0;
}

.dt-topbar .region-btn,
.region-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f7ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.dt-topbar .region-btn:hover,
.region-btn:hover {
  border-color: rgba(61, 139, 253, 0.35);
  color: #8bbcff;
}

.dt-topbar .region-btn .flag,
.region-btn .flag {
  font-size: 15px;
  line-height: 1;
}

.dt-topbar .region-btn .chev,
.region-btn .chev {
  width: 12px;
  height: 12px;
  color: #6b7690;
  transition: transform 0.15s ease;
}

.region-wrap.open .region-btn .chev {
  transform: rotate(180deg);
}

.dt-topbar .region-menu,
.region-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 240px;
  padding: 6px;
  background: #171e2d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.region-wrap.open .region-menu {
  display: block;
}

.region-menu .rm-title {
  font-size: 11px;
  font-weight: 700;
  color: #8b96ab;
  padding: 8px 12px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.region-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #c5cede;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
}

.region-menu button:hover,
.region-menu button.is-active {
  background: rgba(61, 139, 253, 0.12);
  color: #8bbcff;
}

.region-menu .meta {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #6b7690;
}

.region-note {
  margin: 6px 8px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: #8b96ab;
  line-height: 1.45;
}

.dt-topbar .theme-btn,
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #c5cede;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.dt-topbar .theme-btn:hover,
.theme-btn:hover {
  color: #8bbcff;
  border-color: rgba(61, 139, 253, 0.35);
}

/* 原型：始终显示已登录头像 + 个人中心弹窗 */
.user-auth {
  position: relative;
  flex-shrink: 0;
}

.user-auth .login-btn {
  display: none !important;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(125, 168, 255, 0.4);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(61, 139, 253, 0.1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-avatar-btn:hover,
.user-auth.open .user-avatar-btn {
  border-color: rgba(125, 168, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.18);
}

.user-avatar-btn .avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4d8bff, #7c3aed);
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  min-width: 240px;
  padding: 8px;
  background: #171e2d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.user-auth.open .user-menu {
  display: block;
}

.user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.user-menu-head .um-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4d8bff, #7c3aed);
  flex-shrink: 0;
}

.user-menu-head .um-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu-head .um-name {
  font-size: 14px;
  font-weight: 800;
  color: #eef2ff;
  line-height: 1.2;
}

.user-menu-head .um-mail {
  font-size: 12px;
  color: #8b96ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.user-menu a,
.user-menu button.um-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #c5cede;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.user-menu a:hover,
.user-menu button.um-item:hover {
  background: rgba(61, 139, 253, 0.12);
  color: #8bbcff;
}

.user-menu .um-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.user-menu .um-divider {
  height: 1px;
  margin: 6px 8px;
  background: rgba(255, 255, 255, 0.08);
}

.user-menu .um-logout {
  color: #fca5a5;
}

.user-menu .um-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

html[data-theme="light"] .user-menu {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .user-menu-head {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .user-menu-head .um-name {
  color: #0f172a;
}

html[data-theme="light"] .user-menu-head .um-mail,
html[data-theme="light"] .user-menu a,
html[data-theme="light"] .user-menu button.um-item {
  color: #475569;
}

html[data-theme="light"] .user-menu a:hover,
html[data-theme="light"] .user-menu button.um-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html[data-theme="light"] .user-menu .um-divider {
  background: rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .dt-nav {
    display: none;
  }
  .dt-topbar .top-search,
  form.top-search {
    width: min(220px, 40vw);
  }
}

@media (max-width: 640px) {
  .dt-topbar .top-search,
  form.top-search {
    display: none;
  }
  .region-btn .meta-label,
  .region-btn #regionLabel {
    display: none;
  }
}

/* —— 页面标题区 —— */
.dt-page {
  padding-top: 22px;
  padding-bottom: 40px;
}

.dt-page-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--strong);
}

.dt-page-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.dt-page-hero {
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #1a2233, #121826);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* 顶条改由 glass 背景层绘制 */
.dt-page-hero::after,
.dt-page-hero.is-demo::after {
  content: none;
  display: none;
}

.dt-page-hero.is-rich {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dt-page-hero .hero-main {
  min-width: min(100%, 420px);
  flex: 1;
}

.dt-page-hero .hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.dt-page-hero .hero-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(61, 139, 253, 0.14);
  color: #8bbcff;
  flex-shrink: 0;
}

.dt-page-hero.is-demo .hero-ico {
  background: rgba(255, 193, 74, 0.14);
  color: #ffc14a;
}

.dt-page-hero .hero-ico svg {
  width: 22px;
  height: 22px;
}

.dt-page-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8bbcff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-page-hero .kicker .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.2);
  animation: shell-pulse 1.6s ease-in-out infinite;
}

@keyframes shell-pulse {
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(61, 214, 140, 0.08); }
}

.dt-page-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.03em;
  color: var(--strong);
}

.dt-page-hero .hero-title-row h1 {
  margin: 0;
}

.dt-page-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #8bbcff, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dt-page-hero.is-demo h1 em {
  background: linear-gradient(120deg, #ffc14a, #8bbcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dt-page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

.dt-hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.dt-hero-stat {
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dt-hero-stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.dt-hero-stat span {
  font-size: 12px;
  color: var(--muted);
}

.dt-hero-stat.is-warn b { color: #fca5a5; }
.dt-hero-stat.is-accent b { color: #fcd34d; }

/* —— 工具条 —— */
.dt-toolbar {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171e2d, #121826);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.dt-field {
  color: var(--muted);
  font-weight: 600;
}

.dt-field select,
.dt-field input {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--strong);
}

.dt-field select:focus,
.dt-field input:focus {
  outline: 0;
  border-color: rgba(61, 139, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.12);
}

/* —— 面板：顶条由 glass.css 背景层统一绘制（随圆角裁切） —— */
.dt-panel,
.dt-section-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #171e2d, #121826);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4) !important;
}

/* 矩阵表：允许 ··· 浮层溢出；顶条不依赖 overflow */
.dt-panel.is-matrix-panel {
  overflow: visible !important;
  isolation: isolate;
}
.dt-panel.is-matrix-panel .dt-panel-body {
  overflow: visible;
  border-radius: 0 0 16px 16px;
}
.dt-panel.is-matrix-panel .dt-matrix-scroll {
  overflow: visible;
  max-height: none;
}

/* 旧 ::after 顶条关闭（glass 用背景层） */
.dt-panel::after,
.dt-section-block::after,
.dt-panel.is-matrix-panel::after {
  content: none;
  display: none;
}

/* 覆盖旧的单色顶边 */
.dt-section-block.is-compare,
.dt-section-block.is-free,
.dt-section-block.is-demo {
  border-top: 0 !important;
}

@keyframes shell-stripe {
  to { background-position: 200% 0; }
}

.dt-panel-head {
  padding: 18px 20px 0;
}

.dt-panel-head h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* —— 表格对齐首页迷你表 —— */
.dt-table th {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6b7690;
  padding: 12px 14px;
}

.dt-table td {
  padding: 13px 14px;
}

.dt-table tbody tr:hover td {
  background: rgba(61, 139, 253, 0.05);
}

.dt-game-cell img {
  width: 72px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dt-game-cell .name {
  font-size: 13.5px;
  font-weight: 700;
}

.dt-price-cell .p {
  font-size: 13.5px;
  font-weight: 800;
}

.dt-price-cell .p.is-low {
  color: #3dd68c;
}

/* —— 低价榜：热门渠道矩阵（无内嵌滚动条，页面整体滚动） —— */
.dt-matrix-scroll {
  overflow: visible;
  margin: 0;
  padding: 0 0 6px;
  max-height: none;
}

.dt-table.is-matrix {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.dt-table.is-matrix th,
.dt-table.is-matrix td {
  white-space: nowrap;
}

html:not([data-theme="light"]) .dt-table.is-matrix th,
html:not([data-theme="light"]) .dt-table.is-matrix td {
  background: #141a26;
}

.dt-table.is-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

html:not([data-theme="light"]) .dt-table.is-matrix thead th {
  background: #171e2d;
}

html:not([data-theme="light"]) .dt-table.is-matrix tbody tr:hover td {
  background: #182235;
}

/* 冻列：# / 游戏 / 建议 */
.dt-table.is-matrix .sticky-rank,
.dt-table.is-matrix .sticky-game,
.dt-table.is-matrix .sticky-advice {
  position: sticky;
  z-index: 5;
}

html:not([data-theme="light"]) .dt-table.is-matrix .sticky-rank,
html:not([data-theme="light"]) .dt-table.is-matrix .sticky-game,
html:not([data-theme="light"]) .dt-table.is-matrix .sticky-advice {
  background: #141a26;
}

.dt-table.is-matrix thead .sticky-rank,
.dt-table.is-matrix thead .sticky-game,
.dt-table.is-matrix thead .sticky-advice {
  z-index: 6;
}

html:not([data-theme="light"]) .dt-table.is-matrix thead .sticky-rank,
html:not([data-theme="light"]) .dt-table.is-matrix thead .sticky-game,
html:not([data-theme="light"]) .dt-table.is-matrix thead .sticky-advice {
  background: #171e2d;
}

html:not([data-theme="light"]) .dt-table.is-matrix tbody tr:hover .sticky-rank,
html:not([data-theme="light"]) .dt-table.is-matrix tbody tr:hover .sticky-game,
html:not([data-theme="light"]) .dt-table.is-matrix tbody tr:hover .sticky-advice {
  background: #182235;
}

.dt-table.is-matrix .sticky-rank {
  left: 0;
  width: 48px;
  text-align: center;
  padding-left: 8px;
  padding-right: 6px;
}

.dt-table.is-matrix .sticky-game {
  left: 48px;
  width: 22%;
  z-index: 5;
}

.dt-table.is-matrix .sticky-advice {
  left: auto;
  width: 108px;
  box-shadow: none;
}

/* 热门列已固定宽度，不再依赖横向滚动冻列 */
.dt-table.is-matrix .sticky-rank,
.dt-table.is-matrix .sticky-game,
.dt-table.is-matrix .sticky-advice {
  position: static;
}

.dt-table.is-matrix .sticky-game .dt-game-cell {
  min-width: 0;
  max-width: none;
}

.dt-table.is-matrix .sticky-game .dt-game-cell .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.dt-rank {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 800;
  color: #aab4c8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 第 1 名：小皇冠（SVG mask，不依赖 emoji 字体） */
.dt-rank.is-top1 {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  margin-top: 8px;
}

.dt-rank.is-top1::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 16px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath fill='%23000' d='M2.5 15.5h19v2H2.5v-2zm1-1.5L5 7l3.5 4L12 4.5 15.5 11 19 7l1.5 7H3.5z'/%3E%3Ccircle cx='5' cy='6.2' r='1.4'/%3E%3Ccircle cx='12' cy='3.6' r='1.5'/%3E%3Ccircle cx='19' cy='6.2' r='1.4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath fill='%23000' d='M2.5 15.5h19v2H2.5v-2zm1-1.5L5 7l3.5 4L12 4.5 15.5 11 19 7l1.5 7H3.5z'/%3E%3Ccircle cx='5' cy='6.2' r='1.4'/%3E%3Ccircle cx='12' cy='3.6' r='1.5'/%3E%3Ccircle cx='19' cy='6.2' r='1.4'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.45));
  pointer-events: none;
}

.dt-table.is-matrix .sticky-rank {
  overflow: visible;
  vertical-align: middle;
}

.dt-rank.is-top2 {
  color: #fff;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  border-color: transparent;
}
.dt-rank.is-top3 {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: transparent;
}

.dt-table.is-matrix .dt-price-cell {
  min-width: 0;
}

.dt-table.is-matrix .col-store {
  width: 9%;
  min-width: 0;
}

.dt-table.is-matrix .col-trend {
  width: 72px;
  min-width: 0;
}

.dt-table.is-matrix .col-action {
  width: 84px;
  min-width: 0;
  text-align: right;
  padding-right: 14px;
}

.dt-table.is-matrix .col-more {
  width: 72px;
}

.dt-matrix-hint {
  margin: 0 18px 12px;
  font-size: 12px;
  color: #6b7690;
}

/* —— 列表「···」其它商店浮层 —— */
.dt-table.is-matrix .col-more {
  min-width: 64px;
  width: 64px;
  text-align: center;
  overflow: visible;
}

.dt-more-empty {
  color: var(--soft);
}

.dt-more-pop {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.dt-more-trigger {
  appearance: none;
  border: 1px solid rgba(125, 168, 255, 0.28);
  background: rgba(61, 139, 253, 0.1);
  color: #9ec0ff;
  border-radius: 999px;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: 0.15s ease;
}

.dt-more-trigger i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0.9;
}

.dt-more-trigger:hover,
.dt-more-pop:hover .dt-more-trigger,
.dt-more-pop:focus-within .dt-more-trigger {
  color: #fff;
  border-color: rgba(158, 192, 255, 0.5);
  background: linear-gradient(135deg, rgba(77, 139, 255, 0.35), rgba(61, 139, 253, 0.18));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.dt-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 220px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1a2233, #121826);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  text-align: left;
}

.dt-more-pop:hover .dt-more-panel,
.dt-more-pop:focus-within .dt-more-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dt-more-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #f4f7ff;
  margin-bottom: 8px;
}

.dt-more-panel-h span {
  color: #8b96ab;
  font-weight: 600;
}

.dt-more-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.dt-more-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dt-more-row .n {
  color: #c5cede;
  font-weight: 650;
}

.dt-more-row .p {
  color: #f4f7ff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dt-more-row .d {
  color: #6b7690;
  font-size: 11px;
  min-width: 36px;
  text-align: right;
}

.dt-more-row.is-low {
  border-color: rgba(61, 214, 140, 0.28);
  background: rgba(61, 214, 140, 0.08);
}

.dt-more-row.is-low .p {
  color: #3dd68c;
}

.dt-more-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #9ec0ff;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(61, 139, 253, 0.1);
  border: 1px solid rgba(125, 168, 255, 0.22);
}

.dt-more-link:hover {
  color: #fff;
  background: rgba(61, 139, 253, 0.2);
}

/* 表格最后几行浮层向上展开，避免被裁切 */
.dt-table.is-matrix tbody tr:nth-last-child(-n + 2) .dt-more-panel {
  top: auto;
  bottom: calc(100% + 8px);
}

/* —— 大列表分页 —— */
.dt-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 4px 8px 0;
  padding: 14px 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-pager-meta {
  font-size: 12.5px;
  color: #8b96ab;
}

.dt-pager-meta b {
  color: #f4f7ff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dt-pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dt-page-nums {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.dt-page-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c5cede;
  border-radius: 9px;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.14s ease;
}

.dt-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(125, 168, 255, 0.35);
  color: #9ec0ff;
  background: rgba(61, 139, 253, 0.1);
}

.dt-page-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #4d8bff, #2563eb);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.dt-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dt-page-ellipsis {
  color: #6b7690;
  padding: 0 4px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .dt-pager {
    flex-direction: column;
    align-items: stretch;
  }
  .dt-pager-controls {
    justify-content: space-between;
  }
}

/* —— 优惠文章类型标签 —— */
.art-guide, .token-art-guide {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.art-event, .token-art-event {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.28);
}
.art-code, .token-art-code {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.art-avoid, .token-art-avoid {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.art-update, .token-art-update {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* 首页：优惠文章 = 一排 3 个游戏商品卡 */
.dt-article-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 16px 18px;
}

.dt-game-art-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #1b1f29, #141a26);
  overflow: hidden;
  min-height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dt-game-art-card:hover {
  border-color: rgba(61, 139, 253, 0.3);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.dt-game-art-cover {
  position: relative;
  display: block;
  aspect-ratio: 460 / 215;
  background: #000;
  overflow: hidden;
}

.dt-game-art-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dt-game-art-card:hover .dt-game-art-cover img {
  transform: scale(1.04);
}

.dt-game-art-cover .art-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.dt-game-art-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
  flex: 1;
  min-width: 0;
}

.dt-game-art-body .name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f7ff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-game-art-body .name a:hover {
  color: #9ec0ff;
}

.dt-game-art-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.dt-game-art-price .num {
  font-size: 18px;
  font-weight: 800;
  color: #3dd68c;
  letter-spacing: -0.02em;
}

.dt-game-art-price .store {
  font-size: 12px;
  font-weight: 700;
  color: #8b96ab;
}

.dt-game-art-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.dt-art-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.dt-art-row:hover {
  background: rgba(61, 139, 253, 0.08);
  border-color: rgba(125, 168, 255, 0.18);
}

.dt-art-row .tag {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  margin-top: 1px;
}

.dt-art-row .title {
  font-size: 12.5px;
  font-weight: 650;
  color: #dbe4f3;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-art-row:hover .title {
  color: #fff;
}

.dt-art-row .time {
  display: none;
}

.dt-game-art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dt-game-art-foot a {
  font-size: 12px;
  font-weight: 700;
  color: #9ec0ff;
}

.dt-game-art-foot a:hover {
  color: #fff;
}

.dt-game-art-foot .btn-detail,
.dt-game-art-foot a.btn-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, #4d8bff, #2563eb);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
  border: 0;
}

.dt-game-art-foot a.btn-go:hover {
  filter: brightness(1.08);
}

/* 详情页：本游戏文章列表 */
.dt-art-related {
  display: grid;
  gap: 0;
}

.dt-art-related-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: inherit;
}

.dt-art-related-item:last-child {
  border-bottom: 0;
}

.dt-art-related-item:hover .t {
  color: #9ec0ff;
}

.dt-art-related-item .t {
  font-size: 13.5px;
  font-weight: 700;
  color: #f4f7ff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.dt-art-related-item .s {
  font-size: 12px;
  color: #8b96ab;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-art-related-item .meta {
  font-size: 11px;
  color: #6b7690;
  white-space: nowrap;
  padding-top: 2px;
}

.dt-art-empty {
  padding: 16px 4px;
  font-size: 13px;
  color: #8b96ab;
  line-height: 1.55;
}

.dt-art-hook {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(61, 214, 140, 0.22);
  background: rgba(61, 214, 140, 0.08);
  font-size: 12.5px;
  color: #c5ede0;
  line-height: 1.45;
}

.dt-art-hook b {
  color: #3dd68c;
  font-weight: 800;
}

@media (max-width: 980px) {
  .dt-article-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dt-article-blocks {
    grid-template-columns: 1fr;
  }
}

/* 建议徽章更醒目 */
.dt-badge {
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
}

/* token colors: unified by glass.css site-wide tag standard */

/* —— 按钮：详情/主操作更醒目 —— */
.dt-btn-primary {
  background: linear-gradient(135deg, #4d8bff, #2563eb) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  font-weight: 800;
}

.dt-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.42);
}

/* 列表详情：实心主按钮（对齐首页） */
.dt-btn-detail,
a.dt-btn-detail {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 68px !important;
  padding: 7px 14px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #4d8bff, #2563eb) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.dt-btn-detail:hover,
a.dt-btn-detail:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45) !important;
}

/* 次级 quiet 仍轻，但更清晰 */
.dt-btn-quiet {
  border-color: rgba(125, 168, 255, 0.28) !important;
  color: #9ec0ff !important;
  background: rgba(61, 139, 253, 0.08) !important;
  font-weight: 700;
}

.dt-btn-quiet:hover {
  background: rgba(61, 139, 253, 0.16) !important;
  border-color: rgba(158, 192, 255, 0.45) !important;
  color: #fff !important;
}

.dt-btn-buy {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
  font-weight: 800;
}

/* —— 国家芯片 —— */
.dt-chip {
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.dt-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(61, 139, 253, 0.35), rgba(61, 139, 253, 0.16));
  border-color: rgba(61, 139, 253, 0.45);
  box-shadow: 0 0 0 1px rgba(61, 139, 253, 0.12);
}

/* —— 详情页：同国渠道 · 国家 Tab（整体左对齐） —— */
.dt-panel-head.dt-panel-head-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 20px 0;
  text-align: left;
}

.dt-panel-head-tabs .dt-panel-title-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0;
  width: 100%;
  text-align: left;
}

.dt-panel-head-tabs .dt-panel-title-row h2 {
  margin: 0;
}

.dt-panel-head-tabs .dt-panel-title-row .sub,
.dt-panel-head-tabs .sub {
  font-size: 12px;
  color: #8b96ab;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}

.dt-panel-head-tabs .dt-country-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  padding: 0 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
  text-align: left;
}

.dt-country-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8b96ab;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 14px 12px;
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
  text-align: left;
}

.dt-country-tab .flag {
  font-size: 15px;
  line-height: 1;
}

.dt-country-tab .name {
  letter-spacing: -0.01em;
}

.dt-country-tab .price {
  font-size: 12px;
  font-weight: 800;
  color: #6b7690;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.dt-country-tab:hover {
  color: #c5cede;
  background: rgba(255, 255, 255, 0.03);
}

.dt-country-tab:hover .price {
  color: #8bbcff;
}

.dt-country-tab.is-active {
  color: #eef2ff;
  background: rgba(61, 139, 253, 0.1);
}

.dt-country-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #3d8bfd, #22c55e);
}

.dt-country-tab.is-active .price {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

html[data-theme="light"] .dt-country-tabs {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dt-country-tab {
  color: #64748b;
}

html[data-theme="light"] .dt-country-tab .price {
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
}

html[data-theme="light"] .dt-country-tab:hover {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.04);
}

html[data-theme="light"] .dt-country-tab.is-active {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.06);
}

html[data-theme="light"] .dt-country-tab.is-active .price {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}

@media (max-width: 720px) {
  .dt-country-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dt-country-tabs::-webkit-scrollbar {
    display: none;
  }
  .dt-country-tab {
    flex: 0 0 auto;
    padding: 10px 12px 12px;
  }
  .dt-country-tab .price {
    display: none;
  }
}

/* —— 免费/Demo 卡片密度对齐首页 —— */
.dt-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dt-product-grid.is-page {
  margin-top: 0;
  padding: 14px 16px 18px;
}

/* 列表页外层面板：与首页模块同款顶条 */
.dt-list-shell {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171e2d, #121826);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

/* 顶条改由 glass 背景层绘制 */
.dt-list-shell::after,
.dt-list-shell.is-demo::after {
  content: none;
  display: none;
}

.dt-product-card {
  border-radius: 12px;
  background: linear-gradient(180deg, #1b1f29, #141a26);
  border-color: rgba(255, 255, 255, 0.08);
}

.dt-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.dt-product-body {
  padding: 10px 11px 12px;
  gap: 6px;
}

.dt-product-body h3 {
  font-size: 13.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-product-summary {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
}

.dt-product-foot .dt-btn {
  border-radius: 8px;
  font-weight: 750;
  padding: 6px 12px !important;
}

.dt-product-ribbon {
  width: 84px;
  height: 84px;
}

.dt-product-ribbon span {
  top: 14px;
  right: -28px;
  width: 110px;
  padding: 4px 0;
  font-size: 10px;
}

/* 页脚 */
.dt-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6b7690;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.dt-foot a {
  color: #aab4c8;
  font-weight: 600;
}

.dt-foot a:hover {
  color: #8bbcff;
}

/* 决策卡 / 详情 */
.dt-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--soft);
}

.dt-crumbs a {
  color: #aab4c8;
  font-weight: 600;
}

.dt-crumbs a:hover {
  color: #8bbcff;
}

/* —— 详情页：价格趋势 —— */
.dt-trend-body {
  padding-top: 8px !important;
}

.dt-trend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.dt-trend-stat {
  min-width: 108px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dt-trend-stat span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #8b96ab);
  margin-bottom: 4px;
}

.dt-trend-stat b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--strong, #f4f7ff);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dt-trend-stat.is-down b { color: #34d399; }
.dt-trend-stat.is-up b { color: #f87171; }

.dt-trend-chart {
  width: 100%;
  min-height: 200px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 12px 10px 8px;
  box-sizing: border-box;
}

.dt-trend-chart svg.dt-trend-spark,
.dt-trend-chart .dt-spark {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}

.dt-trend-chart .dt-trend-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--soft, #6b7690);
  font-size: 13px;
}

.dt-trend-note {
  margin: 12px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #8b96ab);
}

html[data-theme="light"] .dt-trend-stat {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dt-trend-stat b {
  color: #0f172a;
}

html[data-theme="light"] .dt-trend-chart {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(255, 255, 255, 0.6));
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dt-trend-note {
  color: #64748b;
}

.dt-detail-hero {
  padding: 20px !important;
  gap: 14px !important;
  display: flex !important;
  flex-direction: column !important;
}

.dt-detail-hero-top {
  display: grid !important;
  grid-template-columns: minmax(300px, 1.15fr) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.dt-detail-hero-left,
.dt-detail-hero-right {
  min-width: 0;
}

.dt-detail-hero-right {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.dt-detail-hero h1 {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.dt-cover {
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  width: 100% !important;
}

.dt-hero-deal {
  margin-top: 0 !important;
  width: 100% !important;
}

.dt-decision-stack {
  position: sticky !important;
  top: 76px !important;
  align-self: start !important;
  width: 100% !important;
  gap: 12px !important;
}

.dt-decision {
  position: static !important;
  top: auto !important;
  padding: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dt-decision .kicker {
  color: #8bbcff !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 12px !important;
}

.dt-decision .score-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  margin: 10px 0 6px !important;
}

.dt-decision-advice.is-good .score-title {
  color: #6ee7b7 !important;
}

.dt-decision-reason {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.dt-decision-price-num {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.dt-detail-tab {
  font-weight: 650 !important;
}

.dt-detail-tab.is-active {
  color: #60a5fa !important;
}

.dt-hero-advice-title {
  font-size: 17px !important;
  font-weight: 800 !important;
}

.dt-price-card-now {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.dt-price-card-off {
  border-radius: 8px !important;
}

.dt-decision-price-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dt-decision .dt-btn-primary {
  width: 100%;
  margin-top: 0;
  padding: 11px 14px !important;
  font-size: 14px !important;
}

.dt-decision .dt-btn-ghost {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.dt-decision .dt-btn-ghost:hover {
  border-color: rgba(61, 139, 253, 0.35) !important;
  color: #8bbcff !important;
}

.dt-price-xl {
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #3dd68c !important;
}

.dt-price-xl.is-good {
  color: #3dd68c !important;
  text-shadow: 0 0 24px rgba(61, 214, 140, 0.25);
}

/* 迷你走势（低价榜） */
.dt-spark {
  display: block;
  width: 56px;
  height: 22px;
  vertical-align: middle;
}

.dt-spark.is-down { color: var(--green); }
.dt-spark.is-up { color: #f87171; }
.dt-spark.is-flat { color: var(--soft); }

.dt-table th.col-trend,
.dt-table td.col-trend {
  width: 72px;
  text-align: left;
}

.dt-note {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* 响应式 */
@media (max-width: 1100px) {
  .dt-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dt-nav { display: none; }
  .dt-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dt-search {
    width: min(180px, 40vw);
  }
}

@media (max-width: 560px) {
  .dt-wrap {
    width: min(var(--wrap), calc(100% - 24px));
    max-width: 1280px;
  }
  .dt-product-grid {
    grid-template-columns: 1fr;
  }
  .dt-page-title {
    font-size: 24px;
  }
}


/* =========================================================
   Light theme — shell/terminal pages full readability
   ========================================================= */
html[data-theme="light"] body.dt-body {
  --bg: #eef4ff !important;
  --bg-soft: #e4edff !important;
  --panel: #ffffff !important;
  --panel-2: #f7faff !important;
  --text: #475569 !important;
  --strong: #0f172a !important;
  --muted: #64748b !important;
  --soft: #94a3b8 !important;
  --line: rgba(15, 23, 42, 0.08) !important;
  --line-strong: rgba(15, 23, 42, 0.12) !important;
  --blue: #2563eb !important;
  --blue-2: #3b82f6 !important;
  --blue-ink: #1d4ed8 !important;
  --blue-soft: rgba(37, 99, 235, 0.1) !important;
  --green: #16a34a !important;
  --green-soft: rgba(22, 163, 74, 0.1) !important;
  --amber: #d97706 !important;
  --amber-soft: rgba(217, 119, 6, 0.1) !important;
  color: #475569 !important;
  background:
    radial-gradient(1100px 640px at 18% -8%, rgba(96, 165, 250, 0.34), transparent 58%),
    radial-gradient(900px 520px at 88% 0%, rgba(167, 139, 250, 0.12), transparent 52%),
    radial-gradient(800px 480px at 50% 110%, rgba(125, 211, 252, 0.16), transparent 55%),
    linear-gradient(180deg, #eef5ff 0%, #f3f7ff 38%, #f6f8fc 100%) !important;
  color-scheme: light;
}

html[data-theme="light"] body.dt-body::before {
  background:
    radial-gradient(980px 560px at 22% 8%, rgba(59, 130, 246, 0.18), transparent 62%),
    radial-gradient(720px 420px at 78% 12%, rgba(147, 197, 253, 0.16), transparent 58%),
    radial-gradient(640px 380px at 50% 100%, rgba(186, 230, 253, 0.14), transparent 55%),
    linear-gradient(to right, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.035) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 4.5rem 4.5rem, 4.5rem 4.5rem !important;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 18%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 18%, transparent 82%);
}

html[data-theme="light"] .dt-topbar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .dt-brand,
html[data-theme="light"] .dt-brand span {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-nav a {
  color: #64748b !important;
}

html[data-theme="light"] .dt-nav a:hover,
html[data-theme="light"] .dt-nav a.is-active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

html[data-theme="light"] .dt-topbar .top-search {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .dt-topbar .top-search input {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-topbar .theme-btn,
html[data-theme="light"] .dt-topbar .region-btn {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

html[data-theme="light"] .dt-toolbar,
html[data-theme="light"] .dt-decision {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
}

/* 带顶条的面板：只改边框/字色，背景由 glass 双层绘制 */
html[data-theme="light"] .dt-page-hero,
html[data-theme="light"] .dt-panel,
html[data-theme="light"] .dt-section-block,
html[data-theme="light"] .dt-list-shell {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
}

html[data-theme="light"] .dt-page-hero h1,
html[data-theme="light"] .dt-panel-head h2,
html[data-theme="light"] .score-title,
html[data-theme="light"] #gameName,
html[data-theme="light"] .dt-game-cell .name {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-page-hero p,
html[data-theme="light"] .dt-panel-head .sub,
html[data-theme="light"] .dt-matrix-hint,
html[data-theme="light"] .dt-field,
html[data-theme="light"] .score-desc,
html[data-theme="light"] .slug,
html[data-theme="light"] .dt-best-line,
html[data-theme="light"] .dt-foot {
  color: #64748b !important;
}

html[data-theme="light"] .dt-hero-stat {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .dt-hero-stat b {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-hero-stat span {
  color: #64748b !important;
}

html[data-theme="light"] .dt-field select,
html[data-theme="light"] .dt-field input {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .dt-table th {
  color: #64748b !important;
  background: rgba(15, 23, 42, 0.02) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .dt-table td {
  color: #334155 !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .dt-table td b,
html[data-theme="light"] .dt-table .num {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-table.is-matrix .sticky-rank,
html[data-theme="light"] .dt-table.is-matrix .sticky-game,
html[data-theme="light"] .dt-table.is-matrix .sticky-advice,
html[data-theme="light"] .dt-table.is-matrix thead th {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .dt-page-btn {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

html[data-theme="light"] .dt-page-btn.is-active,
html[data-theme="light"] .dt-page-btn:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] .dt-more-panel {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

html[data-theme="light"] .dt-more-trigger {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

html[data-theme="light"] .dt-btn-ghost {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

html[data-theme="light"] .dt-chip {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

html[data-theme="light"] .dt-chip.is-active {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] .dt-country-tab {
  color: #64748b !important;
}

html[data-theme="light"] .dt-country-tab.is-active {
  color: #0f172a !important;
  background: rgba(37, 99, 235, 0.06) !important;
}

html[data-theme="light"] .dt-country-tab .price {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #64748b !important;
}

html[data-theme="light"] .dt-country-tab.is-active .price {
  color: #15803d !important;
  background: rgba(22, 163, 74, 0.1) !important;
}

html[data-theme="light"] .dt-note {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

html[data-theme="light"] .dt-kv span {
  color: #64748b !important;
}

html[data-theme="light"] .dt-kv b {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-price-xl {
  color: #15803d !important;
}

html[data-theme="light"] .dt-game-art-card {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .dt-game-art-body .name,
html[data-theme="light"] .dt-game-art-body .name a {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-game-art-price .num {
  color: #15803d !important;
}

html[data-theme="light"] .dt-game-art-price .store {
  color: #64748b !important;
}

html[data-theme="light"] .dt-art-row {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .dt-art-row .title {
  color: #1e293b !important;
}

html[data-theme="light"] .art-guide,
html[data-theme="light"] .token-art-guide {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

html[data-theme="light"] .art-event,
html[data-theme="light"] .token-art-event {
  color: #be185d !important;
  background: rgba(236, 72, 153, 0.1) !important;
  border-color: rgba(236, 72, 153, 0.2) !important;
}

html[data-theme="light"] .art-code,
html[data-theme="light"] .token-art-code {
  color: #6d28d9 !important;
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
}

html[data-theme="light"] .art-avoid,
html[data-theme="light"] .token-art-avoid {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="light"] .art-update,
html[data-theme="light"] .token-art-update {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="light"] .dt-game-art-foot a {
  color: #2563eb !important;
}

html[data-theme="light"] .dt-art-related-item .t {
  color: #0f172a !important;
}

html[data-theme="light"] .dt-art-related-item .s,
html[data-theme="light"] .dt-art-related-item .meta,
html[data-theme="light"] .dt-art-empty {
  color: #64748b !important;
}

html[data-theme="light"] .dt-art-hook {
  color: #166534 !important;
  background: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.18) !important;
}

html[data-theme="light"] .dt-list-shell {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* solid buttons keep white text — light + dark + body.night */
html[data-theme="light"] .dt-btn-primary,
html[data-theme="light"] .dt-btn-buy,
html[data-theme="dark"] .dt-btn-primary,
html[data-theme="dark"] .dt-btn-buy,
html[data-theme="dark"] body.night .dt-btn-primary,
html[data-theme="dark"] body.night .dt-btn-buy,
body.night .dt-btn-primary,
body.night .dt-btn-buy,
html[data-theme="light"] .btn-primary,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] body.night .btn-primary,
body.night .btn-primary,
html[data-theme="light"] a.btn-primary,
html[data-theme="dark"] a.btn-primary,
html[data-theme="dark"] body.night a.btn-primary,
body.night a.btn-primary,
html[data-theme="light"] a.btn-glass,
html[data-theme="dark"] a.btn-glass,
body.night a.btn-glass,
html[data-theme="light"] .token-newlow,
html[data-theme="light"] .token-super,
html[data-theme="light"] .token-recom,
html[data-theme="light"] .token-consider,
html[data-theme="light"] .token-normal,
html[data-theme="light"] .dt-game-art-foot a.btn-go,
html[data-theme="dark"] .dt-game-art-foot a.btn-go,
body.night .dt-game-art-foot a.btn-go {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Deal Terminal fixed topbar nav (all pages) */
.gdh-topbar.is-deal-terminal .gdh-nav-links,
.gdh-nav-links.dt-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.gdh-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: .18s ease;
}
.gdh-nav-links a:hover,
.gdh-nav-links a.is-active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}
/* IMPORTANT: never style body.dt-body nav without data-theme — washes out light mode */
html[data-theme="light"] .gdh-nav-links a,
html[data-gde-theme="light"] .gdh-nav-links a {
  color: #64748b !important;
}
html[data-theme="light"] .gdh-nav-links a:hover,
html[data-theme="light"] .gdh-nav-links a.is-active,
html[data-gde-theme="light"] .gdh-nav-links a:hover,
html[data-gde-theme="light"] .gdh-nav-links a.is-active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.1) !important;
}
html[data-theme="dark"] .gdh-nav-links a,
html[data-gde-theme="dark"] .gdh-nav-links a {
  color: #b7c0d0 !important;
}
html[data-theme="dark"] .gdh-nav-links a:hover,
html[data-theme="dark"] .gdh-nav-links a.is-active,
html[data-gde-theme="dark"] .gdh-nav-links a:hover,
html[data-gde-theme="dark"] .gdh-nav-links a.is-active {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.18) !important;
}

/* Topbar/page same theme layer (list/free/demo) */
html[data-theme="light"] .gdh-topbar.game-deals-shared-topbar {
  background: rgba(255,255,255,.86) !important;
  border-bottom: 1px solid rgba(15,23,42,.07) !important;
}
html[data-theme="dark"] .gdh-topbar.game-deals-shared-topbar {
  background: rgba(9,12,18,.88) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
html[data-theme="light"] body.dt-body {
  background: #eef1f7 !important;
}
html[data-theme="dark"] body.dt-body {
  background: #090c12 !important;
}
