/* ============================================================
   钟国斌 作品集 — 高级编辑式暗色风
   调性：暖调近黑底 + 香槟金 + 灰绿；克制、留白、精致
   ============================================================ */

:root {
  --bg: #0e0d0b;
  --bg-2: #131210;
  --card-bg: #16140f;
  --line: #2a2722;
  --line-soft: #211e19;
  --gold: #c2a878;
  --gold-bright: #d8bd8e;
  --sage: #9caf88;
  --text: #ece7df;
  --text-dim: #9b958a;
  --text-faint: #6b655c;

  --serif: "Fraunces", "Noto Serif SC", serif;
  --sans: "Inter", "Noto Sans SC", system-ui, sans-serif;

  --maxw: 1240px;
  --pad: 32px;
  --gap: 32px;
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo */
  --ease-soft: cubic-bezier(0.4, 0.1, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(194,168,120,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(156,175,136,0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0e0d0b; }

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

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- 导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(14,13,11,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  position: relative;
  padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
/* 左上角 Logo（已靠左，仅 ZGB STUDIO） */
.nav-logo {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--text); white-space: nowrap;
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--gold); }
.logo-text {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--text);
}
.logo-accent { color: var(--gold); }
/* 中间菜单：绝对居中，保证正对页面中线 */
.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 38px;
}
.nav-link { display: flex; flex-direction: column; align-items: center; line-height: 1.15; gap: 2px; }
.nav-link .nav-en { font-size: 14px; letter-spacing: 0.06em; color: var(--text); transition: color 0.3s; }
.nav-link .nav-zh { font-size: 10px; letter-spacing: 0.16em; color: var(--text-faint); }
.nav-link:hover .nav-en { color: var(--gold); }
.nav-link.is-active .nav-en { color: var(--gold); }
/* 右侧操作区：搜索 + 联系图标 */
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; background: none; border: 0;
  color: var(--text); cursor: pointer; transition: color 0.3s, transform 0.3s;
}
.nav-icon:hover { color: var(--gold); transform: translateY(-1px); }
.nav-icon svg { width: 19px; height: 19px; display: block; }

/* 搜索浮层 */
.search-bar {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(14,13,11,0.92); backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease);
}
.search-bar.open { max-height: 120px; opacity: 1; }
.search-inner {
  padding: 20px var(--pad);
  display: flex; align-items: center; gap: 14px; color: var(--text-dim);
}
.search-inner > svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.search-inner input {
  flex: 1; background: none; border: 0; outline: none;
  font-family: var(--sans); font-size: 18px; letter-spacing: 0.04em;
  color: var(--text); border-bottom: 1px solid var(--line); padding: 8px 2px;
}
.search-inner input::placeholder { color: var(--text-faint); }
.search-close {
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer;
  transition: 0.3s; flex: none; line-height: 1;
}
.search-close:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* ---------- Hero（单色封面 + 编辑式高级风 + GSAP 动效；不贴项目图） ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 160px var(--pad) 110px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(130% 90% at 50% -10%, #1a1712 0%, transparent 55%),
    linear-gradient(180deg, #0e0d0b 0%, #13110d 55%, #0e0d0b 100%);
}
/* 鼠标追光：跟随指针的柔光，营造空间纵深 */
.cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 32%),
    rgba(200,178,140,0.12), rgba(156,175,136,0.04) 38%, transparent 62%);
  transition: background 0.18s ease-out;
}
main { position: relative; z-index: 1; }

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 30px;
}
.hero-title { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 0.98; letter-spacing: 0.01em; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line { display: block; }
.hero-title .line { font-size: clamp(38px, 6.2vw, 88px); }
.hero-name-en {
  font-size: clamp(22px, 3.4vw, 46px); font-weight: 300;
  letter-spacing: 0.26em; color: var(--gold-bright); margin-top: 12px;
}
.hero-tagline {
  display: flex; align-items: center; gap: 16px; margin-top: 40px;
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 25px); color: var(--text);
}
.hero-tagline i { width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.hero-poetic { margin-top: 18px; color: var(--text-dim); font-size: clamp(15px, 1.6vw, 18px); letter-spacing: 0.05em; }
.hero-name-zh { margin-top: 14px; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0.28em; color: var(--gold-bright); font-family: var(--sans); font-weight: 300; }
.hero-role {
  margin-top: 16px; font-family: var(--sans); font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.18em; color: var(--text); font-weight: 400;
}
.hero-role::before { content: "求职意向 · "; color: var(--gold); font-size: 0.82em; letter-spacing: 0.22em; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 32px; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; border: 1px solid var(--gold); cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-gold { background: var(--gold); color: #0e0d0b; font-weight: 500; }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn span { font-size: 0.82em; letter-spacing: 0.12em; }
.btn-gold span { color: rgba(14,13,11,0.55); }
.btn-ghost span { color: var(--text-faint); }

.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden;
  border-top: 1px solid var(--line-soft); padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: inline-block; white-space: nowrap; font-family: var(--serif); font-size: 14px; letter-spacing: 0.18em; color: var(--text-faint); will-change: transform; }
.marquee-track b { color: var(--gold); font-weight: 400; margin: 0 2px; }

.scroll-hint { position: absolute; bottom: 84px; left: var(--pad); z-index: 3; display: flex; align-items: center; gap: 14px; }
.scroll-hint-text { font-size: 10px; letter-spacing: 0.3em; color: var(--text-faint); }
.scroll-hint-line { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint-line::after { content: ""; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--gold); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { left: -100%; } 60%,100% { left: 100%; } }

@media (max-width: 760px) {
  .hero-aside { display: none; }
  .hero { padding: 130px 22px 110px; }
  .hero-marquee { padding: 12px 0; }
  .marquee-track { font-size: 12px; }
  .scroll-hint { bottom: 98px; }
}

/* ---------- 设计排版精选封面（支持真实图） ---------- */
.layout-cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); }
.layout-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.layout-card:hover .layout-cover img { transform: scale(1.05); }
.layout-project { font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; margin-top: 6px; }

/* ---------- Section 通用 ---------- */
.section { padding: clamp(80px, 11vw, 150px) var(--pad); }
.section-head { margin-bottom: 60px; }
.section-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.section-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05; color: var(--text); display: flex; align-items: baseline; gap: 18px;
}
.sec-num {
  font-size: 0.42em; font-family: var(--serif); color: transparent;
  -webkit-text-stroke: 1px var(--gold); letter-spacing: 0;
}
.section-desc { color: var(--text-dim); font-size: 15px; margin-top: 14px; letter-spacing: 0.04em; }

/* ---------- 筛选 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  background: none; border: 1px solid var(--line); color: var(--text-dim);
  padding: 9px 20px; font-size: 12px; letter-spacing: 0.1em; cursor: pointer;
  font-family: var(--sans); transition: all 0.35s var(--ease); border-radius: 40px;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-faint); }
.filter-btn.is-active { background: var(--gold); color: #0e0d0b; border-color: var(--gold); font-weight: 500; }

/* ---------- 项目网格（一行 3–4 个） ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (min-width: 1500px) { .project-grid { grid-template-columns: repeat(4, 1fr); } }
.project-card {
  background: var(--card-bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.45);
}
.card-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover .card-cover img { transform: scale(1.05); }
.card-index {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--serif); font-size: 22px; color: var(--gold);
  letter-spacing: 0.05em; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.card-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,7,6,0.55), rgba(8,7,6,0.18));
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.project-card:hover .card-cover::after { opacity: 1; }
.card-hover-title {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 22px;
  font-size: clamp(13px, 1.15vw, 17px); letter-spacing: 0.22em; line-height: 1.5;
  text-transform: uppercase; color: var(--text);
  opacity: 0; transition: opacity 0.45s var(--ease), letter-spacing 0.45s var(--ease);
}
.project-card:hover .card-hover-title { opacity: 1; letter-spacing: 0.3em; }
.card-body { padding: 24px 26px 26px; }
.card-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.project-title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 6px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; }
.project-title-zh { font-size: 13px; letter-spacing: 0.08em; color: var(--text-faint); }
.project-meta { display: flex; gap: 16px; color: var(--text-dim); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 14px; }
.project-desc { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px; letter-spacing: 0.06em; color: var(--sage);
  border: 1px solid color-mix(in srgb, var(--sage) 35%, transparent);
  padding: 4px 12px; border-radius: 30px;
}

/* ---------- 占位板（图片待替换时用） ---------- */
.placeholder-cover, .ph-plate {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 22%, rgba(194,168,120,0.10), transparent 60%),
    linear-gradient(135deg, #16140f, #1d1b15);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); overflow: hidden;
}
.placeholder-cover::after, .ph-plate::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  pointer-events: none;
}
.ph-text, .ph-plate span {
  text-align: center; font-size: 13px; letter-spacing: 0.12em; color: var(--text-dim); line-height: 1.6;
}
.ph-text small, .ph-plate small { display: block; font-size: 10px; letter-spacing: 0.24em; color: var(--text-faint); margin-top: 6px; text-transform: uppercase; }

/* ---------- 设计排版精选（色彩材质 / 氛围意向 两大类别） ---------- */
.layout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.layout-cat { border: 1px solid var(--line-soft); background: var(--card-bg); overflow: hidden; cursor: pointer; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.layout-cat:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.layout-cat-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.layout-cat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.layout-cat:hover .layout-cat-cover img { transform: scale(1.05); }
.layout-cat-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,7,6,0.6), transparent 50%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.layout-cat:hover .layout-cat-cover::after { opacity: 1; }
.layout-cat-num {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--serif); font-size: 20px; color: var(--gold);
  letter-spacing: 0.05em; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.layout-cat-hover {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text);
  opacity: 0; transition: opacity 0.45s var(--ease), letter-spacing 0.45s var(--ease);
}
.layout-cat:hover .layout-cat-hover { opacity: 1; letter-spacing: 0.34em; }
.layout-cat-body { padding: 24px 26px 26px; }
.layout-cat-title { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.layout-cat-zh { font-size: 13px; letter-spacing: 0.08em; color: var(--text-faint); }

/* ---------- 手作 · 摄影 ---------- */
.handwork-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.handwork-card { border: 1px solid var(--line-soft); background: var(--card-bg); overflow: hidden; }
.hw-cover { aspect-ratio: 3 / 4; }
.placeholder-block {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--hw-color, #1a1814), #100f0c);
  position: relative;
}
.placeholder-block::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(194,168,120,0.18); }
.placeholder-text { text-align: center; font-size: 14px; letter-spacing: 0.1em; color: var(--text-dim); line-height: 1.6; position: relative; z-index: 1; }
.placeholder-text small { display: block; font-size: 10px; letter-spacing: 0.22em; color: var(--text-faint); margin-top: 8px; text-transform: uppercase; }
.hw-body { padding: 18px 20px 22px; display: flex; align-items: baseline; justify-content: space-between; }
.hw-title { font-family: var(--serif); font-size: 17px; color: var(--text); }
.hw-state { font-size: 11px; color: var(--text-faint); letter-spacing: 0.16em; }

/* ---------- 关于 ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.about-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.about-big-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }
.about-num { font-family: var(--serif); font-size: 30px; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.about-heading { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); font-weight: 400; color: var(--text); }
.about-pullquote { font-family: var(--serif); font-size: 26px; line-height: 1.5; color: var(--text-dim); border-left: 2px solid var(--gold); padding-left: 22px; }
.about-portrait { aspect-ratio: 4 / 5; max-width: 300px; margin: 0 auto 26px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.about-portrait-img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 15px; }
.about-intro { font-size: 18px !important; color: var(--text) !important; }
.gold-text { color: var(--gold); font-weight: 500; }
.about-note { font-style: italic; color: var(--text-faint) !important; }

/* ---------- 简历 ---------- */
.timeline { border-top: 1px solid var(--line); }
.resume-item { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 38px 0; border-bottom: 1px solid var(--line-soft); }
.resume-year { font-family: var(--serif); font-size: 20px; color: var(--gold); letter-spacing: 0.04em; }
.resume-title { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.resume-desc { color: var(--text-dim); font-size: 14px; line-height: 1.8; }
.resume-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.resume-list li {
  position: relative; padding-left: 18px;
  color: var(--text-dim); font-size: 14px; line-height: 1.85;
}
.resume-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.75;
}
.resume-list li strong { font-weight: 500; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { padding: 70px var(--pad) 50px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tagline { color: var(--text-dim); margin-top: 14px; letter-spacing: 0.08em; font-size: 14px; }
.footer-title { font-family: var(--serif); font-size: 22px; color: var(--text); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { color: var(--text-dim); margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: var(--gold); }
.footer-links a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 18px; margin-top: 22px; }
.social-link { font-size: 12px; letter-spacing: 0.14em; color: var(--text-dim); border-bottom: 1px solid transparent; transition: 0.3s; }
.social-link:hover { color: var(--gold); border-color: var(--gold); }
.footer-bottom { text-align: center; padding: 24px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 12px; letter-spacing: 0.1em; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,5,4,0.78); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.5s var(--ease); }
.modal.open .modal-backdrop { opacity: 1; }
.modal-dialog {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--bg-2);
  opacity: 0; transform: scale(0.985);
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal.open .modal-dialog { opacity: 1; transform: scale(1); }
.modal-close {
  position: absolute; top: 22px; right: 26px; z-index: 5; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); color: var(--text); font-size: 24px; cursor: pointer;
  border-radius: 50%; transition: 0.3s; line-height: 1;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }
.modal-scroll { overflow-y: auto; padding: 84px clamp(28px, 5vw, 80px) 96px; height: 100%; }

.modal-head { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 8px; }
.modal-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.modal-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); font-weight: 500; color: var(--text); line-height: 1.1; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.modal-subtitle { font-size: 14px; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 18px; }
.modal-meta { display: flex; gap: 22px; color: var(--text-dim); font-size: 14px; letter-spacing: 0.05em; margin-bottom: 18px; }
.modal-meta span { color: var(--gold); }
.modal-info-block { padding-top: 30px; }
.modal-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; margin-bottom: 26px; }
.modal-info-grid > div { border-top: 1px solid var(--line); padding-top: 12px; }
.modal-info-grid span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.modal-info-grid b { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--text); }
.modal-materials { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-materials .tag { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }

.modal-block { padding: 34px 0; border-bottom: 1px solid var(--line-soft); }
.modal-block-title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; }
.modal-block-title::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block; }
.aux-tag { font-size: 11px; letter-spacing: 0.14em; color: var(--text-faint); font-weight: 300; font-family: var(--sans); border: 1px solid var(--line); padding: 2px 10px; border-radius: 30px; margin-left: 6px; }
.modal-block-text { color: var(--text-dim); font-size: 15px; line-height: 1.9; }
.modal-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modal-gallery .modal-img { cursor: zoom-in; overflow: hidden; border: 1px solid var(--line-soft); }
.modal-gallery .modal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.modal-gallery .modal-img:hover img { transform: scale(1.04); }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.lightbox.open { visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,5,4,0.94); }
.lightbox-stage { position: relative; z-index: 2; max-width: 88vw; max-height: 86vh; text-align: center; }
.lightbox-img { max-width: 88vw; max-height: 80vh; object-fit: contain; border: 1px solid var(--line); }
.lightbox-caption { color: var(--text-dim); font-size: 13px; letter-spacing: 0.08em; margin-top: 14px; }
.lightbox-nav, .lightbox-close { position: absolute; z-index: 3; background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: 0.3s; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 28px; border-radius: 50%; }
.lightbox-prev { left: 28px; } .lightbox-next { right: 28px; }
.lightbox-close { top: 26px; right: 30px; width: 44px; height: 44px; font-size: 22px; border-radius: 50%; }
.lightbox-nav:hover, .lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 材料版 Material Board ---------- */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.material-grid .modal-img {
  position: relative; cursor: zoom-in; overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--card-bg);
  aspect-ratio: 4 / 3;
}
.material-grid .modal-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.material-grid .modal-img:hover img { transform: scale(1.05); }
.mat-num {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 11px; letter-spacing: 0.2em; color: var(--gold-bright);
  background: rgba(14, 13, 11, 0.66); padding: 3px 9px;
  pointer-events: none;
}

/* ---------- 手作 Handwork ---------- */
.hw-single { display: block; }
.hw-cover-wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 36px; align-items: center; margin-bottom: 30px;
}
.hw-cover-wrap .modal-img {
  cursor: zoom-in; overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--card-bg);
}
.hw-cover-wrap .modal-img img {
  width: 100%; display: block; transition: transform 0.7s var(--ease);
}
.hw-cover-wrap .modal-img:hover img { transform: scale(1.03); }
.hw-eyebrow {
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hw-main-title {
  font-family: var(--serif); font-weight: 400; line-height: 1.1;
  font-size: clamp(28px, 3.4vw, 46px); color: var(--text);
}
.hw-main-zh {
  margin-top: 10px; letter-spacing: 0.3em; color: var(--gold-bright);
  font-size: clamp(15px, 1.7vw, 19px);
}
.hw-desc {
  margin-top: 18px; color: var(--text-dim); line-height: 1.9;
  font-size: clamp(14px, 1.5vw, 16px);
}
.hw-count {
  margin-top: 16px; font-size: 12px; letter-spacing: 0.2em; color: var(--text-faint);
}
.hw-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hw-gallery .modal-img {
  cursor: zoom-in; overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--card-bg);
  aspect-ratio: 3 / 4;
}
.hw-gallery .modal-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.hw-gallery .modal-img:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-cover-wrap { grid-template-columns: 1fr; gap: 22px; }
  .hw-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .material-grid, .hw-gallery { grid-template-columns: 1fr; }
}

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-toggle { display: flex; }
  .nav-center.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(14,13,11,0.96); backdrop-filter: blur(14px); padding: 24px 32px; gap: 20px; align-items: flex-start;
  }
  .nav-actions { gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .project-grid { grid-template-columns: 1fr; }
  .layout-grid { grid-template-columns: repeat(2, 1fr); }
  .handwork-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .resume-item { grid-template-columns: 1fr; gap: 14px; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .modal-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  :root { --pad: 22px; }
  .layout-grid, .handwork-grid { grid-template-columns: 1fr; }
  .section, .hero, .footer-inner { padding-left: 22px; padding-right: 22px; }
  .nav-inner { padding: 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
