/* ========================================
   AI文字游戏指令资源站 - V0.2 视觉改版
   Steam / Epic / Netflix 风格
   深色商店感 · 大卡片 · 电影海报感
   ======================================== */

/* === CSS 变量 === */
:root {
  /* 主色调 - 保持现有品牌色 */
  --primary: #7C5CFF;
  --primary-light: #9B7AFF;
  --primary-dark: #6344E0;
  --secondary: #00E5FF;
  --secondary-light: #33EBFF;
  
  /* 辅助色 - Steam/Epic 风格 */
  --accent-success: #10B981;
  --accent-warning: #FFB020;
  --accent-danger: #EF4444;
  
  /* 背景色 - 深色商店感 */
  --bg-primary: #0A0E17;
  --bg-secondary: #111827;
  --bg-tertiary: #1A2235;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #7C5CFF 0%, #9B7AFF 50%, #00E5FF 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 14, 23, 0) 0%, rgba(10, 14, 23, 0.8) 50%, rgba(10, 14, 23, 1) 100%);
  --gradient-card: linear-gradient(180deg, rgba(124, 92, 255, 0) 0%, rgba(124, 92, 255, 0.1) 100%);
  --gradient-btn: linear-gradient(135deg, #7C5CFF 0%, #6344E0 100%);
  
  /* 文字色 */
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --text-accent: #7C5CFF;
  
  /* 边框 */
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(124, 92, 255, 0.3);
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(124, 92, 255, 0.3);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* 过渡 */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* 布局 - V0.4 压缩 */
  --max-width: 1200px;
  --section-gap: 32px;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

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

::selection {
  background: var(--primary);
  color: #fff;
}

/* === 滚动条美化 (Webkit) === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.5);
}

/* Firefox 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.3) var(--bg-secondary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === 动画关键帧 === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.3rem;
  }
}

/* ========================================
   Hero 区 - V0.2 升级
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 32px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* 全宽大图背景 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.jpg') center / cover no-repeat;
  opacity: 0.15;
  filter: blur(8px);
}

/* 暗色渐变遮罩 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.7) 0%,
    rgba(10, 14, 23, 0.85) 50%,
    rgba(10, 14, 23, 1) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

/* 主标题超大 - 3rem+ */
.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Gradient text effect */
.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 按钮大而醒目 */
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-explore,
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 42px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-explore:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(124, 92, 255, 0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 42px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124, 92, 255, 0.1);
}

/* ========================================
   本周热门大卡片 - 横向滚动
   ======================================== */
.hot-games {
  padding: var(--section-gap) 0;
  background: var(--bg-secondary);
}

.hot-games .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.hot-games-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hot-games-scroll::-webkit-scrollbar {
  display: none;
}

/* 大卡片 - 16:9 封面背景 */
.hot-card {
  flex: 0 0 480px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
  scroll-snap-align: start;
}

.hot-card:hover {
  transform: scale(1.05);
}

.hot-card-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.hot-card:hover .hot-card-cover {
  transform: scale(1.1);
}

/* 上方渐变遮罩 */
.hot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.hot-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.hot-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.hot-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   热门排行榜
   ======================================== */
.ranking {
  padding: var(--section-gap) 0;
}

.ranking .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.ranking-list {
  max-width: 800px;
  margin: 0 auto;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}

.ranking-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}

/* 排名大号数字 - 紫色 */
.ranking-no {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  min-width: 60px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(124, 92, 255, 0.3);
}

/* 前3名特殊颜色 */
.ranking-item:nth-child(1) .ranking-no {
  color: #FFD700; /* 金色 */
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.ranking-item:nth-child(2) .ranking-no {
  color: #C0C0C0; /* 银色 */
  text-shadow: 0 2px 10px rgba(192, 192, 192, 0.5);
}

.ranking-item:nth-child(3) .ranking-no {
  color: #CD7F32; /* 铜色 */
  text-shadow: 0 2px 10px rgba(205, 127, 50, 0.5);
}

.ranking-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ranking-heat {
  font-size: 0.9rem;
  color: var(--accent-warning);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
   玩家评价轮播
   ======================================== */
.reviews {
  padding: var(--section-gap) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.reviews .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.reviews-carousel {
  display: flex;
  gap: 24px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 卡片式 - 白色/浅色背景 */
.review-card {
  flex: 0 0 380px;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #111827;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.review-card:hover {
  transform: translateY(-8px);
}

/* 星级 */
.review-stars {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #FBBF24;
}

/* 引用符号大号装饰 */
.review-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.review-text::before {
  content: '"';
  position: absolute;
  left: -10px;
  top: -20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.review-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* ========================================
   低电量人生·原创专区
   ======================================== */
.original-zone {
  padding: var(--section-gap) 0;
  background: linear-gradient(135deg, #1A1020 0%, #2A1525 50%, #1A1020 100%);
  position: relative;
  overflow: hidden;
}

/* 特殊背景 - 暖色调渐变 */
.original-zone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 176, 32, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(124, 92, 255, 0.05) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.original-zone .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* 渐变边框 */
.original-zone-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.original-zone-inner::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-warning) 50%, var(--primary) 100%);
  z-index: -1;
  animation: shimmer 3s ease infinite;
  background-size: 200% 200%;
}

/* ========================================
   游戏卡片网格区 - V0.4 优化
   ======================================== */
.games-grid {
  padding: 32px 0;
}

.games-grid .section-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
}

.games-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 1200px) {
  .games-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .games-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .games-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* 游戏卡片 - 更大 */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  max-height: 320px; /* V0.5 优化 - 降低卡片高度 */
  background: rgba(20, 22, 38, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

/* Hover 效果 - 卡片上浮 + 阴影 */
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
  border-color: rgba(139, 92, 246, 0.3);
}

/* 整个卡片可点击 - V0.4 */
.game-card .card-btn {
  display: none; /* 默认隐藏按钮 */
}

.game-card:hover .card-btn {
  display: inline-flex; /* 悬停时显示 */
}

/* 封面 3:4 - Steam 风格 V0.4 */
.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* V0.5 优化 - 16:9 封面 */
  overflow: hidden;
  background: var(--bg-tertiary);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .card-cover img {
  transform: scale(1.05);
}

/* 状态标签 */
.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.status-trial {
  background: rgba(124, 92, 255, 0.9);
  color: #fff;
}

.status-full {
  background: rgba(0, 229, 255, 0.9);
  color: #000;
}

.status-coming {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

/* 热度标签 */
.card-heat {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.2);
  color: var(--accent-warning);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* 信息层 - V0.4 压缩 */
.card-info {
  padding: 14px 16px 16px;
  background: rgba(20, 22, 38, 0.9);
}

.card-title {
  font-size: 16px; /* V0.5 优化 - 增大标题 */
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 标签 */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
}

/* V0.4 小字体压缩 */
.card-mini-meta,
.card-playcount {
  font-size: 12px;
}

/* 统计信息 */
.card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 按钮 - 立即体验 */
.card-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.3);
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.5);
  color: #fff;
}

/* ========================================
   详情页
   ======================================== */
.detail-hero {
  padding: 100px 24px 60px;
  background: var(--bg-secondary);
}

.detail-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* [DEPRECATED] 旧版详情页左栏封面样式，已被V0.6 Hero覆盖，仅保留作为兜底 */
.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-lg);
}

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

/* 右侧信息 */
.detail-info {
  padding: 20px 0;
}

.detail-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.detail-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* 评分、体验人数、更新次数 */
.detail-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.detail-meta-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* 按钮超大 */
.detail-btn {
  display: inline-flex;
  align-items: center;
  padding: 18px 48px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.detail-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(124, 92, 255, 0.5);
  color: #fff;
}

/* 内容区 */
.detail-section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail-content p {
  margin-bottom: 16px;
}

/* 版本卡片 */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.version-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.version-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.version-label {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.version-price {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 28px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.version-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.version-features li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.version-features li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.btn-version-action {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  background: var(--gradient-btn);
  color: #fff;
}

.btn-version-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.4);
  color: #fff;
}

/* ========================================
   开发日志
   ======================================== */
.changelog {
  padding: var(--section-gap) 0;
  background: var(--bg-secondary);
}

.changelog .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.changelog-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.changelog-version {
  padding-bottom: 40px;
  border-left: 3px solid var(--border);
  padding-left: 32px;
  position: relative;
  margin-bottom: 32px;
}

.changelog-version::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-secondary);
}

.changelog-version h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.changelog-items {
  list-style: none;
}

.changelog-items li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.changelog-items li::before {
  content: '• ';
  color: var(--primary);
  font-weight: 700;
}

/* ========================================
   分类 + 搜索
   ======================================== */
.filter-section {
  padding: 40px 0 20px;
  background: var(--bg-primary);
  position: sticky;
  top: 64px;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.category-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124, 92, 255, 0.08);
}

.category-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.3);
}

.search-wrapper {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 60px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-tertiary);
  font-size: 1.2rem;
}

/* ========================================
   Toast 提示
   ======================================== */
#toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 */
@media (max-width: 1024px) {
  :root {
    --section-gap: 60px;
  }
  
  .detail-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* [DEPRECATED] 已被V0.6 Hero覆盖 */
  .detail-cover {
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
  }
  
  .hot-card {
    flex: 0 0 400px;
    height: 280px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  :root {
    --section-gap: 32px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 32px 16px 32px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-explore,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
  }
  
  .hot-card {
    flex: 0 0 320px;
    height: 240px;
  }
  
  .hot-card-title {
    font-size: 1.2rem;
  }
  
  .review-card {
    flex: 0 0 320px;
    padding: 24px;
  }
  
  .games-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  
  .game-card:hover {
    transform: translateY(-8px);
  }
  
  .ranking-item {
    gap: 12px;
    padding: 12px 16px;
  }
  
  .ranking-no {
    font-size: 2rem;
    min-width: 48px;
  }
  
  .ranking-title {
    font-size: 1rem;
  }
  
@media (max-width: 768px) {
  /* ... previous media query content ... */
  
  .detail-hero {
    padding: 32px 16px 40px;
  }
  
  .detail-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
  }
  
  .version-grid {
    grid-template-columns: 1fr;
  }
  
  .original-zone-inner {
    padding: 24px 16px;
  }
}

/* 小手机 */
@media (max-width: 430px) {
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .hot-card {
    flex: 0 0 280px;
    height: 200px;
  }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  .navbar,
  .hero-actions,
  .filter-section,
  .footer {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
}

/* ========================================
   无障碍 - 减少动画
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   V0.7 轮播重构 - 左文右图
   ======================================== */
.featured-section {
  height: 420px;
  max-width: 1200px;
  margin: 88px auto 32px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.featured-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: stretch;
}

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

.carousel-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
}

.carousel-bg::before {
  content: '';
  position: absolute;
  left: -100px;
  top: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(to right, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.6) 50%, transparent 100%);
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  width: 50%;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.carousel-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.carousel-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 400px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, #7C5CFF, #6344E0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,92,255,0.4);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
}

.carousel-dot.active {
  background: white;
}

/* ========================================
   V0.3 新增样式 - 分类标签
   ======================================== */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-tab {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-tab:hover {
  background: rgba(255,255,255,0.1);
}

.category-tab.active {
  background: #7C5CFF;
  color: white;
  border-color: #7C5CFF;
}

/* ========================================
   V0.3 新增样式 - 游戏卡播放量 & 按钮
   ======================================== */
.card-play-count {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   V0.3 新增样式 - 广告卡片
   ======================================== */
.ad-card {
  /* Same size as game card - inherits from grid */
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #666;
}

/* ========================================
   V0.3 新增样式 - 截图画廊（详情页）
   ======================================== */
.screenshot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.screenshot-item {
  flex-shrink: 0;
  width: 300px;
  height: 169px; /* 16:9 */
  border-radius: 8px;
  overflow: hidden;
}

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

/* ========================================
   V0.3 新增样式 - 播放量显示（详情页）
   ======================================== */
.play-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7C5CFF;
  font-weight: 600;
}

/* ========================================
   V0.4 新增样式 - 通用段落压缩
   ======================================== */
section {
  padding: 32px 0;
}

/* ========================================
   V0.5 新增样式 - 状态徽章 (热门/即将上线/原创精选/新作)
   ======================================== */
.card-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.card-status-badge.hot {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.card-status-badge.coming {
  background: rgba(255, 176, 32, 0.9);
  color: #000;
}

.card-status-badge.original {
  background: rgba(124, 92, 255, 0.9);
  color: #fff;
}

.card-status-badge.new {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

/* ========================================
   V0.5 新增样式 - 类型标签 (紫色描边胶囊)
   ======================================== */
.card-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-type-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #9B7AFF;
  background: rgba(139, 92, 246, 0.1);
}

/* ========================================
   V0.5 新增样式 - 玩家人数 (灰色小字)
   ======================================== */
.card-player-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   V0.5 更新 - 广告卡片一致高度
   ======================================== */
.ad-card {
  max-height: 320px; /* V0.5 优化 - 与其他卡片一致 */
}

/* ========================================
   V0.5 新增样式 - 原创徽章 (右上角)
   ======================================== */
.card-original-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 3;
  backdrop-filter: blur(8px);
  background: rgba(124, 92, 255, 0.9);
  color: #fff;
}

/* ========================================
   V0.4 新增样式 - 分类标签粘性定位
   ======================================== */
.category-tabs-section {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: var(--bg-primary);
  backdrop-filter: blur(12px);
}

/* ========================================
   V0.4 新增样式 - 原创专区小模块
   ======================================== */
.original-section {
  padding: 32px 0;
}

.original-games {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

/* ========================================
   V0.4 新增样式 - 轮播图高度优化
   ======================================== */
.featured-section {
  height: 420px;
  max-width: 1200px;
  margin: 88px auto 32px;
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .featured-section {
    height: 260px;
    margin-top: 72px;
  }
  .carousel-bg {
    width: 70%;
  }
  .carousel-content {
    width: 55%;
    padding: 24px 20px;
  }
  .carousel-title {
    font-size: 1.25rem;
  }
  .carousel-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .carousel-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

/* ========================================
   详情页 V0.6 — Hero 重构
   ======================================== */

/* 统一页面宽度变量 */
:root {
  --page-max-width: 1120px;
  --page-padding: 24px;
}

/* — 1. Hero Section — */
.detail-hero-section {
  position: relative !important;
  margin-top: 64px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}

/* 背景垫图 - 模糊封面 */
.detail-hero-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(280px, 36vw, 420px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(24px) brightness(0.35);
  transform: scale(1.15);
  z-index: 1;
}

/* 黑色半透明遮罩 */
.detail-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(280px, 36vw, 420px);
  background: rgba(10, 14, 23, 0.55);
  z-index: 2;
}

/* Hero 内容区 - 普通流式布局，不定位 */
.detail-hero-content {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
}

.detail-hero-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 40px var(--page-padding) 32px;
}

.detail-title {
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 10px !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.detail-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.82);
  max-width: 680px;
  margin-bottom: 8px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.25);
  border: 1px solid rgba(124, 92, 246, 0.5);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 600;
}

.original-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.9);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.7);
}

.detail-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.3);
  border: 1px solid rgba(124, 92, 246, 0.5);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-date {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.55);
}

.detail-heat {
  font-size: 0.8rem;
}

.detail-summary {
  font-size: 14px;
  color: rgba(226, 232, 240, 0.6);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-section,
.detail-content,
.detail-main {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.detail-hero {
  padding: 0;
  background: transparent;
}

.detail-hero-container {
  display: none;
}

.detail-info {
  display: none;
}

/* — 2. Version Selection — */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.version-card {
  border-radius: 14px;
  padding: 24px;
  background: rgba(20, 22, 38, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.version-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.version-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* — 3. Trial Prompt — */
.trial-prompt-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.trial-prompt {
  background: rgba(15, 17, 28, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 20px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.trial-prompt.expanded {
  max-height: 2000px;
  overflow: auto;
}

/* — 4. Screenshot Gallery — */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

/* — 5. Purchase Info — */
.purchase-info {
  background: rgba(20, 22, 38, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  padding: 32px;
}

.purchase-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.purchase-method {
  background: rgba(15, 17, 28, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.purchase-method .btn-copy-text {
  margin-top: 16px;
  width: 100%;
}

.purchase-method h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.purchase-method p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* — 6. Buttons — */
.btn-copy,
.btn-copy-prompt,
.btn-copy-text,
.btn-version-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.3);
}

.btn-copy:hover,
.btn-copy-prompt:hover,
.btn-copy-text:hover,
.btn-version-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5);
  color: #fff;
}

.btn-copy.copy-success,
.btn-copy-prompt.copy-success,
.btn-copy-text.copy-success {
  background: rgba(16, 185, 129, 0.9);
}

.btn-expand {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.btn-expand:hover {
  background: rgba(139, 92, 246, 0.3);
}

.btn-scroll-to-buy {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scroll-to-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.5);
  color: #fff;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  transform: translateY(-2px);
}

/* — 7. Intro Grid — */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.intro-item {
  background: rgba(20, 22, 38, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.intro-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.intro-item p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.supported-models {
  margin-top: 32px;
  background: rgba(20, 22, 38, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 24px;
}

.supported-models h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.supported-models p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.usage-tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(124, 92, 246, 0.1);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.85rem;
}

.btn-copy-prompt {
  margin-top: 16px;
  font-size: 0.95rem;
}

/* — 9. Toast — */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(8, 12, 24, 0.95);
  color: #e2e8f0;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  z-index: 9999;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}

/* — 10. Mobile — */
@media (max-width: 768px) {
  .detail-hero-section {
    height: auto !important;
    min-height: 220px !important;
    margin-top: 56px;
  }
  .detail-hero-backdrop {
    filter: blur(16px) brightness(0.3) scale(1.12);
  }
  .detail-hero-inner,
  .detail-section,
  .detail-content,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .detail-title {
    font-size: 26px;
  }
  .detail-subtitle {
    font-size: 13px;
  }
  .detail-summary {
    display: none;
  }
  .detail-meta {
    gap: 10px;
    font-size: 12px;
  }
  .version-grid {
    grid-template-columns: 1fr;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .purchase-methods {
    grid-template-columns: 1fr;
  }
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-item img {
    height: 120px;
  }
  .detail-section {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .detail-hero-section {
    height: auto !important;
    min-height: 180px !important;
  }
  .detail-title {
    font-size: 22px !important;
  }
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
  .featured-section {
    height: 220px;
    margin-top: 64px;
    border-radius: 12px;
  }
  .carousel-content {
    width: 60%;
    padding: 16px 14px;
  }
  .carousel-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }
  .carousel-subtitle {
    display: none;
  }
  .carousel-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .carousel-bg {
    width: 65%;
  }
}

/* — V0.8 Override — Hero auto height, no clip */
.detail-hero-section {
  position: relative !important;
  height: auto !important;
  min-height: 280px !important;
  max-height: none !important;
  overflow: visible !important;
}
/* — V0.8 Final Override — Hero 流式布局 */
.detail-hero-section {
  position: relative !important;
  height: auto !important;
  overflow: visible !important;
  margin-top: 64px !important;
}
.detail-hero-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(280px, 36vw, 420px);
  z-index: 1;
}
.detail-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(280px, 36vw, 420px);
  z-index: 2;
}
.detail-hero-content {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
}
.detail-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

/* 试玩紧凑模式 */
.trial-compact {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.btn-trial-copy {
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ========================================
   详情页 V1.0
   ======================================== */
.detail-page {
  --detail-surface: rgba(18, 24, 39, 0.78);
  --detail-border: rgba(148, 163, 184, 0.14);
  --detail-muted: #aab4c5;
  background:
    radial-gradient(circle at 85% 12%, rgba(124, 92, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 8% 48%, rgba(0, 229, 255, 0.055), transparent 25rem),
    var(--bg-primary);
}

.detail-page #detail-content {
  padding-top: 64px;
}

.detail-page .detail-hero-section {
  min-height: 540px !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--detail-border);
}

.detail-page .detail-hero-backdrop,
.detail-page .detail-hero-overlay {
  inset: 0;
  height: 100%;
}

.detail-page .detail-hero-backdrop {
  background-position: center 35%;
  filter: blur(42px) saturate(1.2) brightness(0.3);
  transform: scale(1.18);
  opacity: 0.72;
}

.detail-page .detail-hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.98) 0%, rgba(8, 12, 22, 0.88) 48%, rgba(8, 12, 22, 0.48) 100%),
    linear-gradient(0deg, var(--bg-primary) 0%, transparent 40%);
}

.detail-page .detail-hero-content {
  width: 100%;
}

.detail-page .detail-hero-inner {
  width: 100%;
  max-width: 1200px;
  min-height: 540px;
  padding: 64px 32px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
}

.detail-hero-copy {
  min-width: 0;
}

.detail-breadcrumb {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(226, 232, 240, 0.56);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.detail-breadcrumb:hover {
  color: var(--primary-light);
}

.detail-breadcrumb span {
  color: rgba(226, 232, 240, 0.24);
}

.detail-page .detail-tags {
  margin-bottom: 18px;
}

.detail-page .detail-title {
  max-width: 760px;
  margin: 0 0 20px !important;
  font-size: clamp(2.65rem, 5.2vw, 4.9rem) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.36);
}

.detail-page .detail-subtitle {
  max-width: 660px;
  margin-bottom: 14px;
  color: #dbe3f0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
  font-weight: 500;
  text-wrap: pretty;
}

.detail-page .detail-summary {
  display: block;
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.95rem;
  line-height: 1.85;
  overflow: visible;
}

.detail-page .detail-meta {
  align-items: center;
  gap: 10px 18px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 0.82rem;
}

.detail-page .detail-status {
  padding: 7px 14px;
}

.detail-cover-art {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52);
  transform: rotate(1.5deg);
}

.detail-cover-art::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.detail-cover-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 21px;
  object-fit: cover;
}

.detail-cover-art figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.detail-cover-glow {
  position: absolute;
  inset: 12% 8% -12%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.42);
  filter: blur(54px);
}

.detail-page .detail-section {
  max-width: 1120px;
  padding: 76px 24px;
}

.detail-page .detail-section + .detail-section {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.detail-section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.detail-section-heading > span {
  display: block;
  margin-bottom: 9px;
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.detail-page .detail-section-heading h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--text-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.detail-section-heading p {
  color: var(--detail-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

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

.detail-page .intro-item {
  position: relative;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--detail-border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 31, 49, 0.86), rgba(14, 19, 32, 0.82));
}

.detail-page .intro-story {
  grid-column: 1 / -1;
  min-height: 0;
}

.detail-page .intro-index {
  display: block;
  margin-bottom: 24px;
  color: rgba(155, 122, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-page .intro-item h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.detail-page .intro-item p {
  color: #aeb8c9;
  font-size: 0.92rem;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
}

.detail-page .supported-models {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid var(--detail-border);
  border-radius: 16px;
  background: rgba(18, 24, 39, 0.66);
}

.supported-label {
  display: block;
  margin-bottom: 10px;
  color: var(--detail-muted);
  font-size: 0.76rem;
}

.detail-page .supported-models div p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-page .supported-models strong {
  padding: 5px 10px;
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 7px;
  color: #d8d2ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-page .usage-tip {
  margin: 0;
}

.detail-gallery-section {
  max-width: 1200px !important;
}

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

.detail-page .screenshot-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--detail-border);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.detail-page .screenshot-item img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.detail-page .screenshot-item:hover img {
  transform: scale(1.025);
}

.detail-page .screenshot-item figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  backdrop-filter: blur(10px);
}

.detail-page .version-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.detail-page .version-card,
.detail-page .purchase-info {
  border: 1px solid var(--detail-border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 31, 49, 0.86), rgba(14, 19, 32, 0.82));
}

.detail-page .version-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 28px;
}

.detail-page .version-full {
  border-color: rgba(124, 92, 255, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 50px rgba(84, 55, 190, 0.12);
}

.detail-page .version-label {
  font-size: 1.25rem;
}

.detail-page .version-desc {
  flex: 1;
  line-height: 1.8;
}

.detail-page .btn-version-action {
  align-self: flex-start;
}

.detail-page .purchase-section {
  padding-bottom: 100px;
}

.detail-page .purchase-info {
  padding: 34px;
}

@media (max-width: 860px) {
  .detail-page .detail-hero-section,
  .detail-page .detail-hero-inner {
    min-height: 0 !important;
  }

  .detail-page .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px 24px 48px;
  }

  .detail-page .detail-cover-art {
    width: min(100%, 620px);
    transform: none;
  }

  .detail-page .supported-models {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-page #detail-content {
    padding-top: 64px;
  }

  .detail-page .detail-hero-section {
    margin-top: 0 !important;
  }

  .detail-page .detail-hero-inner {
    padding: 36px 18px 40px;
  }

  .detail-breadcrumb {
    margin-bottom: 22px;
  }

  .detail-page .detail-title {
    font-size: clamp(2.15rem, 12vw, 3.2rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em;
  }

  .detail-page .detail-subtitle {
    font-size: 1rem;
  }

  .detail-page .detail-summary {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .detail-page .detail-cover-art {
    border-radius: 16px;
  }

  .detail-cover-art img {
    border-radius: 15px;
  }

  .detail-page .detail-section {
    padding: 54px 18px;
  }

  .detail-page .intro-grid,
  .detail-page .version-grid,
  .detail-page .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .detail-page .intro-story {
    grid-column: auto;
  }

  .detail-page .intro-item {
    min-height: 0;
    padding: 22px;
  }

  .detail-page .intro-item p {
    text-align: left;
  }

  .detail-page .purchase-info {
    padding: 24px 20px;
  }
}

/* ========================================
   详情页 V1.1 - 居中横向信息卡
   ======================================== */
html {
  scroll-padding-top: 88px;
}

body.detail-page {
  padding-top: 64px;
}

.detail-page #detail-content {
  width: 100%;
  padding-top: 32px !important;
}

.detail-page .detail-hero-section {
  width: 100%;
  min-height: 0 !important;
  padding: 24px;
  border: 0;
  background: transparent;
}

.detail-page .detail-hero-backdrop {
  position: fixed;
  inset: 64px 0 auto;
  height: 520px;
  opacity: 0.18;
  filter: blur(70px) saturate(1.1) brightness(0.32);
  pointer-events: none;
}

.detail-page .detail-hero-overlay {
  display: none;
}

.detail-page .detail-hero-content {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.detail-page .detail-hero-inner {
  width: 100%;
  max-width: none;
  min-height: 410px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(380px, 46%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(31, 42, 58, 0.94), rgba(20, 26, 39, 0.92)),
    var(--bg-secondary);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.detail-page .detail-cover-art {
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.detail-page .detail-cover-art::before,
.detail-page .detail-cover-glow {
  display: none;
}

.detail-page .detail-cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(20, 26, 39, 0.82) 100%);
  pointer-events: none;
}

.detail-page .detail-cover-art img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.detail-page .detail-cover-art figcaption {
  left: 20px;
  right: auto;
  bottom: 18px;
}

.detail-page .detail-hero-copy {
  min-width: 0;
  padding: 46px clamp(32px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-page .detail-breadcrumb {
  margin-bottom: 22px;
}

.detail-page .detail-tags {
  margin-bottom: 14px;
}

.detail-page .detail-title {
  max-width: 100%;
  margin-bottom: 16px !important;
  font-size: clamp(2.15rem, 3.6vw, 3.55rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em;
  text-align: left;
}

.detail-page .detail-subtitle {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.detail-page .detail-summary {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.75;
}

.detail-page .detail-meta {
  padding-top: 17px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-page .detail-section {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .detail-page .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-page .detail-cover-art {
    height: auto;
  }

  .detail-page .detail-cover-art::after {
    background: linear-gradient(0deg, rgba(20, 26, 39, 0.72), transparent 38%);
  }

  .detail-page .detail-cover-art img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .detail-page .detail-hero-copy {
    padding: 34px 30px 40px;
  }
}

@media (max-width: 640px) {
  body.detail-page {
    padding-top: 64px;
  }

  .detail-page #detail-content {
    padding-top: 16px !important;
  }

  .detail-page .detail-hero-section {
    padding: 12px;
  }

  .detail-page .detail-hero-inner {
    border-radius: 14px;
  }

  .detail-page .detail-hero-copy {
    padding: 26px 20px 30px;
  }

  .detail-page .detail-breadcrumb {
    margin-bottom: 18px;
  }

  .detail-page .detail-title {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
  }

  .detail-page .detail-section {
    width: 100%;
  }
}

/* ========================================
   详情页 V1.2 - 正文与购买区视觉层级
   ======================================== */
.detail-page {
  background-color: #080d16;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(124, 92, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 46%, rgba(0, 190, 220, 0.07), transparent 30rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

.detail-page #detail-content {
  position: relative;
}

.detail-page #detail-content::before {
  content: "";
  position: absolute;
  top: 420px;
  left: 50%;
  width: min(1100px, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.28), transparent);
  pointer-events: none;
}

.detail-page .detail-section {
  position: relative;
}

.detail-page .detail-section-heading {
  position: relative;
  max-width: 720px;
  padding-left: 22px;
  margin-bottom: 34px;
}

.detail-page .detail-section-heading::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--primary-light), rgba(0, 229, 255, 0.5));
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.34);
}

.detail-page .detail-section-heading > span {
  margin-bottom: 8px;
  color: #a991ff;
  font-size: 0.68rem;
}

.detail-page .detail-section-heading h2 {
  color: #f7f8fc;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 850;
}

.detail-page .detail-section-heading p {
  max-width: 620px;
  color: #8995a8;
  font-size: 0.9rem;
}

.detail-page .intro-grid {
  gap: 18px;
}

.detail-page .intro-item {
  overflow: hidden;
  padding: 28px 30px 30px;
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(145deg, rgba(24, 32, 50, 0.92), rgba(12, 18, 30, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 16px 42px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.detail-page .intro-item::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.07);
  filter: blur(2px);
}

.detail-page .intro-item:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.3);
  background: linear-gradient(145deg, rgba(29, 37, 58, 0.96), rgba(14, 20, 34, 0.96));
}

.detail-page .intro-index {
  width: fit-content;
  margin-bottom: 17px;
  padding: 4px 8px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.08);
  color: #aa97ff;
  font-size: 0.66rem;
}

.detail-page .intro-item h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  color: #f1f4fa;
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.detail-page .intro-item p {
  position: relative;
  z-index: 1;
  color: #a5b0c2;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.95;
}

.detail-page .intro-story p {
  color: #b8c1d0;
  font-size: 0.96rem;
  line-height: 2;
}

.detail-page .supported-models {
  border-color: rgba(124, 92, 255, 0.16);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.075), rgba(18, 24, 39, 0.75));
}

.detail-page .supported-label {
  color: #7f8ba0;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.detail-page .supported-models strong {
  background: rgba(124, 92, 255, 0.08);
}

.detail-page .version-card {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.detail-page .version-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.08);
}

.detail-page .version-label,
.detail-page .version-desc,
.detail-page .version-feature-list,
.detail-page .btn-version-action {
  position: relative;
  z-index: 1;
}

.detail-page .version-label {
  color: #f6f7fb;
  font-size: 1.35rem;
}

.detail-page .version-desc {
  color: #919caf;
}

.version-recommended {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: #c7bbff;
  font-size: 0.68rem;
  font-weight: 750;
}

.version-feature-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  list-style: none;
}

.version-feature-list li {
  position: relative;
  padding-left: 19px;
  color: #aeb8c8;
  font-size: 0.82rem;
  line-height: 1.55;
}

.version-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8c73ff;
  font-weight: 800;
}

.detail-page .purchase-section {
  max-width: 1180px;
}

.detail-page .purchase-info {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-color: rgba(124, 92, 255, 0.25);
  background:
    radial-gradient(circle at 90% 5%, rgba(124, 92, 255, 0.18), transparent 22rem),
    linear-gradient(145deg, rgba(25, 32, 51, 0.97), rgba(11, 17, 29, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.purchase-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
  padding: 38px 40px 34px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.purchase-kicker {
  display: block;
  margin-bottom: 10px;
  color: #9f8aff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.purchase-intro h3 {
  margin-bottom: 13px;
  color: #f8f9fc;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.35;
}

.purchase-intro p {
  color: #929daf;
  font-size: 0.9rem;
  line-height: 1.8;
}

.purchase-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 20px;
  list-style: none;
}

.purchase-benefits li {
  position: relative;
  padding: 10px 12px 10px 32px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #b5becc;
  font-size: 0.8rem;
  line-height: 1.5;
}

.purchase-benefits li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 12px;
  color: #9b84ff;
  font-weight: 800;
}

.detail-page .purchase-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 24px 40px;
}

.detail-page .purchase-method {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 16px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(7, 12, 22, 0.48);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.detail-page .purchase-method:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.32);
}

.purchase-method-no {
  grid-row: 1 / 3;
  color: rgba(155, 132, 255, 0.48);
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
}

.purchase-channel {
  display: block;
  margin-bottom: 5px;
  color: #8170d6;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-page .purchase-method h4 {
  margin-bottom: 8px;
  color: #eef1f7;
  font-size: 1.05rem;
}

.detail-page .purchase-method p {
  margin: 0;
  color: #8490a3;
  font-size: 0.82rem;
}

.detail-page .purchase-method strong {
  color: #d6ceff;
  font-weight: 700;
}

.detail-page .purchase-method .btn-copy-text {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  justify-content: space-between;
  border: 1px solid rgba(155, 132, 255, 0.3);
  border-radius: 10px;
  background: linear-gradient(105deg, #6f50ec, #8467f3);
  box-shadow: 0 10px 26px rgba(76, 52, 180, 0.24);
}

.detail-page .purchase-method .btn-copy-text b {
  font-size: 1.05rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.detail-page .purchase-method .btn-copy-text:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(105deg, #7b5cf5, #9278fa);
  box-shadow: 0 14px 32px rgba(76, 52, 180, 0.34);
}

.detail-page .purchase-method .btn-copy-text:hover b {
  transform: translateX(4px);
}

.purchase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(5, 9, 17, 0.28);
}

.purchase-footer > span {
  color: #727e91;
  font-size: 0.78rem;
}

.detail-page .btn-back-home {
  padding: 9px 16px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #aeb8c8;
  font-size: 0.8rem;
}

.detail-page .btn-back-home:hover {
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.1);
  color: #d4ccff;
}

.detail-page .footer {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(5, 9, 16, 0.72);
}

@media (max-width: 760px) {
  .purchase-intro {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 22px;
  }

  .purchase-benefits,
  .detail-page .purchase-methods {
    grid-template-columns: 1fr;
  }

  .detail-page .purchase-methods {
    padding: 18px;
  }

  .purchase-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px;
  }
}

.purchase-section.purchase-highlight .purchase-info {
  animation: purchaseFocus 1.8s ease;
}

.hero-demo-entry {
  position: absolute;
  z-index: 5;
  left: 20px;
  bottom: 18px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(111, 80, 236, 0.96), rgba(132, 103, 243, 0.96));
  box-shadow: 0 12px 32px rgba(69, 42, 183, 0.38);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

@keyframes purchaseFocus {
  0%, 100% {
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: none;
  }
  35% {
    border-color: rgba(255, 153, 68, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 130, 55, 0.1), 0 20px 60px rgba(255, 106, 40, 0.12);
  }
}

@media (max-width: 640px) {
  .detail-page .detail-cover-art figcaption {
    left: auto !important;
    right: 14px !important;
    bottom: 14px !important;
  }

  .hero-demo-entry {
    display: inline-flex;
    left: 14px;
    bottom: 14px;
  }
}
