@charset "utf-8";
/* ============================================================
   唐绅耀 · 翡翠玉雕作品集
   Editorial / museum-print layout — paper, rule, plate
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  --paper: #e7e3d8;
  --paper-warm: #eeeadf;
  --paper-sheet: #f2efe6;
  --ink: #1b1a18;
  --ink-2: #524e46;
  --ink-3: #8d877b;
  --rule: rgba(27, 26, 24, .26);
  --rule-soft: rgba(27, 26, 24, .13);
  --jade: #4e6b5b;
  --frame-max: 1660px;

  /* 组件色（深色主题整体替换） */
  --ph-bg: #d8d3c6;
  --ph-bg-deep: #cfc9bb;
  --wash: rgba(255, 255, 255, .42);
  --wash-soft: rgba(255, 255, 255, .28);
  --wall-sheen: rgba(255, 255, 255, .4);
  --sheet-ink: #2c2a25;
  --sheet-shadow: 0 10px 24px rgba(40, 36, 28, .13);
  --edge-glow: rgba(40, 36, 28, .14);
  --grain-blend: multiply;
  --grain-opacity: .5;
  --overlay-bg: rgba(231, 227, 216, .97);
  --hover-bg: #fff;

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC",
    "SimSun", "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("../img/texture/paper-grain.png");
  background-size: 320px 320px;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }
::selection { background: rgba(78, 107, 91, .22); }

:focus-visible {
  outline: 1px solid var(--jade);
  outline-offset: 3px;
}

/* ---------- 3. utility ---------- */
.micro {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}

.latin { font-family: var(--latin); letter-spacing: .2em; }

.rule-line { height: 1px; background: var(--rule-soft); border: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--ink); color: var(--paper-warm);
  padding: 10px 18px; font-size: 13px;
  transition: top .25s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- 4. masthead ---------- */
.masthead {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 22px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.masthead__mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.masthead__mark b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .34em;
}
.masthead__mark span {
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: .28em;
  color: var(--ink-3);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 38px);
}
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-2);
  padding: 6px 1px;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { width: 100%; }

.masthead__tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.tool {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.tool:hover { color: var(--ink); }
.tool svg { width: 14px; height: 14px; stroke-width: 1.3; }

/* ---------- 5. frame + grid ---------- */
.frame {
  max-width: var(--frame-max);
  margin: 0 auto 26px;
  padding: 0 22px;
}

.frame__inner {
  border: 1px solid var(--rule);
  background: var(--paper);
}

.frame__body {
  display: grid;
  grid-template-columns: 29fr 41fr 30fr;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "left hero right"
    "left strip strip";
  min-height: min(calc(100vh - 112px), 940px);
}

/* ---------- 6. left plate ---------- */
.col-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  min-width: 0;
}

.plate {
  padding: 22px clamp(18px, 2.1vw, 30px) 18px;
  border-bottom: 1px solid var(--rule);
}
.plate__name {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .04em;
}
.plate__sub {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.plate__collection { font-size: clamp(15px, 1.35vw, 20px); letter-spacing: .1em; }
.plate__years {
  font-family: var(--latin);
  font-size: clamp(13px, 1.15vw, 17px);
  letter-spacing: .12em;
  color: var(--ink-2);
}
.plate__role {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-3);
}

.left-media {
  flex: 1 1 0;
  height: 0;              /* 不把图片的固有高度算进栏高，否则小屏会把整页顶长 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1.45fr);
  gap: 1px;
  background: var(--rule-soft);
  min-height: 0;
  overflow: hidden;
}
.left-media > .ph:nth-child(1) { grid-column: 1; grid-row: 1; }
.left-media > .ph:nth-child(2) { grid-column: 2; grid-row: 1; }
.left-media > .ph:nth-child(3) { grid-column: 1; grid-row: 2; }

.ph {
  position: relative;
  overflow: hidden;
  background: var(--ph-bg);
  min-height: 0;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.ph a:hover img,
.ph:hover img { transform: scale(1.04); }
.ph__cap {
  position: absolute;
  left: 10px; bottom: 9px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.ph:hover .ph__cap { opacity: 1; transform: none; }

.ph-stack {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  min-height: 0;
}
.ph-block {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--paper);
  min-height: 0;
}
.ph-block__label {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-2);
  padding: 6px 0 6px 12px;
  line-height: 1.4;
}

/* ---------- 7. hero ---------- */
.col-hero {
  grid-area: hero;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  background: var(--ph-bg-deep);
  min-height: 0;
}
.col-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.col-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 19, 17, .2) 0%, rgba(20, 19, 17, 0) 24%),
    linear-gradient(to top, rgba(18, 17, 15, .82) 0%, rgba(18, 17, 15, .42) 30%, rgba(18, 17, 15, .06) 62%, rgba(18, 17, 15, 0) 78%);
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 clamp(16px, 4vw, 44px) clamp(20px, 2.6vw, 34px);
  text-align: center;
  color: #f7f4ec;
}
.hero-meta__name {
  margin: 0;
  font-size: clamp(26px, 2.9vw, 46px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.18;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .34em;
  flex-wrap: wrap;          /* 窄屏放不下时，中文名和英文名各占一行 */
  row-gap: .06em;
  white-space: normal;
}
.hero-meta__name > span,
.hero-meta__name > em { white-space: nowrap; }
.hero-meta__name em {
  font-family: var(--latin);
  font-style: normal;
  font-size: .78em;
  letter-spacing: .24em;
  opacity: .96;
}
.hero-meta__line {
  margin: 9px 0 0;
  font-size: clamp(12.5px, 1.05vw, 15px);
  letter-spacing: .16em;
  color: rgba(247, 244, 236, .9);
}
.hero-meta__tags {
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  border: 1px solid rgba(247, 244, 236, .55);
  border-radius: 999px;
  padding: 4px 15px;
  font-size: 11.5px;
  letter-spacing: .28em;
  color: rgba(247, 244, 236, .94);
  backdrop-filter: blur(1px);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.tag:hover { background: rgba(247, 244, 236, .92); color: var(--ink); }

.hero-year {
  position: absolute;
  top: 18px; right: 20px;
  z-index: 2;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(247, 244, 236, .8);
}

/* ---------- 8. right sheet ---------- */
.col-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2vw, 26px);
  min-width: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--wall-sheen), rgba(255, 255, 255, 0) 70%),
    var(--paper);
}

.sheet {
  position: relative;
  width: 100%;
  background: var(--paper-sheet);
  padding: clamp(26px, 3.4vw, 44px) clamp(20px, 2.6vw, 34px) clamp(24px, 3vw, 38px);
  -webkit-mask-image: url("../img/texture/torn-mask.png");
  mask-image: url("../img/texture/torn-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(var(--sheet-shadow)) drop-shadow(0 0 1px var(--edge-glow));
}

.sheet__quote {
  margin: 0;
  font-size: clamp(13.5px, 1.12vw, 16.5px);
  line-height: 2.15;
  letter-spacing: .05em;
  text-align: center;
  color: var(--sheet-ink);
  text-indent: 0;
}
.sheet__quote::before { content: "「"; }
.sheet__quote::after { content: "」"; }

.sheet__sign {
  display: block;
  margin: 12px 0 0;
  text-align: right;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-3);
}

.sheet__figure {
  margin: clamp(16px, 2vw, 24px) 0 0;
  position: relative;
}
.sheet__figure img {
  width: 100%;
  height: auto;
  filter: saturate(.82) contrast(1.02);
  -webkit-mask-image: radial-gradient(115% 105% at 50% 46%, #000 62%, rgba(0, 0, 0, .35) 88%, transparent 100%);
  mask-image: radial-gradient(115% 105% at 50% 46%, #000 62%, rgba(0, 0, 0, .35) 88%, transparent 100%);
}
.sheet__cap {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-3);
}

/* ---------- 9. strip ---------- */
.strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: 41fr 30fr;
  border-top: 1px solid var(--rule);
  min-height: 88px;
}
.strip__cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid var(--rule);
}
.cat {
  padding: 14px clamp(10px, 1.1vw, 18px) 16px;
  border-right: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background .45s var(--ease);
}
.cat:last-child { border-right: 0; }
a.cat:hover { background: var(--wash); }
.cat__name {
  font-size: 12.5px;
  letter-spacing: .26em;
  color: var(--ink);
  white-space: nowrap;
}
.cat__name::after {
  content: "";
  display: inline-block;
  width: 1px; height: 10px;
  margin-left: .7em;
  background: var(--rule);
  vertical-align: -1px;
}
.cat__sub {
  margin: 5px 0 0;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--ink-2);
}
.cat__count {
  margin-top: 6px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-3);
}

.strip__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.btn-arch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 22px 10px 26px;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--ink);
  background: var(--wash-soft);
  transition: background .4s var(--ease), color .4s var(--ease), gap .35s var(--ease);
}
.btn-arch .arw { transition: transform .4s var(--ease); font-family: var(--latin); }
.btn-arch:hover { background: var(--ink); color: var(--paper-warm); }
.btn-arch:hover .arw { transform: translateX(4px); }

/* ---------- 10. sections below ---------- */
.slab { max-width: var(--frame-max); margin: 0 auto; padding: 0 22px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 46px 0 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: .14em;
}
.sec-head h2 small {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-3);
  margin-left: 14px;
  font-weight: 400;
}
.sec-head a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}
.sec-head a:hover { color: var(--ink); border-color: var(--ink); }

/* selected works rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-top: 0;
}
.card {
  position: relative;
  display: block;
  background: var(--paper);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .7s var(--ease);
}
.card:hover img { transform: scale(1.045); }
.card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 16px 14px;
  background: linear-gradient(to top, rgba(18, 17, 15, .78), rgba(18, 17, 15, 0));
  color: #f6f3ea;
  transform: translateY(2px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.card:hover .card__body { transform: none; }
.card__title { display: block; font-size: 14px; letter-spacing: .1em; }
.card__meta {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(246, 243, 234, .78);
  margin-top: 4px;
}
.card__idx {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .85);
  mix-blend-mode: difference;
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-top: 0;
  margin-top: 1px;
}
.about__text {
  background: var(--paper);
  padding: clamp(24px, 3vw, 44px);
}
.about__lead {
  margin: 0 0 18px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 2;
  letter-spacing: .05em;
}
.about__copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.about__copy + .about__copy { margin-top: 16px; }
.about__facts {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 20px;
}
.about__facts li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  font-size: 12.5px;
  align-items: baseline;
}
.about__facts dt,
.about__facts .k {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--ink-3);
}
.about__media { background: var(--paper); display: grid; }
.about__media figure { position: relative; overflow: hidden; min-height: 100%; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 11. footer ---------- */
.foot {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 34px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.foot a { border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--ink); border-color: var(--rule); }
.foot__mark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--ink);
}

/* ---------- 12. search overlay ---------- */
.search {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12vh 22px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.search[data-open="true"] { opacity: 1; pointer-events: auto; }
.search__box { width: min(680px, 100%); border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 14px; }
.search__box input {
  flex: 1;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: .08em;
  padding: 10px 0 14px;
  color: var(--ink);
  outline: none;
}
.search__box input::placeholder { color: var(--ink-3); }
.search__hint { margin: 14px 0 0; font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; color: var(--ink-3); }
.search__results {
  width: min(680px, 100%);
  margin-top: 26px;
  overflow-y: auto;
  max-height: 52vh;
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
}
.sres {
  background: var(--paper);
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
}
.sres img { width: 58px; height: 58px; object-fit: cover; }
.sres__t { font-size: 14px; letter-spacing: .06em; }
.sres__c { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--ink-3); margin-top: 2px; }
.sres:hover { background: var(--hover-bg); }
.search__close {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ink-2);
}

/* ---------- 13. works page ---------- */
.page-head {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 26px 22px 0;
}
.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: .12em;
}
.page-head h1 small {
  display: block;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--ink-3);
  margin-top: 8px;
}
.page-head__desc {
  max-width: 40ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
  text-align: right;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 22px;
  align-items: center;
}
.chip {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-2);
  transition: all .35s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-warm);
}
.chip__n { font-family: var(--latin); font-size: 10px; opacity: .6; margin-left: 6px; }

.gallery {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 22px 60px;
}
.grid-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
}
.work {
  position: relative;
  background: var(--paper);
  display: block;
  overflow: hidden;
}
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ph-bg); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); }
.work__meta {
  padding: 12px 14px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.work__title { font-size: 13.5px; letter-spacing: .08em; }
.work__year { font-family: var(--latin); font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); }
.work__cat {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--ink-3);
  padding: 0 14px 14px;
  margin-top: -12px;
}
.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-3);
  letter-spacing: .2em;
  font-size: 13px;
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(20, 19, 17, .95);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 30vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.lb[data-open="true"] { opacity: 1; pointer-events: auto; }
.lb__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 3vw;
  min-height: 0;
}
.lb__stage img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lb__side {
  background: var(--paper);
  padding: 36px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lb__cat { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--ink-3); }
.lb__title { margin: 12px 0 0; font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: .08em; }
.lb__desc { margin: 18px 0 0; font-size: 13px; line-height: 2.05; color: var(--ink-2); }
.lb__specs { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.lb__specs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
}
.lb__specs .k { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--ink-3); }
.lb__nav { margin-top: auto; padding-top: 28px; display: flex; gap: 10px; }
.lb__nav button {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-2);
  transition: all .3s var(--ease);
}
.lb__nav button:hover { border-color: var(--ink); color: var(--ink); }
.lb__close {
  position: absolute;
  top: 18px; left: 24px;
  z-index: 2;
  color: rgba(246, 243, 234, .82);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .24em;
}
.lb__close:hover { color: #fff; }

/* ---------- 14. reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 15. responsive ---------- */
/* 窗口偏矮时（笔记本横屏、小屏投影）压缩右栏与底栏，保证一屏能看完 */
@media (min-width: 1041px) and (max-height: 800px) {
  .sheet { padding: 20px 22px 18px; }
  .sheet__quote { line-height: 1.95; }
  .sheet__sign { margin-top: 8px; }
  .sheet__figure { margin-top: 12px; }
  .plate { padding: 16px clamp(16px, 2vw, 26px) 14px; }
  .strip { min-height: 74px; }
  .cat__sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cat__count { display: none; }
}

@media (max-width: 1240px) {
  .frame__body { grid-template-columns: 31fr 39fr 30fr; }
  .grid-works { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .masthead { grid-template-columns: auto 1fr auto; height: auto; padding: 12px 18px; gap: 10px; }
  .nav { justify-content: flex-end; gap: 16px; }
  .masthead__mark span { display: none; }
  .frame { padding: 0 14px; }
  .frame__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "hero" "left" "right" "strip";
    min-height: 0;
  }
  .col-hero { min-height: 58vh; border-right: 0; border-bottom: 1px solid var(--rule); }
  .col-left { border-right: 0; border-bottom: 1px solid var(--rule); }
  /* 堆叠布局下没有可分配的高度，必须给这块一个明确高度，否则图片会塌成 0 */
  .left-media {
    flex: none;
    height: auto;
    aspect-ratio: 1 / 1.05;
    max-height: 60vh;
    grid-template-rows: 1.15fr 1.4fr;
  }
  .col-right { padding: 22px; }
  .sheet { max-width: 520px; }
  .strip { grid-template-columns: 1fr; }
  .strip__cats { border-right: 0; }
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 300px; }
  .page-head__row { flex-direction: column; align-items: flex-start; }
  .page-head__desc { text-align: left; }
  .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb__side { max-height: 44vh; padding: 22px; }
  .lb__stage { padding: 3vh 4vw; }
}

@media (max-width: 720px) {
  .masthead {
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark tools" "nav nav";
    row-gap: 4px;
    padding: 10px 16px 8px;
  }
  .masthead__mark { grid-area: mark; }
  .masthead__tools { grid-area: tools; }
  .nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 2px;
    border-top: 1px solid var(--rule-soft);
    padding-top: 7px;
  }
  .nav::-webkit-scrollbar { display: none; }
  /* 手机上把导航的点击区域放大到约 40px 高 */
  .nav a {
    font-size: 12px;
    letter-spacing: .12em;
    padding: 10px 2px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .nav a::after { bottom: 4px; }
  .masthead__tools { gap: 12px; }
  .plate { padding: 16px 18px 14px; }
  .plate__name { font-size: 34px; }
  /* 手机上英文名收一点字距，360 宽能挤进一行 */
  .hero-meta__name em { letter-spacing: .18em; }
  /* 副标题只在「·」处换行，不要在词中间断开 */
  .hero-meta__line { word-break: keep-all; }
  .strip__cats { grid-template-columns: repeat(2, 1fr); }
  .cat { border-bottom: 1px solid var(--rule-soft); }
  .cat:nth-child(2n) { border-right: 0; }
  .grid-works { grid-template-columns: repeat(2, 1fr); }
  /* 窄卡片里标题和年份挤在一行会互相压，让年份掉到下一行 */
  .work__meta { flex-wrap: wrap; gap: 3px 8px; padding: 10px 12px 8px; }
  .work__title { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
  .work__year { flex: 0 0 auto; }
  .work__cat { padding: 0 12px 12px; margin-top: -4px; }
  .rail { grid-template-columns: 1fr; }
  .sec-head { padding-top: 30px; }
  .sec-head h2 small { display: none; }
  .foot { padding: 22px 18px 30px; }
  .lb__nav { padding-top: 16px; }

  /* 手机上把次级链接的点击区域也放大，避免误点 */
  .foot a { display: inline-block; padding: 8px 3px; }
  .sec-head a { display: inline-block; padding: 8px 3px; }
  .tool { min-height: 40px; padding: 10px 0; }
  .masthead__tools { align-items: center; }
  .contact-list .copy { min-height: 36px; padding: 8px 14px; }
  .workpage__nav a { display: inline-block; padding: 10px 0; }
  .about__copy a { display: inline-block; padding: 10px 0; }
  .lb__close { padding: 12px 6px; }
  .search__close { padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 16. print ---------- */
@media print {
  body::before, .masthead, .foot, .strip__cta { display: none; }
  .frame__inner { border-color: #000; }
}

/* ============================================================
   17. 深色主题（夜间模式）
   点右上角「夜间」切换；选择会记录在浏览器里
   ============================================================ */

/* 切换按钮：浅色时显示月亮，深色时显示太阳 */
.tool--theme .ico-sun { display: none; }
.tool--theme .ico-moon { display: block; }
[data-theme="dark"] .tool--theme .ico-sun { display: block; }
[data-theme="dark"] .tool--theme .ico-moon { display: none; }

[data-theme="dark"] {
  color-scheme: dark;

  /* 墨玉底 + 米白字 */
  --paper: #131312;
  --paper-warm: #1b1b18;
  --paper-sheet: #24241f;
  --ink: #ebe6d8;
  --ink-2: #a8a194;
  --ink-3: #726c61;
  --rule: rgba(235, 230, 216, .26);
  --rule-soft: rgba(235, 230, 216, .12);
  --jade: #8aa894;

  --ph-bg: #1c1c18;
  --ph-bg-deep: #191915;
  --wash: rgba(255, 255, 255, .07);
  --wash-soft: rgba(255, 255, 255, .05);
  --wall-sheen: rgba(255, 255, 255, .05);
  --sheet-ink: #ded8c9;
  --sheet-shadow: 0 16px 40px rgba(0, 0, 0, .66);
  --edge-glow: rgba(235, 230, 216, .22);
  --grain-blend: overlay;
  --grain-opacity: .18;
  --overlay-bg: rgba(19, 19, 18, .97);
  --hover-bg: #23231f;
}

/* 纸纹改成叠加，不然深色会被压得更黑 */
[data-theme="dark"] ::selection { background: rgba(138, 168, 148, .28); }

/* 白底作品照在深色里会太跳，稍微收一点亮度 */
[data-theme="dark"] .ph img,
[data-theme="dark"] .card img,
[data-theme="dark"] .work__media img {
  filter: brightness(.95);
}

/* 「关于」那张白底工作照面积大，深色下多压一点 */
[data-theme="dark"] .about__media img { filter: brightness(.87) saturate(.96); }

[data-theme="dark"] .col-hero::after {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .52) 32%, rgba(0, 0, 0, .08) 64%, rgba(0, 0, 0, 0) 80%);
}

[data-theme="dark"] .sheet__figure img {
  filter: saturate(.92) brightness(.96) contrast(1.04);
}

/* 深色下用玉青做强调，避免大片米白按钮晃眼 */
[data-theme="dark"] .chip[aria-pressed="true"] {
  background: var(--jade);
  border-color: var(--jade);
  color: #10130f;
}

[data-theme="dark"] .btn-arch:hover {
  background: var(--jade);
  border-color: var(--jade);
  color: #10130f;
}

[data-theme="dark"] .tag:hover {
  background: rgba(235, 230, 216, .92);
  color: #14140f;
}

[data-theme="dark"] .lb { background: rgba(8, 8, 7, .96); }
[data-theme="dark"] .lb__stage img { box-shadow: 0 20px 60px rgba(0, 0, 0, .75); }

[data-theme="dark"] .sres:hover { background: #23232a; }

/* ============================================================
   18. 作品二维码（扫码看作品 / 打印展签）
   ============================================================ */

/* 灯箱底部那一排：分享按钮 */
.lb__share {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.lb__share button,
.lb__share a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--rule);
  padding: 11px 12px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-2);
  background: none;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lb__share button:hover,
.lb__share a:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--wash);
}
.lb__share svg { width: 14px; height: 14px; stroke-width: 1.4; flex: none; }

/* 弹窗 */
.qrm {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 11, 10, .82);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.qrm[data-open="true"] { opacity: 1; pointer-events: auto; }

.qrm__card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  transform: translateY(8px) scale(.99);
  transition: transform .35s var(--ease);
}
.qrm[data-open="true"] .qrm__card { transform: none; }

.qrm__close {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-3);
  padding: 6px;
}
.qrm__close:hover { color: var(--ink); }

.qrm__eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.qrm__title {
  margin: 10px 0 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
}
.qrm__sub {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* 二维码永远保持白底深色模块，保证任何主题、任何打印机都能扫 */
.qrm__qr {
  width: min(230px, 62vw);
  aspect-ratio: 1;
  margin: 20px auto 0;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.qrm__qr svg { display: block; width: 100%; height: 100%; }

.qrm__url {
  margin: 14px 0 0;
  font-family: var(--mono, "Consolas", monospace);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink-3);
  word-break: break-all;
}

.qrm__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.qrm__acts .btn-arch { padding: 9px 16px; font-size: 11px; letter-spacing: .14em; }

.qrm__hint {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* 小提示条 */
.qr-toast {
  position: fixed;
  left: 50%; bottom: 30px;
  z-index: 160;
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--paper-warm);
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.qr-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 打印展签 ---------- */
#qr-print { display: none; }

@media print {
  @page { size: A4; margin: 12mm; }

  body.is-printing { background: #fff !important; }
  body.is-printing > *:not(#qr-print) { display: none !important; }
  body.is-printing #qr-print {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4mm;
  }
  body.is-printing::before { display: none !important; }
}

.qr-label {
  width: 87mm;
  min-height: 46mm;
  display: flex;
  align-items: center;
  gap: 5mm;
  padding: 5mm;
  border: .3mm solid #b9b4a6;
  background: #fff;
  color: #101010;
  page-break-inside: avoid;
  break-inside: avoid;
}
.qr-label__qr { width: 30mm; height: 30mm; flex: none; }
.qr-label__qr svg { display: block; width: 100%; height: 100%; }
.qr-label__txt { min-width: 0; }
.qr-label__kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 7.5pt;
  letter-spacing: .18em;
  color: #6b675e;
}
.qr-label__title {
  margin: 1.5mm 0 0;
  font-family: var(--serif);
  font-size: 15pt;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.25;
}
.qr-label__sub {
  margin: 1mm 0 0;
  font-size: 8.5pt;
  letter-spacing: .06em;
  color: #4a463f;
}
.qr-label__url {
  margin: 2mm 0 0;
  font-family: "Consolas", monospace;
  font-size: 6.8pt;
  color: #8d877b;
  word-break: break-all;
}
.qr-label__note {
  margin: 2mm 0 0;
  font-size: 7.2pt;
  letter-spacing: .08em;
  color: #6b675e;
}

/* ============================================================
   19. 作品独立页（works/<编号>.html）+ 询价表单
   ============================================================ */

.workpage {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.workpage__media {
  position: relative;
  background: var(--ph-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  padding: clamp(10px, 2vw, 26px);
}
.workpage__media img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  display: block;
}

.workpage__info {
  background: var(--paper);
  padding: clamp(24px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workpage__kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .28em;
  color: var(--ink-3);
}

.workpage__title {
  margin: 14px 0 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .05em;
}

.workpage__desc {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: .03em;
  color: var(--ink-2);
  max-width: 46ch;
}

.workpage__specs {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-soft);
}
.workpage__specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12.5px;
}
.workpage__specs .k {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-3);
  flex: none;
}

.workpage__acts {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.workpage__acts .btn-arch { padding: 11px 20px; }
.workpage__acts .btn-arch--primary {
  background: var(--jade);
  border-color: var(--jade);
  color: #10130f;
}
.workpage__acts .btn-arch--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-warm);
}

/* 纯展示模式下页面不显示联系方式；表单关闭时整块隐藏 */
.inquiry[hidden] { display: none; }

/* ============================================================
   20. 联系页 contact.html（整页居中）
   ============================================================ */
.page-head--center .page-head__row {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-bottom: 18px;
}
.page-head--center h1 { text-align: center; }
.page-head--center .page-head__desc {
  text-align: center;
  max-width: 30em;
  margin: 0 auto;
}

.contact-panel {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 4vw, 52px);
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  text-align: center;
}

.contact-lead {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 2;
  letter-spacing: .05em;
  text-wrap: pretty;
}
.contact-copy {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-2);
  text-wrap: pretty;
}
.contact-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-wrap: pretty;
}

.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.contact-list .k {
  width: 100%;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--ink-3);
}
.contact-list .v {
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: .06em;
  user-select: all;
  line-height: 1.4;
  word-break: break-all;
}
.contact-list .copy {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 12px;
  background: none;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-list .copy:hover { color: var(--ink); border-color: var(--ink); }
.contact-list .copy.is-done { color: var(--jade); border-color: var(--jade); }

/* 内容不满一屏的页面（作品页 / 联系页）：页脚压在底部 */
body.page-work,
body.page-contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-work main,
body.page-contact main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.page-work .foot { margin-top: 40px; }
body.page-contact .foot { margin-top: 20px; }
/* flex 子项里的 margin:auto 会让元素缩到内容宽度，这里强制撑满 */
body.page-work .masthead,
body.page-work .foot,
body.page-contact .masthead,
body.page-contact .foot { width: 100%; }

/* 作品页：内容不满一屏时上下留白均分，内容超长时自动退回顶部（不会裁掉） */
body.page-work main > .workpage { margin-top: auto; }
body.page-work main > .workpage__nav { margin-bottom: auto; }
/* main 里的子元素带 margin:auto，在 flex 容器里会缩到内容宽，统一撑满 */
body.page-work main > *,
body.page-contact main > * { width: 100%; }

.workpage__nav {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 16px 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.workpage__nav a:hover { color: var(--ink); }

/* ---- 询价表单 ---- */
.inquiry {
  max-width: var(--frame-max);
  margin: 22px auto 0;
  padding: 0 22px;
}
.inquiry__card {
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  padding: clamp(22px, 3vw, 42px);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(20px, 3vw, 48px);
}
.inquiry__title {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: .1em;
}
.inquiry__lead {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-2);
}
.inquiry__note {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--ink-3);
}

.inquiry__form { display: grid; gap: 12px; align-content: start; }
.inquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inquiry__field { display: grid; gap: 5px; }
.inquiry__field label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-3);
}
.inquiry__field input,
.inquiry__field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .25s, background .25s;
}
[data-theme="dark"] .inquiry__field input,
[data-theme="dark"] .inquiry__field textarea { background: rgba(255, 255, 255, .05); }
.inquiry__field input:focus,
.inquiry__field textarea:focus {
  outline: none;
  border-color: var(--jade);
  background: var(--hover-bg);
}
.inquiry__field textarea { min-height: 86px; resize: vertical; line-height: 1.8; }
.inquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.inquiry__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.inquiry__btn {
  border: 1px solid var(--ink);
  background: none;
  padding: 11px 26px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.inquiry__btn:hover { background: var(--ink); color: var(--paper-warm); }
.inquiry__btn[disabled] { opacity: .5; pointer-events: none; }
.inquiry__msg { font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.inquiry__msg.is-ok { color: var(--jade); }
.inquiry__msg.is-err { color: #9f3b2e; }

@media (max-width: 1040px) {
  .workpage { grid-template-columns: 1fr; }
  .workpage__media { min-height: 0; padding: 0; }
  .workpage__media img { max-height: 68vh; }
  .inquiry__card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .workpage, .inquiry, .workpage__nav { padding-left: 14px; padding-right: 14px; }
  .inquiry__row { grid-template-columns: 1fr; }
  .workpage__info { padding: 20px 18px 24px; }
}
