/* === AiSite layout scaffold (do not remove) === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; width: 100%;  }
body.site-page,
body { margin: 0; min-height: 100vh; line-height: 1.6; width: 100%;  }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.site-page { display: flex; flex-direction: column; min-height: 100vh; width: 100%; max-width: none; }
.site-main { flex: 1 0 auto; width: 100%; max-width: none; }
.site-section { width: 100%; max-width: none; display: block; }
.site-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header,
.site-footer { width: 100%; max-width: none; }
.site-header .site-container,
.site-footer .site-container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-section.site-section--cover,
.site-section.hero-cover,
#hero.site-section {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.site-section--cover > .site-container,
#hero.site-section > .site-container {
  position: relative;
  z-index: 1;
  color: #f8fafc;
}
@media (max-width: 768px) {
  .site-container { padding-left: 16px; padding-right: 16px; }
  .site-section.site-section--cover,
  .site-section.hero-cover,
  #hero.site-section { min-height: min(56vh, 480px); }
}
:root {
  --bg: #0f172a;
  --surface: rgba(31, 41, 55, 0.72);
  --surface-soft: rgba(17, 24, 39, 0.9);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(71, 85, 105, 0.45);
  --accent: #60a5fa;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --radius: 16px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== SITE PAGE ===== */
.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== SITE CONTAINER ===== */
.site-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== SITE SECTION ===== */
.site-section {
  width: 100%;
  background-color: var(--bg);
  padding: 4rem 0;
}

.site-section--cover {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.site-section--cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 100%);
  z-index: 1;
}

.site-section--cover > .site-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.site-section--chips {
  padding: 1.5rem 0;
}

.site-section--cta {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  text-align: center;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

/* ===== HERO ===== */
.hero-cover {
  background-image: url('https://ark-content-generation-v2-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-4-5/021779871967872d405b31e40b75027219029961fe2501f93f00c_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260527%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260527T085258Z&X-Tos-Expires=86400&X-Tos-Signature=ea34d4b4524327dd80b510954bbca5b7b81320c1a9ef727e23a79941f7a02828&X-Tos-SignedHeaders=host');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-img {
  display: none;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 320px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-text .subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-card,
.snapshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

/* ===== CHIPS ROW ===== */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: default;
  transition: all 0.2s ease;
}

.chip:hover,
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.chip .badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

/* ===== SECTION HEAD ===== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.section-head .kicker {
  margin-bottom: 0;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--trending {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .card-grid--trending {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--trending {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card-grid--library {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .card-grid--library {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--library {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid--full {
  grid-template-columns: 1fr;
}

.game-card,
.card-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover,
.card-body:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.game-card img,
.card-body img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 0;
}

.card-body .card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-body .tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ===== ARTICLES LIST ===== */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .article-card {
    grid-template-columns: 200px 1fr;
  }
}

.article-card:hover {
  border-color: var(--accent);
}

.article-thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.article-content {
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-content .tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.article-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== INSIGHTS ===== */
.insights-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.insight-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.insight-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.insight-card .card-body {
  padding: 1.25rem;
  border: none;
  background: transparent;
}

.insight-card .badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}

.insight-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
}

.cta-content p {
  color: var(--muted);
  max-width: 560px;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  width: fit-content;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.btn-primary:hover {
  background: #7bb8ff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.btn-small {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-small:hover {
  background: var(--accent);
  color: #0f172a;
}

/* ===== DETAIL PAGE SPECIFICS ===== */
.detail-cover {
  background-image: url('https://ark-content-generation-v2-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-4-5/021779871967872d405b31e40b75027219029961fe2501f93f00c_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260527%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260527T085258Z&X-Tos-Expires=86400&X-Tos-Signature=ea34d4b4524327dd80b510954bbca5b7b81320c1a9ef727e23a79941f7a02828&X-Tos-SignedHeaders=host');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.detail-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .detail-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.detail-hero-text .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.detail-meta .tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.detail-hero-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-overview,
.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-overview h2,
.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.detail-overview p {
  color: var(--muted);
  max-width: 720px;
}

.overview-img,
.features-img {
  border-radius: var(--radius);
  margin-top: 1.5rem;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.features-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.specs-list {
  display: grid;
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-item strong {
  color: var(--text);
}

.spec-item span {
  color: var(--muted);
}

.spec-cta {
  margin-top: 1.5rem;
}

/* ===== LIST PAGE SPECIFICS ===== */
.list-cover {
  background-image: url('https://ark-content-generation-v2-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-4-5/021779872005679d405b31e40b75027219029961fe2501f9bf36f_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20260527%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20260527T085335Z&X-Tos-Expires=86400&X-Tos-Signature=d490399ef4426847f410c787525912a6e4db08e49383dd3f893f616402288ef5&X-Tos-SignedHeaders=host');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.list-hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 0;
}

.list-hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
}

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo {
  font-size: 1.25rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--accent);
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 767px) {
  .site-section {
    padding: 2.5rem 0;
  }

  .hero-text h1,
  .detail-hero-text h1 {
    font-size: 1.75rem;
  }

  .card-grid--trending {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    aspect-ratio: 16 / 9;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MISC ===== */
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}

.is-active {
  color: var(--text) !important;
  background: var(--accent-soft) !important;
}

/* ===== PEXELS ATTRIBUTION ===== */
.pexels-attribution {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.pexels-attribution a {
  color: var(--accent);
}

/* === AiSite full-width enforcer (auto) === */
html, body, body.site-page {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-x: clip;
}
.site-page,
.site-main,
main.site-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.site-section,
section.site-section,
main.site-main > section,
.site-main > section,
body > main > section {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
.site-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}
body > .catalog-shell,
body > .page-shell,
body > .page-wrap,
body > .site-wrapper,
body > .layout-shell,
body > .site-shell,
body > div[class*="shell"]:not(.site-container),
body > div[class*="wrapper"]:not(.site-container) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.catalog-shell.site-main,
.site-main.catalog-shell {
  width: 100% !important;
  max-width: none !important;
}
/* === AiSite class fallbacks (auto) === */
.section-cta { box-sizing: border-box; }
