.page-home {
  --home-cut: 18px;
  background: var(--space);
  color: var(--ice);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

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

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p,
.page-home figure {
  margin: 0;
}

/* ---------- 首屏 ---------- */
.home-hero {
  padding: clamp(26px, 5vw, 58px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--divide);
}

.home-hero__grid {
  display: grid;
  gap: 26px;
}

.home-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.home-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--divide);
  color: var(--tick);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-tag--live {
  color: var(--green);
  border-color: rgba(55, 192, 138, 0.45);
  letter-spacing: 0.06em;
}

.home-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(55, 192, 138, 0.16);
  flex: none;
}

.home-hero h1 {
  font-size: clamp(32px, 6.4vw, 66px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 18px;
}

.home-hero__lede {
  max-width: 34em;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--ice);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--divide);
  color: var(--ice);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.home-cta:hover,
.home-cta:focus-visible {
  border-color: var(--orange);
  color: var(--paper);
}

.home-cta--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--space);
  font-weight: 600;
}

.home-cta--solid:hover,
.home-cta--solid:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--space);
}

.home-hero__visual {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--divide);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
  overflow: hidden;
}

.home-hero__visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.7);
}

.home-tips {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.home-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--divide);
  border-left: 2px solid var(--orange);
  background: var(--panel);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ice);
}

.home-tip--alt {
  border-left-color: var(--green);
}

.home-tip__key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 4px;
}

.home-tip--alt .home-tip__key {
  color: var(--green);
}

/* ---------- 索引带 ---------- */
.home-index-band {
  padding: clamp(26px, 4vw, 40px) 0 clamp(34px, 5vw, 56px);
}

.home-index__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.home-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--divide);
  border: 1px solid var(--divide);
}

.home-index__item {
  display: flex;
}

.home-index__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 20px 16px 22px;
  background: var(--space);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.home-index__link:hover,
.home-index__link:focus-visible {
  background: var(--panel);
  border-left-color: var(--orange);
}

.home-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--link);
  margin-bottom: 14px;
  transition: color 0.2s var(--ease);
}

.home-index__link:hover .home-index__num {
  color: var(--orange);
}

.home-index__title {
  display: block;
  font-size: 19px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 8px;
}

.home-index__desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 区块标题 ---------- */
.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 26px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.home-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
}

.home-section-head h2 {
  flex: 1 1 100%;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.home-section-head p {
  flex: 1 1 100%;
  max-width: 54em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
}

/* ---------- 三入口 ---------- */
.home-gates {
  padding: clamp(34px, 5.5vw, 64px) 0;
  border-top: 1px solid var(--divide);
  background: var(--space);
}

.home-gates__row {
  display: grid;
  gap: 16px;
}

.home-gate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--divide);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.home-gate__num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue);
  transition: color 0.2s var(--ease);
}

.home-gate:hover .home-gate__num {
  color: var(--orange);
}

.home-gate h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--paper);
}

.home-gate p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ice);
}

.home-gate__link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--divide);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--link);
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.home-gate__link:hover,
.home-gate__link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.home-gates__foot {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.home-gates__media {
  overflow: hidden;
  border: 1px solid var(--divide);
  background: var(--panel);
}

.home-gates__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.65);
}

.home-gates__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  border-left: 2px solid var(--tick);
  padding-left: 16px;
}

/* ---------- 沿革卡片 ---------- */
.home-chronicle {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0;
  border-top: 1px solid var(--divide);
  overflow: hidden;
}

.home-chronicle__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.home-chronicle .shell {
  position: relative;
  z-index: 1;
}

.home-cards {
  display: grid;
  gap: 14px;
}

.home-card {
  padding: 22px 20px 24px;
  background: var(--space);
  border: 1px solid var(--divide);
  border-top: 2px solid var(--divide);
  transition: border-color 0.2s var(--ease);
}

.home-card:hover {
  border-top-color: var(--orange);
}

.home-card--tall {
  background: var(--panel);
}

.home-card__year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--tick);
}

.home-card__year::before {
  content: "";
  width: 26px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--tick) 0 4px, transparent 4px 8px);
}

.home-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 10px;
}

.home-card p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--ice);
}

.home-more {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--divide);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--link);
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.home-more:hover,
.home-more:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 速查列表 ---------- */
.home-lookup {
  padding: clamp(34px, 5.5vw, 66px) 0;
  border-top: 1px solid var(--divide);
  background: var(--panel);
}

.home-lookup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--divide);
}

.home-lookup__row {
  border-bottom: 1px solid var(--divide);
}

.home-lookup__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 12px 16px 14px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ice);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.home-lookup__link:hover,
.home-lookup__link:focus-visible {
  border-left-color: var(--orange);
  background: rgba(31, 78, 121, 0.22);
}

.home-lookup__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--tick);
}

.home-lookup__body {
  display: block;
  min-width: 0;
}

.home-lookup__title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 4px;
}

.home-lookup__desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
}

.home-lookup__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--link);
  transition: color 0.2s var(--ease);
}

.home-lookup__link:hover .home-lookup__arrow {
  color: var(--orange);
}

.home-lookup__foot {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.home-lookup__foot a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--divide);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

/* ---------- 稳定版条带 ---------- */
.home-vault {
  position: relative;
  border-top: 1px solid var(--divide);
  background: var(--space);
  overflow: hidden;
}

.home-vault__deco {
  position: absolute;
  left: 0;
  top: 0;
  width: 46%;
  height: 100%;
  pointer-events: none;
}

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

.home-vault__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 26px 0 30px;
}

.home-vault__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.home-vault__meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.home-vault__link {
  justify-self: start;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--divide);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--link);
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.home-vault__link:hover,
.home-vault__link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

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

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

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

@media (min-width: 760px) {
  .home-lookup__link {
    padding: 20px 16px 20px 18px;
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 44px;
    align-items: start;
  }

  .home-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-gates__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .home-gates__foot {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: center;
    gap: 28px;
    margin-top: 26px;
  }

  .home-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .home-card--tall {
    margin-top: 26px;
    padding-bottom: 46px;
  }

  .home-card--short {
    margin-top: 52px;
  }

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

  .home-vault__link {
    justify-self: end;
  }
}

@media (min-width: 1180px) {
  .home-hero__visual img {
    min-height: 320px;
  }

  .home-section-head h2 {
    flex: 0 1 auto;
  }

  .home-section-head p {
    flex: 1 1 auto;
    max-width: 40em;
  }
}
