/* ============================================================
   《清明上河图》主题个人主页 —— 宋画美学样式
   绢黄纸本 / 墨色文字 / 朱砂点缀 / 大量留白
   ============================================================ */

:root {
  /* 色板 */
  --paper: #f5eedd;          /* 绢黄底 */
  --paper-deep: #ece1c6;     /* 深绢黄，分区 */
  --card: rgba(255, 252, 243, 0.72);
  --card-solid: #fbf6e8;
  --ink: #2e2922;            /* 墨色 */
  --ink-soft: #6f6352;       /* 淡墨 */
  --ink-faint: #9d9078;      /* 远墨 */
  --cinnabar: #9c3a2c;       /* 朱砂 */
  --cinnabar-deep: #833025;
  --line: rgba(46, 41, 34, 0.16);
  --line-strong: rgba(46, 41, 34, 0.28);

  /* 动效曲线 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC",
                "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", sans-serif;

  --container: 1080px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--paper);
  /* 绢纹质感：极淡的暖色渐变 + 纤维感噪声用 CSS 纹理替代 */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(156, 58, 44, 0.035), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(46, 41, 34, 0.04), transparent 55%);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

::selection {
  background: rgba(156, 58, 44, 0.18);
}

/* 页面滚动条：朱砂细条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(156, 58, 44, 0.32);
  border-radius: 6px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: rgba(156, 58, 44, 0.55); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ---------- 通用组件 ---------- */

.section { padding: 96px 0; }
.section-alt {
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(46, 41, 34, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 41, 34, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.section-head { margin-bottom: 40px; }

.kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--cinnabar);
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--cinnabar);
  opacity: 0.55;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 34px);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* 标题末尾的朱砂落款点 */
.section-title::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 14px;
  background: var(--cinnabar);
  border-radius: 1px;
  opacity: 0.85;
  vertical-align: 0.06em;
}

.section-lead {
  max-width: 720px;
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-size: 16.5px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--cinnabar);
  color: #f7efdc;
  border-color: var(--cinnabar);
}
.btn-primary:hover {
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(156, 58, 44, 0.6);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-ghost {
  color: #f5eedd;
  border-color: rgba(245, 238, 221, 0.65);
  background: rgba(46, 37, 27, 0.18);
}
.btn-ghost:hover {
  background: rgba(245, 238, 221, 0.16);
  border-color: #f5eedd;
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

/* ---------- 顶部导航 ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(245, 238, 221, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f5eedd;
  transition: color 0.3s ease;
}
.site-nav.is-scrolled .brand { color: var(--ink); }

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--cinnabar);
  color: #f5eedd;
  font-size: 18px;
  border-radius: 3px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(245, 238, 221, 0.35);
}
.brand-name {
  font-size: 18px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.nav-menu { display: flex; gap: 8px; }
.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0.22em;
  color: rgba(245, 238, 221, 0.92);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.3s ease;
}
.site-nav.is-scrolled .nav-link { color: var(--ink-soft); }
.nav-link:hover { color: #fff; }
.site-nav.is-scrolled .nav-link:hover { color: var(--cinnabar); }
.nav-link.is-active { color: #fff; }
.site-nav.is-scrolled .nav-link.is-active { color: var(--cinnabar); }
/* 下划线：悬停/激活时从中间展开 */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #f5eedd;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.site-nav.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.is-open span { background: var(--ink); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 620px;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(38, 30, 20, 0.62) 0%,
      rgba(38, 30, 20, 0.38) 42%,
      rgba(245, 238, 221, 0.92) 97%,
      var(--paper) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0 24px;
  color: #f7efdc;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.42em;
  margin: 0 0 22px;
  color: rgba(247, 239, 220, 0.88);
  text-indent: 0.42em;
}
.hero-title {
  font-size: clamp(44px, 9vw, 78px);
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-shadow: 0 2px 24px rgba(20, 15, 8, 0.5);
}
/* 名字旁的朱砂小印：延迟「盖章」入场 */
.hero-seal {
  display: inline-block;
  font-size: max(0.2em, 13px);
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
  font-weight: 700;
  color: #f7efdc;
  background: var(--cinnabar);
  padding: 0.42em 0.5em;
  border-radius: 2px;
  margin-left: 0.55em;
  vertical-align: 2.1em;
  box-shadow:
    inset 0 0 0 1px rgba(247, 239, 220, 0.4),
    0 2px 10px rgba(20, 15, 8, 0.35);
  transform: rotate(8deg);
  text-shadow: none;
  animation: seal-stamp 0.55s var(--ease-spring) 1.05s backwards;
}
@keyframes seal-stamp {
  from { opacity: 0; transform: rotate(16deg) scale(2.1); }
  to   { opacity: 1; transform: rotate(8deg) scale(1); }
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(247, 239, 220, 0.86);
  margin: 0 auto 40px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  animation:
    hero-rise 0.8s var(--ease-out) 0.95s backwards,
    hint-bob 2.4s ease-in-out 2s infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* 首屏元素逐层浮现 */
.hero-eyebrow, .hero-title, .hero-sub, .hero-actions {
  animation: hero-rise 0.9s var(--ease-out) backwards;
}
.hero-eyebrow  { animation-delay: 0.15s; }
.hero-title    { animation-delay: 0.3s; }
.hero-sub      { animation-delay: 0.5s; }
.hero-actions  { animation-delay: 0.68s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 关于我 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.about-portrait {
  display: flex;
  justify-content: center;
}
.portrait-ph {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--cinnabar);
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 6px;
  user-select: none;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.portrait-ph:hover {
  transform: rotate(-5deg) scale(1.03);
  box-shadow: 0 16px 34px -18px rgba(46, 37, 27, 0.5);
}
.about-text p { margin: 0 0 18px; }
.about-text strong { color: var(--cinnabar); }

.about-meta {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.about-meta li {
  display: flex;
  gap: 24px;
  padding: 12px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: background-color 0.3s ease;
}
.about-meta li:hover { background: rgba(156, 58, 44, 0.05); }
.meta-key {
  flex: 0 0 48px;
  font-family: var(--font-sans);
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  font-size: 13px;
}
.meta-val { color: var(--ink-soft); }

/* ---------- 作品卡片 ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card, .work-menu {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px 26px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card::before, .work-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  background: var(--cinnabar);
  opacity: 0.85;
  border-radius: 0 0 2px 2px;
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}
.work-card:hover::before, .work-menu:hover::before {
  transform: scaleX(1);
  opacity: 1;
}
.work-card:hover, .work-menu:hover {
  transform: translateY(-6px);
  border-color: rgba(156, 58, 44, 0.4);
  box-shadow: 0 18px 40px -20px rgba(46, 37, 27, 0.5);
}
.work-title {
  font-size: 20px;
  margin: 8px 0 12px;
  letter-spacing: 0.06em;
}
.work-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 20px;
  flex: 1;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.work-tags li {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 12px;
}
.work-link {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
  text-decoration: none;
}
.work-link span {
  display: inline-block;
  transition: transform 0.28s var(--ease-out);
}
.work-link:hover span { transform: translateX(5px); }
.work-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 长卷浏览 ---------- */

.scroll-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 12px 18px;
  margin-bottom: 22px;
  background: rgba(255, 252, 243, 0.5);
}
.scroll-tip svg { color: var(--cinnabar); flex: none; }
.scroll-tip strong { color: var(--cinnabar); }

.scroll-viewer {
  position: relative;
  height: clamp(210px, 34vw, 330px);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #3a3226;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.scroll-viewer::-webkit-scrollbar { display: none; }
.scroll-viewer.is-grabbing { cursor: grabbing; }

/* 左右边缘渐隐，提示还有内容 */
.scroll-viewer::before,
.scroll-viewer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scroll-viewer::before {
  left: 0;
  background: linear-gradient(to right, rgba(46, 37, 27, 0.5), transparent);
}
.scroll-viewer::after {
  right: 0;
  background: linear-gradient(to left, rgba(46, 37, 27, 0.5), transparent);
}
.scroll-viewer.is-at-start::before { opacity: 0; }
.scroll-viewer.is-at-end::after { opacity: 0; }

.scroll-track {
  position: relative;
  height: 100%;
  width: max-content;
}
.scroll-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* 拖拽由容器统一处理 */
}

/* 卷首卷尾标签 */
.scroll-end-label {
  position: absolute;
  top: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(247, 239, 220, 0.9);
  background: rgba(38, 30, 20, 0.55);
  border: 1px solid rgba(247, 239, 220, 0.25);
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.end-left { left: 12px; }
.end-right { right: 12px; }

/* 看点标记 */
.marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 30px 18px;
  cursor: pointer;
  z-index: 4;
}
.marker-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cinnabar);
  border: 2px solid #f7efdc;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.marker-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(156, 58, 44, 0.7);
  animation: marker-pulse 2s ease-out infinite;
}
@keyframes marker-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.marker-label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(247, 239, 220, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 2px 9px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.marker:hover .marker-dot,
.marker.is-active .marker-dot { transform: scale(1.25); }
.marker:hover .marker-label,
.marker.is-active .marker-label {
  background: var(--cinnabar);
  color: #f7efdc;
  border-color: var(--cinnabar);
}

/* 看点切换按钮 */
.spot-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 22px;
}
.spot-tab {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 26px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.spot-tab:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.spot-tab.is-active {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #f7efdc;
}

/* 看点面板 */
.spot-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px;
}
.spot-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  transition: opacity 0.25s ease;
}
.spot-image img.is-swapping { opacity: 0; }
.spot-title {
  font-size: 23px;
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spot-title::before {
  content: "";
  width: 8px;
  height: 22px;
  background: var(--cinnabar);
  border-radius: 1px;
}
.spot-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.spot-panel.is-changing .spot-body { animation: spot-fade 0.35s ease; }
@keyframes spot-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-note {
  margin: 26px auto 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
}

/* ---------- 联系 ---------- */

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: start;
}
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(360px, 100%);
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out),
              box-shadow 0.25s ease;
}
.contact-link:hover {
  border-color: var(--cinnabar);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -20px rgba(46, 37, 27, 0.5);
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}
.contact-value {
  font-size: 18px;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: #26201a;
  color: #b7ab93;
  padding: 34px 0;
  font-family: var(--font-sans);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-inner p { margin: 0; }
.footer-credit {
  font-size: 12px;
  color: #8b8068;
  max-width: 560px;
  text-align: right;
}
.footer-credit a { color: #cfc4ad; }

/* ---------- 滚动入场动画（仅 JS 可用时隐藏初始态） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 组内子元素交错入场（卡片、联系卡等），不影响 hover 过渡 */
html.js .stagger > .reveal-item { opacity: 0; }
html.js .stagger > .reveal-item.is-visible {
  opacity: 1;
  animation: item-rise 0.7s var(--ease-out) both;
}
html.js .stagger > .reveal-item.is-visible:nth-child(2) { animation-delay: 0.12s; }
html.js .stagger > .reveal-item.is-visible:nth-child(3) { animation-delay: 0.24s; }
html.js .stagger > .reveal-item.is-visible:nth-child(4) { animation-delay: 0.36s; }
html.js .stagger > .reveal-item.is-visible:nth-child(5) { animation-delay: 0.48s; }
html.js .stagger > .reveal-item.is-visible:nth-child(n+6) { animation-delay: 0.6s; }
@keyframes item-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { order: -1; }
  .portrait-ph { width: 150px; height: 150px; font-size: 52px; }

  .work-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

  .spot-panel { grid-template-columns: 1fr; gap: 24px; padding: 24px; }

  .footer-credit { text-align: left; }
}

@media (max-width: 680px) {
  .site-nav { padding: 0 20px; }
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(245, 238, 221, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 14px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-link {
    color: var(--ink-soft) !important;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link.is-active { color: var(--cinnabar) !important; }
  .nav-link.is-active::after { display: none; }

  .hero-title { letter-spacing: 0.1em; text-indent: 0.1em; }
  .hero-actions .btn { padding: 11px 24px; }

  .spot-tabs { gap: 8px; }
  .spot-tab { padding: 7px 18px; letter-spacing: 0.14em; text-indent: 0.14em; }

  .scroll-tip { font-size: 12.5px; align-items: flex-start; }
  .footer-inner { font-size: 12px; }
}

/* ---------- 减少动效偏好 ---------- */
@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;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .stagger > .reveal-item { opacity: 1; }
}
