/* ============================================================
   林知夏作品集 · Editorial Brutalist Design System
   Paper / Ink / Vermilion
   ============================================================ */

:root {
  --paper: #f3efe6;
  --paper-deep: #e9e2d2;
  --paper-card: #faf7f0;
  --ink: #17130e;
  --ink-soft: #57504a;
  --vermilion: #e83812;
  --vermilion-dark: #c12a0c;
  --blue: #1f3fe0;
  --ochre: #b07c10;
  --violet: #6d3bff;
  --line: rgba(23, 19, 14, 0.16);
  --line-strong: rgba(23, 19, 14, 0.55);

  --f-serif: "Noto Serif SC", "Songti SC", serif;
  --f-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-display: "Anton", "Noto Sans SC", sans-serif;
  --f-mono: "Space Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-s: 0.25s;
  --dur-m: 0.45s;
  --dur-l: 0.75s;

  --pad-x: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--vermilion); color: var(--paper); }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }

.noscript-tip { padding: 40px; border: 1px dashed var(--vermilion); }

/* ---------- 滚动揭示（fail-open：无 JS 时默认可见） ---------- */
.has-js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.has-js .reveal.shown { opacity: 1; transform: none; }

/* ============================================================
   开屏 PRELOADER
   ============================================================ */
.preloader { display: none; }
.has-js .preloader {
  display: block;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.preloader__inner {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
}
.preloader__role {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em;
  color: rgba(243, 239, 230, .6);
  animation: plFade .6s var(--ease-out) both;
}
.preloader__name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: clamp(8px, 2vw, 24px);
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(64px, 16vw, 200px); line-height: 1;
}
.pl-line { overflow: hidden; display: inline-block; }
.pl-line > span {
  display: inline-block;
  animation: plRise .9s var(--ease-out) both;
}
.pl-line:nth-child(2) > span { animation-delay: .12s; color: var(--vermilion); }
.pl-line:nth-child(3) > span { animation-delay: .24s; }
.preloader__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em;
}
.preloader__count {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 120px); line-height: .85;
  color: var(--paper);
}
.preloader.is-done .preloader__inner { animation: plFade .4s ease-in both; }
.preloader__panel {
  position: absolute; inset: 0; z-index: 2;
  background: var(--ink);
  transform: translateY(100%);
  pointer-events: none;
}
.preloader__panel--b { background: var(--vermilion); z-index: 1; }
.preloader.is-leaving .preloader__panel--a { animation: curtainUp .85s cubic-bezier(0.76, 0, 0.24, 1) .05s both; }
.preloader.is-leaving .preloader__panel--b { animation: curtainUp .85s cubic-bezier(0.76, 0, 0.24, 1) both; }
.preloader.is-gone { display: none; }

@keyframes plRise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes plFade { from { opacity: 1; } to { opacity: 0; } }
@keyframes curtainUp { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ============================================================
   自定义光标
   ============================================================ */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 1200;
    pointer-events: none; border-radius: 50%;
    mix-blend-mode: difference;
  }
  .cursor {
    width: 8px; height: 8px; margin: -4px 0 0 -4px;
    background: var(--paper);
  }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1.5px solid var(--paper);
    transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s, border-color .3s;
  }
  .cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cursor-ring.is-magnetic { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: rgba(243, 239, 230, .9); border-color: transparent; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad-x);
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(243, 239, 230, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo {
  font-family: var(--f-serif); font-weight: 900; font-size: 22px;
  letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px;
}
.nav__logo sup { font-size: 10px; color: var(--vermilion); }
.nav__logo-en { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-soft); }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  position: relative; font-size: 15px; font-weight: 500;
  padding: 6px 2px;
}
.nav__links a i {
  font-family: var(--f-mono); font-style: normal; font-size: 10px;
  color: var(--vermilion); margin-right: 5px;
  vertical-align: 2px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--vermilion);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--vermilion); }

.nav__edit {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: 100px;
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  background: var(--paper-card);
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.nav__edit:hover { background: var(--ink); color: var(--paper); }
.nav__edit .dot-edit {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion);
  box-shadow: 0 0 0 0 rgba(232, 56, 18, .5);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 56, 18, .45); }
  70% { box-shadow: 0 0 0 9px rgba(232, 56, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 56, 18, 0); }
}

.edit-banner {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 190;
  background: var(--vermilion); color: var(--paper);
  text-align: center; font-size: 13px; font-weight: 500;
  padding: 9px var(--pad-x); letter-spacing: .02em;
}
body.editing { padding-top: 38px; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px; border-radius: 100px;
  font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--ink);
  transition: transform .3s var(--ease-out), background .25s, color .25s;
  will-change: transform;
}
.btn b { font-weight: 400; transition: transform .3s var(--ease-out); }
.btn--fill { background: var(--vermilion); border-color: var(--vermilion); color: var(--paper); }
.btn--fill:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn:hover b { transform: translateX(5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 36px;
  position: relative;
}
.hero__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--ink-soft);
  margin-bottom: clamp(20px, 4vh, 56px);
}
.hero__available { display: inline-flex; align-items: center; gap: 9px; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--vermilion);
  animation: dotPulse 2s infinite;
}
.hero__title {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(52px, 10.6vw, 158px);
  line-height: 1.04; letter-spacing: -0.01em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-line__inner { display: inline-block; }
.has-js .hero-line__inner { transform: translateY(115%); }
html.intro-done .hero-line__inner {
  transform: none;
  transition: transform 1s var(--ease-out);
}
html.intro-done .hero-line:nth-child(2) .hero-line__inner { transition-delay: .09s; }
html.intro-done .hero-line:nth-child(3) .hero-line__inner { transition-delay: .18s; }
.hero-line--stroke .hero-line__inner {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero-line__inner em {
  font-style: normal; color: var(--vermilion);
  -webkit-text-stroke: 0;
  position: relative;
}
.hero-line--sub {
  font-family: var(--f-sans); font-weight: 900;
  font-size: clamp(20px, 2.6vw, 38px);
  letter-spacing: .01em;
}
.hero-rotator { display: inline-block; min-width: 5.2em; text-align: left; }
.has-js .hero-rotator.swap { animation: wordSwap .55s var(--ease-out); }
@keyframes wordSwap {
  0% { transform: translateY(60%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.hero__foot {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-top: clamp(28px, 5vh, 72px);
}
.has-js .hero-reveal { opacity: 0; transform: translateY(20px); }
html.intro-done .hero-reveal {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out) .35s, transform .8s var(--ease-out) .35s;
}
.hero__desc { font-size: 15px; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em;
  text-align: center; color: var(--ink-soft);
  writing-mode: horizontal-tb;
}
.hero__scroll i {
  display: block; width: 1px; height: 52px; margin: 10px auto 0;
  background: var(--ink);
  transform-origin: top;
  animation: scrollLine 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   跑马灯
   ============================================================ */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  transform: rotate(-1.2deg) scale(1.02);
  margin: 10px 0 26px;
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(22px, 3.4vw, 40px);
  letter-spacing: .03em; white-space: nowrap;
  padding: 14px 0;
}
.marquee__track i { font-style: normal; color: var(--vermilion); padding: 0 .15em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   通用 SECTION
   ============================================================ */
.section { padding: clamp(72px, 11vh, 140px) var(--pad-x); }
.section__head { margin-bottom: clamp(32px, 5vh, 64px); }
.section__label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em;
  color: var(--vermilion);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.section__label::before { content: ""; width: 42px; height: 1.5px; background: var(--vermilion); }
.section__title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__title {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.05;
}
.section__title em, .contact__big em { font-style: normal; color: var(--vermilion); }
.section__note { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; }

/* ============================================================
   筛选
   ============================================================ */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: clamp(30px, 5vh, 56px);
}
.filter {
  position: relative; z-index: 1;
  padding: 10px 22px; border-radius: 100px;
  font-size: 15px; font-weight: 700;
  color: var(--ink-soft);
  transition: color .3s;
}
.filter i {
  font-family: var(--f-mono); font-style: normal; font-size: 9px;
  letter-spacing: .12em; margin-left: 6px; vertical-align: 2px;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--paper); }
.filters__rail {
  position: absolute; top: 16px; left: 0; z-index: 0;
  height: calc(100% - 32px);
  background: var(--ink); border-radius: 100px;
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}

/* ============================================================
   作品墙 · 垂直网格（清晰优先）
   ============================================================ */
.work-wrap { position: relative; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding: 0;
}

.work-track {
  display: contents;
}

.work-hint {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-soft);
  padding: 14px 0 0;
  opacity: .6;
}

/* 卡片：grid 项，宽度自适应 */
.card {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-card);
  padding: 16px;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s,
              border-color .3s, box-shadow .45s var(--ease-out), transform .45s var(--ease-out);
  animation: cardIn .6s var(--ease-out) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.card:hover { border-color: var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: translate(-3px, -3px); z-index: 4; }
.card.is-hidden { opacity: 0; visibility: hidden; z-index: 0; pointer-events: none; position: absolute; }

/* 错列：偶数卡片下沉 */
.card:nth-child(even) { transform: translateY(36px); }
.card:nth-child(even):hover { transform: translateY(36px) translate(-3px, -3px); }

/* 巨型序号：实心朱砂红底白字，清晰醒目 */
.card__no {
  position: absolute;
  top: -14px;
  left: -10px;
  z-index: 3;
  font-family: var(--f-display);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1;
  color: var(--paper);
  background: var(--vermilion);
  padding: 6px 14px 8px;
  border-radius: 4px;
  letter-spacing: -.02em;
  pointer-events: none;
  box-shadow: 4px 4px 0 var(--ink);
}

/* 纸胶带 */
.card::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 78px;
  height: 22px;
  background: rgba(232, 56, 18, .28);
  border-left: 1px dashed rgba(23, 19, 14, .2);
  border-right: 1px dashed rgba(23, 19, 14, .2);
  z-index: 3;
  pointer-events: none;
}
.card:nth-child(even)::after { background: rgba(31, 63, 224, .24); transform: translateX(-50%) rotate(2.5deg); }

/* 尺寸仅决定封面比例 */
.card--tall  .card__media { aspect-ratio: 3 / 4; }
.card--wide  .card__media { aspect-ratio: 16 / 9; }
.card--half  .card__media { aspect-ratio: 4 / 3; }
.card--third .card__media { aspect-ratio: 1 / 1; }
.card__media {
  position: relative; overflow: hidden;
  background: var(--paper-deep);
}
.card__media img { transition: transform .8s var(--ease-out), filter .5s; }
.card:hover .card__media img { transform: scale(1.055); }

.card__play {
  position: absolute; right: 16px; bottom: 16px;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(243, 239, 230, .92); color: var(--vermilion);
  display: grid; place-items: center; font-size: 18px;
  transition: transform .35s var(--ease-out), background .3s, color .3s;
}
.card:hover .card__play { transform: scale(1.12); background: var(--vermilion); color: var(--paper); }

.card__body {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 4px 6px;
}
.card__meta {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.card__dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-graphic { background: var(--vermilion); }
.dot-copy { background: var(--ink); }
.dot-video { background: var(--blue); }
.dot-planning { background: var(--ochre); }
.dot-h5 { background: var(--violet); }

.card__title { font-family: var(--f-serif); font-weight: 900; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; }
.card__desc { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }
.card__arrow {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .35s var(--ease-out);
}
.card:hover .card__arrow { background: var(--vermilion); border-color: var(--vermilion); color: var(--paper); transform: rotate(45deg); }

/* 文案类：纯排印卡 */
.card--quote { background: var(--ink); border-color: var(--ink); color: var(--paper); padding: clamp(26px, 3vw, 40px); min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.card--quote .card__meta { color: rgba(243, 239, 230, .55); }
.card--quote .card__quote {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.35;
}
.card--quote .card__quote::before { content: "“"; color: var(--vermilion); display: block; font-size: 1.4em; line-height: .6; }
.card--quote .card__sub { margin-top: 16px; font-size: 13px; color: rgba(243, 239, 230, .62); }
.card--quote .card__arrow { border-color: rgba(243, 239, 230, .5); color: var(--paper); }
.card--quote:hover { box-shadow: 10px 10px 0 var(--vermilion); }

/* 编辑模式下卡片操作 */
.card__ops { position: absolute; top: 10px; right: 10px; z-index: 5; display: none; gap: 8px; }
body.editing .card__ops { display: flex; }
.card__ops button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.card__ops button:hover { background: var(--vermilion); color: var(--paper); border-color: var(--vermilion); }
.card__ops .op-del:hover { background: var(--ink); }

/* ============================================================
   关于
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about__portrait { position: relative; }
.about__portrait-frame {
  aspect-ratio: 3 / 4; overflow: hidden;
  border: 1.5px solid var(--ink);
  transform: rotate(-1.4deg);
  transition: transform .6s var(--ease-out);
  background: var(--paper-deep);
}
.about__portrait-frame img { filter: grayscale(.15) contrast(1.02); transition: transform 1s var(--ease-out), filter .6s; }
.about__portrait:hover .about__portrait-frame { transform: rotate(0deg); }
.about__portrait:hover img { transform: scale(1.04); filter: none; }
.about__portrait figcaption {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--ink-soft);
  transform: rotate(-1.4deg);
}
.about__sticker {
  position: absolute; top: -26px; right: -18px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--vermilion); color: var(--paper);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 10px; line-height: 1.5; letter-spacing: .08em;
  animation: spinSlow 14s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.about__lead {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(24px, 2.8vw, 38px); line-height: 1.4;
  margin-bottom: 28px;
}
.about__text p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; max-width: 58ch; }
.about__facts {
  border-top: 1px solid var(--line);
  margin: 36px 0 30px;
}
.about__facts li {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.about__facts span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); padding-top: 3px; }
.about__facts b { font-weight: 700; }
.about__tools { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.about__tools > span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); }
.about__tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
.about__tools li {
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 500;
  transition: background .25s, color .25s, border-color .25s;
}
.about__tools li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   实习经历
   ============================================================ */
.timeline { border-top: 1.5px solid var(--ink); }
.t-item {
  position: relative;
  display: grid;
  grid-template-columns: 230px 1fr 70px;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 4vh, 48px) 18px;
  border-bottom: 1px solid var(--line);
  transition: background .4s, color .4s;
}
.t-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.t-item:hover { color: var(--paper); }
.t-item:hover::before { transform: scaleY(1); transform-origin: bottom; }
.t-item:hover .t-item__period span, .t-item:hover .t-item__desc { color: rgba(243, 239, 230, .7); }
.t-item__period { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); }
.t-item__period b { display: block; margin-top: 8px; font-weight: 400; font-size: 11px; }
.t-item__body h3 { font-family: var(--f-serif); font-weight: 900; font-size: clamp(21px, 2.4vw, 32px); line-height: 1.3; }
.t-item__role { color: var(--vermilion); font-weight: 700; font-size: 14px; margin: 8px 0 12px; }
.t-item__desc { font-size: 14.5px; color: var(--ink-soft); max-width: 62ch; transition: color .4s; }
.t-item__index {
  font-family: var(--f-display); font-size: clamp(34px, 4vw, 56px);
  color: rgba(23, 19, 14, .14); align-self: center; justify-self: end;
  transition: color .4s, transform .45s var(--ease-out);
}
.t-item:hover .t-item__index { color: var(--vermilion); transform: rotate(8deg); }

/* 实习经历操作按钮 */
.t-item__ops {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  display: none; gap: 8px;
}
body.editing .t-item__ops { display: flex; }
.t-item__ops button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.t-item__ops button:hover { background: var(--vermilion); color: var(--paper); border-color: var(--vermilion); }
.t-item__ops .exp-del:hover { background: var(--ink); }

/* ============================================================
   联系
   ============================================================ */
.contact { padding-bottom: clamp(60px, 8vh, 100px); }
.contact__big {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(54px, 11.5vw, 168px); line-height: 1.06;
  margin-bottom: clamp(40px, 6vh, 80px);
}
.contact__big span { color: var(--vermilion); }
.contact__rows { border-top: 1.5px solid var(--ink); }
.contact-row {
  display: grid;
  grid-template-columns: 200px 1fr 50px;
  align-items: center; gap: 20px;
  padding: clamp(24px, 4vh, 40px) 6px;
  border-bottom: 1px solid var(--line);
  transition: background .35s;
}
.contact-row:not(.contact-row--static) { cursor: pointer; }
.contact-row:hover { background: var(--paper-deep); }
.contact-row__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); }
.contact-row__v {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(24px, 4vw, 52px);
  transition: transform .4s var(--ease-out), color .35s;
}
.contact-row:hover .contact-row__v { transform: translateX(16px); color: var(--vermilion); }
.contact-row b { font-size: 22px; font-weight: 400; justify-self: end; transition: transform .35s var(--ease-out); }
.contact-row:hover b { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 26px var(--pad-x);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-soft);
}
.footer a:hover { color: var(--vermilion); }

/* ============================================================
   弹层
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 600;
  display: grid; place-items: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility 0s .3s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .3s; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 19, 14, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative; z-index: 2;
  width: min(960px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  box-shadow: 14px 14px 0 var(--vermilion);
  transform: translateY(44px) scale(.97);
  transition: transform .45s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  font-size: 16px;
  transition: background .25s, color .25s, transform .3s var(--ease-out);
}
.modal__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.modal__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); border-bottom: 1.5px solid var(--ink); }
.modal__info { padding: clamp(24px, 3vw, 40px); }
.modal__tags {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-soft); margin-bottom: 14px;
}
.modal__info h3 { font-family: var(--f-serif); font-weight: 900; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; }
.modal__info p { margin: 16px 0 28px; color: var(--ink-soft); font-size: 15px; max-width: 64ch; }
.modal__link.is-none { display: none; }

/* 表单弹层 */
.modal__panel--form {
  width: min(560px, 100%);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 14px 14px 0 var(--ink);
}
.modal__panel--form h3 { font-family: var(--f-serif); font-weight: 900; font-size: 28px; margin-bottom: 22px; }
.modal__panel--form label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.modal__panel--form input,
.modal__panel--form select,
.modal__panel--form textarea {
  display: block; width: 100%; margin-top: 7px;
  font: inherit; font-size: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px; color: var(--ink);
  transition: border-color .25s;
}
.modal__panel--form input:focus,
.modal__panel--form select:focus,
.modal__panel--form textarea:focus { outline: none; border-color: var(--vermilion); }
.modal__panel--form textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.form-actions .btn { padding: 13px 24px; font-size: 14px; }

body.modal-open { overflow: hidden; }

/* ============================================================
   编辑模式 UI
   ============================================================ */
body.editing [data-edit] {
  outline: 1.5px dashed rgba(232, 56, 18, .65);
  outline-offset: 4px;
  border-radius: 4px;
  transition: outline-color .2s, background .2s;
}
body.editing [data-edit]:hover { background: rgba(232, 56, 18, .07); }
body.editing [contenteditable="true"]:focus {
  outline: 2px solid var(--vermilion);
  background: rgba(232, 56, 18, .08);
}

.fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 700;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border-radius: 100px; padding: 15px 24px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 14px 34px rgba(23, 19, 14, .28);
  transition: background .3s, transform .3s var(--ease-out);
}
.fab:hover { transform: translateY(-3px); background: var(--vermilion-dark); }
.fab__icon { font-size: 16px; }
body.editing .fab { background: var(--vermilion); }
body.editing .fab__icon::before { content: "✓"; }
body.editing .fab__icon { font-size: 0; }
body.editing .fab__icon::before { font-size: 16px; }

.edit-dock {
  position: fixed; right: 26px; bottom: 86px; z-index: 700;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.edit-dock button {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 100px; padding: 11px 20px;
  font-size: 13px; font-weight: 700;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
}
.edit-dock button:hover { background: var(--ink); color: var(--paper); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--vermilion); }

.toast {
  position: fixed; left: 26px; bottom: 30px; z-index: 800;
  background: var(--ink); color: var(--paper);
  font-size: 13px; padding: 12px 22px; border-radius: 100px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: none; }

/* ---------- 画栏（graphic 组图切换） ---------- */
.gallery { position: relative; display: block; max-height: 70vh; overflow: hidden; }
.gallery__img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; cursor: zoom-in; background: var(--paper-deep); }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(243, 239, 230, .9); border: 1.5px solid var(--ink);
  font-size: 24px; font-weight: 700; z-index: 5;
  display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.gallery__nav:hover { background: var(--vermilion); color: var(--paper); border-color: var(--vermilion); }
.gallery__prev { left: 16px; }
.gallery__next { right: 16px; }
.gallery__count {
  position: absolute; bottom: 14px; right: 16px; z-index: 5;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  background: rgba(23, 19, 14, .7); color: var(--paper);
  padding: 5px 12px; border-radius: 100px;
}

/* ---------- 全屏灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(8, 6, 4, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  cursor: zoom-out; overflow: auto;
}
.lightbox.is-open { opacity: 1; }
.lightbox__inner {
  max-width: 1400px; width: 100%; max-height: 100%;
  padding: 40px; display: flex; align-items: flex-start; justify-content: center;
}
.lightbox__inner img {
  width: 100%; height: auto; max-height: none; object-fit: contain;
  max-width: 1400px;
}
.lightbox__hint {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: rgba(243, 239, 230, .5); pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 860px) {
  .nav__logo-en { display: none; }
  .nav__edit { padding: 8px 14px; font-size: 12px; }
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
  .hero__scroll { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .about__sticker { width: 78px; height: 78px; right: 6px; }
  .t-item { grid-template-columns: 1fr; gap: 12px; }
  .t-item__index { display: none; }
  .contact-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-row b { display: none; }
}
@media (max-width: 680px) {
  .nav { height: 62px; gap: 10px; }
  .nav__links { gap: 9px; }
  .nav__links a { font-size: 13px; }
  .nav__links a i { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .card:nth-child(even) { transform: none; }
  .card:nth-child(even):hover { transform: translate(-3px, -3px); }
  .card__no { font-size: 36px; top: -10px; left: -6px; padding: 4px 10px 6px; }
  .card--quote { min-height: 0; }
  .track-label { display: none; }
  .fab { padding: 13px 18px; }
  .fab__text { display: none; }
  .fab .fab__icon { font-size: 18px; }
  .edit-dock { right: 16px; bottom: 76px; }
  .footer__mid { display: none; }
}

/* ============================================================
   降低动态偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .has-js .preloader { display: none !important; }
  .has-js .reveal, .has-js .hero-reveal { opacity: 1 !important; transform: none !important; }
  .has-js .hero-line__inner { transform: none !important; }
  .marquee__track { animation: none !important; }
}
