/* ============ 首页 page-home ============ */
.page-home {
  --home-rail-w: 248px;
  --home-gap: clamp(28px, 4vw, 58px);
  --home-pad: clamp(44px, 6vw, 84px);
  --home-gold-hair: rgba(201, 163, 86, .3);
  display: block;
  background: var(--ink);
  color: var(--paper);
}

.page-home .mono { font-family: var(--mono); letter-spacing: .08em; }

/* ---------- 通用页头小标 ---------- */
.page-home .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-home .home-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-grad);
}
.page-home .home-eyebrow--ink { color: #8A672C; }

.page-home .home-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.page-home .h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--paper); }
.page-home .home-h2--ink { color: var(--ink); }

/* ---------- 正文段落 ---------- */
.page-home .home-p {
  max-width: 38em;
  margin: 0 0 1.1em;
  font-size: 1.0125rem;
  line-height: 1.85;
  color: rgba(244, 239, 230, .76);
}
.page-home .home-p--ink { color: #55504A; }
.page-home .home-p--tight { margin-top: 1.6em; }

.page-home .home-more { margin: 1.8em 0 0; }
.page-home .home-more__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: .9375rem;
  text-decoration: none;
  border-bottom: 1px solid var(--home-gold-hair);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.page-home .home-more__link::after { content: "→"; font-family: var(--mono); }
.page-home .home-more__link:hover { color: var(--gold-lit); border-color: var(--gold-lit); }

/* ============ 首屏 ============ */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(38px, 5vw, 62px);
  background:
    radial-gradient(115% 82% at 6% 0%, rgba(31, 74, 61, .92) 0%, rgba(14, 42, 36, 0) 62%),
    radial-gradient(80% 70% at 100% 100%, rgba(122, 35, 32, .22) 0%, rgba(14, 42, 36, 0) 66%),
    linear-gradient(180deg, #0E2A24 0%, #102E27 100%);
}
.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-grad);
  opacity: .5;
}

.page-home .home-hero__shell {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  align-items: center;
}

.page-home .home-hero__copy { position: relative; }

.page-home .home-hero__deco {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 8.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: .1em;
  color: rgba(201, 163, 86, .13);
  -webkit-text-stroke: 1px rgba(201, 163, 86, .4);
  margin-bottom: .18em;
  user-select: none;
  pointer-events: none;
}

.page-home .home-hero__title {
  margin: 0 0 .55em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7.6vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--paper);
}
.page-home .home-hero__title::after {
  content: "";
  display: block;
  width: clamp(72px, 16vw, 168px);
  height: 2px;
  margin-top: .38em;
  background: var(--gold-grad);
}

.page-home .home-hero__lede {
  max-width: 34em;
  margin: 0 0 1.8em;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(244, 239, 230, .78);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 首屏图 */
.page-home .home-hero__stage { margin: 0; position: relative; }

.page-home .home-hero__frame {
  padding: 1px;
  background: var(--gold-grad);
  clip-path: var(--clip-cut);
}
.page-home .home-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  clip-path: var(--clip-cut);
  filter: saturate(.84) contrast(1.05) brightness(.92);
}

.page-home .home-hero__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--stone);
}
.page-home .home-hero__caption-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 163, 86, .5), rgba(201, 163, 86, 0));
}

/* 首屏下沿信息条 */
.page-home .home-hero__strip {
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid rgba(244, 239, 230, .1);
  background: rgba(20, 56, 47, .72);
}
.page-home .home-hero__strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.page-home .home-hero__strip-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(244, 239, 230, .84);
}
.page-home .home-hero__strip-link {
  font-size: .875rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--home-gold-hair);
  padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.page-home .home-hero__strip-link:hover { color: var(--gold-lit); }

/* ============ 分屏骨架 ============ */
.page-home .home-body {
  display: grid;
  gap: var(--home-gap);
  padding-top: clamp(34px, 4.4vw, 62px);
  padding-bottom: clamp(56px, 8vw, 108px);
}

.page-home .home-canvas { min-width: 0; }

/* 左侧索引 */
.page-home .home-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  padding: 10px 0 12px;
  margin: 0 calc(var(--gut) * -1);
  padding-left: var(--gut);
  padding-right: var(--gut);
  background: rgba(14, 42, 36, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 163, 86, .22);
}

.page-home .home-rail__title {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--stone);
  text-transform: uppercase;
}
.page-home .home-rail__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.page-home .home-rail__list::-webkit-scrollbar { display: none; }
.page-home .home-rail__item { flex: 0 0 auto; }

.page-home .home-rail__link {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 7px;
  align-items: baseline;
  padding: 7px 12px 7px 14px;
  font-size: .875rem;
  color: rgba(244, 239, 230, .62);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(201, 163, 86, .2);
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.page-home .home-rail__link::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 2px; height: 62%;
  transform: translateY(-50%) scaleY(0);
  background: var(--gold-grad);
  transition: transform .3s var(--ease);
}
.page-home .home-rail__link:hover {
  color: var(--paper);
  background: rgba(201, 163, 86, .06);
  border-color: rgba(201, 163, 86, .4);
}
.page-home .home-rail__link[aria-current="true"] {
  color: var(--gold-lit);
  background: rgba(201, 163, 86, .1);
  border-color: rgba(201, 163, 86, .48);
}
.page-home .home-rail__link[aria-current="true"]::before { transform: translateY(-50%) scaleY(1); }

.page-home .home-rail__num { font-size: .6875rem; color: var(--gold); opacity: .8; }
.page-home .home-rail__count { font-size: .6875rem; color: var(--stone); }
.page-home .home-rail__link[aria-current="true"] .home-rail__num { color: var(--gold-lit); opacity: 1; }

.page-home .home-rail__scale { display: none; }

/* ============ 分区通用 ============ */
.page-home .section {
  padding: var(--home-pad) 0 0;
}
.page-home .section + .section {
  border-top: 1px solid rgba(244, 239, 230, .09);
}

/* ---------- 01 本轮更新 ---------- */
.page-home .home-update__keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2em 0 0;
  padding: 0;
  list-style: none;
  background: rgba(201, 163, 86, .22);
  border: 1px solid rgba(201, 163, 86, .22);
  clip-path: var(--clip-cut);
}
.page-home .home-key {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  background: var(--green);
}
.page-home .home-key__k {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  letter-spacing: .06em;
  color: var(--gold-lit);
}
.page-home .home-key__v {
  font-size: .8125rem;
  letter-spacing: .04em;
  color: rgba(244, 239, 230, .6);
}

/* ---------- 02 区间速览 ---------- */
.page-home .home-range__grid {
  display: grid;
  gap: 14px;
  margin-top: 1.6em;
}

.page-home .home-vercard {
  position: relative;
  padding: 20px 20px 18px;
  background: linear-gradient(160deg, rgba(31, 74, 61, .92) 0%, rgba(20, 56, 47, .96) 100%);
  border: 1px solid rgba(201, 163, 86, .26);
  clip-path: var(--clip-cut-sm);
  outline: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.page-home .home-vercard::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 34px;
  background: var(--gold-grad);
  opacity: .7;
}
.page-home .home-vercard:hover,
.page-home .home-vercard:focus-visible {
  border-color: rgba(230, 200, 123, .78);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -20px rgba(201, 163, 86, .8);
}

.page-home .home-vercard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.page-home .home-vercard__ver {
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: .08em;
  color: var(--gold-lit);
}
.page-home .home-vercard__summary {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.78;
  color: rgba(244, 239, 230, .78);
}
.page-home .home-vercard__more {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  font-size: .875rem;
  line-height: 1.78;
  color: rgba(244, 239, 230, .58);
  transition: max-height .38s var(--ease), opacity .3s var(--ease), margin-top .38s var(--ease);
}
.page-home .home-vercard:hover .home-vercard__more,
.page-home .home-vercard:focus-visible .home-vercard__more {
  max-height: 8em;
  margin-top: .6em;
  opacity: 1;
}

.page-home .home-range__media {
  margin: 1.8em 0 0;
}
.page-home .home-range__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: var(--clip-cut);
  border: 1px solid rgba(201, 163, 86, .22);
  filter: saturate(.82) brightness(.92);
}
.page-home .home-range__media .media-frame__caption {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  color: var(--stone);
}

/* ---------- 03 分类索引 ---------- */
.page-home .section.home-index {
  margin-top: var(--home-pad);
  padding: clamp(34px, 4.6vw, 58px) clamp(20px, 3vw, 42px) clamp(38px, 5vw, 62px);
  background: var(--paper);
  border-top: 1px solid rgba(14, 42, 36, .12);
  clip-path: var(--clip-cut);
}
.page-home .home-index__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1px;
  margin: 1.8em 0 0;
  padding: 0;
  list-style: none;
  background: rgba(14, 42, 36, .13);
  border: 1px solid rgba(14, 42, 36, .13);
}
.page-home .home-idx {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num name"
    "num desc"
    "num count";
  gap: 2px 14px;
  align-items: baseline;
  height: 100%;
  padding: 16px 18px;
  background: var(--paper);
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.page-home .home-idx:hover { background: #EBE4D7; }
.page-home .home-idx__num {
  grid-area: num;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: #A8843A;
}
.page-home .home-idx__name {
  grid-area: name;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}
.page-home .home-idx__desc {
  grid-area: desc;
  font-size: .875rem;
  line-height: 1.7;
  color: #6B655C;
}
.page-home .home-idx__count {
  grid-area: count;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: #9A8E7A;
}

/* ---------- 04 厂商专区 ---------- */
.page-home .home-vendor__inner { display: grid; gap: 26px; }

.page-home .home-vendor__list {
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.page-home .home-vendor__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  font-size: .9375rem;
  line-height: 1.72;
  color: rgba(244, 239, 230, .74);
  border-bottom: 1px solid rgba(244, 239, 230, .09);
}
.page-home .home-vendor__list li .mono {
  flex: 0 0 auto;
  min-width: 54px;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--gold);
}

.page-home .home-vendor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6em;
}

.page-home .home-vendor__media { margin: 0; }
.page-home .home-vendor__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: var(--clip-cut);
  border: 1px solid rgba(201, 163, 86, .24);
  filter: saturate(.78) brightness(.9) contrast(1.05);
}

/* ---------- 05 两步客服 ---------- */
.page-home .home-service__inner { display: grid; gap: 26px; margin-top: 1.6em; }

.page-home .home-flow { position: relative; padding-left: 22px; }
.page-home .home-flow::before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 163, 86, .7), rgba(201, 163, 86, .08));
}

.page-home .home-flow__step {
  position: relative;
  margin-bottom: 14px;
  background: rgba(31, 74, 61, .52);
  border: 1px solid rgba(201, 163, 86, .24);
  clip-path: var(--clip-cut-sm);
  transition: border-color .3s var(--ease);
}
.page-home .home-flow__step[open] { border-color: rgba(230, 200, 123, .56); }
.page-home .home-flow__step::before {
  content: "";
  position: absolute;
  left: -22px; top: 24px;
  width: 11px; height: 11px;
  margin-left: -5px;
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.page-home .home-flow__step[open]::before { background: var(--gold-lit); }

.page-home .home-flow__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 18px 46px 18px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.page-home .home-flow__sum::-webkit-details-marker { display: none; }
.page-home .home-flow__num {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--gold);
}
.page-home .home-flow__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--paper);
}
.page-home .home-flow__toggle {
  position: absolute;
  right: 18px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
}
.page-home .home-flow__toggle::before,
.page-home .home-flow__toggle::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.page-home .home-flow__toggle::before { left: 0; top: 5px; width: 12px; height: 1px; }
.page-home .home-flow__toggle::after { left: 5px; top: 0; width: 1px; height: 12px; }
.page-home .home-flow__step[open] .home-flow__toggle::after { transform: scaleY(0); opacity: 0; }

.page-home .home-flow__body {
  padding: 0 20px 20px;
}
.page-home .home-flow__body p {
  max-width: 36em;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.82;
  color: rgba(244, 239, 230, .72);
}

.page-home .home-service__media { margin: 0; }
.page-home .home-service__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  clip-path: var(--clip-cut);
  border: 1px solid rgba(201, 163, 86, .22);
  filter: saturate(.86) brightness(.88);
}

/* ---------- 06 会馆档案 ---------- */
.page-home .section.home-archive {
  padding-bottom: 0;
}
.page-home .home-archive__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.8em;
  background: rgba(201, 163, 86, .24);
  border: 1px solid rgba(201, 163, 86, .24);
  clip-path: var(--clip-cut);
}
.page-home .home-archive__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 22px;
  background: var(--ink-2);
}
.page-home .home-archive__value {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 3.6vw, 1.7rem);
  letter-spacing: .06em;
  color: var(--gold-lit);
}
.page-home .home-archive__label {
  font-size: .8125rem;
  line-height: 1.68;
  color: rgba(244, 239, 230, .6);
}
.page-home .home-archive__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.8em;
}

/* ============ 响应式 ============ */
@media (min-width: 560px) {
  .page-home .home-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .home-range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .page-home .home-update__keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .page-home .home-hero__shell {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: end;
  }
  .page-home .home-hero__copy { padding-bottom: 6px; }
  .page-home .home-hero__stage { margin-bottom: 4px; }

  .page-home .home-vendor__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 34px; align-items: start; }
  .page-home .home-service__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (min-width: 1024px) {
  .page-home .home-body {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 163, 86, .18);
    padding-right: 24px;
  }
  .page-home .home-rail__list {
    display: block;
    overflow: visible;
    padding: 0;
  }
  .page-home .home-rail__item { display: block; }
  .page-home .home-rail__link {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    padding: 9px 10px 9px 16px;
    white-space: normal;
    border: 0;
    border-bottom: 1px solid rgba(244, 239, 230, .07);
  }
  .page-home .home-rail__link:hover { background: rgba(201, 163, 86, .07); border-color: rgba(244, 239, 230, .07); }
  .page-home .home-rail__link[aria-current="true"] { border-color: rgba(201, 163, 86, .3); }

  .page-home .home-rail__scale {
    display: block;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 163, 86, .2);
  }
  .page-home .home-rail__scale-title {
    margin: 0 0 10px;
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .2em;
    color: var(--stone);
  }
  .page-home .home-scale { display: block; width: 100%; max-width: 168px; height: auto; }
  .page-home .home-scale__axis { stroke: rgba(201, 163, 86, .34); stroke-width: 1; }
  .page-home .home-scale__node line { stroke: rgba(201, 163, 86, .5); stroke-width: 1; }
  .page-home .home-scale__node text {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    fill: var(--stone);
  }
  .page-home .home-scale__node--lit line { stroke: var(--gold-lit); }
  .page-home .home-scale__node--lit text { fill: var(--gold-lit); }

  .page-home .home-service__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; }
  .page-home .home-service__media img { aspect-ratio: 16 / 11; }
}

@media (min-width: 1200px) {
  .page-home .home-archive__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-home .home-range__grid { gap: 18px; }
}

/* 触屏设备：版本卡摘要直接展开 */
@media (hover: none) {
  .page-home .home-vercard__more {
    max-height: none;
    margin-top: .6em;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-vercard,
  .page-home .home-rail__link,
  .page-home .home-rail__link::before,
  .page-home .home-vercard__more,
  .page-home .home-flow__toggle::before,
  .page-home .home-flow__toggle::after {
    transition: none;
  }
  .page-home .home-vercard:hover { transform: none; }
}
