/* ============================================================
   首页 page-home 专属样式
   ============================================================ */

.page-home {
  --home-gap: clamp(20px, 3vw, 32px);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(30px, 5vw, 62px) clamp(40px, 6vw, 80px);
  background:
    radial-gradient(120% 92% at 88% -14%, rgba(23, 73, 110, .95), transparent 62%),
    var(--deep-ink);
  border-bottom: 1px solid var(--line-steel);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  left: -14%;
  bottom: -42%;
  width: 66%;
  height: 118%;
  background: linear-gradient(200deg, rgba(43, 227, 210, .14), rgba(43, 227, 210, 0) 68%);
  clip-path: polygon(0 0, 100% 86%, 0 100%);
  pointer-events: none;
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
}

.page-home .hero__copy {
  min-width: 0;
}

.page-home .hero h1 {
  margin: 14px 0 18px;
  font-family: var(--font-narrow);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.14;
  color: #F2F9FA;
  max-width: 14em;
}

.page-home .hero__lead {
  margin: 0;
  max-width: 40em;
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.8;
  color: #C3DAE6;
}

.page-home .hero__steps {
  display: grid;
  gap: 2px;
  margin-top: clamp(24px, 3.6vw, 36px);
  border-top: 1px solid var(--line-steel);
}

.page-home .hero__step {
  display: grid;
  gap: 6px;
  padding: 16px 16px 18px;
  background: rgba(14, 46, 71, .62);
  border-bottom: 1px solid var(--line-steel);
  text-decoration: none;
  color: inherit;
  transition: background-color .2s ease, transform .2s ease;
}

.page-home .hero__stepidx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--glow-cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .hero__steplabel {
  font-size: 16px;
  font-weight: 700;
  color: #EAF4F6;
}

.page-home .hero__stepdesc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (hover: hover) {
  .page-home .hero__step:hover {
    background: rgba(23, 73, 110, .92);
    transform: translateY(-2px);
  }
}

.page-home .hero__step:focus-visible {
  outline: 2px solid var(--glow-cyan);
  outline-offset: 2px;
}

/* 首屏右侧切块 */
.page-home .hero__panel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(158deg, var(--tide-blue), var(--harbor-blue) 52%, var(--deep-ink));
  border: 1px solid var(--line-steel);
  box-shadow: var(--shadow-s);
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 38, .18) 40%, rgba(6, 23, 38, .88) 100%);
  pointer-events: none;
}

.page-home .hero__panel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.85);
}

.page-home .hero__panelnote {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--ice-cyan);
}

/* ---------- 当轮时间轴 ---------- */
.page-home .rounds {
  padding-block: clamp(44px, 6vw, 86px);
  background: var(--deep-ink);
}

.page-home .rounds__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 30px);
}

.page-home .rounds__timeline {
  margin-top: clamp(26px, 3.6vw, 40px);
}

.page-home .rounds__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--glow-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 227, 210, .45);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}

.page-home .rounds__link:hover {
  color: var(--ice-cyan);
  border-bottom-color: var(--ice-cyan);
}

.page-home .rounds__link:focus-visible {
  outline: 2px solid var(--glow-cyan);
  outline-offset: 3px;
}

.page-home .rounds__figure {
  position: relative;
  margin: clamp(28px, 4vw, 44px) 0 0;
  overflow: hidden;
  border: 1px solid var(--line-steel);
  background: var(--tide-blue);
}

.page-home .rounds__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  opacity: .82;
}

.page-home .rounds__figure figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ice-cyan);
}

/* ---------- 战报速览（纸色区） ---------- */
.page-home .focus {
  padding-block: clamp(44px, 6vw, 86px);
}

.page-home .focus__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(26px, 3.6vw, 40px);
}

.page-home .focus__figure {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--mint-line);
  box-shadow: var(--shadow-s);
}

.page-home .focus__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.page-home .focus__figcap {
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate-500);
  border-top: 1px solid var(--mint-line);
}

.page-home .focus__list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-home .focus__card {
  position: relative;
  padding: 18px 20px 20px;
  background: #FFFFFF;
  border: 1px solid var(--mint-line);
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.page-home .focus__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--glow-cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}

@media (hover: hover) {
  .page-home .focus__card:hover {
    transform: translateX(3px);
    border-color: rgba(43, 227, 210, .6);
    box-shadow: 0 12px 28px -22px rgba(6, 23, 38, .9);
  }
  .page-home .focus__card:hover::before {
    transform: scaleY(1);
  }
}

.page-home .focus__meta {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate-500);
}

.page-home .focus__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-900);
}

.page-home .focus__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #2C3B46;
}

.page-home .focus__events {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 12px 0 14px;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px dashed var(--mint-line);
  font-size: 13px;
  color: #3D4E5A;
}

.page-home .focus__events .mono {
  color: var(--ember-orange);
  font-variant-numeric: tabular-nums;
}

.page-home .focus__more {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--harbor-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 73, 110, .45);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.page-home .focus__more:hover {
  color: var(--ember-orange);
  border-bottom-color: var(--ember-orange);
}

.page-home .focus__more:focus-visible {
  outline: 2px solid var(--harbor-blue);
  outline-offset: 3px;
}

/* ---------- 三条主线 ---------- */
.page-home .lines {
  padding-block: clamp(44px, 6vw, 88px);
  background: linear-gradient(180deg, var(--deep-ink), var(--tide-blue) 58%, var(--deep-ink));
  border-top: 1px solid var(--line-steel);
  border-bottom: 1px solid var(--line-steel);
}

.page-home .lines__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-home .lines__copy {
  min-width: 0;
}

.page-home .lines__steps {
  display: grid;
  gap: 2px;
  margin: clamp(24px, 3.2vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-steel);
}

.page-home .lines__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-steel);
}

.page-home .lines__num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--glow-cyan);
  line-height: 1.3;
}

.page-home .lines__step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #EAF4F6;
}

.page-home .lines__step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #A9C2D0;
}

.page-home .lines__figure {
  margin: 0;
  background: var(--tide-blue);
  border: 1px solid var(--line-steel);
  box-shadow: var(--shadow-s);
}

.page-home .lines__figure .media__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 支撑数据（纸色区） ---------- */
.page-home .cap {
  padding-block: clamp(44px, 6vw, 88px);
}

.page-home .cap__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
  background: var(--mint-line);
  border: 1px solid var(--mint-line);
}

.page-home .cap__stat {
  padding: 20px 18px 22px;
  background: #FFFFFF;
}

.page-home .cap__label {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--slate-500);
}

.page-home .cap__value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
}

.page-home .cap__value .data-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ember-orange);
  font-variant-numeric: tabular-nums;
}

.page-home .cap__unit {
  font-size: 14px;
  color: var(--slate-500);
}

.page-home .cap__notes {
  display: grid;
  gap: 14px;
  max-width: 74ch;
  margin-top: clamp(24px, 3.2vw, 34px);
}

.page-home .cap__notes p {
  margin: 0;
  font-size: 16px;
  line-height: 1.82;
  color: #2C3B46;
}

/* ---------- 还需要帮助 ---------- */
.page-home .help {
  padding-block: clamp(44px, 6vw, 88px);
  background:
    radial-gradient(96% 82% at 10% -6%, rgba(23, 73, 110, .9), transparent 58%),
    var(--deep-ink);
  border-top: 1px solid var(--line-steel);
}

.page-home .help__grid {
  display: grid;
  gap: clamp(24px, 3.6vw, 44px);
  margin-top: clamp(26px, 3.6vw, 40px);
}

.page-home .help__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-steel);
}

.page-home .help__item {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line-steel);
}

.page-home .help__item h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #EAF4F6;
}

.page-home .help__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #A9C2D0;
}

.page-home .help__contact {
  padding: 22px 20px 24px;
  background: rgba(14, 46, 71, .72);
  border: 1px solid var(--line-steel);
  box-shadow: var(--shadow-s);
}

.page-home .help__contacttitle {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--glow-cyan);
}

.page-home .help__contactline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #EAF4F6;
}

.page-home .help__contactline a {
  color: var(--ice-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 246, 238, .4);
}

.page-home .help__contactline a:hover {
  color: var(--glow-cyan);
  border-bottom-color: var(--glow-cyan);
}

.page-home .help__contactline a:focus-visible {
  outline: 2px solid var(--glow-cyan);
  outline-offset: 3px;
}

.page-home .help__label {
  min-width: 3em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-home .help__contactnote {
  margin: 4px 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .totop-wrap {
  margin: clamp(30px, 4vw, 44px) 0 0;
  text-align: right;
}

.page-home .totop {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-steel);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

.page-home .totop:hover {
  color: var(--glow-cyan);
  border-bottom-color: var(--glow-cyan);
}

.page-home .totop:focus-visible {
  outline: 2px solid var(--glow-cyan);
  outline-offset: 3px;
}

/* ---------- 桌面栅格 ---------- */
@media (min-width: 640px) {
  .page-home .hero__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
  }

  .page-home .hero__panel {
    clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
    min-height: 420px;
  }

  .page-home .focus__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .help__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .lines__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .cap__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 窄屏保护 ---------- */
@media (max-width: 480px) {
  .page-home .hero__panel {
    min-height: 210px;
  }

  .page-home .focus__card {
    padding: 16px 16px 18px;
  }

  .page-home .lines__step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .page-home .cap__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .help__contact {
    padding: 18px 16px 20px;
  }
}

/* ---------- 动效退化 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero__step,
  .page-home .focus__card,
  .page-home .focus__card::before,
  .page-home .rounds__link,
  .page-home .focus__more,
  .page-home .totop {
    transition: none;
  }

  .page-home .focus__card:hover {
    transform: none;
  }

  .page-home .hero__step:hover {
    transform: none;
  }
}
