/* ==========================================================
   .page-home 首页专属样式
   移动端优先，桌面端以非对称 12 栅格的气韵扩展
   ========================================================== */
.page-home {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(14px, 4vw, 48px) 64px;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow: hidden;
}

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

.page-home a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-home a:hover {
  color: var(--neon-green);
}

.page-home a:focus,
.page-home button:focus,
.page-home summary:focus {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

.page-home h2,
.page-home h3 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- eyebrow / 小标签 ---------- */
.page-home .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric-blue);
}

.page-home .home-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--neon-green);
}

/* ---------- hero：杂志目录式章节预览 ---------- */
.page-home .home-hero {
  display: grid;
  gap: 28px;
  padding: 36px 0 48px;
  position: relative;
}

.page-home .home-hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 8vw, 56px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-home .home-hero-lead {
  margin: 0 0 10px;
  max-width: 56ch;
  font-size: 15px;
  color: var(--text-white);
}

.page-home .home-hero-note {
  max-width: 62ch;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--data-orange);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-home .home-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .home-quicknav a {
  padding: 6px 12px;
  border: 1px solid var(--grid-line);
  background: rgba(18, 26, 46, 0.5);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-home .home-quicknav a:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

/* ---------- 章节预览卡片 ---------- */
.page-home .home-dir-cards {
  display: grid;
  gap: 16px;
}

.page-home .home-dir-card {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transform: rotate(-1deg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-dir-card:nth-child(2) {
  transform: rotate(0.6deg);
}

.page-home .home-dir-card:nth-child(3) {
  transform: rotate(-0.3deg);
}

.page-home .home-dir-card:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: var(--neon-green);
  box-shadow: 0 12px 30px rgba(0, 255, 135, 0.08);
  z-index: 2;
}

.page-home .home-dir-index {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1;
  color: var(--data-orange);
  opacity: 0.9;
}

.page-home .home-dir-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-home .home-dir-card h3 a {
  color: var(--text-white);
}

.page-home .home-dir-card h3 a:hover {
  color: var(--neon-green);
}

.page-home .home-dir-card > p:not(.home-dir-index):not(.home-dir-metric) {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-home .home-dir-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--grid-line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.page-home .home-dir-metric span {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--neon-green);
}

.page-home .home-dir-link {
  display: inline-block;
  font-size: 13px;
  color: var(--electric-blue);
}

.page-home .home-dir-link:hover {
  color: var(--neon-green);
}

/* ---------- 章节标题通用 ---------- */
.page-home .home-section-heading {
  margin-bottom: 18px;
}

.page-home .home-section-heading h2 {
  margin: 4px 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.page-home .home-section-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- 焦点赛事 ---------- */
.page-home .home-match {
  position: relative;
  padding: 32px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-home .home-match::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 135, 0.2), transparent);
}

.page-home .home-match-card {
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-match-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 14px 40px rgba(0, 255, 135, 0.08);
}

.page-home .home-match-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
}

.page-home .home-match-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .home-match-info {
  padding: 20px;
}

.page-home .home-match-tag {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--data-orange);
}

.page-home .home-match-info h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.12;
}

.page-home .home-match-info p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-home .home-read-more {
  display: inline-block;
  font-size: 13px;
  color: var(--electric-blue);
}

.page-home .home-match-card:hover .home-read-more {
  color: var(--neon-green);
}

/* ---------- 收藏面板 / 订阅 / 旧资料库 三区块 ---------- */
.page-home .home-collect,
.page-home .home-subscribe,
.page-home .home-archive {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 32px 0;
}

.page-home .home-collect-media,
.page-home .home-subscribe-media,
.page-home .home-archive-media {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .home-collect-media img,
.page-home .home-subscribe-media img,
.page-home .home-archive-media img {
  width: 100%;
  object-fit: cover;
}

.page-home .home-collect-copy h2,
.page-home .home-subscribe-copy h2,
.page-home .home-archive-copy h2 {
  margin: 4px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.08;
}

.page-home .home-subscribe-copy h2 span {
  color: var(--neon-green);
}

.page-home .home-collect-copy p,
.page-home .home-subscribe-copy p,
.page-home .home-archive-copy p {
  margin: 0 0 14px;
  max-width: 60ch;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 收藏面板印章 */
.page-home .home-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--neon-green);
  background: rgba(10, 15, 30, 0.45);
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.25);
  color: var(--neon-green);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1;
  transform: rotate(12deg);
}

/* 收藏 step details */
.page-home .home-howto {
  margin: 16px 0;
  border: 1px solid var(--grid-line);
  background: rgba(18, 26, 46, 0.55);
}

.page-home .home-howto summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 14px;
  color: var(--neon-green);
}

.page-home .home-howto summary::-webkit-details-marker {
  display: none;
}

.page-home .home-howto summary::before {
  content: "+ ";
  color: var(--electric-blue);
}

.page-home .home-howto[open] summary::before {
  content: "− ";
}

.page-home .home-howto-list {
  margin: 0;
  padding: 0 16px 16px 36px;
  font-size: 14px;
  color: var(--text-white);
}

.page-home .home-howto-list li {
  margin-bottom: 8px;
}

.page-home .home-howto-list span {
  margin-right: 8px;
  font-family: var(--font-heading);
  color: var(--data-orange);
}

/* 订阅 SVG 时间轴 */
.page-home .home-svg-wrap {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--grid-line);
  background: rgba(18, 26, 46, 0.5);
}

.page-home .home-timesvg {
  display: block;
  width: 100%;
  height: auto;
}

/* 订阅时段 chips */
.page-home .home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.page-home .home-chips button {
  padding: 7px 12px;
  background: rgba(18, 26, 46, 0.6);
  border: 1px solid var(--grid-line);
  border-radius: 2px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.page-home .home-chips button:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
}

.page-home .home-chips button[aria-pressed="true"] {
  background: rgba(0, 255, 135, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.page-home .home-sub-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.page-home .home-inline-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--electric-blue);
}

.page-home .home-inline-link:hover {
  color: var(--neon-green);
}

/* 旧版本资料库赛季条 */
.page-home .home-season-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.page-home .home-season-bar button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--grid-line);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.page-home .home-season-bar button:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
}

.page-home .home-archive-note {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- 数据能力 ---------- */
.page-home .home-data-cap {
  padding: 32px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-home .home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .home-stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
  background: rgba(18, 26, 46, 0.7);
  border: 1px solid var(--grid-line);
  border-top: 2px solid var(--neon-green);
}

.page-home .home-stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(135deg, transparent 0, transparent 50%, rgba(0, 255, 135, 0.06) 50%, rgba(0, 255, 135, 0.06) 100%);
  background-size: 10px 10px;
}

.page-home .home-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
  color: var(--text-white);
}

.page-home .home-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.page-home .home-data-details {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-home .home-data-details details {
  border: 1px solid var(--grid-line);
  background: rgba(18, 26, 46, 0.5);
}

.page-home .home-data-details summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 14px;
  color: var(--electric-blue);
}

.page-home .home-data-details summary::-webkit-details-marker {
  display: none;
}

.page-home .home-data-details summary::after {
  content: "+";
  float: right;
  font-family: var(--font-heading);
  color: var(--neon-green);
}

.page-home .home-data-details details[open] summary::after {
  content: "–";
}

.page-home .home-data-details details p {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px dashed var(--grid-line);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- 信任声明 ---------- */
.page-home .home-trust {
  margin-top: 48px;
  padding: 28px;
  text-align: center;
  background: rgba(18, 26, 46, 0.5);
  border: 1px solid var(--grid-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-home .home-trust-brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--neon-green);
}

.page-home .home-trust-text {
  max-width: 60ch;
  margin: 12px auto 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-home .home-trust-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-home .home-trust-links a {
  padding: 6px 14px;
  border: 1px solid var(--grid-line);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-home .home-trust-links a:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
}

/* ==========================================================
   桌面端增强
   ========================================================== */
@media (min-width: 720px) {
  .page-home .home-match-card {
    grid-template-columns: 1.2fr 1fr;
  }

  .page-home .home-match-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
  }

  .page-home .home-stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 860px) {
  .page-home .home-collect,
  .page-home .home-subscribe,
  .page-home .home-archive {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .page-home .home-collect {
    grid-template-columns: 1fr 1.2fr;
  }

  .page-home .home-subscribe {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 16px;
    align-items: start;
  }

  .page-home .home-dir-cards {
    display: block;
    padding: 12px 0 0;
  }

  .page-home .home-dir-card {
    width: 72%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .page-home .home-dir-card:nth-child(2) {
    margin: -64px 0 0 16%;
  }

  .page-home .home-dir-card:nth-child(3) {
    margin: -72px 0 0 28%;
  }

  .page-home .home-dir-card:hover {
    z-index: 2;
  }
}
