/* ============================================================
   中国梦 · Chinese Dream — layout.css
   头部导航 / 英雄区 / 板块布局 / 页脚
   ============================================================ */

/* ---------------- 滚动进度 ---------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--red-bright));
  box-shadow: 0 0 16px rgba(255, 45, 70, 0.8);
  transition: width 0.12s linear;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), padding 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  font-family: var(--f-serif);
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  box-shadow: 0 0 24px -6px rgba(200, 16, 46, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}
.brand small {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  color: rgba(243, 237, 225, 0.72);
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 60%; }
.nav a.is-active { color: var(--gold-light); }
.nav a.is-active::after { width: 60%; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------------- 英雄区 ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 3; }

.hero__seal {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 1rem 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(217, 164, 65, 0.07);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
}
.hero__seal b {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0;
  animation: pulse-ring 2.6s ease-out infinite;
}

.hero h1 {
  font-size: clamp(2.6rem, 8.4vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: line-up 1.05s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.26s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.4s; }

.hero__sub {
  font-family: var(--f-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.36em;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero__desc { max-width: 56ch; font-size: clamp(0.95rem, 1.5vw, 1.05rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  max-width: 720px;
}
.hero__stat b {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: #fff;
  line-height: 1.1;
}
.hero__stat span {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(243, 237, 225, 0.55);
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  color: rgba(243, 237, 225, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* 大字背景 */
.hero__ghost {
  position: absolute;
  right: -3vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-serif);
  font-size: clamp(14rem, 34vw, 30rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 164, 65, 0.10);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

/* ---------------- 标题区 ---------------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.sec-head p { margin-bottom: 0; }

/* ---------------- 页面头部（内页） ---------------- */
.page-head {
  padding: 9.5rem 0 3rem;
  position: relative;
}
.page-head h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); margin-bottom: 0.9rem; }
.page-head .lead { max-width: 66ch; }
.page-head__num {
  position: absolute;
  right: 0; top: 7.5rem;
  font-family: var(--f-serif);
  font-size: clamp(5rem, 14vw, 11rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 164, 65, 0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ---------------- 两栏内容 ---------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.sticky-col { position: sticky; top: 7rem; }

/* ---------------- 数字 ---------------- */
.num {
  font-family: var(--f-serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat-big {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  color: #fff;
}
.stat-big em {
  font-style: normal;
  font-size: 0.4em;
  color: var(--gold);
  margin-left: 0.25em;
  letter-spacing: 0.05em;
}
.stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: rgba(243, 237, 225, 0.5);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 3rem;
  padding: 3.4rem 0 2.2rem;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.35));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer__title {
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__list a { color: rgba(243, 237, 225, 0.62); font-size: 0.88rem; }
.footer__list a:hover { color: var(--gold-light); }
.footer__bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(243, 237, 225, 0.38);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .page-head__num { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    width: min(78vw, 340px);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem 2rem;
    background: rgba(8, 11, 17, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.5s var(--ease);
    z-index: 85;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; padding: 0.7rem 0; }
  .nav a::after { display: none; }
  .hero { min-height: auto; padding-top: 8.5rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__ghost { opacity: 0.5; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 0.9rem; }
}
