/* ==========================================================================
   一粟 · 张悦 — 个人网站
   设计：极简 / 大量留白 / 低饱和中性色 / 影像主角（参考川内伦子风格）
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg:        #F6F4EF;   /* 米白底 */
  --bg-soft:   #EFECE4;   /* 更浅的灰米 */
  --bg-deep:   #E7E3D8;   /* 卡片底 */
  --ink:       #211F1B;   /* 主文字（暖黑） */
  --ink-soft:  #6E6A61;   /* 次级文字 */
  --ink-faint: #A6A198;   /* 弱文字 */
  --line:      #E0DBD0;   /* 分割线 */
  --accent:    #7C8A97;   /* 强调色（雄安蓝灰） */
  --accent-ink:#54616C;

  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 72px;
  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(124, 138, 151, .25); }

/* ---------- 排版 ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: .02em;
  font-weight: 400;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: .01em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 400;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 2;
  color: var(--ink-soft);
  font-weight: 300;
}

.body-text { color: var(--ink-soft); line-height: 2; }

/* 英文小标签（像川内网站里的英文栏目名） */
.label {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ---------- 布局容器 ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1560px; }

section { padding: clamp(72px, 12vw, 160px) 0; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease), box-shadow .45s var(--ease);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 首页 hero 之上导航透明，滚动后变实底 */
.site-header--solid {
  background: rgba(246, 244, 239, .92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

/* 非首页（白底页）导航默认有底 */
body:not(.is-home) .site-header {
  background: rgba(246, 244, 239, .92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--ink-faint); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a {
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* 移动端汉堡 */
.nav-toggle { display: none; }
.nav-toggle .bar {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform .4s var(--ease), opacity .3s;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,14,.28) 0%, rgba(20,18,14,.05) 42%, rgba(20,18,14,.72) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--gutter) clamp(40px, 8vh, 96px);
  color: #fff;
}
.hero__inner .label { color: rgba(255,255,255,.75); }
.hero__name {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: .04em;
  margin: .3em 0 .15em;
  font-weight: 400;
}
.hero__role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: .42em;
  color: rgba(255,255,255,.92);
  font-weight: 300;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.8);
  font-size: .7rem;
  letter-spacing: .3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 44px;
  background: rgba(255,255,255,.6);
  animation: scrollLine 2.2s var(--ease) 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; }
}

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(40px, 7vw, 72px);
}
.section-head .no {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: .08em;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- 引言 ---------- */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink);
  max-width: 20em;
}

/* ---------- 项目卡片网格 ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.project-card { display: block; }
.project-card__media {
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 4 / 5;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
}
.project-card:hover .project-card__media img {
  transform: scale(1.045);
  opacity: .92;
}
.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  gap: 16px;
}
.project-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .02em;
}
.project-card__sub {
  color: var(--ink-faint);
  font-size: .82rem;
  letter-spacing: .08em;
  text-align: right;
}

/* ---------- 通用图库（瀑布/网格） ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.gallery--2 { grid-template-columns: repeat(2, 1fr); }

.gallery figure { margin: 0; }
.gallery figure img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.gallery figure:hover img { opacity: .86; }
.gallery figcaption {
  font-size: .78rem;
  color: var(--ink-faint);
  margin-top: 10px;
  letter-spacing: .04em;
}

/* 图库瀑布：奇偶列错落，制造留白节奏 */
.gallery--flow figure:nth-child(3n+2) { transform: translateY(40px); }

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-portrait { position: sticky; top: 120px; }
.about-portrait img {
  width: 100%;
  height: auto;
  background: var(--bg-deep);
}
.about-portrait figcaption {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .08em;
}

.fact-block { padding: 0 0 clamp(32px, 5vw, 48px); margin-bottom: clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--line); }
.fact-block:last-child { border-bottom: none; margin-bottom: 0; }
.fact-block .label { display: block; margin-bottom: 18px; }
.fact-block h3 { font-size: 1.35rem; margin-bottom: 14px; }

/* ---------- 列表（文字发表） ---------- */
.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:first-of-type { border-top: 1px solid var(--line); }
.list-item .t { font-size: 1.02rem; line-height: 1.6; }
.list-item .m {
  font-size: .8rem;
  color: var(--ink-faint);
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
}

/* ---------- 时间线（展览） ---------- */
.timeline { position: relative; padding-left: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.tl-item:first-child { border-top: 1px solid var(--line); }
.tl-year { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.tl-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tl-body p { color: var(--ink-soft); font-size: .92rem; }
.tl-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 3px 12px;
  margin-top: 12px;
}

/* ---------- 卡片（证书 / 跨界 / 出版物） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(33,31,27,.28); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.9; }
.card .card-tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

/* ---------- 项目详情页 ---------- */
.project-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 10vw, 120px));
  padding-bottom: clamp(48px, 8vw, 96px);
}
.project-hero .lead { max-width: 40em; margin-top: 28px; }

.project-stats {
  display: flex;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.stat .num small { font-size: .55em; color: var(--ink-faint); }
.stat .cap { font-size: .78rem; color: var(--ink-faint); letter-spacing: .12em; margin-top: 8px; }

.unit-block { margin-bottom: clamp(64px, 10vw, 120px); }
.unit-block__head { margin-bottom: 36px; }
.unit-block__head .label { display: block; margin-bottom: 12px; }
.unit-block__head h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.unit-block__head .keywords { color: var(--ink-faint); margin-top: 8px; letter-spacing: .1em; font-size: .9rem; }
.unit-block__text { max-width: 46em; color: var(--ink-soft); line-height: 2.1; margin-bottom: 40px; font-size: 1.02rem; }

/* 项目页：封面图缩小居中 + 下滑提示 */
.unit-cover { max-width: 960px; margin: 0 auto; }
.scroll-hint--block {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: .72rem;
  letter-spacing: .3em;
}
.scroll-hint--block::after {
  content: "";
  width: 1px; height: 36px;
  background: var(--ink-faint);
  animation: scrollLine 2.2s var(--ease) infinite;
}

/* ---------- 引用 ---------- */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.7;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: clamp(20px, 3vw, 32px);
  max-width: 26em;
}
.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-top: 16px;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16,15,12,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.7);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 30px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: .2em;
  padding: 8px 12px;
  opacity: .7;
  transition: opacity .3s;
}
.lightbox__close:hover { opacity: 1; }

/* 灯箱左右切换按钮 + 计数 */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  width: 64px;
  height: 64px;
  padding: 0;
  opacity: .55;
  transition: opacity .3s;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 210;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  letter-spacing: .2em;
}

/* ---------- 文字链接按钮 ---------- */
.link-more {
  display: inline-block;
  margin-top: 32px;
  font-size: .88rem;
  letter-spacing: .12em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  transition: color .3s, border-color .3s;
}
.link-more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 联系页 ---------- */
.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
  display: inline-block;
  padding-bottom: 6px;
  transition: color .3s, border-color .3s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }

.social-row { display: flex; gap: 28px; flex-wrap: wrap; }
.social-row a {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.social-row a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0;
  color: var(--ink-faint);
  font-size: .8rem;
  letter-spacing: .06em;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand { font-size: 1rem; }

/* ---------- 淡入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery, .gallery--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery--flow figure:nth-child(3n+2) { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; }
  .card-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .list-item { grid-template-columns: 1fr; }
  .list-item .m { text-align: left; white-space: normal; }

  /* 移动端导航 */
  .nav-toggle { display: block; z-index: 130; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { font-size: 1.4rem; font-family: var(--serif); letter-spacing: .1em; }

  /* 汉堡动画 */
  body.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .hero__role { letter-spacing: .22em; }
  .project-card__meta { flex-direction: column; gap: 4px; }
  .project-card__sub { text-align: left; }
  .section-head { gap: 12px; }
}

/* ==========================================================================
   首页 · 白立方（当代艺术 · 纯排版，无影像）
   纯白 / 墨黑 / 朱砂红点睛 / 等宽档案体 / 超大字号与竖排对比
   ========================================================================== */

/* 首页变量：纯黑白 + 等宽字体 + 朱砂 */
body.is-home {
  --bg:        #FAFAF8;
  --bg-soft:   #F2F2EF;
  --bg-deep:   #EAEAE6;
  --ink:       #131313;
  --ink-soft:  #55544F;
  --ink-faint: #9B9A94;
  --line:      #E6E5E0;
  --accent:    #B3382A;   /* 朱砂红 —— 一粟 · 个体 · 温度 */
  --accent-ink:#8F2C21;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

.mono { font-family: var(--mono); }

/* 朱砂点（“一粟”的点睛） */
.brand-dot { color: var(--accent); font-style: normal; }

/* 首页导航：白底始终可见，滚动后变实底 */
body.is-home .site-header { background: transparent; box-shadow: none; }
body.is-home .site-header--solid {
  background: rgba(250,250,248,.88);
  backdrop-filter: saturate(1) blur(12px);
  -webkit-backdrop-filter: saturate(1) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- 首屏 Intro ---------- */
.intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + clamp(24px, 4vw, 48px)) var(--gutter) clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: var(--bg);
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(19,19,19,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19,19,19,.032) 1px, transparent 1px);
  background-size: clamp(48px, 9vw, 140px) clamp(48px, 9vw, 140px);
  pointer-events: none;
}

.intro__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.intro__top .mono {
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.intro__center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 40vw, 34rem);
  line-height: .92;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}

.intro__seal {
  display: inline-block;
  width: .26em;
  height: .26em;
  background: var(--accent);
  border-radius: 50%;
  margin-left: .1em;
  vertical-align: .14em;
  transform: translateY(-.16em);
}

.intro__sub {
  margin-top: clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 30px;
}
.intro__sub .mono {
  font-size: .8rem;
  letter-spacing: .34em;
  color: var(--ink);
}
.intro__role {
  font-size: .95rem;
  letter-spacing: .26em;
  color: var(--ink-soft);
}

.intro__side {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .42em;
  color: var(--ink-faint);
  z-index: 1;
}

.intro__scroll {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: .62rem;
  letter-spacing: .34em;
  color: var(--ink-faint);
  margin-top: 24px;
  text-transform: uppercase;
}
.intro__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 40px;
  background: var(--ink-faint);
  margin: 12px auto 0;
  animation: scrollLine 2.2s var(--ease) infinite;
}

/* ---------- 声明 Statement ---------- */
.statement-block {
  padding: clamp(96px, 16vw, 200px) 0;
  border-top: 1px solid var(--line);
}
.statement-block .container { position: relative; }
.statement__no {
  font-size: .66rem;
  letter-spacing: .22em;
  color: var(--accent);
  display: block;
  margin-bottom: clamp(32px, 6vw, 64px);
}
.statement__text {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink);
  max-width: 16em;
}
.statement__en {
  margin-top: clamp(24px, 4vw, 40px);
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--ink-faint);
  max-width: 44em;
}

/* ---------- 作品目录 Index ---------- */
.index {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}
.index__head {
  display: flex;
  align-items: baseline;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.index__head .mono {
  font-size: .66rem;
  letter-spacing: .26em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.index__list { list-style: none; margin: 0; padding: 0; }
.work-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 40px;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 3.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.work-row__no {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--accent);
}
.work-row__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.work-row__meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ink-faint);
  text-align: right;
  transition: color .35s var(--ease);
}
.work-row__arrow {
  font-size: 1.2rem;
  color: var(--ink);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.work-row:hover { background: var(--ink); padding-left: 24px; padding-right: 24px; }
.work-row:hover .work-row__title { color: #fff; }
.work-row:hover .work-row__meta { color: rgba(255,255,255,.6); }
.work-row:hover .work-row__arrow { color: #fff; transform: translateX(8px); }

.index__more {
  display: inline-block;
  margin-top: clamp(32px, 5vw, 56px);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .3s, border-color .3s;
}
.index__more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 关于摘要 ---------- */
.about-block {
  padding: clamp(96px, 14vw, 180px) 0;
  border-top: 1px solid var(--line);
}
.about-block .container { position: relative; }
.about__no {
  font-size: .66rem;
  letter-spacing: .22em;
  color: var(--accent);
  display: block;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.about-block .lead { max-width: 34em; }
.about-block .link-more { margin-top: 40px; }

/* ---------- 页脚（白底） ---------- */
body.is-home .site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
}
body.is-home .site-footer .brand { color: var(--ink); }
.footer__meta {
  font-size: .64rem;
  letter-spacing: .16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .intro__name { font-size: clamp(3.2rem, 30vw, 12rem); }
  .intro__side { display: none; }
  .intro__sub { flex-direction: column; gap: 10px; }
  .intro__top .mono:last-child { display: none; }
  .work-row { grid-template-columns: 40px 1fr 28px; }
  .work-row__meta { display: none; }
  .footer__meta:last-child { display: none; }
}


/* ==========================================================================
   移动端适配 · 触屏 / 安全区 / 视口高度 / 防横向溢出
   （同一网址：手机自动走窄屏规则，电脑保持现状）
   ========================================================================== */

/* 触屏基础：去掉点击高亮灰块、防横向滚动 */
body {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
a, button, .work-row, .pub, .project-card, .gallery figure img { touch-action: manipulation; }

/* 视口高度用 svh：iOS 地址栏伸缩时首屏不再被顶出一截 */
.intro, .hero { min-height: 100vh; min-height: 100svh; }

@media (max-width: 900px) {
  /* 头部 + 首屏/详情页顶部避开 iPhone 刘海安全区 */
  .site-header {
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  .intro { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(20px, 4vw, 40px)); }
  .project-hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(40px, 8vw, 80px)); }

  /* 汉堡按钮加大触区，并始终盖在菜单层之上 */
  .nav-toggle { padding: 14px 6px; margin-right: -6px; }

  /* 全屏菜单可滚动（防矮屏/横屏溢出）+ 安全区 */
  .nav { overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}

@media (max-width: 720px) {
  /* 区块竖向节奏收紧 */
  section { padding: clamp(56px, 15vw, 96px) 0; }
  .project-hero { padding-bottom: 40px; }

  /* 长文行距在窄屏略收紧，避免段落松散 */
  .lead, .body-text, .unit-block__text { line-height: 1.85; }

  /* 图库竖屏通栏单列，照片更沉浸 */
  .gallery, .gallery--2 { grid-template-columns: 1fr; gap: 20px; }
  .gallery figure figcaption { font-size: .72rem; }

  /* 作品目录行：编号 + 标题 + 箭头，更紧凑 */
  .work-row { grid-template-columns: 32px 1fr 24px; gap: 12px; padding: 20px 0; }
  .work-row__title { font-size: 1.35rem; }

  /* 分隔标题：去掉占位横线，长标签可换行 */
  .section-head { flex-wrap: wrap; gap: 8px 14px; }
  .section-head .rule { display: none; }
  .section-head .label { letter-spacing: .18em; }

  /* 灯箱：图片更大、按钮更好点、贴安全区 */
  .lightbox { padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .lightbox img { max-height: 86vh; max-height: 86svh; }
  .lightbox__nav { width: 48px; height: 48px; font-size: 2.2rem; }
  .lightbox__close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; }

  /* 邮箱长字符串防溢出 */
  .contact-mail { font-size: 1.3rem; word-break: break-all; }

  /* 成果条目：窄屏标题在上、动作右对齐 */
  .pub { align-items: flex-start; }
  .pub__go { padding-top: 2px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .statement__text { font-size: 2rem; }
  .statement-block, .about-block { padding: 72px 0; }
  .project-card__title { font-size: 1.3rem; }
  .stat .num { font-size: 1.7rem; }
}
