.page-home {
  --home-cut: 20px;
  --home-card-gap: clamp(14px, 1.6vw, 22px);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep-strong);
  padding: calc(var(--bar-h) + var(--head-h) + clamp(40px, 7vw, 84px)) 0 clamp(56px, 9vw, 108px);
}

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

.page-home .home-hero__canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.page-home .home-hero__canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(6, 23, 41, .96) 0%,
      rgba(11, 37, 69, .88) 38%,
      rgba(30, 110, 140, .64) 72%,
      rgba(63, 197, 221, .28) 100%);
}

.page-home .home-hero__contour {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 42%;
  z-index: -1;
  pointer-events: none;
}

.page-home .home-hero__contour path {
  fill: none;
  stroke: rgba(184, 230, 240, .2);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 72px);
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(40px, 7vw, 112px);
    align-items: start;
  }
}

.page-home .home-hero__title {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -.012em;
  color: var(--on-deep-strong);
}

.page-home .home-hero__title b {
  font-weight: 700;
  color: var(--ice);
}

.page-home .home-hero__desc {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--on-deep);
}

.page-home .home-hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

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

.page-home .home-hero__facts > li {
  padding-top: 14px;
  border-top: 1px solid var(--hairline-deep);
}

.page-home .home-fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ice);
}

.page-home .home-fact__k {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--on-deep);
}

/* 入口卡 */
.page-home .home-hero__ports {
  display: grid;
  gap: clamp(12px, 1.5vw, 16px);
  align-content: start;
}

.page-home .port {
  display: block;
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  text-decoration: none;
  color: var(--on-deep-strong);
  border: 1px solid var(--hairline-deep);
  background: rgba(245, 248, 250, .06);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .port__idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .port__name {
  display: block;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .01em;
}

.page-home .port__note {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--on-deep);
}

.page-home .port--primary {
  background: linear-gradient(135deg, rgba(63, 197, 221, .34) 0%, rgba(30, 110, 140, .18) 100%);
  border-color: rgba(63, 197, 221, .55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .port--ghost {
  background: transparent;
  border-style: dashed;
  border-color: rgba(184, 230, 240, .34);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
}

.page-home .port--gold {
  border-left: 3px solid var(--gold);
  background: rgba(216, 160, 60, .1);
}

.page-home .port:hover,
.page-home .port:focus-visible {
  background: rgba(63, 197, 221, .18);
  border-color: rgba(63, 197, 221, .62);
  transform: translateY(-3px);
}

.page-home .port:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

/* ---------- 通用小标题组 ---------- */
.page-home .home-head {
  max-width: 54em;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.page-home .home-head__lead {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-head--deep .home-head__lead--deep {
  color: var(--on-deep);
}

.page-home .home-title--deep {
  color: var(--on-deep-strong);
}

/* ---------- Bento 索引板 ---------- */
.page-home .home-bento-section {
  background: var(--snow);
}

.page-home .home-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
}

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

  .page-home .hb-focus {
    grid-column: span 12;
  }

  .page-home .hb-a {
    grid-column: span 6;
  }

  .page-home .hb-b,
  .page-home .hb-c {
    grid-column: span 6;
  }

  .page-home .hb-mini {
    grid-column: span 4;
  }
}

@media (min-width: 1040px) {
  .page-home .hb-focus {
    grid-column: span 6;
    grid-row: span 2;
  }

  .page-home .hb-a {
    grid-column: span 6;
  }

  .page-home .hb-b,
  .page-home .hb-c {
    grid-column: span 3;
  }

  .page-home .hb-mini {
    grid-column: span 4;
  }
}

.page-home .hb {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 30px);
  text-decoration: none;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--hairline);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .hb:hover,
.page-home .hb:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(63, 197, 221, .6);
  box-shadow: 0 14px 32px rgba(11, 37, 69, .1);
}

.page-home .hb:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.page-home .hb__title {
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.36;
  color: var(--ink);
}

.page-home .hb__text {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--mist);
}

.page-home .hb__go {
  display: inline-block;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--deep-mid);
}

.page-home .hb-a {
  background: linear-gradient(150deg, #ffffff 0%, var(--ice-mist) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .hb-c {
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
}

/* 焦点块 */
.page-home .hb-focus {
  padding: 0;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep-strong);
  border-color: var(--deep-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.page-home .hb-focus:hover {
  border-color: var(--ice);
}

.page-home .hb-focus__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.page-home .hb-focus__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 37, 69, .12), rgba(11, 37, 69, .86));
}

.page-home .hb-focus__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hb-focus__body {
  padding: clamp(20px, 2.4vw, 30px);
}

.page-home .hb-focus__title {
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.26;
  color: var(--on-deep-strong);
}

.page-home .hb-focus__body .hb__text {
  color: var(--on-deep);
}

/* 小索引块 */
.page-home .hb-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "idx name" "idx note";
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  padding: clamp(16px, 1.9vw, 22px);
  background: transparent;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
}

.page-home .hb-mini__idx {
  grid-area: idx;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .hb-mini__name {
  grid-area: name;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .hb-mini__note {
  grid-area: note;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 会员中心 ---------- */
.page-home .home-member__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 960px) {
  .page-home .home-member__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(40px, 6vw, 88px);
  }
}

.page-home .home-member__lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .home-abilities {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.page-home .home-ability {
  padding: 18px 20px;
  background: rgba(255, 255, 255, .78);
  border-left: 3px solid var(--ice);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-ability:hover {
  background: #ffffff;
  border-color: var(--gold);
}

.page-home .home-ability__k {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .home-ability p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.74;
  color: var(--mist);
}

.page-home .home-member__copy .btn {
  margin-top: clamp(24px, 3vw, 34px);
}

.page-home .home-member__fig {
  margin: 0;
  background: var(--deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  overflow: hidden;
}

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

.page-home .home-member__cap {
  display: block;
  padding: 14px 20px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--on-deep);
}

/* ---------- 工单进度 ---------- */
.page-home .home-ticket .home-head {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.page-home .home-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.page-home .home-track__seg {
  position: relative;
  padding: 22px 20px 24px;
  background: rgba(245, 248, 250, .05);
  border-top: 3px solid rgba(184, 230, 240, .22);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-track__seg:hover,
.page-home .home-track__seg:focus-within {
  background: rgba(63, 197, 221, .14);
  border-top-color: var(--ice);
}

.page-home .home-track__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .home-track__name {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-deep-strong);
}

.page-home .home-track__desc {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--on-deep);
}

.page-home .home-ticket__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 42px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--hairline-deep);
}

.page-home .home-ticket__note {
  margin: 0;
  max-width: 44em;
  font-size: 14px;
  line-height: 1.76;
  color: var(--on-deep);
}

/* ---------- 稳定访问 ---------- */
.page-home .home-stable {
  background: var(--snow);
}

.page-home .home-compare {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.page-home .home-compare__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 18px;
  background: #ffffff;
}

@media (min-width: 780px) {
  .page-home .home-compare__row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 5fr);
    gap: 18px;
    align-items: center;
  }
}

.page-home .home-compare__row--head {
  background: var(--deep);
}

.page-home .home-compare__row--head .home-compare__k,
.page-home .home-compare__row--head .home-compare__v {
  color: var(--on-deep-strong);
  font-weight: 600;
}

.page-home .home-compare__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-home .home-compare__v {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--mist);
}

.page-home .home-compare__v--ours {
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--ice);
  padding-left: 12px;
}

.page-home .home-stable__detail {
  margin-top: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 960px) {
  .page-home .home-stable__detail {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 6vw, 80px);
  }
}

.page-home .home-stable__title {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.34;
  color: var(--ink);
}

.page-home .home-stable__text p {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-stable__text .btn {
  margin-top: 26px;
}

.page-home .home-stable__fig {
  margin: 0;
  overflow: hidden;
  background: var(--deep);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
}

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

/* ---------- 栏目动态 ---------- */
.page-home .home-feed {
  border-top: 1px solid var(--hairline);
}

.page-home .home-feed .expand__item {
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-feed .expand__trigger {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: clamp(18px, 2.2vw, 26px) clamp(4px, 1vw, 10px);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  transition: background var(--dur) var(--ease);
}

.page-home .home-feed .expand__trigger:hover {
  background: rgba(63, 197, 221, .09);
}

.page-home .home-feed .expand__trigger:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: -2px;
}

.page-home .home-feed .expand__label {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .01em;
}

.page-home .home-feed .expand__mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.page-home .home-feed .expand__mark::before,
.page-home .home-feed .expand__mark::after {
  content: "";
  position: absolute;
  background: var(--deep-mid);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.page-home .home-feed .expand__mark::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.page-home .home-feed .expand__mark::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.page-home .home-feed .expand__trigger[aria-expanded="true"] .expand__mark::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-home .home-feed .expand__body {
  padding: 0 clamp(4px, 1vw, 10px) clamp(22px, 3vw, 30px);
  max-width: 52em;
}

.page-home .home-feed .expand__body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .port,
  .page-home .hb,
  .page-home .home-ability,
  .page-home .home-track__seg,
  .page-home .home-feed .expand__trigger,
  .page-home .home-feed .expand__mark::before,
  .page-home .home-feed .expand__mark::after {
    transition: none;
  }
}
