/* 宝可梦机场 - 原生极简设计系统 */
:root {
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-tint: #fffbeb;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --primary: #d97706;
  --primary-hover: #b45309;
  --primary-fg: #ffffff;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --success: #047857;
  --success-soft: #d1fae5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --max-w: 1160px;
  --header-h: 72px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-wrap: break-word;
}

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

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--text);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* 固定页眉与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  text-decoration: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.72rem 1.45rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

/* 区块通用 */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.section {
  padding-block: var(--space-6);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: var(--text);
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero 主视觉区 */
.hero {
  padding-block: var(--space-5) var(--space-6);
  background: linear-gradient(160deg, #fffbeb 0%, #f8fafc 55%, #e0f2fe 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--surface-tint);
  border: 1px solid #fcd34d;
  color: #92400e;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 1.65rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* 卡片网格 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--text);
}

.card-text {
  margin: 0;
  color: var(--text-muted);
}

/* 流媒体与 AI 支持 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.28rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0369a1;
}

.tag-ai {
  background: var(--success-soft);
  color: var(--success);
}

/* 套餐价格表 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
}

.pricing-table caption {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.pricing-table thead th {
  background: var(--bg-alt);
  font-size: 0.92rem;
  color: var(--text);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.price-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-hover);
  white-space: nowrap;
}

.badge-hot {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

/* 评价卡片 */
.quote-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* FAQ 折叠面板（默认展开 details[open]） */
.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-hover);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

/* 知识科普与文章页 */
.page-hero {
  padding-block: var(--space-4);
  background: linear-gradient(180deg, #fffbeb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-shell {
  max-width: 820px;
  margin-inline: auto;
  padding-block: var(--space-5);
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.article-body h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1rem;
  color: #1e293b;
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.article-cta {
  margin-top: 2rem;
  padding: 1.35rem;
  background: var(--surface-tint);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.center-action {
  margin-top: var(--space-4);
  text-align: center;
}

/* 页脚（严格只保留四个链接） */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding-block: 2.25rem;
  margin-top: var(--space-5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #f8fafc;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* 响应式断点 */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-list {
    justify-content: flex-start;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section {
    padding-block: var(--space-5);
  }
}
