/* ===== 首页专属样式 · 作用域 .page-home ===== */
.page-home {
  --home-soft: rgba(242, 247, 244, .82);
  --home-faint: rgba(242, 247, 244, .64);
  --home-panel-bg: rgba(18, 82, 61, .92);
  --home-deep-bg: rgba(6, 36, 27, .88);
  display: block;
  background: var(--night-pitch);
  color: var(--ink-white);
}

.page-home .hero,
.page-home .section {
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}

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

/* ---------- 首屏脉冲 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.9rem, 5vw, 3.4rem) 0 clamp(2.4rem, 6vw, 4.4rem);
  background: linear-gradient(162deg, var(--deep-turf) 0%, var(--night-pitch) 62%);
  border-bottom: 1px solid var(--divider-line);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 78% at 80% 4%, rgba(0, 194, 255, .22), transparent 58%),
    radial-gradient(90% 60% at 6% 96%, rgba(255, 107, 53, .14), transparent 60%),
    linear-gradient(180deg, rgba(6, 36, 27, .55), rgba(6, 36, 27, .94));
}

.page-home .hero__inner {
  position: relative;
}

.page-home .hero__title {
  font-size: clamp(2.15rem, 7.2vw, 5.6rem);
  font-weight: 200;
  line-height: 1.03;
  letter-spacing: -.02em;
  margin: .75rem 0 1.1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.page-home .hero__lead {
  color: var(--home-soft);
  font-size: clamp(.98rem, 1.5vw, 1.1rem);
  line-height: 1.85;
  max-width: 58ch;
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--glass-line);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
  padding: 0;
  list-style: none;
}

.page-home .hero__stat {
  background: rgba(6, 36, 27, .74);
  backdrop-filter: blur(7px);
  padding: 1rem 1.05rem 1.15rem;
}

.page-home .hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.6vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--electric-blue);
}

.page-home .hero__stat:nth-child(2) .hero__stat-num { color: var(--neon-orange); }
.page-home .hero__stat:nth-child(3) .hero__stat-num { color: var(--rise-teal); }
.page-home .hero__stat:nth-child(4) .hero__stat-num { color: var(--ink-white); }

.page-home .hero__stat-label {
  display: block;
  margin-top: .55rem;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--index-sage);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  position: relative;
  padding: clamp(2.6rem, 6.5vw, 5.2rem) 0;
}

.page-home .section + .section {
  border-top: 1px solid var(--divider-line);
}

.page-home .section__head {
  max-width: 46rem;
  margin-bottom: clamp(1.4rem, 3.4vw, 2.6rem);
}

.page-home .section__title {
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: .5rem 0 .8rem;
}

.page-home .section__lead {
  font-size: .98rem;
  line-height: 1.85;
  color: var(--home-faint);
  max-width: 62ch;
  margin: 0;
}

.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--electric-blue);
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 194, 255, .35);
  padding-bottom: .15rem;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.page-home .link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform .25s var(--ease);
}

.page-home .link-arrow:hover,
.page-home .link-arrow:focus-visible {
  color: var(--neon-orange);
  border-color: rgba(255, 107, 53, .55);
}

.page-home .link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- 版本对照 ---------- */
.page-home .version__card {
  padding: clamp(1.15rem, 2.6vw, 1.8rem);
}

.page-home .version__card-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  margin: .9rem 0 .95rem;
}

.page-home .version__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.page-home .version__item {
  position: relative;
  padding-left: 1.15rem;
  font-size: .94rem;
  line-height: 1.78;
  color: var(--home-soft);
}

.page-home .version__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .42rem;
  height: .42rem;
  border-radius: 2px;
  background: var(--electric-blue);
  box-shadow: 0 0 8px rgba(0, 194, 255, .8);
}

.page-home .version__item strong {
  color: var(--ink-white);
  font-weight: 600;
}

.page-home .version__cta {
  margin: 1.15rem 0 0;
}

/* ---------- 订阅组合 ---------- */
.page-home .sub__aside {
  min-width: 0;
}

.page-home .sub__visual {
  margin-top: clamp(1.2rem, 3vw, 1.9rem);
  max-width: 20rem;
}

.page-home .sub__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .sub__cards {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.page-home .sub__card {
  padding: clamp(1.05rem, 2.4vw, 1.55rem);
}

.page-home .sub__card-title {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  margin: .55rem 0 .5rem;
}

.page-home .sub__card-text {
  font-size: .94rem;
  line-height: 1.8;
  color: var(--home-soft);
  margin: 0;
}

.page-home .sub__more {
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px solid var(--divider-line);
}

.page-home .sub__more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--electric-blue);
}

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

.page-home .sub__more summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
}

.page-home .sub__more[open] summary::before {
  content: "–";
}

.page-home .sub__more ul {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.page-home .sub__more li {
  position: relative;
  padding-left: .95rem;
  font-size: .87rem;
  line-height: 1.7;
  color: var(--index-sage);
}

.page-home .sub__more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .64em;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--neon-orange);
}

.page-home .sub__foot {
  margin: .25rem 0 0;
}

/* ---------- 双子数据面板 ---------- */
.page-home .section--twin {
  position: relative;
  overflow: hidden;
}

.page-home .twin__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .twin__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
}

.page-home .twin__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night-pitch) 0%, rgba(11, 61, 46, .86) 42%, var(--night-pitch) 100%);
}

.page-home .section--twin .sy-container {
  position: relative;
  z-index: 1;
}

.page-home .twin__grid {
  display: grid;
  gap: 1px;
  background: var(--divider-line);
  border: 1px solid var(--divider-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .twin__panel {
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  background: var(--home-panel-bg);
  min-width: 0;
}

.page-home .twin__panel--discipline {
  background: var(--home-deep-bg);
}

.page-home .twin__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.page-home .twin__panel-title {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -.01em;
}

.page-home .twin__panel-note {
  font-size: .86rem;
  line-height: 1.72;
  color: var(--index-sage);
  margin: .7rem 0 1rem;
}

.page-home .twin__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--divider-line);
  border-top: 1px solid var(--divider-line);
  border-bottom: 1px solid var(--divider-line);
}

.page-home .twin__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: baseline;
  gap: .75rem;
  padding: .72rem .2rem;
  background: rgba(11, 61, 46, .94);
}

.page-home .twin__panel--discipline .twin__row {
  background: rgba(6, 36, 27, .94);
}

.page-home .twin__row-key {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  color: var(--electric-blue);
}

.page-home .twin__row-note {
  font-size: .88rem;
  line-height: 1.62;
  color: var(--home-soft);
}

/* ---------- 通勤战报 ---------- */
.page-home .commute__wrap {
  display: grid;
  gap: var(--gap);
}

.page-home .commute__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .commute__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-home .commute__card {
  position: relative;
  background: var(--glass-layer);
  border: 1px solid var(--glass-line);
  border-left: 3px solid var(--neon-orange);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.page-home .commute__card:nth-child(even) {
  border-left-color: var(--electric-blue);
}

.page-home .commute__card:hover {
  background: rgba(242, 247, 244, .1);
}

.page-home .commute__meta {
  margin: 0 0 .35rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--index-sage);
}

.page-home .commute__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}

.page-home .commute__more {
  margin: 1.3rem 0 0;
}

/* ---------- 使用记录 ---------- */
.page-home .record__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--divider-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .record__item {
  background: var(--panel-green);
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.page-home .record__no {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--electric-blue);
  margin-bottom: .5rem;
}

.page-home .record__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .45rem;
  line-height: 1.45;
}

.page-home .record__desc {
  margin: 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--home-soft);
}

/* ---------- 服务中心 ---------- */
.page-home .section--service {
  background: linear-gradient(180deg, var(--night-pitch) 0%, var(--deep-turf) 100%);
}

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

.page-home .service__contact {
  list-style: none;
  margin: clamp(1.2rem, 3vw, 1.9rem) 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.page-home .service__contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.page-home .service__contact-label {
  flex: 0 0 auto;
  min-width: 4.6rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--index-sage);
}

.page-home .service__contact-value {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--ink-white);
  word-break: break-word;
}

.page-home .service__exits {
  display: grid;
  gap: .7rem;
  min-width: 0;
}

.page-home .service__exit {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 82, 61, .68);
  border: 1px solid var(--divider-line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.page-home .service__exit:hover,
.page-home .service__exit:focus-visible {
  border-color: var(--neon-orange);
  background: rgba(18, 82, 61, .96);
  transform: translateY(-2px);
}

.page-home .service__exit-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-white);
}

.page-home .service__exit-arrow {
  font-family: var(--font-mono);
  color: var(--neon-orange);
}

.page-home .service__exit-desc {
  display: block;
  margin-top: .45rem;
  font-size: .87rem;
  line-height: 1.72;
  color: var(--index-sage);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .commute__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .page-home .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .sy-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .version__grid > .version__card:nth-child(1) { grid-column: span 7; }
  .page-home .version__grid > .version__card:nth-child(2) { grid-column: span 5; }

  .page-home .sub__aside { grid-column: span 5; }
  .page-home .sub__cards { grid-column: span 7; }

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

  .page-home .commute__wrap {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

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

  .page-home .service__info { grid-column: span 5; }
  .page-home .service__exits { grid-column: span 7; }
}

@media (min-width: 1100px) {
  .page-home .hero__inner {
    padding-top: .5rem;
  }

  .page-home .twin__row {
    grid-template-columns: 5.5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .link-arrow,
  .page-home .link-arrow::after,
  .page-home .commute__card,
  .page-home .service__exit {
    transition: none;
  }
}
