/* ============================================================
   客片展示 · 温暖电影感视觉系统
   ============================================================ */

/* 手机端书法字体：安卓+苹果通用，从 Google Fonts 加载 */
@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap");

:root {
  /* 色板：暖灰（燕麦灰）+ 雾金 + 燕麦白 —— 保留暖调，整体降饱和。
     底色刻意不用近纯黑：客户手机常贴防窥膜（会压低屏幕亮度），
     纯黑底在暗屏下会和照片糊成一片、小字也发灰看不清。
     现在用暖深灰，照片边界更清楚，暗屏下依然看得清。 */
  --ink: #17140f;
  --ink-2: #1f1b16;
  --ink-3: #272219;
  --ink-4: #332d26;
  --amber: #c6b295;
  --amber-hi: #e6dbc9;
  --amber-dim: rgba(198, 178, 149, 0.16);
  --cream: #f4f0e9;
  --muted: #a9a196;
  --dim: #877f74;

  /* 标题字体：细无衬线（原来是宋体，观感偏公文）。
     --w-display 是全站标题的统一字重，想整体调粗细只改这一个数字：
     200 更轻 / 300 轻 / 400 普通。 */
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --w-display: 300;

  /* 手写体：手机端全部替换为书法手写体（安卓+苹果通用）。
     用 Google Fonts 的「马山正」毛笔书法体，全平台都能加载。
     电脑端也用这个字体，保持全平台一致。 */
  --font-script: "Ma Shan Zheng", "Ma Shan Zheng SC", "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", "KaiTi", "楷体", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* 全站字体：手机端全部用书法手写体，电脑端也保持一致。
     正文和标题都用书法体，全平台统一视觉体验。 */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --pad: clamp(20px, 5vw, 72px);
  --max: 1360px;

  --nav-h: 68px;

  /* 移动端：底部标签栏高度 + iPhone 底部横条安全区（桌面恒为 0） */
  --tabbar-h: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-script);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 手机上点按钮不要闪一层灰色高亮方块 */
  -webkit-tap-highlight-color: transparent;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--amber); color: var(--ink); }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

/* ---------- 全局胶片颗粒 + 暗角 ---------- */

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(3) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 44%, rgba(0, 0, 0, 0.28) 100%);
}

/* ---------- 排版 ---------- */

.display {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  line-height: 1.22;
  letter-spacing: 0.04em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}

.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}

/* ---------- 布局 ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(72px, 12vh, 150px);
  position: relative;
}

.section-head { margin-bottom: clamp(36px, 6vh, 68px); }

.section-head .eyebrow { display: block; margin-bottom: 18px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: var(--w-display);
  line-height: 1.24;
  letter-spacing: 0.03em;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-dim) 18%, var(--amber-dim) 82%, transparent);
  border: 0;
}

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 8000;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-soft), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(23, 20, 15, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom-color: var(--amber-dim);
}

.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-script);
  font-size: 23px;
  font-weight: var(--w-display);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-size: 13.5px;
  letter-spacing: 0.14em;
}

.nav__links a {
  position: relative;
  padding-block: 6px;
  color: var(--muted);
  transition: color 0.4s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--cream); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* ---------- 手机底部标签栏（桌面隐藏，由响应式区块打开） ---------- */

.tabbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 8600;
  background: rgba(23, 20, 15, 0.9);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-top: 1px solid var(--amber-dim);
  padding-bottom: var(--safe-bottom);
}

.tabbar__item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  transition: color 0.35s var(--ease-soft);
}

.tabbar__item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar__item.is-active { color: var(--amber); }

/* 当前栏目在顶边点一道细金线，克制但有指示性 */
.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 1px;
  margin-left: -12px;
  background: var(--amber);
}

/* 首页 Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--nav-h) + 40px) 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 首页背景：照片本身已是柔焦，只做极慢漂移营造氛围，不再叠模糊滤镜（模糊一度让主图"啥也没有"） */
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  filter: saturate(0.9);
  animation: mist-drift 46s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.17) translate(-1.6%, -2.2%); }
}

@keyframes mist-drift {
  from { transform: scale(1.16) translate3d(0, 0, 0); }
  to { transform: scale(1.26) translate3d(-1.4%, -1.8%, 0); }
}


/* 暗角 + 上下收边 + 雾里那束光，凑成电影调色
   调性：燕麦灰的雾，金色压到很淡，暗角也不再压死 */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(130% 98% at 50% 44%, transparent 50%, rgba(23, 20, 15, 0.4) 86%, rgba(23, 20, 15, 0.62) 100%),
    linear-gradient(to bottom, rgba(23, 20, 15, 0.22) 0%, rgba(23, 20, 15, 0.22) 52%, rgba(23, 20, 15, 0.72) 100%),
    radial-gradient(58% 48% at 72% 26%, rgba(198, 182, 158, 0.1), transparent 66%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero .eyebrow {
  display: block;
  margin-bottom: 26px;
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-script);
  font-size: clamp(30px, 6.6vw, 78px);
  font-weight: var(--w-display);
  line-height: 1.24;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  /* 手写体的撇捺会伸出字框，底部留一点空间，别被遮罩动画切掉笔画 */
  padding-bottom: 0.12em;
  margin-bottom: -0.06em;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: mask-up 1.5s var(--ease) forwards;
}

.hero h1 .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.5s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.65s; }

@keyframes mask-up { to { transform: translateY(0); } }

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero__sub {
  max-width: 490px;
  opacity: 0;
  animation: rise 1.3s var(--ease) 0.95s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  opacity: 0;
  animation: rise 1.3s var(--ease) 1.15s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 30px;
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.5s var(--ease-soft), border-color 0.5s, color 0.5s, transform 0.5s var(--ease);
}

.btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 500;
}

.btn--solid:hover { background: var(--amber-hi); border-color: var(--amber-hi); }

.edit-ai {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 14px;
}

.edit-ai:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.edit-ai.is-loading {
  background: var(--amber);
  color: var(--ink);
}

.btn__arrow { transition: transform 0.5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- 滚动揭示 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

/* ---------- 首页：两大分类入口 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 26px);
}

.split__card {
  position: relative;
  min-height: clamp(400px, 62vh, 620px);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3.4vw, 46px);
  isolation: isolate;
}

.split__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.6s var(--ease), filter 1.6s var(--ease);
  filter: saturate(0.9);
}

.split__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(23, 20, 15, 0.94) 6%, rgba(23, 20, 15, 0.42) 46%, rgba(23, 20, 15, 0.14) 100%);
  transition: opacity 0.9s var(--ease);
}

.split__card:hover img { transform: scale(1.055); filter: saturate(1.02); }

.split__body { position: relative; }

.split__card .eyebrow { display: block; margin-bottom: 14px; }

.split__card h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: var(--w-display);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.split__card p {
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
  line-height: 1.9;
}

.split__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.split__more span { transition: transform 0.5s var(--ease); }
.split__card:hover .split__more span { transform: translateX(6px); }

/* ---------- 作品卡片 ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(14px, 2.2vw, 30px);
}

/* 摆拍 · 类型照片墙的分组（点「晨袍人像」这类标签后出现的照片墙） */
.tag-group {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.tag-group__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--amber-dim);
}

.tag-group__head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.tag-group__head span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.work-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--ink-2);
  isolation: isolate;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease), filter 1s var(--ease);
  filter: saturate(0.86) brightness(0.88);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 20, 15, 0.92) 2%, rgba(23, 20, 15, 0.24) 48%, transparent 76%);
}

.work-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }

.work-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.4vw, 30px);
  z-index: 2;
}

.work-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 10px;
}

.work-card__meta i { width: 16px; height: 1px; background: var(--amber); opacity: 0.55; font-style: normal; }

.work-card h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: var(--w-display);
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.work-card__place {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.work-card__story {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(241, 236, 228, 0.72);
  font-size: 13px;
  line-height: 1.85;
  transition: max-height 0.85s var(--ease), opacity 0.7s var(--ease), margin 0.85s var(--ease);
}

.work-card:hover .work-card__story { max-height: 140px; opacity: 1; margin-top: 12px; }

/* ---------- 分类页头 ---------- */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(56px, 11vh, 120px));
  padding-bottom: clamp(30px, 5vh, 56px);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 82px);
  font-weight: var(--w-display);
  line-height: 1.16;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.page-head .lead { max-width: 560px; }

/* 筛选条 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.filter {
  padding: 9px 20px;
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: all 0.45s var(--ease-soft);
}

.filter:hover { color: var(--cream); border-color: rgba(198, 178, 149, 0.4); }

.filter.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 空状态 ---------- */

.empty {
  text-align: center;
  padding: clamp(60px, 12vh, 120px) 20px;
  border: 1px dashed var(--amber-dim);
  border-radius: 6px;
  color: var(--muted);
}

.empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  font-weight: var(--w-display);
  margin-bottom: 12px;
}

.empty code {
  background: var(--ink-3);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--amber);
  font-size: 13px;
}

/* ============================================================
   故事链 —— 电影式滚动叙事
   ============================================================ */

.story-page { background: var(--ink); }

/* 开场 */
.story-open {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: var(--nav-h);
}

.story-open__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-open__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(2px) saturate(0.8);
  animation: kenburns 30s ease-in-out infinite alternate;
}

.story-open__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(23, 20, 15, 0.3), var(--ink) 78%);
}

.story-open__inner { position: relative; z-index: 1; padding-inline: var(--pad); }

.story-open__inner .eyebrow { display: block; margin-bottom: 26px; }

.story-open h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.6vw, 76px);
  font-weight: var(--w-display);
  line-height: 1.18;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.story-open__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 40px;
}

.story-open__meta i { font-style: normal; opacity: 0.4; }

.story-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.3em;
}

.story-scroll-hint span {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: hint 2.4s var(--ease-soft) infinite;
}

@keyframes hint {
  0%, 100% { opacity: 0.25; transform: scaleY(0.55); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* AI 章节导览 */
.story-outline {
  padding-block: clamp(56px, 9vh, 100px);
  border-top: 1px solid var(--amber-dim);
  border-bottom: 1px solid var(--amber-dim);
  background: linear-gradient(to bottom, var(--ink), var(--ink-2));
}

.outline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-dim);
  border-radius: 4px;
  overflow: hidden;
}

.outline-item {
  background: var(--ink);
  padding: 26px 24px;
  text-align: left;
  transition: background 0.6s var(--ease-soft);
  position: relative;
  display: block;
}

.outline-item:hover { background: var(--ink-3); }

.outline-item__no {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
}

.outline-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--w-display);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.outline-item small { color: var(--dim); font-size: 12px; letter-spacing: 0.1em; }

/* 单幕 */
.act {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(60px, 10vh, 110px);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.act__bg {
  position: absolute;
  inset: -6%;
  z-index: 0;
}

.act__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(0.72) blur(6px);
  transform: scale(1.1);
}

.act__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 4%, rgba(23, 20, 15, 0.82) 46%, rgba(23, 20, 15, 0.94) 100%);
}

.act__inner { position: relative; z-index: 1; width: 100%; }

.act__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.act__no {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--amber);
  white-space: nowrap;
}

.act__label i { flex: 1; height: 1px; background: var(--amber-dim); font-style: normal; max-width: 120px; }

.act__time { font-size: 12px; letter-spacing: 0.2em; color: var(--dim); }

.act h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 62px);
  font-weight: var(--w-display);
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

.act__text {
  max-width: 620px;
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 2.15;
  color: rgba(241, 236, 228, 0.8);
  font-weight: 300;
  margin-bottom: 42px;
}

.act__quote {
  border-left: 1px solid var(--amber);
  padding-left: 20px;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.95;
  color: var(--amber-hi);
  max-width: 560px;
}

/* 幕内照片：一张一行、上下排；宽度铺满且横竖图宽度一致，都不裁切，次序即编排次序 */
.act__frames {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.act__frames .frame {
  aspect-ratio: auto;
  width: 100%;
}

.act__frames .frame img {
  height: auto;
  object-fit: fill;
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-2);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}


.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.9);
  transition: transform 1.5s var(--ease), filter 0.9s var(--ease);
}

.frame:hover img { transform: scale(1.07); filter: saturate(1.04) brightness(1); }


/* 尾声 */
.story-coda {
  position: relative;
  padding-block: clamp(90px, 16vh, 180px);
  text-align: center;
  background: linear-gradient(to bottom, var(--ink), #100e0a);
}

.story-coda__inner { max-width: 760px; margin: 0 auto; }

.story-coda .eyebrow { display: block; margin-bottom: 28px; }

.story-coda blockquote {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.3vw, 25px);
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 30px;
  white-space: pre-line;
}

.story-coda__sign {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 52px;
}

.story-coda__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* 沉浸播放模式 */
.play-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 8500;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(23, 20, 15, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--amber-dim);
  transform: translateY(120%);
  transition: transform 0.8s var(--ease);
}

.play-bar.is-visible { transform: none; }

/* 背景音乐开关（故事链页右上角） */
.music-toggle {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 16px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--amber-dim);
  background: rgba(23, 20, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft);
}

.music-toggle svg {
  fill: currentColor;
  flex: none;
}

.music-toggle svg .wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.music-toggle.is-playing {
  color: var(--amber);
  border-color: var(--amber);
}

.music-toggle.is-playing svg .wave {
  animation: music-wave 1.2s ease-in-out infinite;
}

@keyframes music-wave {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.play-bar__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--amber-dim);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.45s var(--ease-soft);
}

.play-bar__btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.play-bar__track {
  flex: 1;
  height: 2px;
  background: var(--ink-4);
  border-radius: 2px;
  overflow: hidden;
}

.play-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi));
}

.play-bar__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(6, 5, 4, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}

.lightbox.is-open { display: flex; animation: fade 0.5s var(--ease); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--amber-dim);
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--cream);
  transition: all 0.4s;
}

.lightbox__close:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--amber-dim);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: all 0.4s;
}

.lightbox__nav:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lightbox__nav--prev { left: clamp(12px, 3vw, 40px); }
.lightbox__nav--next { right: clamp(12px, 3vw, 40px); }

.lightbox__cap {
  position: absolute;
  inset: auto 0 34px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-inline: 20px;
}

/* ---------- AI 说明块 ---------- */

.ai-note {
  border: 1px solid var(--amber-dim);
  border-radius: 6px;
  padding: clamp(24px, 3.4vw, 40px);
  background: linear-gradient(140deg, rgba(198, 178, 149, 0.055), transparent 62%);
}

.ai-note__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 18px;
}

.ai-note__tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(198, 178, 149, 0.6);
  animation: pulse 2.4s infinite;
  font-style: normal;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 11px rgba(198, 178, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 178, 149, 0); }
}

.ai-note h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: var(--w-display);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.ai-note p { color: var(--muted); font-size: 14px; line-height: 2; }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--amber-dim);
  padding-block: clamp(46px, 7vh, 76px);
  background: var(--ink);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-end;
}

.footer__brand {
  font-family: var(--font-script);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: var(--w-display);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer p { color: var(--dim); font-size: 13px; }

.footer .footer__slogan {
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.footer__contact { text-align: right; }
.footer__contact a { color: var(--amber); border-bottom: 1px solid var(--amber-dim); }

/* ============================================================
   响应式 —— 900px 以下按「手机优先」重排
   ============================================================ */

@media (max-width: 900px) {
  :root { --tabbar-h: 56px; }

  /* 给底部标签栏和 iPhone 底部横条让出空间，否则内容会被压住 */
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }

  /* 顶部只留品牌，导航交给底部标签栏，避免一块屏幕塞两套导航 */
  .nav__links { display: none; }
  .nav__inner { justify-content: center; }

  .tabbar { display: flex; }

  /* 首页 */
  .hero { padding-block: calc(var(--nav-h) + 20px) 44px; }
  .hero h1 { margin-bottom: 20px; }
  .hero__cta { margin-top: 30px; }
  .hero__cta .btn { flex: 1; justify-content: center; }

  .section { padding-block: 66px; }
  .section-head { margin-bottom: 30px; }

  .split { grid-template-columns: 1fr; }
  .split__card { min-height: 380px; }
  .split__more { margin-top: 16px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__contact { text-align: left; }

  /* 筛选按钮横着划，不要换成两排占掉半屏 */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: 11px 20px; }

  /* 照片墙：手机上铺两列，一列滑 60 张太累 */
  .works-grid--photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  /* 故事链：不再强制满屏，减少手机上的滑动疲劳 */
  .story-open { padding-block: calc(var(--nav-h) + 20px); }
  .story-open__meta { gap: 8px; font-size: 12px; margin-bottom: 30px; }
  .story-outline { padding-block: 56px; }
  .act { min-height: auto; padding-block: 60px; }
  .act h2 { margin-bottom: 16px; }
  .act__text { margin-bottom: 28px; line-height: 2; }
  .act__quote { padding-left: 16px; margin-bottom: 26px; }
  .act__frames { gap: 8px; }
  .story-coda__actions { flex-direction: column; }
  .story-coda__actions .btn { justify-content: center; }

  /* 播放条要停在标签栏「上面」，不能被压住 */
  .play-bar {
    bottom: calc(var(--tabbar-h) + var(--safe-bottom));
    gap: 12px;
    padding: 12px var(--pad);
  }

  /* 灯箱：翻页钮挪到底部两侧，别挡住照片 */
  .lightbox { padding: 52px 12px calc(72px + var(--safe-bottom)); }
  .lightbox img { max-height: 70vh; }
  .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lightbox__nav {
    top: auto;
    bottom: calc(16px + var(--safe-bottom));
    transform: none;
    width: 46px;
    height: 46px;
  }
  .lightbox__nav--prev { left: calc(50% - 88px); }
  .lightbox__nav--next { right: calc(50% - 88px); }
  .lightbox__cap { bottom: calc(72px + var(--safe-bottom)); font-size: 12px; }
}

@media (max-width: 620px) {
  :root { --nav-h: 56px; }
  body { font-size: 14.5px; }
  .section { padding-block: 56px; }
  .hero h1 { letter-spacing: 0.02em; }
  .act__frames { gap: 6px; }
  .outline-item { padding: 20px 18px; }
  .play-bar__label { display: none; }
  .story-coda blockquote { line-height: 1.95; }
}

/* 触摸设备上鼠标悬停效果会「粘住」，这里做降级：
   需要悬停才出现的信息，改成默认就显示，并去掉会残留的缩放 */
@media (hover: none) {
  .frame:hover img,
  .work-card:hover img,
  .split__card:hover img { transform: none; }


  .work-card__story { max-height: 200px; opacity: 1; margin-top: 10px; }

  .btn:hover { background: rgba(255, 255, 255, 0.02); border-color: var(--amber-dim); color: var(--cream); transform: none; }
  .btn--solid:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
  .btn:hover .btn__arrow { transform: none; }
  .nav__links a:hover { color: var(--muted); }
  .nav__links a:hover::after { transform: scaleX(0); }
  .outline-item:hover { background: var(--ink); }
  .play-bar__btn:hover { background: none; border-color: var(--amber-dim); color: var(--cream); }
  .lightbox__close:hover,
  .lightbox__nav:hover { background: none; border-color: var(--amber-dim); color: var(--cream); }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   故事链编排页（给自己用的工具页，客户看不到）
   ============================================================ */

body.edit-page { padding-bottom: 0; }

/* ---------- 顶栏 ---------- */

.edit-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 20, 15, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--amber-dim);
}

.edit-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 11px var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.edit-bar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--amber-hi);
}

.edit-bar__pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.edit-bar__pick select {
  background: var(--ink-3);
  color: var(--cream);
  border: 1px solid var(--amber-dim);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  max-width: 340px;
}

.edit-bar__pick select option,
.edit-bar__pick select optgroup {
  background: var(--ink-3);
  color: var(--cream);
}

.edit-bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-bar__status { font-size: 12.5px; color: var(--muted); }
.edit-bar__status.is-error { color: #e0906a; }

.edit-bar .btn { padding: 9px 18px; font-size: 12.5px; letter-spacing: 0.1em; }
.edit-bar .btn.is-dirty {
  border-color: var(--amber);
  color: var(--amber-hi);
  box-shadow: 0 0 0 3px var(--amber-dim);
}

.edit-tip {
  margin: 14px var(--pad) 0;
  padding: 12px 18px;
  border: 1px solid rgba(198, 178, 149, 0.3);
  border-radius: 10px;
  background: var(--amber-dim);
  color: var(--amber-hi);
  font-size: 13px;
}

/* ---------- 主体 ---------- */

.edit-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 34px var(--pad) 72px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.edit-sec__head { margin-bottom: 18px; }

.edit-sec__head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--w-display);
  letter-spacing: 0.06em;
}

.edit-sec__head h2 i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--amber-dim);
  border-radius: 50%;
  color: var(--amber);
  font-size: 12.5px;
  flex: none;
}

.edit-sec__head p { margin-top: 8px; font-size: 13px; color: var(--muted); }

.edit-area {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--amber-dim);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--cream);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.95;
  resize: vertical;
  transition: border-color 0.3s var(--ease-soft);
}

.edit-area:focus { outline: none; border-color: var(--amber); }

/* ---------- 一幕一张卡片 ---------- */

.act-cards { display: flex; flex-direction: column; gap: 16px; }

.act-card {
  background: var(--ink-2);
  border: 1px solid rgba(198, 178, 149, 0.12);
  border-radius: 14px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act-card__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.act-card__no {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--amber);
  flex: none;
}

.act-card__time {
  width: 112px;
  background: var(--ink-3);
  border: 1px solid var(--amber-dim);
  border-radius: 7px;
  padding: 5px 9px;
  color: var(--cream);
  font: inherit;
  font-size: 12.5px;
}

.act-card__time:focus { outline: none; border-color: var(--amber); }

.act-card__tools { margin-left: auto; display: flex; gap: 6px; }

.icon-btn {
  padding: 5px 11px;
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}

.icon-btn:hover { color: var(--cream); border-color: var(--amber); }
.icon-btn--danger:hover { color: #e0906a; border-color: #e0906a; }

.act-card__title,
.act-card__quote,
.act-card__text {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--cream);
  font: inherit;
  transition: border-color 0.3s;
}

.act-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.act-card__quote { font-size: 13.5px; color: var(--amber-hi); }

.act-card__text { font-size: 13.5px; line-height: 1.9; resize: vertical; }

.act-card__title:focus,
.act-card__quote:focus,
.act-card__text:focus { outline: none; border-color: var(--amber); }

.act-card__photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.act-card__warn {
  width: 100%;
  font-size: 12.5px;
  color: #e0906a;
  padding: 8px 12px;
  border: 1px dashed rgba(224, 144, 106, 0.4);
  border-radius: 9px;
}

.act-card__shot {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--ink-4);
  flex: none;
}

.act-card__shot img { width: 100%; height: 100%; object-fit: cover; }

.act-card__x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(23, 20, 15, 0.78);
  color: var(--cream);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.act-card__x:hover { background: #e0906a; color: var(--ink); }

.act-card__add {
  width: 96px;
  height: 96px;
  border: 1px dashed var(--amber-dim);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  flex: none;
  transition: color 0.3s, border-color 0.3s;
}

.act-card__add:hover { color: var(--amber); border-color: var(--amber); }

.edit-add-chapter {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  padding: 16px;
  border-style: dashed;
  color: var(--muted);
}

/* ---------- 封面首图 ---------- */

.edit-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-4);
  border: 1px dashed var(--amber-dim);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
}

.edit-cover:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.edit-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-cover__cta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.78);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}

.edit-cover:hover .edit-cover__cta {
  background: var(--amber);
  color: var(--ink);
}

.edit-cover.is-set {
  border-style: solid;
  border-color: var(--amber-dim);
}

.edit-cover.is-set:hover {
  border-color: var(--amber);
}

.edit-cover.is-set .edit-cover__cta {
  background: rgba(23, 20, 15, 0.62);
}

/* ---------- 首页模块封面（摆拍 / 纪实） ---------- */

.edit-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.edit-module {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.edit-module__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: center;
}

.edit-module__path {
  font-size: 11.5px;
  color: var(--amber);
  text-align: center;
  margin-top: 6px;
  word-break: break-all;
}

.edit-module__hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--ink-4);
  border-radius: 8px;
  line-height: 1.7;
}

.edit-cover--sm,
.edit-cover--portrait {
  aspect-ratio: 2 / 3;
}

/* ---------- 选照片弹层 ---------- */

.picker {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 4, 3, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.picker[hidden] { display: none; }

.picker__panel {
  width: min(1080px, 100%);
  max-height: 100%;
  background: var(--ink-2);
  border: 1px solid var(--amber-dim);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.picker__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--amber-dim);
  flex-wrap: wrap;
}

.picker__head strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--w-display);
  letter-spacing: 0.05em;
}

.picker__count { font-size: 12.5px; color: var(--amber); margin-right: auto; }
.picker__head .btn { padding: 9px 18px; font-size: 12.5px; letter-spacing: 0.08em; }

.picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
  padding: 16px 18px calc(18px + var(--safe-bottom));
  overflow-y: auto;
}

.picker__shot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-4);
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.picker__shot img { width: 100%; height: 100%; object-fit: cover; }
.picker__shot.is-on { border-color: var(--amber); }
.picker__shot.is-on img { opacity: 0.5; }
.picker__shot:hover { transform: translateY(-2px); }

.picker__ratio {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(23, 20, 15, 0.72);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.picker__tick {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--amber-hi);
  font-size: 28px;
}

.picker__tick::before { content: "✓"; }
.picker__shot.is-on .picker__tick { display: grid; }

/* ---------- 手机上的编排页 ---------- */

@media (max-width: 900px) {
  .edit-bar__inner { gap: 10px; }
  .edit-bar__pick { order: 3; width: 100%; }
  .edit-bar__pick select { max-width: none; width: 100%; }
  .edit-bar__actions { gap: 8px; }
  .edit-bar__status { font-size: 11.5px; }
  .edit-bar .btn { padding: 8px 14px; font-size: 12px; letter-spacing: 0.04em; }

  .edit-main { padding-top: 24px; gap: 34px; }
  .act-card { padding: 14px; }
  .act-card__tools { width: 100%; margin-left: 0; }

  .act-card__shot,
  .act-card__add {
    width: calc((100% - 16px) / 3);
    height: auto;
    aspect-ratio: 1;
  }

  .picker { padding: 0; }
  .picker__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: none;
    border-radius: 0;
  }
  .picker__grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}

@media (max-width: 620px) {
  .act-card__time { width: 96px; }
  .edit-sec__head h2 { font-size: 18px; }
}
/* ============================================================
   首页 · 手机预览二维码
   只在电脑上打开首页时出现；客户用手机看到的是隐藏状态。
   ============================================================ */

#phone-preview[hidden] { display: none; }

.phone-qr {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(198, 178, 149, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(198, 178, 149, 0.13), transparent 62%),
    var(--ink-2);
}

.phone-qr__code {
  flex: none;
  width: clamp(148px, 18vw, 200px);
  height: auto;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.phone-qr__body h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 12px 0;
}

.phone-qr__body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 300;
}

.phone-qr__url {
  margin-top: 12px;
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.04em;
  word-break: break-all;
}

@media (max-width: 620px) {
  .phone-qr { flex-direction: column; align-items: flex-start; }
}
/* ---------- 页脚：微信号 / 加微信按钮 ---------- */

.footer__wx-id {
  color: var(--amber);
  border-bottom: 1px solid var(--amber-dim);
}

.footer__wx { margin-top: 16px; }

/* ---------- 加微信弹窗 ---------- */

.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}

.wx-modal[hidden] { display: none; }

.wx-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.wx-modal__panel {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100vh - 2 * var(--pad));
  overflow-y: auto;
  padding: 30px 26px 26px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(160deg, rgba(198, 178, 149, 0.1), transparent 60%), var(--ink-2);
  border: 1px solid rgba(198, 178, 149, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.wx-modal__panel h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 10px 0 14px;
}

.wx-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
}

.wx-modal__x:hover { color: var(--amber); background: var(--amber-dim); }

.wx-modal__qr {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.wx-modal__qr[hidden] { display: none; }

.wx-modal__qr img { width: 100%; height: 100%; object-fit: contain; }

.wx-modal__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
}

.wx-modal__id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--amber-dim);
  text-align: left;
}

.wx-modal__label {
  flex: none;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.wx-modal__id strong {
  flex: 1;
  min-width: 0;
  color: var(--amber);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.wx-modal__copy { flex: none; padding: 8px 16px; font-size: 13px; }

.story-coda__wx { margin-top: 30px; }
/* ---------- 标题字重统一 ----------
   下面这些标题原本没写字重、跟着正文走，这里统一收到 --w-display（细体）。
   小号的幕号/序号（.act__no / .outline-item__no / .act-card__no）不在此列，
   字已经很小，再收细就看不清了。 */

.tag-group__head h3,
.act__quote,
.story-coda blockquote,
.act-card__title,
.edit-bar__brand {
  font-weight: var(--w-display);
}
