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

:root {
  --primary: #41940a;
  --primary2: #ff8d22;
  --bg: #eaf8ff;
  --text: #263247;
  --muted: #6f7a8e;
  --card: #ffffff;
  --section: rgba(186, 183, 228, 0.78);
  --border: rgba(255, 255, 255, 0.7);
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.10);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(1200px 520px at 50% 0%, #d7f2ff 0%, var(--bg) 60%, #e7f7ff 100%);
  color: var(--text);
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  background: linear-gradient(to bottom, #aee5ff 0, #eaf8ff 160px, #e7f7ff 520px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(174, 229, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.logo-dolo {
  color: #ffb63e;
  margin-right: 2px;
}

.logo-game {
  color: #22a7ff;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

/* Home page: CSS-only mobile nav toggle (index.html uses .nav-toggle + label) */
.nav-toggle {
  display: none;
}

.nav-item {
  text-decoration: none;
  color: #263247;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.nav-item-active {
  background: #ffffff;
  color: #22a7ff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.search-input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 160px;
  background: transparent;
}

/* 去掉输入框内部的聚焦蓝色方框（使用外层 search 的 focus-within 高亮即可） */
.search-input:focus,
.search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.search:focus-within {
  box-shadow: 0 0 0 3px rgba(34, 167, 255, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.search-btn {
  border: none;
  outline: none;
  background: transparent;
  color: #22a7ff;
  border-radius: 0;
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  z-index: 999;
  animation: overlayFadeIn 0.2s ease-out;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.search-overlay-inner {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: modalSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-overlay-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  padding: 12px 12px 12px 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin: 0;
  border: none;
}

.search-overlay-box:focus-within {
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.search-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  min-width: 0;
}

.search-overlay-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-overlay-go {
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary2) 0%, var(--primary) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 167, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-overlay-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 167, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  filter: brightness(1.05);
}

.search-overlay-go:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(34, 167, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: brightness(0.98);
}

.header-menu-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.main {
  max-width: 1280px;
  margin: 18px auto 48px;
  padding: 0 24px 48px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero {
  margin-top: 16px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Desktop home hero: force 3 cards in one row and stretch full width (avoid odd wrapping/centering) */
@media (min-width: 901px) {
  .hero-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    align-items: stretch;
  }

  .hero-cards>a.game-card-link {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-cards>a.game-card-link .game-card {
    width: 100%;
  }

  /* Dots are mainly useful for carousel; desktop shows all 3 cards */
  .hero-dots {
    display: none;
  }
}

.game-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card-media {
  flex-shrink: 0;
}

.game-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: #d0e7ff;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-title {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.3;
  /* 限制标题最多两行，保证卡片高度和按钮位置统一 */
  max-height: 2.6em;
  min-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.game-card-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  /* 统一三张卡片内 Download 与 Rating 的间距 */
  justify-content: flex-start;
  gap: 32px;
}

.btn-primary {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(35, 167, 255, 0.30);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(35, 167, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 10px rgba(35, 167, 255, 0.35);
}

.game-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.game-card:hover,
.pill-card:hover,
.popular-card:hover,
.game-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card:active,
.pill-card:active,
.popular-card:active,
.game-thumb:active,
.category-pill:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* 确保a标签包裹的卡片样式正常 */
a .game-card,
a .pill-card,
a .popular-card,
a .game-thumb,
a .game-square-item,
a .ranking-item,
a .ranking-top-card,
a .detail-similar-thumb {
  cursor: pointer;
}

.category-pill:hover {
  background: #f4fbff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.rating {
  font-size: 12px;
  color: var(--muted);
}

.stars {
  color: #ffb63e;
  margin-left: 4px;
}

.hero-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(38, 50, 71, 0.15);
}

.dot-active {
  width: 16px;
  background: var(--primary);
}

.section {
  margin-top: 30px;
  background: linear-gradient(180deg, var(--section) 0%, rgba(205, 238, 255, 0.55) 100%);
  border-radius: var(--radius-lg);
  padding: 18px 20px 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.section-header.small {
  margin-bottom: 10px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.section-view-all {
  border: none;
  outline: none;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.section-view-all:hover {
  background: #f4fbff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.section-view-all:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

/* allList 页面 Hot Game 区域每行展示 3 条数据 */
#hotGameList.recommended-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill-card {
  background: var(--card);
  border-radius: 999px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pill-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fcd34d;
  /* 防止在 flex 布局中被压缩，保持图标宽度不变 */
  flex-shrink: 0;
}

/* Hot Game 区域沿用首页 Recommended 的 pill-card 默认样式，无额外覆盖 */

.pill-content h3 {
  font-size: 14px;
  margin-bottom: 2px;
}

.pill-content p {
  font-size: 12px;
  color: var(--muted);
}

.categories-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  border: none;
  padding: 12px 26px;
  font-size: 16px;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-decoration: none;
}

.category-pill-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.category-pill-text {
  font-weight: 600;
  white-space: nowrap;
}

/* allList/hot50/new/popular 页面分类筛选的选中态 */
.category-pill-active {
  background: linear-gradient(135deg, rgba(34, 214, 255, 0.22), rgba(34, 167, 255, 0.16));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  outline: 2px solid rgba(34, 167, 255, 0.35);
}

.section-two-column {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  /* 两列等高 */
  /* 为避免数据异步加载时整体高度突增，引起 CLS，预先预留高度 */
  min-height: 360px;
}

.ranking,
.popular {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ranking-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  flex: 1;
}

.ranking-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.ranking-top-card {
  height: 70px;
  border-radius: 12px;
  background: #dbeafe;
}

.ranking-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 30px 1fr 46px;
  align-items: center;
  font-size: 13px;
  padding: 6px 4px;
  text-decoration: none;
  color: inherit;
}

.ranking-number {
  font-weight: 800;
  color: #ffb63e;
}

.ranking-rate {
  justify-self: end;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  flex: 1;
  /* 让 Popular 区域撑满与 RanKing 同高 */
  align-content: start;
}

.popular-card {
  height: 150px;
  /* 提高 Popular Games 图片高度 */
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.all-games-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.game-thumb {
  padding-top: 100%;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* =========================
   Skeleton loading（移动端首页）
========================= */
.skeleton-block,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #e5f0ff 0%, #f4f8ff 40%, #e5f0ff 80%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Hero 区骨架卡片 */
.hero-skeleton-card {
  height: 130px;
  border-radius: var(--radius-xl);
}

/* 推荐列表骨架 */
.recommended-skeleton-card {
  border-radius: 999px;
  height: 90px;
}

/* RanKing 列表骨架 */
.ranking-skeleton-line {
  height: 40px;
}

/* Popular 卡片骨架 */
.popular-skeleton-card {
  height: 150px;
  border-radius: 20px;
}

/* 分类骨架 */
.category-skeleton-pill {
  height: 70px;
  border-radius: 999px;
}

/* All Games 缩略图骨架 */
.allgames-skeleton-thumb {
  padding-top: 100%;
  border-radius: 20px;
}

/* 只在移动端展示骨架（桌面端不需要） */
@media (min-width: 901px) {
  .skeleton-only {
    display: none !important;
  }
}

/* focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(34, 167, 255, 0.35);
  outline-offset: 2px;
}

.games-grid-large {
  /* 改为规则网格布局，避免瀑布流效果 */
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

/* Search page */
.search-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 2px 14px;
}

.search-empty {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--muted);
  text-align: center;
}

.game-square-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, #e6f5ff 0, #f5fbff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  break-inside: avoid;
  margin-bottom: 16px;
  width: 100%;
}

.game-square-large {
  width: 100%;
  padding-top: 100%;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-square-title {
  font-size: 13px;
  font-weight: 600;
  color: #263247;
  text-align: center;
  max-width: 100%;
  padding: 0 6px 4px;
  line-height: 1.3;
  height: 2.6em;
  /* 最多两行高度 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-square-item:hover .game-square-large {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.game-square-item:active .game-square-large {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.game-square-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.game-square-item:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.16);
}

.footer {
  background: #aee5ff;
  padding: 30px 20px 18px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #263247;
}

.footer-copy {
  font-size: 11px;
  color: #6f7a8e;
}

/* =========================
   Detail page
========================= */
.detail-hero {
  margin-top: 16px;
}

.detail-hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.detail-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.detail-app-icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: #d0e7ff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.detail-app-meta {
  min-width: 0;
}

.detail-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-sub {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: #6f7a8e;
  font-size: 13px;
}

.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-rating span {
  color: #263247;
  font-weight: 800;
}

.detail-category {
  background: #fef3c7;
  color: #7c2d12;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.detail-hero-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.detail-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 70px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.detail-download-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.detail-download-btn:active {
  transform: translateY(0) scale(0.99);
}

.detail-download-btn.large {
  width: 320px;
  height: 76px;
}

.detail-steps {
  font-size: 13px;
  color: #263247;
}

.detail-steps-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.detail-steps-list {
  margin: 0;
  padding-left: 18px;
  color: #6f7a8e;
  line-height: 1.5;
}

.ad-placeholder {
  margin-top: 14px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(38, 50, 71, 0.45);
}

.detail-info-grid {
  display: grid;
  /* 固定 4 列：让该区域在桌面端呈现 3 行（4+4+3） */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 16px;
  column-gap: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f5fbff 60%, #ecf8ff 100%);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.detail-info-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.detail-info-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.2;
}

.detail-info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.detail-store-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-store-btn {
  background: var(--card);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.detail-store-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.25);
}

.detail-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffffff, #f4fbff);
}

.detail-store-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--shadow-sm);
}

.detail-store-main {
  min-width: 0;
}

.detail-store-name {
  font-weight: 900;
  font-size: 18px;
}

.detail-store-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.detail-store-cta {
  flex-shrink: 0;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-store-btn-android .detail-store-cta {
  background: #16a34a;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
}

.detail-store-btn-ios .detail-store-cta {
  background: linear-gradient(135deg, #6366f1, #22a7ff);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
}

.detail-store-btn:hover .detail-store-cta {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.26);
}

.detail-store-btn:active .detail-store-cta {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}

.detail-store-btn[aria-disabled="true"] .detail-store-cta {
  background: #9ca3af;
  box-shadow: none;
}

.detail-download-section {
  margin-top: 24px;
}

.detail-download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-description {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  color: #263247;
  line-height: 1.7;
  font-size: 14px;
  white-space: pre-wrap;
}

.detail-split {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-split-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f5fbff 60%, #ecf8ff 100%);
  border-radius: 18px;
  padding: 16px 20px 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.detail-split-title {
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
  font-size: 13px;
}

.detail-list li {
  margin-bottom: 6px;
  color: var(--muted);
}

.detail-list li::marker {
  color: var(--primary);
}

.detail-screenshots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

.detail-screenshots-track {
  position: relative;
  overflow: hidden;
  flex: 1;
  max-width: calc(3 * 360px + 2 * 16px);
  /* 一次展示 3 张，包含间距 */
  margin: 0 auto;
}

.detail-screenshots-track-inner {
  display: flex;
  transition: transform 0.35s ease;
}

.detail-screenshot-item {
  flex: 0 0 360px;
  height: 210px;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  margin-right: 16px;
}

.detail-screenshot-item:last-child {
  margin-right: 0;
}

.detail-screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-shot-nav {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  color: var(--text);
  font-size: 18px;
}

.detail-shot-nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

/* Screenshots 区域去掉蓝色块背景，仅保留文字和内容 */
.section-screenshots {
  background: transparent;
  box-shadow: none;
  border: none;
  padding-left: 0;
  padding-right: 0;
}

/* Pros & Cons 区域同样使用透明背景，仅保留内部卡片 */
.section-pros-cons {
  background: transparent;
  box-shadow: none;
  border: none;
}

.detail-review-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.detail-review-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.detail-stars {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 18px;
  color: #ffb63e;
  user-select: none;
}

.detail-star {
  cursor: pointer;
  line-height: 1;
}

.detail-review-form {
  display: grid;
  gap: 10px;
}

.detail-input,
.detail-textarea {
  width: 100%;
  border: 1px solid rgba(38, 50, 71, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
}

.detail-textarea {
  min-height: 90px;
  resize: vertical;
}

.detail-submit {
  border: none;
  border-radius: 12px;
  background: #22a7ff;
  color: #ffffff;
  font-weight: 900;
  padding: 10px 14px;
  cursor: pointer;
  width: 120px;
  justify-self: start;
  box-shadow: 0 8px 16px rgba(34, 167, 255, 0.28);
}

.detail-review-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.detail-review-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.detail-review-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #6f7a8e;
  margin-bottom: 6px;
}

.detail-review-item-name {
  font-weight: 900;
  color: #263247;
}

.detail-review-item-text {
  font-size: 13px;
  color: #263247;
  line-height: 1.6;
}

.detail-similar-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.detail-similar-thumb {
  padding-top: 100%;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background-size: cover;
  background-position: center;
}

.detail-similar-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

@media (max-width: 900px) {
  .detail-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero-right {
    justify-content: space-between;
  }

  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
    column-gap: 16px;
    padding: 16px 18px;
  }

  .detail-info-label {
    font-size: 10px;
  }

  .detail-info-value {
    font-size: 13px;
  }

  .detail-review-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-similar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-store-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .detail-store-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-similar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-download-btn,
  .detail-download-btn.large {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    gap: 10px;
    position: relative;
  }

  .nav {
    display: none;
  }

  /* When toggled, show nav dropdown without JS (only works on pages that include .nav-toggle) */
  .nav-toggle:checked~.nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 10px 20px 14px;
    background: #aee5ff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 10;
  }

  .search {
    flex: 1;
  }

  .header-menu-btn {
    display: block;
  }

  .hero-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hot Game：移动端保持 2 列展示 */
  /* Hot Game：跟随 recommended-grid 的规则即可 */

  .section-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .all-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .games-grid-large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding-inline: 14px;
  }

  .main {
    padding-inline: 14px;
  }

  .search-input {
    width: 120px;
  }

  .game-card {
    flex-direction: row;
    /* 移动端卡片宽高固定，保证轮播每一页尺寸一致 */
    width: 100%;
    max-width: 360px;
    height: 180px;
    margin-inline: auto;
    overflow: hidden;
  }

  /* Recommended Games 列表：移动端固定每一行卡片尺寸 */
  .pill-card {
    width: 100%;
    max-width: 360px;
    height: 90px;
    margin-inline: auto;
    overflow: hidden;
  }

  /* RanKing 区域每一条数据行固定高度，保证评分圆角块纵向对齐 */
  .ranking-item {
    height: 40px;
    overflow: hidden;
  }

  .recommended-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Hot Game：手机端仍保持 2 列（避免一行只有一条） */
  #hotGameList.recommended-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .all-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .games-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* =========================
     移动端首页：为各区块预留高度，进一步减少 CLS
     仅在首页生效（通过 body[data-page="index"] 限制）
  ========================= */
  body[data-page="index"] .hero {
    min-height: 180px;
  }

  /* 第一个 .section：Recommended Games */
  body[data-page="index"] .main>.section:nth-of-type(1) {
    min-height: 320px;
  }

  /* 第二个 .section：Ranking + Popular */
  body[data-page="index"] .main>.section.section-two-column {
    min-height: 420px;
  }

  /* 第三个 .section：Game Categories */
  body[data-page="index"] .main>.section:nth-of-type(3) {
    min-height: 260px;
  }

  /* 第四个 .section：All Games（首屏只会露出一部分） */
  body[data-page="index"] .main>.section:nth-of-type(4) {
    min-height: 480px;
  }

  /* 移动端搜索：只显示一个按钮，点击后用全屏浮层输入 */
  .search {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    border: none;
    width: auto;
    height: auto;
    justify-content: flex-end;
  }

  .search-input {
    display: none;
  }

  .search-btn {
    background: #22a7ff;
    color: #ffffff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    box-shadow: 0 6px 16px rgba(35, 167, 255, 0.45);
  }
}

/* New detail page sections styling */
.detail-info-block {
  background: linear-gradient(145deg, #ffffff 0%, #f5fbff 60%, #ecf8ff 100%);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.detail-subtitle {
  font-weight: 900;
  margin-bottom: 14px;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}

.detail-verified-review,
.detail-professional-review {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
}

.detail-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.detail-review-author,
.detail-review-source {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.detail-verified-badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-review-rating {
  color: #ffb63e;
  font-size: 14px;
}

.detail-review-comment,
.detail-review-summary {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
  font-size: 13px;
}

.detail-review-date {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}

.detail-review-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.detail-review-link:hover {
  text-decoration: underline;
}

.detail-tech-item {
  margin-bottom: 16px;
}

.detail-tech-item:last-child {
  margin-bottom: 0;
}

.detail-cert-badge {
  display: inline-block;
  background: linear-gradient(135deg, #22a7ff 0%, #22d6ff 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.detail-info-block a {
  color: var(--primary);
  text-decoration: none;
}

.detail-info-block a:hover {
  text-decoration: underline;
}

.detail-info-block p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text);
}

.detail-info-block p:last-child {
  margin-bottom: 0;
}

.detail-info-block strong {
  color: var(--text);
  font-weight: 700;
}

/* Mobile responsive for new sections */
@media (max-width: 600px) {
  .detail-info-block {
    padding: 16px;
  }

  .detail-subtitle {
    font-size: 16px;
  }

  .detail-review-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Privacy, Ads & Support Section
========================= */
.section-privacy-support {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.section-privacy-support .section-header {
  background: linear-gradient(180deg, var(--section) 0%, rgba(205, 238, 255, 0.55) 100%);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.privacy-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.privacy-support-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.privacy-support-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.privacy-support-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #263247;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.privacy-support-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-support-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-support-label {
  font-weight: 700;
  color: #263247;
  font-size: 14px;
  margin-bottom: 4px;
}

.privacy-support-value {
  color: #6f7a8e;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-support-list li {
  color: #6f7a8e;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}

.privacy-support-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #22a7ff;
  font-weight: 700;
}

.privacy-support-link {
  color: #22a7ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.privacy-support-link:hover {
  color: #1e90e5;
  text-decoration: underline;
}

.privacy-support-gdpr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22a7ff 0%, #22d6ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(34, 167, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-top: 4px;
  align-self: flex-start;
}

.privacy-support-gdpr-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(34, 167, 255, 0.4);
  filter: brightness(1.05);
}

.privacy-support-gdpr-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(34, 167, 255, 0.3);
}

.gdpr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

/* Mobile responsive for Privacy, Ads & Support */
@media (max-width: 900px) {
  .privacy-support-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .privacy-support-card {
    padding: 20px;
  }

  .privacy-support-card-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
}

/* =========================
   Brand Credentials & Authority Section
========================= */
.section-brand-credentials {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.section-brand-credentials .section-header {
  background: linear-gradient(180deg, var(--section) 0%, rgba(205, 238, 255, 0.55) 100%);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand-credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.brand-credentials-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-credentials-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.brand-credentials-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #263247;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.brand-credentials-card-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-credentials-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-credentials-label {
  font-weight: 700;
  color: #263247;
  font-size: 14px;
  margin-bottom: 4px;
}

.brand-credentials-value {
  color: #6f7a8e;
  font-size: 14px;
  line-height: 1.5;
}

.brand-credentials-value-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-credentials-value-with-badge>span:first-child {
  color: #6f7a8e;
  font-size: 14px;
  line-height: 1.5;
}

.brand-credentials-link {
  color: #22a7ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  display: inline-block;
}

.brand-credentials-link:hover {
  color: #1e90e5;
  text-decoration: underline;
}

.brand-verified-badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-credentials-list li {
  color: #263247;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.brand-credentials-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #22a7ff;
  border-radius: 50%;
}

.brand-credentials-list li strong {
  font-weight: 700;
  color: #263247;
}

/* Mobile responsive for Brand Credentials */
@media (max-width: 900px) {
  .brand-credentials-card {
    padding: 20px;
  }

  .brand-credentials-card-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .brand-credentials-grid {
    gap: 14px;
  }
}

/* =========================
   Evidence & Quick Compare (Detail)
========================= */
.detail-evidence {
  margin-top: 14px;
}

.detail-evidence-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 251, 255, 0.96) 60%, rgba(236, 248, 255, 0.96) 100%);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.detail-evidence-left {
  min-width: 0;
}

.detail-evidence-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.detail-evidence-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.detail-evidence-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 167, 255, 0.10);
  color: #1e4a6e;
  border: 1px solid rgba(34, 167, 255, 0.18);
}

.detail-chip[data-type="store"] {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.18);
  color: #065f46;
}

.detail-chip[data-type="official"] {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.18);
  color: #3730a3;
}

.detail-chip[data-type="media"] {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.22);
  color: #7c2d12;
}

.detail-evidence-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.detail-evidence-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-metric {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 120px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.detail-metric-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-metric-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.detail-evidence-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-evidence-btn {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.detail-evidence-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.detail-evidence-btn.is-active {
  border-color: rgba(34, 167, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 167, 255, 0.18), 0 10px 22px rgba(15, 23, 42, 0.12);
}

/* Filter behavior (static): hide blocks by type */
html[data-evidence-filter="store"] .evidence-hide-if-not-store {
  display: none !important;
}

html[data-evidence-filter="official"] .evidence-hide-if-not-official {
  display: none !important;
}

html[data-evidence-filter="media"] .evidence-hide-if-not-media {
  display: none !important;
}

.detail-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* FAQ */
.detail-faq-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.detail-faq-item+.detail-faq-item {
  margin-top: 10px;
}

.detail-faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}

.detail-faq-item summary::-webkit-details-marker {
  display: none;
}

.detail-faq-item summary::after {
  content: "▾";
  float: right;
  color: rgba(38, 50, 71, 0.55);
  transition: transform 0.15s ease;
}

.detail-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.detail-faq-answer {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 900px) {
  .detail-evidence-card {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-evidence-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .detail-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}