.page-home {
  --h-line: var(--xb-rule);
  --h-rail-w: 76px;
  position: relative;
  display: block;
  color: var(--xb-snow);
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(255, 106, 31, .10), transparent 62%),
    radial-gradient(820px 420px at 6% 34%, rgba(27, 58, 92, .55), transparent 68%),
    linear-gradient(180deg, var(--xb-deep) 0%, #0A1A2E 55%, #081522 100%);
  font-family: var(--xb-font-cn);
  overflow-x: clip;
}

/* ---------- 面包屑 ---------- */
.page-home .h-crumb-wrap {
  padding-top: clamp(14px, 2vw, 24px);
}
.page-home .xb-breadcrumb {
  font-family: var(--xb-font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--xb-mist);
  text-transform: uppercase;
}
.page-home .h-crumb__current {
  color: var(--xb-orange);
}

/* ---------- 首屏框景 ---------- */
.page-home .h-hero {
  padding-top: clamp(14px, 2vw, 24px);
}
.page-home .h-frame {
  position: relative;
  border: 1px solid var(--h-line);
  border-radius: var(--xb-radius);
  background: var(--xb-night);
  box-shadow: var(--xb-shadow);
  overflow: hidden;
  isolation: isolate;
}
.page-home .h-frame::before,
.page-home .h-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--xb-rule) 0 1px, transparent 1px 18px);
  opacity: .8;
  pointer-events: none;
  z-index: 4;
}
.page-home .h-frame::before { top: 0; }
.page-home .h-frame::after { bottom: 0; }

.page-home .h-frame__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  z-index: 0;
}
.page-home .h-frame__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(10, 26, 46, .97) 0%, rgba(10, 26, 46, .91) 44%, rgba(18, 38, 63, .66) 100%);
}
.page-home .h-frame__slant {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -6%;
  width: 40%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(27, 58, 92, .5), rgba(10, 26, 46, 0));
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.page-home .h-frame__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(26px, 3.6vw, 52px) clamp(18px, 3vw, 46px);
}

/* 左侧竖排刻度索引 */
.page-home .h-rail {
  display: none;
}
.page-home .h-rail__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--xb-font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--xb-mist);
  text-transform: uppercase;
}
.page-home .h-rail__ix {
  color: var(--xb-orange);
  font-size: 12px;
}
.page-home .h-rail__rule {
  flex: 1 1 auto;
  width: 1px;
  min-height: 34px;
  background: linear-gradient(180deg, var(--xb-rule), transparent);
  margin-left: 5px;
}
.page-home .h-rail__round {
  font-size: 12px;
  color: var(--xb-green);
  border: 1px solid rgba(53, 224, 138, .4);
  border-radius: 4px;
  padding: 3px 5px;
}
.page-home .h-rail__foot {
  font-family: var(--xb-font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--xb-rule);
  writing-mode: vertical-rl;
}

/* 首屏正文 */
.page-home .h-hero__title {
  margin: 12px 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--xb-snow);
  max-width: 20ch;
}
.page-home .h-hero__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: #CBD8E4;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
}
.page-home .h-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.4vw, 30px);
}

/* 快照数字 */
.page-home .h-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(22px, 2.8vw, 34px);
  background: var(--h-line);
  border: 1px solid var(--h-line);
  border-radius: 10px;
  overflow: hidden;
}
.page-home .h-snap {
  background: rgba(10, 26, 46, .78);
  padding: 14px 16px 16px;
  transition: background .25s ease;
}
.page-home .h-snap:hover {
  background: rgba(27, 58, 92, .78);
}
.page-home .h-snap__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--xb-font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--xb-mist);
}
.page-home .h-snap__value {
  font-family: var(--xb-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--xb-snow);
}
.page-home .h-snap__value em {
  font-style: normal;
  font-size: .56em;
  font-weight: 500;
  margin-left: 4px;
  color: var(--xb-mist);
}
.page-home .h-snap--hot .h-snap__value { color: var(--xb-orange); }
.page-home .h-snap--ok .h-snap__value { color: var(--xb-green); }

/* 补时分布槽 */
.page-home .h-meters {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 560px;
}
.page-home .h-meters__cap {
  margin: 0 0 12px;
  font-family: var(--xb-font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--xb-mist);
}
.page-home .h-meter__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.page-home .h-meter__key {
  font-size: 12.5px;
  color: var(--xb-mist);
  white-space: nowrap;
}
.page-home .h-meter__val {
  font-family: var(--xb-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--xb-snow);
  text-align: right;
}
.page-home .h-meters .xb-meter {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(46, 74, 104, .55);
  overflow: hidden;
}
.page-home .h-meters .xb-meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--xb-orange), #FF9350);
}
.page-home .h-meter__row:nth-of-type(1) .xb-meter__fill { width: 22%; }
.page-home .h-meter__row:nth-of-type(2) .xb-meter__fill { width: 47%; }
.page-home .h-meter__row:nth-of-type(3) .xb-meter__fill { width: 31%; }

/* ---------- 章节头 ---------- */
.page-home .h-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--h-line);
  margin-bottom: clamp(24px, 3.2vw, 44px);
}
.page-home .h-head .xb-h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 2.9vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--xb-snow);
}
.page-home .h-head__ix {
  flex: none;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--xb-rule);
}

/* ---------- 三条分析入口 ---------- */
.page-home .h-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.page-home .h-tool {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--h-line);
  border-left: 2px solid var(--h-line);
  border-radius: var(--xb-radius);
  background: linear-gradient(160deg, var(--xb-night), rgba(10, 26, 46, .92));
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.page-home .h-tool:hover,
.page-home .h-tool:focus-within {
  border-left-color: var(--xb-orange);
  background: linear-gradient(160deg, #16304E, rgba(10, 26, 46, .94));
  transform: translateY(-3px);
}
.page-home .h-tool__ix {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--xb-rule);
  margin-bottom: 12px;
}
.page-home .h-tool .xb-h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--xb-snow);
}
.page-home .h-tool__tag {
  display: inline-block;
  margin-bottom: 12px;
}
.page-home .h-tool__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .h-tool__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--xb-mist);
}
.page-home .h-tool__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 8px;
  height: 1px;
  background: var(--xb-orange);
}
.page-home .h-tool__link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--xb-font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--xb-orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 31, .4);
  padding-bottom: 3px;
}
.page-home .h-tool__link:hover {
  border-bottom-color: var(--xb-orange);
}

/* ---------- 数据流程 ---------- */
.page-home .h-section-flow {
  position: relative;
}
.page-home .h-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 40px);
}
.page-home .h-flow__intro {
  margin: 0 0 20px;
  color: #C6D3DF;
}
.page-home .h-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--h-line);
  border: 1px solid var(--h-line);
  border-radius: 10px;
  overflow: hidden;
}
.page-home .h-flow__step {
  background: rgba(18, 38, 63, .74);
  padding: 18px 16px;
  display: grid;
  gap: 6px;
}
.page-home .h-flow__time {
  font-family: var(--xb-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--xb-orange);
}
.page-home .h-flow__time span {
  font-size: .5em;
  font-weight: 500;
  margin-left: 4px;
  color: var(--xb-mist);
}
.page-home .h-flow__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--xb-snow);
}
.page-home .h-flow__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--xb-mist);
}

/* 折叠面板 */
.page-home .h-collapses {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.page-home .h-collapse {
  border: 1px solid var(--h-line);
  border-radius: 10px;
  background: rgba(18, 38, 63, .5);
  overflow: hidden;
  transition: border-color .22s ease;
}
.page-home .h-collapse[open] {
  border-color: rgba(255, 106, 31, .5);
}
.page-home .h-collapse summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--xb-snow);
}
.page-home .h-collapse summary::-webkit-details-marker { display: none; }
.page-home .h-collapse summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--xb-font-mono);
  font-size: 16px;
  color: var(--xb-orange);
  line-height: 1;
}
.page-home .h-collapse[open] summary::after { content: "–"; }
.page-home .h-collapse__body {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--h-line);
  margin-top: -1px;
  padding-top: 14px;
}
.page-home .h-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .h-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--xb-mist);
}
.page-home .h-list li::before {
  content: "/";
  position: absolute;
  left: 0;
  font-family: var(--xb-font-mono);
  color: var(--xb-rule);
}

/* 图片容器 */
.page-home .h-media {
  position: relative;
  margin: 0;
  border: 1px solid var(--h-line);
  border-radius: var(--xb-radius);
  background:
    linear-gradient(180deg, rgba(18, 38, 63, .9), rgba(10, 26, 46, .96));
  overflow: hidden;
}
.page-home .h-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  opacity: .82;
}
.page-home .h-media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--xb-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--xb-mist);
  background: linear-gradient(0deg, rgba(10, 26, 46, .94), transparent);
}

/* ---------- 覆盖范围 ---------- */
.page-home .h-reach {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}
.page-home .h-reach__body .xb-prose {
  margin: 0 0 22px;
  color: #C6D3DF;
}
.page-home .h-reach__note {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--xb-orange);
  font-size: 14px;
  line-height: 1.7;
  color: var(--xb-mist);
}
.page-home .h-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--h-line);
  border: 1px solid var(--h-line);
  border-radius: 10px;
  overflow: hidden;
}
.page-home .h-stat {
  background: rgba(10, 26, 46, .8);
  padding: 16px 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}
.page-home .h-stat__num {
  font-family: var(--xb-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--xb-snow);
}
.page-home .h-stat__unit {
  font-size: 12px;
  color: var(--xb-orange);
}
.page-home .h-stat__label {
  flex: 1 0 100%;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--xb-mist);
}

/* ---------- 版本主线 ---------- */
.page-home .h-section-versions .h-media--versions {
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.page-home .h-versions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--h-line);
}
.page-home .h-version {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--h-line);
  transition: background .22s ease;
}
.page-home .h-version:hover {
  background: rgba(27, 58, 92, .3);
}
.page-home .h-version__code {
  font-family: var(--xb-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--xb-orange);
  letter-spacing: .04em;
}
.page-home .h-version__label {
  font-size: 14px;
  line-height: 1.65;
  color: #C6D3DF;
}
.page-home .h-version__year {
  font-size: 12.5px;
  color: var(--xb-mist);
  letter-spacing: .08em;
}
.page-home .h-version__tag {
  justify-self: start;
}
.page-home .h-versions__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(22px, 2.8vw, 34px);
}
.page-home .h-versions__cta .xb-prose {
  margin: 0;
  max-width: 60ch;
  color: var(--xb-mist);
}

/* ---------- 试用区块 ---------- */
.page-home .h-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(26px, 3.6vw, 52px);
  border: 1px solid var(--h-line);
  border-radius: var(--xb-radius);
  background: linear-gradient(120deg, rgba(27, 58, 92, .9), rgba(18, 38, 63, .62));
  overflow: hidden;
}
.page-home .h-band__glow {
  position: absolute;
  top: -40%;
  right: -12%;
  width: 46%;
  height: 180%;
  background: linear-gradient(200deg, rgba(255, 106, 31, .22), transparent 68%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.page-home .h-band__body {
  position: relative;
  z-index: 1;
}
.page-home .h-band__body .xb-h2 {
  margin: 10px 0 16px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.22;
  color: var(--xb-snow);
}
.page-home .h-band__body .xb-prose {
  margin: 0;
  max-width: 58ch;
  color: #C6D3DF;
}
.page-home .h-band__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.page-home .h-band__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  background: rgba(46, 74, 104, .6);
  border: 1px solid var(--h-line);
  border-radius: 10px;
  overflow: hidden;
}
.page-home .h-band__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: rgba(10, 26, 46, .72);
}
.page-home .h-band__key {
  font-family: var(--xb-font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--xb-mist);
}
.page-home .h-band__val {
  font-family: var(--xb-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--xb-green);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .h-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .h-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .h-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .h-version {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 18px;
  }
}

@media (min-width: 900px) {
  .page-home {
    --h-rail-w: 88px;
  }
  .page-home .h-frame__inner {
    grid-template-columns: var(--h-rail-w) minmax(0, 1fr);
  }
  .page-home .h-rail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-right: 16px;
    border-right: 1px dashed var(--h-line);
  }
  .page-home .h-snapshot {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .page-home .h-tools {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px 22px;
  }
  .page-home .h-tool--rank { grid-column: 1 / span 7; }
  .page-home .h-tool--pair {
    grid-column: 8 / span 5;
    margin-top: 34px;
  }
  .page-home .h-tool--league {
    grid-column: 2 / span 9;
  }
  .page-home .h-flow-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .page-home .h-reach {
    grid-template-columns: 5fr 7fr;
  }
  .page-home .h-band {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .page-home .h-hero__title {
    max-width: 18ch;
  }
  .page-home .h-flow-grid {
    grid-template-columns: 7fr 5fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .h-tool,
  .page-home .h-version,
  .page-home .h-snap,
  .page-home .h-collapse {
    transition: none;
  }
  .page-home .h-tool:hover,
  .page-home .h-tool:focus-within {
    transform: none;
  }
}
</main>
