/* ===================================================
   首页 · page-home
   海报式分层首屏 + 连续画布长文区
   =================================================== */

.page-home {
  --home-num-col: 64px;
  --home-cell-gap: 1px;
}

/* ---------- 通用：章节题头 ---------- */
.page-home .chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 880px) {
  .page-home .chapter {
    grid-template-columns: var(--home-num-col) minmax(0, 1fr);
    gap: 0 2.25rem;
    align-items: start;
  }
}

.page-home .chapter__num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding-top: 0.65rem;
  border-top: 3px solid var(--slate);
  color: var(--slate);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .section--ink .chapter__num,
.page-home .section--deep .chapter__num {
  color: var(--mist);
  border-top-color: var(--cyan);
}

.page-home .section--ink .chapter[data-revealed] .chapter__num,
.page-home .section--deep .chapter[data-revealed] .chapter__num {
  color: var(--cyan);
}

.page-home .chapter__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-home .section--paper .chapter__head h2 { color: var(--paper-ink); }
.page-home .section--ink .chapter__head h2,
.page-home .section--deep .chapter__head h2 { color: var(--paper); }

.page-home .chapter__lede {
  margin: 0.9rem 0 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.75;
}

.page-home .section--paper .chapter__lede { color: var(--paper-ink); opacity: 0.82; }
.page-home .section--ink .chapter__lede,
.page-home .section--deep .chapter__lede { color: var(--mist); }

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(5rem, 11vw, 9rem);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 214, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 214, 240, 0.055) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  top: -28%;
  right: -18%;
  width: min(780px, 80vw);
  height: min(780px, 80vw);
  background: radial-gradient(circle, rgba(138, 107, 255, 0.3), transparent 62%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .breadcrumb {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 980px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.page-home .hero__kicker {
  display: block;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cyan);
}

.page-home .hero__lede {
  max-width: 46ch;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
  color: var(--mist);
}

.page-home .hero__facts {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  max-width: 54ch;
}

.page-home .hero__facts li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.7rem;
  border-top: var(--line);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 12px;
  height: 2px;
  background: var(--amber);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* 竖排章节索引 */
.page-home .hero__index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--line);
}

.page-home .hero__index li {
  border-bottom: var(--line);
}

.page-home .idx-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.2rem;
  font-size: 0.97rem;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-home .idx-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--slate);
  transition: color var(--dur) var(--ease);
}

.page-home .idx-rule {
  flex: 1 1 1.5rem;
  height: 2px;
  background: currentColor;
  opacity: 0.28;
  transform-origin: left center;
  transform: scaleX(var(--idx-w, 1));
  transition: opacity var(--dur) var(--ease);
}

.page-home .hero__index li:nth-child(1) .idx-rule { --idx-w: 0.94; }
.page-home .hero__index li:nth-child(2) .idx-rule { --idx-w: 0.78; }
.page-home .hero__index li:nth-child(3) .idx-rule { --idx-w: 0.6; }
.page-home .hero__index li:nth-child(4) .idx-rule { --idx-w: 0.86; }
.page-home .hero__index li:nth-child(5) .idx-rule { --idx-w: 0.7; }
.page-home .hero__index li:nth-child(6) .idx-rule { --idx-w: 0.52; }

.page-home .idx-link:hover,
.page-home .idx-link:focus-visible {
  color: var(--cyan);
  padding-left: 0.65rem;
}

.page-home .idx-link:hover .idx-num,
.page-home .idx-link:focus-visible .idx-num { color: var(--amber); }
.page-home .idx-link:hover .idx-rule,
.page-home .idx-link:focus-visible .idx-rule { opacity: 0.75; }

.page-home .hero__figure {
  margin-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-home .hero__cut {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(34px, 6vw, 92px);
  background: var(--paper);
  clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 01 两条推进线 ---------- */
.page-home .lines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 960px) {
  .page-home .lines-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-home .lines-col {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.page-home .line-card {
  position: relative;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink-800);
  box-shadow: 8px 8px 0 rgba(11, 22, 51, 0.1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .line-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  bottom: -2px;
  width: 6px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.page-home .line-card:hover,
.page-home .line-card:focus-within {
  transform: translate(2px, 2px);
  border-color: var(--amber);
  box-shadow: 4px 4px 0 rgba(255, 179, 71, 0.55);
}

.page-home .line-card__tag {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-900);
  background: var(--amber);
}

.page-home .line-card__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--paper-ink);
}

.page-home .line-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--paper-ink);
}

.page-home .line-card__meta {
  margin-top: 0.9rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(16, 20, 24, 0.24);
  font-size: 0.875rem !important;
  color: var(--slate) !important;
}

.page-home .lines-more {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.page-home .lines-more a {
  color: var(--ink-800);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}

.page-home .lines-more a:hover { color: var(--violet); }

@media (min-width: 960px) {
  .page-home .lines-figure {
    margin-top: clamp(2rem, 5vw, 4rem);
  }
}

/* ---------- 02 物料 ---------- */
.page-home .materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 960px) {
  .page-home .materials-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-home .material-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
}

.page-home .material-item {
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2vw, 1.5rem);
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(16, 20, 24, 0.16);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .material-item:hover {
  transform: translate(2px, 2px);
  border-color: var(--amber);
  box-shadow: 6px 6px 0 rgba(255, 179, 71, 0.38);
}

.page-home .material-item__title {
  margin: 0 0 0.42rem;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--paper-ink);
}

.page-home .material-item__desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--paper-ink);
}

.page-home .material-item__use {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--slate);
}

/* 03 检验七类 */
.page-home .checklist {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(16, 20, 24, 0.2);
}

.page-home .checklist__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-cell-gap);
  background: rgba(16, 20, 24, 0.18);
  border: 1px solid rgba(16, 20, 24, 0.18);
}

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

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

.page-home .checklist__grid li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(0.9rem, 1.8vw, 1.2rem);
  background: var(--paper);
}

.page-home .checklist__grid .num {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.page-home .checklist__grid b {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--paper-ink);
}

.page-home .checklist__foot {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
}

/* ---------- 04 大屏设备 ---------- */
.page-home .device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 960px) {
  .page-home .device-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-home .device-copy__lede {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .device-points {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
}

.page-home .device-points li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.8rem;
  border-bottom: var(--line);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .device-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1.3rem;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}

.page-home .device-copy .btn {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

@media (min-width: 960px) {
  .page-home .device-figure {
    margin-top: clamp(1rem, 3vw, 2.5rem);
  }
}

/* ---------- 05 辽宁通道 ---------- */
.page-home .liaoning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 880px) {
  .page-home .liaoning-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-home .liaoning-copy p {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--paper-ink);
}

.page-home .liaoning-copy p:last-child { margin-bottom: 0; }

.page-home .contact-block {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ink-800);
  border: 2px solid var(--cyan);
  box-shadow: 8px 8px 0 rgba(53, 230, 210, 0.2);
  color: var(--mist);
}

.page-home .contact-block__label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .contact-block__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--line);
}

.page-home .contact-block__key {
  min-width: 5rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.page-home .contact-block__value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-all;
}

.page-home .contact-block__note {
  margin: 1rem 0 1.35rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 06 更新节奏 ---------- */
.page-home .cadence-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-cell-gap);
  background: rgba(201, 214, 240, 0.18);
  border: 1px solid rgba(201, 214, 240, 0.18);
}

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

.page-home .cadence-cell {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
  background: var(--ink-800);
}

.page-home .cadence-cell__value {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.page-home .cadence-cell--amber .cadence-cell__value {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--amber);
}

.page-home .cadence-cell__label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .cadence-foot {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .cadence-foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .cadence-foot a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- 窄屏与降级 ---------- */
@media (max-width: 480px) {
  .page-home .hero__kicker { letter-spacing: 0.2em; }
  .page-home .checklist__grid { grid-template-columns: minmax(0, 1fr); }
  .page-home .cadence-grid { grid-template-columns: minmax(0, 1fr); }
  .page-home .idx-rule { display: none; }
  .page-home .contact-block__key { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .line-card,
  .page-home .material-item,
  .page-home .idx-link,
  .page-home .contact-block,
  .page-home .cadence-foot a {
    transition-duration: 1ms;
  }
  .page-home .line-card:hover,
  .page-home .material-item:hover,
  .page-home .line-card:focus-within {
    transform: none;
  }
}
