/* ===== 首页 · 门与光 ===== */
.page-home {
  --home-rail-w: 84px;
  --home-side-gap: clamp(24px, 3.4vw, 52px);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.page-home [id] {
  scroll-margin-top: 96px;
}

.page-home .section {
  padding-block: clamp(48px, 7vw, 96px);
}

/* ---------- 首屏：半开门扇 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(34px, 6vw, 72px)) clamp(48px, 7vw, 92px);
  background:
    radial-gradient(120% 92% at 88% 8%, rgba(255, 203, 102, .34), transparent 58%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 1000px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
    gap: clamp(32px, 5vw, 76px);
  }
}

.page-home .home-hero__context {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--brown);
}

.page-home .home-hero__title {
  margin: .3em 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--ink);
}

.page-home .home-hero__title span {
  display: block;
  color: var(--brown);
}

.page-home .home-hero__lede {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .home-hero__tabs {
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-home .home-hero__tabs .tabs__list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__tabs .tabs__btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-mute);
  cursor: pointer;
}

.page-home .home-hero__tabs .tabs__btn[aria-selected="true"] {
  color: var(--brown);
  border-bottom-color: var(--orange);
}

.page-home .home-hero__tabs .tabs__btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: -2px;
}

.page-home .tabs__panel {
  padding-top: 18px;
}

.page-home .tabs__panel[hidden] {
  display: none;
}

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

.page-home .home-hero__index li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__index li:first-child {
  border-top: 1px solid var(--line);
}

.page-home .home-hero__index .num {
  color: var(--copper);
}

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

.page-home .home-hero__index em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, var(--sand), var(--cream));
  clip-path: polygon(0 0, 86% 0, 100% 20%, 100% 100%, 0 100%);
}

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

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(16px, 5.5%, 72px);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(240, 138, 36, .92), rgba(255, 203, 102, .42) 46%, rgba(255, 203, 102, 0) 100%);
  animation: home-slit 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes home-slit {
  0%, 100% { transform: scaleX(1); opacity: .82; }
  50% { transform: scaleX(1.18); opacity: 1; }
}

/* ---------- 页边章节索引 ---------- */
.page-home .home-rail {
  display: none;
}

.page-home .home-rail .rail__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--copper);
}

@media (min-width: 1400px) {
  .page-home .home-rail {
    display: block;
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: var(--home-rail-w);
    z-index: 4;
  }

  .page-home .home-rail .rail__list {
    list-style: none;
    counter-reset: rail;
    margin: 10px 0 0;
    padding: 0;
  }

  .page-home .home-rail .rail__item {
    counter-increment: rail;
  }

  .page-home .home-rail .rail__link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 7px 0 7px 8px;
    border-left: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--ink-mute);
    text-decoration: none;
  }

  .page-home .home-rail .rail__link::before {
    content: counter(rail, decimal-leading-zero);
    color: var(--copper);
  }

  .page-home .home-rail .rail__link[aria-current="true"] {
    color: var(--brown);
    border-left: 2px solid var(--orange);
    padding-left: 7px;
  }
}

/* ---------- 设备分流：横向主题带 ---------- */
.page-home .home-routes__band {
  margin-top: clamp(28px, 4vw, 48px);
}

.page-home .home-routes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

@media (min-width: 920px) {
  .page-home .home-routes__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1fr);
  }
}

.page-home .home-routes__cell {
  background: var(--cream);
  padding: clamp(24px, 3.2vw, 44px) clamp(20px, 3vw, 36px);
}

.page-home .theme-band__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--orange);
}

.page-home .theme-band__title {
  margin: .7em 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .home-routes__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--sand);
}

.page-home .home-routes__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-home .home-routes__figure figcaption {
  padding: 14px clamp(16px, 2vw, 26px) 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--ink-mute);
}

.page-home .home-routes__steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(16px, 2vw, 24px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-routes__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-home .home-routes__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  padding-top: 3px;
}

/* ---------- 导航调整与点击次数 ---------- */
.page-home .home-shift__grid {
  gap: clamp(28px, 4vw, 56px);
}

.page-home .home-shift__text {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  max-width: 40em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .home-shift__bars {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  align-items: end;
}

.page-home .home-shift__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-shift__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--brown);
}

.page-home .home-shift__value small {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mute);
}

.page-home .home-shift__meter {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--copper);
}

.page-home .home-shift__meter--before {
  height: 124px;
  background: linear-gradient(180deg, rgba(78, 96, 112, .30), rgba(78, 96, 112, .08));
}

.page-home .home-shift__meter--after {
  height: 66px;
  border-color: rgba(240, 138, 36, .55);
  border-left-color: var(--orange);
  background: linear-gradient(180deg, var(--orange), var(--amber));
}

.page-home .home-shift__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.page-home .home-shift__side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
}

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

.page-home .home-shift__side-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- 企业客户核对带 ---------- */
.page-home .home-enterprise__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(255, 203, 102, .42);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(240, 138, 36, .30), transparent 62%),
    linear-gradient(150deg, #6B4418 0%, #4B2E10 72%);
  color: var(--cream);
}

@media (min-width: 880px) {
  .page-home .home-enterprise__panel {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

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

.page-home .home-enterprise__main h2 {
  margin: .5em 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--cream);
}

.page-home .home-enterprise__lede {
  margin: clamp(16px, 2vw, 22px) 0 0;
  max-width: 38em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: rgba(251, 246, 238, .84);
}

.page-home .home-enterprise__prep {
  list-style: none;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-enterprise__prep li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(251, 246, 238, .92);
}

.page-home .home-enterprise__prep li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .42em;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

.page-home .home-enterprise__main .btn {
  margin-top: clamp(22px, 2.8vw, 32px);
}

.page-home .home-enterprise__panel .btn--primary {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #2A1A08;
}

.page-home .home-enterprise__clock {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: clamp(20px, 2.6vw, 8px);
  border-top: 1px solid rgba(255, 203, 102, .45);
}

@media (min-width: 880px) {
  .page-home .home-enterprise__clock {
    padding-top: 0;
    padding-left: clamp(18px, 2.4vw, 28px);
    border-top: 0;
    border-left: 1px solid rgba(255, 203, 102, .45);
  }
}

.page-home .home-enterprise__clock strong {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber);
}

.page-home .home-enterprise__clock p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(251, 246, 238, .8);
}

/* ---------- 三个入口 ---------- */
.page-home .home-entry__grid {
  margin-top: clamp(28px, 4vw, 44px);
  gap: var(--home-side-gap);
}

.page-home .home-entry .card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.page-home .home-entry .card:hover,
.page-home .home-entry .card:focus-visible {
  border-color: var(--copper);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.page-home .home-entry__lead {
  padding: clamp(24px, 3vw, 36px);
}

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

.page-home .home-entry .card__title {
  margin: .7em 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .home-entry .card__text {
  margin: .8em 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-home .home-entry .card__meta {
  margin: 1.1em 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

.page-home .home-entry__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
  margin-top: clamp(16px, 2.2vw, 24px);
}

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

.page-home .home-entry__pair .card {
  padding: clamp(20px, 2.4vw, 28px);
}

.page-home .home-entry__figure {
  margin: 0;
  align-self: start;
}

.page-home .home-entry__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 品牌线索短栏 ---------- */
.page-home .home-story {
  padding-bottom: clamp(56px, 8vw, 108px);
}

.page-home .home-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-story__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  }
}

.page-home .home-story__frame {
  position: relative;
  padding: clamp(26px, 3.6vw, 46px);
  padding-left: clamp(30px, 4vw, 54px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
}

.page-home .home-story__index {
  margin: 0;
  color: var(--copper);
}

.page-home .home-story__frame h2 {
  margin: .6em 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .home-story__frame p {
  margin: clamp(14px, 1.8vw, 20px) 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .home-story__frame .btn {
  margin-top: clamp(20px, 2.6vw, 28px);
}

.page-home .home-story__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.page-home .home-story__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 小屏与无障碍 ---------- */
@media (max-width: 999px) {
  .page-home .home-hero__visual {
    aspect-ratio: 4 / 3;
    clip-path: polygon(0 0, 92% 0, 100% 14%, 100% 100%, 0 100%);
  }
}

@media (max-width: 560px) {
  .page-home .home-hero__tabs .tabs__btn {
    flex: 1;
    text-align: center;
  }

  .page-home .home-shift__bars {
    gap: 16px;
  }

  .page-home .home-shift__meter--before {
    height: 96px;
  }

  .page-home .home-shift__meter--after {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__visual::after {
    animation: none;
  }

  .page-home .home-entry .card {
    transition: none;
  }

  .page-home .home-entry .card:hover,
  .page-home .home-entry .card:focus-visible {
    transform: none;
  }
}
</main>
