/* ═══════════════════════════════════════════════════════
   京张气脉 · 风水AI —— 作品集风格静态站
   视觉语言：宣纸 · 墨黑 · 朱砂 · 鎏金（克制使用）
   零依赖 · 无外部字体 · 纯静态
   ═══════════════════════════════════════════════════════ */

:root {
  --paper:        #f7f3ea;   /* 宣纸米白 */
  --paper-deep:   #efe8d6;
  --ink:          #211c15;   /* 墨黑 */
  --ink-soft:     #4a4237;
  --ink-bg:       #16120d;   /* 深墨底（暗色节） */
  --ink-bg-2:     #1e1912;
  --cinnabar:     #b03a2e;   /* 朱砂 */
  --gilt:         #a8853f;   /* 鎏金 */
  --gilt-bright:  #c9a962;
  --dai:          #33505e;   /* 黛蓝 */
  --jade:         #6a8d73;   /* 玉绿 */
  --line:         rgba(33, 28, 21, .16);
  --line-dark:    rgba(247, 243, 234, .18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN",
           "Songti SC", STSong, SimSun, "Microsoft YaHei", serif;
  --sans:  "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
           "Microsoft YaHei", sans-serif;
  --w: min(1180px, calc(100% - 2 * clamp(20px, 5vw, 64px)));
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(15px, 1.05vw + 9px, 17px);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

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

/* ─────────── 顶部导航 ─────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(22, 18, 13, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-nav {
  width: var(--w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand-seal {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--cinnabar); color: var(--paper);
  font-size: 19px; line-height: 1; user-select: none;
  box-shadow: inset 0 0 0 1.5px rgba(247,243,234,.35);
}
.brand-name { font-size: 17px; letter-spacing: .12em; white-space: nowrap; }
.brand-name i { font-style: normal; color: var(--gilt-bright); margin-inline: 2px; }
.nav-links {
  display: flex; gap: clamp(10px, 2vw, 26px);
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: rgba(247, 243, 234, .72); text-decoration: none;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em;
  white-space: nowrap; padding-block: 6px;
  border-bottom: 1.5px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--gilt-bright); border-bottom-color: var(--gilt-bright);
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, #241d13 0%, var(--ink-bg) 55%, #0e0b08 100%);
  color: var(--paper);
  padding: clamp(110px, 16vh, 170px) 0 clamp(48px, 7vh, 84px);
  overflow: hidden;
}
.hero-inner { width: var(--w); margin: 0 auto; text-align: center; position: relative; }
.hero-kicker {
  font-family: var(--sans); font-size: 13px; letter-spacing: .5em;
  text-indent: .5em; color: var(--gilt-bright); margin-bottom: clamp(18px, 3vh, 30px);
}
.hero-title {
  font-size: clamp(42px, 9vw, 104px);
  font-weight: 600; letter-spacing: .06em; line-height: 1.15;
}
.hero-title .dot { color: var(--cinnabar); margin-inline: .04em; }
.hero-sub {
  margin-top: clamp(10px, 2vh, 18px);
  font-size: clamp(18px, 2.6vw, 30px); letter-spacing: .32em; color: var(--paper);
}
.hero-sub .en {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  letter-spacing: .12em; color: var(--gilt-bright);
}
.hero-quote {
  margin: clamp(26px, 4.5vh, 44px) auto 0; max-width: 46em;
  font-size: clamp(14.5px, 1.2vw + 8px, 17px);
  color: rgba(247, 243, 234, .78); line-height: 2.1;
}
.hero-meta {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em;
  color: rgba(247, 243, 234, .66);
}
.hero-meta i { width: 1px; height: 12px; background: var(--line-dark); }
.hero-meta .gold { color: var(--gilt-bright); }

.hero-figure {
  width: var(--w); margin: clamp(40px, 7vh, 76px) auto 0;
  border: 1px solid var(--line-dark);
  background: var(--ink-bg-2);
  padding: clamp(10px, 1.6vw, 20px);
}
.hero-figure img { width: 100%; }
.hero-figure figcaption {
  margin-top: 12px; text-align: center;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .18em;
  color: rgba(247, 243, 234, .55);
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 22px; height: 38px; border: 1px solid rgba(247,243,234,.4); border-radius: 12px;
  display: block;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 2px; background: var(--gilt-bright);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  60%      { transform: translate(-50%, 12px); opacity: .15; }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* ─────────── 通用 Section ─────────── */
.section { width: var(--w); margin: 0 auto; padding: clamp(64px, 11vh, 128px) 0; }
.section-paper { max-width: none; width: 100%; background: var(--paper-deep); }
.section-paper > * { width: var(--w); margin-left: auto; margin-right: auto; }
.section-dark { max-width: none; width: 100%; background: var(--ink-bg); color: var(--paper); }
.section-dark > * { width: var(--w); margin-left: auto; margin-right: auto; }

.section-head {
  display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 34px);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.sec-no {
  flex: none; display: grid; place-items: center;
  width: clamp(56px, 7vw, 84px); height: clamp(56px, 7vw, 84px);
  border: 1px solid currentColor; opacity: .95;
  font-size: clamp(24px, 3vw, 36px); font-weight: 600;
  color: var(--cinnabar);
  position: relative;
}
.gold-no { color: var(--gilt-bright); border-color: var(--gilt-bright); }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 42px); font-weight: 600; letter-spacing: .08em;
  line-height: 1.3;
}
.sec-lede {
  margin-top: 12px; max-width: 52em;
  font-size: clamp(14px, 1vw + 8px, 16.5px);
  color: var(--ink-soft);
}
.section-dark .sec-lede { color: rgba(247, 243, 234, .68); }

/* 图版：展板式呈现 */
.plate { margin-top: clamp(30px, 5vh, 54px); }
.plate img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(6px, .9vw, 14px);
  box-shadow: 0 18px 50px -28px rgba(33, 28, 21, .45);
}
.plate figcaption {
  margin-top: 14px;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em;
  color: var(--ink-soft); text-align: center;
}
.section-dark .plate img { border-color: var(--line-dark); background: var(--paper); box-shadow: none; }
.section-dark .plate figcaption { color: rgba(247, 243, 234, .58); }
.plate-narrow { max-width: 780px; margin-inline: auto; }

/* 文本卡与网格 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 36px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }

.text-card {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.text-card h3 { font-size: 18px; letter-spacing: .1em; margin-bottom: 12px; }
.text-card p { color: var(--ink-soft); font-size: 14.5px; }
.text-card strong { color: var(--ink); }
.muted { color: var(--ink-soft); opacity: .82; font-size: 13.5px !important; }
.section-dark .muted { color: rgba(247,243,234,.6); }

.scope-list { list-style: none; margin-top: 6px; }
.scope-list li {
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.scope-list strong { color: var(--cinnabar); margin-right: 8px; }

/* 概念转译卡 */
.trans-card {
  border: 1px solid var(--line-dark);
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, var(--ink-bg-2), transparent 70%);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s ease, border-color .3s ease;
}
.trans-card:hover { transform: translateY(-4px); border-color: var(--gilt); }
.tc-from { font-size: 15px; letter-spacing: .3em; color: rgba(247,243,234,.62); }
.tc-arrow { color: var(--cinnabar); font-size: 18px; }
.trans-card h3 { font-size: 19px; letter-spacing: .1em; color: var(--gilt-bright); }
.trans-card p { font-size: 13.5px; color: rgba(247,243,234,.66); }

/* 指标带 */
.metrics-strip {
  margin-top: clamp(30px, 5vh, 54px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.metrics-strip > div {
  padding: clamp(18px, 2.6vw, 34px) clamp(12px, 2vw, 26px);
  text-align: center;
  border-right: 1px solid var(--line);
}
.metrics-strip > div:last-child { border-right: none; }
.metrics-strip strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.6vw, 44px);
  color: var(--cinnabar); letter-spacing: .02em; line-height: 1.2;
}
.metrics-strip span {
  display: inline-block; margin-top: 8px;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.7;
  letter-spacing: .08em; color: var(--ink-soft);
}

/* 重点区卡片 */
.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gilt);
  padding: clamp(20px, 2.6vw, 34px);
}
.tag-xuanwu  { background: var(--ink); }
.tag-mingtang{ background: var(--cinnabar); }
.tag-zhuque  { background: var(--gilt); }
.area-tag {
  display: inline-block; color: var(--paper);
  font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-indent: .22em;
  padding: 5px 12px; margin-bottom: 16px;
}
.area-card h3 { font-size: clamp(18px, 1.6vw + 8px, 22px); letter-spacing: .06em; }
.area-sub { margin: 6px 0 12px; font-size: 13px; color: var(--gilt); letter-spacing: .06em; }
.area-card p:last-child { font-size: 14.5px; color: var(--ink-soft); }

/* 场景卡 */
.card-grid {
  display: grid; gap: clamp(14px, 2vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.scene-card {
  position: relative;
  border: 1px solid var(--line-dark);
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(180deg, rgba(247,243,234,.045), transparent 60%);
}
.scene-no {
  position: absolute; top: 14px; right: 16px;
  font-family: Georgia, serif; font-style: italic;
  font-size: 15px; color: var(--gilt-bright); letter-spacing: .06em;
}
.scene-card h3 { font-size: 18px; letter-spacing: .08em; padding-right: 52px; }
.scene-desc { margin-top: 10px; font-size: 14px; color: rgba(247,243,234,.78); }
.scene-meta { margin-top: 14px; font-size: 12.5px; color: rgba(247,243,234,.55); line-height: 2; }
.scene-meta em {
  font-style: normal; color: var(--gilt-bright);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em;
  margin-right: 8px;
}
.scene-testbed { border-color: rgba(176, 58, 46, .65); }
.scene-testbed::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cinnabar);
}
.testbed-note {
  margin-top: clamp(20px, 3vh, 30px);
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em;
  color: rgba(247,243,234,.62);
}
.testbed-note .star { color: var(--cinnabar); margin-right: 6px; }

/* 影像 */
.video-wrap { margin-top: 0; }
.video-wrap video {
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 18px 50px -28px rgba(33, 28, 21, .45);
}
.video-wrap figcaption {
  margin-top: 14px; text-align: center;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; color: var(--ink-soft);
}
.audio-box {
  margin-top: clamp(30px, 5vh, 50px);
  border: 1px dashed var(--line);
  padding: clamp(18px, 2.4vw, 30px);
}
.audio-box h3 { font-size: 17px; letter-spacing: .08em; }
.audio-box audio { width: 100%; margin-top: 14px; }
.audio-box details { margin-top: 12px; font-size: 14px; }
.audio-box summary {
  cursor: pointer; font-family: var(--sans); font-size: 13px;
  letter-spacing: .1em; color: var(--dai);
}
.audio-box details p { margin-top: 10px; }

/* A0 / A3 图册入口 */
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 40px); }
.board-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--paper);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.board-card:hover {
  transform: translateY(-6px);
  border-color: var(--gilt);
  box-shadow: 0 26px 60px -30px rgba(33, 28, 21, .5);
}
.board-card img { width: 100%; border-bottom: 1px solid var(--line); }
.board-btn {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  font-size: clamp(17px, 1.6vw + 8px, 22px); letter-spacing: .1em; color: var(--ink);
}
.board-btn i {
  font-style: normal; font-family: var(--sans); font-size: 12px;
  letter-spacing: .1em; color: var(--ink-soft);
}
.board-card:hover .board-btn { color: var(--cinnabar); }

/* 关于 / 项目说明 */
.about-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.score-panel {
  border: 1px solid var(--line);
  background: var(--paper-deep);
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
}
.score-label {
  display: block; font-family: var(--sans); font-size: 12.5px;
  letter-spacing: .3em; text-indent: .3em; color: var(--ink-soft);
}
.score-num {
  display: block; margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 8vw, 108px); line-height: 1.05;
  color: var(--cinnabar);
}
.score-den { font-size: .38em; color: var(--ink-soft); margin-left: 4px; }
.score-badge {
  display: inline-block; margin-top: 12px;
  border: 1px solid var(--jade); color: var(--jade);
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-indent: .18em;
  padding: 6px 14px;
}
.score-panel .muted { display: block; margin-top: 16px; }
.about-text h3 { font-size: clamp(19px, 1.8vw + 8px, 24px); letter-spacing: .06em; margin-bottom: 14px; }
.about-text p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }
.link-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--sans); font-size: 13.5px; letter-spacing: .14em;
  padding: 12px 22px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gilt); color: #fff; }
.btn-gold:hover { background: var(--cinnabar); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.colophon {
  margin-top: clamp(30px, 5vh, 54px);
  border-top: 1px solid var(--line);
  padding-top: clamp(18px, 3vh, 30px);
  display: grid; gap: 10px;
}
.colophon p { font-size: 13px; color: var(--ink-soft); line-height: 2; }
.colophon strong { color: var(--ink); margin-right: 10px; letter-spacing: .1em; }

/* 页脚 */
.site-footer {
  background: var(--ink-bg); color: rgba(247,243,234,.75);
  text-align: center;
  padding: clamp(48px, 8vh, 90px) 20px 40px;
}
.foot-motto { font-size: clamp(16px, 1.4vw + 8px, 20px); letter-spacing: .4em; text-indent: .4em; color: var(--gilt-bright); }
.foot-title { margin-top: 14px; font-size: 15px; letter-spacing: .18em; }
.foot-title span { opacity: .55; margin-left: 12px; font-size: 13px; }
.foot-links { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 26px; }
.foot-links a {
  color: rgba(247,243,234,.6); text-decoration: none;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em;
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.foot-links a:hover { color: var(--gilt-bright); border-bottom-color: var(--gilt-bright); }
.foot-copy { margin-top: 26px; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: rgba(247,243,234,.38); }

/* 入场动效 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────── 响应式 ─────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .score-panel { max-width: 420px; margin-inline: auto; }
  .br-wide { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-nav { padding-block: 10px; }
  .brand-name { display: none; }
  .nav-links { width: 100%; }
  .hero { padding-top: 96px; }
  .section-head { flex-direction: column; gap: 14px; }
  .sec-no { width: 48px; height: 48px; font-size: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .metrics-strip > div:nth-child(2n) { border-right: none; }
  .metrics-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .board-grid { grid-template-columns: 1fr; }
  .scene-card h3 { padding-right: 44px; }
}
