/* ============ 基础 ============ */
:root {
  --paper: #ffffff;
  --paper-2: #faf9f6;
  --ink: #171613;
  --ink-2: #4b4841;
  --muted: #8b877e;
  --line: #e7e4dd;
  --line-soft: #f0ede7;
  --accent: #24397a;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

::selection { background: var(--ink); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.is-hidden { display: none !important; }

/* ============ 导航 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  transition: color 0.35s ease;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.6vw, 30px);
  font-size: 13.5px;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-progress {
  height: 1px;
  width: 0;
  background: currentColor;
  opacity: 0.4;
  color: #fff;
  transition: width 0.1s linear;
}

/* 滚动后：白底深字 */
.nav.is-solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-solid .brand { color: var(--ink); }
.nav.is-solid .nav-links a { color: var(--ink-2); }
.nav.is-solid .nav-links a:hover,
.nav.is-solid .nav-links a.is-active { color: var(--ink); }
.nav.is-solid .nav-progress { color: var(--ink); }
.nav.is-solid .auth-btn { color: var(--ink); border-color: var(--line); }
.nav.is-solid .auth-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.nav.is-solid .auth-user { color: var(--ink-2); }

/* 登录区 */
.auth-area { display: flex; align-items: center; gap: 10px; }
.auth-btn {
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.auth-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.auth-user {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #fff;
  transition: color 0.35s ease;
  white-space: nowrap;
}
.auth-user b { font-weight: 600; max-width: 8em; overflow: hidden; text-overflow: ellipsis; }
.auth-user .sep { opacity: 0.35; }
.auth-user button {
  font-family: inherit;
  font-size: 12.5px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
}
.auth-user button:hover { opacity: 1; }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  background: #12141a;
  color: #fff;
  overflow: hidden;
}
.hero-band {
  position: relative;
  height: clamp(300px, 48vh, 540px);
  overflow: hidden;
}
.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(0.94) contrast(1.02);
  transform: scale(1.01);
}
.hero-band-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 12, 18, 0.62) 0%, rgba(10, 12, 18, 0.06) 22%, rgba(18, 20, 26, 0.5) 46%, rgba(18, 20, 26, 0.82) 66%, rgba(18, 20, 26, 0.96) 86%, #12141a 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: clamp(-120px, -9vw, -70px);
  padding-bottom: clamp(44px, 7vh, 76px);
}
.hero-eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.hero-title {
  margin: 0;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.hero-sub {
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.76);
  max-width: 38em;
}
.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  margin: clamp(24px, 4vh, 36px) 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 480px;
}
.hero-stats .stat { display: flex; align-items: baseline; gap: 7px; }
.hero-stats b {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vh, 34px);
}
.hero-credit {
  position: absolute;
  right: var(--pad);
  bottom: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.34);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 28px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #fff; color: #000; }
.btn-full { width: 100%; }
.btn-wechat {
  background: #07c160;
  border-color: #07c160;
  color: #fff;
}
.btn-wechat:hover { background: #06ad56; border-color: #06ad56; }
.btn-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ============ 区块通用 ============ */
.section {
  padding-top: clamp(64px, 9vw, 118px);
  padding-bottom: clamp(64px, 9vw, 118px);
  border-top: 1px solid var(--line);
}
.label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section h2 {
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head { margin-bottom: clamp(30px, 4.5vw, 56px); }
.head-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ============ 照片网格（按高度分配的瀑布流） ============ */
.photo-grid {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.photo-grid .mcol {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.photo-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
}
.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease), filter 0.6s ease;
  filter: saturate(0.96) contrast(1.01);
}
.photo-grid figure:hover img { transform: scale(1.025); filter: saturate(1.02); }
.photo-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 22, 19, 0.06);
  pointer-events: none;
}
.photo-grid--tight { gap: 10px; }
.photo-grid--tight .mcol { gap: 10px; }

/* ============ 傻卵照片 ============ */
.silly { background: var(--paper-2); }
.lock {
  border: 1px dashed #d6d2c8;
  background: #fff;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 4vw, 56px);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.lock h2 { margin-bottom: 18px; }
.lock-desc {
  margin: 0 auto 30px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 34em;
}
.silly-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.silly-arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.silly-btn:hover { background: var(--ink); color: #fff; }
.silly-btn:hover .silly-arrow { transform: translateX(4px); }
.lock-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.silly-body { animation: fadeUp 0.6s var(--ease) both; }
.silly-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.silly-bar .label { margin: 0; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ============ 三年 ============ */
.years-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}
.years-left { position: sticky; top: 110px; }
.years-note {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}
.year-list { list-style: none; margin: 0; padding: 0; }
.year-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.year-list li:first-child { border-top: 0; padding-top: 0; }
.year-mark span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.year-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.year-body p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 36em;
}
.year-empty { color: var(--muted) !important; font-style: italic; font-size: 13.5px !important; }
.year-tags {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em;
  color: var(--muted) !important;
  margin: 0 !important;
}

/* ============ 海报条 ============ */
.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px var(--pad) 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  cursor: grab;
}
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.strip::-webkit-scrollbar { height: 3px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.strip figure {
  flex: 0 0 auto;
  height: clamp(240px, 32vw, 420px);
  margin: 0;
  scroll-snap-align: start;
  background: var(--paper-2);
  overflow: hidden;
  cursor: zoom-in;
}
.strip img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}
.strip figure:hover img { transform: scale(1.02); }

/* ============ 留言 ============ */
.board { background: var(--paper-2); }
.board-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}
.board-note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}
.form {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(22px, 3.2vw, 36px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.field .opt { color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  padding: 11px 13px;
  outline: none;
  border-radius: 2px;
  resize: vertical;
  line-height: 1.7;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #b6b1a7; }
.field input:focus,
.field textarea:focus { background: #fff; border-color: var(--ink); }
.field.has-error input,
.field.has-error textarea { border-color: #b4462f; }
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b4462f;
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.5em;
}
.form-status.is-ok { color: #2f7d4f; }
.form-status.is-err { color: #b4462f; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.footer a:hover { color: var(--ink); }

/* ============ 图片查看器 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.95);
  padding: 56px 68px;
}
.lightbox.is-open { display: flex; }
.lb-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  animation: fadeIn 0.3s ease;
}
.lb-stage figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 18px; right: 20px; font-size: 15px; }
.lb-prev { left: 14px; font-size: 26px; }
.lb-next { right: 14px; font-size: 26px; }

/* ============ 登录弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 18, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: clamp(26px, 4vw, 38px);
  animation: pop 0.35s var(--ease) both;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease;
}
.modal-close:hover { color: var(--ink); }
.modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal-sub {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-btn {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.code-btn:hover:not(:disabled) { background: var(--line-soft); border-color: var(--muted); }
.code-btn:disabled { color: var(--muted); cursor: default; }
.modal-status {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #b4462f;
  min-height: 1.2em;
  line-height: 1.6;
}
.modal-status.is-ok { color: #2f7d4f; }
.or {
  position: relative;
  text-align: center;
  margin: 20px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.or::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.or span { position: relative; background: #fff; padding: 0 12px; }
.modal-foot {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* ============ 导航右侧：编辑 / 头像 ============ */
.nav-right { display: flex; align-items: center; gap: 10px; }
.edit-btn {
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.edit-btn:hover { background: rgba(255, 255, 255, 0.24); }
.nav.is-solid .edit-btn { color: var(--ink); background: transparent; border-color: var(--line); }
.nav.is-solid .edit-btn:hover { background: var(--paper-2); border-color: var(--ink); }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}
.nav.is-solid .avatar { border-color: var(--line); }
.auth-name {
  font-family: inherit;
  font-size: 12.5px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px dashed currentColor;
  opacity: 0.9;
}
.auth-name:hover { opacity: 1; }

/* ============ 按年份的合照 ============ */
.album { padding-top: clamp(26px, 4vw, 42px); }
.album + .album {
  margin-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line);
}
.album-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.album-year {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.album-title { font-size: 14.5px; color: var(--ink-2); }
.album-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.album-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 4px;
}

/* ============ 资料弹窗 ============ */
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 26px;
  color: var(--muted);
  flex: 0 0 auto;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* ============ 内容编辑器 ============ */
.modal--wide { padding: 16px; }
.editor-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: pop 0.35s var(--ease) both;
}
.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid var(--line);
}
.editor-head .modal-title { margin-bottom: 6px; }
.editor-head .modal-sub { margin: 0; }
.editor-head .modal-close { position: static; flex: 0 0 auto; }
.editor-body { padding: 6px 26px 18px; overflow-y: auto; flex: 1 1 auto; }
.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.editor-foot-right { display: flex; align-items: center; gap: 14px; }
.editor-status {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.editor-status.is-err { color: #b4462f; }
.editor-status.is-ok { color: #2f7d4f; }

.yblock { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.yblock:last-child { border-bottom: 0; }
.yblock-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.yblock-top .year-inp { width: 96px; flex: 0 0 auto; }
.yblock-top .del-btn { margin-left: auto; }
.year-unit {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: -4px;
}
.del-btn {
  font-family: var(--mono);
  font-size: 11px;
  color: #9d6a5e;
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  white-space: nowrap;
}
.del-btn:hover { color: #b4462f; text-decoration: underline; }

.inp {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 11px;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
}
.inp:focus { border-color: var(--ink); background: #fff; }
textarea.inp { min-height: 76px; resize: vertical; line-height: 1.75; }
.ylabels { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.ylabels span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.photo-picker { display: none; margin-top: 10px; }
.photo-picker.is-open { display: block; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.picker-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picker-item.is-on { outline: 2px solid var(--ink); outline-offset: -2px; }
.picker-item.is-on::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 5px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

/* ============ 设计形象 ============ */
.id-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  margin-bottom: clamp(30px, 5vw, 58px);
}
.id-hero {
  margin: 0;
  background: var(--paper-2);
  padding: clamp(18px, 3vw, 42px);
  cursor: zoom-in;
  overflow: hidden;
}
.id-hero img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.9s var(--ease);
}
.id-hero:hover img { transform: scale(1.02); }
.id-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.id-copy p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 34em;
}
.id-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.id-facts li {
  display: flex;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--ink-2);
}
.id-facts span {
  flex: 0 0 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 2px;
}

.id-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 16px);
}
.id-grid--two { grid-template-columns: repeat(2, 1fr); }
.id-grid + .id-grid { margin-top: clamp(10px, 1.6vw, 16px); }
.id-grid--two .id-card img { aspect-ratio: 1 / 1; }
.id-card {
  margin: 0;
  background: var(--paper-2);
  padding: clamp(14px, 2vw, 22px);
  cursor: zoom-in;
  overflow: hidden;
}
.id-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.9s var(--ease);
}
.id-card:hover img { transform: scale(1.03); }
.id-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.id-card figcaption b { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.id-card.is-dark { background: #000; }
.id-card.is-dark img { mix-blend-mode: normal; }
.id-card.is-dark figcaption { color: rgba(255, 255, 255, 0.5); }
.id-card.is-dark figcaption b { color: rgba(255, 255, 255, 0.92); }

/* ============ 历史文档 ============ */
.doc-list { border-top: 1px solid var(--line); }
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.doc-aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.doc-card {
  flex: 1 1 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: baseline;
  text-align: left;
  padding: 18px 2px;
  border: 0;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease, padding 0.35s var(--ease);
}
.doc-card:hover { background: var(--paper-2); padding-left: 12px; padding-right: 12px; }
.doc-year {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.doc-main { display: block; min-width: 0; }
.doc-main b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 5px;
}
.doc-excerpt {
  display: block;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.doc-kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.doc-dl {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 12px;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.doc-dl:hover { border-color: var(--ink); background: var(--paper-2); }

/* 阅读器 */
.reader-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: pop 0.35s var(--ease) both;
}
.reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--line);
}
.reader-head .modal-close { position: static; flex: 0 0 auto; }
.reader-meta {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.reader-head .modal-title { font-size: 21px; line-height: 1.45; }
.reader-body {
  padding: 22px 30px 30px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-2);
}
.reader-body p { margin: 0 0 14px; }
.reader-body p:first-child { color: var(--ink); font-weight: 600; }
.reader-body p:empty { display: none; }
.reader-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.reader-hint { font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* ============ 审核队列 ============ */
.badge-count {
  display: inline-block;
  margin-left: 5px;
  background: #b4462f;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 100px;
  vertical-align: 1px;
}
.rev-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.rev-item:last-child { border-bottom: 0; }
.rev-main { min-width: 0; }
.rev-main b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.rev-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.8;
  color: var(--muted);
}
.rev-summary { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin-top: 6px; }
.rev-summary .rev-t {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.rev-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.mini {
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.mini:hover { border-color: var(--ink); color: var(--ink); }
.mini.ok:hover { border-color: #1f6b3d; color: #1f6b3d; background: #f3f8f4; }
.mini.no:hover { border-color: #b4462f; color: #b4462f; background: #fdf5f3; }
.mini:disabled { opacity: 0.5; cursor: default; }
.rev-empty { padding: 26px 0; font-size: 13.5px; color: var(--muted); }

/* ============ 开场介绍 ============ */
.modal.intro { z-index: 120; }
.intro-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  padding: clamp(28px, 4.2vw, 46px) clamp(24px, 4vw, 48px) clamp(22px, 3vw, 32px);
  animation: pop 0.45s var(--ease) both;
  max-height: 90vh;
  overflow-y: auto;
}
.intro-card .label { margin-bottom: 16px; }
.intro-title {
  margin: 0 0 22px;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.intro-body p {
  margin: 0 0 15px;
  font-size: 14.8px;
  line-height: 2.05;
  color: var(--ink-2);
  text-wrap: pretty;
}
.intro-body p:first-child { color: var(--ink); }
.intro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.intro-sign {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--muted);
}
.intro-hint {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
}

/* ============ 版块编辑按钮 / 悬浮建议 ============ */
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.label-row .label { margin-bottom: 0; }
.label-row--center { justify-content: center; gap: 12px; }

.sec-edit {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  padding: 4px 11px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.sec-edit:hover { color: var(--ink); border-color: var(--ink); background: var(--paper-2); }
.sec-actions { display: inline-flex; gap: 8px; flex: 0 0 auto; }

.block-notes:empty { display: none; }
.block-notes {
  display: grid;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 30px);
}
.block-note {
  border-left: 2px solid var(--line);
  padding: 8px 0 8px 16px;
}
.block-note b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.block-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.block-note .bn-meta {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fab {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 12px 32px -14px rgba(23, 22, 19, 0.6);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}
.fab:hover { transform: translateY(-2px); background: #000; }
.fab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0603e;
  display: block;
}

/* ============ 开场介绍版权声明 ============ */
.intro-legal {
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px dashed #ecd9d5;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.95;
  color: #c0392b;
}
.intro-legal a {
  color: inherit;
  border-bottom: 1px solid rgba(192, 57, 43, 0.45);
  word-break: break-all;
}
.intro-legal a:hover { border-bottom-color: currentColor; }

/* ============ 动效 ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .years-grid,
  .board-grid,
  .id-feature { grid-template-columns: 1fr; }
  .id-grid,
  .id-grid--two { grid-template-columns: repeat(2, 1fr); }
  .id-hero { max-width: 420px; }
  .years-left { position: static; }
  .hero-inner { margin-top: -40px; }
  .lightbox { padding: 46px 12px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-close,
  .lb-nav { width: 38px; height: 38px; }
}

@media (max-width: 560px) {
  .year-list li { grid-template-columns: 1fr; gap: 6px; }
  .hero-credit { display: none; }
  .modal-card { max-width: 100%; }
  .photo-grid,
  .photo-grid--tight { gap: 8px; }
  .photo-grid .mcol,
  .photo-grid--tight .mcol { gap: 8px; }
  .doc-card { grid-template-columns: 1fr; gap: 6px; }
  .doc-row { flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
  .doc-aside { flex-direction: row; align-items: center; gap: 10px; }
  .doc-kind { justify-self: start; }
  .reader-head { padding: 20px 20px 14px; }
  .reader-body { padding: 18px 20px 28px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
