:root {
  --safari-chrome: #515bab;
  --rust: #b55735;
  --accent: #0f7c72;
  --line: #ded7ce;
  --shadow: 0 18px 60px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
html {
  font-size: 16px;
  overflow-x: hidden;
  background: var(--safari-chrome);
}
body {
  margin: 0; min-height: 100vh;
  font: 1rem/1.75 'Lora','Noto Serif SC',Georgia,serif;
  background: var(--safari-chrome);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  color: rgba(255,255,255,0.82);
}

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--safari-chrome);
  object-fit: cover;
  z-index: 0; pointer-events: none;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background: rgba(8,12,26,0.15);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,p { margin-top: 0; }

/* ===== 导航：三个独立胶囊 ===== */
.site-header {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1100px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  background: none; border: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}

main,
.hero-text-float,
.article-shell,
.lock-shell,
.music-shell,
.nav-shell,
.site-footer {
  position: relative;
  z-index: 2;
}
.brand {
  pointer-events: auto;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.42);
  border-top-color: rgba(255,255,255,0.65);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.55);
  padding: 7px 20px;
}
.brand-name {
  font-family: 'Noto Serif SC',Georgia,serif;
  font-size: 0.95rem; font-weight: 400;
  color: rgba(255,255,255,0.93);
  letter-spacing: 0.12em; white-space: nowrap;
}
.nav {
  pointer-events: auto;
  flex: 0 1 auto;
  display: flex; align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.38);
  border-top-color: rgba(255,255,255,0.60);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.5);
  padding: 5px 8px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  padding: 5px 16px;
  font-size: 0.95rem;
  font-family: 'Noto Serif SC',Georgia,serif;
  transition: color 150ms, background 150ms;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.about-link {
  pointer-events: auto;
  flex: 0 0 auto;
  display: block;
  color: rgba(255,255,255,0.93);
  font-size: 0.95rem;
  font-family: 'Noto Serif SC',Georgia,serif;
  padding: 7px 20px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.42);
  border-top-color: rgba(255,255,255,0.65);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.55);
  transition: background 150ms;
  white-space: nowrap;
}
.about-link:hover { background: rgba(255,255,255,0.22); }

/* ===== Hero ===== */
.hero-text-float {
  padding: 0 64px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 70vh;
  display: flex; flex-direction: column;
  justify-content: center;
}
.hero-en {
  font-family: 'Lora',Georgia,serif;
  font-size: clamp(1.8rem, 3.8vw, 3.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 16px;
  color: rgba(255,255,255,0.93);
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}
.hero-zh {
  font-family: 'Noto Serif SC',Georgia,serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 40px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.48);
}

/* ===== 主体内容 ===== */
main {
  max-width: 1100px;
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
}
.site-footer {
  max-width: 1100px;
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.25);
  display: flex; font-size: 0.85rem;
  justify-content: space-between;
  padding: 20px 0 36px;
}

.post-list {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  padding: 20px 0 72px;
}
.post-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.20);
  border-top-color: rgba(255,255,255,0.35);
  border-radius: 24px;
  transition: transform 180ms;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}
.post-card:hover { transform: translateY(-3px); }
.post-card a { display: flex; flex-direction: column; height: 100%; padding: 26px 30px; }
.post-card h3 {
  font-family: 'Noto Serif SC',Georgia,serif;
  font-size: 1.05rem; line-height: 1.5;
  margin-bottom: 8px; color: rgba(255,255,255,0.88);
}
.post-card p { color: rgba(255,255,255,0.42); margin-bottom: 0; font-size: 0.9rem; }
.post-meta {
  color: var(--rust); display: block;
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 12px; font-style: italic;
}

/* ===== 文章页 ===== */
.article-shell { max-width: 760px; padding: 80px 0 72px; margin-inline: auto; }
.article {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(24px,5vw,52px);
}
.article h1 { font-family: 'Noto Serif SC',Georgia,serif; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.2; margin-bottom: 20px; color: rgba(255,255,255,0.92); }
.article p { color: rgba(255,255,255,0.62); font-size: 1.04rem; line-height: 1.9; }

/* ===== 密码页 ===== */
.lock-shell { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 52px); padding: 20px; }
.lock-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px; box-shadow: var(--shadow);
  padding: 48px 40px; width: 100%; max-width: 360px; text-align: center;
}
.lock-icon { font-size: 2rem; margin-bottom: 16px; }
.lock-card h2 { font-family: 'Noto Serif SC',Georgia,serif; font-size: 1.3rem; margin-bottom: 6px; color: rgba(255,255,255,0.9); }
.lock-card p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 24px; }
.lock-input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); font-size: 1rem; font-family: inherit; margin-bottom: 12px; outline: none; transition: border-color 150ms; }
.lock-input:focus { border-color: var(--accent); }
.lock-btn { width: 100%; padding: 10px; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; font-size: 0.95rem; font-family: 'Noto Serif SC',Georgia,serif; cursor: pointer; transition: opacity 150ms; }
.lock-btn:hover { opacity: 0.85; }
.lock-error { color: var(--rust); font-size: 0.85rem; margin-top: 10px; display: none; }

/* ===== 导航页 ===== */
.nav-shell { padding: 88px 24px 60px; max-width: 1000px; margin: 0 auto; }
.glass-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
@media(max-width:700px){ .glass-grid { grid-template-columns: repeat(3,1fr); } }
.glass-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 20px; padding: 20px 10px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 220ms cubic-bezier(0.2,0.8,0.2,1);
  color: rgba(255,255,255,0.85); aspect-ratio: 1; justify-content: center;
}
.glass-card:hover { transform: translateY(-5px) scale(1.04); }
.glass-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.glass-title { font-family: 'Noto Serif SC',Georgia,serif; font-size: 0.78rem; font-weight: 700; text-align: center; }

/* ===== 音乐页 ===== */
.music-shell { padding: 88px 24px 60px; max-width: 900px; margin: 0 auto; }
.music-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media(max-width:600px){ .music-grid { grid-template-columns: 1fr; } }
.music-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px; padding: 10px 20px 10px 10px;
  transition: transform 200ms;
}
.music-card:hover { transform: translateY(-2px); }
.music-cover-placeholder { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,var(--accent),var(--rust)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.music-info { flex: 1; min-width: 0; }
.music-name { font-family: 'Noto Serif SC',Georgia,serif; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.88); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
audio { width: 100%; height: 28px; display: block; }
.library-link { text-decoration: none; }
.library-icon { font-size: 1.2rem; }
.library-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ===== 其他页壁纸 ===== */
.page-bg {
  position: fixed; inset: 0; z-index: -2;
  background: url('/assets/snow.png') center center / cover no-repeat; background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  #bg-video { display: none !important; }
}

/* ===== 手机端 ===== */
@media (max-width: 768px) {
  /* 手机首页视频：fixed 全屏铺满 */
  #bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100lvh;
    object-fit: cover;
    z-index: 0;
    transform: none;
  }
  /* 手机首页不加遮罩，视频自然显示 */
  body::before { display: none; }
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 6px;
  }
  .brand { padding: 5px 12px; }
  .brand-name { font-size: 0.8rem; letter-spacing: 0.06em; }
  .nav { padding: 3px 6px; }
  .nav a { font-size: 0.72rem; padding: 4px 8px; }
  .about-link { padding: 5px 12px; font-size: 0.72rem; }

  .hero-text-float {
    padding: 0 18px 28px;
    min-height: 62vh;
    justify-content: flex-end;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 5;
  }
  .hero-en { font-size: clamp(1.5rem, 7.5vw, 2.2rem); margin-bottom: 10px; font-style: italic; }
  .hero-zh { font-size: 0.85rem; margin-bottom: 0; letter-spacing: 0.1em; }

  main {
    position: relative; z-index: 2;
    background: #050816;
    width: 100%; max-width: 100%;
    padding: 20px 14px 40px; margin: 0;
  }
  .post-list { grid-template-columns: 1fr; gap: 10px; padding: 0; }
  .post-card { border-radius: 18px; }
  .post-card a { padding: 16px 18px; }
  .post-card h3 { font-size: 0.96rem; }

  .site-footer {
    background: #050816;
    position: relative; z-index: 2;
    width: 100%; max-width: 100%;
    margin: 0; padding: 14px 14px 32px;
    flex-direction: column; gap: 4px;
  }
}

/* ===== 小王子诗句 ===== */
.quotes-block {
  padding: 20px 0 72px;
  max-width: 680px;
}
.quote-item { margin: 0; }
.quote-zh {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,0.90);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}
.quote-en {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-style: italic;
  line-height: 1.9;
  color: rgba(255,255,255,0.48);
  margin: 0;
  letter-spacing: 0.01em;
}
.quote-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 28px 0;
}

/* ===== 手机端诗句 ===== */
@media (max-width: 768px) {
  .quotes-block {
    padding: 16px 0 48px;
    max-width: 100%;
  }
  .quote-en { font-size: 0.95rem; }
  .quote-zh { font-size: 0.82rem; }
  .quote-divider { margin: 20px 0; }

  /* 技术/日常/其他页 内容区顶部留出导航高度 */
  .article-shell {
    padding-top: 80px;
  }
  .lock-shell {
    padding-top: 60px;
  }
  /* 音乐页 */
  .music-shell {
    padding-top: 80px;
  }
}

/* 手机端各页面顶部间距修复 */
@media (max-width: 768px) {
  .music-shell {
    padding-top: 80px !important;
  }
  .article-shell {
    padding-top: 80px !important;
  }
  .music-grid {
    grid-template-columns: 1fr !important;
  }
  audio {
    height: 36px;
  }
}








/* ===== 2026-05-17 final-fix-4 ===== */

/* 去掉顶部割裂色块，颜色只交给 theme-color */
.safari-tint{
  display: none !important;
}

/* 首页：桌面/大屏，三段按等腰三角形排 */
.home-page{
  min-height: 100vh;
}
.home-page .hero-text-float{
  padding: 148px 0 0 !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  min-height: auto !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: center !important;
}
.home-page .hero-copy{
  max-width: 19rem !important;
  margin: 0 auto !important;
}
.home-page .hero-zh{
  font-family: 'Noto Serif SC', Georgia, serif !important;
  font-size: clamp(1.2rem, 1.45vw, 1.5rem) !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  letter-spacing: 0.04em !important;
  color: rgba(255,255,255,0.90) !important;
  margin: 0 0 10px !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.18) !important;
}
.home-page .hero-en{
  font-family: 'Lora', Georgia, serif !important;
  font-size: clamp(0.92rem, 0.92vw, 0.98rem) !important;
  font-style: italic !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,0.64) !important;
  margin: 0 !important;
  max-width: 22rem !important;
}

.home-page main{
  max-width: 1200px !important;
  width: min(100% - 48px, 1200px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  min-height: 540px !important;
}
.home-page .quotes-block{
  position: relative !important;
  height: 500px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}
.home-page .quote-item{
  position: absolute !important;
  width: 19rem !important;
  margin: 0 !important;
}
.home-page .quote-item:first-child{
  left: 27% !important;
  top: 92px !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}
.home-page .quote-item:last-child{
  left: 73% !important;
  top: 250px !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}
.home-page .quote-divider{
  display: none !important;
}
.home-page .quote-zh{
  font-family: 'Noto Serif SC', Georgia, serif !important;
  font-size: clamp(0.98rem, 1vw, 1.04rem) !important;
  line-height: 1.88 !important;
  letter-spacing: 0.04em !important;
  color: rgba(255,255,255,0.88) !important;
  margin: 0 0 8px !important;
}
.home-page .quote-en{
  font-family: 'Lora', Georgia, serif !important;
  font-size: clamp(0.9rem, 0.92vw, 0.96rem) !important;
  font-style: italic !important;
  line-height: 1.76 !important;
  color: rgba(255,255,255,0.58) !important;
  margin: 0 !important;
}
.home-page .site-footer{
  max-width: 1200px !important;
  width: min(100% - 48px, 1200px) !important;
  margin: 88px auto 0 !important;
  padding: 0 0 34px !important;
  position: relative !important;
  z-index: 2 !important;
  border-top: none !important;
  display: flex !important;
  justify-content: space-between !important;
  color: rgba(255,255,255,0.32) !important;
}

/* iPad */
@media (min-width: 769px) and (max-width: 1180px){
  .home-page .hero-text-float{
    padding-top: 132px !important;
  }
  .home-page .hero-copy{
    max-width: 17rem !important;
  }
  .home-page .hero-zh{
    font-size: clamp(1.04rem, 1.3vw, 1.24rem) !important;
  }
  .home-page .hero-en{
    font-size: clamp(0.86rem, 0.86vw, 0.92rem) !important;
  }
  .home-page .quotes-block{
    height: 390px !important;
  }
  .home-page .quote-item{
    width: 15.5rem !important;
  }
  .home-page .quote-item:first-child{
    left: 31% !important;
    top: 72px !important;
  }
  .home-page .quote-item:last-child{
    left: 71% !important;
    top: 212px !important;
  }
  .home-page .site-footer{
    margin-top: 68px !important;
  }
}

/* 手机：首页重新居中，第一行不再歪 */
@media (max-width: 768px){
  /* 手机首页：背景色和壁纸接近，下滚不露黑 */
  .home-page{
    background-color: var(--safari-chrome) !important;
    background-image: none !important;
  }
  .home-page .hero-text-float{
    padding: 102px 22px 8px !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  .home-page .hero-copy{
    max-width: 15rem !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .home-page .hero-zh{
    font-size: 0.98rem !important;
    line-height: 1.88 !important;
    letter-spacing: 0.04em !important;
    margin: 0 auto 10px !important;
    text-align: center !important;
  }
  .home-page .hero-en{
    font-size: 0.89rem !important;
    line-height: 1.76 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .home-page main{
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px 20px !important;
    background: transparent !important;
  }
  .home-page .quotes-block{
    position: static !important;
    height: auto !important;
    max-width: 16.8rem !important;
    margin: 0 auto !important;
    padding: 18px 0 28px !important;
    display: block !important;
  }
  .home-page .quote-item,
  .home-page .quote-item:first-child,
  .home-page .quote-item:last-child{
    position: static !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }
  .home-page .quote-item + .quote-item{
    margin-top: 24px !important;
  }
  /* 强制所有子元素居中 */
  .home-page .quote-item p{
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .home-page .quote-zh,
  .home-page .quote-en{
    text-align: center !important;
  }
  .home-page .site-footer{
    width: 100% !important;
    max-width: 100% !important;
    margin: 42px auto 0 !important;
    padding: 0 20px 34px !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: transparent !important;
  }
}

/* 子页：桌面 / iPad */
.sub-page{
  background: var(--safari-chrome) !important;
}
.sub-page .page-bg{
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  background: url('/assets/snow.png') center center / cover no-repeat !important;
  background-attachment: scroll !important;
  pointer-events: none !important;
}

/* 手机子页：纵向接续，全覆盖 */
@media (max-width: 768px){
  /* 手机子页：背景色和壁纸接近，下滚不露黑 */
  .sub-page{
    background-color: var(--safari-chrome) !important;
    background-image: none !important;
    min-height: 100svh !important;
  }
  .sub-page::before{
    content: none !important;
    display: none !important;
  }
  .sub-page .page-bg{
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: url('/assets/snow.png') center center / cover no-repeat !important;
    z-index: -2 !important;
    pointer-events: none !important;
  }
  .sub-page .article-shell,
  .sub-page .music-shell,
  .sub-page .nav-shell,
  .sub-page .lock-shell,
  .sub-page main{
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
  }
  .sub-page .article-shell,
  .sub-page .music-shell,
  .sub-page .nav-shell,
  .sub-page .lock-shell{
    padding-top: 96px !important;
  }
  .sub-page .site-footer{
    background: transparent !important;
  }
}

/* 日常页：有密码框时，下面多余块全部隐藏 */
main:has(.lock-shell) > *:not(.lock-shell){
  display: none !important;
}
main:has(.lock-shell) .article-shell,
main:has(.lock-shell) .post-list,
main:has(.lock-shell) .quotes-block,
main:has(.lock-shell) .post-card{
  display: none !important;
}

/* 导航页：从内联样式移到主 CSS，便于 CSP 收紧 */
.nav-shell {
  padding: 88px 32px 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.glass-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.glass-card {
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.28);
  border-top-color: rgba(255,255,255,0.50);
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 220ms;
  color: rgba(255,255,255,0.88);
}
.glass-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}
.glass-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.glass-emoji {
  font-size: 1.5rem;
  line-height: 1;
}
.glass-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .glass-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .glass-grid { grid-template-columns: repeat(3, 1fr); }
}

/* iOS Safari: use the largest viewport so the video stays behind browser bars while scrolling. */
@supports (-webkit-touch-callout: none) {
  #bg-video {
    height: 100lvh;
    min-height: 100dvh;
  }
}








/* 030599-mobile-wallpaper-clean-v8-2026-05-20
   单层动态壁纸修复：
   1. 不给 html/body 叠加 snow.png，避免出现第二层壁纸跟着滚动。
   2. 只让 #bg-video 作为 fixed 背景层，并在移动端向下多铺一段。
   3. 给移动端文档底部增加透明缓冲区，减少滑到页面末尾时露出底色。 */
:root {
  --safari-chrome: #515bab;
  --mobile-video-bleed: 180px;
  --mobile-scroll-buffer: 260px;
  --content-nav-offset: 42px;
}

html,
body {
  min-height: 100%;
  background-color: #515bab !important;
  background-image: none !important;
  background-attachment: scroll !important;
  overscroll-behavior-y: none;
}

#bg-video {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  object-fit: cover !important;
  background: #515bab !important;
  transform: translate3d(0, 0, 0) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

@supports (-webkit-touch-callout: none) {
  #bg-video {
    height: calc(100lvh + var(--mobile-video-bleed)) !important;
    min-height: calc(100dvh + var(--mobile-video-bleed)) !important;
  }
}

@media (max-width: 1180px) {
  .home-page,
  .sub-page {
    min-height: calc(100svh + var(--mobile-scroll-buffer)) !important;
    background-color: #515bab !important;
    background-image: none !important;
    background-attachment: scroll !important;
  }

  #bg-video {
    width: 100vw !important;
    height: calc(100vh + var(--mobile-video-bleed)) !important;
    min-height: calc(100svh + var(--mobile-video-bleed)) !important;
  }

  .home-page main,
  .sub-page main,
  .home-page .site-footer,
  .sub-page .site-footer {
    background: transparent !important;
  }

  .article-shell,
  .music-shell,
  .nav-shell,
  .lock-shell {
    min-height: calc(100svh - 72px) !important;
    padding-bottom: max(72px, env(safe-area-inset-bottom)) !important;
  }
}

/* 桌面和 iPad 顶部导航：
   中间导航保持居中，左侧“从前慢”和右侧“关于”拉向两边，并略微下移避开 Web App 状态栏。 */
@media (min-width: 769px) {
  .site-header {
    top: max(22px, calc(env(safe-area-inset-top, 0px) + 16px)) !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    padding-left: max(22px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(22px, env(safe-area-inset-right, 0px)) !important;
  }

  .brand {
    justify-self: start !important;
  }

  .nav {
    justify-self: center !important;
  }

  .header-actions {
    justify-self: end !important;
  }
}

@media (min-width: 1181px) {
  .site-header {
    padding-left: clamp(48px, 9.5vw, 190px) !important;
    padding-right: clamp(48px, 9.5vw, 190px) !important;
  }
}

/* 顶部右侧操作区：顶部只保留“关于”，管理入口放到关于页底部。 */
.header-actions {
  pointer-events: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.manage-link {
  pointer-events: auto;
  flex: 0 0 auto;
  display: block;
  color: rgba(255,255,255,0.93);
  font-size: 0.95rem;
  font-family: 'Noto Serif SC', Georgia, serif;
  padding: 7px 18px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.42);
  border-top-color: rgba(255,255,255,0.65);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.55);
  white-space: nowrap;
}

.private-post-card .post-meta,
.dynamic-article .eyebrow {
  color: rgba(255,255,255,0.72) !important;
}

.lock-icon {
  display: none !important;
}

.about-page .article-shell {
  min-height: calc(100svh + 120px) !important;
}

.about-page .about-article {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.about-page .about-article h1 {
  color: rgba(255,255,255,0.94) !important;
}

.about-page .about-article p {
  color: rgba(255,255,255,0.76) !important;
}

.about-page .about-article .poem-line {
  color: rgba(255,255,255,0.9) !important;
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
  line-height: 1.9 !important;
  margin: 22px 0 !important;
}

.about-footer .footer-links {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 18px !important;
}

/* 导航整体下移后，公开页正文也同步下移，避免 Web App 状态栏/导航挡住文字。 */
@media (min-width: 769px) {
  .home-page .hero-text-float {
    padding-top: 190px !important;
  }

  .article-shell,
  .music-shell,
  .nav-shell,
  .lock-shell {
    padding-top: 132px !important;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .home-page .hero-text-float {
    padding-top: 174px !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
  }

  body.home-page::after,
  body.sub-page::after {
    content: "" !important;
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    height: var(--mobile-scroll-buffer) !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  .header-actions {
    gap: 5px;
  }
  .manage-link {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .home-page .hero-text-float {
    padding-top: 148px !important;
  }

  .sub-page .article-shell,
  .sub-page .music-shell,
  .sub-page .nav-shell,
  .sub-page .lock-shell {
    padding-top: 136px !important;
  }

  /* 手机端页脚也保持左右两端：左边版权，右边域名或操作链接。 */
  .site-footer,
  .dynamic-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: max(20px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(20px, env(safe-area-inset-right, 0px)) !important;
  }

  .site-footer span,
  .dynamic-footer span {
    display: block !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .site-footer span:first-child,
  .dynamic-footer span:first-child {
    text-align: left !important;
  }

  .site-footer span:last-child,
  .dynamic-footer span:last-child {
    text-align: right !important;
  }

  .about-page .about-article {
    max-width: min(100%, 22rem) !important;
  }

  .about-footer .footer-links {
    justify-content: flex-end !important;
    text-align: right !important;
  }
}
