/* ============ 首页专属 ============ */
.page-home {
  --home-gutter: 1.25rem;
  --home-orange: #FF6B2C;
  --home-navy: #0F2A4A;
  --home-deep: #0B2242;
  background: var(--bg-content);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ---------- 页面上下文 ---------- */
.page-home .page-context {
  background: var(--snow);
  border-bottom: 1px solid var(--line);
}
.page-home .page-context-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.page-home .page-context-meta {
  color: var(--muted);
  margin: 0;
  font-size: 0.8125rem;
}

/* ---------- 通用章节标题 ---------- */
.page-home .page-section {
  padding: 4.5rem 0;
  position: relative;
}
.page-home .section-heading {
  position: relative;
  padding-top: 3rem;
  margin-bottom: 2.5rem;
}
.page-home .section-num {
  position: absolute;
  top: -1rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(27, 58, 107, 0.08);
  pointer-events: none;
  z-index: 0;
}
.page-home .section-title,
.page-home .section-lead {
  position: relative;
  z-index: 1;
}
.page-home .section-title {
  margin: 0.25rem 0 0.5rem;
}
.page-home .section-lead {
  max-width: 64ch;
  color: var(--muted);
  margin: 0;
}

/* ---------- 首屏 / 高原主场 ---------- */
.page-home .hero-section {
  background: linear-gradient(140deg, var(--home-deep) 0%, var(--bg-main) 58%, #12385F 100%);
  color: var(--snow);
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.page-home .hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 12px;
  background: var(--accent);
  z-index: 3;
}
.page-home .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.page-home .hero-copy .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.page-home .hero-copy .section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.page-home .hero-brand-top {
  display: block;
}
.page-home .hero-brand-sub {
  display: block;
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--secondary);
  margin-top: 0.5rem;
}
.page-home .hero-lead {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: rgba(240, 246, 252, 0.86);
  font-size: 1rem;
  line-height: 1.8;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}
.page-home .hero-actions .btn-outline {
  border-color: rgba(240, 246, 252, 0.55);
  color: var(--snow);
  background: transparent;
}
.page-home .hero-actions .btn-outline:hover {
  border-color: var(--snow);
  background: rgba(255, 255, 255, 0.08);
}
.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 246, 252, 0.16);
  max-width: 520px;
}
.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.page-home .stat-label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(240, 246, 252, 0.6);
}
.page-home .hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 88%, 0 100%);
  background: var(--home-navy);
  margin-left: calc(-1 * var(--home-gutter));
  margin-right: calc(-1 * var(--home-gutter));
}
.page-home .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .hero-visual-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(11, 34, 66, 0.78);
  color: var(--snow);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  z-index: 2;
}

/* ---------- 现在进行时 ---------- */
.page-home .current-section {
  background: var(--bg-content);
}
.page-home .current-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.page-home .current-card {
  border: 1px solid var(--line);
  border-left-width: 4px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.page-home .current-card--orange {
  border-left-color: var(--accent);
}
.page-home .current-card--blue {
  border-left-color: var(--primary);
}
.page-home .current-card--dark {
  border-left-color: var(--home-deep);
  background: var(--snow);
}
.page-home .current-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(27, 58, 107, 0.12);
}
.page-home .current-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.page-home .current-text {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
  flex: 1;
}
.page-home .card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}
.page-home .card-link:hover {
  border-bottom-color: currentColor;
}

/* ---------- V3版攻略库·第12期 ---------- */
.page-home .guide-section {
  background: var(--snow);
}
.page-home .guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.page-home .guide-cover {
  position: relative;
  aspect-ratio: 640 / 800;
  overflow: hidden;
  border: 1px solid var(--line);
}
.page-home .guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .guide-issue {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}
.page-home .guide-content > p {
  color: var(--text-main);
  margin: 0 0 1.25rem;
}
.page-home .guide-points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.page-home .guide-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.page-home .guide-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.75rem;
  height: 2px;
  background: var(--accent);
}

/* ---------- 攻略轮播 ---------- */
.page-home .guide-slider {
  margin: 1.75rem 0;
  position: relative;
}
.page-home .guide-slide-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .guide-slide-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.page-home .guide-slide-track {
  display: flex;
  width: 300%;
  transition: transform 0.45s var(--ease);
}
.page-home .guide-slide-card {
  flex: 0 0 calc(100% / 3);
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
  min-height: 178px;
}
.page-home .guide-slide-card:last-child {
  border-right: 0;
}
.page-home .guide-slide-card h4 {
  margin: 0.875rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.page-home .guide-slide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.page-home .guide-slide-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.page-home .guide-slide-dot {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  user-select: none;
}
.page-home .guide-slide-dot:hover {
  border-color: var(--accent);
}
.page-home #guide-slide-new:checked ~ .guide-slide-viewport .guide-slide-track {
  transform: translateX(0);
}
.page-home #guide-slide-tac:checked ~ .guide-slide-viewport .guide-slide-track {
  transform: translateX(-33.3333%);
}
.page-home #guide-slide-gain:checked ~ .guide-slide-viewport .guide-slide-track {
  transform: translateX(-66.6666%);
}
.page-home #guide-slide-new:checked ~ .guide-slide-nav .guide-slide-dot[for="guide-slide-new"],
.page-home #guide-slide-tac:checked ~ .guide-slide-nav .guide-slide-dot[for="guide-slide-tac"],
.page-home #guide-slide-gain:checked ~ .guide-slide-nav .guide-slide-dot[for="guide-slide-gain"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- 攻略行动 ---------- */
.page-home .guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.page-home .guide-note {
  color: var(--muted);
  margin: 0;
}

/* ---------- 开服日历 ---------- */
.page-home .calendar-section {
  background: var(--bg-content);
}
.page-home .calendar-section .section-heading {
  background: linear-gradient(90deg, rgba(199, 222, 247, 0.5), rgba(199, 222, 247, 0));
  padding: 3rem 1rem 1.5rem;
}
.page-home .calendar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
.page-home .calendar-table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}
.page-home .calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.page-home .calendar-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  background: var(--bg-main);
  color: var(--snow);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(240, 246, 252, 0.15);
}
.page-home .calendar-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  vertical-align: middle;
}
.page-home .calendar-table tbody tr:last-child td {
  border-bottom: 0;
}
.page-home .calendar-table tbody tr:hover {
  background: var(--snow);
}
.page-home .calendar-footnote {
  color: var(--muted);
  margin: 0.875rem 0 0;
}
.page-home .calendar-aside {
  border: 1px solid var(--line);
  background: var(--home-navy);
  color: var(--snow);
}
.page-home .calendar-aside img {
  width: 100%;
  height: auto;
  display: block;
}
.page-home .calendar-aside-note {
  color: rgba(240, 246, 252, 0.65);
  padding: 0.875rem 1rem;
  margin: 0;
  font-size: 0.8125rem;
}

/* ---------- 收藏星标 ---------- */
.page-home .cal-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.page-home .cal-star-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .cal-star-icon {
  font-size: 1.375rem;
  line-height: 1;
  color: var(--line);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .cal-star-icon:hover {
  color: var(--accent);
}
.page-home .cal-star-input:checked + .cal-star-icon {
  color: var(--accent);
  transform: scale(1.15);
}

/* ---------- 礼包领取流程 ---------- */
.page-home .gift-section {
  background: var(--snow);
}
.page-home .gift-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.page-home .gift-visual {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-main);
  aspect-ratio: 560 / 620;
}
.page-home .gift-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .gift-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.page-home .gift-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.25rem;
}
.page-home .gift-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.375rem;
  bottom: 0;
  width: 2px;
  height: 1.25rem;
  background: var(--line);
}
.page-home .step-num {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 107, 44, 0.12);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 107, 44, 0.3);
}
.page-home .step-body h3 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.page-home .step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.page-home .gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* ---------- 更新日志速览 ---------- */
.page-home .changelog-section {
  background: var(--bg-content);
}
.page-home .changelog-list {
  display: grid;
  gap: 1rem;
}
.page-home .change-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.page-home .change-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.08);
}
.page-home .change-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.page-home .change-version {
  color: var(--primary);
  font-weight: 700;
}
.page-home .change-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.page-home .change-summary {
  margin: 0.875rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(27, 58, 107, 0.14);
}
.page-home .change-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.page-home .change-extra p {
  margin: 0.875rem 0 0;
  color: var(--text-main);
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  background: var(--snow);
  border-top: 1px dashed var(--line);
}
.page-home .change-item:hover .change-extra {
  max-height: 12rem;
}
.page-home .changelog-more {
  margin-top: 1.75rem;
}

/* ---------- 关于品牌 ---------- */
.page-home .brand-section {
  background: linear-gradient(160deg, var(--home-deep) 0%, var(--bg-main) 70%, var(--primary) 100%);
  color: var(--snow);
  padding: 5rem 0 8rem;
  overflow: hidden;
}
.page-home .brand-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-home .brand-copy {
  max-width: 640px;
  position: relative;
  padding-top: 3.25rem;
}
.page-home .brand-copy .section-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.page-home .brand-copy .section-num {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-family: var(--font-mono);
  font-weight: 800;
  line-height: 1;
  z-index: 0;
}
.page-home .brand-copy .section-title,
.page-home .brand-copy p {
  position: relative;
  z-index: 1;
}
.page-home .brand-copy .section-title {
  margin: 0.25rem 0 1rem;
  color: #fff;
}
.page-home .brand-copy p {
  color: rgba(240, 246, 252, 0.82);
  margin: 0 0 1rem;
  line-height: 1.75;
}
.page-home .brand-copy .btn-light {
  margin-top: 0.75rem;
}
.page-home .brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 246, 252, 0.2);
  background: rgba(255, 255, 255, 0.04);
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.page-home .brand-badge-letter {
  font-family: var(--font-title);
  font-size: clamp(6rem, 16vw, 10rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.page-home .brand-mountains-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  display: block;
  pointer-events: none;
}

/* ---------- 桌面端适配 ---------- */
@media (min-width: 720px) {
  .page-home .page-section {
    padding: 5rem 0;
  }
  .page-home .current-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .guide-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }
  .page-home .calendar-layout {
    grid-template-columns: 1fr auto;
  }
  .page-home .gift-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
  }
  .page-home .hero-visual {
    margin: 0;
  }
}

@media (min-width: 960px) {
  .page-home .hero-section {
    padding: 4rem 0 5rem;
  }
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 1rem 4rem;
    min-height: min(720px, 88vh);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .page-home .hero-visual {
    aspect-ratio: 9 / 10;
    min-height: 540px;
  }
  .page-home .hero-lead {
    font-size: 1.0625rem;
  }
  .page-home .calendar-layout {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .page-home .brand-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .page-home .brand-badge {
    max-width: 320px;
  }
}
