.page-home {
  --home-card: rgba(232, 236, 244, .06);
  --home-edge: rgba(232, 236, 244, .26);
  display: block;
}

/* ============ 首屏 ============ */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--silver);
  padding: 40px 0 56px;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 20, 40, .58) 0%, rgba(10, 20, 40, .90) 66%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 20, 40, .94) 0%, rgba(10, 20, 40, .30) 78%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 36px;
}

.page-home .hero-brand .breadcrumb {
  margin: 0 0 18px;
}

.page-home .hero-brand .breadcrumb ol {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--dim);
}

.page-home .hero-title {
  margin: 10px 0 16px;
  font-size: clamp(30px, 7.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-home .hero-sub {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(232, 236, 244, .78);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .hero-hint {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}

/* 索引卡 */
.page-home .hero-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .hero-cards > li {
  min-width: 0;
}

.page-home .index-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas:
    "num title"
    "num desc";
  gap: 4px 16px;
  padding: 16px 18px;
  border: var(--bd) solid var(--home-edge);
  border-radius: var(--radius);
  background: var(--home-card);
  color: var(--silver);
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}

.page-home .index-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
}

.page-home .index-title {
  grid-area: title;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.page-home .index-desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 236, 244, .70);
}

.page-home .index-card:hover,
.page-home .index-card:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 106, 26, .10);
  transform: translate(-2px, -2px);
}

/* ============ 章节标题 ============ */
.page-home .sec-head {
  position: relative;
  max-width: 760px;
  margin-bottom: 30px;
}

.page-home .section-index {
  position: absolute;
  top: -.34em;
  left: -6px;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: rgba(18, 58, 107, .08);
  pointer-events: none;
  user-select: none;
}

.page-home .sec-head > *:not(.section-index),
.page-home .path-copy > *:not(.section-index),
.page-home .help-copy > *:not(.section-index) {
  position: relative;
  z-index: 1;
}

.page-home .section-title {
  margin: 8px 0 12px;
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--blue);
}

.page-home .lede {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--gray);
}

/* ============ 筛选条 ============ */
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: var(--bd) solid var(--line);
}

.page-home .chip {
  padding: 7px 15px;
  border: var(--bd) solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.page-home .chip:hover {
  border-color: var(--orange);
}

.page-home .chip--active,
.page-home .chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.page-home .filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
}

/* ============ 入口索引墙 ============ */
.page-home .entry-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 20px 18px 16px;
  border: var(--bd) solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--orange);
}

.page-home .entry-card[hidden] {
  display: none;
}

.page-home .entry-save {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--teal);
}

.page-home .entry-name {
  padding-right: 56px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue);
}

.page-home .entry-desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.72;
  color: var(--gray);
}

.page-home .entry-go {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  border-bottom: 2px solid transparent;
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  border-color: var(--orange);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}

.page-home .entry-card:hover .entry-go {
  border-bottom-color: var(--orange);
}

/* ============ 栏目调整提示 ============ */
.page-home .notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.page-home .notice {
  position: relative;
  padding: 24px 22px;
  border: var(--bd) solid var(--ink);
  border-left: 8px solid var(--amber);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 179, 1, .16), rgba(245, 179, 1, .04) 70%);
  box-shadow: var(--shadow-sm);
}

.page-home .notice .tag {
  display: inline-block;
  margin-bottom: 12px;
}

.page-home .notice-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--blue);
}

.page-home .notice p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--gray);
}

.page-home .notice-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  border-bottom: var(--bd) solid var(--orange);
}

.page-home .tag-map {
  margin: 0;
}

.page-home .tag-map img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--bd) solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  object-fit: cover;
}

.page-home .tag-map figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ============ 双端路径 ============ */
.page-home .path-section .section-index {
  color: rgba(232, 236, 244, .10);
}

.page-home .path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.page-home .section-title--light {
  color: var(--white);
}

.page-home .path-copy .lede {
  color: rgba(232, 236, 244, .74);
}

.page-home .steps {
  position: relative;
  margin: 26px 0 0;
  padding: 44px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .step-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  pointer-events: none;
}

.page-home .step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border: var(--bd) solid rgba(232, 236, 244, .22);
  border-radius: var(--radius);
  background: rgba(10, 20, 40, .78);
}

.page-home .step-num {
  position: absolute;
  top: -40px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: var(--bd) solid var(--ink);
  border-radius: 2px;
  background: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-home .step-desc {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(232, 236, 244, .70);
}

.page-home .path-note {
  margin: 22px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 236, 244, .68);
}

.page-home .path-visual {
  margin: 0;
}

.page-home .path-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--bd) solid rgba(232, 236, 244, .26);
  border-radius: var(--radius);
  object-fit: cover;
}

/* ============ 帮助中心 ============ */
.page-home .help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .help-visual {
  margin: 0;
}

.page-home .help-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--bd) solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  object-fit: cover;
}

.page-home .help-copy .lede {
  margin-bottom: 22px;
}

.page-home .help-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .help-list li {
  padding-left: 14px;
  border-left: var(--bd-strong) solid var(--cyan);
}

.page-home .help-list a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.page-home .help-list a:hover,
.page-home .help-list a:focus-visible {
  border-bottom-color: var(--orange);
}

/* ============ 服务数据 ============ */
.page-home .metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border: var(--bd) solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.page-home .metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--white);
}

.page-home .metric-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--blue);
}

.page-home .metric-unit {
  margin-left: 2px;
  font-size: .5em;
  font-weight: 700;
  color: var(--gray);
}

.page-home .metric-label {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

.page-home .metric-bar {
  display: block;
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.page-home .metric-bar i {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.page-home .eco {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 26px 24px;
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .eco p {
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(232, 236, 244, .82);
}

/* ============ 响应式 ============ */
@media (min-width: 600px) {
  .page-home .entry-wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .entry-wall {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .notice-grid {
    grid-template-columns: 7fr 5fr;
    gap: 30px;
  }
  .page-home .help-grid {
    grid-template-columns: 5fr 6fr;
    gap: 52px;
  }
  .page-home .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .page-home .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    padding: 72px 0 96px;
  }
  .page-home .hero-inner {
    grid-template-columns: 5fr 6fr;
    gap: 68px;
    align-items: center;
  }
  .page-home .hero-title {
    font-size: clamp(44px, 4.8vw, 74px);
  }
  .page-home .hero-sub {
    font-size: 17px;
  }
  .page-home .hero-cards {
    gap: 14px;
  }
  .page-home .hero-cards > li:nth-child(2) {
    margin-left: 34px;
  }
  .page-home .hero-cards > li:nth-child(3) {
    margin-left: 68px;
  }
  .page-home .hero-cards > li:nth-child(4) {
    margin-left: 102px;
  }
  .page-home .path-grid {
    grid-template-columns: 6fr 5fr;
    gap: 56px;
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .page-home .section-index {
    font-size: 96px;
    top: -.36em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .index-card,
  .page-home .entry-card,
  .page-home .chip {
    transition: none;
  }
  .page-home .index-card:hover,
  .page-home .entry-card:hover {
    transform: none;
  }
}

.page-home {
  --w: 1rem;
}
