/* style.css — 首页专用版式
   基线：03-ui/home-ui-desktop.png（1024×1536，归一 1440×2160）
   分区预算（1440 宽）：header 74 / hero 426 / M2 索引 230 / M3+M4 386 /
   M5 精选 221 / M6 游戏 196 / M7 五步 181 / M8 FAQ 109 / footer 170 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-dark);
  color: var(--c-dark-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}
.brand {
  flex: 0 0 auto;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .015em;
  color: var(--c-dark-ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
}
.site-nav a {
  font-size: var(--fs-small);
  color: rgba(220, 226, 209, .86);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease;
}
.site-nav a:hover { color: #fff; }
.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}
.header-all {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-accent-soft);
  text-decoration: none;
  white-space: nowrap;
}
.header-all:hover { color: #fff; }
.icon-btn,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(220, 226, 209, .34);
  border-radius: var(--r-s);
  background: transparent;
  color: var(--c-dark-ink);
  cursor: pointer;
}
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn {
  display: none;
  position: relative;
}
.menu-btn span:first-child,
.menu-btn span:first-child::before,
.menu-btn span:first-child::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}
.menu-btn span:first-child::before { transform: translateY(-5px); }
.menu-btn span:first-child::after { transform: translateY(3.5px); }

/* 搜索面板 */
.search-panel {
  border-top: 1px solid var(--c-dark-line);
  background: var(--c-dark-deep);
  padding: 18px 0 22px;
}
.search-row { display: grid; gap: 8px; }
.search-input {
  width: 100%;
  max-width: 520px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(220, 226, 209, .34);
  border-radius: var(--r-s);
  background: rgba(0, 0, 0, .22);
  color: var(--c-dark-ink);
  font-size: var(--fs-body);
  font-family: inherit;
}
.search-input::placeholder { color: rgba(220, 226, 209, .5); }
.search-hint {
  margin: 0;
  font-size: var(--fs-tiny);
  color: rgba(220, 226, 209, .62);
}
.search-results {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.search-results a {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--c-dark-line);
  font-size: var(--fs-small);
  color: var(--c-dark-ink);
  text-decoration: none;
}
.search-results a:hover { border-color: var(--c-accent); }
.search-empty {
  font-size: var(--fs-small);
  color: rgba(220, 226, 209, .66);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 426px;
  display: flex;
  align-items: stretch;
  background: #1a1a12 url("../images/hero-main.jpg") center / cover no-repeat;
  color: var(--c-dark-ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(24, 18, 10, .46) 0%, rgba(24, 18, 10, .28) 46%, rgba(24, 16, 8, .06) 74%, rgba(24, 16, 8, 0) 100%),
    linear-gradient(0deg, rgba(186, 132, 74, .22), rgba(186, 132, 74, .22));
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 26px;
  padding-bottom: 24px;
}
.hero-copy { max-width: 780px; }
.eyebrow {
  margin: 0 0 14px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
}
.hero h1 {
  margin: 0 0 14px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: #fdf8ef;
}
.hero-lead {
  max-width: 700px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(238, 235, 222, .86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 24px 0 0;
}
.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(238, 235, 222, .24);
}
.hero-stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero-stat dt {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--c-accent-soft);
}
.hero-stat dd {
  margin: 0;
  font-size: var(--fs-small);
  color: rgba(238, 235, 222, .78);
}
.hero-figure {
  position: absolute;
  right: var(--page-pad);
  bottom: 22px;
  margin: 0;
  max-width: 400px;
  text-align: right;
}
.hero-figure figcaption {
  font-size: var(--fs-tiny);
  line-height: 1.5;
  color: rgba(238, 235, 222, .6);
}
.hero-figure img { display: none; }

/* ---------------------------------------------------------------- M2 分类索引 */
.cats { padding: 20px 0 14px; }
.cats .section-head--inline { margin-bottom: 14px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-link {
  display: grid;
  gap: 0;
  text-decoration: none;
}
.cat-thumb {
  display: block;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  background: var(--c-photo);
  border-radius: var(--r-s);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-num {
  display: inline-block;
  margin-top: 7px;
  margin-right: 5px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  vertical-align: baseline;
  color: var(--c-accent);
}
.cat-name {
  display: inline;
  margin-top: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}
.cat-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--c-muted);
}
.cat-tag {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--c-accent);
}
.cat-link:hover .cat-thumb img { transform: scale(1.04); transition: transform .3s ease; }
.cat-link:hover .cat-name { color: var(--c-accent); }
.cats-more { margin: 0; }
.cats .section-head--inline .cats-more { flex: 0 0 auto; margin-left: auto; }
.cats .section-head--inline .cats-more { flex: 0 0 auto; margin-left: auto; }

/* ---------------------------------------------------------------- M3 + M4 */
.kit-schedule { padding: 14px 0 8px; }
.kit-schedule-grid {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 44px;
  align-items: start;
}
.kit-schedule .section-head--inline { margin-bottom: 10px; }
.kit .section-sub,
.schedule .section-sub { flex: 1 1 100%; margin-top: 4px; }
.kit-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  grid-template-areas:
    "kithead kitfig"
    "kitlist kitfig";
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
}
.kit-cols > .section-head { grid-area: kithead; }
.kit-cols > .kit-list { grid-area: kitlist; }
.kit-cols > .kit-figure { grid-area: kitfig; }
.kit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hairline);
}
.kit-figure {
  margin: 0;
  aspect-ratio: 302 / 379;
  overflow: hidden;
  border-radius: var(--r-s);
  background: var(--c-photo);
}
.kit-figure img { width: 100%; height: 100%; object-fit: cover; }
.kit-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: var(--hairline);
}
.kit-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}
.kit-desc {
  font-size: 13px;
  line-height: 1.62;
  color: var(--c-ink-soft);
}
.schedule-table {
  font-size: 11.5px;
  line-height: 1.5;
  table-layout: fixed;
}
.schedule-table col,
.schedule-table th:first-child { width: 62px; }
.schedule-table thead th {
  padding: 6px 5px 6px 0;
  border-bottom: 1px solid var(--c-line-strong);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: left;
}
.schedule-table tbody th {
  padding: 7px 7px 7px 0;
  border-bottom: var(--hairline);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  text-align: left;
  vertical-align: top;
}
.schedule-table tbody td {
  padding: 7px 7px 7px 0;
  border-bottom: var(--hairline);
  color: var(--c-ink-soft);
  vertical-align: top;
}
.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule .table-note { margin-top: 8px; }

/* ---------------------------------------------------------------- M5 精选 */
.picks { padding: 0 0 10px; }
.picks .section-head--inline { margin-bottom: 14px; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pick {
  display: grid;
  text-decoration: none;
}
.pick-thumb {
  display: block;
  aspect-ratio: 1.63 / 1;
  overflow: hidden;
  background: var(--c-photo);
  border-radius: var(--r-s);
}
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pick:hover .pick-thumb img { transform: scale(1.04); }
.pick-name {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}
.pick:hover .pick-name { color: var(--c-accent); }
.pick-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* ---------------------------------------------------------------- M6 天黑之后 */
.games {
  padding: 10px 0 26px;
  background: none;
}
.games .section-head--inline { margin-bottom: 12px; }
/* 稿面 M6 的米色横带只包住三列卡片，标题在米白底上；用 full-bleed 让底色出血到视口两侧 */
.games-band {
  padding: 15px 0 16px;
  background: var(--c-bg-alt);
  box-shadow: 0 0 0 100vmax var(--c-bg-alt);
  clip-path: inset(0 -100vmax);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.game {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}
.game-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-photo);
  border-radius: var(--r-s);
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-name {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-ink);
}
.game-desc {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* ---------------------------------------------------------------- M7 五步 */
.steps { padding: 22px 0 20px; }
.steps .section-head--inline { margin-bottom: 14px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding-top: 12px;
  border-top: 2px solid var(--c-ink);
}
.step-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
}
.step-title {
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-ink);
}
.step-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* ---------------------------------------------------------------- M8 FAQ */
.faq { padding: 24px 0 22px; }
.faq .section-head--inline { margin-bottom: 12px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.faq-item summary { padding-bottom: 6px; }
.faq-item {
  border-top: var(--hairline);
  padding-top: 10px;
}
.faq-item summary {
  display: block;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink);
}
.faq-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--c-muted);
}
.faq-mark::before { content: "了解更多"; }
.faq-mark::after { content: "+"; font-size: 13px; line-height: 1; }
.faq-item[open] .faq-mark::after { content: "−"; }
.faq-item summary:hover .faq-q { color: var(--c-accent); }
.faq-a {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1200px) {
  :root { --page-pad: 40px; }
  .site-nav { gap: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .kit-schedule-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-all { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-figure { display: none; }
  .games-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 8px var(--page-pad) 16px;
    background: var(--c-dark-deep);
    border-top: 1px solid var(--c-dark-line);
  }
  .site-header.nav-open .site-nav a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--c-dark-line);
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  :root { --page-pad: 20px; }
  .hero { min-height: 0; padding: 34px 0 30px; }
  .hero h1 { font-size: 25px; }
  .hero-lead { font-size: 14px; line-height: 1.8; }
  .hero-stats { flex-wrap: wrap; gap: 10px 0; }
  .hero-stat { padding-right: 14px; margin-right: 14px; }
  .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .kit-row { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .game { grid-template-columns: 74px minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
