/* ==========================================================
   赤色红骑の小窝 · 浅色毛玻璃主题
   ========================================================== */
:root {
  --text: #2c2a30;
  --text-soft: #5f5c68;
  --text-mute: #8b8794;
  --accent: #e05a52;
  --accent-soft: #f08b7f;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 34px rgba(48, 42, 60, 0.1);
  --shadow-lg: 0 18px 50px rgba(48, 42, 60, 0.16);
  --radius: 24px;
  --radius-sm: 16px;
  --nav-h: 64px;
  --hero-h: 70vh;              /* 顶部清晰区高度 */

  /* 波浪 mask：正弦式波浪 + 下方实心，用于毛玻璃层的上边缘 */
  --wave-solid: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20200'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2080C75%2020%20225%2020%20300%2080C375%20140%20525%20140%20600%2080C675%2020%20825%2020%20900%2080C975%20140%201125%20140%201200%2080L1200%20200L0%20200Z'%20fill='%23fff'/%3E%3C/svg%3E");
  /* 同上，填充改用竖向渐变，让浪的柔边往下淡出 */
  --wave-fade: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20200'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%23fff'%20stop-opacity='0.95'/%3E%3Cstop%20offset='0.45'%20stop-color='%23fff'%20stop-opacity='0.42'/%3E%3Cstop%20offset='0.8'%20stop-color='%23fff'%20stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M0%2080C75%2020%20225%2020%20300%2080C375%20140%20525%20140%20600%2080C675%2020%20825%2020%20900%2080C975%20140%201125%20140%201200%2080L1200%20200L0%20200Z'%20fill='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

/* 保证 hidden 属性优先级高于组件的 display */
[hidden] { display: none !important; }

html, body { height: 100%; overflow: hidden; }   /* 页面本身不再滚动，滚动交给 #main 面板 */

body {
  /* 面板上沿 = 波浪带下沿：清晰区高度 + 波浪带厚度（收缩态波浪整体下移，一起加） */
  --cut: calc(var(--hero-h) + 8.4vh + var(--wave-shift, 0vh));
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #f4f1ee;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------------- 背景层 ---------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #efeae6;
}
/* 背景图：全站只用这一层，一张图 cover 铺满整屏（不留空白），顶部对齐 */
.bg-photo {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  overflow: hidden;
}
.bg-photo .bg-slide { background-position: center top; }
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}
.bg-slide.is-active { opacity: 1; }

/* 毛玻璃层：多层波浪（不同透明度 / 模糊 / 相位）＋ 下半屏磨砂 */
.bg-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.frost-wave {
  position: absolute;
  left: 0; right: 0;
  background: rgba(255, 253, 251, 0.46);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  --wave-top: var(--wave-solid);
  /* 波浪形状 ＋ 底部渐隐：每层都在磨砂里淡出收尾，交界处不留硬边 */
  -webkit-mask-image: var(--wave-top), linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0) 100%);
  mask-image: var(--wave-top), linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 1200px 100%, 100% 100%;
  mask-size: 1200px 100%, 100% 100%;
  -webkit-mask-repeat: repeat-x, no-repeat;
  mask-repeat: repeat-x, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 最厚的一层：材质与下方磨砂一致，负责主波浪边缘 */
.wave-a {
  top: calc(var(--hero-h) - 5.6vh + var(--wave-shift, 0vh));
  height: 14vh;
  animation: waveDriftA 44s linear infinite;
}
/* 往上的两层：更轻的材质 + 往下淡出的柔边，叠出多种透明度的浪 */
.wave-b {
  top: calc(var(--hero-h) - 6.4vh + var(--wave-shift, 0vh));
  height: 14.8vh;
  background: rgba(255, 253, 251, 0.34);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  --wave-top: var(--wave-fade);
  -webkit-mask-position: -200px 0, 0 0;
  mask-position: -200px 0, 0 0;
  animation: waveDriftB 30s linear infinite;
}
.wave-c {
  top: calc(var(--hero-h) - 7.2vh + var(--wave-shift, 0vh));
  height: 15.6vh;
  background: rgba(255, 253, 251, 0.26);
  -webkit-backdrop-filter: blur(5px) saturate(1.15);
  backdrop-filter: blur(5px) saturate(1.15);
  --wave-top: var(--wave-fade);
  -webkit-mask-position: -520px 0, 0 0;
  mask-position: -520px 0, 0 0;
  animation: waveDriftC 21s linear infinite;
}
/* 波浪带以下：磨砂底，顶边做渐显与波浪的渐隐交叉淡入 */
.frost-body {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--hero-h) + 2vh);
  bottom: 0;
  background: rgba(255, 253, 251, 0.46);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 6.5vh);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 6.5vh);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes waveDriftA {
  from { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
  to { -webkit-mask-position: -1200px 0, 0 0; mask-position: -1200px 0, 0 0; }
}
@keyframes waveDriftB {
  from { -webkit-mask-position: -200px 0, 0 0; mask-position: -200px 0, 0 0; }
  to { -webkit-mask-position: -1400px 0, 0 0; mask-position: -1400px 0, 0 0; }
}
@keyframes waveDriftC {
  from { -webkit-mask-position: -520px 0, 0 0; mask-position: -520px 0, 0 0; }
  to { -webkit-mask-position: -1720px 0, 0 0; mask-position: -1720px 0, 0 0; }
}

/* 缓慢流动的浅色渐变，给画面一点呼吸感 */
.bg-flow {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background: linear-gradient(-45deg, #ffc9c0, #ffe0b8, #cfe3ff, #e6d6ff);
  background-size: 400% 400%;
  animation: flowMove 20s ease infinite;
}
@keyframes flowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 两团大光斑 */
.orb {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  pointer-events: none;
}
.orb-a { top: -12%; left: -10%; background: rgba(255, 255, 255, 0.95); }
.orb-b { bottom: -14%; right: -10%; background: rgba(255, 172, 158, 0.55); }

/* ---------------- 粒子 & 花瓣 ---------------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.petals {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -8vh;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, #ffd8d2, #ffb3a7);
  border-radius: 60% 10% 60% 10%;
  opacity: 0.75;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { transform: translate(0, -10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { transform: translate(14vw, 112vh) rotate(420deg); opacity: 0; }
}

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 22px rgba(48, 42, 60, 0.07);
}
.nav-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #26232b;
  white-space: nowrap;
}
.brand-mark { color: var(--accent); margin: 0 3px; }
.brand:hover { color: var(--accent); }

.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.nav-links a {
  position: relative;
  color: var(--text-soft);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.nav-toggle { display: none; width: 34px; height: 34px; padding: 7px; }
.nav-toggle i {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #3a3742;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open i:nth-child(2) { opacity: 0; }
.nav-toggle.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 布局 ---------------- */
/* 内容面板：钉在「波浪带下沿 ~ 屏幕底」，卡片只在面板内部滚。
   上沿就是波浪带下沿，卡片最多顶到这里，永远盖不到波浪区与清晰图区 */
main {
  position: fixed;
  top: var(--cut);
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  /* 上沿 4vh 渐隐：卡片滚上去像"沉进毛玻璃"，不留一条硬切边 */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 4vh);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 4vh);
}
.wrap {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  /* 面板上沿已等于波浪带下沿，这里只留一点呼吸位给上沿渐隐 */
  padding: 4vh 0 60px;
}
.page { display: none; }
.page.is-active { display: block; animation: pageIn 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title { font-size: 27px; margin: 0 0 6px; letter-spacing: -0.5px; }
.page-sub { margin: 0 0 26px; color: var(--text-mute); font-size: 14px; }

/* 顶部清晰区文字层：承担大标题 + 页面介绍 */
.hero {
  /* 只做标题层的挂载点，不参与滚动面板的布局：卡片在 #main 面板里滚，标题层固定不动 */
  position: relative;
  height: var(--hero-h);
  display: flex;
  align-items: center;
  pointer-events: none;        /* 别挡住面板的点击与滚动 */
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-inner {
  /* 钉在视口里：背景层是固定的，标题如果不固定，一滚动就被文档带走滚出屏幕 */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: -1;                 /* 压在内容卡片之下、页面背景之上 */
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  height: var(--hero-h);
  padding-bottom: 5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;        /* 不挡住底下卡片的点击与滚动 */
  transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1), height 0.6s cubic-bezier(0.22, 1, 0.36, 1), padding-bottom 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.14;
  letter-spacing: -1.2px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(28, 22, 36, 0.35), 0 8px 34px rgba(28, 22, 36, 0.45);
  transition: font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1), margin-bottom 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-title .brand-mark { color: #ffd7d0; }
.hero-sub {
  margin: 0;
  min-height: 1.7em;
  font-size: clamp(14px, 1.7vw, 20px);
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(28, 22, 36, 0.4), 0 4px 22px rgba(28, 22, 36, 0.45);
  transition: font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 向下滚动：清晰区收成 20vh，内容面板上沿跟着波浪带下沿一起上抬，卡片随之"浮"上来；
   回顶恢复 70vh。滚动全程发生在 #main 面板内部，文档高度不变，所以不会回弹、也不会被钳位置 */
body.is-shrink { --hero-h: 20vh; --wave-shift: 9.2vh; }
/* 收缩后：标题层收紧到「菜单栏底边 ~ 清晰区底边」这一段，并在其中垂直居中 */
body.is-shrink .hero-inner {
  top: var(--nav-h);
  height: calc(var(--hero-h) - var(--nav-h));
  padding-bottom: 0;
}
/* 20vh 窄带在矮屏上很挤，字号同时受 vh 限制，避免内容又顶回菜单栏 */
body.is-shrink .hero-title { font-size: clamp(16px, min(2.6vw, 3.4vh), 34px); margin-bottom: 8px; }
body.is-shrink .hero-sub { font-size: clamp(11px, min(1.3vw, 1.9vh), 16px); }
/* 内容改为固定面板内部滚动后，文档不再滚动，页脚后的垫板也不需要了 */
html, body { overflow-anchor: none; }
.hero-caret { display: none; }
.hero.is-typing .hero-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.16em;
  background: currentColor;
  animation: caretBlink 1.05s steps(1, end) infinite;
}
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero.is-switching .hero-inner { animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 通用毛玻璃卡片 */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, background 0.45s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--glass-strong);
}

/* ---------------- 首页 ---------------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px 32px;
  margin-bottom: 22px;
}
.avatar-wrap {
  flex: 0 0 auto;
  width: 104px; height: 104px;
  padding: 3px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #ffb99f 55%, #ffd9a8);
  box-shadow: 0 10px 26px rgba(224, 90, 82, 0.28);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile-card:hover .avatar-wrap { transform: rotate(3deg) scale(1.03); }
.avatar-wrap img {
  width: 100%; height: 100%;
  border-radius: 19px;
  object-fit: cover;
  background: #fff;
}
.profile-text h1 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -0.6px;
}
.slogan {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  position: relative;
  padding-left: 16px;
}
.slogan::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quick-card { padding: 24px; }
.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: rgba(224, 90, 82, 0.12);
  color: var(--accent);
  font-size: 19px;
}
.quick-card h3 { margin: 0 0 6px; font-size: 16px; }
.quick-card p { margin: 0; font-size: 13px; color: var(--text-mute); line-height: 1.6; }

/* ---------------- 项目 ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, #ffe6e0, #fff0d8 60%, #e6ecff);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.thumb-4399 { background: linear-gradient(135deg, #ffb3a7, #ffd08a); }
.project-body { padding: 20px 22px 22px; }
.project-body h3 { margin: 0 0 8px; font-size: 16px; }
.project-body p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(224, 90, 82, 0.12);
}
.tag-soon { color: var(--text-mute); background: rgba(120, 116, 130, 0.12); }
.project-card.is-soon { opacity: 0.72; }
.project-card.is-soon:hover { transform: none; }

/* ---------------- 照片墙 ---------------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.album-card { padding: 14px; cursor: pointer; }
.album-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.album-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-count {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.album-card h3 { margin: 14px 4px 4px; font-size: 16px; }
.album-card p { margin: 0 4px 6px; font-size: 12px; color: var(--text-mute); }

.back-link {
  margin-bottom: 18px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.back-link:hover { color: var(--accent); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-item:hover img { transform: scale(1.07); }
.photo-item span {
  position: absolute;
  left: 10px; bottom: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------------- 图片放大 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 26, 34, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: zoomIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.lb-close, .lb-nav {
  position: absolute;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 3vw; top: 50%; margin-top: -23px; }
.lb-next { right: 3vw; top: 50%; margin-top: -23px; }
.lb-caption {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

/* ---------------- 音乐 ---------------- */
.player-card {
  display: flex;
  gap: 26px;
  padding: 26px;
  align-items: center;
}
.player-cover {
  flex: 0 0 auto;
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(48, 42, 60, 0.22);
  animation: spin 22s linear infinite;
  animation-play-state: paused;
}
.player-cover.is-playing { animation-play-state: running; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-main { flex: 1; min-width: 0; }
.player-main h3 { margin: 0 0 4px; font-size: 19px; }
.player-artist { margin: 0 0 18px; font-size: 13px; color: var(--text-mute); }

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(120, 116, 130, 0.18);
  cursor: pointer;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb08a);
  transition: width 0.2s linear;
}
.time-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 2px 16px;
  font-size: 12px;
  color: var(--text-mute);
}
.controls { display: flex; gap: 12px; }
.ctrl {
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff9a7a);
  box-shadow: 0 8px 22px rgba(224, 90, 82, 0.32);
  transition: transform 0.25s ease;
}
.ctrl:hover { transform: scale(1.06); }

.track-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.track-item:hover { background: var(--glass-strong); transform: translateX(3px); }
.track-item.is-active { border-color: rgba(224, 90, 82, 0.45); }
.track-idx { color: var(--accent); font-size: 15px; }
.track-meta { flex: 1; min-width: 0; }
.track-meta strong { display: block; font-size: 14px; }
.track-meta small { color: var(--text-mute); font-size: 12px; }
.track-dur { font-size: 12px; color: var(--text-mute); }

/* ---------------- 灵感引用 ---------------- */
.credit-card { padding: 30px 32px; }
.credit-card h3 { margin: 0 0 14px; font-size: 19px; color: var(--accent); }
.credit-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.9; color: var(--text-soft); }
.credit-list { list-style: none; margin: 0 0 18px; padding: 0; }
.credit-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(120, 116, 130, 0.22);
  font-size: 14px;
}
.credit-list li span { flex: 0 0 76px; color: var(--text-mute); font-size: 13px; }
.credit-list li a { color: var(--accent); word-break: break-all; }
.credit-list li a:hover { text-decoration: underline; }
.credit-note { margin: 0; font-size: 12.5px; color: var(--text-mute); line-height: 1.9; }
.credit-card + .credit-card { margin-top: 18px; }

/* ---------------- 迷你播放器 ---------------- */
.mini-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: pageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mini-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--accent), #ff9a7a);
}
.mini-info { display: flex; flex-direction: column; line-height: 1.35; }
.mini-info strong { font-size: 12.5px; }
.mini-info small { font-size: 11px; color: var(--text-mute); }
.mini-close { padding: 4px 6px; font-size: 15px; color: var(--text-mute); }
.mini-close:hover { color: var(--accent); }

/* ---------------- 页脚 ---------------- */
.footer {
  position: relative;
  z-index: 10;
  padding: 26px 5% 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer p { margin: 0 0 6px; }
.footer-sub a { color: var(--accent); }
.footer-sub a:hover { text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 5% 18px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 30px rgba(48, 42, 60, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid rgba(120, 116, 130, 0.1); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.is-active::after { left: auto; right: 2px; top: 50%; bottom: auto; margin: -2px 0 0; }

  .wrap { padding-top: calc(var(--nav-h) + 28px); }
  .hero-inner { padding-bottom: 4vh; }
  .hero-title { margin-bottom: 12px; letter-spacing: -0.6px; }
  /* 手机上波浪静止，省性能 */
  .wave-a, .wave-b, .wave-c { animation: none; }
  .profile-card { flex-direction: column; text-align: center; gap: 18px; padding: 26px 20px; }
  .slogan { padding-left: 0; }
  .slogan::before { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .player-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .controls { justify-content: center; }
  .credit-card { padding: 24px 20px; }
  .credit-list li { flex-direction: column; gap: 4px; }
  .credit-list li span { flex: none; }
  .mini-player { right: 14px; bottom: 14px; }
  .lb-prev { left: 2vw; }
  .lb-next { right: 2vw; }
}

@media (max-width: 480px) {
  .page-title { font-size: 23px; }
  .profile-text h1 { font-size: 23px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .avatar-wrap { width: 88px; height: 88px; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .bg-slide { transition: none; }
}
