/* ==================== CSS 变量规范 ==================== */
:root {
  --sky-top: #007ced;
  --sky-bottom: #cce7ff;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-bg-hover: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 124, 237, 0.15);
  --glass-shadow-hover: 0 16px 48px rgba(0, 124, 237, 0.25);
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-light: rgba(255, 255, 255, 0.9);
  --accent-pink: #ffb7c5;
  --accent-mint: #b2f5ea;
  --accent-blue: #007ced;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── 场景动画可调参数（修改这里调整效果）──────────────────────────
   *
   * --grass-final-y  ★ 草坪冒出高度的核心参数 ★
   *   草坪 position:fixed; bottom:0，translateY 控制多少草坪露出视口：
   *   0px   = 草坪图片全部可见（从底部展示整张图）
   *   100px = 将草坪向下推 100px，仅顶部（草坪高度-100px）可见
   *   200px = 更少露出，类似只露一条细边
   *   → 增大数值 = 草坪露出越少；减小/为0 = 露出越多
   *
   * --cloud-final-y   云朵最终偏移：负值越大 = 冒出越多（向上）
   *                   调整直到云朵底部刚好被草坪遮住
   * --grass-dur       草坪入场时长
   * --cloud-dur / --cloud-delay  已不用：第二页 cloud1 由 parallax.js 随滚动控制
   * ──────────────────────────────────────────────────────────────── */
  /* 响应式公式：桌面下将草坪下移至底部超出视口（保留顶部），手机下不偏移（图片本身较矮）
   * 计算逻辑：图片自然高度(29.63vw) - 目标可见高度(25vh)，负值时取0（手机竖屏）*/
  --grass1-final-y: max(0px, calc(29.63vw - 25vh));
  --grass2-final-y: max(0px, calc(29.63vw - 25vh));
  --cloud-final-y:  -120px;
  --grass-dur:      1.2s;
  --grass2-delay:   0s;      /* layer2 先入场 */
  --grass1-delay:   0.25s;   /* layer1 最后入场 */

  /* Typography tokens（Slide 2–5 统一）*/
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-serif: "FangSong", "STFangsong", "仿宋", serif;
  --type-eyebrow:  clamp(0.58rem, 0.85vw, 0.72rem);
  --type-title:    clamp(1.35rem, 2.3vw, 1.85rem);
  --type-subtitle: clamp(0.72rem, 1vw, 0.88rem);
  --type-body:     clamp(0.92rem, 1.4vw, 1.1rem);
  --type-caption:  clamp(0.78rem, 1vw, 0.88rem);
  --type-micro:    clamp(0.5rem, 0.8vw, 0.62rem);
  --type-ui:       clamp(0.62rem, 1.1vw, 0.78rem);

  /* 经历页 carousel + 草坪安全区（草线恒为距底 25vh）*/
  --carousel-controls-gap: clamp(14px, 2.5vh, 18px);
  --grass-visible-band: 25vh;
  --experience-safe-bottom: max(16px, calc(var(--grass-visible-band) - 8px));
  --experience-pad-top: clamp(80px, 11vh, 120px);
  --experience-subtitle-gap: clamp(16px, 3vh, 28px);
  --about-card-size-base: clamp(114px, 76vmin, 285px);
  --about-card-size: min(
    var(--about-card-size-base),
    calc(75vh - var(--experience-pad-top) - var(--experience-subtitle-gap) - 48px - var(--carousel-controls-gap) - 34px)
  );
}

/* ==================== 全局重置 ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 禁止 html/body 出现外层滚动条 */
html, body {
  height: 100%;
  overflow: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ==================== 加载页 ==================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.5vh, 24px);
}

.loading-logo-wrap {
  width: clamp(200px, 36vw, 460px);
}

.loading-logo-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

#logo-char-1,
#logo-char-2,
#logo-char-3,
#logo-char-4,
#logo-char-5 {
  opacity: 0;
}

#logo-char-1 { animation: charReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.10s forwards; }
#logo-char-2 { animation: charReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards; }
#logo-char-3 { animation: charReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards; }
#logo-char-4 { animation: charReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.64s forwards; }
#logo-char-5 { animation: charReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.82s forwards; }

@keyframes charReveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-tagline {
  font-size: clamp(0.7rem, 1.05vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: taglineFadeIn 0.7s ease 1.1s forwards;
}

@keyframes taglineFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.loading-bar-area {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.loading-percent {
  display: block;
  text-align: right;
  padding: 0 16px 6px 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.loading-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.30);
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 1);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .loading-logo-wrap {
    width: clamp(160px, 58vw, 300px);
  }

  .loading-tagline {
    font-size: clamp(0.62rem, 3vw, 0.78rem);
    letter-spacing: 0.1em;
  }
}

@media (max-height: 500px) {
  .loading-center {
    gap: 12px;
  }

  .loading-logo-wrap {
    width: clamp(120px, 24vw, 240px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .loading-logo-wrap {
    width: clamp(220px, 32vw, 380px);
  }
}

@media (min-width: 1920px) {
  .loading-logo-wrap {
    max-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #logo-char-1, #logo-char-2, #logo-char-3, #logo-char-4, #logo-char-5,
  .loading-tagline {
    animation: none;
    opacity: 1;
  }

  .loading-screen   { transition-duration: 0.01ms; }
  .loading-bar-fill { transition-duration: 0.01ms; }
}

body.hero-loading #hero-layer .hero-headline,
body.hero-loading #hero-layer .scroll-hint,
body.hero-loading #hero-floats {
  opacity: 0;
  visibility: hidden;
}

body.hero-loading .hero-video {
  opacity: 0;
}

body.hero-ready .hero-video {
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* ==================== 天空背景层（固定，始终最底层）==================== */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, var(--sky-top) 1%, var(--sky-bottom) 100%);
  pointer-events: none;
}

/* ==================== 第四页专属天空渐变层 ==================== */
/* 与 .sky-bg 同 z-index(0)，但 DOM 靠后 → 叠在天空之上
 * 从深邃蓝 → 极淡银蓝，营造水天一色的海天过渡
 * 随 updateFooterSky() scroll 驱动淡入，不影响其他页面 */
.footer-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-top)  0%,    /* 顶部：与第三页天空完全一致 */
    var(--sky-top) 15%,    /* 保持纯蓝，自然延伸 */
    #4fa0d6        40%,    /* 中空：开始过渡 */
    #a8d4ec        65%,    /* 低空：极浅蓝 */
    #c8e7f5        80%,    /* 近地平线：几乎银白 */
    #d8eff8       100%     /* 地平线：与海面融为一色 */
  );
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ==================== 海面层（第四页背景，固定）==================== */
/* z-index: 1 → 叠在山脉层(z:0)之前、草坪(z:2)之后
 * 第五页：海面作为前景，山脉从海平线后方升起，形成"海天山"三层景深
 *
 * height: 32.17vw（856/2661×100，sea1.webp 自然高度）
 * bottom / clip-path：parallax.js 按草坪可见顶边定位（第五页草顶～山底之间露海）
 * background-size: 100% auto → 宽铺满，高等比
 * background-position: center bottom → 图片底贴容器底
 * mask-image：parallax.js 按 clip 后可见海顶动态写入渐隐 */
.sea-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 32.17vw;
  background-image: url('../assets/sea1-opt.webp');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, bottom, mask-image;
  /* 首帧 fallback；onScroll 会按可见海顶重写 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
}

/* ==================== 全屏滚动吸附容器 ==================== */
.scroll-container {
  position: relative;
  z-index: 2;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  overscroll-behavior: none;
  /* 隐藏滚动条（外观更干净）*/
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* ==================== 通用全屏节 ==================== */
.slide {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow-x: hidden;
  overflow: hidden;
  flex-shrink: 0;
}

/* 关于我屏需露出斜向扇形，允许子元素溢出 */
.slide.scene-section {
  overflow: hidden;
}

/* ==================== Slide 1：Hero ==================== */

/* 占位符：透明空壳，仅保持 scroll-snap 的一屏高度 */
.hero-screen {
  background: transparent;
}

/* Hero 整体容器：fixed 全屏，clip-path 由 JS 动态裁切
 * z-index: 5 > scroll-container(2)，确保 Hero 在 Slide2 内容之上
 * clip-path 让云顶以下区域透明，Slide2 自然透出 */
#hero-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* Hero 暗幕已移除：保留原始背景亮度 */
#hero-layer::after {
  display: none;
}

/* 照片天空背景 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/hero-backgrounds-opt.webp') center / cover no-repeat;
}

/* 全局顶部导航栏（固定，所有页面可见）
 * z-index: 90 → 高于所有内容层，低于 dot-nav(100) */
.hero-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 2.5vw, 28px);
}

.hero-logo {
  height: clamp(60px, 2vw, 98px);
  width: auto;
  display: block;
  filter: invert(1); 
}

@media (prefers-color-scheme: dark) {
  .hero-logo {
    filter: invert(1);
  }
}

.hero-time {
  text-align: right;
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  height: 30px;
}

.hero-time-label {
  display: block;
  opacity: 0.55;
}

/* 详情面板打开时：隐藏 LOCAL TIME，并释放 topbar 的鼠标事件拦截 */
body.panel-open .hero-topbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.panel-open .hero-logo {
  pointer-events: all;
}

body.panel-open .hero-time {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* 移动端：panel 打开时同步隐藏底部固定的音乐控制区 */
@media (max-width: 768px) {
  body.panel-open .hero-center-controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
}

/* 心形视频（居中）*/
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width:  clamp(260px, 28vmin, 500px);
  height: clamp(260px, 28vmin, 500px);
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
  background: transparent; /* Safari: 防止默认黑色背景 */
}

/* 云朵遮帘（scroll 驱动，固定层）
 * 初始 translateY(0)：贴在视口底部，云顶刚好覆盖 Hero/Slide2 分割线
 * JS 驱动：滚动时向上升至 translateY(-100vh) 退出视口顶部 */
.hero-cloud-curtain {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-image: url('../assets/cloud-hero-opt.webp');
  background-size: auto 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translateY(28vh);   /* 初始：云顶对齐视口底部边缘，下半身在视口外 */
  will-change: transform;
  pointer-events: none;
  z-index: 15;
}

/* 向下滚动提示（相对 #hero-layer 定位）*/
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: hintBounce 2s ease-in-out infinite;
}

.scroll-hint-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(30, 60, 100, 0.5);
  border-bottom: 2px solid rgba(30, 60, 100, 0.5);
  transform: rotate(45deg);
}

@keyframes hintBounce {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(8px); }
}

/* ── Hero 响应式 ── */
@media (max-width: 768px) {
  .hero-video {
    width: clamp(180px, 52vw, 260px);
    height: clamp(180px, 52vw, 260px);
  }
}

/* ==================== Slide 2：场景 ====================
 * .scene-section 仅占位一屏；草坪与云朵为全局 fixed 层 ==================== */

/* 云朵：background-image 方案，auto 100% 保持自然比例不放大
 * 与草坪同为 fixed，z-index 低于 grass-layer2(1) / grass-layer1(3)，避免压在草坪后层之上
 * 图片原始尺寸 3213×1803px，宽高比 1.783
 * height ≥ 645px 时，1440px 桌面下渲染宽度 ≥ 1440px，无留白 */
.cloud-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 650px;                        /* 控制云朵露出高度，可调整（≥ 645px 覆盖1440px桌面）*/
  background-image: url('../assets/cloud1-opt.webp');
  background-size: auto 100%;           /* 高度撑满，宽度等比，不在宽屏放大 */
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;                           /* 初始隐藏；由 parallax.js 动态控制 */
  z-index: 0;
  pointer-events: none;
  transform: translateY(100%);          /* 初始；运行中由 parallax.js 写入 */
  will-change: transform, opacity;
}

/* 山脉层：云朵前（z:0 DOM 靠后优先）、草坪后（z:2）、海面后（z:1）
 * 第四页：山作为大气背景层从草坪后方升起
 * 第五页：海面（z:1）在山前，山从海平线后方显现，形成景深
 *
 * height: max(160px, 15.53vw)
 *   15.53 = (412/2653)×100，图片实际宽高比精确推导
 *   与草坪规则一致：移除固定上限，宽屏下容器高 = 图片自然高，顶部不再被裁切
 *   160px 最小值保证手机竖屏有足够山体可见 */
.mountain-layer {
  position: fixed;
  bottom: clamp(100px, 20vh, 200px);
  left: 0;
  right: 0;
  height: max(160px, 15.53vw);
  background-image: url('../assets/mountain-opt.webp');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(100%);
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* 草坪两层共用定位与尺寸逻辑
 * height: max(25vh, 29.63vw) → 手机取 25vh，桌面取 vw 值（恰好铺满全宽）
 * background-size: 100% auto → 宽铺满，高等比，顶部不裁切
 * background-position: center bottom → 图片底部贴容器底，随 translateY 下沉超出视口
 * translateY 由 --grass*-final-y 控制：桌面下移让底部超出，手机不移（保留全图） */
.grass-layer1,
.grass-layer2 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateY(100%);
}

.grass-layer1,
.grass-layer2 {
  height: max(25vh, 29.63vw);
}

.grass-layer2 {
  background-image: url('../assets/grass-layer2-opt.webp');
  z-index: 2;   /* scroll-container(z:2) 之后，内容从其上方穿过 */
}

.grass-layer1 {
  background-image: url('../assets/grass-layer1-opt.webp');
  z-index: 3;   /* scroll-container(z:2) 之前，遮住内容底部 */
}

/* ── 入场动画（layer2 → layer1）── */
.grass-layer2.is-active {
  animation: grass2Rise var(--grass-dur) cubic-bezier(0.33, 1, 0.68, 1)
             var(--grass2-delay) forwards;
}
.grass-layer1.is-active {
  animation: grass1Rise var(--grass-dur) cubic-bezier(0.33, 1, 0.68, 1)
             var(--grass1-delay) forwards;
}

/* ── Hero 页退场（三层一起向下滑落消失）── */
body.hero-active .grass-layer1 {
  animation: grass1Fall 0.6s cubic-bezier(0.4, 0, 0.8, 1) forwards !important;
}
body.hero-active .grass-layer2 {
  animation: grass2Fall 0.6s cubic-bezier(0.4, 0, 0.8, 1) forwards !important;
}

@keyframes grass2Rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(var(--grass2-final-y)); }
}

@keyframes grass1Rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(var(--grass1-final-y)); }
}

@keyframes grass1Fall {
  from { transform: translateY(var(--grass1-final-y)); }
  to   { transform: translateY(110%); }
}

@keyframes grass2Fall {
  from { transform: translateY(var(--grass2-final-y)); }
  to   { transform: translateY(110%); }
}


/* ==================== Hero：Contact 按钮（顶栏居中，全站可见）==================== */
/* 中间控制区：歌名 + 音乐播放器 + 邮箱图标 */
.hero-center-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 歌名显示 */
.music-song-name {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: clamp(0.65rem, 0.75vw, 0.75rem);
  letter-spacing: 0.08em;
  transform: translateX(-4px);
  opacity: 0.8;
  transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
}

.song-hi {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.song-hr {
  color: rgba(255, 183, 197, 0.85);
  font-weight: 600;
}

/* 播放时歌名状态 */
.hero-music-player.playing ~ .hero-contact-wrap,
body:has(.hero-music-player.playing) .music-song-name {
  transform: translateX(0);
  opacity: 1;
}

body:has(.hero-music-player.playing) .music-song-name .song-hi {
  color: rgba(255, 255, 255, 0.95);
}

body:has(.hero-music-player.playing) .music-song-name .song-hr {
  color: rgba(255, 183, 197, 1);
}

/* 邮箱按钮容器 */
.hero-contact-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 邮箱图标按钮（圆形）*/
.hero-contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-contact-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  transform: scale(1.05);
}

.hero-contact-icon-btn:active {
  transform: scale(0.95);
}

.hero-contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.hero-contact-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.58rem, 0.65vw, 0.65rem);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.hero-contact-toast.visible {
  opacity: 1;
}

/* ==================== 音乐播放器样式 ==================== */
.hero-music-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  margin-right: 4px;
}

.hero-music-player:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
}

/* 音符图标 */
.hero-music-note-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.hero-music-player.playing .hero-music-note-icon {
  color: rgba(255, 255, 255, 0.95);
}

/* 播放/暂停按钮 */
.hero-music-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-music-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: scale(1.08);
}

.hero-music-toggle:active {
  transform: scale(0.92);
}

/* 播放状态切换 */
.hero-music-player.playing .music-icon-play {
  display: none;
}

.hero-music-player.playing .music-icon-pause {
  display: block !important;
}

/* 播放状态时的视觉反馈 */
.hero-music-player.playing .hero-music-toggle {
  background: rgba(255, 255, 255, 0.25);
}

/* 进度条容器 */
.hero-music-progress-wrap {
  position: relative;
  flex: 1;
  min-width: 80px;
  max-width: 120px;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* 进度条轨道 */
.hero-music-progress-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  overflow: visible;
}

/* 进度条填充 */
.hero-music-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
  transition: width 0.1s linear;
}

/* 进度点 */
.hero-music-progress-dot {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, left 0.1s linear;
}

.hero-music-player.playing .hero-music-progress-dot {
  opacity: 1;
}

.hero-music-progress-wrap:hover .hero-music-progress-dot {
  opacity: 1;
}

.hero-music-progress-wrap:hover .hero-music-progress-bar {
  height: 3px;
}

/* 时间显示 */
.hero-music-time {
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
  font-size: clamp(0.58rem, 0.7vw, 0.72rem);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
  min-width: 32px;
  text-align: right;
}

/* 播放时的波纹动画（应用于整个播放器容器）*/
.hero-music-player.playing {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: musicContainerPulse 2s ease-out infinite;
}

@keyframes musicContainerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ==================== Hero：左上主标语 ==================== */
.hero-headline {
  position: absolute;
  top: clamp(90px, 10vh, 140px);
  left: clamp(24px, 3vw, 48px);
  z-index: 3;
  max-width: 50vw;
}
.hero-headline-main {
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}
.hero-headline-sub {
  margin-top: clamp(12px, 1.5vh, 20px);
  font-size: clamp(0.8rem, 1.1vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* ==================== Hero：折线注释（工程图纸风格）==================== */
.hero-annotations {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 8vh));
  width: clamp(260px, 28vmin, 500px);
  height: clamp(260px, 28vmin, 500px);
  z-index: 3;
  pointer-events: none;
}

.annotation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
}

.annotation-left {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 8px;
  flex-direction: row;
}

.annotation-right {
  left: 100%;
  top: 20%;
  margin-left: 8px;
  flex-direction: row;
}

.annotation-text {
  font-size: clamp(9px, 0.65vw, 11px);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.annotation-line {
  display: block;
  flex-shrink: 0;
}

/* ==================== Hero：浮层容器（同步 clip-path）==================== */
/* 全屏固定层，覆盖全部浮层元素，在 parallax.js 中应用与 #hero-layer 相同的 clip-path
 * 确保所有子元素随云遇帘同步消失，与主标语进入相同层级 */
#hero-floats {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
/* 子层单独开启指针事件 */
#hero-floats > * {
  pointer-events: all;
}

/* ==================== Hero：品牌释义卡片 ==================== */
.hero-brand-card {
  position: fixed;
  left: calc(50% + clamp(160px, 18vw, 280px));
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: clamp(200px, 18vw, 280px);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: all;
  overflow: visible;
}

body:not(.hero-active) .hero-brand-card {
  opacity: 0;
  pointer-events: none;
}

.brand-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.brand-name {
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-phonetic {
  font-size: clamp(0.65rem, 0.75vw, 0.8rem);
  color: rgba(255,255,255,0.5);
}

.brand-card-body {
  margin-bottom: 12px;
}
.brand-line {
  font-size: clamp(0.6rem, 0.72vw, 0.78rem);
  color: rgba(255,255,255,0.75);
  margin: 4px 0;
  line-height: 1.5;
}
.brand-key {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.brand-card-motto {
  font-size: clamp(0.6rem, 0.7vw, 0.75rem);
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin: 0;
}

/* ==================== Hero：理念宣言卡片 ==================== */
.hero-manifesto {
  position: fixed;
  top: clamp(70px, 9vh, 110px);
  right: clamp(16px, 2.5vw, 28px);
  left: auto;
  bottom: auto;
  transform: none;
  max-width: clamp(160px, 18vw, 260px);
  overflow: visible;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: all;
}

body:not(.hero-active) .hero-manifesto {
  opacity: 0;
  pointer-events: none;
}

.manifesto-label {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.manifesto-quote {
  width: auto;
  font-size: clamp(0.6rem, 0.72vw, 0.78rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0 0 14px 0;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.3);
}

/* ==================== Slide 2 (场景)：斜向卡片 + 关于我文字 ==================== */

.about-carousel {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 24px;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.33, 1, 0.68, 1);
  user-select: none;
}

.about-carousel.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.experience-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--experience-pad-top);
  padding-bottom: var(--experience-safe-bottom);
  gap: 6px;
}

.experience-title {
  font-family: var(--font-sans);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.22em;
  color: rgba(26, 42, 74, 0.58);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 10;
}

.experience-subtitle {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 42, 74, 0.72);
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0 0 var(--experience-subtitle-gap);
  line-height: 1.4;
  position: relative;
  z-index: 10;
}

/* 与原版一致：视口约一张卡宽，但不裁切扇形 */
.about-carousel-viewport {
  width: var(--about-card-size);
  overflow: visible;
  position: relative;
}

.about-carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.about-carousel-slide {
  flex: 0 0 var(--about-card-size);
  width: var(--about-card-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  will-change: transform, filter, opacity;
  filter: blur(5px);
  opacity: 0.35;
  transition: filter 0.6s ease, 
              opacity 0.6s ease;
}

.about-carousel-slide.is-active {
  filter: blur(0);
  opacity: 1;
}

.about-carousel-card {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.about-carousel-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: rgba(20, 20, 30, 0.72);
  letter-spacing: 0.03em;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  max-width: var(--about-card-size);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.about-carousel-slide.is-active .about-carousel-label {
  opacity: 1;
  transform: scale(1);
}

.about-carousel-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  cursor: pointer;
}

/* ==================== 音乐专辑卡片播放器 ==================== */
/* 音乐专辑卡片特殊样式 */
.music-album-card {
  position: relative;
  overflow: hidden;
}

/* 播放按钮覆盖层 */
.album-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

/* 悬停卡片时显示覆盖层 */
.music-album-card:hover .album-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: all;
}

/* 播放时始终显示覆盖层（半透明背景）*/
.album-play-overlay.playing {
  opacity: 1;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: all;
}

/* 播放按钮（基于卡片尺寸的响应式设计）*/
.album-play-btn {
  width: clamp(40px, 27%, 72px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.album-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.album-play-btn:active {
  transform: scale(0.95);
}

/* SVG 图标尺寸跟随按钮 */
.album-play-btn svg {
  width: 44%;
  height: 44%;
  flex-shrink: 0;
}

/* 播放状态切换 */
.album-play-overlay.playing .album-icon-play {
  display: none;
}

.album-play-overlay.playing .album-icon-pause {
  display: block !important;
}

/* 播放时的脉冲动画 */
.album-play-overlay.playing .album-play-btn {
  animation: albumPulse 2s ease-in-out infinite;
}

@keyframes albumPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.5);
  }
}

.about-carousel-controls {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin-top: var(--carousel-controls-gap);
  align-self: center;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 34px;
  padding: 2px 8px;
  /* 移除背景和边框，保持纯净 */
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 侧边导航按钮样式 */
.about-carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(26, 42, 74, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.about-carousel-side-btn:hover {
  color: rgba(26, 42, 74, 0.85);
  transform: translateY(-50%) scale(1.15);
}

.about-carousel-side-btn.prev {
  left: -64px;
}

.about-carousel-side-btn.next {
  right: -64px;
}

.about-carousel-side-btn.prev:hover {
  transform: translateY(-50%) translateX(-4px) scale(1.15);
}

.about-carousel-side-btn.next:hover {
  transform: translateY(-50%) translateX(4px) scale(1.15);
}

.about-carousel-side-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.about-carousel-side-btn.is-hinting {
  animation: carouselSideHint 1.2s ease-in-out infinite;
}

@keyframes carouselSideHint {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(6px); }
}

@media (max-width: 768px) {
  .about-carousel-side-btn {
    width: 40px;
    height: 40px;
  }
  .about-carousel-side-btn.prev { left: -45px; }
  .about-carousel-side-btn.next { right: -45px; }
}

.about-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 146px;
}

.about-carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(55, 55, 55, 0.3);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.about-carousel-dot.is-active {
  width: 28px;
  background: rgba(55, 55, 55, 0.85);
}

/* ==================== 技能横幅（Marquee）==================== */
.skills-banner {
  position: absolute;
  top: clamp(130px, 16vh, 230px);
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.skills-pretitle {
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(26, 42, 74, 0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: multiply;
}

.skills-track-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.skills-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: skills-marquee 28s linear infinite;
  will-change: transform;
}

.skills-track:hover {
  animation-play-state: paused;
}

@keyframes skills-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.32);
}

.skill-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-fallback {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.skill-item span:not(.skill-fallback) {
  font-family: var(--font-sans);
  font-size: var(--type-ui);
  font-weight: 500;
  color: rgba(26, 42, 74, 0.78);
  letter-spacing: 0.02em;
}

.skills-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(26, 42, 74, 0.4);
  letter-spacing: 0.03em;
  text-align: center;
}

/* 关于我文字叠层 */
.about-overlay {
  position: absolute;
  top: clamp(45vh, 26vh, 30vh);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  width: min(640px, 90vw);
  opacity: 0;
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.about-overlay.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  color: rgba(26, 42, 74, 0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  mix-blend-mode: multiply;
}

.about-text {
  font-family: var(--font-serif);
  font-size: var(--type-body);
  color: #1a2a4a;
  line-height: 1.95;
  letter-spacing: 0.06em;
  mix-blend-mode: multiply;
}

.about-text-line {
  display: block;
}

@media (min-width: 481px) {
  .about-text-line {
    white-space: nowrap;
  }
}

.about-coda {
  font-family: var(--font-serif);
  font-size: var(--type-caption);
  color: rgba(26, 42, 74, 0.48);
  line-height: 1.8;
  letter-spacing: 0.08em;
  mix-blend-mode: multiply;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 42, 74, 0.13);
}

.about-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.about-link svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-link:hover {
  border-bottom-color: var(--accent-blue);
}

.about-link:hover svg {
  transform: translate(2px, -2px);
}

/* 内容节居中布局 */
#projects {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 36px;
  text-shadow: 0 2px 12px rgba(0, 80, 180, 0.3);
  letter-spacing: 0.02em;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 48px;
}

/* ==================== 通用毛玻璃卡片 ==================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-6px);
}

/* ==================== 技能标签 ==================== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.tag:hover {
  background: rgba(255, 183, 197, 0.35);
  border-color: var(--accent-pink);
}

/* ==================== 滚动淡入动画 ==================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 右侧导航指示点 ==================== */
.dot-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: all;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.4);
}

.dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ==================== 响应式基础 ==================== */
@media (max-width: 1024px) {
  .section-inner {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .section-inner {
    padding: 0 20px;
  }

  :root {
    --mobile-topbar-h: 76px;
  }

  .hero-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  }

  .hero-logo {
    grid-column: 1;
    grid-row: 1;
    height: clamp(44px, 10vw, 56px);
  }

  .hero-time {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    line-height: 1.2;
    height: auto;
  }

  .hero-time-label {
    display: none;
  }

  .hero-time-city {
    display: block;
    white-space: nowrap;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .dot-nav {
    right: 12px;
  }
  
  /* 中间控制区：移动端脱离 topbar，固定在底部居中 */
  .hero-center-controls {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    z-index: 91;
    width: auto;
    min-width: 0;
    gap: 12px;
  }

  /* 移动端隐藏歌名 */
  .music-song-name {
    display: none;
  }
  
  /* 邮箱按钮 */
  .hero-contact-icon-btn {
    width: 43px;
    height: 43px;
  }
  
  .hero-contact-icon {
    width: 17px;
    height: 17px;
  }
  
  /* 音乐播放器 */
  .hero-music-player {
    flex: none;
    min-width: 0;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    margin-right: 0;
  }
  
  .hero-music-note-icon {
    width: 17px;
    height: 17px;
  }
  
  .hero-music-toggle {
    width: 26px;
    height: 26px;
  }
  
  .hero-music-toggle svg {
    width: 12px;
    height: 12px;
  }
  
  .hero-music-progress-wrap {
    min-width: 72px;
    max-width: 108px;
  }
  
  .hero-music-time {
    font-size: 0.7rem;
    min-width: 34px;
  }

  .hero-contact-wrap {
    margin-left: auto;
    flex-shrink: 0;
  }

  .hero-headline {
    top: calc(var(--mobile-topbar-h) + 10px);
    left: 16px;
    right: 16px;
    max-width: none;
  }
  .hero-headline-main {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero-annotations {
    display: none;
  }

  /* 移动端：显示品牌释义卡，内容自适应宽度，靠右放置 */
  .hero-brand-card {
    display: block;
    position: fixed;
    left: auto;
    right: clamp(12px, 3vw, 20px);
    top: clamp(180px, 30vh, 260px);
    transform: none;
    width: max-content;
    max-width: min(76vw, 300px);
    padding: 18px 20px;
  }
  /* 移动端：隐藏理念宣言卡片 */
  .hero-manifesto {
    display: none;
  }

  /* 关于我文字层 */
  .about-text {
    line-height: 1.75;
  }

  .about-coda {
    margin-top: 12px;
    padding-top: 12px;
  }

  /* 技能横幅移动端 */
  .skills-banner {
    top: clamp(100px, 14vh, 180px);
  }
  .skill-item {
    padding: 5px 12px 5px 8px;
    gap: 6px;
  }
  .skill-item img,
  .skill-fallback {
    width: 14px;
    height: 14px;
  }
  .skill-fallback { font-size: 7px; }

  :root {
    --experience-pad-top: clamp(72px, 10vh, 100px);
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-topbar-h: 66px;
  }

  .hero-topbar {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    column-gap: 8px;
  }

  .hero-logo {
    height: clamp(38px, 11vw, 48px);
  }

  .dot-nav {
    display: none;
  }
  
  /* 小屏幕音乐控制区 */
  .hero-center-controls {
    gap: 10px;
  }
  
  .hero-contact-icon-btn {
    width: 38px;
    height: 38px;
  }
  
  .hero-contact-icon {
    width: 16px;
    height: 16px;
  }
  
  .hero-music-player {
    gap: 7px;
    padding: 6px 12px 6px 10px;
  }
  
  .hero-music-note-icon {
    width: 16px;
    height: 16px;
  }
  
  .hero-music-toggle {
    width: 24px;
    height: 24px;
  }
  
  .hero-music-toggle svg {
    width: 11px;
    height: 11px;
  }
  
  .hero-music-progress-wrap {
    min-width: 60px;
    max-width: 84px;
  }
  
  .hero-music-time {
    font-size: 0.66rem;
    min-width: 31px;
  }

  :root {
    --experience-pad-top: clamp(64px, 9vh, 88px);
    --experience-subtitle-gap: clamp(24px, 4.5vh, 36px);
    --about-card-size-base: clamp(95px, 68.4vmin, 209px);
  }

  .about-carousel {
    padding-top: 16px;
  }

  .experience-section {
    gap: 4px;
  }

  .experience-title {
    letter-spacing: 0.16em;
  }

  .experience-subtitle {
    letter-spacing: 0.1em;
  }

  .about-carousel-dots {
    width: 140px;
  }

  .about-overlay {
    width: min(340px, 90vw);
    top: clamp(36vh, 40vh, 44vh);
  }
}

@media (max-width: 430px) {
  :root {
    --mobile-topbar-h: 62px;
  }

  .hero-time-city {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
}

/* ==================== SEO 隐藏摘要（仅爬虫/读屏，零视觉影响）==================== */
.seo-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
