/* =========================================================
   首页 · 门厅框景与错落画板
   ========================================================= */

.page-home {
  --home-cut: 32px;
  --home-line: rgba(201, 162, 39, .34);
  --home-line-soft: rgba(201, 162, 39, .18);
  --home-paper-line: rgba(58, 55, 48, .24);
  --home-body: #4A4437;
  background: var(--ink);
  color: var(--warm);
  overflow-x: clip;
}

/* ---------- 首屏框景 ---------- */

.page-home .home-gate {
  position: relative;
  padding: clamp(.9rem, 2.4vw, 1.6rem);
  background:
    radial-gradient(90% 70% at 14% 0%, rgba(201, 162, 39, .13), transparent 62%),
    var(--ink);
}

.page-home .home-gate .breadcrumb {
  max-width: 1400px;
  margin: 0 auto clamp(.6rem, 1.6vw, 1rem);
  color: rgba(245, 240, 230, .48);
  font-size: .8rem;
}

.page-home .gate-frame {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--stone);
  isolation: isolate;
}

.page-home .gate-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  z-index: 0;
}

.page-home .gate-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(102deg, rgba(11, 11, 13, .95) 0%, rgba(11, 11, 13, .8) 38%, rgba(11, 11, 13, .1) 100%),
    linear-gradient(to top, rgba(11, 11, 13, .88) 0%, rgba(11, 11, 13, 0) 52%);
}

.page-home .gate-ticks {
  position: absolute;
  top: clamp(1rem, 4vw, 2.4rem);
  bottom: clamp(1rem, 4vw, 2.4rem);
  left: clamp(.6rem, 2vw, 1.4rem);
  width: 12px;
  z-index: 2;
  border-left: 1px solid var(--home-line-soft);
  background-image: repeating-linear-gradient(to bottom, var(--home-line) 0 1px, transparent 1px 24px);
  background-size: 7px 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-home .gate-exhibit {
  position: absolute;
  right: clamp(.5rem, 1.8vw, 1.2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .38em;
  color: rgba(245, 240, 230, .34);
  pointer-events: none;
}

.page-home .gate-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 46rem;
  padding: clamp(1.8rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.6rem);
}

.page-home .gate-inner .eyebrow {
  color: var(--gold);
  margin-bottom: .9rem;
}

.page-home .gate-inner h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 9.5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: .1em;
  margin: 0 0 1.1rem;
  color: var(--warm);
  text-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}

.page-home .gate-lead {
  max-width: 33rem;
  margin: 0 0 clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text-soft);
  font-size: clamp(1rem, 2.3vw, 1.1rem);
  line-height: 1.95;
}

.page-home .gate-cta {
  position: relative;
  overflow: hidden;
}

.page-home .gate-cta::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 38%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: home-sweep 5.5s ease-in-out infinite;
}

.page-home .gate-meta {
  margin: 1.1rem 0 0;
  font-size: .84rem;
  letter-spacing: .06em;
  color: rgba(245, 240, 230, .5);
}

@keyframes home-sweep {
  0%, 62% { left: -45%; }
  100% { left: 125%; }
}

@keyframes home-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 归门三步（暖纸画布） ---------- */

.page-home .home-path {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(180deg, rgba(232, 223, 207, .96), var(--paper));
  color: var(--ink);
}

.page-home .path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  align-items: end;
}

.page-home .path-intro .sec-index {
  color: var(--bronze);
}

.page-home .path-intro .eyebrow {
  color: var(--bronze);
  margin-bottom: .6rem;
}

.page-home .path-intro .section-title {
  color: var(--ink);
  margin-bottom: .9rem;
}

.page-home .path-intro .section-note {
  color: var(--home-body);
  max-width: 42ch;
}

.page-home .path-visual {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
}

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

.page-home .path-tabs {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}

.page-home .tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--home-paper-line);
}

.page-home .tab-list label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem 1.15rem;
  cursor: pointer;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--home-body);
  background: rgba(11, 11, 13, .05);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color .25s ease, color .25s ease;
}

.page-home .tab-list label:hover {
  color: var(--ink);
  background: rgba(201, 162, 39, .24);
}

.page-home .tab-k {
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--bronze);
}

.page-home #home-path-1:checked ~ .tab-list label[for="home-path-1"],
.page-home #home-path-2:checked ~ .tab-list label[for="home-path-2"],
.page-home #home-path-3:checked ~ .tab-list label[for="home-path-3"] {
  background: var(--gold);
  color: var(--ink);
}

.page-home #home-path-1:checked ~ .tab-list label[for="home-path-1"] .tab-k,
.page-home #home-path-2:checked ~ .tab-list label[for="home-path-2"] .tab-k,
.page-home #home-path-3:checked ~ .tab-list label[for="home-path-3"] .tab-k {
  color: rgba(11, 11, 13, .6);
}

.page-home #home-path-1:focus-visible ~ .tab-list label[for="home-path-1"],
.page-home #home-path-2:focus-visible ~ .tab-list label[for="home-path-2"],
.page-home #home-path-3:focus-visible ~ .tab-list label[for="home-path-3"] {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.page-home .tab-panels {
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
}

.page-home .tab-panel {
  display: none;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: linear-gradient(155deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .26));
  box-shadow: inset 0 0 0 1px var(--home-paper-line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.page-home #home-path-1:checked ~ .tab-panels .panel-1,
.page-home #home-path-2:checked ~ .tab-panels .panel-2,
.page-home #home-path-3:checked ~ .tab-panels .panel-3 {
  display: block;
  animation: home-fade .38s ease both;
}

.page-home .tab-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  letter-spacing: .06em;
  color: var(--ink);
  margin: 0 0 .7rem;
}

.page-home .tab-panel p {
  color: var(--home-body);
  line-height: 1.95;
  margin: 0 0 1.1rem;
  max-width: 48ch;
}

.page-home .tab-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-bottom: .15rem;
  color: var(--ink);
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  transition: color .2s ease, border-color .2s ease;
}

.page-home .tab-link:hover {
  color: #6B4F14;
  border-color: var(--ink);
}

/* ---------- 大屏通道升级版 ---------- */

.page-home .home-screen {
  padding-block: 0;
  background: var(--ink);
}

.page-home .screen-band {
  position: relative;
  min-height: clamp(320px, 48vw, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.page-home .screen-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  z-index: 0;
}

.page-home .screen-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 13, .3) 0%, rgba(11, 11, 13, .86) 74%, var(--ink) 100%);
}

.page-home .screen-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2rem, 5vw, 3.4rem);
}

.page-home .screen-copy .eyebrow {
  color: var(--gold);
  margin-bottom: .6rem;
}

.page-home .screen-copy .section-title {
  color: var(--warm);
  margin-bottom: .8rem;
}

.page-home .screen-copy .section-note {
  color: var(--text-soft);
  max-width: 44ch;
}

.page-home .screen-facts {
  padding-block: clamp(1.8rem, 4.5vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.page-home .screen-facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.page-home .screen-facts li {
  display: grid;
  gap: .4rem;
  align-content: start;
  padding-top: .9rem;
  border-top: 1px solid var(--home-line-soft);
}

.page-home .fact-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--gold);
}

.page-home .fact-txt {
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.8;
}

/* ---------- 旧版对照 ---------- */

.page-home .home-archive {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(140, 111, 47, .16), transparent 60%),
    var(--stone);
}

.page-home .archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  align-items: center;
}

.page-home .archive-visual img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .95);
}

.page-home .archive-copy .eyebrow {
  color: var(--bronze);
  margin-bottom: .6rem;
}

.page-home .archive-copy .section-title {
  color: var(--warm);
  margin-bottom: .9rem;
}

.page-home .archive-copy > p {
  color: var(--text-soft);
  line-height: 1.95;
  max-width: 48ch;
}

.page-home .diff-box {
  margin: clamp(1.2rem, 3vw, 1.6rem) 0;
  padding: .9rem 1.1rem;
  background: rgba(232, 223, 207, .06);
  border-left: 2px solid var(--bronze);
}

.page-home .diff-box summary {
  display: flex;
  align-items: center;
  min-height: 30px;
  cursor: pointer;
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .05em;
}

.page-home .diff-box[open] summary {
  margin-bottom: .6rem;
}

.page-home .diff-box p {
  margin: 0;
  color: var(--text-soft);
  font-size: .94rem;
  line-height: 1.9;
}

/* ---------- 陕西服务与联络 ---------- */

.page-home .home-contact {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: var(--ink);
}

.page-home .contact-panel {
  position: relative;
  padding: clamp(1.7rem, 5vw, 3.4rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201, 162, 39, .16), transparent 58%),
    linear-gradient(160deg, #1A1B20, #101013);
  box-shadow: inset 0 0 0 1px var(--home-line-soft);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}

.page-home .contact-panel .eyebrow {
  color: var(--gold);
  margin-bottom: .6rem;
}

.page-home .contact-panel .section-title {
  color: var(--warm);
  margin-bottom: .9rem;
}

.page-home .contact-lead {
  color: var(--text-soft);
  line-height: 1.95;
  max-width: 50ch;
}

.page-home .contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: clamp(1.4rem, 4vw, 2rem) 0 1.1rem;
}

.page-home .contact-list div {
  padding-top: .85rem;
  border-top: 1px solid var(--rule);
}

.page-home .contact-list dt {
  margin-bottom: .4rem;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--bronze);
}

.page-home .contact-list dd {
  margin: 0;
  color: var(--warm);
  font-size: clamp(.98rem, 2.4vw, 1.06rem);
  line-height: 1.6;
  word-break: break-word;
}

.page-home .contact-note {
  margin: 0 0 1.4rem;
  color: rgba(245, 240, 230, .56);
  font-size: .9rem;
  line-height: 1.8;
  max-width: 52ch;
}

/* ---------- 响应式 ---------- */

@media (min-width: 680px) {
  .page-home .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem clamp(1.2rem, 4vw, 3rem);
  }
}

@media (min-width: 760px) {
  .page-home .screen-facts ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 3vw, 2.4rem);
  }
}

@media (min-width: 900px) {
  .page-home .path-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  }

  .page-home .path-visual {
    max-width: none;
    margin-inline: 0;
  }

  .page-home .archive-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (max-width: 720px) {
  .page-home .gate-exhibit,
  .page-home .gate-ticks {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate-cta::after {
    animation: none;
    opacity: 0;
  }

  .page-home #home-path-1:checked ~ .tab-panels .panel-1,
  .page-home #home-path-2:checked ~ .tab-panels .panel-2,
  .page-home #home-path-3:checked ~ .tab-panels .panel-3 {
    animation: none;
  }

  .page-home .tab-list label,
  .page-home .tab-link {
    transition: none;
  }
}
