/* ============================================================
   ORANGETHINK — 手艺人品牌官网
   ============================================================ */

:root {
  --clay: #c2551f;          /* 柿子橙 / terracotta */
  --clay-deep: #8f3a12;
  --ink: #26201b;           /* 深墨 */
  --paper: #f3ede4;         /* 宣纸 */
  --paper-dim: #e9e1d4;
  --indigo: #2c4a6e;        /* 蓝染 */
  --sand: #cbb99a;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--clay); color: var(--paper); }

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

/* ---------- 噪点 ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- 预加载器 ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-word {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 5.4vw, 72px);
  letter-spacing: .16em;
  white-space: nowrap;
  overflow: hidden; /* 遮罩：字符从下方升起 */
  padding: 0 .1em;
}
.preloader-word .ch { display: inline-block; }
.preloader-orange { color: var(--clay); }
.preloader-sub {
  margin-top: 20px;
  font-size: 12px; letter-spacing: .28em;
  opacity: 0;
  color: rgba(243, 237, 228, .55);
}
.preloader-percent {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(24px, 6vh, 60px);
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(90px, 15vw, 220px);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 237, 228, .38);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.preloader-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(243, 237, 228, .12);
}
.preloader-bar i {
  position: absolute; inset: 0;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 自定义光标 ---------- */
.cursor, .cursor-follower {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 8px; height: 8px;
  background: var(--clay);
}
.cursor-follower {
  width: 42px; height: 42px;
  border: 1px solid rgba(194, 85, 31, .5);
  transition: width .3s, height .3s, background .3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: .1em; color: var(--paper);
}
.cursor-follower.is-hover { width: 64px; height: 64px; background: rgba(194, 85, 31, .12); }
.cursor-follower.is-view,
.cursor-follower.is-drag { width: 80px; height: 80px; background: var(--clay); }
.cursor-follower.is-view::after { content: "VIEW"; }
.cursor-follower.is-drag::after { content: "DRAG"; }
@media (hover: none) { .cursor, .cursor-follower { display: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 1000;
  mix-blend-mode: normal;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(243, 237, 228, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(38, 32, 27, .08);
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700; letter-spacing: .18em; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.logo-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e87a42, var(--clay) 70%);
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-size: 13px; letter-spacing: .12em;
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--clay);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 18px; }

.sound-toggle {
  display: flex; align-items: flex-end; gap: 3px;
  height: 16px; padding: 2px;
  opacity: .45; transition: opacity .3s;
}
.sound-toggle.is-on { opacity: 1; }
.sound-bar {
  width: 2px; background: var(--ink); height: 6px;
  transition: height .2s;
}
.sound-toggle.is-on .sound-bar { animation: sound-wave 1s ease-in-out infinite; background: var(--clay); }
.sound-toggle.is-on .sound-bar:nth-child(2) { animation-delay: .15s; }
.sound-toggle.is-on .sound-bar:nth-child(3) { animation-delay: .3s; }
.sound-toggle.is-on .sound-bar:nth-child(4) { animation-delay: .45s; }
@keyframes sound-wave { 0%, 100% { height: 5px; } 50% { height: 15px; } }

.lang-toggle {
  font-size: 12px; letter-spacing: .15em;
  border: 1px solid rgba(38, 32, 27, .3);
  border-radius: 999px; padding: 6px 14px;
  transition: all .3s;
}
.lang-toggle:hover { background: var(--ink); color: var(--paper); }

.menu-toggle { display: none; flex-direction: column; gap: 6px; padding: 6px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .35s, opacity .35s; }
.menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8vh;
  clip-path: circle(0 at calc(100% - 44px) 36px);
  transition: clip-path .6s cubic-bezier(.76, 0, .24, 1);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); pointer-events: auto; }
.mobile-menu a {
  color: var(--paper); font-family: var(--serif);
  font-size: clamp(28px, 7vw, 40px); letter-spacing: .1em;
}

/* ---------- 通用 section ---------- */
.section { padding: clamp(90px, 14vh, 160px) clamp(20px, 6vw, 90px); position: relative; }
.section-head {
  display: flex; align-items: baseline; gap: 22px;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.section-index {
  font-size: 13px; letter-spacing: .3em; color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 5.4vw, 60px);
  font-weight: 700; letter-spacing: .06em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #efe7da 0%, var(--paper) 60%, var(--paper) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content {
  position: relative; z-index: 2;
  padding: 0 clamp(20px, 7vw, 110px);
  pointer-events: none;
}
.hero-kicker {
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: .5em; color: var(--clay-deep);
  margin-bottom: 3vh;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 12.5vw, 170px);
  line-height: .98; letter-spacing: .02em;
  font-weight: 700;
  pointer-events: auto; /* 悬停联动 3D 陶瓶加速 */
}
.hero-line { display: block; }
.hero-line-think { color: var(--clay); margin-left: clamp(24px, 8vw, 130px); }
.hero-sub {
  margin-top: 4vh;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .2em; color: rgba(38, 32, 27, .72);
  /* 英文文案较长，限宽换行避免延伸到右侧陶瓶下 */
  max-width: 32ch;
  line-height: 1.8;
}
.hero-scroll-hint {
  position: absolute; bottom: 34px; left: clamp(20px, 7vw, 110px);
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .3em; color: rgba(38, 32, 27, .5);
  z-index: 2;
}
.scroll-line {
  width: 60px; height: 1px; background: rgba(38, 32, 27, .3);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--clay);
  animation: scroll-line 2s cubic-bezier(.76, 0, .24, 1) infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- 理念 ---------- */
.philosophy { background: var(--paper); }
.philosophy-lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 30px);
  line-height: 1.9; max-width: 30em;
  margin-bottom: clamp(56px, 9vh, 110px);
}
.philosophy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
}
.philosophy-item {
  border-top: 1px solid rgba(38, 32, 27, .18);
  padding-top: 26px;
}
.philosophy-num {
  font-family: var(--serif); font-size: 14px; color: var(--clay);
  display: block; margin-bottom: 16px;
}
.philosophy-item h3 {
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 14px; letter-spacing: .1em;
}
.philosophy-item p { font-size: 14.5px; line-height: 1.9; color: rgba(38, 32, 27, .68); }

.philosophy-marquee {
  margin-top: clamp(70px, 11vh, 130px);
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(38, 32, 27, .12);
  border-bottom: 1px solid rgba(38, 32, 27, .12);
  padding: 18px 0;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: .18em; color: rgba(38, 32, 27, .35);
  padding-right: 40px;
}

/* ---------- 关于品牌 ---------- */
.about-body {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-text p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 2.1; color: rgba(38, 32, 27, .82);
  margin-bottom: 2em;
}
.about-stats {
  display: flex; flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  border-left: 1px solid rgba(194, 85, 31, .35);
  padding-left: clamp(24px, 3vw, 48px);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  color: var(--clay); line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat-label {
  display: block; margin-top: 8px;
  font-size: 13px; letter-spacing: .16em;
  color: rgba(38, 32, 27, .55);
}

/* ---------- 手艺人横向滚动 ---------- */
/* 深色区块统一做大圆角，弱化与浅色区块之间的硬切边 */
.craftsmen, .film, .universe, .next-craftsman {
  border-radius: clamp(18px, 3vw, 40px);
}
.detail-hero {
  border-radius: 0 0 clamp(18px, 3vw, 40px) clamp(18px, 3vw, 40px);
}
.craftsmen { background: var(--ink); color: var(--paper); }
.craftsmen-pin {
  height: 100svh; min-height: 600px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 0 clamp(20px, 6vw, 90px);
}
.craftsmen-head { margin-bottom: clamp(30px, 5vh, 60px); }
.craftsmen .section-title { color: var(--paper); }
.craftsmen-track {
  display: flex; gap: clamp(22px, 3vw, 46px);
  width: max-content;
  will-change: transform;
}
.craftsman-card {
  width: clamp(300px, 34vw, 460px);
  flex-shrink: 0;
}
.card-link { display: block; }
.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 4px;
  background: #33291f;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.craftsman-card:hover .card-media img { transform: scale(1.12); }
.card-body { padding: 22px 4px 0; }
.card-craft {
  font-size: 11px; letter-spacing: .4em; color: var(--clay);
  display: block; margin-bottom: 10px;
}
.card-name {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: .12em; margin-bottom: 12px;
}
.card-quote {
  font-size: 14px; line-height: 1.85; color: rgba(243, 237, 228, .6);
  margin-bottom: 16px;
}
.card-more {
  font-size: 12px; letter-spacing: .18em; color: rgba(243, 237, 228, .85);
  border-bottom: 1px solid rgba(194, 85, 31, .6); padding-bottom: 3px;
}
.craftsman-card-cta {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(243, 237, 228, .25); border-radius: 4px;
  aspect-ratio: 4 / 5; align-self: flex-start;
}
.card-cta-inner { text-align: center; padding: 30px; }
.card-cta-inner p { color: rgba(243, 237, 228, .55); line-height: 2; margin-bottom: 26px; font-size: 14px; }
.card-cta-mark {
  font-family: var(--serif); font-size: 64px; color: var(--clay);
  display: inline-block;
}
.hscroll-progress {
  margin-top: clamp(24px, 4vh, 44px);
  height: 2px; width: min(320px, 40vw);
  background: rgba(243, 237, 228, .18);
}
.hscroll-progress span {
  display: block; height: 100%;
  background: var(--clay);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- 画廊 ---------- */
.gallery { background: var(--paper-dim); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: 4px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3;
}
.gallery-item-tall img { aspect-ratio: 3 / 4; }
/* 视差图片由 GSAP 全权接管 transform，禁用 CSS 过渡避免冲突 */
img[data-parallax] { transition: none; will-change: transform; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  font-size: 12.5px; letter-spacing: .12em; color: var(--paper);
  background: linear-gradient(transparent, rgba(38, 32, 27, .75));
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s, transform .45s;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- 影像 ---------- */
.film { background: var(--ink); color: var(--paper); }
.film .section-title { color: var(--paper); }
.film-sub {
  color: rgba(243, 237, 228, .55); letter-spacing: .14em; font-size: 14px;
  margin-top: -4vh; margin-bottom: 6vh;
}
.film-frame {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 4px;
  cursor: pointer;
}
.film-frame img { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%;
  background: rgba(194, 85, 31, .92); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.film-play svg { margin-left: 4px; }
.film-frame:hover .film-play { background: var(--clay-deep); }
.film-toast {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  background: rgba(38, 32, 27, .88); color: var(--paper);
  font-size: 13px; letter-spacing: .14em;
  padding: 12px 26px; border-radius: 999px;
  white-space: nowrap;
  visibility: hidden; opacity: 0;
}

/* ---------- 手记 ---------- */
.journal-list { display: flex; flex-direction: column; }
.journal-item {
  display: grid;
  /* 日期 | 标题+摘要 | 阅读全文 */
  grid-template-columns: 110px 1fr auto;
  gap: clamp(16px, 3vw, 50px);
  align-items: baseline;
  padding: clamp(26px, 4vh, 40px) 4px;
  border-top: 1px solid rgba(38, 32, 27, .16);
  transition: background .35s, padding-left .35s;
}
.journal-item:last-child { border-bottom: 1px solid rgba(38, 32, 27, .16); }
.journal-item:hover { background: rgba(194, 85, 31, .05); padding-left: 18px; }
.journal-date {
  font-size: 12px; letter-spacing: .2em; color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.journal-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: .08em; margin-bottom: 10px;
  transition: color .3s;
}
.journal-item:hover .journal-name { color: var(--clay); }
.journal-excerpt {
  font-size: 14px; line-height: 1.9;
  color: rgba(38, 32, 27, .62);
  max-width: 40em;
}
.journal-more {
  font-size: 12px; letter-spacing: .16em;
  color: rgba(38, 32, 27, .55);
  white-space: nowrap;
}

/* ---------- 手记文章页 ---------- */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 9vh) clamp(20px, 5vw, 40px) 10vh;
}
.post-date {
  font-size: 12px; letter-spacing: .3em; color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: .06em; line-height: 1.3;
  margin: 3vh 0 7vh;
}
.post-body p {
  font-size: 16.5px; line-height: 2.3; letter-spacing: .04em;
  color: rgba(38, 32, 27, .84);
  margin-bottom: 2.2em;
}
.post-body p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.2em; color: var(--clay);
  float: left; line-height: 1; padding-right: 12px;
}
.post-next {
  display: block;
  margin: 8vh 0 5vh;
  padding: 28px 30px;
  border: 1px solid rgba(38, 32, 27, .18); border-radius: 4px;
  transition: border-color .3s, background .3s;
}
.post-next:hover { border-color: var(--clay); background: rgba(194, 85, 31, .05); }
.post-next-label {
  display: block; font-size: 11px; letter-spacing: .3em;
  color: var(--clay); margin-bottom: 10px;
}
.post-next-title {
  font-family: var(--serif); font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: .08em;
}

/* ---------- 技艺星球 ---------- */
.universe { background: var(--ink); color: var(--paper); text-align: center; }
.universe .section-head { justify-content: center; }
.universe .section-title { color: var(--paper); }
.universe-sub {
  color: rgba(243, 237, 228, .5); letter-spacing: .2em; font-size: 14px;
  margin-bottom: 5vh; margin-top: -3vh;
}
.tagcloud-wrap { display: flex; justify-content: center; }
.tagcloud {
  font-family: var(--serif) !important;
  font-size: clamp(15px, 1.9vw, 22px);
  color: rgba(243, 237, 228, .8);
  width: var(--tc-size, 640px);
  height: var(--tc-size, 640px);
  position: relative;
}
.tagcloud--item { padding: 4px; letter-spacing: .15em; transition: color .3s; cursor: pointer; }
.tagcloud--item:hover { color: var(--clay) !important; }
.tag-def {
  min-height: 2em;
  margin-top: 4vh;
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: .08em;
  color: rgba(243, 237, 228, .78);
}

/* ---------- 联系 ---------- */
.contact { text-align: center; }
.contact .section-head { justify-content: center; }
.contact-lead {
  color: rgba(38, 32, 27, .65); line-height: 2; letter-spacing: .06em;
  max-width: 34em; margin: -3vh auto 6vh;
}
.contact-mail {
  font-family: var(--serif);
  font-size: clamp(22px, 4.2vw, 46px);
  letter-spacing: .05em;
  border-bottom: 2px solid var(--clay);
  padding-bottom: 6px;
  transition: color .3s;
}
.contact-mail:hover { color: var(--clay); }
.contact-socials {
  margin-top: 7vh;
  display: flex; justify-content: center; gap: clamp(24px, 4vw, 48px);
}
.contact-socials a {
  font-size: 13px; letter-spacing: .2em;
  opacity: .6; transition: opacity .3s;
}
.contact-socials a:hover { opacity: 1; color: var(--clay); }

/* ---------- 页脚 ---------- */
.footer {
  padding: 0 clamp(20px, 6vw, 90px) 28px;
  overflow: hidden;
}
.footer-mark {
  text-align: center;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(42px, 9.6vw, 150px);
  line-height: 1.05; letter-spacing: .02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(38, 32, 27, .22);
  padding: clamp(40px, 8vh, 90px) 0 clamp(20px, 4vh, 50px);
  user-select: none;
  transition: -webkit-text-stroke-color .5s;
}
.footer-mark:hover { -webkit-text-stroke-color: var(--clay); }
.footer-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(38, 32, 27, .12);
  font-size: 12px; letter-spacing: .14em; color: rgba(38, 32, 27, .5);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(38, 32, 27, .93);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(86vw, 1000px); max-height: 76vh;
  border-radius: 4px;
}
.lightbox-caption {
  color: var(--paper); margin-top: 20px;
  font-size: 13px; letter-spacing: .18em;
}
.lightbox-meta {
  color: rgba(243, 237, 228, .55); margin-top: 8px;
  font-size: 12px; letter-spacing: .14em;
}
.lightbox-flip-clone {
  position: absolute; top: 0; left: 0; margin: 0;
  z-index: 6000; pointer-events: none;
  border-radius: 4px; object-fit: cover;
}
.lightbox-close {
  position: absolute; top: 22px; right: 34px;
  color: var(--paper); font-size: 42px; font-weight: 200;
  line-height: 1;
}

/* ---------- 详情页 ---------- */
.detail-hero {
  padding: calc(var(--nav-h) + 8vh) clamp(20px, 7vw, 110px) 8vh;
  background: var(--ink); color: var(--paper);
}
.detail-craft { font-size: 12px; letter-spacing: .5em; color: var(--clay); }
.detail-name {
  font-family: var(--serif);
  font-size: clamp(44px, 9vw, 110px);
  letter-spacing: .08em; margin: 3vh 0;
}
.detail-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(243, 237, 228, .65); line-height: 1.9; max-width: 28em;
}
.detail-body {
  padding: clamp(60px, 10vh, 120px) clamp(20px, 7vw, 110px);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.detail-portrait { border-radius: 4px; overflow: hidden; position: sticky; top: calc(var(--nav-h) + 20px); }
.detail-story p {
  font-size: 16px; line-height: 2.2; letter-spacing: .04em;
  color: rgba(38, 32, 27, .82);
  margin-bottom: 2.2em;
}
.detail-story p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.2em; color: var(--clay);
  float: left; line-height: 1; padding-right: 12px;
}
.detail-back {
  display: inline-block; margin-top: 20px;
  font-size: 13px; letter-spacing: .2em;
  border-bottom: 1px solid var(--clay); padding-bottom: 4px;
}

.detail-sub {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: .1em;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.detail-sub-line {
  width: clamp(30px, 5vw, 70px); height: 1px;
  background: var(--clay); flex-shrink: 0;
}
.detail-works-section { padding-top: 0; }
.detail-works {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}
.detail-work-media {
  overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 3; background: var(--paper-dim);
}
.detail-work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.detail-work:hover .detail-work-media img { transform: scale(1.07); }
.detail-work figcaption { padding: 16px 2px 0; }
.detail-work figcaption strong {
  display: block;
  font-family: var(--serif); font-size: 17px;
  letter-spacing: .08em; margin-bottom: 6px;
}
.detail-work figcaption span {
  font-size: 12.5px; letter-spacing: .08em;
  color: rgba(38, 32, 27, .55);
}

.detail-process-section {
  background: var(--paper-dim);
}
.detail-process { max-width: 46em; }
.detail-process-name {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--clay); letter-spacing: .2em;
  margin-bottom: 5vh;
}
.detail-process p {
  font-size: 16px; line-height: 2.2; letter-spacing: .04em;
  color: rgba(38, 32, 27, .82);
  margin-bottom: 2em;
}

.next-craftsman {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 8vh, 80px) clamp(20px, 7vw, 110px);
  overflow: hidden; position: relative;
}
.next-label {
  display: block;
  font-size: 12px; letter-spacing: .4em; color: var(--clay);
  margin-bottom: 18px;
}
.next-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 84px);
  letter-spacing: .1em; line-height: 1.15;
  transition: color .35s;
}
.next-craftsman:hover .next-name { color: var(--clay); }
.next-craft {
  display: block; margin-top: 12px;
  font-size: 13px; letter-spacing: .3em; color: rgba(243, 237, 228, .55);
}
.next-portrait {
  width: clamp(120px, 18vw, 220px);
  aspect-ratio: 4 / 5;
  border-radius: 4px; overflow: hidden; flex-shrink: 0;
}
.next-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.next-craftsman:hover .next-portrait img { transform: scale(1.14); }

/* ---------- 动效初始态（JS 可用时由 GSAP 接管） ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(46px); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-portrait { position: static; }
  .about-body { grid-template-columns: 1fr; }
  .about-stats {
    flex-direction: row; flex-wrap: wrap;
    border-left: none; padding-left: 0;
    border-top: 1px solid rgba(194, 85, 31, .35);
    padding-top: 28px; gap: 32px;
  }
  .detail-works { grid-template-columns: 1fr; }
  .journal-item { grid-template-columns: 1fr; gap: 10px; }
  .journal-more { display: none; }
  .film-play { width: 64px; height: 64px; }
  /* 瓶子在上半屏，文字压到下半屏，互不遮挡 */
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 16vh; }
  /* 词云球面词条会超出容器投影范围，留足上下间距避免压到标题 */
  .tagcloud-wrap { margin-top: clamp(50px, 9vh, 90px); margin-bottom: 30px; }
  .universe-sub { margin-top: 0; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .craftsman-card { width: 78vw; }
  .next-craftsman { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
