.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--on-dark);
  transition: background 0.45s var(--ease), height 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.nav.is-solid {
  height: 66px;
  background: rgba(11, 22, 38, 0.94);
  box-shadow: 0 1px 0 rgba(242, 236, 221, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-in {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 32px; width: auto; transition: height 0.45s var(--ease); }
.nav.is-solid .brand img { height: 27px; }
.brand-txt {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  white-space: nowrap;
  color: var(--on-dark);
}
.brand-txt small {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(242, 236, 221, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: rgba(242, 236, 221, 0.82);
  transition: color var(--t) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-300);
  transition: width 0.45s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-req {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(242, 236, 221, 0.34);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.nav-req:hover { background: var(--gold); border-color: var(--gold); color: #1a1206; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
}
.burger span {
  position: relative;
  display: block;
  width: 20px;
  height: 1px;
  background: var(--on-dark);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--on-dark);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------------- 首屏：轮播 + 分类条 ---------------- */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-h));
  height: calc(100vh + 100vh); /* 100vh 舞台 + 55vh 变形 + 45vh 定格停留 */
  background: var(--navy-900);
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}

/* 轮播层 */
.slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: opacity;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}
.slide.is-on { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.03);
}
.slide.is-on img { animation: kb 7.5s linear forwards; }
@keyframes kb {
  from { transform: scale(1.03); }
  to { transform: scale(1.11); }
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 16, 28, 0.62) 0%,
    rgba(9, 16, 28, 0.18) 42%,
    rgba(9, 16, 28, 0.72) 100%
  );
}

/* 轮播文案 */
.slide-cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(21vh + 38px);
  pointer-events: none;
}
.slide-cap h1 {
  font-size: clamp(30px, 4.4vw, 68px);
  color: var(--on-dark);
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.slide-cap { transition: opacity .3s var(--ease); }
.stage.is-rising .slide-cap { opacity: 0; }
/* 变形开始后，轮播控件也跟着退场，别留在分类块上面 */
.slide-ui, .ticks { transition: opacity .35s var(--ease); }
.stage.is-rising .slide-ui,
.stage.is-rising .ticks { opacity: 0; pointer-events: none; }

.slide-cap p {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(242, 236, 221, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

/* 轮播控制 */
.slide-ui {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: calc(21vh + 34px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--on-dark);
}
.slide-ui .count {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(242, 236, 221, 0.72);
}
.slide-ui .count b { color: var(--on-dark); font-weight: 400; }
.arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 236, 221, 0.28);
  color: var(--on-dark);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.arrow:hover { background: rgba(242, 236, 221, 0.1); border-color: rgba(242, 236, 221, 0.5); }
.arrow svg { width: 16px; height: 16px; }
.ticks {
  position: absolute;
  z-index: 3;
  left: var(--pad-x);
  bottom: calc(18vh + 54px);
  display: flex;
  gap: 6px;
}
.ticks button {
  width: 42px;
  height: 2px;
  padding: 0;
  background: rgba(242, 236, 221, 0.24);
  position: relative;
  overflow: hidden;
}
.ticks button i {
  position: absolute;
  inset: 0;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left center;
}
.ticks button.is-on i { animation: tick 7.5s linear forwards; }
@keyframes tick {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 变形后的标题 */
.stage-head {
  position: absolute;
  z-index: 4;
  left: var(--pad-x);
  top: calc(var(--nav-h) + 22px);
  opacity: 0;
  color: var(--on-dark);
  pointer-events: none;
  transition: color .3s var(--ease);
}
.stage-head.is-light { color: var(--ink); }
.stage-head .eyebrow { color: rgba(242,236,221,.6); }
.stage-head.is-light .eyebrow { color: var(--mute); }
.stage-head h2 {
  margin-top: 10px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.01em;
}
.stage-head h2 span { color: var(--gold-700); }

/* 分类块（唯一一套 DOM，靠 JS 在两套矩形之间插值） */
.tiles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.tile {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  overflow: hidden;
  background: #0d1826;
  pointer-events: auto;
  will-change: transform, width, height;
  contain: layout paint;          /* 新增：把内部重排锁死在块内 */
  transform: translate3d(0, 0, 0);
}

.tile-media { position: absolute; inset: 0; }
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease);
}
.tile:hover .tile-media img { transform: scale(1.08); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8, 14, 24, 0.94) 0%,
    rgba(8, 14, 24, 0.42) 46%,
    rgba(8, 14, 24, 0.04) 100%
  );
  transition: background 0.5s var(--ease);
}
.tile:hover::after {
  background: linear-gradient(
    0deg,
    rgba(8, 14, 24, 0.94) 0%,
    rgba(8, 14, 24, 0.36) 52%,
    rgba(8, 14, 24, 0.02) 100%
  );
}
.tile-body {
  position: absolute;
  left: clamp(10px, 1.1vw, 18px);
  right: clamp(10px, 1.1vw, 18px);
  bottom: clamp(10px, 1.2vw, 20px);
  z-index: 2;
  color: var(--on-dark);
  transform: translateY(var(--ty, 0px));   /* 新增：文字随块轻微上浮 */
}

.tile-body h3 {
  font-size: var(--tf, 14px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tile-meta {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.66);
  opacity: var(--tm, 0);
}
.tile-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(242, 236, 221, 0.55);
  opacity: var(--tm, 0);
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--nav-h) + 20px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.55);
}

/* ---------------- 关于 ---------------- */
.about {
  background: var(--paper);
  padding: var(--gap-2xl) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: start;
}
.about h2 { font-size: var(--fs-h2); max-width: 20ch; }
.about-lead { color: var(--ink-2); font-size: 14.5px; line-height: 1.78; }
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-m);
  margin-top: clamp(30px, 4vw, 52px);
  border-top: var(--hair);
  padding-top: clamp(20px, 2.4vw, 30px);
}
.specs b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  color: var(--navy);
}
.specs span {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------------- 页脚 ---------------- */
.foot {
  background: var(--navy-900);
  color: rgba(242, 236, 221, 0.55);
  padding-top: clamp(44px, 5vw, 76px);
  overflow: hidden;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr;
  gap: clamp(22px, 3vw, 48px);
  padding-bottom: clamp(34px, 4vw, 56px);
}
.foot h4 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.42);
}
.foot p { font-size: 13px; line-height: 1.8; max-width: 34ch; }
.foot li { margin-bottom: 9px; }
.foot a { transition: color var(--t) var(--ease); }
.foot a:hover { color: var(--gold-300); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(242, 236, 221, 0.12);
  padding: 18px 0 22px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(46px, 10.5vw, 150px);
  line-height: 0.86;
  letter-spacing: 0.04em;
  color: rgba(182, 150, 109, 0.5);
  white-space: nowrap;
  padding: 0 var(--pad-x) 10px;
  margin: 0;
  transform: translateY(6px);
}

/* ---------------- 缺图兜底（图没放进去时的占位底纹） ---------------- */
.is-empty img { display: none; }
.slide.is-empty,
.tile-media.is-empty {
  background-color: #0d1826;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(242, 236, 221, 0.045) 0 1px,
      rgba(242, 236, 221, 0) 1px 26px),
    radial-gradient(120% 90% at 30% 18%, #1b2b46 0%, #0b1626 62%);
}
.slide.is-empty::before,
.tile-media.is-empty::before {
  content: "HEBEI JINDIAN";
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(182, 150, 109, 0.5);
  pointer-events: none;
}
.tile-media.is-empty::before { top: 15px; }
.slide.is-empty::before {
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(14px, 1.5vw, 22px);
}

/* ---------------- 断点 ---------------- */
@media (max-width: 979px) {
  .nav-links { display: none; }
  .nav-right .nav-req { display: none; }
  .burger { display: inline-flex; }
  .brand img { height: 22px; }
  .slide-cap h1 { font-size: clamp(27px, 7vw, 40px); max-width: 13ch; }
  .slide-cap { transition: opacity .3s var(--ease); }
.stage.is-rising .slide-cap { opacity: 0; }
.slide-cap p { font-size: 12.5px; max-width: 34ch; }
  .slide-cap { bottom: calc(34vh + 30px); }
  .slide::after {
    background:
      linear-gradient(90deg, rgba(9,16,28,.78) 0%, rgba(9,16,28,.28) 58%, rgba(9,16,28,.1) 100%),
      linear-gradient(180deg, rgba(9,16,28,.5) 0%, rgba(9,16,28,.2) 38%, rgba(9,16,28,.72) 100%);
  }
  .stage-head { top: calc(var(--nav-h) + 10px); }
  .stage-head h2 { font-size: 20px; margin-top: 8px; }
  .stage-head .eyebrow { font-size: 9px; }
  .slide-ui { display: none; }
  .ticks { bottom: calc(30vh + 14px); }
  .scroll-hint { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .tile-body h3 { font-size: var(--tf, 12.5px); }
}

@media (max-width: 620px) {
  .brand-txt { font-size: 10px; letter-spacing: 0.2em; }
  .brand-txt small { display: none; }
  .brand img { height: 26px; }
  .specs { grid-template-columns: 1fr; gap: 16px; }
  .specs b { font-size: 24px; }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .wordmark { font-size: 13vw; }
}

/* 移动端展开菜单 */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: calc(var(--nav-h) + 20px) var(--pad-x) 40px;
  background: var(--navy-900);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mmenu.is-open { transform: none; }
.mmenu a {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--on-dark);
  padding: 14px 0;
  border-bottom: var(--hair-dark);
}
.mmenu small {
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.45);
}
/* ---------------- 页脚：联系方式 + 二维码 ---------------- */
.foot-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.foot-brand p { max-width: 30ch; }

.foot-contact {
  margin-top: clamp(28px, 3.4vw, 46px);
  border-top: 1px solid rgba(242, 236, 221, 0.12);
  padding: clamp(26px, 3vw, 40px) 0 clamp(30px, 3.6vw, 52px);
}
.fc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-bottom: clamp(18px, 2vw, 26px);
}
.fc-head .eyebrow {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 236, 221, 0.42);
}
.fc-head p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(242, 236, 221, 0.45);
  white-space: nowrap;
}
.fc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc-card { display: flex; align-items: center; gap: 16px; }
.fc-qr {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  padding: 7px;
  background: #fff;
}
.fc-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fc-qr a { display: block; width: 100%; height: 100%; }
.fc-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fc-meta b {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
}
.fc-meta span {
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: rgba(242, 236, 221, 0.8);
}
.fc-meta small { font-size: 10.5px; line-height: 1.5; color: rgba(242, 236, 221, 0.4); }
.wordmark { font-size: clamp(40px, 9vw, 126px); margin-top: clamp(20px, 2.2vw, 34px); }

@media (max-width: 1080px) {
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .fc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .fc-head p { white-space: normal; font-size: 12px; }
  .fc-qr { width: 76px; height: 76px; padding: 6px; }
  .fc-meta { gap: 3px; }
  .fc-meta b, .fc-meta span { font-size: 12px; }
  .fc-meta small { font-size: 9.5px; }
}
@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .fc-grid { grid-template-columns: 1fr; gap: 20px; }
  .fc-head { display: block; }
  .fc-head p { margin-top: 8px; white-space: normal; }
  .fc-qr { width: 80px; height: 80px; }
  .fc-meta b, .fc-meta span { font-size: 13px; }
  .fc-meta small { font-size: 10.5px; }
}
/* ==================== 关于区 ==================== */
.about {
  background: var(--paper);
  padding: clamp(68px, 7.6vw, 116px) 0 clamp(60px, 6.8vw, 104px);
  scroll-margin-top: 84px;
}

.ac-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(30px, 3.6vw, 52px);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.ac-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-700);
}
.ac-rule-sm { display: block; width: clamp(26px, 3.4vw, 48px); height: 1px; background: var(--gold); }

.ac-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: start;
}

.about h2.ac-title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--navy-900);
}

.ac-text {
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.88;
  color: var(--ink-2);
}

.ac-list { list-style: none; margin: 0; padding: 0; }
.ac-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: var(--hair);
}
.ac-list li:last-child { border-bottom: var(--hair); }
.ac-n {
  padding-top: 3px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold-700);
}
.ac-list b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.ac-list div > span { display: block; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

.ac-divider {
  display: block;
  height: 1px;
  margin: clamp(40px, 4.6vw, 64px) 0 0;
  background: var(--line);
}
.ac-divider.is-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ac-divider.is-rule.on { transform: scaleX(1); }

.ac-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-stats li { padding: clamp(22px, 2.6vw, 34px) 0 0 clamp(20px, 2.6vw, 40px); }
.ac-stats li:first-child { padding-left: 0; }
.ac-stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s ease;
}
.ac-stats li:hover b { color: var(--gold-700); }
.ac-stats span {
  display: block;
  margin-top: 11px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 1080px) {
  .ac-body { grid-template-columns: 1fr; gap: 34px; }
  .about h2.ac-title { max-width: 20ch; font-size: clamp(26px, 4.6vw, 38px); }
  .ac-text { max-width: 54ch; }
}
@media (max-width: 720px) {
  .about h2.ac-title { font-size: 27px; }
  .ac-stats b { font-size: 32px; }
  .ac-stats li { padding-left: 18px; }
}
