/* ==========================================================
   王瑞 · 个人网站   样式表
   皮肤：暖色纸感（默认）/ 暗色电影感 / 极简黑白
   设计意图：
     · 像一本印刷品的目录页——留白大、细线分隔、字号拉得开
     · 正文用无衬线（好读），标题用宋体（有骨）
     · 动效只做一次入场 + 鼠标悬停，不搞满屏乱动
   ========================================================== */

:root {
  /* 典藏米白（默认）——展签纸的颜色 */
  --bg: #f2f0eb;
  --ink: #0c0c0b;
  --muted: #6e6c66;
  --hair: rgba(12, 12, 11, 0.13);
  --accent: #a33f24;
  --faint: rgba(12, 12, 11, 0.26);
  --thumb-a: rgba(163, 63, 36, 0.08);
  --thumb-b: #e6e3dc;
  --panel: #faf9f6;
  --grain: 0.03;
  color-scheme: light;

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;

  --wrap: 1180px;
  --pad: clamp(22px, 5.5vw, 96px);
  --ease: cubic-bezier(.22, .68, .24, 1);
}

/* 夜场：模板下半段那种纯黑画廊 */
html[data-theme="dark"] {
  --bg: #080808;
  --ink: #f4f2ec;
  --muted: #8f8c85;
  --hair: rgba(244, 242, 236, 0.16);
  --accent: #c9603f;
  --faint: rgba(244, 242, 236, 0.3);
  --thumb-a: rgba(201, 96, 63, 0.14);
  --thumb-b: #141414;
  --panel: #0e0e0e;
  --grain: 0.045;
  color-scheme: dark;
}

/* 白场：最干净的一档 */
html[data-theme="light"] {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #6b6b6b;
  --hair: rgba(0, 0, 0, 0.14);
  --accent: #000000;
  --faint: rgba(0, 0, 0, 0.3);
  --thumb-a: rgba(0, 0, 0, 0.05);
  --thumb-b: #ececec;
  --panel: #ffffff;
  --grain: 0.018;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--bg); }

/* 键盘跳到正文（平时藏在屏幕外，聚焦时出现） */
.skip {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 70;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: .12em;
  border-radius: 2px;
  transition: top .25s var(--ease);
}
.skip:focus { top: 14px; }

/* ==========================================================
   开场封面：一直在动（呼吸 + 流光 + 提示闪），点一下进站。
   ========================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #06110f;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}
/* 噪点：压掉大色块的塑料感 */
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* 暗角：四周压暗，视线收在中间 */
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(126% 92% at 50% 34%, transparent 24%, rgba(2, 9, 8, .4) 66%, rgba(1, 6, 6, .8) 100%);
}
/* 取景框：只在两个角上留短角标 */
.intro-frame {
  position: absolute;
  inset: clamp(14px, 3vw, 34px);
  z-index: 1;
  pointer-events: none;
  animation: intro-in 1.2s var(--ease) .5s both;
}
.intro-frame::before,
.intro-frame::after {
  content: "";
  position: absolute;
  width: clamp(16px, 2.2vw, 28px);
  height: clamp(16px, 2.2vw, 28px);
  border: 1px solid rgba(246, 227, 189, .38);
}
.intro-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.intro-frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.intro-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0 24px;
}
.intro-mark {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #f7f0e0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .55);
  animation: intro-in .9s var(--ease) both, intro-breath 5.2s ease-in-out 1s infinite;
}
.intro-line {
  position: relative;
  display: block;
  width: clamp(120px, 18vw, 220px);
  height: 1px;
  background: rgba(246, 227, 189, .24);
  overflow: hidden;
  transform-origin: center;
  animation: intro-line .8s var(--ease) .25s both;
}
.intro-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #e9b25f, transparent);
  transform: translateX(-100%);
  animation: line-sweep 3s cubic-bezier(.45, 0, .25, 1) .9s infinite;
}
.intro-sub {
  font-size: 11px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: rgba(247, 240, 224, .64);
  animation: intro-in .7s var(--ease) .45s both;
}
.intro-hint {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .38em;
  text-indent: .38em;
  color: #e9b25f;
  animation: hint-pulse 2.6s ease-in-out 1s infinite;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
@keyframes intro-breath {
  0%, 100% { opacity: .88; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}
@keyframes intro-line {
  to { transform: scaleX(1); }
}
@keyframes line-sweep {
  0%        { transform: translateX(-100%); }
  62%, 100% { transform: translateX(100%); }
}
@keyframes hint-pulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: .95; }
}
@keyframes intro-wipe {
  to { transform: translateY(-100%); }
}

/* 点击后：幕布提起 */
.intro.is-leaving {
  animation: intro-wipe .62s cubic-bezier(.68, 0, .24, 1) forwards;
  pointer-events: none;
}

/* 开场期间：不让人滚动，首屏入场动画先冻住，进站再演 */
html.intro-running body { overflow: hidden; }
html.intro-running .hero-top,
html.intro-running .hero-title,
html.intro-running .hero-tagline,
html.intro-running .hero-sub,
html.intro-running .hero-index,
html.intro-running .hero-cta {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .intro-mark, .intro-line, .intro-line::after, .intro-sub, .intro-hint { animation: none; }
}
/* 纸纹（极淡），固定不滚动 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 顶部阅读进度：一条 1px 的线走到底 */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .1s linear;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--bg) 34%, transparent);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .26em;
  font-weight: 600;
}
.nav-brand .brand-tail { letter-spacing: .16em; }
.nav-brand .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 38px);
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
  padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.theme-btn {
  font: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.theme-btn:hover { color: var(--ink); border-color: var(--accent); }

/* ---------------- 首屏 ---------------- */
.hero {
  min-height: 86vh;
  min-height: 86svh;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(96px, 13vh, 150px) var(--pad) clamp(34px, 5.5vh, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(16px, 2.6vh, 32px);
}

.hero-kicker,
.hero-kicker-2 {
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--muted);
}
.hero-kicker { color: var(--accent); }

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 13vw, 180px);
  line-height: 1;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero-title-gap { margin-left: .1em; }

.hero-tagline {
  margin: clamp(16px, 2.6vh, 28px) 0 0;
  font-family: var(--serif);
  font-size: clamp(16px, 2.1vw, 22px);
  letter-spacing: .2em;
  color: var(--ink);
}

.hero-sub {
  margin: 13px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(14px, 1.55vw, 17px);
  line-height: 1.95;
}

/* 首屏下方的三栏索引：是信息，不是装饰 */
.hero-index {
  list-style: none;
  margin: clamp(30px, 5vh, 54px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
}
.hero-index li {
  padding: 16px 0 0;
  border-right: 1px solid var(--hair);
  padding-right: 18px;
}
.hero-index li:last-child { border-right: 0; padding-right: 0; }
.hero-index li + li { padding-left: 18px; }
.hero-index b {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  margin-bottom: 4px;
}
.hero-index span {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* 常驻右侧的看板娘：跟随鼠标轻微位移，滚动时始终贴在右边 */
.hero-mascot {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: clamp(140px, 14vw, 230px);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .35s cubic-bezier(.22, .68, .24, 1);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16));
  will-change: transform;
}
.hero-mascot picture { display: block; }
.hero-mascot img { width: 100%; height: auto; display: block; pointer-events: none; }

/* 点她：动的是里面那张图，不影响外层跟随鼠标的位移 */
.hero-mascot.is-moving picture { animation: mascot-pop .62s var(--ease); }
@keyframes mascot-pop {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  25%  { transform: translateY(-12px) scale(1.03) rotate(-1.6deg); }
  50%  { transform: translateY(-2px) scale(0.995) rotate(1.2deg); }
  72%  { transform: translateY(-5px) scale(1.01) rotate(-0.6deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}



@media (max-width: 860px) {
  .hero-mascot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot { transform: none; transition: none; }
  .hero-mascot.is-moving picture { animation: none; }
}



/* 文字压在看板娘之上，永远看得清 */
.hero-top,
.hero-title,
.hero-tagline,
.hero-sub,
.hero-index {
  position: relative;
  z-index: 1;
}

/* ---------------- 通用段落 ---------------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8.5vh, 112px) var(--pad);
  border-top: 1px solid var(--hair);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(20px, 3.4vh, 38px);
}
.section-num { display: none; }

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: .02em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 clamp(26px, 4vh, 44px);
  max-width: 46em;
  color: var(--muted);
  font-size: 14.5px;
}

.tag-warn {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  vertical-align: 1px;
}

/* ---------------- 关于 ---------------- */
.about-body {
  max-width: 46em;
  font-size: clamp(16px, 1.85vw, 20px);
  line-height: 2.05;
}
.about-body p { margin: 0 0 1.15em; }
.about-body p:first-child { font-size: 1.06em; }
.about-note {
  margin: 2.2em 0 0 !important;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 13px !important;
  line-height: 1.8;
}

/* ---------------- 作品 ---------------- */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4.2vw, 60px) clamp(20px, 3.2vw, 44px);
}
.work { grid-column: span 1; }
/* 只有一件作品时：图在左、字在右，别留半页空白 */
.works > .work:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 52px);
  align-items: start;
  margin-top: 0;
}
.works > .work:only-child .work-meta { padding-top: 4px; }
.works > .work:only-child .work-meta h3 { font-size: clamp(20px, 2.4vw, 28px); }
@media (max-width: 860px) {
  .works > .work:only-child { grid-template-columns: 1fr; }
}

/* 桌面端右边那列整体下沉，做出错落的节奏感 */
@media (min-width: 900px) {
  .work:nth-child(even) { margin-top: clamp(26px, 4.4vw, 62px); }
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 18% 0%, var(--thumb-a), transparent 62%),
    var(--thumb-b);
  border: 1px solid var(--hair);
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid transparent;
  transition: border-color .45s var(--ease), inset .45s var(--ease);
  pointer-events: none;
}
.work-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--faint);
}
.work-thumb img,
.work-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.work:hover .work-thumb img,
.work:hover .work-thumb video { transform: scale(1.03); }
.work:hover .work-thumb::after { border-color: var(--accent); inset: 12px; }

.work-meta { padding-top: 16px; }
.work-meta h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: .02em;
}
.work-meta p {
  margin: 0 0 10px;
  max-width: 34em;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.work-year {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--accent);
}
.work-link {
  display: inline-block;
  margin-left: 14px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ---------------- 服务 ---------------- */
.svc-group { margin-bottom: clamp(32px, 4.6vh, 58px); }
.svc-group:last-child { margin-bottom: 0; }

.svc-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--muted);
}
.svc-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}

.services { list-style: none; margin: 0; padding: 0; }

.services li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(16px, 2.2vh, 24px) 0;
  border-bottom: 1px solid var(--hair);
  transition: padding-left .4s var(--ease);
}
.services li:first-child { border-top: 1px solid var(--hair); }
.services li:hover { padding-left: 10px; }

.svc-no {
  display: none;
}

.services h4 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.3vw, 25px);
  font-weight: 600;
  letter-spacing: .02em;
}
.services p {
  margin: 0;
  max-width: 46em;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}
.svc-price {
  justify-self: end;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------------- 日常 ---------------- */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  padding: clamp(16px, 2.2vh, 22px) 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
  transition: padding-left .4s var(--ease);
}
.posts li:first-child { border-top: 1px solid var(--hair); }
.posts li:hover { padding-left: 10px; }

.post-date {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--accent);
  white-space: nowrap;
}
.post-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: .02em;
}
.post-title a { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.post-title a:hover { border-color: var(--accent); }
.post-desc { margin: 0; color: var(--muted); font-size: 13px; }
.soon {
  display: inline-block;
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--faint);
  font-weight: 400;
}

/* ---------------- 联系 ---------------- */
.contact-lead {
  margin: 0 0 clamp(26px, 4vh, 44px);
  max-width: 40em;
  color: var(--muted);
  font-size: 15px;
}
.contact-list { max-width: 720px; }
.contact-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
  word-break: break-all;
}
.contact-row:first-child { border-top: 1px solid var(--hair); }
.contact-key {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--accent);
}
.contact-val { font-size: clamp(15px, 1.9vw, 19px); }
.contact-val.placeholder { color: var(--faint); font-size: 15px; }

/* 点一下就复制（微信号那种） */
.copy-btn {
  font: inherit;
  font-size: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--hair);
  padding: 0 0 2px;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.copy-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------- 留言 ---------------- */
.guest { margin-top: clamp(38px, 5.6vh, 70px); max-width: 720px; }
.guest h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: .02em;
}
.guest .guest-tip {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
.guest-form { display: grid; gap: 20px; }
.gfield { display: grid; gap: 8px; }
.gfield label {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--accent);
}
.guest-form input,
.guest-form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  padding: 10px 2px;
  outline: none;
  transition: border-color .3s var(--ease);
}
.guest-form input:focus,
.guest-form textarea:focus { border-bottom-color: var(--accent); }
.guest-form textarea { min-height: 128px; resize: vertical; }
.guest-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gsubmit {
  font: inherit;
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.gsubmit:hover { background: var(--accent); color: var(--bg); }
.guest-copy {
  font: inherit;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.guest-copy:hover { color: var(--accent); border-color: var(--accent); }
.guest-status { font-size: 12.5px; color: var(--muted); min-height: 1.4em; }

/* ---------------- 页脚 ---------------- */
.foot { border-top: 1px solid var(--hair); }
.foot-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) var(--pad) clamp(24px, 3vh, 32px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.foot-brand b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.foot-brand p { margin: 0; color: var(--muted); font-size: 12.5px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; align-content: start; }
.foot-nav a { font-size: 12.5px; color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }
.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
}
.foot-contact a:hover { color: var(--ink); }
.foot-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--pad) 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}
.foot-top:hover { color: var(--ink); }

/* ---------- 行动按钮（首屏与结尾共用） ---------- */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: clamp(24px, 3.4vh, 36px) 0 0;
  position: relative;
  z-index: 1;
}
.btn-primary,
.btn-ghost {
  font: inherit;
  font-size: 14px;
  letter-spacing: .14em;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 作品补充说明 ---------- */
.works-note { margin: clamp(26px, 4vh, 40px) 0 0; color: var(--muted); font-size: 13.5px; }
.copy-link {
  font: inherit;
  font-size: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--accent);
  padding: 0 0 1px;
  cursor: pointer;
}

/* ---------- 结尾行动区 ---------- */
.cta-band { border-top: 1px solid var(--hair); background: var(--bg-soft); }
.cta-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--pad); }
.cta-kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.cta-title {
  margin: 0 0 clamp(24px, 4vh, 36px);
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- 入场：一次编排，不逐块抖 ---------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-top,
.hero-title,
.hero-tagline,
.hero-sub,
.hero-index {
  animation: rise .95s var(--ease) both;
}
.hero-top { animation-delay: .05s; }
.hero-title { animation-delay: .18s; }
.hero-tagline { animation-delay: .34s; }
.hero-sub { animation-delay: .42s; }
.hero-index { animation-delay: .52s; }

/* 往下滚的内容：只淡入，不位移 */
.reveal { opacity: 0; transition: opacity .9s var(--ease); }
.reveal.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-top, .hero-title, .hero-tagline, .hero-sub, .hero-index { animation: none; }
  .reveal { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
  .work-thumb img, .work-thumb video { transition: none; }
}

/* ---------------- 大肥鱼挂件 ---------------- */
.dfy {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 45;
}

.dfy-btn {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--panel);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  transition: transform .3s var(--ease), border-color .3s var(--ease), opacity .35s var(--ease);
}
.dfy-btn:hover { transform: translateY(-3px); border-color: var(--accent); }
.dfy.open .dfy-btn { border-color: var(--accent); }

/* 首屏站着看板娘时，右下角小圆头像先让位；滚下去再出现 */
.dfy.dfy-hidden:not(.open) .dfy-btn {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.dfy-btn svg { width: 46px; height: 46px; display: block; }
.dfy-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dfy-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(352px, calc(100vw - 28px));
  max-height: min(580px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hair);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.dfy.open .dfy-panel { display: flex; }

.dfy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
}
.dfy-head .dfy-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--hair);
}
.dfy-head .dfy-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dfy-head .dfy-avatar svg { width: 30px; height: 30px; display: block; }
.dfy-id { display: grid; line-height: 1.35; flex: 1; min-width: 0; }
.dfy-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
}
.dfy-sub { font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.dfy-close {
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 4px;
}
.dfy-close:hover { color: var(--ink); }

.dfy-log {
  padding: 14px 16px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  min-height: 100px;
  flex: 1;
}
.dfy-msg {
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 88%;
  word-break: break-word;
}
.dfy-msg.bot {
  justify-self: start;
  border: 1px solid var(--hair);
  border-bottom-left-radius: 3px;
  color: var(--ink);
}
.dfy-msg.me {
  justify-self: end;
  border: 1px solid var(--accent);
  border-bottom-right-radius: 3px;
  color: var(--accent);
}

.dfy-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.dfy-quick button {
  font: inherit;
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.dfy-quick button:hover { color: var(--accent); border-color: var(--accent); }

.dfy-form {
  display: flex;
  gap: 10px;
  padding: 12px 16px 8px;
  border-top: 1px solid var(--hair);
}
.dfy-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 2px;
  outline: none;
}
.dfy-form input:focus { border-color: var(--accent); }
.dfy-form button {
  font: inherit;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 8px 16px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
}
.dfy-form button:hover { background: var(--accent); color: var(--bg); }

.dfy-note {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--faint);
}

/* 超大屏（2K 显示器）把内容栏放宽一点，别让两边空太多 */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; }
}
@media (min-width: 2000px) {
  :root { --wrap: 1400px; }
}

/* ---------- 手上常用的（工具条） ---------- */
.tools {
  margin: clamp(26px, 4vh, 44px) 0 0;
  padding-top: clamp(18px, 2.6vh, 26px);
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  max-width: 46em;
}
.tools-label {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--accent);
}
.tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tools-list li {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-dim);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- 怎么合作（四步，确实是有顺序的，所以用序号） ---------- */
.flow-wrap { margin-top: clamp(36px, 6vh, 64px); }
.flow {
  list-style: none;
  counter-reset: step;
  margin: clamp(18px, 3vh, 26px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}
.flow li {
  counter-increment: step;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 6px;
}
.flow b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
  margin-bottom: 6px;
}
.flow p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.85;
}

/* ---------- 问答 ---------- */
.faq { max-width: 46em; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  flex: none;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.95;
  max-width: 40em;
}

/* ---------------- 窄屏 ---------------- */
@media (max-width: 860px) {
  .nav-inner { padding: 16px var(--pad); gap: 12px; }
  .nav-brand .brand-tail { display: none; }
  /* 窄屏先收起看板娘，右下角小头像还在，点开就能聊 */
  .hero-mascot { display: none; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .theme-btn { padding: 5px 10px; font-size: 11px; }
  .hero-index { grid-template-columns: 1fr; border-top: 0; }
  .hero-index li,
  .hero-index li + li {
    border-right: 0;
    border-top: 1px solid var(--hair);
    padding: 12px 0;
  }
  .work { grid-column: span 12 !important; }
  .posts li { grid-template-columns: 1fr; gap: 6px; }
  .contact-row { grid-template-columns: 78px minmax(0, 1fr); }
  .dfy-btn { width: 56px; height: 56px; }
  .dfy-btn svg { width: 42px; height: 42px; }
  .dfy-panel { bottom: 70px; width: calc(100vw - 22px); max-height: calc(100vh - 110px); }
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost { width: 100%; text-align: center; }
}

@media (max-width: 560px) {
  .services li { grid-template-columns: 1fr; }
  .svc-price { justify-self: start; padding-top: 4px; }
}

/* 宽屏给她留一条专属通道，正文不钻到她身下 */
@media (min-width: 1100px) {
  :root { --mascot-gutter: clamp(110px, 15vw, 220px); }
  .hero,
  .section,
  .nav-inner,
  .cta-inner,
  .foot-grid,
  .foot-bottom {
    padding-right: calc(var(--pad) + var(--mascot-gutter));
  }
}
/* 中等宽度（平板横屏）：她缩小一点、正文让出的通道也小一点，避免压字 */
@media (min-width: 861px) and (max-width: 1099px) {
  .hero-mascot { width: clamp(110px, 13vw, 165px); }
  .hero,
  .section,
  .nav-inner,
  .cta-inner,
  .foot-grid,
  .foot-bottom {
    padding-right: calc(var(--pad) + clamp(80px, 10vw, 120px));
  }
}
/* ==========================================================
   横向分页：一屏一页，左右切
   .pager 是横向滚动容器，.panel 是每一屏；屏内超长可上下滚。
   ========================================================== */
body.pager-body { overflow: hidden; }

.pager {
  display: flex;
  height: 100vh;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pager::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  flex: 0 0 100vw;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: thin;
}

/* 面板里沿用原来的排版，但改成整屏铺开、内容水平居中 */
.hero.panel,
.section.panel {
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 100%;
  padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  padding-top: clamp(96px, 12.5vh, 150px);
  padding-bottom: clamp(76px, 10vh, 116px);
  border-top: 0;
}

/* 进场：切到哪一屏，哪一屏的内容轻轻上来 */
html.has-js .panel > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.has-js .panel.is-active > * {
  opacity: 1;
  transform: none;
}
html.has-js .panel > *:nth-child(1) { transition-delay: .04s; }
html.has-js .panel > *:nth-child(2) { transition-delay: .10s; }
html.has-js .panel > *:nth-child(3) { transition-delay: .16s; }
html.has-js .panel > *:nth-child(4) { transition-delay: .22s; }
html.has-js .panel > *:nth-child(5) { transition-delay: .28s; }

/* 左右角落的小指示：第几屏 / 共几屏 */
.pager-hint {
  position: fixed;
  left: var(--pad);
  bottom: 22px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
}
.pager-hint b { color: var(--ink); font-weight: 600; }
.pager-arrows { display: flex; gap: 8px; margin-left: 6px; }
.pager-arrows button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.pager-arrows button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.pager-arrows button:disabled { opacity: .3; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .panel > * { opacity: 1; transform: none; transition: none; }
  .pager { scroll-behavior: auto; }
}
/* 窄屏导航：链接改成一条可横向滑动的小条，别把字挤成竖排 */
@media (max-width: 860px) {
  .nav-inner { gap: 8px; }
  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; }
  .theme-btn { flex: 0 0 auto; }
}
/* 没有 JS 时不开场：封面只有 JS 能关，不能把人拦在门口 */
html:not(.has-js) .intro { display: none; }

/* 开场画布：池底的光，垫在文字后面 */
.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  animation: intro-canvas-in 1.5s ease-out .05s forwards;
}
@keyframes intro-canvas-in {
  to { opacity: 1; }
}
.intro-inner {
  position: relative;
  z-index: 1;
}
/* 文字底下垫一团暗光（不是色块，是光），保证在游动的画面里也读得清 */
.intro-plate {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(34px, 5vh, 56px) clamp(40px, 7vw, 84px);
  background: radial-gradient(58% 62% at 50% 48%, rgba(3, 13, 12, .62), rgba(3, 13, 12, .32) 62%, rgba(3, 13, 12, 0) 78%);
}
/* ==========================================================
   博物馆展板层
   参照 MotionSites 免费模板「Neo Museum」的视觉语言：
   米白展签纸、超大压缩黑体、编号 [ 0X ]、细线、标本标注。
   只加视觉，不动排版骨架和交互。
   ========================================================== */

/* ---------- 1. 字体脾气：标题重、标签细、间距拉开 ---------- */
.hero-title,
.section-head h2,
.cta-title,
.svc-group-title,
.post-title,
.work-link,
.about-body h3,
.faq summary,
.contact-lead,
.tools-label,
.flow b {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.022em;
}

.hero-kicker,
.hero-kicker-2,
.hero-tagline,
.tools-label,
.section-num,
.post-date,
.work-year,
.svc-no,
.pager-hint,
.cta-kicker,
.foot-bottom,
.brand-tail {
  font-family: var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- 2. 顶栏：一条细线，字距拉开 ---------- */
.nav-inner {
  border-bottom: 1px solid var(--hair);
  align-items: center;
}
.nav-brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
}
.brand-tail {
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 400;
}
.nav-links a {
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}
.theme-btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 5px 12px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.theme-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- 3. 首屏：顶上压一个大字，被上边缘切掉一截 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  counter-reset: none;
}
.hero::before {
  content: "乾坤";
  position: absolute;
  top: clamp(-90px, -6.5vw, -30px);
  left: 50%;
  z-index: 0;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: clamp(120px, 21vw, 320px);
  font-weight: 900;
  line-height: .74;
  letter-spacing: -.03em;
  color: var(--ink);
  opacity: .07;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero-top {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-title {
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .9;
  text-wrap: balance;
}
.hero-tagline {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-sub {
  font-size: clamp(13.5px, 1.35vw, 16px);
  line-height: 1.85;
  max-width: 30em;
}
.hero-index b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- 3b. 右侧空白处的技术标注（模板那种浮动小标签） ---------- */
.hero-notes {
  position: absolute;
  right: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  top: 30%;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: end;
  pointer-events: none;
}
.hero-notes span {
  position: relative;
  padding-right: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
  white-space: nowrap;
}
.hero-notes span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--faint);
}
@media (max-width: 1100px) {
  .hero-notes { display: none; }
}

/* ---------- 4. 按钮：胶囊 / 细线 ---------- */
.btn-primary,
.btn-ghost,
.copy-btn,
.gsubmit,
.guest-copy,
.dfy-btn,
.pager-arrows button {
  border-radius: 999px;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: .05em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}
.btn-ghost {
  border: 1px solid var(--faint);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .05em;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- 5. 每个段落：编号 [ 01 ] + 更重的标题 ---------- */
.pager {
  counter-reset: sec;
}
.section-head {
  align-items: flex-end;
}
.section-head h2::before {
  counter-increment: sec;
  content: "[ 0" counter(sec) " ]";
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--muted);
}
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.1;
}
.section-lead {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ---------- 6. 四角刻线：像展签的对位标记 ---------- */
.panel {
  position: relative;
}
.panel::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.8vw, 24px);
  z-index: 2;
  pointer-events: none;
  opacity: .5;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint)),
    linear-gradient(var(--faint), var(--faint));
  background-size:
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

/* ---------- 7. 卡片与表单：直角、细线，不用圆角 ---------- */
.work,
.svc-group,
.faq-item,
.post,
.guest-form,
.gfield,
.contact-row,
.flow,
.cta-band,
.dfy-panel {
  border-radius: 2px;
}

/* ---------- 8. 看板娘：加一条标本引线和编号 ---------- */
.hero-mascot::before {
  content: "";
  position: absolute;
  right: calc(100% + 6px);
  top: 26%;
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--faint);
}
.hero-mascot::after {
  content: "SPECIMEN · WR-01";
  position: absolute;
  right: calc(100% + 12px);
  top: calc(26% - 16px);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 9. 翻页指示与进度条：等宽字、细线 ---------- */
.pager-hint {
  font-size: 10px;
  letter-spacing: .16em;
}
.pager-arrows button {
  border: 1px solid var(--faint);
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pager-arrows button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.progress {
  background: var(--ink);
}

/* ---------- 10. 页脚：回到模板那种收尾 ---------- */
.foot {
  border-top: 1px solid var(--hair);
}
.foot-bottom {
  font-size: 10px;
  letter-spacing: .16em;
}

/* ---------- 11. 夜场：黑得更干净 ---------- */
html[data-theme="dark"] .hero::before {
  opacity: .16;
}
html[data-theme="dark"] .nav-inner {
  border-bottom-color: var(--hair);
}

/* ---------- 12. 开场：换成展签那套字 ---------- */
.intro-mark {
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(48px, 7vw, 96px);
  color: #f4f2ec;
}
.intro-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: rgba(244, 242, 236, .55);
}
.intro-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: #e9e6de;
}
.intro-line {
  background: rgba(244, 242, 236, .22);
}
.intro-line::after {
  background: linear-gradient(90deg, transparent, #f4f2ec, transparent);
}

/* ---------- 13. 窄屏导航收紧 ---------- */
@media (max-width: 560px) {
  .nav-inner { padding: 13px 18px; gap: 6px; }
  .nav-brand { font-size: 12.5px; letter-spacing: .02em; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 11px; letter-spacing: .1em; }
  .theme-btn { font-size: 9px; letter-spacing: .08em; padding: 4px 9px; }
}

/* ==========================================================
   工业 / 技术风首屏（参照 MotionSites 免费模板「Planetary Pulse」）
   浅灰场 + 蓝图网格 + 等宽读数 + 玻璃 3D 物体 + 真透视分层视差
   ========================================================== */

.hero {
  --stage: #e9e9e7;
  --stage-ink: #101112;
  --line: rgba(16, 17, 18, .32);
  --faint: rgba(16, 17, 18, .34);
  background: var(--stage);
  color: var(--stage-ink);
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow: hidden;
  perspective-origin: 55% 42%;
}
.hero[data-exhibit="1"] {
  --stage: #22303f;
  --stage-ink: #f2f4f7;
  --line: rgba(242, 244, 247, .34);
  --faint: rgba(242, 244, 247, .4);
}
.hero[data-exhibit="2"] {
  --stage: #14151a;
  --stage-ink: #f2f4f7;
  --line: rgba(242, 244, 247, .3);
  --faint: rgba(242, 244, 247, .36);
}

/* 蓝图网格：只在左上方亮，往右下淡出 */
.stage-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(110% 90% at 28% 18%, #000 26%, transparent 76%);
  mask-image: radial-gradient(110% 90% at 28% 18%, #000 26%, transparent 76%);
}
html.has-js .hero.is-active > .stage-grid { opacity: .16; transform: none; }

/* 舞台上的字全部跟着 --stage-ink 走 */
.hero .hero-title,
.hero .hero-sub,
.hero .hero-tagline,
.hero .hero-kicker,
.hero .hero-kicker-2,
.hero .hero-index b,
.hero .hero-index span { color: var(--stage-ink); }
.hero .hero-sub { color: color-mix(in srgb, var(--stage-ink) 74%, transparent); }
.hero .hero-tagline { color: color-mix(in srgb, var(--stage-ink) 62%, transparent); }
.hero .hero-kicker,
.hero .hero-kicker-2 { color: color-mix(in srgb, var(--stage-ink) 70%, transparent); }
.hero .hero-index span { color: color-mix(in srgb, var(--stage-ink) 62%, transparent); }
.hero .hero-top,
.hero .hero-index,
.hero .hero-index li { border-color: var(--line); }
.hero .hero-mascot::before { background: var(--line); }
.hero .hero-mascot::after { color: color-mix(in srgb, var(--stage-ink) 60%, transparent); }
html.on-stage .hero-mascot::before { background: var(--line); }
html.on-stage .hero-mascot::after { color: color-mix(in srgb, var(--stage-ink) 60%, transparent); }

/* 3D 场景：一层透视包住「字 + 方块」，鼠标一动整层转 */
.stage-scene {
  position: relative;
  z-index: 1;
  perspective: 1100px;
  perspective-origin: 58% 40%;
}
.stage-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s cubic-bezier(.22, .68, .24, 1);
  will-change: transform;
}

.hero .hero-title {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  font-size: clamp(52px, 10.6vw, 158px);
  font-weight: 900;
  letter-spacing: -.05em;
  margin: .06em 0 .1em;
  line-height: .86;
  text-wrap: nowrap;
}
.hero-title.is-swap { animation: stage-swap .55s var(--ease); }
@keyframes stage-swap {
  0%   { opacity: .25; transform: translateY(14px) skewY(1.2deg); }
  100% { opacity: 1; transform: none; }
}

/* 巨字水印：跟鼠标反向走，做出最远的一层 */
.hero::before {
  color: var(--stage-ink);
  opacity: .05;
  transform: translateX(-50%) translate3d(calc(var(--px, 0px) * -1.8), calc(var(--py, 0px) * -1.8), 0);
}

/* 展区按钮 */
.stage-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(18px, 3vh, 30px) 0 0;
}
.stage-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--stage-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.stage-tab i { font-style: normal; opacity: .55; font-size: 9px; }
.stage-tab:hover { border-color: var(--stage-ink); transform: translateY(-1px); }
.stage-tab.is-on {
  background: var(--stage-ink);
  border-color: var(--stage-ink);
  color: var(--stage);
}
.stage-tab.is-on i { opacity: .5; }

/* 舞台上的按钮 */
.hero .btn-primary {
  background: var(--stage-ink);
  color: var(--stage);
  border-color: var(--stage-ink);
}
.hero .btn-primary:hover { background: transparent; color: var(--stage-ink); }
.hero .btn-ghost {
  border-color: var(--line);
  color: var(--stage-ink);
}
.hero .btn-ghost:hover { border-color: var(--stage-ink); background: color-mix(in srgb, var(--stage-ink) 7%, transparent); }

/* 空的读数板（右上角）：跟着鼠标报当前旋转角 */
.stage-read {
  position: absolute;
  right: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  bottom: clamp(150px, 21vh, 220px);
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: color-mix(in srgb, var(--stage-ink) 55%, transparent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* 方块：在 3D 场景里往前站 */
.stage-cube {
  --cube: clamp(150px, 17vw, 240px);
  position: absolute;
  top: 6%;
  right: 3%;
  z-index: 2;
  width: var(--cube);
  height: var(--cube);
  perspective: 900px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translateZ(130px);
  animation: cube-float 7s ease-in-out infinite;
}
.stage-cube:active { cursor: grabbing; }

.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--crx, -14deg)) rotateY(var(--cry, -22deg));
  will-change: transform;
}

.face {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--stage-ink) 62%, transparent);
  background: linear-gradient(142deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .02) 46%, rgba(255, 255, 255, .16));
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: blur(2px) saturate(140%);
  -webkit-backdrop-filter: blur(2px) saturate(140%);
}
/* 一层虹彩，像厚的玻璃 */
.face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 210deg, rgba(120, 220, 255, .35), rgba(255, 150, 220, .3), rgba(160, 255, 190, .3), rgba(255, 230, 150, .3), rgba(120, 220, 255, .35));
  mix-blend-mode: overlay;
  opacity: .55;
}
.face--f { transform: translateZ(calc(var(--cube) / 2)); }
.face--b { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); }
.face--r { transform: rotateY(90deg) translateZ(calc(var(--cube) / 2)); }
.face--l { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); }
.face--u { transform: rotateX(90deg) translateZ(calc(var(--cube) / 2)); }
.face--d { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); }

@keyframes cube-float {
  0%, 100% { transform: translateZ(130px) translateY(0); }
  50%      { transform: translateZ(130px) translateY(-10px); }
}

/* 立绘：比字更靠前，鼠标一动位移最大 */
.hero-mascot {
  transform:
    perspective(1000px)
    translate3d(
      calc(var(--mx, 0px) + var(--px, 0px) * 2.2),
      calc(var(--my, 0px) + var(--py, 0px) * 2.2),
      0)
    rotateX(var(--tx, 0deg))
    rotateY(var(--ty, 0deg));
  transition: transform .55s cubic-bezier(.22, .68, .24, 1);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .26));
}

/* 导航反白／反黑，跟着舞台走 */
html.on-stage .nav { background: linear-gradient(to bottom, var(--stage, #e9e9e7) 32%, transparent); }
html.on-stage .nav-brand,
html.on-stage .nav-links a,
html.on-stage .theme-btn { color: var(--stage-ink, #101112); }
html.on-stage .nav-brand .brand-tail { color: color-mix(in srgb, var(--stage-ink, #101112) 60%, transparent); }
html.on-stage .nav-inner { border-bottom-color: var(--line, rgba(16,17,18,.3)); }
html.on-stage .nav-links a:hover,
html.on-stage .nav-links a.is-active { color: var(--stage-ink, #101112); opacity: .62; }
html.on-stage .theme-btn { border-color: var(--line, rgba(16,17,18,.4)); }
html.on-stage .theme-btn:hover { background: var(--stage-ink, #101112); color: var(--stage, #e9e9e7); }
html.on-stage .pager-hint,
html.on-stage .pager-hint b,
html.on-stage .pager-hint span { color: var(--stage-ink, #101112); }
html.on-stage .pager-arrows button { border-color: var(--line, rgba(16,17,18,.4)); color: var(--stage-ink, #101112); }
html.on-stage .pager-arrows button:hover { background: var(--stage-ink, #101112); color: var(--stage, #e9e9e7); }
html.on-stage .progress { background: var(--stage-ink, #101112); }

@media (prefers-reduced-motion: reduce) {
  .hero, .hero-mascot, .stage-tab, .stage-3d, .stage-cube { transition: none; animation: none; }
  .stage-3d { transform: none; }
  .hero-title.is-swap { animation: none; }
}
@media (max-width: 900px) {
  .stage-cube {
    --cube: clamp(72px, 20vw, 104px);
    top: 10%;
    right: 8%;
    transform: translateZ(70px);
  }
  .stage-read { display: none; }
  .hero .hero-title { font-size: clamp(44px, 11.4vw, 78px); }
  .stage-tab { padding: 7px 13px; font-size: 10px; }
}

/* 方块的六个面：每面都有内容 */
.face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--cube) * .022);
  overflow: hidden;
}
.face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face::before {
  content: "";
  position: absolute;
  inset: calc(var(--cube) * .055);
  border: 1px solid color-mix(in srgb, var(--stage-ink) 20%, transparent);
  pointer-events: none;
}
.face-no {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-weight: 900;
  font-size: calc(var(--cube) * .28);
  line-height: .9;
  letter-spacing: -.05em;
  color: color-mix(in srgb, var(--stage-ink) 86%, transparent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.face-cap {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: calc(var(--cube) * .047);
  letter-spacing: .14em;
  color: color-mix(in srgb, var(--stage-ink) 60%, transparent);
  white-space: nowrap;
}
/* 虹彩别把字盖住 */
.face::after { z-index: 0; opacity: .45; }

.hero-tagline.is-swap { animation: stage-swap .5s var(--ease); }

/* 首屏标题两行：乾坤 / 工作室 */
.hero-title .title-line { display: block; }
.hero .hero-index { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .hero .hero-index { grid-template-columns: repeat(2, 1fr); }
  .hero .hero-index li:nth-child(2) { border-right: 0; padding-right: 0; }
  .hero .hero-index li:nth-child(3) { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
  .hero .hero-index li:nth-child(4) { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
}

/* 首屏别溢出：简介收窄一点，行数刚好 */
.hero .hero-sub { max-width: 46em; }
.hero .hero-tagline { margin-top: clamp(8px, 1.2vh, 14px); }
.hero .stage-tabs { margin-top: clamp(14px, 2.2vh, 24px); }
.hero .hero-cta { margin-top: clamp(14px, 2.2vh, 22px); }
.hero .hero-index { margin-top: clamp(20px, 3vh, 34px); }

/* ==========================================================
   大屏适配：内容宽度跟着屏幕走，不再卡死在 1180px
   （宽屏/高分屏上两边才不会出现大片空白）
   ========================================================== */
@media (min-width: 1200px) {
  :root {
    --wrap: min(2560px, 88vw);
    --pad: clamp(28px, 3.2vw, 110px);
  }
  body { font-size: clamp(16px, .42vw + 10px, 21px); }

  /* 首屏：字跟着屏幕放大 */
  .hero .hero-title { font-size: clamp(96px, 9.4vw, 330px); }
  .hero .hero-sub { font-size: clamp(15px, .55vw + 8px, 22px); }
  .hero-tagline { font-size: clamp(11px, .5vw + 6px, 15px); }
  .hero-kicker, .hero-kicker-2 { font-size: clamp(10px, .35vw + 6px, 14px); }
  .hero-index b { font-size: clamp(11px, .3vw + 7px, 15px); }
  .hero-index span { font-size: clamp(12px, .35vw + 8px, 17px); }
  .stage-tab { font-size: clamp(11px, .3vw + 7px, 15px); padding: .55em 1.15em; }
  .stage-read { font-size: clamp(10px, .28vw + 6px, 13px); }

  /* 方块与立绘 */
  .stage-cube { --cube: clamp(200px, 14.5vw, 360px); }
  .hero-mascot { width: clamp(200px, 12.5vw, 340px); }

  /* 其它页面 */
  .section-head h2 { font-size: clamp(34px, 3.4vw, 84px); }
  .section-lead { font-size: clamp(15px, .5vw + 8px, 21px); }
  .about-body p { font-size: clamp(15px, .5vw + 8px, 21px); }
  .services h4 { font-size: clamp(18px, .7vw + 8px, 26px); }
  .services p, .about-note, .works-note, .post-desc { font-size: clamp(14px, .45vw + 8px, 19px); }
  .svc-price, .work-year, .svc-no, .post-date { font-size: clamp(12px, .3vw + 7px, 15px); }
  .faq summary { font-size: clamp(16px, .55vw + 8px, 22px); }
  .nav-brand { font-size: clamp(16px, .5vw + 9px, 22px); }
  .nav-links a { font-size: clamp(12px, .3vw + 7px, 16px); }
  .pager-hint { font-size: clamp(11px, .28vw + 7px, 15px); }
  .stage-tabs { gap: clamp(8px, .6vw, 14px); }

  /* 竖着也别空：内容从顶部起，索引条压到底部 */
  .hero.panel { padding-bottom: clamp(52px, 6.5vh, 86px); }
  .hero.panel > *:first-child { margin-top: 0; }
  .hero .hero-index { margin-top: auto; }
  .hero.panel > *:last-child { margin-bottom: 0; }
  .hero .hero-index { padding-bottom: clamp(6px, 1.2vh, 18px); }
}

/* ==========================================================
   首屏加料：状态条 / 作品卡 / 跑马灯 / 竖排标签
   ========================================================== */

/* 接单状态：一颗会呼吸的圆点 */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: clamp(10px, .3vw + 7px, 13px);
  letter-spacing: .12em;
  color: color-mix(in srgb, var(--stage-ink) 62%, transparent);
  white-space: nowrap;
}
.hero-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stage-ink);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: .28; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* 作品卡：真封面，浮在文字与方块之间 */
.hero-work {
  position: absolute;
  right: clamp(18px, 23vw, 470px);
  top: 54%;
  z-index: 3;
  display: block;
  width: clamp(150px, 12vw, 260px);
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--stage) 55%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.hero-work img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-work-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(9px, .22vw + 6px, 11px);
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--stage-ink) 70%, transparent);
}
.hero-work-foot b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(11px, .3vw + 7px, 14px);
  letter-spacing: .02em;
  color: var(--stage-ink);
}
.hero-work-foot i { font-style: normal; opacity: .7; white-space: nowrap; }
.hero-work:hover { transform: translateY(-4px); border-color: var(--stage-ink); }

/* 跑马灯：一条一直在走的服务清单 */
.hero-marquee {
  position: relative;
  z-index: 1;
  margin: clamp(8px, 1.3vh, 14px) 0 clamp(6px, 1vh, 11px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 26px);
  padding: clamp(9px, 1.2vh, 13px) 0;
  white-space: nowrap;
  animation: marquee-run 42s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: clamp(11px, .34vw + 7px, 15px);
  letter-spacing: .16em;
  color: color-mix(in srgb, var(--stage-ink) 78%, transparent);
  text-transform: uppercase;
}
.marquee-track i {
  font-style: normal;
  font-size: clamp(10px, .3vw + 6px, 13px);
  color: color-mix(in srgb, var(--stage-ink) 40%, transparent);
}
@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }

/* 左侧竖排标签 */
.hero-side {
  position: absolute;
  left: clamp(8px, 1.2vw, 22px);
  top: 50%;
  z-index: 1;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: clamp(9px, .26vw + 6px, 12px);
  letter-spacing: .34em;
  color: color-mix(in srgb, var(--stage-ink) 42%, transparent);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .hero-work { right: 16px; top: 40%; width: clamp(120px, 15vw, 170px); }
  .hero-side { display: none; }
}
@media (max-width: 900px) {
  .hero-work { display: none; }
  .hero-status { width: 100%; margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-status i { animation: none; }
}

/* 刻度尺：工业风的量尺线 */
.hero-ruler {
  position: relative;
  z-index: 1;
  height: 10px;
  margin: clamp(8px, 1.2vh, 13px) 0 0;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 130px);
  background-size: 100% 6px, 100% 14px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
  opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
@media (max-width: 900px) { .hero-ruler { display: none; } }

/* 首屏是 flex 列，子元素不许被压扁（否则刻度尺和跑马灯会塌成 0 高） */
.hero.panel > * { flex: 0 0 auto; }
.hero-work-foot { flex-wrap: wrap; }
.hero-work-foot b { white-space: nowrap; }

/* 窄屏收尾：品牌名不换行，首屏顶部让开导航 */
@media (max-width: 900px) {
  .nav-brand {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0;
  }
  .hero.panel { padding-top: clamp(92px, 12.5vh, 124px); }
  .hero .hero-marquee { margin-top: 10px; }
}

/* ==========================================================
   内页也放大：标题跟首屏一个量级，正文加大，右上角压巨型编号
   ========================================================== */
.section-head { position: relative; }
.pager { counter-reset: secmark; }
.section-head::before {
  counter-increment: secmark;
  content: "0" counter(secmark);
  position: absolute;
  right: 0;
  top: -.28em;
  z-index: 0;
  font-family: var(--sans);
  font-size: clamp(96px, 11vw, 320px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
  opacity: .06;
  pointer-events: none;
  user-select: none;
}
.section-head h2 { position: relative; z-index: 1; }

@media (min-width: 1200px) {
  .section-head { margin-bottom: clamp(26px, 4vh, 52px); }
  .section-head h2 {
    font-size: clamp(56px, 5.6vw, 168px);
    line-height: .92;
    letter-spacing: -.035em;
  }
  .section-lead {
    font-size: clamp(17px, .55vw + 9px, 26px);
    max-width: 42em;
    margin-bottom: clamp(28px, 4.4vh, 52px);
  }
  .about-body { max-width: 52em; }
  .about-body p { font-size: clamp(16px, .5vw + 9px, 23px); line-height: 1.85; }
  .services h4 { font-size: clamp(21px, .75vw + 10px, 32px); }
  .services p { font-size: clamp(15px, .42vw + 9px, 21px); }
  .svc-group-title { font-size: clamp(14px, .4vw + 8px, 19px); }
  .svc-price { font-size: clamp(13px, .35vw + 8px, 18px); }
  .faq summary { font-size: clamp(18px, .6vw + 9px, 27px); }
  .faq-item p { font-size: clamp(15px, .42vw + 9px, 21px); }
  .flow b { font-size: clamp(16px, .5vw + 9px, 22px); }
  .flow p { font-size: clamp(14px, .4vw + 8px, 19px); }
  .work-link { font-size: clamp(24px, 1vw + 12px, 40px); }
  .work-meta, .work-year { font-size: clamp(13px, .35vw + 8px, 18px); }
  .post-title { font-size: clamp(19px, .65vw + 10px, 28px); }
  .post-desc { font-size: clamp(14px, .4vw + 8px, 19px); }
  .contact-key { font-size: clamp(13px, .35vw + 8px, 18px); }
  .contact-val { font-size: clamp(18px, .6vw + 10px, 28px); }
  .tools-list li { font-size: clamp(13px, .35vw + 8px, 18px); }
}
@media (max-width: 900px) {
  .section-head::before { font-size: clamp(72px, 20vw, 120px); opacity: .07; }
}

/* 超宽屏：正文改双栏，别让右边空着 */
@media (min-width: 1600px) {
  .about-body {
    max-width: none;
    column-count: 2;
    column-gap: clamp(48px, 5vw, 120px);
    column-rule: 1px solid var(--hair);
  }
  .about-body p:first-child { font-size: 1.18em; }
  .about-body p { font-size: clamp(17px, .42vw + 9px, 26px); line-height: 1.8; }
  .hero .hero-sub { font-size: clamp(16px, .5vw + 9px, 24px); }
  .section-lead { font-size: clamp(18px, .5vw + 9px, 28px); }
  .services h4 { font-size: clamp(22px, .7vw + 11px, 36px); }
  .services p { font-size: clamp(16px, .4vw + 9px, 23px); }
  .faq summary { font-size: clamp(19px, .55vw + 9px, 30px); }
  .faq-item p { font-size: clamp(16px, .4vw + 9px, 23px); }
}

/* 内页竖向居中（内容短时别吊在顶上） */
.section.panel { display: flex; flex-direction: column; }
.section.panel > *:first-child { margin-top: auto; }
.section.panel > *:last-child { margin-bottom: auto; }

/* 没有封面的作品：用一块"技术牌"占位，不留假图 */
.work-thumb.is-plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .8vh, 12px);
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, color-mix(in srgb, var(--ink) 5%, transparent) 11px 12px),
    var(--thumb-b);
}
.work-thumb.is-plain::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--hair);
}
.work-thumb.is-plain span {
  position: static;
  font-family: var(--mono);
  font-size: clamp(10px, .3vw + 6px, 14px);
  letter-spacing: .34em;
  color: var(--muted);
}
.work-thumb.is-plain i {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(15px, .5vw + 9px, 24px);
  letter-spacing: -.01em;
  color: var(--ink);
  text-align: center;
  padding: 0 12px;
}
.work:hover .work-thumb.is-plain::before { border-color: var(--accent); inset: 6px; }
