/* =========================================================
   黄歪歪的个人主页 — 灵动 · 动态美
   暖米白底 · 炭黑文字 · 琥珀点缀 · 流动光斑 · 错落构图
   ========================================================= */

:root {
  --bg: #FAF9F7;
  --fg: #1C1B1A;
  --muted: #8A8580;
  --line: #E9E5DF;
  --accent: #A8763E;
  --accent-dark: #8A5E2C;
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(28,27,26,0.04), 0 8px 28px rgba(28,27,26,0.08);
  --shadow-float: 0 10px 40px rgba(28,27,26,0.10), 0 2px 8px rgba(28,27,26,0.06);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- 灵动背景装饰层 ---------- */
.bg-ornament {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.orn {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.orn-1 {
  width: 420px; height: 420px; top: -120px; right: -80px;
  background: radial-gradient(circle, #EED9B8 0%, transparent 70%);
}
.orn-2 {
  width: 360px; height: 360px; top: 38%; left: -140px;
  background: radial-gradient(circle, #EAD9D2 0%, transparent 70%);
  animation-delay: -6s; animation-duration: 32s;
}
.orn-3 {
  width: 300px; height: 300px; bottom: 10%; right: -120px;
  background: radial-gradient(circle, #E5E0D0 0%, transparent 70%);
  animation-delay: -12s; animation-duration: 24s;
}
.orn-4 {
  width: 260px; height: 260px; bottom: -80px; left: 30%;
  background: radial-gradient(circle, #F0E3D4 0%, transparent 70%);
  animation-delay: -18s; animation-duration: 38s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

main { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ---------- 开场动画 ---------- */
.open-curtain {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.open-curtain.out { transform: translateY(-101%); }
.oc-inner { text-align: center; position: relative; }
.oc-sub {
  display: block;
  font-size: 12px; letter-spacing: 7px; color: var(--muted);
  opacity: 0; animation: ocFade 0.9s ease 0.15s forwards;
}
.oc-name {
  margin: 20px 0 0;
  display: flex; justify-content: center; gap: 6px;
  font-size: clamp(46px, 8vw, 80px); font-weight: 300;
  letter-spacing: 6px; color: var(--fg);
}
.oc-name .ic {
  display: inline-block; opacity: 0; transform: translateY(26px) rotate(5deg);
  animation: ocRise 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
.oc-name .ic:nth-child(1) { animation-delay: 0.25s; }
.oc-name .ic:nth-child(2) { animation-delay: 0.38s; }
.oc-name .ic:nth-child(3) { animation-delay: 0.51s; }
.oc-name .last {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 600; color: var(--accent);
}
.oc-bar {
  display: block; width: 0; height: 2px; margin: 26px auto 0;
  background: var(--accent); border-radius: 2px;
  animation: ocBar 1s cubic-bezier(0.22,1,0.36,1) 0.8s forwards;
}
@keyframes ocFade { to { opacity: 1; } }
@keyframes ocRise { to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes ocBar { to { width: 132px; } }

/* ---------- 滚筒式入场 ---------- */
.drum { transform-origin: 50% 0; will-change: transform, opacity; }
.drum:not(.drum-in) {
  opacity: 0.6;
  transform: perspective(1200px) rotateX(7deg) translateY(48px) scale(0.985);
}
.drum.drum-in {
  opacity: 1;
  transform: perspective(1200px) rotateX(0) translateY(0) scale(1);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

/* 滚筒滚动：一屏一屏吸附 */
@media (min-width: 900px) {
  html { scroll-snap-type: y proximity; }
  .section, .hero { scroll-snap-align: start; }
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,249,247,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(250,249,247,0.9); box-shadow: 0 1px 10px rgba(28,27,26,0.04); }
.nav-inner {
  max-width: 1040px; margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
/* 顶部滚动进度 */
.progress {
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #C9A87C);
  transition: width 0.15s linear;
}
.logo {
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.6px;
}
.logo .dot { color: var(--accent); }
.links { display: flex; gap: 32px; }
.links a {
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.4px;
  transition: color 0.2s;
  position: relative;
}
.links a:hover { color: var(--fg); }
.links a.active { color: var(--fg); }
.links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.25s;
}
.links a:hover::after,
.links a.active::after { width: 100%; }

/* Hero 下滑提示 */
.hero-scroll {
  position: absolute; left: 50%; bottom: 10px;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(168,118,62,0), var(--accent));
  animation: hintDrop 2.6s ease-in-out infinite;
}
@keyframes hintDrop {
  0%, 100% { opacity: 0.35; transform: translateY(-4px); }
  50%      { opacity: 1;    transform: translateY(4px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 90px 0 70px;
}
.kicker {
  color: var(--accent);
  font-size: 13px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 26px;
  opacity: 0; animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 1.85s forwards;
}
.name {
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 300;
  letter-spacing: 1px; line-height: 1.05;
  color: var(--fg);
}
.name .last {
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--accent);
}
.name .char {
  display: inline-block; opacity: 0;
  transform: translateY(28px) rotate(6deg);
  animation: charUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
.intro {
  margin-top: 30px;
  max-width: 540px;
  color: var(--muted); font-size: 17px;
  font-weight: 300;
  opacity: 0; animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 2.15s forwards;
}
.btn {
  display: inline-block; margin-top: 44px;
  padding: 14px 38px;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.25s;
  opacity: 0; animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) 2.4s forwards;
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

/* Hero 浮动装饰 */
.hero-float { position: absolute; inset: 0; pointer-events: none; }
.hf {
  position: absolute; color: var(--accent); opacity: 0.7;
  animation: floaty 6s ease-in-out infinite;
}
.hf-1 { top: 18%; right: 6%; font-size: 26px; }
.hf-2 { top: 42%; right: 18%; font-size: 34px; color: #C9A87C; animation-delay: -2s; }
.hf-3 { top: 12%; right: 28%; font-size: 20px; color: #D8C0A0; animation-delay: -4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(12deg); }
}

/* 进场动画 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes charUp {
  from { opacity: 0; transform: translateY(28px) rotate(6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---------- 统计：浮动徽章 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 28px 0 16px; margin: 8px 0 24px;
}
.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.stat-value {
  font-size: 42px; font-weight: 200;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
}
.stat-label {
  font-size: 12px; color: var(--muted);
  margin-top: 8px; letter-spacing: 1.5px;
}

/* ---------- 小节 ---------- */
.section { padding: 100px 0 20px; }
.section-head { margin-bottom: 44px; }
.section-index {
  font-size: 12px; color: var(--accent);
  letter-spacing: 2px;
  display: block; margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(26px, 5vw, 38px); font-weight: 400;
  letter-spacing: 0.5px;
}
.section-head-line {
  width: 56px; height: 2px; background: var(--accent);
  margin-top: 18px; border-radius: 2px;
}

.about-text {
  color: var(--muted); max-width: 640px;
  font-size: 16px; font-weight: 300; line-height: 2;
  margin-bottom: 40px;
}

/* 滚动进入动画（JS 添加 .in） */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-r { opacity: 0; transform: translateX(40px) rotate(2deg); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal-r.in { opacity: 1; transform: translateX(0) rotate(0); }
.reveal-l { opacity: 0; transform: translateX(-40px) rotate(-2deg); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal-l.in { opacity: 1; transform: translateX(0) rotate(0); }

/* ---------- 关于：左右错排 ---------- */
.about-split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start;
}
.about-left .about-text { margin-bottom: 0; }

/* 关于信息网格 */
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.info-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.info-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.info-key {
  color: var(--muted); font-size: 12px;
  letter-spacing: 1px;
}
.info-val {
  font-weight: 500; font-size: 16px;
  color: var(--fg);
}

/* ---------- 技能 ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; row-gap: 30px; margin-bottom: 24px; }
.skill-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.skill-name { letter-spacing: 0.4px; }
.skill-level { color: var(--muted); font-size: 13px; font-family: Georgia, "Times New Roman", serif; }
.skill-bar {
  height: 6px; background: var(--line); overflow: hidden; border-radius: 6px;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #C9A87C);
  border-radius: 6px;
  width: 0;
  transition: width 1.1s cubic-bezier(0.22,1,0.36,1);
}

/* ---------- 数据展厅 ---------- */
#dataHall { display: flex; flex-direction: column; gap: 72px; margin-bottom: 24px; }
.dh-block { }
.dh-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.dh-head h3 { font-size: 20px; font-weight: 500; letter-spacing: 0.3px; }
.dh-source {
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.5px;
}
.dh-list {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 电影：紧凑网格卡片 */
.dh-movies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: none;
  background: none;
  overflow: visible;
}
.dh-movie {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.dh-movie:hover { border-color: #DCD6CD; transform: translateY(-3px); box-shadow: var(--shadow-float); }
.dh-movie-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dh-rank {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px; color: var(--accent);
  letter-spacing: 1px;
}
.dh-movie-body { flex: 1; min-width: 0; }
.dh-movie-title {
  font-size: 14.5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dh-movie-quote {
  font-size: 12px; color: var(--muted);
  font-weight: 300; margin-top: 4px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dh-rating {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px; font-weight: 600;
  color: var(--accent);
  flex: none;
}

/* 天气 */
.dh-weather-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.dh-weather {
  padding: 22px 12px;
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}
.dh-weather:hover { background: #FBFAF8; }
.dh-weather:last-child { border-right: none; }
.dh-weather-date { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.dh-weather-wea { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.dh-weather-temp {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px; font-weight: 600; color: var(--accent);
}
.dh-weather-wind { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* 通知公告 */
.dh-notice {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.3s;
}
.dh-notice:hover { background: #FBFAF8; padding-left: 30px; }
.dh-notice:last-child { border-bottom: none; }
.dh-notice-title { font-size: 14px; font-weight: 300; }
.dh-notice-date {
  font-size: 12px; color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  flex: none;
}

/* =========================================================
   实时速览 · 等高等宽四宫格
   ========================================================= */
.live-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 248px;
  gap: 18px;
  margin-bottom: 24px;
}
.live-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.live-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }

/* 统一卡片尺寸后，靠内容自身的留白对齐，不再做跨格 */

.live-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.live-label {
  font-size: 12px; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
}
.live-refresh {
  font-size: 12px; color: var(--muted); cursor: pointer;
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s;
}
.live-refresh:hover { color: var(--accent); }

/* 一言 */
.hitokoto-text {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: var(--fg); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hitokoto-text .cursor { color: var(--accent); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hitokoto-from {
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
  text-align: right;
}

/* 天气 */
.weather-main { display: flex; align-items: center; gap: 20px; flex: 1; }
.weather-icon { font-size: 44px; line-height: 1; flex: none; }
.weather-temp {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px; font-weight: 200; color: var(--fg);
}
.weather-desc { font-size: 14px; color: var(--muted); font-weight: 300; }
.weather-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 汇率小游戏 */
.fx-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.fx-row input, .fx-row select {
  border: 1px solid var(--line); background: var(--bg);
  padding: 9px 10px; font-size: 13.5px; color: var(--fg);
  outline: none; font-family: inherit; border-radius: 8px;
}
.fx-row input { width: 96px; }
.fx-row select { cursor: pointer; max-width: 118px; }
.fx-row input:focus, .fx-row select:focus { border-color: var(--accent); }
.fx-to { display: flex; align-items: center; gap: 8px; }
.fx-arrow { color: var(--muted); }
.fx-result {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px; font-weight: 300; color: var(--accent);
  line-height: 1.4; padding-top: 14px;
  word-break: break-word;
}
.fx-updated { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* 节假日 */
.holiday-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.holiday-name { font-size: 22px; font-weight: 500; color: var(--fg); }
.holiday-date { font-size: 13px; color: var(--muted); margin-top: 8px; }
.holiday-days {
  margin-top: 14px; font-size: 12px; color: var(--accent);
  letter-spacing: 0.5px;
}

/* GitHub 热门 */
.gh-list { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.gh-item {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 13px; color: var(--fg); line-height: 1.45;
  min-width: 0;
}
.gh-item .gh-rank { font-family: Georgia, "Times New Roman", serif; color: var(--accent); font-size: 13px; flex: none; }
.gh-item .gh-name {
  font-weight: 500; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gh-item .gh-star { margin-left: auto; font-size: 11.5px; color: var(--muted); flex: none; }
.gh-item a { color: var(--fg); text-decoration: none; }
.gh-item a:hover { color: var(--accent); }

.dog-err { font-size: 13px; color: var(--muted); }

/* ---------- 项目：错落卡片 ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.project {
  display: block;
  padding: 40px 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.project:nth-child(odd) { transform: translateY(16px); }
.project:nth-child(even) { transform: translateY(-16px); }
.project:hover {
  background: var(--bg);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-float);
}
.project-num {
  font-size: 12px; color: var(--muted);
  letter-spacing: 2px;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 16px;
  display: block;
}
.project-head h3 {
  font-size: 22px; font-weight: 500;
  letter-spacing: 0.3px;
}
.project-year {
  font-size: 12px; color: var(--muted);
  display: block; margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
}
.project-desc {
  font-size: 14px; color: var(--muted);
  margin: 18px 0 22px; font-weight: 300; line-height: 1.9;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag {
  font-size: 11px; color: var(--accent-dark);
  border: 1px solid var(--line);
  padding: 4px 12px;
  letter-spacing: 0.5px;
  background: var(--bg);
  border-radius: 20px;
}
.project-cta {
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--fg);
  transition: color 0.2s;
}
.project-cta::after { content: " →"; transition: transform 0.2s; display: inline-block; }
.project:hover .project-cta { color: var(--accent); }
.project:hover .project-cta::after { transform: translateX(4px); }

/* ---------- 联系 ---------- */
.contact-text {
  color: var(--muted); font-size: 16px; font-weight: 300;
  margin-bottom: 32px; max-width: 520px;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.btn-ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); margin-top: 0;
  text-transform: none; letter-spacing: 1px;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--fg); background: transparent; color: var(--fg); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
footer {
  max-width: 1040px; margin: 96px auto 0;
  padding: 32px 28px 48px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 12px;
  letter-spacing: 1px;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .dh-movies { grid-template-columns: repeat(2, 1fr); }
  .dh-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 640px) {
  .hero { padding: 84px 0 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .skills, .info-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(odd), .project:nth-child(even) { transform: none; }
  .links { gap: 18px; }
  .live-masonry { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .live-card { min-height: 168px; }
  .dh-movies { grid-template-columns: 1fr; }
  .dh-weather-grid { grid-template-columns: repeat(4, 1fr); }
  .dh-weather:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .dh-weather:nth-child(4n) { border-right: none; }
  .dh-weather:nth-last-child(-n+4) { border-bottom: none; }
  .dh-notice { flex-direction: column; gap: 4px; align-items: flex-start; }
  .fx-row input { width: 100%; }
}

/* =========================================================
   背景：音符跳动视频
   视频铺满并循环播放，上面压一层米白柔光，保证正文清晰可读
   ========================================================= */
.video-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.66;
  filter: saturate(0.92) contrast(0.97);
  transform: scale(1.04);
  transform-origin: center;
  animation: videoBreath 24s ease-in-out infinite alternate;
}
@keyframes videoBreath {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .video-bg video { animation: none; transform: scale(1.06); }
}

/* 兜底：若浏览器把动画时钟冻住/不支持动画，3 秒后强制显示首屏文字 */
body.anim-safe .name .char,
body.anim-safe .intro,
body.anim-safe .btn,
body.anim-safe .kicker,
body.anim-safe .reveal,
body.anim-safe .reveal-r,
body.anim-safe .reveal-l {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.video-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 247, 0.74) 0%,
    rgba(250, 249, 247, 0.64) 42%,
    rgba(250, 249, 247, 0.82) 100%
  );
}

@media (max-width: 640px) {
  .video-bg video { opacity: 0.45; }
  .hero-scroll { display: none; }
  .hero { min-height: 62vh; padding: 70px 0 50px; }
}

/* ---------- 音乐开关 ---------- */
.music-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; letter-spacing: .04em;
  padding: 8px 15px; margin-left: 18px;
  min-height: 32px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--muted);
  cursor: pointer; white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.music-btn:hover { color: var(--accent); border-color: rgba(168,118,62,.45); }
.music-btn.on {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.music-btn .music-icon {
  font-size: 14px; line-height: 1;
  display: inline-block;
}
.music-btn.on .music-icon { animation: notePulse 1.6s ease-in-out infinite; }
@keyframes notePulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-8deg); }
}
.music-btn .music-label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .music-btn { margin-left: 0; margin-top: 10px; }
}