/* 开物智语 · 响应式静态站 v1 */
:root {
  --ink: #1A1714;
  --paper: #F7F3EC;
  --deep: #2C241C;
  --teal: #3D5A5B;
  --gold: #C4A574;
  --border: #E5DFD3;
  --cream: #fffef9;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 64px;
  --pad-x: 56px;
  --section-pad-y: 72px;
  --section-pad-x: 80px;
  --max: 1440px;
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-width: 320px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ========== Buttons ========== */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary:hover,
.btn-secondary:hover,
.header-cta:hover { opacity: 0.92; }

.btn-primary {
  height: 48px;
  padding: 0 28px;
  background: var(--gold);
  color: var(--ink);
  font-size: 15px;
  border: 1px solid var(--gold);
}
.btn-secondary {
  height: 48px;
  padding: 0 28px;
  background: transparent;
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--teal);
}
.btn-secondary.on-dark {
  color: var(--paper);
  border-color: rgba(247, 243, 236, 0.45);
}
.btn-tertiary {
  height: 48px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--teal);
  border: none;
  border-bottom: 1px solid rgba(61, 90, 91, 0.35);
  border-radius: 0;
  background: transparent;
}
.btn-tertiary::after { content: " →"; }
.header-cta {
  height: 36px;
  padding: 0 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  border: none;
}
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ========== Header ========== */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--border);
  background: rgba(247, 243, 236, 0.94);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.site-header.is-deep {
  background: rgba(44, 36, 28, 0.94);
  border-bottom-color: rgba(229, 223, 211, 0.18);
}
.site-header.is-deep .nav a { color: rgba(247, 243, 236, 0.78); }
.site-header.is-deep .nav a.active,
.site-header.is-deep .nav a:hover { color: var(--paper); }
.site-header.is-deep .nav-toggle span { background: var(--paper); }

.logo { display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.logo img { height: 30px; width: auto; object-fit: contain; }
.site-header.is-deep .logo img { height: 38px; }

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  color: var(--deep);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; }
.nav a.active { color: var(--ink); opacity: 1; font-weight: 600; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(247, 243, 236, 0.98);
  z-index: 99;
  padding: 24px 22px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 14px 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--deep);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.active { color: var(--ink); font-weight: 600; }
body.nav-open { overflow: hidden; }

/* ========== Shared section bits ========== */
.section-label {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--deep);
  opacity: 0.78;
  max-width: 560px;
  margin-bottom: 40px;
}
.tag-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(196, 165, 116, 0.55);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  background: rgba(196, 165, 116, 0.08);
}
.ph-box {
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  margin: 16px;
  border: 1.5px dashed rgba(61, 90, 91, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--teal);
  opacity: 0.7;
  font-size: 13px;
  letter-spacing: 0.12em;
  background: rgba(247, 243, 236, 0.55);
}
.ph-box .ph-icon {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(61, 90, 91, 0.3);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; opacity: 0.55;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 48px var(--section-pad-x) 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-logo img { height: 28px; width: auto; margin-bottom: 10px; }
.footer-tagline {
  font-size: 13px;
  color: var(--deep);
  opacity: 0.55;
  letter-spacing: 0.08em;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--deep);
  opacity: 0.7;
}
.footer-nav a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom span {
  font-size: 12px;
  color: var(--deep);
  opacity: 0.45;
  letter-spacing: 0.06em;
}

/* ========== HOME: Hero ========== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  width: 110%;
  height: auto;
  top: -8%;
  right: -18%;
  opacity: 0.28;
  filter: blur(14px) saturate(0.9);
  transform: scale(1.05);
  max-width: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(247,243,236,0.92) 40%, rgba(247,243,236,0.55) 64%, rgba(247,243,236,0.35) 100%),
    linear-gradient(180deg, rgba(247,243,236,0.4) 0%, transparent 40%, rgba(247,243,236,0.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 28px 64px 72px;
}
.hero-copy .label {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  max-width: 520px;
}
.hero-copy h1 .line { display: block; }
.hero-copy .lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--deep);
  max-width: 480px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 420px;
}
.hero-visual img.zhangfei {
  height: 108%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center 12%;
  filter: drop-shadow(0 18px 40px rgba(26, 23, 20, 0.28));
  margin-bottom: -4%;
  margin-right: 8%;
}
.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 72px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--teal);
  opacity: 0.55;
}
.scroll-hint::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--teal);
}

/* ========== HOME: How ========== */
#how {
  border-top: 1px solid var(--border);
  padding: var(--section-pad-y) var(--section-pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.how-step {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.how-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 28px;
  opacity: 0.9;
}
.how-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  line-height: 1.4;
}
.how-step p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--deep);
  opacity: 0.78;
  flex: 1;
}
.how-icon-line {
  margin-top: 28px;
  height: 1px;
  background: var(--border);
  width: 48px;
}
.how-bust {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 96px;
  height: 110px;
  object-fit: cover;
  object-position: center 8%;
  opacity: 0.35;
  filter: drop-shadow(0 6px 12px rgba(26,23,20,0.18));
  pointer-events: none;
}

/* ========== HOME: Scenes ========== */
#scenes {
  padding: 64px var(--section-pad-x) var(--section-pad-y);
  max-width: var(--max);
  margin: 0 auto;
}
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.scene-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  min-height: 0;
}
.scene-card:hover { border-color: var(--gold); }
.scene-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #ebe4d6;
  flex-shrink: 0;
}
.scene-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
}
.scene-thumb .ph-box { margin: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.scene-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.scene-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.scene-body p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--deep);
  opacity: 0.75;
  flex: 1;
}
.scene-link {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 500;
}
.scene-link::after { content: " →"; }

/* ========== HOME: Case teaser ========== */
#case-teaser {
  background: var(--deep);
  color: var(--paper);
}
.teaser-inner {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 520px;
  max-width: var(--max);
  margin: 0 auto;
}
.teaser-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px 64px 80px;
  background: linear-gradient(105deg, var(--deep) 0%, var(--deep) 80%, rgba(44,36,28,0.5) 100%);
  position: relative;
  z-index: 5;
}
.teaser-copy h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.teaser-copy .lead {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(247, 243, 236, 0.78);
  max-width: 400px;
  margin-bottom: 14px;
}
.teaser-disclaimer {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 236, 0.48);
  margin-bottom: 36px;
  max-width: 400px;
  line-height: 1.6;
}
.teaser-visual {
  position: relative;
  overflow: hidden;
  background: #1a1714;
  min-height: 360px;
}
.teaser-visual .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 32%;
  max-width: none;
}
.teaser-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--deep) 0%, rgba(44,36,28,0.35) 18%, transparent 42%);
  pointer-events: none;
}
.teaser-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(26,23,20,0.12) 0%, transparent 30%, rgba(26,23,20,0.4) 100%);
  pointer-events: none;
}
.teaser-visual .zhangfei {
  position: absolute;
  z-index: 3;
  bottom: -4%;
  left: 6%;
  height: 88%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 14px 36px rgba(0,0,0,0.5));
}

/* ========== HOME: Demo band ========== */
#demo-band { background: var(--deep); }
.band-inner {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 520px;
  max-width: var(--max);
  margin: 0 auto;
}
.band-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #3a3026 0%, var(--deep) 55%, #1f1914 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 360px;
}
.band-visual .zhangfei {
  height: 92%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.45));
  margin-bottom: -2%;
  position: relative;
  z-index: 2;
}
.speech-bubble {
  position: absolute;
  top: 22%;
  right: 12%;
  z-index: 4;
  background: rgba(247, 243, 236, 0.72);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 4px 4px 4px 2px;
  max-width: 168px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  border: 1px solid rgba(229, 223, 211, 0.55);
  opacity: 0.88;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 22px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid rgba(247, 243, 236, 0.72);
}
.speech-bubble p {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 80px 64px 64px;
  border-left: 1px solid rgba(229, 223, 211, 0.12);
}
.band-copy .section-label { color: var(--gold); }
.band-copy h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin-bottom: 20px;
  line-height: 1.25;
}
.band-copy .lead {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 243, 236, 0.78);
  max-width: 420px;
  margin-bottom: 32px;
}

/* ========== DEMO page ========== */
.demo-page {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  max-width: var(--max);
  margin: 0 auto;
}
.demo-char {
  position: relative;
  background: linear-gradient(165deg, #ebe4d6 0%, var(--paper) 45%, #efe8dc 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  padding: 40px 40px 0;
  min-height: 320px;
}
.demo-char .zhangfei {
  height: 82%;
  max-height: 640px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 16px 36px rgba(26, 23, 20, 0.28));
  margin-bottom: -3%;
  position: relative;
  z-index: 2;
}
.char-nameplate {
  position: absolute;
  bottom: 28px;
  left: 48px;
  z-index: 5;
  background: rgba(247, 243, 236, 0.92);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 2px;
}
.char-nameplate .name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.char-nameplate .role {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-top: 2px;
}
.demo-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px 40px;
}
.badge-teal {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(61, 90, 91, 0.4);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  background: rgba(61, 90, 91, 0.06);
}
.demo-main h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 18px;
}
.demo-main .body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--deep);
  opacity: 0.88;
  max-width: 520px;
  margin-bottom: 28px;
}
.slot-hint {
  border: 1.5px dashed rgba(61, 90, 91, 0.35);
  border-radius: 4px;
  background: var(--cream);
  padding: 18px 22px;
  max-width: 520px;
  margin-bottom: 18px;
}
.slot-hint .slot-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 6px;
}
.slot-hint p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--deep);
  opacity: 0.65;
}
.demo-footnote {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--deep);
  opacity: 0.55;
  max-width: 520px;
  line-height: 1.6;
}

/* ========== DEMO gate (QR) ========== */
.demo-gate-panel {
  max-width: 520px;
  margin-bottom: 22px;
  padding: 20px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
}
.demo-qr-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 14px;
  font-weight: 500;
}
.demo-qr-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.demo-qr {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.demo-qr img,
.demo-qr canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.demo-qr-fallback {
  font-size: 13px;
  color: var(--deep);
  opacity: 0.7;
  padding: 24px 8px;
}
.demo-qr-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--deep);
  opacity: 0.65;
  margin-bottom: 14px;
}
.demo-state {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 4px;
  min-height: 1.4em;
}
.demo-state[data-kind="success"] { color: var(--teal); }
.demo-state[data-kind="expired"],
.demo-state[data-kind="error"] { color: #8a4b2e; }
.demo-state[data-kind="loading"] { opacity: 0.7; }
.demo-state-sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--deep);
  opacity: 0.75;
  margin-bottom: 12px;
}
/* ?debug=1 才显示；覆盖 flex 等对 [hidden] 的盖写 */
[data-demo-debug-only][hidden] {
  display: none !important;
}
.demo-payload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.demo-payload {
  flex: 1 1 220px;
  display: block;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  padding: 8px 10px;
  background: rgba(26, 23, 20, 0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--deep);
  max-height: 4.5em;
  overflow: auto;
}
.demo-copy-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}
.demo-ticket-meta {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--deep);
  opacity: 0.5;
  margin-bottom: 16px;
  word-break: break-all;
}
.demo-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 8px;
}
.demo-mock-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(61, 90, 91, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.demo-mock-panel[hidden] { display: none !important; }
.demo-mock-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
  opacity: 0.8;
}
.demo-main .btns { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 22px; }

/* ========== COOPERATE ========== */
.coop-page {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px);
  min-height: calc(100vh - var(--header-h));
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.coop-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.coop-bg img.scene {
  position: absolute;
  width: 70%;
  right: -12%;
  bottom: -20%;
  opacity: 0.12;
  filter: blur(2px);
  max-width: none;
}
.coop-bg .bust {
  position: absolute;
  right: 460px;
  bottom: -8%;
  height: 42%;
  width: auto;
  max-width: none;
  opacity: 0.18;
  filter: drop-shadow(0 8px 20px rgba(26,23,20,0.15));
}
.coop-left {
  position: relative;
  z-index: 2;
  padding: 36px 44px 40px 56px;
  display: flex;
  flex-direction: column;
}
.coop-left .label {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 8px;
}
.coop-left h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.coop-left .lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--deep);
  opacity: 0.88;
  max-width: 600px;
  margin-bottom: 24px;
}
.coop-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.coop-block h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.coop-block li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--deep);
  opacity: 0.88;
  padding: 7px 0;
  border-bottom: 1px solid rgba(229,223,211,0.7);
  display: flex;
  gap: 8px;
}
.coop-block li:last-child { border-bottom: none; }
.coop-block li .n {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  min-width: 18px;
  flex-shrink: 0;
}
.coop-block li .t strong { font-weight: 600; color: var(--ink); }
.coop-block.steps { grid-column: 1 / -1; }
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 14px;
}
.step-card .n {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.step-card .step-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.step-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--deep);
  opacity: 0.78;
}
.coop-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--teal);
  padding: 10px 14px;
  background: rgba(61, 90, 91, 0.05);
  border-left: 2px solid rgba(61, 90, 91, 0.35);
  max-width: 640px;
}
.form-panel {
  position: relative;
  z-index: 2;
  background: var(--cream);
  border-left: 1px solid var(--border);
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
}
.form-panel h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.form-panel .form-lead {
  font-size: 12px;
  color: var(--deep);
  opacity: 0.7;
  margin-bottom: 18px;
  line-height: 1.6;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--deep);
  margin-bottom: 4px;
  opacity: 0.85;
}
.field label .req { color: var(--gold); margin-left: 2px; }
.field input,
.field textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.field textarea {
  height: 72px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 64px;
}
.field input:focus,
.field textarea:focus { border-color: var(--teal); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: #b85c38; }
.field-error {
  display: none;
  font-size: 11px;
  color: #b85c38;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.field-error.is-visible { display: block; }
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.form-actions .btn-primary {
  flex: 1;
  height: 42px;
  font-size: 14px;
  border: none;
}
.form-actions .btn-secondary {
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
}
.form-success {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(61, 90, 91, 0.08);
  border-left: 2px solid var(--teal);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.form-success.is-visible { display: block; }
.form-panel .footer-legal {
  margin-top: auto;
  padding-top: 16px;
  font-size: 11px;
  color: var(--deep);
  opacity: 0.4;
  letter-spacing: 0.06em;
}

/* ========== PRODUCT ========== */
.product-hero {
  display: grid;
  grid-template-columns: 54% 46%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(70dvh);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}
.product-hero .hero-copy {
  padding: 48px 56px 56px 80px;
}
.product-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 16px;
}
.product-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  margin-bottom: 18px;
}
.product-hero .lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--deep);
  opacity: 0.82;
  max-width: 480px;
  margin-bottom: 22px;
}
.product-hero .hint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--teal);
  opacity: 0.85;
  max-width: 460px;
  margin-bottom: 32px;
  padding-left: 14px;
  border-left: 2px solid rgba(61, 90, 91, 0.35);
}
.product-hero .hero-note {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--deep);
  opacity: 0.5;
  line-height: 1.6;
  margin-top: 18px;
}
.product-hero-visual {
  position: relative;
  overflow: hidden;
  background: #ebe4d6;
  min-height: 360px;
}
.product-hero-visual .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
  max-width: none;
}
.product-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(247,243,236,0.55) 14%, transparent 38%);
  pointer-events: none;
}
.product-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(26,23,20,0.28) 100%);
  pointer-events: none;
}
.product-hero-visual .bust {
  position: absolute;
  z-index: 3;
  bottom: -2%;
  right: 6%;
  height: 42%;
  width: auto;
  max-width: none;
  opacity: 0.72;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.28));
}
.product-hero-visual .caption {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  background: rgba(247, 243, 236, 0.92);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 2px;
}
.product-hero-visual .caption .k {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 2px;
}
.product-hero-visual .caption .v {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
}

#product-scenes {
  padding: 56px var(--section-pad-x) 48px;
  max-width: var(--max);
  margin: 0 auto;
}
.scenes-deep {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 18px;
}
.scene-deep {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scene-deep.featured { border-color: rgba(196, 165, 116, 0.55); }
.sd-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #ebe4d6;
  flex-shrink: 0;
}
.sd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
}
.sd-thumb .ph-box { margin: 14px; width: calc(100% - 28px); height: calc(100% - 28px); font-size: 12px; }
.sd-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sd-body .tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.sd-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  line-height: 1.35;
}
.sd-body .sum {
  font-size: 13px;
  line-height: 1.75;
  color: var(--deep);
  opacity: 0.82;
  margin-bottom: 14px;
}
.sd-body ul { margin-top: auto; }
.sd-body li {
  font-size: 12px;
  line-height: 1.65;
  color: var(--deep);
  opacity: 0.7;
  padding: 4px 0 4px 14px;
  position: relative;
}
.sd-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 1px;
}

.product-mid {
  padding: 48px var(--section-pad-x) 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.cap-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
}
.cap-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.cap-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--deep);
  opacity: 0.8;
  margin-bottom: 16px;
}
.cap-card .meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
  opacity: 0.75;
  line-height: 1.7;
}

.cta-band {
  background: var(--deep);
  color: var(--paper);
  padding: 56px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  max-width: 620px;
}
.cta-band .sub {
  font-size: 13px;
  color: rgba(247,243,236,0.55);
  margin-top: 10px;
  letter-spacing: 0.04em;
}
.cta-band .btns { flex-shrink: 0; }

/* ========== CASE page ========== */
.case-hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(70dvh);
  overflow: hidden;
  background: var(--deep);
  color: var(--paper);
  max-width: var(--max);
  margin: 0 auto;
}
.case-copy {
  position: relative;
  z-index: 5;
  background: linear-gradient(105deg, var(--deep) 0%, var(--deep) 78%, rgba(44,36,28,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 56px 64px;
}
.case-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
  opacity: 0.9;
}
.case-copy .page-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.case-copy .page-lead {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247,243,236,0.78);
  max-width: 440px;
  margin-bottom: 28px;
}
.case-divider {
  width: 48px;
  height: 1px;
  background: rgba(196,165,116,0.45);
  margin-bottom: 22px;
}
.case-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  margin-bottom: 28px;
}
.case-visual {
  position: relative;
  overflow: hidden;
  background: #1a1714;
  min-height: 360px;
}
.case-visual .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 32%;
  max-width: none;
}
.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--deep) 0%, rgba(44,36,28,0.35) 18%, transparent 42%);
  pointer-events: none;
}
.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(26,23,20,0.15) 0%, transparent 30%, rgba(26,23,20,0.35) 100%);
  pointer-events: none;
}
.case-visual .zhangfei {
  position: absolute;
  z-index: 3;
  bottom: -2%;
  left: 2%;
  height: 96%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,0.5));
}
.case-visual .guide {
  position: absolute;
  z-index: 4;
  bottom: -1%;
  right: 4%;
  height: 38%;
  width: auto;
  max-width: none;
  opacity: 0.88;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.case-section {
  padding: 64px var(--section-pad-x) 56px;
  max-width: var(--max);
  margin: 0 auto;
}
.case-section .section-title { font-size: clamp(26px, 2.8vw, 32px); }
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.point {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 26px;
  min-height: 160px;
}
.point .n {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.point h3 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  line-height: 1.4;
}
.point p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--deep);
  opacity: 0.78;
}
.point.planned { border-style: dashed; }
.note-box {
  font-size: 13px;
  line-height: 1.7;
  color: var(--teal);
  padding: 14px 18px;
  background: rgba(61,90,91,0.05);
  border-left: 2px solid rgba(61,90,91,0.35);
  max-width: 720px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.more-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.more-thumb {
  height: 160px;
  background: #ebe4d6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.more-thumb .ph-box { margin: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.more-body { padding: 24px 22px; }
.more-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  line-height: 1.4;
}
.more-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--deep);
  opacity: 0.78;
}

.how-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.how-step-sm {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 22px;
  min-height: 180px;
}
.how-step-sm .n {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.how-step-sm h3 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  :root {
    --pad-x: 32px;
    --section-pad-x: 40px;
    --section-pad-y: 56px;
  }
  .nav { gap: 24px; }
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }
  .scenes-deep { grid-template-columns: 1fr 1fr; }
  .how-grid-4 { grid-template-columns: 1fr 1fr; }
  .coop-bg .bust { display: none; }
  .speech-bubble { max-width: 150px; right: 6%; top: 14%; padding: 10px 14px; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 56px;
    --pad-x: 20px;
    --section-pad-x: 22px;
    --section-pad-y: 40px;
  }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { height: 32px; padding: 0 14px; font-size: 12px; }
  .logo img { height: 24px; }
  .site-header.is-deep .logo img { height: 30px; }

  .section-title { font-size: 26px; letter-spacing: 0.08em; }
  .section-lead { font-size: 13px; margin-bottom: 24px; }
  .section-label { font-size: 11px; letter-spacing: 0.22em; }

  /* Hero mobile: character on top, copy below */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual {
    order: -1;
    height: 42vw;
    min-height: 280px;
    max-height: 360px;
  }
  .hero-visual img.zhangfei {
    height: 115%;
    margin-right: 0;
  }
  .hero-copy {
    padding: 16px 22px 40px;
    background: linear-gradient(180deg, transparent, var(--paper) 12%);
  }
  .hero-copy .label { font-size: 11px; letter-spacing: 0.24em; margin-bottom: 8px; }
  .hero-copy h1 { font-size: 24px; letter-spacing: 0.04em; margin-bottom: 10px; }
  .hero-copy .lead { font-size: 12.5px; line-height: 1.75; margin-bottom: 16px; }
  .hero-copy .btns { gap: 10px; }
  .hero-copy .btn-primary,
  .hero-copy .btn-secondary { flex: 1; height: 44px; font-size: 14px; padding: 0 12px; }
  .scroll-hint { display: none; }
  .hero-bg img { width: 160%; right: -40%; top: -5%; opacity: 0.22; filter: blur(12px); }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(247,243,236,0.55) 0%, rgba(247,243,236,0.2) 35%, rgba(247,243,236,0.88) 72%, var(--paper) 100%);
  }

  .how-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-step { padding: 22px 20px 20px; }
  .how-num { font-size: 32px; margin-bottom: 12px; }
  .how-step h3 { font-size: 18px; margin-bottom: 8px; }
  .how-step p { font-size: 13px; }
  .how-bust { width: 64px; height: 72px; right: 8px; bottom: 4px; }

  .scenes-grid { grid-template-columns: 1fr; gap: 14px; }
  .scene-thumb { height: 140px; }
  .scene-body { padding: 16px; }
  .scene-body h3 { font-size: 18px; }
  .scene-body p { font-size: 12.5px; margin-bottom: 12px; }
  .scene-link {
    display: block;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border: 1px solid rgba(61,90,91,0.35);
    border-radius: 2px;
    margin-top: 4px;
  }
  .scene-link::after { content: ""; }

  .teaser-inner { grid-template-columns: 1fr; }
  .teaser-copy { padding: 40px 22px; order: 1; }
  .teaser-visual { order: 2; min-height: 320px; height: 360px; }
  .teaser-copy h2 { font-size: 28px; }
  .teaser-btns .btn-primary,
  .teaser-btns .btn-secondary { width: 100%; }
  .teaser-btns { flex-direction: column; align-items: stretch; }

  .band-inner { grid-template-columns: 1fr; }
  .band-visual { min-height: 300px; height: 340px; order: 1; }
  .band-copy { order: 2; padding: 36px 22px 48px; border-left: none; border-top: 1px solid rgba(229,223,211,0.12); }
  .band-copy h2 { font-size: 26px; }
  .band-btns { flex-direction: column; align-items: stretch; }
  .band-btns .btn-primary,
  .band-btns .btn-secondary { width: 100%; }
  .speech-bubble { top: 12%; right: 12px; left: auto; max-width: 148px; }

  .footer-top { flex-direction: column; gap: 20px; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .site-footer { padding: 36px 22px 32px; }

  /* Demo */
  .demo-page { grid-template-columns: 1fr; min-height: auto; }
  .demo-char {
    min-height: 240px;
    height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 16px 0;
  }
  .demo-char .zhangfei { height: 100%; max-height: none; }
  .char-nameplate { left: 16px; bottom: 16px; }
  .demo-main { padding: 32px 22px 40px; }
  .demo-main .btns { flex-direction: column; align-items: stretch; }
  .demo-main .btn-primary,
  .demo-main .btn-secondary { width: 100%; }
  .demo-main .btn-tertiary { justify-content: flex-start; height: auto; padding: 8px 0; }
  .demo-gate-panel { padding: 16px; }
  .demo-qr { width: 180px; height: 180px; }
  .demo-gate-actions { flex-direction: column; align-items: stretch; }
  .demo-gate-actions .btn-primary,
  .demo-gate-actions .btn-secondary { width: 100%; }
  .demo-gate-actions .btn-tertiary { justify-content: flex-start; height: auto; padding: 8px 0; }
  .demo-payload-row { flex-direction: column; }
  .demo-copy-btn { width: 100%; }

  /* Cooperate */
  .coop-page { grid-template-columns: 1fr; }
  .coop-left { padding: 28px 22px 24px; }
  .coop-blocks { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .form-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 28px 22px 32px;
  }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-secondary { width: 100%; }

  /* Product */
  .product-hero { grid-template-columns: 1fr; min-height: auto; }
  .product-hero .hero-copy { padding: 32px 22px 28px; order: 1; }
  .product-hero-visual { order: 2; min-height: 280px; height: 300px; }
  .product-hero-visual::before {
    background: linear-gradient(180deg, var(--paper) 0%, transparent 30%);
  }
  .product-hero .btn-primary,
  .product-hero .btn-secondary { flex: 1; height: 44px; font-size: 14px; }
  .scenes-deep { grid-template-columns: 1fr; }
  .product-mid { grid-template-columns: 1fr; gap: 16px; padding: 32px 22px; }
  .cap-card { padding: 24px 20px; }
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 22px;
    text-align: left;
  }
  .cta-band .btns { flex-direction: column; }
  .cta-band .btn-primary,
  .cta-band .btn-secondary { width: 100%; }

  /* Case */
  .case-hero { grid-template-columns: 1fr; min-height: auto; }
  .case-copy { padding: 36px 22px 40px; order: 1; }
  .case-visual { order: 2; min-height: 360px; height: 400px; }
  .case-visual .zhangfei { height: 92%; left: 0; }
  .case-visual .guide { height: 32%; }
  .case-copy .btns { flex-direction: column; align-items: stretch; }
  .case-copy .btn-primary,
  .case-copy .btn-secondary { width: 100%; }
  .case-section { padding: 40px 22px; }
  .points { grid-template-columns: 1fr; gap: 14px; }
  .more-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .how-step-sm { min-height: 0; padding: 22px 18px; }
}

@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr; }
  .speech-bubble { display: none; } /* keep layout clean on very small; content still in band copy */
}

/* ========== DEMO EMBED (phone frame) ========== */
.demo-embed-page {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 420px) minmax(200px, 280px);
  gap: 28px 36px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 48px 56px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  box-sizing: border-box;
}
.demo-embed-copy {
  padding-top: 12px;
}
.demo-embed-copy h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.demo-embed-copy .body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--deep);
  opacity: 0.88;
  max-width: 420px;
  margin-bottom: 18px;
}

/* Demo · 角色切换（景区 / 推广大使）；总提示不上屏 */
.demo-role-switch {
  max-width: 420px;
  margin: 0 0 20px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(61, 90, 91, 0.04);
  box-sizing: border-box;
}
.demo-role-switch-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 10px;
}
.demo-role-switch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.demo-role-tab {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  margin: 0;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1.5px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.demo-role-tab:hover {
  background: rgba(61, 90, 91, 0.08);
}
.demo-role-tab.is-active,
.demo-role-tab[aria-selected="true"] {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}
.demo-role-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--deep);
  opacity: 0.88;
}
@media (max-width: 800px) {
  .demo-role-tab {
    font-size: 12px;
    padding: 7px 12px;
  }
}
.demo-embed-quota {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 20px;
  min-height: 1.4em;
}
.demo-embed-quota[data-kind="exhausted"] {
  color: #8a4b2e;
}
.demo-embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 14px;
}
.demo-embed-dev-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--deep);
  opacity: 0.55;
  max-width: 420px;
}
.demo-embed-dev-hint code {
  font-size: 11px;
}
.demo-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.demo-phone-frame {
  position: relative;
  width: 375px;
  max-width: 100%;
  height: 720px;
  max-height: min(812px, calc(100dvh - var(--header-h) - 48px));
  background: #0b2d29;
  border-radius: 36px;
  border: 10px solid #1a1714;
  box-shadow:
    0 24px 60px rgba(26, 23, 20, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-sizing: border-box;
}
.demo-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  background: #1a1714;
  border-radius: 12px;
  z-index: 3;
  pointer-events: none;
}
.demo-phone-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b2d29;
  z-index: 1;
}
.demo-embed-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: rgba(247, 243, 236, 0.85);
  font-size: 14px;
  letter-spacing: 0.08em;
  background: #0b2d29;
}
.demo-embed-status[hidden] { display: none !important; }
.demo-embed-src-meta {
  margin-top: 10px;
  font-size: 11px;
  word-break: break-all;
  opacity: 0.45;
  max-width: 375px;
}
.demo-more-panel {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
  align-self: center;
}
.demo-more-panel .btn-secondary {
  display: inline-flex;
  margin-top: 14px;
}
.demo-more-title {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.demo-more-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--deep);
  opacity: 0.75;
  margin-bottom: 16px;
}
.demo-more-qr-row {
  display: flex;
  gap: 14px;
}
.demo-more-qr {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--teal);
}
.demo-qr-placeholder {
  width: 100%;
  aspect-ratio: 1;
  max-width: 120px;
  border: 1.5px dashed rgba(61, 90, 91, 0.45);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(61, 90, 91, 0.7);
  background: rgba(61, 90, 91, 0.04);
}
.demo-debug-gate {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 48px;
}
.demo-debug-inner {
  border: 1px dashed rgba(138, 75, 46, 0.45);
  background: rgba(138, 75, 46, 0.04);
  border-radius: 4px;
  padding: 20px 22px;
}
.demo-debug-title {
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.demo-debug-note {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.75;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .demo-embed-page {
    grid-template-columns: minmax(200px, 1fr) minmax(280px, 375px);
    padding: 28px 28px 48px;
  }
  .demo-more-panel {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 800px) {
  .demo-embed-page {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
    gap: 20px;
  }
  .demo-embed-copy {
    order: 1;
    padding-top: 0;
  }
  .demo-phone-col {
    order: 2;
    width: 100%;
  }
  .demo-phone-frame {
    width: min(100%, 375px);
    height: min(720px, calc(100dvh - var(--header-h) - 120px));
    min-height: 560px;
    border-radius: 28px;
    border-width: 8px;
  }
  .demo-more-panel {
    order: 3;
    max-width: none;
  }
  .demo-debug-gate { padding: 0 16px; }
}

@media (max-width: 420px) {
  .demo-phone-frame {
    width: 100%;
    border-radius: 20px;
    border-width: 6px;
    height: min(680px, calc(100dvh - var(--header-h) - 100px));
  }
  .demo-phone-notch { display: none; }
}

/* === Demo dual-entry pick + back-link (local A+B) === */
.demo-pick {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad-x) 64px;
}
.demo-pick h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--ink);
}
.demo-pick .lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--deep);
  opacity: 0.88;
  max-width: 42em;
  margin-bottom: 36px;
}
.demo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.demo-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 420px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-card:hover {
  border-color: rgba(196, 165, 116, 0.65);
  box-shadow: 0 12px 32px rgba(26, 23, 20, 0.06);
}
.demo-card-visual {
  position: relative;
  height: 280px;
  background: linear-gradient(180deg, rgba(61, 90, 91, 0.08) 0%, rgba(247, 243, 236, 0.4) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.demo-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}
.demo-card-figure {
  position: relative;
  z-index: 1;
  height: 255px;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}
.demo-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.demo-card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid rgba(61, 90, 91, 0.35);
  color: var(--teal);
  background: rgba(61, 90, 91, 0.06);
}
.demo-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.35;
}
.demo-card-diff {
  font-size: 14px;
  line-height: 1.75;
  color: var(--deep);
  opacity: 0.88;
  flex: 1;
}
.demo-card-sub {
  font-size: 12px;
  line-height: 1.6;
  color: var(--deep);
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.demo-card .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}
.demo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(61, 90, 91, 0.35);
  padding-bottom: 2px;
  margin-bottom: 18px;
  text-decoration: none;
}
.demo-back-link:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .demo-cards { grid-template-columns: 1fr; }
  .demo-pick { padding: 32px 22px 48px; }
}
