/* ========================================
   教学成果展示网站 - 主样式 v7
   全分辨率根rem流式缩放方案

   核心策略：
   - html font-size 随视口宽度连续线性变化
   - 所有尺寸/间距/字号用 rem
   - media query 只管布局切换，不管字号/间距变化
   - 里程碑用 flex三段式布局 + transform滚动（避免overflow裁剪）
   ======================================== */

/* ========================================
   根字号：从 375px(10px) 线性到 1440px(16px) 到 4K(24px)
   公式：7.887 + 0.5634vw
   验证：375→10, 768→12.2, 1024→13.7, 1440→16, 1920→18.7, 2560→22.3
   ======================================== */
html {
  font-size: clamp(10px, calc(7.887px + 0.5634vw), 24px);
  scroll-behavior: smooth;
}

:root {
  --primary-dark: #0f58b5;
  --primary: #0f58b5;
  --primary-light: #1886dc;
  --accent: #1572cc;
  --accent-light: #56a5e8;
  --gradient-start: #0f58b5;
  --gradient-mid: #1572cc;
  --gradient-end: #1886dc;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-gray: #555555;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
  --shadow-light: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.2);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --transition: all 0.3s ease;

  /* 布局尺寸（rem，随根字号自动缩放） */
  --header-h: 6.75rem;
  --container-max: 90rem;
  --container-pad: 2.75rem;
  --section-pad-y: 6rem;
  --section-gap: 3.5rem;
  --slider-pad: 2.5rem; /* 滑动组件两侧留白，避免箭头盖内容 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-light);
  overflow-x: hidden;
  font-size: 1rem;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ========================================
   顶部导航 — 初始透明，滚动后毛玻璃
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  height: auto;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.header.scrolled {
  background: rgba(15, 88, 181, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0.125rem 1.875rem rgba(0, 0, 0, 0.35);
}

/* 详情页导航栏：始终不透明 */
.header--solid {
  background: rgba(15, 88, 181, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0.125rem 1.875rem rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 95rem;
  margin: 0 auto;
  padding: 0.65rem var(--container-pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-left {
  flex: 1;
  min-width: 0;
}

/* 品牌区：两行布局 */
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand-row--top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  height: 2.65rem;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.brand-site-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.brand-achievement {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 1.5rem;
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative; transition: var(--transition);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.main-nav a.active::after {
  content: '';
  position: absolute; bottom: 0.25rem; left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}

/* ========================================
   汉堡菜单按钮（仅移动端显示）
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem; height: 2.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.625rem;
  cursor: pointer;
  padding: 0;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 1.25rem; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   移动端全屏菜单
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 88, 181, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  padding: 5rem 2rem;
}

.mobile-menu-nav a {
  display: block;
  width: 100%;
  max-width: 20rem;
  padding: 1.1rem 2rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* ========================================
   Hero 轮播区域 — 全屏 + 高度随分辨率缩放
   ======================================== */
.hero-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 60%, var(--gradient-end) 100%);
  /* 与活动横幅原图比例一致 1024:533，减少拉伸糊化 */
  width: 100%;
  aspect-ratio: 1024 / 533;
  height: auto;
  min-height: 28rem;
  max-height: 56.25rem;
}

.hero-slider {
  position: relative; width: 100%; height: 100%;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center; justify-content: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-bg--photo {
  background-position: center center;
}

/* 实拍图：等比缩放填满轮播区域，区域大于图片比例时继续放大（cover） */
.hero-slide--photo .hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: var(--primary);
}

.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 88, 181, 0.82) 0%,
    rgba(15, 88, 181, 0.6) 50%,
    rgba(24, 134, 220, 0.4) 100%
  );
}

/* 实拍图轮播：极轻遮罩，保留原图清晰度 */
.hero-slide-overlay--photo {
  background: linear-gradient(
    180deg,
    rgba(15, 88, 181, 0.04) 0%,
    rgba(15, 88, 181, 0.02) 60%,
    rgba(15, 88, 181, 0.18) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  max-width: 75rem;
  padding: 0 var(--container-pad);
}

.hero-content .badge {
  display: inline-block;
  padding: 0.4rem 1.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-content h2 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 56rem;
  margin-left: auto; margin-right: auto;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.75rem;
  z-index: 5;
}

.slider-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer; transition: var(--transition); border: none;
}

.slider-dot.active {
  background: #fff; transform: scale(1.25);
  box-shadow: 0 0 0.75rem rgba(255,255,255,0.4);
}


/* Math decoration in hero */
.math-deco {
  position: absolute;
  color: rgba(255, 255, 255, 0.05);
  font-family: "Times New Roman", serif;
  font-style: italic; user-select: none; pointer-events: none;
}

.math-deco:nth-child(1) { top: 12%; left: 6%; font-size: 4rem; }
.math-deco:nth-child(2) { top: 28%; right: 8%; font-size: 4.5rem; }
.math-deco:nth-child(3) { bottom: 18%; left: 10%; font-size: 3.5rem; }
.math-deco:nth-child(4) { bottom: 10%; right: 6%; font-size: 4rem; }

/* ========================================
   Section 通用样式
   ======================================== */
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-alt { background: var(--bg-white); }

.section-blue {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-header { text-align: center; margin-bottom: var(--section-gap); }

.section-header .section-en {
  font-size: 0.8rem;
  color: var(--accent-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-header .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark); position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
}

.section-blue .section-title { color: #fff; }

.section-header .section-title::after {
  content: ''; position: absolute;
  bottom: -0.7rem;
  left: 50%; transform: translateX(-50%);
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.section-header .section-desc {
  margin-top: 1.5rem;
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 53rem;
  margin-left: auto; margin-right: auto;
  line-height: 1.8;
}

.section-blue .section-desc { color: var(--text-secondary); }

/* ========================================
   成果简介
   ======================================== */
#intro {
  overflow: hidden;
}

#intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/seu-auditorium.png') left 58% / min(68rem, 110vw) auto no-repeat;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

#intro > .container {
  position: relative;
  z-index: 1;
}

.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text h3 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.intro-text p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 2; margin-bottom: 1rem;
  text-indent: 2em;
}

.intro-highlight {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.highlight-item {
  flex: 1;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #f3f8fd 0%, #e8f1fa 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  border-left: 3px solid var(--accent);
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.375rem 1.5rem rgba(21,114,204,0.15);
}

.highlight-item .num {
  font-size: 2.5rem;
  font-weight: 800; color: var(--primary);
}

.highlight-item .label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 0.3rem;
}

.intro-visual { position: relative; }

.intro-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.intro-image-box .deco-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.intro-image-box .deco-circle:nth-child(1) { width: 15rem; height: 15rem; top: -3rem; right: -3rem; }
.intro-image-box .deco-circle:nth-child(2) { width: 9rem; height: 9rem; bottom: -2rem; left: -2rem; }

/* ========================================
   成果视频
   ======================================== */
#video {
  overflow: hidden;
}

#video::before {
  content: '';
  position: absolute;
  top: 56%;
  right: -3%;
  transform: translate(-50px, -50%);
  width: min(26rem, 38vw);
  height: min(38rem, 72vh);
  background: url('../images/liudai-song.png') center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

#video > .container {
  position: relative;
  z-index: 1;
}

.video-wrapper {
  max-width: 68rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-heavy);
  position: relative; aspect-ratio: 16/9; background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  background: linear-gradient(135deg, rgba(15,88,181,0.85), rgba(24,134,220,0.75));
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.video-poster-overlay:hover { filter: brightness(1.08); }

.video-poster-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.play-btn {
  width: 5.5rem; height: 5.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  pointer-events: none;
}

.video-poster-overlay:hover .play-btn {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.28);
}

.video-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  z-index: 3;
}

.video-fallback code {
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

/* ========================================
   横向滑动组件通用样式
   箭头不盖住内容：slider有padding，箭头在padding区域
   ======================================== */
.h-slider-wrap {
  position: relative;
  padding: 0 var(--slider-pad);
}

.h-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1rem;
}

.h-slider::-webkit-scrollbar { display: none; }

.h-slider .slide-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* 滑动箭头 — 定位在wrap的padding区域外边缘，距内容区有间距 */
.h-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition); border: none; z-index: 10;
}

.h-slider-btn-prev { left: 1rem; }
.h-slider-btn-next { right: 1rem; }

/* 浅色背景下的箭头 */
.section-alt .h-slider-btn {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.section-alt .h-slider-btn:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0.25rem 1.25rem rgba(15,88,181,0.3);
}

/* 深色背景下的箭头 */
.section-blue .h-slider-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

.section-blue .h-slider-btn:hover {
  background: rgba(255,255,255,0.25);
}

.h-slider-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
}

/* 成果专题 slider 箭头向两边分散 */
#topics .h-slider-wrap {
  margin-left: -4rem;
  margin-right: -4rem;
  padding-left: 4rem;
  padding-right: 4rem;
}

/* ========================================
   历史沿革 — 横向滑动 + 轴线上下错落
   flex三段式布局：上半区(ms-half) + 轴点行(ms-dot-row) + 下半区(ms-half)
   奇数节点卡片在上半区，偶数节点卡片在下半区
   连接线(ms-stem)用flex:1自动填充到轴点，保证一定连上
   滚动用transform而非overflow，避免Y方向裁剪
   ======================================== */
#timeline {
  overflow: hidden;
}

#timeline::before {
  content: '';
  position: absolute;
  width: min(36rem, 72vw);
  height: min(36rem, 72vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: url('../images/cmc-logo.png') center / cover no-repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

#timeline > .container {
  position: relative;
  z-index: 1;
}

/* 外层容器：扩展4rem，为箭头留足空间，箭头距外边缘1.5rem */
.milestone-outer {
  position: relative;
  margin-left: -4rem;
  margin-right: -4rem;
  padding-left: 4rem;
  padding-right: 4rem;
}

/* 视口区域：固定高度容纳上下错落卡片 */
.milestone-viewport {
  position: relative;
  overflow: hidden;
  height: 36rem;
  --ms-card-gap: 2.5rem; /* 卡片边缘 ↔ 时间轴 */
}

/* 水平时间轴线 — 贯穿可视区域中央 */
.milestone-axis {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-light));
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}

/* 滑动轨道：flex横向排列，用transform实现水平滚动 */
.milestone-track {
  display: flex;
  gap: 1rem;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 1rem;
}

/* 里程碑节点：卡片在上半/下半 + 绝对定位圆点确保对齐轴线 */
.ms-node {
  flex-shrink: 0;
  width: 20rem;
  height: 100%;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 上半区 / 下半区：各占 flex:1 */
.ms-half {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: visible;
}

/* 上方节点：卡片底边距轴固定，stem 填充剩余高度 */
.ms-node--top .ms-half:first-child .milestone-card {
  position: absolute;
  left: 50%;
  bottom: var(--ms-card-gap);
  transform: translateX(-50%);
}

.ms-node--top .ms-half:first-child .ms-stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: var(--ms-card-gap);
  flex: none;
}

/* 下方节点：卡片顶边距轴固定，stem 等高 */
.ms-node--bottom .ms-half:last-child .milestone-card {
  position: absolute;
  left: 50%;
  top: var(--ms-card-gap);
  transform: translateX(-50%);
}

.ms-node--bottom .ms-half:last-child .ms-stem {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: var(--ms-card-gap);
  flex: none;
}

/* 轴点圆环 — 绝对定位在50%，与轴线精确对齐 */
.ms-dot-row {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-dot {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(21,114,204,0.3);
  position: relative;
}

/* 连接线(stem)：卡片 ↔ 轴点，高度与 --ms-card-gap 一致 */
.ms-stem {
  width: 2px;
  background: var(--accent);
  opacity: 0.35;
  flex-shrink: 0;
}

/* 里程碑卡片 */
.milestone-card {
  width: 18rem;
  min-height: 9rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  border-top: 4px solid var(--accent);
  flex-shrink: 0;
}

/* 上方卡片角落装饰 */
.ms-node--top .milestone-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 4rem; height: 4rem;
  background: linear-gradient(135deg, transparent 50%, rgba(21,114,204,0.06) 50%);
  border-radius: 0 var(--radius-lg) 0 0;
}

.milestone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 2.25rem rgba(0,0,0,0.12);
}

.milestone-year {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -1px;
}

.milestone-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.milestone-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* 里程碑导航箭头 — 定位在outer容器边缘，更加分散 */
.ms-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.ms-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0.25rem 1.25rem rgba(15,88,181,0.3);
}

.ms-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ms-arrow--prev { left: 1.5rem; }
.ms-arrow--next { right: 1.5rem; }

/* ========================================
   主要完成人 — 参考 cpipc 专家领衔
   渐变圆环头像 + 居中放大 + 简介渐显
   ======================================== */
.section-experts {
  position: relative;
  overflow: visible;
  padding-top: calc(var(--section-pad-y) + 1.5rem);
  padding-bottom: 3rem;
}

.section-experts + #topics {
  padding-top: 3.5rem;
}

.section-experts > .container {
  position: relative;
  z-index: 1;
}

.section-experts .section-header {
  margin-bottom: calc(var(--section-gap) + 0.5rem);
}

.expert-slider-wrap {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 0 var(--expert-wrap-pad-bottom);
  overflow: hidden;
  --expert-gap: 1.25rem;
  --expert-visible: 5;
  --expert-center-idx: 2;
  --expert-desc-h: 5.75rem;
  --expert-avatar-ring: 9rem;
  --expert-scale-max: 1.12;
  --expert-headroom: 1.75rem;
  --expert-name-mt: 1.05rem;
  --expert-name-slot: 2.15rem;
  --expert-desc-mt: 0.85rem;
  --expert-scale-pad: calc(var(--expert-avatar-ring) * (var(--expert-scale-max) - 1) / 2);
  --expert-nav-gap: 2.75rem;
  --expert-nav-h: 2.75rem;
  --expert-wrap-pad-bottom: 1.75rem;
  --expert-slide-stack: calc(
    var(--expert-avatar-ring) +
    var(--expert-name-mt) + var(--expert-name-slot) +
    var(--expert-desc-mt) + var(--expert-desc-h)
  );
  --expert-slider-h: calc(
    var(--expert-headroom) +
    var(--expert-slide-stack) +
    var(--expert-scale-pad) + 0.75rem
  );
  --expert-wrap-h: calc(
    var(--expert-slider-h) +
    var(--expert-nav-gap) + var(--expert-nav-h)
  );
  --slide-w: calc((100% - (var(--expert-visible) - 1) * var(--expert-gap)) / var(--expert-visible));
  height: var(--expert-wrap-h);
  min-height: var(--expert-wrap-h);
}

.expert-slider {
  display: flex;
  gap: var(--expert-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  padding: var(--expert-headroom) 0 calc(0.75rem + var(--expert-scale-pad));
  align-items: flex-start;
  height: var(--expert-slider-h);
  min-height: var(--expert-slider-h);
  max-height: var(--expert-slider-h);
  flex-shrink: 0;
}

.expert-slider::-webkit-scrollbar { display: none; }

.expert-slide {
  flex: 0 0 calc((100% - (var(--expert-visible) - 1) * var(--expert-gap)) / var(--expert-visible));
  width: calc((100% - (var(--expert-visible) - 1) * var(--expert-gap)) / var(--expert-visible));
  min-width: 0;
  height: var(--expert-slide-stack);
  min-height: var(--expert-slide-stack);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  --focus: 0;
  opacity: calc(0.62 + 0.38 * var(--focus));
}

/* 渐变圆环头像 — 缩放仅作用于头像，避免整列高度变化 */
.expert-avatar-ring {
  width: var(--expert-avatar-ring);
  height: var(--expert-avatar-ring);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed transparent;
  border-color: rgba(255, 255, 255, calc(0.55 * var(--focus, 0)));
  flex-shrink: 0;
  transform: scale(calc(0.92 + 0.2 * var(--focus)));
  transform-origin: center center;
}

.expert-avatar-inner {
  width: calc(var(--expert-avatar-ring) - 0.5rem);
  height: calc(var(--expert-avatar-ring) - 0.5rem);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  padding: 0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-avatar-core {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-avatar-img {
  width: calc(var(--expert-avatar-ring) - 0.85rem);
  height: calc(var(--expert-avatar-ring) - 0.85rem);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 100%);
}

.expert-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.expert-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, calc(0.88 + 0.12 * var(--focus, 0)));
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: var(--expert-name-mt);
  height: var(--expert-name-slot);
  min-height: var(--expert-name-slot);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-slide.is-active .expert-name {
  font-size: 1.38rem;
  font-weight: 700;
}

.expert-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  width: 100%;
  height: var(--expert-desc-h);
  padding: 0 0.15rem;
  margin-top: var(--expert-desc-mt);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.5s;
}

.expert-slide.is-active .expert-desc {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.expert-desc span {
  width: 100%;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-word;
}

/* 导航按钮 — 下方，JS 对齐左右相邻人头像中心 */
.expert-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(
    var(--expert-headroom) +
    var(--expert-avatar-ring) * var(--expert-scale-max) +
    var(--expert-name-mt) + var(--expert-name-slot) +
    var(--expert-nav-gap)
  );
  height: var(--expert-nav-h);
  pointer-events: none;
  z-index: 5;
}

.expert-nav-btn {
  position: absolute;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  transform: translateX(-50%);
  left: 0;
}

.expert-nav-btn:hover:not(:disabled) {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%) scale(1.06);
}

.expert-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ========================================
   成果专题 / 材料列表
   ======================================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.topic-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-top: 5px solid transparent;
}

.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
}

.topic-card.materials { border-top-color: #e53935; }
.topic-card.report { border-top-color: var(--accent); }
.topic-card.support { border-top-color: #43a047; }

.topic-body {
  padding: 1.8rem;
}

.topic-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.topic-body p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.topic-list { margin-bottom: 0; }

.topic-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  display: flex;
  align-items: center; gap: 0.5rem;
}

.topic-list li:last-child { border-bottom: none; }

.topic-list li::before {
  content: '→'; color: var(--accent);
  font-weight: bold; flex-shrink: 0;
}

.topic-list a { color: var(--text-gray); }
.topic-list a:hover { color: var(--accent); }

.topic-more {
  display: inline-flex; align-items: center;
  gap: 0.4rem; color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.topic-more:hover { gap: 0.75rem; }

/* ========================================
   布局切换断点 — 仅处理布局变化，不调字号/间距
   ======================================== */

/* ---------- 平板端 (≤1200px) ---------- */
@media (max-width: 1200px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-visual { order: 1; }

  #intro::before {
    background-size: min(52rem, 130vw) auto;
    background-position: center 85%;
    opacity: 0.05;
  }

  #timeline::before {
    width: min(28rem, 85vw);
    height: min(28rem, 85vw);
    opacity: 0.03;
  }
}

/* ---------- 小平板 (≤1024px) ---------- */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: 1fr; }

  #video::before {
    width: min(18rem, 52vw);
    height: min(28rem, 55vh);
    top: 58%;
    right: -6%;
    opacity: 0.1;
  }

  .brand-site-name { font-size: 0.85rem; }
  .brand-achievement { font-size: 1.15rem; }
  .main-nav a { padding: 0.45rem 1rem; font-size: 0.85rem; }
}

/* ---------- 移动端 (≤768px) ---------- */
@media (max-width: 768px) {
  /* 汉堡菜单 */
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  :root { --header-h: 5.5rem; }

  .header-inner {
    padding: 0.5rem var(--container-pad);
    align-items: flex-start;
    padding-top: 0.65rem;
  }

  .brand-logo { height: 2rem; }
  .brand-row--top { gap: 0.55rem; }
  .brand-site-name {
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.25;
  }
  .brand-achievement {
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 高亮卡片改为横排 */
  .intro-highlight { flex-direction: column; }
  .highlight-item {
    display: flex; align-items: center; gap: 0.8rem;
    text-align: left;
  }

  /* 专题卡片单列 */
  .topics-grid { grid-template-columns: 1fr; }

  /* 里程碑：小屏适配 */
  .milestone-viewport { height: 30rem; }
  .ms-node { width: 16rem; min-height: 30rem; }
  .milestone-card { width: 14rem; min-height: 7.5rem; padding: 1rem; }
  .milestone-year { font-size: 2rem; }
  .milestone-title { font-size: 1rem; }
  .milestone-desc { font-size: 0.8rem; }
  .ms-arrow { width: 2.5rem; height: 2.5rem; font-size: 1rem; }

  /* slider wrap 不再扩展（屏幕已经窄了） */
  #topics .h-slider-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--slider-pad);
    padding-right: var(--slider-pad);
  }

  .expert-slider-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    --expert-visible: 3;
    --expert-center-idx: 1;
    --expert-desc-h: 5rem;
    --expert-avatar-ring: 7.75rem;
    --expert-headroom: 1.25rem;
    --expert-name-mt: 0.85rem;
    --expert-name-slot: 1.95rem;
    --expert-desc-mt: 0.75rem;
    --expert-nav-gap: 2.25rem;
  }

  .expert-name { font-size: 1rem; }
  .expert-slide.is-active .expert-name { font-size: 1.22rem; }
  .expert-desc span { font-size: 0.8rem; }
  .expert-nav-btn { width: 2.25rem; height: 2.25rem; font-size: 1rem; }

  .expert-nav {
    top: calc(
      var(--expert-headroom) +
      var(--expert-avatar-ring) * var(--expert-scale-max) +
      var(--expert-name-mt) + var(--expert-name-slot) +
      var(--expert-nav-gap)
    );
  }

  .milestone-outer {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--slider-pad);
    padding-right: var(--slider-pad);
  }

  /* 移动端箭头回到内容边缘 */
  .h-slider-btn-prev { left: 0; }
  .h-slider-btn-next { right: 0; }
  .ms-arrow--prev { left: 0.25rem; }
  .ms-arrow--next { right: 0.25rem; }

  /* Hero 字号微调 */
  .hero-content h2 { line-height: 1.3; }
}

/* ---------- 触摸设备优化 ---------- */
@media (hover: none) and (pointer: coarse) {
  .h-slider-btn { width: 2.5rem; height: 2.5rem; }
  .ms-arrow { width: 2.5rem; height: 2.5rem; }
  .slider-arrow { width: 2.875rem; height: 2.875rem; }
    .topic-list li { min-height: 2.75rem; }
  .mobile-menu-nav a { min-height: 3.25rem; }

  /* 禁用hover效果避免粘滞 */
  .milestone-card:hover { transform: none; }
  .topic-card:hover { transform: none; }
  .highlight-item:hover { transform: none; }
}

/* ---------- 安全区域适配（刘海屏/底部横条） ---------- */
@supports (padding-top: env(safe-area-inset-top)) {
  .header { padding-top: env(safe-area-inset-top); }
  .hero-section { min-height: 28rem; }
  .mobile-menu-nav { padding-top: calc(5rem + env(safe-area-inset-top)); }
}

/* ---------- 横屏手机适配 ---------- */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-section { min-height: 24rem; }
  .section { padding: 3rem 0; }
  .milestone-viewport { height: 26rem; }
  .ms-node { min-height: 26rem; }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(2.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

.animate-on-scroll {
  opacity: 0; transform: translateY(2.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
  background: linear-gradient(180deg, var(--primary) 0%, #0d4a9a 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 1.33rem;
}

.footer-contact h4 {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  align-self: start;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  transition: var(--transition);
  text-align: left;
}

.footer-links a:hover { color: #fff; }

.footer-links-rows {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 2.5rem;
  row-gap: 0.35rem;
  justify-items: start;
  align-items: start;
}

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.footer-contact-body {
  display: contents;
}

.footer-contact-info {
  grid-column: 1;
  grid-row: 2;
  flex-shrink: 0;
  padding-top: 0.9rem;
}

.footer-qrcodes {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.footer-qr-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-qr-item img {
  width: 6.25rem;
  height: 6.25rem;
  display: block;
  margin: 0 auto;
  background: #fff;
  padding: 0.35rem;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.footer-qr-item figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
  white-space: nowrap;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links-rows { column-gap: 1.5rem; }
  .footer-contact {
    display: flex;
    flex-direction: column;
  }
  .footer-contact h4 { margin-bottom: 0.9rem; }
  .footer-contact-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .footer-contact-info {
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
    text-align: center;
  }
  .footer-qrcodes {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    justify-content: center;
  }
  .footer-qr-item figcaption { font-size: 0.72rem; }
}

/* ========================================
   404 页面
   ======================================== */
.page-404 {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) var(--container-pad) 4rem;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  overflow: hidden;
}

.page-404-deco {
  position: absolute;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.page-404-deco:nth-child(1) {
  top: 18%;
  left: 8%;
  font-size: 3.5rem;
}

.page-404-deco:nth-child(2) {
  bottom: 22%;
  right: 10%;
  font-size: 2.75rem;
}

.page-404-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  text-align: center;
  color: #fff;
}

.page-404-code {
  font-size: clamp(5rem, 18vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.page-404-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.page-404-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
}

.page-404-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.75rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.page-404-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.page-404-btn--primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.page-404-btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  border-color: #fff;
}

.page-404-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.page-404-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  transition: var(--transition);
}

.page-404-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .page-404 {
    min-height: calc(100vh - var(--header-h));
    padding-top: calc(var(--header-h) + 2rem);
  }

  .page-404-actions {
    flex-direction: column;
    width: 100%;
  }

  .page-404-btn {
    width: 100%;
    max-width: 16rem;
  }

  .page-404-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}