/* === 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: #0a0e1a;
  --surface: #141b2d;
  --surface-elevated: #1c2640;
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --vip-gold: #f4c95d;
  --border: rgba(148, 163, 184, 0.2);
  --radius: 12px;
  --max-width: 1200px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--vip-gold);
}

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

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

/* ===== Site Container ===== */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== Site Section ===== */
.site-section {
  width: 100%;
  padding: 64px 0;
  background: var(--bg);
}

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

.site-section--accent {
  background: linear-gradient(135deg, var(--accent), #5b4ae0);
}

/* ===== Site Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent-2);
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.header-strip {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ===== Hero ===== */
.hero-cover {
  background: linear-gradient(135deg, #0a0e1a 0%, #1c2640 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stat-pill {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #6a5ae0;
  border-color: #6a5ae0;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.section-intro {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.section-link {
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

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

.card-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -24px -24px 16px;
  width: calc(100% + 48px);
}

.card-guide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}

.card-guide:hover {
  transform: translateY(-2px);
}

.card-guide .card-img {
  margin: 0;
  width: 100%;
  height: 200px;
  border-radius: 0;
}

.card-guide h3 {
  padding: 16px 16px 0;
}

.card-guide p {
  padding: 0 16px 16px;
}

/* ===== Tags & Chips ===== */
.tag {
  display: inline-block;
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.score-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
}

/* ===== Tip Card ===== */
.tip-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.tip-card h3 {
  margin: 0 0 8px;
  color: var(--vip-gold);
}

.tip-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* ===== List Rows ===== */
.list-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.list-row:last-child {
  border-bottom: none;
}

.row-date {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 80px;
}

.row-category {
  min-width: 100px;
}

.row-title {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.row-title a {
  color: var(--text);
}

.row-title a:hover {
  color: var(--accent-2);
}

.row-excerpt {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Ranked List ===== */
.ranked-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: transform 0.2s;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 40px;
  text-align: center;
}

.rank-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--surface-elevated);
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.rank-category {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Watchlist Horizontal ===== */
.watchlist-horizontal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.watch-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}

.watch-item:hover {
  transform: translateY(-2px);
}

.watch-thumb {
  width: 100%;
  height: 120px;
  background: var(--surface-elevated);
}

.watch-info {
  padding: 12px;
}

.watch-info h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.watch-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== VIP Form ===== */
.vip-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-top: 24px;
}

.vip-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.vip-input:focus {
  border-color: var(--accent);
}

.vip-input::placeholder {
  color: var(--muted);
}

/* ===== Detail Page ===== */
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--accent-2);
}

.detail-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.detail-image {
  border-radius: var(--radius);
  min-height: 300px;
}

.detail-info p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 1rem;
}

.detail-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.detail-info li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.detail-info li::before {
  content: "✓";
  color: var(--accent-2);
  margin-right: 10px;
}

.detail-info .btn {
  margin-right: 12px;
  margin-bottom: 8px;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Filter Chips ===== */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* ===== CTA Actions ===== */
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-col p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .watchlist-horizontal {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-section {
    padding: 48px 0;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr;
  }
  .watchlist-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .list-row {
    flex-wrap: wrap;
  }
  .row-excerpt {
    max-width: 100%;
    white-space: normal;
  }
  .vip-form {
    flex-direction: column;
  }
  .hero-stats {
    flex-direction: column;
  }
  .rank-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .watchlist-horizontal {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .detail-header h1 {
    font-size: 1.8rem;
  }
}

/* === 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;
}