/* ============ 顶部导航 ============ */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.hdr.stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

/* 处于深蓝 hero 顶部时（未吸顶），品牌文字用浅色 */
.hdr:not(.stuck) .logo,
.hdr:not(.stuck) .nav a {
  color: rgba(234, 242, 255, 0.92);
}

.hdr:not(.stuck) .nav a:hover,
.hdr:not(.stuck) .nav a.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hdr:not(.stuck) .hdr__cta {
  background: rgba(255, 255, 255, 0.12);
  color: #eaf2ff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hdr:not(.stuck) .logo__mark {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.hdr__in {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 8px rgba(43, 95, 166, 0.18));
  transition: transform 0.5s var(--ease-out);
}

.logo:hover .logo__mark {
  transform: rotate(-4deg) scale(1.04);
}

.logo img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--fg-2);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav a:hover,
.nav a.on {
  color: var(--fg);
  background: var(--acc-dim);
}

.nav a.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--acc);
  border-radius: 2px;
}

.hdr__cta {
  flex-shrink: 0;
}

/* 新闻列表/详情页：浅色页面，强制导航为「白玻璃 + 深色文字」常驻模式，
   避免透明白字压在浅色页头上看不清（这两个页 header 不再依赖 stuck 类切换） */
body.is-news .hdr {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
body.is-news .hdr .logo,
body.is-news .hdr .nav a {
  color: var(--fg-2);
}
body.is-news .hdr .logo:hover,
body.is-news .hdr .nav a:hover,
body.is-news .hdr .nav a.on {
  color: var(--fg);
}
body.is-news .hdr .nav a.on {
  background: var(--acc-dim);
}
body.is-news .hdr .nav a.on::after {
  background: var(--acc);
}
body.is-news .hdr__cta {
  background: var(--acc);
  color: #fff;
  border-color: transparent;
}
body.is-news .logo__mark {
  filter: drop-shadow(0 0 8px rgba(43, 95, 166, 0.18));
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}

.burger span + span {
  margin-top: 4.5px;
}

body.menu-open .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 940px) {
  .nav,
  .hdr__cta {
    display: none;
  }
  .burger {
    display: grid;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: 16px var(--pad) 28px;
    background: rgba(8, 12, 18, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    gap: 2px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav.open a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav.open a.on::after {
    display: none;
  }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 128px 64px;
  overflow: hidden;
  background: var(--grad-deep);
  color: #eaf2ff;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, #0a2247, transparent);
  pointer-events: none;
  z-index: 1;
}

.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__title {
  font-size: clamp(38px, 6.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero__title .ln {
  display: block;
  overflow: hidden;
}

.hero__title .ln > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.05s var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--d, 0) * 0.11s);
}

@keyframes lineUp {
  to {
    transform: none;
  }
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(96deg, #bcd4f5 8%, #ffffff 52%, #bcd4f5 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  margin-top: 26px;
  max-width: 54ch;
  color: rgba(234, 242, 255, 0.82);
  font-size: clamp(15px, 1.55vw, 17.5px);
  line-height: 1.85;
}

/* 子页 hero：内页不需要整屏高度，压缩为紧凑品牌带（首页保留 100dvh 全幅 hero） */
.hero--sub {
  min-height: clamp(300px, 42vh, 460px);
  padding-block: 124px 76px;
}

.hero--sub .hero__cue {
  display: none;
}

/* 子页：hero 已承载页面标题，隐藏板块自带标题块避免重复 */
body.is-sub [data-f="eyebrow"],
body.is-sub [data-f="title"],
body.is-sub [data-f="subtitle"],
body.is-sub [data-f="desc"],
body.is-sub [data-f="lead"] {
  display: none;
}

/* hero 内 eyebrow 用浅蓝，呼应品牌深蓝蒙版 */
.hero .eyebrow {
  color: #9cc0ef;
}

.hero .eyebrow::before {
  background: #9cc0ef;
}

/* hero 内“向下滚动”提示在深蓝蒙版上用浅色 */
.hero .hero__cue {
  color: rgba(234, 242, 255, 0.7);
}

.hero .hero__cue span {
  border-color: rgba(234, 242, 255, 0.4);
}

.hero .hero__cue span::after {
  background: #9cc0ef;
}

/* 子页 hero 顶部板块专属图标（玻璃质感徽章） */
.hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #eaf2ff;
  margin-bottom: 22px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.hero__icon svg {
  width: 34px;
  height: 34px;
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__side {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(43, 95, 166, 0.22), transparent 58%),
    radial-gradient(100% 70% at 6% 0%, rgba(176, 125, 40, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 38%),
    rgba(8, 14, 23, 0.5);
  box-shadow:
    0 34px 80px -34px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.2);
}

.hero__side::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 166, 76, 0.65), transparent);
  z-index: 2;
}

/* 首屏数据看板 */
.hstats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.hstat {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 22px;
  transition: background 0.35s;
}

.hstat::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.hstat:hover {
  background: rgba(176, 125, 40, 0.1);
}

.hstat:hover::after {
  transform: scaleX(1);
}

.hstat__v {
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
  background: linear-gradient(180deg, #ffffff 42%, #e9c97f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hstat__v i {
  font-style: normal;
  font-size: 0.55em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.hstat__l {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* 实时脉冲条（看板头部） */
.pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(176, 125, 40, 0.1), transparent 55%);
  font-size: 12px;
  color: #dbe6f5;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.pulse__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(176,125,40,0.7);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(176,125,40,0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(176,125,40,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(176,125,40,0);
  }
}

@media (max-width: 1024px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    min-height: auto;
    padding-block: 116px 56px;
  }
}

/* ============ 关键词跑马灯 ============ */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 17px;
  background: var(--bg-1);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline: 15px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 8px var(--gold-soft);
}

/* ============ 页脚 ============ */

.ftr {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding-block: clamp(56px, 7vw, 88px) 0;
}

.ftr__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.ftr__brand .logo {
  margin-bottom: 18px;
}

.ftr__brand .logo__mark {
  width: 36px;
  height: 36px;
}

.ftr__brand .logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
}

/* logo 风格的中文品牌名（呼应 logo 厚黑体） */
.ftr__name {
  margin-bottom: 10px;
}

.ftr__name b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--fg);
  background: var(--grad-acc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 副标题：左右细横线 + 字距，呼应 logo 副标题 */
.ftr__sub {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--acc);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.ftr__sub .ftr__line {
  height: 1px;
  width: 22px;
  background: var(--acc);
  opacity: 0.6;
}

/* 英文行：宽字距 + 浅蓝（呼应 logo 英文排版） */
.ftr__en {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--acc-bright);
  margin-bottom: 16px;
  text-transform: uppercase;
  opacity: 0.85;
}

.ftr__desc {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.85;
  max-width: 42ch;
}

.ftr__col h4 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 18px;
  font-weight: 500;
}

.ftr__col li + li {
  margin-top: 11px;
}

.ftr__col a,
.ftr__col span {
  font-size: 14px;
  color: var(--fg-2);
  transition: color 0.25s;
  line-height: 1.6;
  display: inline-block;
}

.ftr__col a:hover {
  color: var(--acc);
}

/* 工商信息 */
.legal {
  margin-top: 52px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.legal__t {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 16px;
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px 30px;
}

.legal__i {
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  gap: 8px;
}

.legal__i b {
  color: var(--fg-4);
  font-weight: 400;
  flex-shrink: 0;
}

.legal__i span {
  color: var(--fg-2);
  word-break: break-all;
}

.legal__i.warn span {
  color: #d9a441;
}

.ftr__bot {
  margin-top: 44px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--fg-4);
}

.ftr__bot a:hover {
  color: var(--acc);
}

@media (max-width: 880px) {
  .ftr__top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .ftr__brand {
    grid-column: 1 / -1;
  }
}

/* ============ 回到顶部 ============ */

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(12, 18, 26, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
}

.totop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.totop:hover {
  border-color: var(--acc-line);
  color: var(--acc);
}

/* 滚动进度条 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc-2), var(--acc));
  z-index: 200;
  width: 0;
  transition: width 0.1s linear;
}

/* ============ 子页面面包屑 ============ */

.crumb {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 96px var(--pad) 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-3);
}

.crumb a {
  color: var(--fg-3);
  transition: color 0.25s;
}

.crumb a:hover {
  color: var(--acc);
}

.crumb b {
  color: var(--fg);
  font-weight: 500;
}

.crumb__sep {
  color: var(--fg-4);
}

/* 子页 hero 内的面包屑：落在深蓝蒙版上，改用浅色文字，并横跨整行置于 hero 内容顶部 */
.hero .crumb {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: 0 0 18px;
  color: rgba(234, 242, 255, 0.78);
}
.hero .crumb a {
  color: rgba(234, 242, 255, 0.78);
}
.hero .crumb a:hover {
  color: #fff;
}
.hero .crumb b {
  color: #eaf2ff;
  font-weight: 500;
}
.hero .crumb__sep {
  color: rgba(234, 242, 255, 0.42);
}

/* ============ 视觉增强（v2）：区块氛围光 / 英雄极光 / 滚动提示 ============ */

/* 每个区块顶部一抹极淡极光，给长页面增加层次与节奏感（置于元素背景，不影响内容层级） */
.section {
  background: radial-gradient(120% 58% at 50% -12%, rgba(43,95,166,0.07), transparent 62%);
}

/* 交替浅色带：白底区块，与默认浅蓝底形成编辑式节奏，长页面更有层次 */
.section--alt {
  background:
    radial-gradient(120% 58% at 50% -12%, rgba(43,95,166,0.06), transparent 62%),
    var(--bg-1);
}

/* 英雄区背景极光球，缓慢呼吸，增强科技氛围（z-index:0，位于画布之下、文案之上之外） */
.hero::before {
  content: "";
  position: absolute;
  top: 4%;
  left: 3%;
  width: 48vw;
  height: 48vw;
  max-width: 660px;
  max-height: 660px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(43,95,166,0.22),
    rgba(43,95,166,0.05) 42%,
    transparent 64%
  );
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  animation: heroAura 16s ease-in-out infinite;
}

@keyframes heroAura {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.82;
  }
  50% {
    transform: translate(5%, 7%) scale(1.08);
    opacity: 1;
  }
}

/* 英雄区角落装饰：logo 风格（齿轮 + 像素散点 + 金色星 + 十字星） */
.hero__orn {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__orn > svg {
  position: absolute;
}

.hero__orn-gear {
  top: 56px;
  left: 32px;
  width: 64px;
  height: 64px;
  animation: heroOrnSpin 22s linear infinite;
  opacity: 0.85;
}

.hero__orn-pixels {
  top: 70px;
  right: 38px;
  width: 70px;
  height: 70px;
  opacity: 0.9;
}

.hero__orn-star {
  bottom: 110px;
  left: 48px;
  width: 44px;
  height: 44px;
  animation: heroOrnPulse 4.6s ease-in-out infinite;
  opacity: 0.95;
}

.hero__orn-spark {
  bottom: 96px;
  right: 56px;
  width: 64px;
  height: 64px;
  opacity: 0.85;
  animation: heroOrnSpin 30s linear infinite reverse;
}

@keyframes heroOrnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroOrnPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (max-width: 820px) {
  .hero__orn-gear,
  .hero__orn-pixels {
    width: 40px; height: 40px;
    top: 18px;
  }
  .hero__orn-gear { left: 10px; }
  .hero__orn-pixels { right: 10px; }

  .hero__orn-star,
  .hero__orn-spark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__orn-gear,
  .hero__orn-spark,
  .hero__orn-star {
    animation: none !important;
  }
}

/* 英雄区底部“向下滚动”提示 */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-4);
  pointer-events: none;
}

.hero__cue span {
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  position: relative;
}

.hero__cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--acc);
  transform: translateX(-50%);
  animation: cueDown 1.8s ease-in-out infinite;
}

@keyframes cueDown {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 13px);
  }
}

/* 页脚顶部极淡极光，与英雄区呼应 */
.ftr {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(43,95,166,0.09), transparent 70%),
    var(--bg-1);
}

@media (max-width: 700px) {
  .hero__cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero__cue span::after {
    animation: none;
  }
}
