/* =========================================================
   李冰冰 · 个人作品集
   style.css — 设计系统 / 版式 / 交互
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --cream: #f4ece0;
  --cream-2: #ece2d2;
  --paper: #fbf6ee;
  --white: #ffffff;
  --ink: #191b1f;
  --ink-2: #23262c;
  --ink-soft: #5b606a;
  --teal: #4f7f82;
  --teal-l: #93b9b7;
  --pink: #dfb2ad;
  --moss: #a9c07e;
  --violet: #a89ac6;
  --gold: #c69c4f;
  --line: rgba(25, 27, 31, .13);
  --line-2: rgba(25, 27, 31, .07);
  --shadow-s: 0 2px 10px rgba(25, 27, 31, .06);
  --shadow-m: 0 18px 44px rgba(25, 27, 31, .12);
  --shadow-l: 0 40px 90px rgba(25, 27, 31, .18);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 40px;
  --serif: 'Cormorant Garamond', 'Songti SC', 'Noto Serif SC', 'STSong', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur: .75s;
  --maxw: 1240px;
  --header-h: 76px;
}

[data-theme='night'] {
  --cream: #14161a;
  --cream-2: #1b1e23;
  --paper: #1e2127;
  --ink: #efe8dc;
  --ink-2: #d7cfc2;
  --ink-soft: #9aa0aa;
  --line: rgba(240, 233, 221, .16);
  --line-2: rgba(240, 233, 221, .09);
  --shadow-s: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow-m: 0 18px 44px rgba(0, 0, 0, .45);
  --shadow-l: 0 40px 90px rgba(0, 0, 0, .55);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  transition: background .5s var(--ease-soft), color .5s var(--ease-soft);
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ink); color: var(--cream); }

.container { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
.section { position: relative; padding: clamp(88px, 11vw, 148px) 0; overflow: hidden; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 纸张颗粒 */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme='night'] .grain { mix-blend-mode: screen; opacity: .16; }

/* ---------- 3. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14.5px; font-weight: 500; letter-spacing: .04em;
  border: 1px solid transparent;
  transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .45s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { --btn-bg: var(--ink); --btn-fg: var(--cream); box-shadow: 0 10px 26px rgba(25, 27, 31, .18); }
.btn--solid:hover { box-shadow: 0 18px 40px rgba(25, 27, 31, .28); }
.btn--line { border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); background: rgba(25, 27, 31, .04); }
.btn--lg { padding: 16px 32px; font-size: 15px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- 4. 预加载 ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--cream);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 16px; width: min(300px, 76vw); }
.preloader__eye { width: 96px; color: var(--ink); animation: eyeLook 3.2s var(--ease-soft) infinite; }
.preloader__pupil { transform-origin: 60px 36px; animation: pupilLook 3.2s var(--ease-soft) infinite; }
@keyframes eyeLook { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pupilLook { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.preloader__label { font-size: 13px; letter-spacing: .32em; color: var(--ink-soft); text-transform: uppercase; }
.preloader__bar { width: 100%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0%; background: var(--ink); transition: width .25s linear; }
.preloader__num { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); letter-spacing: .1em; }

/* ---------- 5. 顶栏 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease-soft), box-shadow .45s var(--ease-soft), backdrop-filter .45s;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-2);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; color: var(--ink); }
.brand__pupil { transform-origin: 60px 36px; transition: transform .6s var(--ease); }
.brand:hover .brand__pupil { transform: translateX(6px); }
.brand__text { font-family: var(--serif); font-size: 25px; letter-spacing: .04em; }
.brand__text b { font-weight: 600; }
.brand__text i { font-style: normal; color: var(--teal); }

.nav ul { display: flex; gap: 34px; }
.nav__link {
  position: relative; font-size: 14.5px; letter-spacing: .06em; padding: 6px 0;
  color: var(--ink-soft); transition: color .3s var(--ease-soft);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--ink); transition: right .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: background .3s var(--ease), transform .4s var(--ease), border-color .3s;
}
.icon-btn:hover { background: rgba(25, 27, 31, .06); transform: rotate(-12deg); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
[data-theme='night'] .icon-sun { display: block; }
[data-theme='night'] .icon-moon { display: none; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); padding: 11px 10px; }
.burger span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.scroll-progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--pink), var(--gold)); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 880;
  background: var(--ink); color: var(--cream);
  display: grid; align-content: center; gap: 40px; padding: 0 8vw;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu__nav { display: grid; gap: 10px; }
.mobile-menu__nav a {
  font-family: var(--serif); font-size: clamp(34px, 11vw, 60px); line-height: 1.18;
  display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .06s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: .24s; }
.mobile-menu__nav span { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--teal-l); }
.mobile-menu__mail { font-size: 14px; color: var(--teal-l); letter-spacing: .08em; }

/* ---------- 6. 首页 ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero__wash {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 42%, rgba(223, 178, 173, .40), transparent 62%),
    radial-gradient(50% 50% at 18% 24%, rgba(147, 185, 183, .34), transparent 66%),
    radial-gradient(70% 60% at 50% 108%, rgba(169, 192, 126, .26), transparent 70%);
}
[data-theme='night'] .hero__wash { opacity: .5; }
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(30px, 5vw, 74px); align-items: center;
}
.eyebrow {
  font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 26px; font-weight: 500;
}
.hero__title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.18; letter-spacing: .02em;
}
.hero__title .line { display: block; }
.hero__title em {
  font-style: normal; font-weight: 700; color: var(--teal);
}
.hero__title .hero__sub {
  font-size: .42em; font-weight: 500; letter-spacing: .46em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 16px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.hero__stack li {
  font-size: 12px; letter-spacing: .08em; padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color .3s, color .3s, transform .4s var(--ease);
}
.hero__stack li:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }

/* —— 首页舞台：小女孩从屏幕里探出来 —— */
.hero__stage {
  position: relative; width: 100%; max-width: 520px; justify-self: end;
  aspect-ratio: 1 / 1.24;
  overflow: hidden;
}
.stage__video {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  mix-blend-mode: multiply;
  transform: scale(1.22);
  transition: transform .6s var(--ease-soft);
  will-change: transform;
}
.bubble {
  position: absolute; z-index: 6; right: -4%; top: 6%;
  padding: 12px 20px; background: var(--white); border-radius: 20px;
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-m);
  transform-origin: 0% 100%; pointer-events: none;
  animation: bubble-pop 6s ease-in-out infinite;
}
@keyframes bubble-pop {
  0%, 52% { opacity: 0; transform: scale(.55) rotate(-10deg); }
  60%, 88% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(.55) rotate(-10deg); }
}
.bubble::after {
  content: ''; position: absolute; left: 12px; bottom: -9px;
  width: 18px; height: 18px; background: var(--white); border-radius: 3px;
  transform: rotate(45deg);
}
.bubble.is-pop { animation: bubblePop 2.6s var(--ease) forwards; }
@keyframes bubblePop {
  0% { opacity: 0; transform: scale(.55) rotate(-10deg); }
  16% { opacity: 1; transform: scale(1.1) rotate(-4deg); }
  26% { transform: scale(1) rotate(-4deg); }
  78% { opacity: 1; transform: scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: scale(.82) rotate(-7deg); }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5;
  display: grid; justify-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .3em; color: var(--ink-soft);
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ''; position: absolute; inset: 0; background: var(--teal);
  animation: cueRun 2.1s var(--ease-soft) infinite;
}
@keyframes cueRun { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- 7. 区块标题 ---------- */
.sec-head { position: relative; margin-bottom: clamp(42px, 6vw, 74px); }
.sec-head__index {
  display: inline-block; font-family: var(--serif); font-size: 15px; letter-spacing: .28em;
  color: var(--teal); margin-bottom: 14px;
}
.sec-head__title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.sec-head__title em {
  font-style: italic; font-weight: 400; font-size: .46em; letter-spacing: .06em; color: var(--ink-soft);
}
.sec-head__desc { margin-top: 16px; color: var(--ink-soft); font-size: 15px; max-width: 56ch; }
.sec-head--light .sec-head__title, .sec-head--light .sec-head__desc { color: var(--cream); }
.sec-head--light .sec-head__desc { color: rgba(244, 236, 224, .66); }
.sec-head--light .sec-head__title em { color: rgba(244, 236, 224, .5); }

/* ---------- 8. 关于我 ---------- */
.section--about { background: var(--cream); }
.section__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.section__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .17; filter: saturate(.8); }
.section__bg-fade { position: absolute; inset: 0; background: linear-gradient(var(--cream) 4%, rgba(244, 236, 224, .55) 45%, var(--cream) 96%); }
[data-theme='night'] .section__bg-fade { background: linear-gradient(var(--cream) 4%, rgba(20, 22, 26, .6) 45%, var(--cream) 96%); }
.section--about .container { position: relative; z-index: 2; }

.about__headline {
  font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.24; margin-bottom: 22px;
}
.about__text p { color: var(--ink-soft); font-size: 15.2px; line-height: 1.95; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0 34px; }
.facts li {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: color-mix(in srgb, var(--paper) 70%, transparent);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.facts li:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-s); }
.facts span { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-soft); }
.facts b { font-weight: 500; font-size: 14.5px; }

.marquee { margin-top: clamp(50px, 7vw, 90px); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.marquee__track { display: flex; gap: 42px; width: max-content; animation: slide 34s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); color: color-mix(in srgb, var(--ink) 78%, transparent); white-space: nowrap; }
.marquee__track i { color: var(--pink); font-style: normal; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* —— 作品集标题行：标题 + 右侧电视机（同一水平线） —— */
.works-head-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.5vw, 24px); }
.works-head-row .sec-head { flex: 1; min-width: 0; }
.works-tv { flex: none; }
.works-tv__video { width: clamp(300px, 34vw, 460px); animation: char-float 5s ease-in-out infinite; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .35)); }

/* ---------- 9. 作品集 ---------- */
.section--works { background: var(--ink-2); color: var(--cream); isolation: isolate; }
.works__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.works__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.works__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25, 27, 31, .62), rgba(25, 27, 31, .3) 45%, rgba(25, 27, 31, .55));
}
.section--works .container { position: relative; z-index: 2; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter {
  padding: 9px 20px; border-radius: 100px; border: 1px solid rgba(244, 236, 224, .22);
  font-size: 13.5px; letter-spacing: .05em; color: rgba(244, 236, 224, .72);
  transition: all .35s var(--ease-soft);
}
.filter:hover { border-color: rgba(244, 236, 224, .6); color: var(--cream); }
.filter.is-active { background: var(--cream); color: var(--ink-2); border-color: var(--cream); font-weight: 500; }
.filter em { font-style: normal; font-size: 11px; opacity: .6; margin-left: 6px; }

.works__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.work-card {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  background: color-mix(in srgb, var(--cream) 6%, transparent);
  border: 1px solid rgba(244, 236, 224, .12);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease), opacity .45s;
  cursor: pointer; opacity: 0; transform: translateY(22px);
}
.work-card.is-visible { opacity: 1; transform: none; }
.work-card.is-hidden { display: none; }
.work-card:hover { border-color: rgba(244, 236, 224, .38); box-shadow: 0 26px 60px rgba(0, 0, 0, .4); transform: translateY(-6px); }
.work-card.is-featured { grid-column: span 2; grid-row: span 2; }
.work-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #1c1f24; }
.work-card.is-featured .work-card__media { aspect-ratio: 16/11; }
.work-card__media img, .work-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.work-card:hover .work-card__media img, .work-card:hover .work-card__media video { transform: scale(1.06); }
.work-card--portrait .work-card__media { aspect-ratio: auto; height: clamp(380px, 42vw, 540px); }
.work-card--portrait .work-card__media video { width: auto; margin: 0 auto; object-fit: contain; }
.work-card__glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); font-style: italic;
  color: rgba(244, 236, 224, .9); letter-spacing: .02em;
  background: radial-gradient(60% 60% at 30% 25%, rgba(79, 127, 130, .5), transparent 70%), radial-gradient(60% 60% at 80% 80%, rgba(223, 178, 173, .32), transparent 70%), #191b1f;
}
.work-card__cat {
  position: absolute; left: 14px; top: 14px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; background: rgba(25, 27, 31, .62); color: var(--cream); backdrop-filter: blur(6px);
}
.work-card__badge {
  position: absolute; right: 14px; top: 14px; font-size: 10.5px; letter-spacing: .1em;
  padding: 5px 11px; border-radius: 100px; background: rgba(198, 156, 79, .9); color: #201c14; font-weight: 500;
}
.work-card__overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, .5));
  opacity: 0; transition: opacity .5s var(--ease-soft);
}
.work-card__overlay span {
  transform: translateY(14px); transition: transform .55s var(--ease);
  font-size: 13px; letter-spacing: .12em; padding: 10px 20px; border-radius: 100px;
  background: rgba(255, 255, 255, .92); color: #191b1f;
}
.work-card:hover .work-card__overlay { opacity: 1; }
.work-card:hover .work-card__overlay span { transform: none; }
.work-card__body { padding: 20px 22px 24px; }
.work-card__body h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.work-card__body p { margin-top: 8px; font-size: 13.6px; line-height: 1.85; color: rgba(244, 236, 224, .62); }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.work-card__tags li { font-size: 11px; letter-spacing: .06em; padding: 4px 10px; border-radius: 100px; border: 1px solid rgba(244, 236, 224, .18); color: rgba(244, 236, 224, .6); }
.work-card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(244, 236, 224, .1); font-size: 11.5px; letter-spacing: .1em; color: rgba(244, 236, 224, .45); }
.works__empty { padding: 70px 0 30px; text-align: center; font-size: 14px; letter-spacing: .1em; color: rgba(244, 236, 224, .5); }

/* ---------- 10. 简历 ---------- */
.section--resume { background: var(--cream); }
.resume__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 5vw, 68px); align-items: start; }
.resume__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.resume__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 30px 26px 26px; box-shadow: var(--shadow-m); text-align: center;
}
.resume__avatar {
  width: 82px; height: 82px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 38px; font-weight: 600;
  color: var(--cream); background: linear-gradient(135deg, var(--teal), var(--ink-2));
  box-shadow: 0 10px 26px rgba(79, 127, 130, .35);
}
.resume__card h3 { font-family: var(--serif); font-size: 27px; font-weight: 600; }
.resume__role { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.resume__contact { margin: 22px 0; display: grid; gap: 9px; text-align: left; }
.resume__contact li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.resume__contact span { color: var(--ink-soft); letter-spacing: .08em; }
.resume__contact b { font-weight: 500; word-break: break-all; text-align: right; }
.resume__langs { display: grid; gap: 10px; }
.resume__langs li {
  display: flex; justify-content: space-between; font-size: 12.5px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.resume__langs span { color: var(--ink-soft); }

.resume__main { display: grid; gap: clamp(30px, 4vw, 48px); }
.resume__block-title {
  font-family: var(--serif); font-size: 24px; font-weight: 600; display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.resume__block-title span { font-size: 13px; letter-spacing: .24em; color: var(--teal); }
.resume__summary { color: var(--ink-soft); font-size: 15px; line-height: 2; }

.timeline { display: grid; gap: 6px; }
.timeline__item { border-left: 2px solid var(--line); padding: 0 0 6px 26px; position: relative; }
.timeline__item::before {
  content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--teal);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.timeline__item:hover::before { background: var(--teal); transform: scale(1.25); }
.timeline__item.is-open::before { background: var(--teal); }
.timeline__period { font-size: 11.5px; letter-spacing: .16em; color: var(--teal); }
.timeline__role { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-top: 3px; }
.timeline__org { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.timeline__toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em;
  color: var(--ink-soft); padding: 6px 0; transition: color .3s;
}
.timeline__toggle i { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; font-size: 11px; transition: transform .45s var(--ease); }
.timeline__item.is-open .timeline__toggle i { transform: rotate(45deg); border-color: var(--teal); color: var(--teal); }
.timeline__items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.timeline__item.is-open .timeline__items { grid-template-rows: 1fr; }
.timeline__items > div { overflow: hidden; }
.timeline__items li { position: relative; padding-left: 18px; font-size: 13.8px; color: var(--ink-soft); line-height: 1.95; }
.timeline__items li + li { margin-top: 7px; }
.timeline__items li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }

.awards { display: grid; gap: 12px; }
.awards li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.awards li:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: var(--shadow-s); }
.awards b { font-size: 14.5px; font-weight: 500; }
.awards span { font-size: 12.5px; color: var(--ink-soft); display: block; margin-top: 2px; }
.awards time { font-family: var(--serif); font-size: 17px; color: var(--gold); }
.certs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.certs li {
  font-size: 12.5px; padding: 7px 15px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-soft); background: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---------- 11. 联系我 ---------- */
.section--contact { background: #1a1d22; color: var(--cream); isolation: isolate; }
.section__bg--contact img { opacity: .28; }
.section__bg--contact .section__bg-fade { background: linear-gradient(#1a1d22 2%, rgba(26, 29, 34, .72) 40%, #1a1d22 97%); }
.contact__grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(34px, 5vw, 72px); align-items: start; position: relative; z-index: 2; }
.contact__headline { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1.2; margin-bottom: 18px; }
.contact__headline span { color: var(--pink); font-style: italic; }
.contact__info > p { color: rgba(244, 236, 224, .62); font-size: 15px; line-height: 1.95; max-width: 46ch; }
.contact__list { display: grid; gap: 4px; margin: 34px 0 24px; }
.contact__list li {
  display: grid; grid-template-columns: 42px 62px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid rgba(244, 236, 224, .1); transition: background .4s;
}
.contact__list li:hover { background: rgba(244, 236, 224, .04); }
.contact__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244, 236, 224, .16); color: var(--teal-l); }
.contact__ico svg { width: 19px; height: 19px; }
.contact__k { font-size: 12px; letter-spacing: .16em; color: rgba(244, 236, 224, .45); }
.contact__v { font-weight: 500; font-size: 14.5px; word-break: break-all; }
.copy-btn {
  font-size: 11.5px; letter-spacing: .1em; padding: 6px 13px; border-radius: 100px;
  border: 1px solid rgba(244, 236, 224, .2); color: rgba(244, 236, 224, .7);
  transition: all .3s var(--ease-soft);
}
.copy-btn:hover { background: var(--teal-l); border-color: var(--teal-l); color: #1a1d22; }
.contact__status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 9px 18px; border-radius: 100px; border: 1px solid rgba(169, 192, 126, .4);
  color: var(--moss); background: rgba(169, 192, 126, .08);
}
.contact__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.contact__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact__social a {
  font-size: 12.5px; letter-spacing: .08em; padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(244, 236, 224, .18); color: rgba(244, 236, 224, .75);
  transition: all .35s var(--ease-soft);
}
.contact__social a:hover { border-color: var(--teal-l); color: var(--teal-l); transform: translateY(-3px); }

.contact__form {
  background: color-mix(in srgb, #23262c 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 236, 224, .12); border-radius: var(--r-l);
  padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-l); display: grid; gap: 20px;
}
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 20px 16px 9px; border-radius: var(--r-m);
  background: rgba(244, 236, 224, .05); border: 1px solid rgba(244, 236, 224, .14);
  color: var(--cream); font: inherit; font-size: 14.5px; outline: none;
  transition: border-color .35s, background .35s, box-shadow .35s;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.field select { appearance: none; cursor: pointer; padding-top: 21px; }
.field select option { background: #23262c; color: var(--cream); }
.field label {
  position: absolute; left: 16px; top: 19px; font-size: 14.5px; color: rgba(244, 236, 224, .45);
  pointer-events: none; transition: transform .3s var(--ease), font-size .3s var(--ease), color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-l); background: rgba(244, 236, 224, .08); box-shadow: 0 0 0 4px rgba(147, 185, 183, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-11px) scale(.78); transform-origin: left top; color: var(--teal-l); }
.field__err { display: block; font-size: 12px; color: #e08b84; margin-top: 6px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .3s; }
.field.is-error input, .field.is-error textarea { border-color: #e08b84; }
.field.is-error .field__err { opacity: 1; max-height: 40px; }
.form__note { font-size: 12px; color: rgba(244, 236, 224, .45); text-align: center; }
.form__note.is-ok { color: var(--moss); }

/* ---------- 12. 页脚 ---------- */
.site-footer { background: var(--ink-2); color: var(--cream); position: relative; overflow: hidden; }
[data-theme='night'] .site-footer { background: #0e1013; }
.footer__marquee { overflow: hidden; border-bottom: 1px solid rgba(244, 236, 224, .12); padding: 22px 0; }
.footer__marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: slide 40s linear infinite; }
.footer__marquee-track span { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 46px); white-space: nowrap; color: rgba(244, 236, 224, .9); }
.footer__marquee-track i { font-style: normal; color: var(--pink); font-size: 22px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 54px 0 60px; align-items: start; }
.footer__logo { font-family: var(--serif); font-size: 34px; letter-spacing: .02em; }
.footer__brand p { margin-top: 10px; font-size: 13.5px; color: rgba(244, 236, 224, .55); max-width: 34ch; }
.footer__nav { display: grid; gap: 10px; }
.footer__nav a { font-size: 13.5px; color: rgba(244, 236, 224, .62); transition: color .3s, transform .35s var(--ease); }
.footer__nav a:hover { color: var(--cream); transform: translateX(5px); }
.footer__meta { display: grid; gap: 8px; font-size: 13px; color: rgba(244, 236, 224, .55); text-align: right; }
.footer__meta b { color: var(--teal-l); font-weight: 500; font-variant-numeric: tabular-nums; }
.to-top {
  position: absolute; right: 28px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(244, 236, 224, .22); display: grid; place-items: center; color: var(--cream);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .45s, transform .45s var(--ease), background .35s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--teal); border-color: var(--teal); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 13. 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 950; display: grid; place-items: center;
  background: rgba(12, 13, 16, .93); backdrop-filter: blur(10px);
  padding: clamp(18px, 4vw, 60px);
  opacity: 0; transition: opacity .4s var(--ease-soft);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(18px, 3vw, 40px); align-items: center; width: min(1100px, 100%);
  transform: scale(.96) translateY(14px); transition: transform .55s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__media {
  position: relative; border-radius: var(--r-l); overflow: hidden; background: #191b1f; aspect-ratio: 4/3;
  display: grid; place-items: center; box-shadow: var(--shadow-l);
}
.lightbox__media img, .lightbox__media video { width: 100%; height: 100%; object-fit: cover; }
.lightbox__media--portrait { aspect-ratio: auto; width: auto; justify-self: center; height: min(78vh, 760px); }
.lightbox__media--portrait video { width: auto; object-fit: contain; }
.lightbox__media .work-card__glyph { position: absolute; inset: 0; }
.lightbox__cap h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 600; color: var(--cream); }
.lightbox__cap p { margin-top: 12px; font-size: 14px; line-height: 1.95; color: rgba(244, 236, 224, .68); }
.lightbox__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lightbox__tags li { font-size: 11.5px; padding: 5px 12px; border-radius: 100px; border: 1px solid rgba(244, 236, 224, .2); color: rgba(244, 236, 224, .7); }
.lightbox__meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(244, 236, 224, .14); font-size: 12.5px; color: rgba(244, 236, 224, .5); display: grid; gap: 5px; }
.lightbox__meta b { color: var(--teal-l); font-weight: 500; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream);
  border: 1px solid rgba(244, 236, 224, .22); background: rgba(255, 255, 255, .05);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.lightbox__close { top: 26px; right: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--teal); border-color: var(--teal); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: rgba(244, 236, 224, .5); }

/* ---------- 14. 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 990;
  background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 100px;
  font-size: 13.5px; letter-spacing: .04em; box-shadow: var(--shadow-m);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14.5 超现实动态装饰 ---------- */
.float-balls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-balls i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--teal) 45%, #fff), var(--teal) 60%, #233c3e);
  opacity: .45; animation: ball-float 7s ease-in-out infinite;
}
.float-balls i:nth-child(1) { width: 22px; height: 22px; left: 7%; top: 24%; }
.float-balls i:nth-child(2) { width: 14px; height: 14px; left: 88%; top: 36%; animation-duration: 9s; animation-delay: -2s; }
.float-balls i:nth-child(3) { width: 30px; height: 30px; left: 80%; top: 72%; animation-duration: 8s; animation-delay: -4s; }
.float-balls i:nth-child(4) { width: 11px; height: 11px; left: 14%; top: 80%; animation-duration: 10s; animation-delay: -1s; }
@keyframes ball-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}

@keyframes cloud-drift { from { transform: translateX(-300px); } to { transform: translateX(calc(100vw + 300px)); } }

.eye-float {
  position: absolute; right: 4.5%; top: 7%; width: 92px; color: var(--teal-l);
  opacity: .85; pointer-events: none; z-index: 1;
  animation: ball-float 8s ease-in-out infinite;
}
.eye-float svg { width: 100%; height: auto; display: block; transform-origin: 50% 50%; animation: eye-blink 2s ease-in-out infinite; }
.eye-float #eyePupil2 { transition: transform .3s var(--ease-soft); }
@keyframes eye-blink {
  0%, 86% { transform: scaleY(1); }
  92% { transform: scaleY(.05); }
  100% { transform: scaleY(1); }
}

/* 手绘云（素材抠图） */
.cloud-img { position: absolute; z-index: 0; pointer-events: none; opacity: .92;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .3));
  animation: cloud-drift linear infinite; }
.cloud-img--a { width: 230px; top: 13%; animation-duration: 75s; }
.cloud-img--b { width: 150px; top: 45%; opacity: .65; animation-duration: 100s; animation-delay: -38s; }
.cloud-img--c { width: 270px; top: 70%; opacity: .8; animation-duration: 130s; animation-delay: -74s; }
.cloud-img--d { width: 110px; top: 28%; opacity: .55; animation-duration: 90s; animation-delay: -55s; }
.cloud-img--e { width: 190px; top: 82%; opacity: .7; animation-duration: 115s; animation-delay: -20s; }

/* 星星贴纸（素材抠图） */
.star-deco { position: absolute; z-index: 1; pointer-events: none; opacity: .95;
  filter: drop-shadow(0 5px 10px rgba(63, 82, 74, .28)); }
.star-deco--tw { animation: star-tw 3.4s ease-in-out infinite; }
.star-deco--sw { animation: deco-sway var(--d, 8s) ease-in-out infinite; }
.star-deco--spin { animation: star-spin 9s linear infinite; }
.star-deco--bob { animation: star-bob 4.2s ease-in-out infinite; }
@keyframes star-tw {
  0%, 100% { transform: scale(.92) rotate(-8deg); }
  50% { transform: scale(1.07) rotate(8deg); }
}
@keyframes star-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes star-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rain i {
  position: absolute; top: -70px; width: 1.5px; height: 56px; border-radius: 2px;
  background: linear-gradient(rgba(244, 236, 224, 0), rgba(244, 236, 224, .38));
  animation: rain-fall linear infinite;
}
.rain i:nth-child(1) { left: 5%;  animation-duration: 1.35s; }
.rain i:nth-child(2) { left: 16%; animation-duration: 1.7s;  animation-delay: -.6s; }
.rain i:nth-child(3) { left: 27%; animation-duration: 1.25s; animation-delay: -1s; }
.rain i:nth-child(4) { left: 38%; animation-duration: 1.8s;  animation-delay: -.3s; }
.rain i:nth-child(5) { left: 49%; animation-duration: 1.45s; animation-delay: -1.2s; }
.rain i:nth-child(6) { left: 60%; animation-duration: 1.6s;  animation-delay: -.8s; }
.rain i:nth-child(7) { left: 71%; animation-duration: 1.3s;  animation-delay: -.45s; }
.rain i:nth-child(8) { left: 80%; animation-duration: 1.75s; animation-delay: -1.4s; }
.rain i:nth-child(9) { left: 89%; animation-duration: 1.4s;  animation-delay: -.95s; }
.rain i:nth-child(10) { left: 95%; animation-duration: 1.55s; animation-delay: -.15s; }
@keyframes rain-fall { to { transform: translateY(115vh); } }

@media (prefers-reduced-motion: reduce) {
  .float-balls i, .rain i, .eye-float, .eye-float svg, .cloud-img,
  .star-deco--tw, .star-deco--sw, .star-deco--spin, .star-deco--bob { animation: none; }
}

/* ---------- 14.6 超现实素材漂浮装饰（全站分散） ---------- */
.deco {
  position: absolute; z-index: 1; overflow: hidden; cursor: pointer;
  border-radius: 14px; border: 3px solid #f7f2e6;
  box-shadow: 0 14px 30px rgba(63, 82, 74, .22); background: #efe6cf;
}
.deco--circle { border-radius: 50%; }
.deco--arch { border-radius: 999px 999px 14px 14px; }
.deco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deco--f1 { animation: deco-float 7s ease-in-out infinite; }
.deco--f2 { animation: deco-sway 9s ease-in-out infinite; }
.deco--f3 { animation: deco-drift 11s ease-in-out infinite; }
@keyframes deco-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes deco-sway {
  0%, 100% { transform: translate(0, 0) rotate(-1.6deg); }
  50% { transform: translate(16px, -12px) rotate(1.8deg); }
}
@keyframes deco-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -16px); }
}
.deco.do-squish { animation: deco-squish .65s ease-in-out; }
@keyframes deco-squish {
  0%, 100% { transform: none; }
  35% { transform: scale(1.12, .82); }
  65% { transform: scale(.92, 1.1); }
}
@media (max-width: 720px) { .deco { zoom: .62; } }
@media (prefers-reduced-motion: reduce) {
  .deco--f1, .deco--f2, .deco--f3 { animation: none; }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { justify-self: center; max-width: 460px; order: -1; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .resume__grid { grid-template-columns: 1fr; }
  .resume__side { position: static; max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .lightbox__figure { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__meta { text-align: left; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .burger { display: block; }
  .site-header__actions .btn { display: none; }
  .work-card.is-featured { grid-column: span 1; grid-row: span 1; }
  .work-card.is-featured .work-card__media { aspect-ratio: 4/3; }
  .facts { grid-template-columns: 1fr; }
  .awards li { grid-template-columns: 1fr; gap: 4px; }
  .contact__list li { grid-template-columns: 38px 1fr auto; row-gap: 2px; }
  .contact__k { grid-column: 2; }
  .contact__v { grid-column: 2; grid-row: 2; }
  .copy-btn { grid-column: 3; grid-row: 1 / span 2; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .hero__stage { max-width: 100%; }
  .bubble { font-size: 20px; right: 2%; top: 2%; }
  .works__grid { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- 16. 打印（导出简历） ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #111; }
  .site-header, .mobile-menu, .preloader, .lightbox, .toast, .to-top, .footer__marquee,
  .hero, .section--about, .section--works, .section--contact, .scroll-cue, .grain { display: none !important; }
  .section--resume { padding: 0; }
  .resume__grid { grid-template-columns: 260px 1fr; gap: 26px; }
  .resume__side { position: static; }
  .resume__card, .resume__langs li { box-shadow: none; border: 1px solid #ddd; background: #fff; }
  .resume__block { break-inside: avoid; }
  .timeline__items { grid-template-rows: 1fr !important; }
  .resume__block-title { font-size: 18px; }
  a { text-decoration: none; color: #111; }
}

/* ---------- 17. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .work-card { opacity: 1; transform: none; }
}
