.page-home {
  --home-line: rgba(143, 163, 191, .16);
  --home-line-soft: rgba(143, 163, 191, .08);
  --home-paper-line: rgba(28, 22, 16, .14);
  background: var(--navy);
  color: var(--white);
  position: relative;
}

/* ============ 首屏数据带 ============ */
.page-home .home-band {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 56px) 0 clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

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

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

.page-home .home-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 24, .92) 0%, rgba(11, 27, 51, .74) 42%, rgba(11, 27, 51, .96) 100%);
}

.page-home .home-band__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--home-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .12));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .12));
}

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

.page-home .home-context {
  margin: 0 0 clamp(18px, 3.5vw, 38px);
  padding-left: 14px;
  border-left: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .home-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.page-home .home-title__l1 {
  font-size: clamp(48px, 12vw, 108px);
  color: var(--white);
}

.page-home .home-title__l2 {
  font-size: clamp(19px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--lime);
}

.page-home .home-lede {
  max-width: 44em;
  margin: clamp(18px, 3vw, 28px) 0 0;
  font-size: 17px;
  line-height: 1.78;
  color: var(--white);
}

.page-home .home-stats {
  list-style: none;
  margin: clamp(30px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-stat {
  position: relative;
  padding: 18px 16px 22px;
  background: rgba(11, 27, 51, .82);
}

.page-home .home-stat::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--lime);
  border-left: 1px solid var(--lime);
  opacity: .7;
}

.page-home .home-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
}

.page-home .home-stat__unit {
  margin-left: 4px;
  font-size: .4em;
  letter-spacing: .06em;
  color: var(--mist);
  vertical-align: .18em;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

/* ============ 通用章节标题 ============ */
.page-home .home-head {
  max-width: 720px;
}

.page-home .home-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-home .home-h2 {
  margin: 0;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(27px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .home-sub {
  max-width: 42em;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist);
}

/* ============ 三条主线 ============ */
.page-home .home-lines {
  position: relative;
  padding: clamp(48px, 8vw, 92px) 0 clamp(36px, 5vw, 64px);
}

.page-home .home-lines__grid {
  margin-top: clamp(28px, 4.5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-line {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  transition: border-color .25s ease, transform .25s ease;
}

.page-home .home-line::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--lime);
  border-bottom: 1px solid var(--lime);
  opacity: .55;
}

.page-home .home-line:hover {
  border-color: rgba(200, 255, 77, .42);
  transform: translateY(-4px);
}

.page-home .home-line__idx {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--lime);
}

.page-home .home-line__title {
  margin: 0 0 12px;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-home .home-line__chip {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 77, .5);
  border-radius: 3px;
  transform-origin: left center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.page-home .home-line__chip:hover {
  transform: scale(1.06);
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.page-home .home-line__body {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-line__link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 77, .5);
  transition: border-color .2s ease, color .2s ease;
}

.page-home .home-line__link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.page-home .home-lines__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--navy-2);
  overflow: hidden;
}

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

.page-home .home-lines__figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ============ 更新记录（浅底章节） ============ */
.page-home .home-updates {
  position: relative;
  padding: clamp(48px, 8vw, 92px) 0;
  background: var(--cream);
  color: var(--paper-ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-updates .home-h2 {
  color: var(--paper-ink);
}

.page-home .home-updates .home-sub {
  color: #5A5046;
}

.page-home .home-updates .home-eyebrow {
  color: #A8381A;
}

.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(22px, 3.5vw, 34px) 0 22px;
}

.page-home .home-filter__btn {
  appearance: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(28, 22, 16, .26);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.page-home .home-filter__btn:hover {
  border-color: rgba(28, 22, 16, .55);
}

.page-home .home-filter__btn.is-active {
  background: var(--amber);
  border-color: var(--amber);
}

.page-home .home-updates__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-home .home-upd-list {
  display: grid;
  gap: 10px;
}

.page-home .home-upd {
  border: 1px solid var(--home-paper-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .62);
  overflow: hidden;
}

.page-home .home-upd.is-hidden {
  display: none;
}

.page-home .home-upd > summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 14px 48px 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-home .home-upd > summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: #7A6E5E;
}

.page-home .home-upd[open] > summary::after {
  content: "−";
  color: var(--paper-ink);
}

.page-home .home-upd__kind {
  justify-self: start;
  padding: 2px 9px;
  border: 1px solid rgba(28, 22, 16, .3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--paper-ink);
  white-space: nowrap;
}

.page-home .home-upd__title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--paper-ink);
}

.page-home .home-upd__when {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7A6E5E;
  white-space: nowrap;
}

.page-home .home-upd__body {
  margin: 0;
  padding: 0 20px 16px 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4A4038;
}

.page-home .home-updates__side figure {
  margin: 0;
  border: 1px solid var(--home-paper-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.page-home .home-updates__side img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.page-home .home-updates__side-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #4A4038;
}

/* ============ 平板端阅读 ============ */
.page-home .home-tablet {
  position: relative;
  padding: clamp(48px, 8vw, 92px) 0;
}

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

.page-home .home-tablet__copy .home-sub {
  margin-bottom: 0;
}

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

.page-home .home-tablet__points li {
  padding: 14px 0;
  border-top: 1px solid var(--home-line);
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-tablet__k {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber);
}

.page-home .home-tablet__figure {
  position: relative;
  margin: 0;
  border: 1px solid rgba(200, 255, 77, .28);
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-2);
  box-shadow: 0 22px 56px rgba(5, 12, 24, .6);
}

.page-home .home-tablet__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-tablet__figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--home-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ============ 下一步入口 ============ */
.page-home .home-next {
  padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 9vw, 108px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy) 0%, #081326 100%);
}

.page-home .home-next__grid {
  margin-top: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-next__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--navy-2);
  color: inherit;
  text-decoration: none;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}

.page-home .home-next__card:hover {
  border-color: rgba(255, 90, 43, .62);
  background: #16304F;
  transform: translateY(-4px);
}

.page-home .home-next__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--orange);
}

.page-home .home-next__name {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  color: var(--white);
}

.page-home .home-next__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

/* ============ 右侧章节刻度 ============ */
.page-home .home-rail {
  display: none;
}

.page-home .home-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: right;
}

.page-home .home-rail a {
  position: relative;
  display: block;
  padding-right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s ease;
}

.page-home .home-rail a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  transition: width .2s ease;
}

.page-home .home-rail a:hover {
  color: var(--white);
}

.page-home .home-rail a.is-current {
  color: var(--lime);
}

.page-home .home-rail a.is-current::after {
  width: 15px;
}

/* ============ 响应式 ============ */
@media (min-width: 640px) {
  .page-home .home-updates__grid {
    gap: 32px;
  }

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

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

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

  .page-home .home-line:nth-child(1) {
    grid-column: 1 / span 5;
    grid-row: 1;
  }

  .page-home .home-line:nth-child(2) {
    grid-column: 6 / span 7;
    grid-row: 1;
    margin-top: 32px;
  }

  .page-home .home-line:nth-child(3) {
    grid-column: 1 / span 7;
    grid-row: 2;
  }

  .page-home .home-lines__figure {
    grid-column: 8 / span 5;
    grid-row: 2;
    margin-top: -28px;
  }

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

  .page-home .home-tablet__figure {
    margin-top: -36px;
  }
}

@media (min-width: 960px) {
  .page-home .home-updates__grid {
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: start;
  }

  .page-home .home-updates__side {
    position: sticky;
    top: 120px;
  }
}

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

@media (min-width: 1280px) {
  .page-home .home-rail {
    display: block;
    position: fixed;
    top: 50%;
    right: 22px;
    z-index: 40;
    transform: translateY(-50%);
  }
}

@media (max-width: 560px) {
  .page-home .home-upd > summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .home-upd__when {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
