/* ================= 首页专属样式 ================= */

@keyframes pageHomePanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- 首屏 ---------- */
.page-home .hero-home {
  position: relative;
  overflow: hidden;
  padding-block: clamp(30px, 7vw, 72px) clamp(22px, 4vw, 38px);
}
.page-home .hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 84% 16%, rgba(226, 166, 59, .20), transparent 62%),
    radial-gradient(90% 70% at 6% 94%, rgba(63, 158, 134, .16), transparent 60%);
}
.page-home .hero-home__grid {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 46px);
  align-items: center;
}
.page-home .hero-home__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.05rem, 8.2vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--cream);
  margin: 14px 0 0;
}
.page-home .hero-home__title em {
  display: block;
  font-style: normal;
  color: var(--gold-soft);
}
.page-home .hero-home__lede {
  margin-top: 18px;
  max-width: 54ch;
  color: rgba(246, 239, 227, .86);
}
.page-home .hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-home .hero-home__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.page-home .hero-home__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.page-home .hero-home__facts dt {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--water);
}
.page-home .hero-home__facts dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 1.28rem;
  letter-spacing: .14em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .hero-home__visual {
  position: relative;
}
.page-home .hero-home__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: clamp(260px, 54vw, 420px);
}
.page-home .hero-home__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .dial {
  position: absolute;
  left: -8px;
  bottom: -14px;
  width: clamp(112px, 30vw, 158px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  border: 1px solid var(--gold-line);
  box-shadow: 0 14px 34px rgba(7, 24, 40, .5);
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 24, 40, .95) 0 54%, transparent 55%),
    conic-gradient(from 208deg, var(--gold) 0 61%, rgba(127, 166, 196, .22) 61% 100%);
}
.page-home .dial::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 30%;
  border-radius: 2px;
  background: var(--gold-soft);
  transform-origin: 50% 100%;
  transform: rotate(42deg);
}
.page-home .dial__ver {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .18em;
  color: var(--gold-soft);
}
.page-home .dial__note {
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--water);
}

/* ---------- 页内索引 ---------- */
.page-home .page-index {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.page-home .page-index__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  color: rgba(246, 239, 227, .72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.page-home .page-index__link .num {
  font-family: var(--font-mono);
  letter-spacing: .18em;
  color: var(--gold);
}
.page-home .page-index__link:hover,
.page-home .page-index__link.is-current {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-line);
}

/* ---------- 两步路径 ---------- */
.page-home .steps {
  list-style: none;
  margin: clamp(24px, 4vw, 38px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-home .steps__item {
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r-md);
  background: var(--cream-soft);
  border: 1px solid rgba(201, 194, 180, .7);
}
.page-home .steps__no {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--coral-deep);
}
.page-home .steps__item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--ink);
}
.page-home .steps__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-home .group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 46px);
}
.page-home .group-card {
  padding: clamp(18px, 3vw, 26px);
  border-top: 3px solid var(--gold);
}
.page-home .group-card .card__index {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--coral-deep);
}
.page-home .group-card .card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.14rem;
}
.page-home .group-card .card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* ---------- 小屏分类索引 ---------- */
.page-home .classify {
  position: relative;
  overflow: hidden;
}
.page-home .classify__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .09;
  pointer-events: none;
}
.page-home .classify__inner {
  position: relative;
  z-index: 1;
}
.page-home .cat-index {
  position: relative;
  margin-top: clamp(24px, 4vw, 38px);
}
.page-home .cat-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.page-home .cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.page-home .cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(201, 194, 180, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink-soft);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.page-home .cat-tab .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--coral-deep);
}
.page-home #cat-1:checked ~ .cat-tabs .cat-tab[for="cat-1"],
.page-home #cat-2:checked ~ .cat-tabs .cat-tab[for="cat-2"],
.page-home #cat-3:checked ~ .cat-tabs .cat-tab[for="cat-3"],
.page-home #cat-4:checked ~ .cat-tabs .cat-tab[for="cat-4"],
.page-home #cat-5:checked ~ .cat-tabs .cat-tab[for="cat-5"] {
  background: var(--canal);
  border-color: var(--canal);
  color: var(--cream);
}
.page-home #cat-1:checked ~ .cat-tabs .cat-tab[for="cat-1"] .num,
.page-home #cat-2:checked ~ .cat-tabs .cat-tab[for="cat-2"] .num,
.page-home #cat-3:checked ~ .cat-tabs .cat-tab[for="cat-3"] .num,
.page-home #cat-4:checked ~ .cat-tabs .cat-tab[for="cat-4"] .num,
.page-home #cat-5:checked ~ .cat-tabs .cat-tab[for="cat-5"] .num {
  color: var(--gold-soft);
}
.page-home #cat-1:focus-visible ~ .cat-tabs .cat-tab[for="cat-1"],
.page-home #cat-2:focus-visible ~ .cat-tabs .cat-tab[for="cat-2"],
.page-home #cat-3:focus-visible ~ .cat-tabs .cat-tab[for="cat-3"],
.page-home #cat-4:focus-visible ~ .cat-tabs .cat-tab[for="cat-4"],
.page-home #cat-5:focus-visible ~ .cat-tabs .cat-tab[for="cat-5"] {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page-home .cat-panels {
  margin-top: 16px;
}
.page-home .cat-panel {
  display: none;
  padding: clamp(20px, 3.4vw, 32px);
  border-radius: var(--r-md);
  background: var(--cream-soft);
  border: 1px solid rgba(201, 194, 180, .75);
  border-left: 3px solid var(--gold);
}
.page-home #cat-1:checked ~ .cat-panels .cat-panel--1,
.page-home #cat-2:checked ~ .cat-panels .cat-panel--2,
.page-home #cat-3:checked ~ .cat-panels .cat-panel--3,
.page-home #cat-4:checked ~ .cat-panels .cat-panel--4,
.page-home #cat-5:checked ~ .cat-panels .cat-panel--5 {
  display: block;
  animation: pageHomePanelIn 340ms var(--ease);
}
.page-home .cat-panel__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
}
.page-home .cat-panel__text {
  margin: 0 0 14px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--ink-soft);
}
.page-home .cat-panel__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--coral-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 180ms var(--ease);
}
.page-home .cat-panel__link:hover {
  color: var(--canal);
}

/* ---------- 双栏查询 ---------- */
.page-home .query-grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(22px, 4vw, 34px);
}
.page-home .query-col {
  padding: clamp(20px, 3.2vw, 30px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}
.page-home .query-col__idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
}
.page-home .query-col h3 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.34rem;
  color: var(--cream);
}
.page-home .query-col p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(246, 239, 227, .82);
}
.page-home .query-col__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-home .query-col__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.66;
  color: rgba(246, 239, 227, .78);
}
.page-home .query-col__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.page-home .query__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 22px;
}
.page-home .query__hint {
  flex: 1 1 260px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(127, 166, 196, .95);
}
.page-home .query__foot .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- 入口 ---------- */
.page-home .entrance {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.page-home .entrance__media .media {
  border-radius: var(--r-md);
  overflow: hidden;
}
.page-home .entrance__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .entrance__body .section__title {
  margin-top: 10px;
}
.page-home .gate-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.page-home .gate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid var(--gold-line);
  background: linear-gradient(155deg, rgba(11, 34, 57, .94), rgba(7, 24, 40, .88));
  color: var(--cream);
  text-decoration: none;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.page-home .gate:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(11, 34, 57, .28);
}
.page-home .gate:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.page-home .gate__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--water);
}
.page-home .gate__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-soft);
}
.page-home .gate__text {
  font-size: 14px;
  line-height: 1.66;
  color: rgba(246, 239, 227, .78);
}

/* ---------- 支线列表 ---------- */
.page-home .route-list {
  display: grid;
  gap: 10px;
  margin-top: clamp(22px, 4vw, 32px);
}
.page-home .route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "no name arrow"
    "desc desc desc";
  gap: 6px 14px;
  align-items: center;
  min-height: 44px;
  padding: 16px clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
  color: var(--cream);
  text-decoration: none;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.page-home .route:hover {
  border-color: var(--gold-line);
  transform: translateX(4px);
}
.page-home .route:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.page-home .route__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold);
}
.page-home .route__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.page-home .route__arrow {
  grid-area: arrow;
  color: var(--gold);
}
.page-home .route__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.66;
  color: rgba(246, 239, 227, .72);
}

/* ---------- 五档宽度 ---------- */
.page-home .widths {
  list-style: none;
  margin: clamp(22px, 4vw, 34px) 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.page-home .widths__item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 6px 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 194, 180, .68);
}
.page-home .widths__item:nth-child(1) { --w: 31%; }
.page-home .widths__item:nth-child(2) { --w: 37%; }
.page-home .widths__item:nth-child(3) { --w: 40%; }
.page-home .widths__item:nth-child(4) { --w: 75%; }
.page-home .widths__item:nth-child(5) { --w: 100%; }
.page-home .widths__label {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .16em;
  color: var(--canal);
  font-variant-numeric: tabular-nums;
}
.page-home .widths__bar {
  display: block;
  width: var(--w, 50%);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}
.page-home .widths__note {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 收束 ---------- */
.page-home .closing {
  position: relative;
  overflow: hidden;
  padding-block: 0;
}
.page-home .closing__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .closing__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}
.page-home .closing__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(50px, 9vw, 100px);
}
.page-home .closing__inner .section__title {
  color: var(--cream);
}
.page-home .closing__inner .lede {
  max-width: 58ch;
  color: rgba(246, 239, 227, .84);
}
.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.page-home .closing__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .gate-grid { grid-template-columns: 1fr 1fr; }
  .page-home .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 760px) {
  .page-home .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .page-home .query-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .page-home .widths__item { grid-template-columns: 86px 1fr; }
  .page-home .widths__note { grid-column: 2; }
}

@media (min-width: 900px) {
  .page-home .hero-home__grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 4vw, 64px);
  }
  .page-home .hero-home__visual { align-self: stretch; }
  .page-home .hero-home__media { height: clamp(420px, 52vw, 580px); min-height: 0; }
  .page-home .hero-home__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .page-home .cat-index {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: clamp(22px, 3vw, 40px);
    align-items: start;
  }
  .page-home .cat-tabs {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }
  .page-home .cat-tab {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--r-sm);
  }
  .page-home .cat-panels { margin-top: 0; }

  .page-home .entrance {
    grid-template-columns: 5fr 7fr;
    gap: clamp(28px, 4vw, 52px);
  }
}

@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;
  }
}
