/* =========================================================
   郭濠亮 · 个人主页 · 极简纸感
   纯手写 CSS，无框架、无外链依赖
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  color-scheme: light;

  --paper:      #f4f0e6;
  --paper-2:    #ece6d8;
  --paper-3:    #e2dbc9;
  --ink:        #1a1916;
  --ink-2:      #4a463d;
  --ink-3:      #8a8475;
  --line:       rgba(26, 25, 22, .16);
  --line-soft:  rgba(26, 25, 22, .08);
  --vermilion:  #c2452d;
  --vermilion-2:#a83a25;
  --gold:       #b08a3e;
  --card:       #faf7f0;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
           "SimSun", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --shell: min(1180px, calc(100vw - 2 * var(--gap)));
  --gap: clamp(20px, 4.5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="ink"] {
  color-scheme: dark;

  --paper:      #141311;
  --paper-2:    #1c1a17;
  --paper-3:    #26231f;
  --ink:        #f0ead9;
  --ink-2:      #b9b2a0;
  --ink-3:      #7e7768;
  --line:       rgba(240, 234, 217, .18);
  --line-soft:  rgba(240, 234, 217, .09);
  --vermilion:  #e0603f;
  --vermilion-2:#f07a58;
  --gold:       #d3ab63;
  --card:       #1a1815;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, .55vw + 13.4px, 17px);
  line-height: 1.75;
  letter-spacing: .01em;
  transition: background-color .45s var(--ease), color .45s var(--ease);
  overflow-x: hidden;
}

/* 纸张噪点 */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="ink"] .grain { mix-blend-mode: screen; opacity: .16; }

::selection { background: var(--vermilion); color: #fff8ee; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; color: var(--vermilion); }
.muted { color: var(--ink-3); }

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .78em 1.35em;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .88rem;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
}
.btn-ink:hover { box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }

.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: .55em 1.05em; font-size: .8rem; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px var(--gap);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  transition: border-color .3s, background-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--vermilion);
  color: #fff6ea;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  padding-top: 2px;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: .18em;
}
.brand-text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: .56rem;
  letter-spacing: .28em;
  color: var(--ink-3);
}

.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }

.nav a {
  position: relative;
  font-size: .84rem;
  letter-spacing: .1em;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.topbar-tools { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(18deg); }

.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-moon { display: none; }
[data-theme="ink"] .icon-sun { display: none; }
[data-theme="ink"] .icon-moon { display: block; }

/* ---------- 通用区块 ---------- */
.section {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 18px;
  margin-bottom: clamp(28px, 4.4vw, 52px);
}
.section-no {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--vermilion);
  line-height: 1.9;
}
.section-head h2 {
  display: flex;
  align-items: baseline;
  gap: .55em;
  flex-wrap: wrap;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: .06em;
}
.section-head h2 .en {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-note {
  grid-column: 2;
  margin: 0;
  font-size: .88rem;
  color: var(--ink-3);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 92px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-bg-word {
  position: absolute;
  top: -6vw; right: -3vw;
  font-family: var(--serif);
  font-size: clamp(300px, 46vw, 640px);
  line-height: 1;
  color: var(--ink);
  opacity: .035;
  pointer-events: none;
  user-select: none;
  transform: rotate(-4deg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  width: var(--shell);
  margin-inline: auto;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 0 0 rgba(194, 69, 45, .5);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(194, 69, 45, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(194, 69, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 69, 45, 0); }
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: .1em;
  margin: 0 0 26px;
  font-size: clamp(3.4rem, 9.6vw, 7.4rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}
.name-cn { display: block; }

.name-en {
  font-family: var(--mono);
  font-size: clamp(.62rem, 1.1vw, .82rem);
  font-weight: 400;
  letter-spacing: .52em;
  color: var(--ink-3);
  padding-left: .35em;
}

.hero-tagline {
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.9vw, 1.38rem);
  line-height: 1.62;
  color: var(--ink);
}

.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--ink-2);
  background: transparent;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.hero-flag:hover {
  border-color: var(--vermilion);
  background: var(--card);
  transform: translateX(3px);
}
.flag-mark {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--vermilion);
  color: #fff3e8;
  font-size: .58rem;
}
.flag-arrow { color: var(--vermilion); transition: transform .3s var(--ease); }
.hero-flag:hover .flag-arrow { transform: translate(2px, -2px); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid var(--line-soft);
}
.hero-meta li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-meta .k {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--ink-3);
}
.hero-meta .v { font-size: .86rem; }
.v-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: .5em;
  border-radius: 50%;
  background: #4a8a5e;
  vertical-align: .08em;
}

/* 照片 */
.hero-figure { margin: 0; position: relative; max-width: 352px; justify-self: end; }

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(1.4deg);
  box-shadow: 0 30px 60px -34px rgba(26, 25, 22, .55), 0 2px 0 rgba(255,255,255,.4) inset;
  transition: transform .7s var(--ease);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
  z-index: 2;
}
.photo-frame:hover { transform: rotate(0deg) translateY(-4px); }
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
}
.photo-frame.is-empty img { display: none; }

.photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--paper-2);
  text-align: center;
}
.photo-frame.is-empty .photo-fallback { display: flex; }
.fallback-glyph {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: var(--ink-3);
  opacity: .5;
}
.fallback-note {
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1.8;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.fallback-note code {
  font-family: var(--mono);
  background: var(--paper-3);
  padding: 1px 5px;
  border-radius: 2px;
}

.hero-figure figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: right;
}

/* 印章 */
.stamp {
  position: absolute;
  left: -18px; bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 52px; height: 74px;
  padding: 6px 0;
  background: var(--vermilion);
  color: #fff2e4;
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: .04em;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px -14px rgba(194, 69, 45, .9);
}

/* 跑马灯 */
.ticker {
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--serif);
  font-size: .88rem;
  letter-spacing: .2em;
  color: var(--ink-2);
  animation: marquee 34s linear infinite;
}
.ticker-track .sep { color: var(--vermilion); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
  line-height: 1.55;
  color: var(--ink);
}
.lead::before {
  content: "";
  display: block;
  width: 42px; height: 2px;
  margin-bottom: 22px;
  background: var(--vermilion);
}

.about-body { font-size: 1rem; color: var(--ink-2); }
.about-body p { max-width: 54ch; }
.about-body strong { color: var(--ink); }

blockquote {
  margin: 30px 0 0;
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--vermilion);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}
blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-style: normal;
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--ink-3);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.facts > div {
  padding: 20px 18px;
  background: var(--paper);
}
.facts dt {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.facts dd { margin: 0; font-size: .88rem; }

/* ---------- MOODS · 拍立得 ---------- */
.polaroids {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr);
  align-items: start;
  gap: clamp(20px, 3.4vw, 44px);
}

.polaroid {
  position: relative;
  margin: 0;
  padding: 14px 14px 0;
  background: #fbf8f1;
  border: 1px solid rgba(26, 25, 22, .08);
  border-radius: 2px;
  box-shadow: 0 18px 40px -26px rgba(26, 25, 22, .55), 0 1px 0 rgba(255, 255, 255, .8) inset;
  transform: rotate(-2.2deg);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
[data-theme="ink"] .polaroid {
  background: #f3eee2;
  border-color: rgba(0, 0, 0, .12);
}
.polaroid--alt { transform: rotate(1.8deg) translateY(26px); }

.polaroid:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.015);
  box-shadow: 0 30px 60px -30px rgba(26, 25, 22, .6);
}
.polaroid--alt:hover { transform: rotate(0deg) translateY(20px) scale(1.015); }

.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02);
  background: #e9e3d6;
}
.polaroid--alt img { aspect-ratio: 62 / 100; }

.polaroid figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 4px 18px;
  font-family: var(--serif);
  color: #2a2620;
}
.polaroid figcaption strong {
  font-size: .98rem;
  letter-spacing: .04em;
  font-weight: 600;
}
.polaroid figcaption span {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .02em;
  color: #6d6658;
}

.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 86px;
  height: 24px;
  background: rgba(214, 197, 156, .65);
  border-left: 1px dashed rgba(255, 255, 255, .5);
  border-right: 1px dashed rgba(255, 255, 255, .5);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  backdrop-filter: blur(1px);
}

.polaroids-note {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(.94rem, 1.5vw, 1.06rem);
  line-height: 1.8;
  color: var(--ink-2);
  padding-left: clamp(0px, 2vw, 26px);
  border-left: 1px solid var(--line);
}

/* ---------- ROBOMASTER · 飞镖手记 ---------- */
.rm-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 4vw, 52px);
  background: #16130f;
  color: #efe8d8;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 3px;
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, .9);
}
[data-theme="ink"] .rm-card { background: #1b1814; border-color: var(--line); }

.rm-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a49a86;
}
.rm-badge {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 3px;
  background: #b8362a;
  color: #fff3e8;
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.rm-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: .03em;
  color: #f6efdf;
  margin: 0 0 20px;
}

.rm-body p {
  max-width: 46ch;
  font-size: .95rem;
  line-height: 1.85;
  color: #bdb4a2;
}
.rm-body strong { color: #f2c9b3; }

.rm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  background: rgba(239, 232, 216, .12);
  border: 1px solid rgba(239, 232, 216, .12);
}
.rm-facts > div { padding: 14px 16px; background: #16130f; }
[data-theme="ink"] .rm-facts > div { background: #1b1814; }
.rm-facts dt {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .16em;
  color: #8a8172;
  margin-bottom: 4px;
}
.rm-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: .92rem;
  color: #efe8d8;
}

.rm-notes {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(239, 232, 216, .12);
}
.rm-notes li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(239, 232, 216, .12);
  font-size: .86rem;
  line-height: 1.7;
  color: #b9b0a0;
}
.rm-year {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: #d9755c;
  padding-top: .2em;
  white-space: nowrap;
}
.rm-text { display: block; min-width: 0; }

.rm-src {
  margin: 0;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .04em;
  line-height: 1.9;
  color: #7f7768;
}
.rm-src a {
  color: #c9a86a;
  border-bottom: 1px solid rgba(201, 168, 106, .35);
  transition: color .25s, border-color .25s;
}
.rm-src a:hover { color: #f0d9a8; border-bottom-color: #f0d9a8; }

.rm-media {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* 跳到相册的入口 */
.rm-gallery-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 232, 216, .18);
  border-radius: 2px;
  background: rgba(239, 232, 216, .04);
  color: #efe8d8;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease);
}
.rm-gallery-link:hover {
  border-color: rgba(201, 168, 106, .65);
  background: rgba(239, 232, 216, .08);
  transform: translateY(-2px);
}
.rm-gallery-count {
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1;
  color: #c9a86a;
}
.rm-gallery-text { display: flex; flex-direction: column; gap: 2px; }
.rm-gallery-text strong {
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #f6efdf;
}
.rm-gallery-text em {
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .02em;
  color: #a49a86;
}
.rm-gallery-arrow { margin-left: auto; color: #c9a86a; transition: transform .35s var(--ease); }
.rm-gallery-link:hover .rm-gallery-arrow { transform: translate(3px, -3px); }

.rm-photo { margin: 0; position: relative; }
.rm-photo img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(239, 232, 216, .16);
  filter: saturate(.95) contrast(1.03);
}
.rm-photo--wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.rm-photo figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .06em;
  color: #8a8172;
}

.rm-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.rm-media-row .rm-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.rm-photo--mine img { aspect-ratio: 4 / 3; object-fit: cover; }

.rm-photo-fallback {
  display: none;
  position: relative;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(239, 232, 216, .3);
  background: rgba(239, 232, 216, .03);
  text-align: center;
  font-family: var(--mono);
  font-size: .58rem;
  line-height: 1.9;
  letter-spacing: .04em;
  color: #8a8172;
}
.rm-photo-fallback code { color: #c9a86a; }
.rm-photo-fallback .fallback-glyph {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: #8a8172;
  opacity: .75;
}
.rm-photo.is-empty .rm-photo-fallback { display: flex; }

/* ---------- WORK ---------- */
.work-list { margin: 0; padding: 0; list-style: none; }

.work-item { border-top: 1px solid var(--line); }
.work-item:last-child { border-bottom: 1px solid var(--line); }

.work-link {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(22px, 3.4vw, 36px) clamp(4px, 1.4vw, 18px);
  transition: background-color .4s var(--ease), padding-left .4s var(--ease);
}
a.work-link:hover { background: var(--card); padding-left: clamp(12px, 2.4vw, 30px); }

.work-no {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ink-3);
  padding-top: .5em;
}

.work-main h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .7em;
  font-size: clamp(1.14rem, 2.1vw, 1.5rem);
  letter-spacing: .03em;
}
.work-year {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--vermilion);
}
.work-main p {
  max-width: 62ch;
  margin: 8px 0 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  color: var(--ink-3);
}

.work-arrow {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-3);
  padding-top: .25em;
  transition: transform .4s var(--ease), color .3s;
}
a.work-link:hover .work-arrow {
  transform: translate(3px, -3px);
  color: var(--vermilion);
}

.work-item--soon .work-main h3 { color: var(--ink-3); }
.work-item--soon .work-main p { color: var(--ink-3); }

/* ---------- JOURNEY ---------- */
.timeline {
  margin: 0; padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 clamp(26px, 4vw, 42px) clamp(18px, 3vw, 34px);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--vermilion);
  transition: background-color .3s;
}
.timeline li:hover::before { background: var(--vermilion); }
.timeline li:last-child { padding-bottom: 0; }

.tl-year {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--ink-3);
  padding-top: .28em;
}
.tl-body h3 { font-size: 1.06rem; letter-spacing: .02em; }
.tl-body p { margin: 5px 0 0; font-size: .9rem; color: var(--ink-2); }

/* ---------- NOTES ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.note {
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
.note:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 20px 40px -30px rgba(26,25,22,.6);
}
.note-date {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--vermilion);
  margin-bottom: 12px;
}
.note h3 { font-size: 1.06rem; }
.note p:last-child {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--ink-2);
}

/* ---------- CONTACT ---------- */
.contact { border-top: 0; }
.contact-inner { max-width: 880px; }

.contact-title {
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  line-height: 1.22;
  letter-spacing: .03em;
  margin: 10px 0 clamp(34px, 5vw, 56px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background-color .3s;
}
.contact-row:hover { padding-left: 16px; background: var(--card); }
.cr-k {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.cr-v {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  letter-spacing: .02em;
}
.cr-a {
  color: var(--ink-3);
  transition: transform .35s var(--ease), color .3s;
}
.contact-row:hover .cr-a { transform: translate(3px, -3px); color: var(--vermilion); }

.contact-foot {
  margin-top: 30px;
  font-size: .86rem;
  color: var(--ink-3);
}

/* ---------- 页脚 ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: var(--shell);
  margin-inline: auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.footer p { margin: 0; }
.back-top { transition: color .25s; }
.back-top:hover { color: var(--vermilion); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .85s var(--ease) var(--d, 0s), transform .85s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .dot { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
  .hero-figure { max-width: 380px; justify-self: start; }
  .hero-figure figcaption { text-align: left; }
  .stamp { left: auto; right: -12px; bottom: 40px; }

  .about-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { grid-template-columns: 1fr; }

  .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .polaroids-note {
    grid-column: 1 / -1;
    margin-top: 26px;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 22px;
  }
  .polaroid--alt { transform: rotate(1.8deg) translateY(14px); }

  .rm-card { grid-template-columns: 1fr; }
  .rm-media { display: flex; flex-direction: column; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero-meta li { padding-right: 18px; margin-right: 18px; }
  .work-link { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .contact-row { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .timeline li { grid-template-columns: 64px minmax(0, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; }
  .topbar .btn-sm { display: none; }

  .polaroids { grid-template-columns: 1fr; max-width: 340px; }
  .polaroid--alt { transform: rotate(1.2deg) translateY(0); margin-top: 10px; }
  .polaroid--alt:hover { transform: rotate(0deg) translateY(-4px) scale(1.015); }

  .rm-card { padding: 22px 18px; }
  .rm-media-row { grid-template-columns: 1fr; gap: 18px; }
  .rm-facts > div { padding: 12px 13px; }
}

@media (max-width: 420px) {
  .hero-name { font-size: clamp(2.9rem, 15vw, 4rem); }
  .name-en { letter-spacing: .34em; }
}
