/* 自定义字体：汉仪孙万民草书 */
@font-face {
  font-family: "汉仪孙万民草书";
  src: url("./汉仪孙万民草书.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #f7f5f0;
  --bg-2: #ffffff;
  --ink: #0f172a;         /* 深墨色 */
  --muted: #475569;       /* 次级文字 */
  --navy: #0b2a55;        /* 藏蓝 */
  --red: #b3262e;         /* 点缀红 */
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --ease: cubic-bezier(.2,.9,.2,1);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --cursive: "汉仪孙万民草书", "KaiTi", "楷体", serif; /* 草书字体 */

  /* 统一图片卡片的“图片显示区域”尺寸 */
  --photo-aspect: 16 / 10;

  /* 与“单位风采”图片区一致的底色（用于首屏与首段自然衔接） */
  --about-bg: linear-gradient(
    180deg,
    rgba(247,245,240,1) 0%,
    rgba(240,248,255,0.98) 15%,
    rgba(235,245,255,0.95) 40%,
    rgba(230,240,250,0.92) 100%
  );

  /* 首屏深藏蓝（你截图那种质感：深海军蓝 + 轻微光晕） */
  --hero-deep: radial-gradient(900px 560px at 70% 30%, rgba(255,255,255,.10), transparent 62%),
               radial-gradient(1000px 620px at 10% 80%, rgba(179,38,46,.10), transparent 58%),
               linear-gradient(180deg, #0b2a55 0%, #071b36 55%, #051428 100%);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 30% -10%, rgba(11, 42, 85, .08), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(179, 38, 46, .08), transparent 55%),
              var(--bg);
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.audio-unlock{
  /* 几乎不可见的“右下角超小圆点”，仅用于解锁音频播放 */
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: auto;
  transform: none;
  z-index: 9999;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 85, .18);
  padding: 0;
  margin: 0;
  background: rgba(11, 42, 85, .14);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(8px) saturate(1.12);
  cursor: pointer;
}
.audio-unlock[hidden]{ display:none; }
.audio-unlock__text{
  /* 文案保留给无障碍/可选提示，但视觉上隐藏 */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.audio-unlock:hover,
.audio-unlock:focus-visible{
  background: rgba(11, 42, 85, .22);
  border-color: rgba(179, 38, 46, .22);
  outline: none;
}

.audio-unlock::before{
  /* 扩大点击热区（不改变视觉大小） */
  content:"";
  position:absolute;
  inset:-12px;
  border-radius: 999px;
  background: transparent;
}

.audio-unlock::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(179,38,46,.10), transparent 60%);
  opacity: .55;
  pointer-events:none;
}

.skip-link{
  position:absolute; left:-999px; top:12px;
  padding:10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.skip-link:focus{ left: 12px; z-index: 9999; }

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Masthead (非导航栏，只是身份标识) */
.masthead{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(247, 245, 240, 0.72);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transform: translateY(-110%);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}

/* 首屏保持极简：抬头与进度条在转场区内隐藏，滚动进入内容后再显示 */
body:not(.content-ready) .masthead{
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
}
body:not(.content-ready) .progress{
  opacity: 0;
}
body.content-ready .masthead{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
body.content-ready .masthead.is-hidden {
  transform: translateY(-110%);
}
body.content-ready .progress{
  opacity: 1;
  transition: opacity .35s var(--ease);
}

/* ===== Hero (参考 1.mp4：全屏海报 + 中央圆形标识 + 极简角落信息) ===== */
.hero{
  position: relative;
  /* 关键：提供"滚动距离"来驱动转场进度（可逆） */
  /* 缩短过渡区：从 220vh 改为 180vh，减少空白阶段 */
  min-height: 180vh;
  overflow: clip;
  padding: 0;
  z-index: 10;
  /* scroll-linked 变量由 JS 写入 */
  --p: 0;
  --wipe-r: 0vmax;
  --hero-fade: 0;
  --wipe-cx: 50%;
  --wipe-cy: 44%;
}
.hero__pin{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: clip;
  background: var(--hero-deep);
}
/* 转场完成后仍保持白色“底色”（由 wipe 覆盖），这里作为兜底 */
body.content-ready .hero{ background: rgba(247,245,240,1); }
.hero__bgWrap{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: translateZ(0) scale(1.03);
  filter: saturate(1.05) contrast(1.02);
}
.hero__veil{
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 520px at 50% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    linear-gradient(to bottom, rgba(10,20,35,.22), rgba(10,20,35,.10) 45%, rgba(10,20,35,.18));
  pointer-events:none;
}
.hero__wipe{
  position:absolute;
  inset:0;
  /* 白色圆形扩散：在深蓝底上"擦出"浅色空间，进入内容区 */
  background: var(--about-bg);
  /* 由 JS 写入 --wipe-r：0vmax -> 150vmax */
  clip-path: circle(var(--wipe-r, 0vmax) at var(--wipe-cx) var(--wipe-cy));
  opacity: 1;
  pointer-events:none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 动效结束后的欢迎文字（竖版，错落有致） */
.hero__welcome{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  padding: 0.2em 0.15em;
  /* 宣纸纹理背景：在文字容器上叠加 */
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.018) 0px,
      rgba(0,0,0,0.018) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.012) 0px,
      rgba(0,0,0,0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(
      ellipse 180% 120% at 50% 50%,
      rgba(0,0,0,0.03) 0%,
      transparent 75%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,0.2) 0%,
      transparent 50%,
      rgba(0,0,0,0.02) 100%
    );
  background-color: rgba(252,250,247,0.4); /* 宣纸底色 */
  border-radius: 8px;
  /* 跟随 wipe 进度显示：当 wipe 半径足够大时（约 60% 进度）开始淡入 */
  opacity: calc((var(--p, 0) - 0.50) / 0.15); /* 0.50 -> 0.65 淡入 */
  opacity: clamp(0, calc((var(--p, 0) - 0.50) / 0.15), 1);
  transition: opacity 0.12s linear;
  pointer-events: none;
  z-index: 1;
}
/* 当白色背景完全覆盖时，确保文字完全显示 */
body.content-ready .hero__welcome{
  opacity: 1;
}
/* 单个字符：大字体 + 错落有致的位置 */
.hero__welcome-char{
  position: relative;
  display: inline-block;
  font-family: var(--cursive);
  font-size: clamp(68px, 10vw, 110px); /* 适当缩小字体 */
  font-weight: normal;
  color: var(--navy);
  line-height: 1;
  /* 错落有致：每个字有细微的水平偏移 */
  transform: translateX(0);
  filter: drop-shadow(0 2px 4px rgba(11,42,85,0.08));
  z-index: 1;
}
/* 每个字符的错落位置（形成自然的竖版排列，不是一条直线） */
.hero__welcome-char:nth-child(1){ transform: translateX(-8px); } /* 欢 */
.hero__welcome-char:nth-child(2){ transform: translateX(6px); }   /* 迎 */
.hero__welcome-char:nth-child(3){ transform: translateX(-4px); } /* 加 */
.hero__welcome-char:nth-child(4){ transform: translateX(10px); } /* 入 */
.hero__welcome-char:nth-child(5){ transform: translateX(-6px); } /* 娄 */
.hero__welcome-char:nth-child(6){ transform: translateX(4px); }   /* 底 */
.hero__welcome-char:nth-child(7){ transform: translateX(-10px); } /* 监 */
.hero__welcome-char:nth-child(8){ transform: translateX(8px); }   /* 狱 */
/* scroll-linked：随进度淡出背景与内容（可逆），避免“闪一下” */
.hero__center,
.hero__mark,
.hero__wordmark,
.hero__title,
.hero__sub{
  opacity: calc(1 - var(--hero-fade));
  transition: opacity 0.05s linear;
}
/* 当进度接近完成，确保内容彻底消失（避免边缘帧闪烁） */
body.content-ready .hero__center,
body.content-ready .hero__mark,
body.content-ready .hero__wordmark,
body.content-ready .hero__title,
body.content-ready .hero__sub{ opacity: 0; pointer-events:none; }
.hero__chrome{
  position:absolute;
  inset: 0;
  pointer-events:none;
}
.hero__corner{
  position:absolute;
  top: 16px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__corner--tl{ left: 16px; }
.hero__corner--tr{ right: 16px; text-align:right; }
.hero__mini{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.hero__mini::before{
  content:"";
  width: 18px;
  height: 1px;
  background: rgba(255,255,255,.5);
}
.hero__center{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 86px 22px 96px;
  text-align:center;
}
.hero__mark{
  position:relative;
  width: 188px;
  height: 188px;
  display:grid;
  place-items:center;
}
.hero__glass{
  position:absolute;
  inset: 2px; /* 对齐外圈 border 的内边缘（ring 有 border: 2px） */
  border-radius: 999px;
  /* "液态玻璃"质感：在 ring 内部，但在 logo 下面 */
  background:
    radial-gradient(160px 110px at 28% 26%, rgba(255,255,255,.18), rgba(255,255,255,0) 62%),
    radial-gradient(140px 100px at 74% 70%, rgba(255,255,255,.10), rgba(255,255,255,0) 64%),
    radial-gradient(240px 170px at 50% 58%, rgba(255,255,255,.06), rgba(255,255,255,0) 72%),
    rgba(255,255,255,.055);
  backdrop-filter: blur(16px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -18px 40px rgba(0,0,0,.10);
  /* 液态边缘：不遮住 logo（logo 在更高 z-index） */
  mask-image: radial-gradient(circle at 50% 46%, rgba(0,0,0,1) 0 68%, rgba(0,0,0,.86) 78%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, rgba(0,0,0,1) 0 68%, rgba(0,0,0,.86) 78%, rgba(0,0,0,0) 100%);
  pointer-events:none;
  z-index: 0;
}
.hero__glass::after{
  content:"";
  position:absolute;
  inset: 18px; /* 对齐内圈 */
  border-radius: 999px;
  /* 第二层玻璃：透明度更高/更轻（形成“两圈两质感”） */
  background:
    radial-gradient(130px 90px at 34% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%),
    radial-gradient(120px 90px at 68% 66%, rgba(255,255,255,.12), rgba(255,255,255,0) 62%),
    rgba(255,255,255,.035);
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -14px 26px rgba(0,0,0,.08);
  mask-image: radial-gradient(circle at 50% 46%, rgba(0,0,0,1) 0 70%, rgba(0,0,0,.80) 82%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, rgba(0,0,0,1) 0 70%, rgba(0,0,0,.80) 82%, rgba(0,0,0,0) 100%);
  pointer-events:none;
}
.hero__ring{
  position:absolute;
  inset:0;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  opacity: .96;
  z-index: 1;
}
.hero__ring::after{
  content:"";
  position:absolute;
  inset: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
}
.hero__logo{
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.22));
  z-index: 2;
}
.hero__wordmark{
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .28em;
  color: rgba(255,255,255,.82);
}
.hero__title{
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 5.2vw, 40px);
  line-height: 1.18;
  letter-spacing: .06em;
  color: rgba(255,255,255,.96);
  text-shadow: 0 18px 55px rgba(0,0,0,.26);
  margin: 0;
}
.hero__title-line{ display:block; }
.hero__sub{
  margin: 0;
  font-size: 12px;
  letter-spacing: .24em;
  color: rgba(255,255,255,.74);
}
.hero__orb{
  position:absolute;
  right: 14px;
  bottom: 16px;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  text-align:center;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(11, 42, 85, .42);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
}
.hero__orb:hover{
  background: rgba(11, 42, 85, .52);
  border-color: rgba(179, 38, 46, .30);
}
.hero__scroll{
  position:absolute;
  left: 50%;
  bottom: 56px; /* 向上移动：从 32px 改为 56px */
  transform: translateX(-50%);
  z-index: 2;
  /* 跟随 hero 内容淡出（可逆） */
  opacity: calc(1 - var(--hero-fade));
  transition: opacity 0.05s linear;
  pointer-events: none;
}
/* 当进度接近完成，确保指示器彻底消失 */
body.content-ready .hero__scroll,
body.has-scrolled .hero__scroll{
  opacity: 0;
  pointer-events: none;
}
.scroll-indicator{
  position:relative;
  padding-top: 30px;
}
.scroll-indicator::before{
  content:"";
  position:absolute;
  left:50%;
  top: 0;
  width:1px;
  height: 48px; /* 翻倍：24px -> 48px */
  transform: translateX(-50%);
  background: rgba(255,255,255,1); /* 纯白，完全不透明 */
}
.scroll-indicator::after{
  content:"";
  position:absolute;
  left:50%;
  top: 0; /* 从竖线顶部开始 */
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,1); /* 纯白，完全不透明 */
  animation: scrollDot 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollDot{
  0%{ 
    transform: translate(-50%, 0); /* 竖线顶部 */
  }
  50%{ 
    transform: translate(-50%, 43px); /* 竖线底部（48px - 5px = 43px） */
  }
  100%{ 
    transform: translate(-50%, 0); /* 返回顶部，形成往返 */
  }
}

@media (min-width: 860px){
  .hero__corner{ top: 18px; }
  .hero__corner--tl{ left: 22px; }
  .hero__corner--tr{ right: 22px; }
  .hero__orb{ right: 22px; bottom: 22px; }
}
.masthead__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}
.masthead__right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand{
  display:flex;
  gap: 12px;
  align-items:center;
  min-width: 0;
}
.brand__logo{
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
  object-fit: cover;
}
.brand__meta{ min-width:0; }
.brand__org{
  font-family: var(--serif);
  letter-spacing: .08em;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11, 42, 85, .08);
  border: 1px solid rgba(11, 42, 85, .14);
  color: var(--navy);
  font-size: 12px;
  letter-spacing: .18em;
}

/* Hero */
.hero.hero--legacy{
  position: relative;
  padding: 62px 0 26px;
}
.hero--legacy .hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items:center;
}
.hero--legacy .hero__kicker{
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: .28em;
  font-size: 12px;
}
.hero--legacy .hero__title{
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: .04em;
}
.hero__char{
  display:inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(0.4px);
  animation: heroRise .92s var(--ease) forwards;
  animation-delay: calc(var(--i) * 18ms);
  will-change: transform, opacity;
}
@keyframes heroRise{
  0%{ opacity: 0; transform: translateY(12px); }
  60%{ opacity: 1; }
  100%{ opacity: 1; transform: translateY(0); }
}
.hero__title-accent{ color: var(--red); padding: 0 .2em; }
.hero--legacy .hero__lead{
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(15, 23, 42, .78);
  max-width: 42ch;
}
.hero--legacy .hero__actions{
  display:flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: 13px;
}
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible{ outline: 3px solid rgba(179,38,46,.28); outline-offset: 3px; }
.btn--primary{
  background: linear-gradient(135deg, rgba(11,42,85,1), rgba(11,42,85,.88));
  border-color: rgba(11,42,85,.4);
  color: #fff;
}
.btn--primary:hover{ background: linear-gradient(135deg, rgba(11,42,85,1), rgba(11,42,85,.96)); }
.btn--ghost{
  background: rgba(255,255,255,.35);
}
.hero--legacy .hero__note{
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(71,85,105,.9);
  letter-spacing: .04em;
}

.media-frame{
  border-radius: var(--radius-xl);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.55);
}

/* Reveal mask (参考“材质遮罩揭示”的高级动效；克制、慢、干净) */
.reveal{
  position: relative;
  overflow: hidden;
}
.reveal::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,245,240,1) 0%, rgba(247,245,240,.94) 55%, rgba(247,245,240,0) 100%);
  transform: translateX(0);
  transition: transform 1.15s var(--ease);
  pointer-events: none;
}
.is-visible.reveal::after{
  transform: translateX(110%);
}
.reveal img{
  transform: scale(1.015);
  transition: transform 1.2s var(--ease);
}
.is-visible.reveal img{
  transform: scale(1);
}
.media-frame__img{
  width: 100%;
  height: auto;
  transition: transform 1.1s var(--ease);
}
.media-frame__caption{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.65);
}
.caption__title{
  font-family: var(--serif);
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--navy);
}
.caption__meta{
  font-size: 12px;
  color: rgba(71,85,105,.95);
}

.hero--legacy .hero__scroll{
  display:flex;
  justify-content:center;
  margin-top: 22px;
}
.hero--legacy .scroll-indicator{
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(15,23,42,.55);
  position: relative;
  padding-bottom: 14px;
}
.hero--legacy .scroll-indicator::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 10px;
  background: rgba(15,23,42,.35);
  transform: translateX(-50%);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip{
  0%{ transform: translateX(-50%) translateY(0); opacity:.35; }
  55%{ opacity:.7; }
  100%{ transform: translateX(-50%) translateY(8px); opacity: .05; }
}

/* Sections */
.section{
  padding: 64px 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
  will-change: transform, opacity;
  position: relative;
}
/* 第一个section：参考图二的淡蓝色渐变背景，从白色自然过渡 */
.section:first-of-type{
  background: var(--about-bg);
  margin-top: -1px; /* 与hero白色背景无缝衔接 */
}
/* 转场结束前，后续内容隐藏 */
body:not(.content-ready) .section{
  visibility: hidden;
}
/* 但第一个 section 在首屏后段允许"预揭示"，减少空白阶段（仍从下往上出现） */
body{
  --next-in: 0;
}
body:not(.content-ready) .section:first-of-type{
  visibility: visible;
  opacity: var(--next-in);
  /* 上滑距离：从 80px 到 0，让过渡更自然 */
  transform: translateY(calc((1 - var(--next-in)) * 80px));
  /* 预揭示阶段也使用平滑过渡，避免跳跃 */
  transition: opacity 0.12s linear, transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body.content-ready .section{
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
/* 第一个section延迟最短，从白色背景中自然滑入 */
body.content-ready .section:first-of-type{
  transition-delay: 0s;
  /* 确保 content-ready 时立即完成，无缝衔接预揭示 */
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
body.content-ready .section:nth-of-type(2){
  transition-delay: 0.25s;
}
body.content-ready .section:nth-of-type(3){
  transition-delay: 0.4s;
}
body.content-ready .section:nth-of-type(4){
  transition-delay: 0.55s;
}
body.content-ready .section:nth-of-type(5){
  transition-delay: 0.7s;
}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.24));
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.section__head{
  position: relative;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.section__head[data-ghost]::before{
  content: attr(data-ghost);
  position:absolute;
  left: -2px;
  top: -18px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: clamp(34px, 11vw, 78px);
  color: rgba(11, 42, 85, 0.08);
  pointer-events:none;
  user-select:none;
}
.section__title{
  margin:0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--navy);
  font-size: 24px;
  position: relative;
  padding-bottom: 10px;
}
.section__title::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(179,38,46,.70), rgba(11,42,85,.58));
  opacity: .75;
}
.section__desc{
  margin:0;
  max-width: 85ch;
  line-height: 1.95;
  color: rgba(71,85,105,.96);
  font-size: 14px;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 14px;
  grid-template-areas:
    "a b b"
    "a c c";
}
.gallery__item:nth-child(1){ grid-area: a; }
.gallery__item:nth-child(2){ grid-area: b; }
.gallery__item:nth-child(3){ grid-area: c; }
.gallery__item{
  margin:0;
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-soft);
  background: rgba(255,255,255,.6);
  transform: translateZ(0);
}
.gallery__item img{
  width:100%;
  aspect-ratio: var(--photo-aspect);
  height:auto;
  object-fit: cover;
}

/* 参考 2.mp4：移动端“画册式叠放” */
@media (max-width: 720px){
  .gallery{
    display:block;
  }
  .gallery__item{
    width: 88%;
  }
  .gallery__item:nth-child(1){
    margin-left: 0;
  }
  .gallery__item:nth-child(2){
    width: 74%;
    margin-left: auto;
    margin-top: -46px;
    z-index: 2;
    position: relative;
  }
  .gallery__item:nth-child(3){
    width: 80%;
    margin-left: 10px;
    margin-top: -38px;
    z-index: 3;
    position: relative;
  }
}

/* ===== SECTION：About Intro (米黄色背景) ===== */
.section--about-intro {
  background: var(--bg);
  padding: 40px 0 80px; /* 减小与上一 section 的距离 */
  position: relative;
  z-index: 1;
}

/* ===== GALLERY V3：参考 3.mp4 & 截图的“极简图文叠放” ===== */
.section--gallery {
  background: 
    radial-gradient(1000px 600px at 80% 20%, rgba(255,255,255,0.03), transparent 70%),
    linear-gradient(180deg, #0b2a55 0%, #071b36 50%, #051428 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 120px; /* 更加紧凑的纵向边距 */
  overflow: hidden;
  position: relative;
}

.section--gallery .container {
  display: flex;
  flex-direction: column;
}

/* 找回的 About 介绍部分样式 */
.about-intro {
  max-width: 680px;
  margin: 0;
  position: relative;
  z-index: 10;
}

.about-intro__head {
  position: relative;
  margin-bottom: 24px;
}

.about-intro__ghost {
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: var(--serif);
  font-size: clamp(60px, 12vw, 120px);
  color: rgba(15, 23, 42, 0.06); /* 淡灰色 ghost 效果，与 POSITIONS 一致 */
  line-height: 1;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: -1;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-intro__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

/* 红蓝渐变下划线 */
.about-intro__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(179,38,46,.70), rgba(11,42,85,.58));
  opacity: .75;
}

.about-intro__text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.95;
  color: rgba(71,85,105,.96);
  font-weight: 400;
  margin: 0;
  max-width: 85ch;
  text-align: left;
}

.gallery-v3 {
  display: flex;
  flex-direction: column;
  gap: 40px; /* 减小间距，使整体更紧凑 */
  flex: 1;
}

.gallery-v3__group {
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}

.gallery-v3__header {
  margin-bottom: 32px; /* 减小标题与图片之间的间距 */
  max-width: 600px;
  position: relative;
  z-index: 5;
}

/* Ghost Background Text Style (Similar to Image 2) */
.gallery-v3__ghost {
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: var(--serif);
  font-size: clamp(60px, 12vw, 120px);
  color: rgba(255, 255, 255, 0.04); /* 极淡的 ghost 效果 */
  line-height: 1;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: -1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-v3__zh {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 42px);
  color: #fff;
  letter-spacing: 0.1em;
  position: relative;
}
/* 装饰线，模仿图二 */
.gallery-v3__zh::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.gallery-v3__group[data-group="2"] .gallery-v3__zh::after,
.gallery-v3__group[data-group="4"] .gallery-v3__zh::after {
  left: auto;
  right: 0;
  background: linear-gradient(-90deg, var(--red), transparent);
}

.gallery-v3__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px; /* 减小文字与标题之间的间距 */
  line-height: 2;
  max-width: 42ch;
}

.gallery-v3__media {
  position: relative;
  width: 100%;
  min-height: 420px; /* 减小高度，避免过于空旷 */
}

.gallery-v3__fig {
  margin: 0;
  position: relative;
  border-radius: 4px; /* 极小圆角或直角 */
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.gallery-v3__fig img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-v3__fig--main {
  width: 70%;
  z-index: 1;
}

.gallery-v3__fig--sub {
  width: 62%;
  position: absolute;
  top: 40%;
  right: 0;
  z-index: 2;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
}

/* 左右交替 */
.gallery-v3__group[data-group="2"] .gallery-v3__header,
.gallery-v3__group[data-group="4"] .gallery-v3__header {
  align-self: flex-end;
  text-align: right;
}

.gallery-v3__group[data-group="2"] .gallery-v3__fig--main,
.gallery-v3__group[data-group="4"] .gallery-v3__fig--main {
  margin-left: auto;
}

/* 确保第一组和第三组（主图在左，副图在右）的重叠一致 */
.gallery-v3__group[data-group="1"] .gallery-v3__fig--sub,
.gallery-v3__group[data-group="3"] .gallery-v3__fig--sub {
  top: 40%;
}

.gallery-v3__group[data-group="2"] .gallery-v3__fig--sub,
.gallery-v3__group[data-group="4"] .gallery-v3__fig--sub {
  right: auto;
  left: 0;
  top: 40%; /* 调整为与第一组一致的重叠程度 */
}

@media (max-width: 768px) {
  .gallery-v3 {
    gap: 32px;
  }
  .gallery-v3__media {
    min-height: 280px;
  }
  .gallery-v3__fig--main {
    width: 85%;
  }
  .gallery-v3__fig--sub {
    width: 70%;
    top: 50%;
  }
}

@media (min-width: 920px){
  .about-story{ gap: 22px; }
  .about-story__panelInner{ padding: 34px 0; }
  .mosaic-card--a{
    margin-left: 60%;
    margin-right: auto;
    transform: rotate(-1deg);
  }
  .mosaic-card--b{
    margin-left: auto;
    margin-right: auto;
    transform: rotate(1deg);
    margin-top: -84px;
  }
  .mosaic-card--c{
    margin-left: 24%;
    margin-right: auto;
    transform: rotate(-0.6deg);
    margin-top: -70px;
  }
  .mosaic-card--d{
    margin-top: 120px;
    margin-left: 20%;
    transform: rotate(0.8deg);
  }
  .mosaic-card--e{
    margin-top: -100px;
    margin-right: 25%;
    transform: rotate(-1deg);
  }
  .mosaic-card--f{
    margin-top: 140px;
    margin-left: 55%;
    transform: rotate(0.6deg);
  }
  .mosaic-card--g{
    margin-top: -90px;
    margin-left: 10%;
    transform: rotate(-0.8deg);
  }
}
.gallery__item figcaption{
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(71,85,105,.95);
  letter-spacing: .06em;
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.65);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 980px){
  /* 参考 2.mp4：卡片轻微错层，形成“画册分镜”节奏（用 margin 避免与 reveal transform 冲突） */
  .cards .card:nth-child(2){ margin-top: 14px; }
  .cards .card:nth-child(3){ margin-top: 28px; }
}
.card{
  border-radius: var(--radius-xl);
  padding: 18px 18px 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.card:hover::after{ border-color: rgba(179,38,46,.18); }
.card__title{
  margin: 0;
  font-family: var(--serif);
  letter-spacing: .10em;
  color: var(--ink);
  font-size: 18px;
}
.card__meta{
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(71,85,105,.95);
  letter-spacing: .06em;
}
.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(247,245,240,.75);
  color: rgba(15,23,42,.86);
}
.chip--navy{
  border-color: rgba(11,42,85,.22);
  background: rgba(11,42,85,.08);
  color: var(--navy);
  font-weight: 700;
}
.chip--red{
  border-color: rgba(179,38,46,.22);
  background: rgba(179,38,46,.08);
  color: var(--red);
  font-weight: 700;
}

.kv{
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid rgba(15,23,42,.08);
}
.kv__row{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.kv__row dt{
  font-size: 12px;
  color: rgba(11,42,85,.9);
  letter-spacing: .10em;
}
.kv__row dd{
  margin:0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(15,23,42,.86);
}

.callout{
  margin-top: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(179,38,46,.14);
  background: linear-gradient(135deg, rgba(179,38,46,.06), rgba(11,42,85,.04));
  box-shadow: var(--shadow-soft);
  padding: 16px 16px;
}
.callout__title{
  font-family: var(--serif);
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--red);
}
.callout__body{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(15,23,42,.86);
}

/* Timeline */
.timeline{
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  position: relative;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 29px; /* 16px (padding-left) + 13px (第一列中心：26px / 2) = 29px */
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(11,42,85,.32), rgba(179,38,46,.18));
  opacity: .7;
}
.timeline__item{
  display:grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  position: relative;
}
.timeline__item:last-child{ border-bottom: none; }
.timeline__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  margin-left: 8px; /* 13px (第一列中心) - 5px (圆点半径) = 8px */
  background: rgba(11,42,85,.95);
  box-shadow: 0 0 0 4px rgba(11,42,85,.10);
  position: relative;
  z-index: 1;
}
.timeline__content h3{
  margin: 0;
  font-family: var(--serif);
  letter-spacing: .10em;
  font-size: 14px;
  color: var(--ink);
}
.timeline__time{
  font-size: 12px;
  letter-spacing: .10em;
  color: var(--red);
  margin-bottom: 6px;
}
.timeline__content p{
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(71,85,105,.96);
}

.refs{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px;
}
.refs__label{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(11,42,85,.9);
  font-family: var(--serif);
}
.refs__link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.6);
  box-shadow: var(--shadow-soft);
  color: rgba(15,23,42,.88);
  font-size: 13px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.refs__link:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px;
}
.contact-card__title{
  font-family: var(--serif);
  letter-spacing: .12em;
  color: var(--navy);
  font-size: 14px;
}
.contact-card__tel{
  display:inline-block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .06em;
  color: var(--ink);
  border-bottom: 1px solid rgba(179,38,46,.35);
}
.contact-card__hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(71,85,105,.96);
  letter-spacing: .06em;
}
.qrcode{
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(247,245,240,.75);
  padding: 14px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.qrcode img{
  width: 220px;
  height: 220px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.footer-note{
  margin-top: 18px;
  border-top: 1px solid rgba(15,23,42,.10);
  padding-top: 14px;
  color: rgba(71,85,105,.96);
  font-size: 12px;
  line-height: 1.9;
}
.footer-note a{
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(11,42,85,.35);
  text-underline-offset: 3px;
}
.footer-note__fine{
  margin-top: 8px;
  letter-spacing: .10em;
  color: rgba(71,85,105,.88);
}

/* Scroll reveal */
[data-animate]{
  opacity: 0;
  --rx: 0px;
  --ry: 14px;
  transform: translate3d(var(--rx), var(--ry), 0);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
  will-change: transform, opacity;
}
[data-animate="left"]{ --rx: -18px; --ry: 0px; }
[data-animate="right"]{ --rx: 18px; --ry: 0px; }
[data-animate="up"]{ --rx: 0px; --ry: 18px; }
.is-visible{
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Scroll progress */
.progress{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: rgba(15,23,42,.06);
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(179,38,46,.85), rgba(11,42,85,.85));
  box-shadow: 0 6px 18px rgba(11,42,85,.18);
  transform-origin: left center;
}


/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 120;
}
.lightbox__backdrop{
  position:absolute;
  inset: 0;
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(8px);
}
.lightbox__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 36px));
  border-radius: var(--radius-xl);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.80);
  box-shadow: 0 30px 90px rgba(15,23,42,.35);
}
.lightbox__close{
  position:absolute;
  right: 10px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.70);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__close:hover{ background: rgba(255,255,255,.90); }
.lightbox__img{
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(247,245,240,.65);
}
.lightbox__cap{
  padding: 12px 16px 14px;
  font-size: 12px;
  color: rgba(71,85,105,.95);
  letter-spacing: .06em;
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-animate]{ opacity: 1; transform: none; transition: none; }
  .scroll-indicator::after{ animation: none; }
  .btn, .card, .refs__link{ transition: none; }
  .hero__char{ animation: none; opacity: 1; transform: none; filter: none; }
  .media-frame__img{ transform: none !important; transition: none; }
  .reveal::after{ transition: none; transform: translateX(110%); }
  .reveal img{ transition: none; transform: none; }
  .lightbox__backdrop{ backdrop-filter: none; }
  .section{ opacity: 1; transform: none; transition: none; visibility: visible; }
  body:not(.content-ready) .section{ visibility: visible; }
}

@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .gallery{
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c";
  }
  .cards{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .masthead__badge{ display:none; }
}


