/* ==========================================================================
   「叶语脉绣」Mini Program Prototype & Studio Presentation Stylesheet
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--line-body);
  color: var(--text-primary);
  background: var(--bg-studio);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Studio Presentation Layout (Desktop >= 900px vs Mobile < 900px)
   ========================================================================== */
.studio-layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.phone-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
  color: var(--text-primary);
  overflow: hidden;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

.studio-panel {
  display: none;
}

.exit-clean-btn {
  display: none;
}

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(circle at 12% 16%, rgba(28, 91, 70, 0.08), transparent 46%),
      radial-gradient(circle at 86% 84%, rgba(141, 95, 18, 0.07), transparent 44%),
      var(--bg-studio);
  }

  .studio-layout {
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 404px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
  }

  .phone-stage {
    padding: 6px;
  }

  .phone-frame {
    width: 390px;
    height: 844px;
    max-height: calc(100dvh - 56px);
    border-radius: 38px;
    border: 7px solid var(--p-studio-frame);
    box-shadow: var(--phone-shadow);
  }

  .studio-panel {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: var(--sp-7);
    box-shadow: 0 12px 36px rgba(17, 36, 29, 0.06);
  }

  .studio-layout.is-clean {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px;
  }

  .studio-layout.is-clean .studio-panel {
    display: none;
  }

  .studio-layout.is-clean .exit-clean-btn:not(.is-hidden) {
    display: inline-flex;
    align-items: center;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(17, 36, 29, 0.14);
  }

  .studio-layout.is-clean.is-url-clean .exit-clean-btn {
    display: none !important;
  }
}

/* Studio Panel Typography & Controls */
.studio-brand-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-hairline);
}

.studio-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.studio-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.studio-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.studio-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.studio-block-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.studio-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.studio-view-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.studio-view-btn:hover {
  border-color: var(--brand-primary);
}

.studio-view-btn.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

.sv-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.sv-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.studio-screenshot-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.studio-tip-inline {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.studio-brief-content {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.65;
}

.studio-brief-content ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.studio-brief-content li + li {
  margin-top: 4px;
}

.qr-studio-row {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
}

.qr-canvas {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-sm);
  background: var(--p-white);
  border: 1px solid var(--border-hairline);
  flex-shrink: 0;
  image-rendering: pixelated;
}

.qr-studio-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-input-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.qr-input-line {
  display: flex;
  gap: var(--sp-2);
}

.qr-guide-text {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   WeChat Mini Program Top Chrome & Bottom Navigation
   ========================================================================== */
.wx-header {
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: var(--surface-border);
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 10;
}

.wx-statusbar {
  height: 26px;
  padding: 6px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.wx-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wx-navbar {
  height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.wx-nav-left {
  display: flex;
  align-items: center;
}

.mode-pill {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.phone-frame[data-mode="silver"] .mode-pill {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

.wx-nav-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  white-space: nowrap;
}

.phone-frame[data-mode="silver"] .wx-nav-title {
  font-size: 20px;
}

.wx-capsule {
  justify-self: end;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.wx-capsule-btn {
  width: 32px;
  height: 28px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  border-radius: var(--radius-pill);
}

.wx-capsule-divider {
  width: 1px;
  height: 15px;
  background: var(--border-hairline);
}

/* Scrollable View Container */
.app-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.view-panel {
  display: none;
  padding-bottom: 24px;
}

.view-panel.is-active {
  display: block;
}

/* Bottom Tabbar */
.wx-tabbar {
  flex-shrink: 0;
  min-height: var(--tabbar-h);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface);
  border-top: var(--surface-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  z-index: 10;
}

.tab-item {
  min-height: var(--touch-min);
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.phone-frame[data-mode="silver"] .tab-item {
  font-size: 14px;
  font-weight: 700;
}

.tab-item.is-active {
  color: var(--brand-primary);
  background: var(--brand-soft);
  font-weight: 700;
}

/* ==========================================================================
   Shared Controls & Form Primitives
   ========================================================================== */
.btn {
  min-height: var(--touch-min);
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.btn-sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

.phone-frame[data-mode="silver"] .btn-sm {
  min-height: var(--touch-min);
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
}

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand-primary);
  border-color: rgba(28, 91, 70, 0.22);
}

.btn-outline-sm {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.phone-frame[data-mode="silver"] .btn-outline-sm {
  min-height: var(--touch-min);
  font-size: 16px;
  padding: 0 16px;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--p-white);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.text-link-btn {
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-input,
.text-area {
  width: 100%;
  min-height: var(--touch-min);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--font-body);
}

.text-area {
  min-height: 68px;
  resize: vertical;
}

.mono-input {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Horizontal Filter Chips */
.chip-scroll {
  display: flex;
  gap: var(--sp-2);
  padding: 0 var(--sp-4) var(--sp-3);
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-chip.is-selected {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   VIEW 1: 拾叶文创 (mall)
   ========================================================================== */
.hero-specimen {
  position: relative;
  width: 100%;
  height: 296px;
  overflow: hidden;
  background: var(--p-pine-950);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 36, 29, 0.08) 0%,
    rgba(17, 36, 29, 0.42) 48%,
    rgba(17, 36, 29, 0.90) 100%
  );
}

.hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-4);
  color: var(--p-white);
}

.hero-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero-badge {
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 600;
  color: var(--p-white);
}

.hero-badge-gold {
  background: rgba(182, 134, 44, 0.85);
  border-color: rgba(250, 242, 223, 0.35);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--font-hero);
  font-weight: 700;
  line-height: 1.25;
}

.hero-desc {
  margin: 6px 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: var(--sp-2);
}

.hero-actions .btn {
  flex: 1;
  padding: 0 10px;
  font-size: 13px;
}

/* Transparent Craft Economics Bar */
.econ-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
}

.econ-cell {
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.econ-cell:last-child {
  border-right: 0;
}

.econ-value {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
}

.econ-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Section Head & Bag Trigger */
.section-head {
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--font-title);
  font-weight: 700;
  color: var(--text-primary);
}

.section-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.bag-trigger {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.bag-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* Product Ledger Rows (Clean Hairline Structure) */
.product-list {
  margin: 0 var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-bottom: 1px solid var(--border-hairline);
  align-items: stretch;
}

.product-row:last-child {
  border-bottom: 0;
}

.product-thumb-btn {
  padding: 0;
  border: 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 96px;
  height: 96px;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.product-tag-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.product-badge {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.product-badge-gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.product-artisan-share {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.product-name-btn {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.product-spec {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.product-actions {
  display: flex;
  gap: 6px;
}

.add-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.phone-frame[data-mode="silver"] .add-btn {
  min-height: 44px;
  font-size: 15px;
  padding: 0 16px;
}

/* Campus Workshop Section */
.workshop-section {
  margin: var(--sp-5) var(--sp-4) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.workshop-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
}

.workshop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(17, 36, 29, 0.82);
  color: var(--p-white);
  font-size: 11px;
  font-weight: 600;
}

.workshop-content {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.workshop-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.tier-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.tier-btn {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.tier-btn.is-selected {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

.tier-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.tier-price {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.workshop-form-row {
  display: flex;
  gap: var(--sp-2);
}

.workshop-form-row .text-input {
  flex: 1;
  min-width: 0;
}

.status-banner {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  border: 1px solid rgba(28, 91, 70, 0.25);
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   VIEW 2: 一叶一码 (cert) - Embossed Specimen Certificate & Gramophone
   ========================================================================== */
.verify-bar {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify-input-row {
  display: flex;
  gap: var(--sp-2);
}

.verify-input-row .text-input {
  flex: 1;
  min-width: 0;
}

.sample-switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sample-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Scan Loading Viewfinder */
.scan-loader {
  margin: var(--sp-4);
  padding: var(--sp-6) var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.scan-reticle {
  position: relative;
  width: 96px;
  height: 96px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  overflow: hidden;
  background: var(--brand-soft);
}

.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold-mid);
  animation: scan-sweep 1.1s ease-in-out infinite alternate;
}

@keyframes scan-sweep {
  from { top: 8px; }
  to { top: 86px; }
}

.scan-loader-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Error Panel */
.error-panel {
  margin: var(--sp-4);
  padding: var(--sp-4);
  background: var(--seal-red-soft);
  border: 1px solid rgba(180, 55, 40, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.error-icon-wrap {
  color: var(--seal-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.error-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--seal-red);
}

.error-desc {
  margin: 4px 0 10px;
  font-size: 13px;
  color: var(--text-primary);
}

/* Embossed Heritage Certificate */
.certificate-sheet {
  margin: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  outline: 1px solid var(--border-hairline);
  outline-offset: -6px;
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cert-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-hairline);
}

.cert-kicker {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.cert-id {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* Authentic Cinnabar Seal Mark */
.heritage-seal {
  border: 1.5px solid var(--seal-red);
  border-radius: 6px;
  padding: 4px 7px;
  color: var(--seal-red);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-3deg);
  background: var(--seal-red-soft);
  flex-shrink: 0;
}

/* Specimen Stage & WebAR */
.specimen-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  transition: transform var(--dur-fast) var(--ease-out);
  transform-style: preserve-3d;
}

.specimen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.specimen-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chain-pill {
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(17, 36, 29, 0.78);
  color: var(--p-white);
  font-family: var(--font-mono);
  font-size: 10.5px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-toggle-btn {
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(28, 91, 70, 0.9);
  color: var(--p-white);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ar-toggle-btn[aria-pressed="true"] {
  background: var(--accent-gold);
}

.webar-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(17, 36, 29, 0.85);
  color: var(--p-white);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ar-pause-btn {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--p-white);
  font-size: 11px;
  white-space: nowrap;
}

/* 叶语留声机 Box */
.gramophone-box {
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  border: 1px solid rgba(141, 95, 18, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gramophone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gramophone-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-gold);
}

.gramophone-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.gramophone-sender {
  font-size: 12px;
  color: var(--text-secondary);
}

.gramophone-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.audio-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid rgba(141, 95, 18, 0.22);
}

.play-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.waveform-wrap {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.waveform-wrap span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-gold-mid);
  height: 8px;
  transition: height 140ms ease;
}

.waveform-wrap span:nth-child(odd) { height: 14px; }
.waveform-wrap span:nth-child(3n) { height: 22px; }
.waveform-wrap span:nth-child(4n) { height: 11px; }

.waveform-wrap.is-playing span {
  animation: wave-pulse 0.72s ease-in-out infinite alternate;
}

.waveform-wrap.is-playing span:nth-child(2n) { animation-delay: 0.14s; }
.waveform-wrap.is-playing span:nth-child(3n) { animation-delay: 0.28s; }
.waveform-wrap.is-playing span:nth-child(5n) { animation-delay: 0.42s; }

@keyframes wave-pulse {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1.15); }
}

.audio-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.gramophone-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gramophone-tip {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Blessing Editor & Permission Banner */
.blessing-editor {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(141, 95, 18, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.permission-banner {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.permission-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--seal-red);
}

.permission-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.mic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mic-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.blessing-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blessing-submit-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Ledger Sections */
.ledger-section {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ledger-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.privacy-pill {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 600;
}

.ledger-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ledger-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
}

.ledger-item dt {
  font-size: 11px;
  color: var(--text-secondary);
}

.ledger-item dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Artisan Card */
.artisan-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.artisan-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-hairline);
}

.artisan-info {
  flex: 1;
  min-width: 0;
}

.artisan-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.artisan-code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.artisan-bio {
  margin: 4px 0 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.like-artisan-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.like-artisan-btn[aria-pressed="true"] {
  background: var(--seal-red-soft);
  border-color: var(--seal-red);
  color: var(--seal-red);
}

/* Timeline Steps */
.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
}

.timeline-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   VIEW 3: 一城一叶 (atlas)
   ========================================================================== */
.atlas-header-card {
  margin: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atlas-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.atlas-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.atlas-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.atlas-counter {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}

.atlas-count-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

.atlas-count-total {
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
  transition: width var(--dur-base) var(--ease-out);
}

.atlas-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.atlas-carbon {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Atlas Map */
.atlas-map-box {
  position: relative;
  margin: 0 var(--sp-4) var(--sp-3);
  height: 165px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-image:
    radial-gradient(var(--border-hairline) 1px, transparent 1px);
  background-size: 16px 16px;
}

.atlas-svg {
  width: 100%;
  height: 100%;
}

.map-pins {
  position: absolute;
  inset: 0;
}

.map-pin-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 30px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-pin-btn.is-unlocked {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

.map-pin-btn.is-focused {
  box-shadow: 0 0 0 3px rgba(182, 134, 44, 0.45);
}

/* City List */
.city-list {
  margin: 0 var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.city-card {
  padding: var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-card.is-locked {
  border-style: dashed;
  background: var(--bg-canvas);
}

.city-card.is-highlighted {
  border-color: var(--accent-gold);
}

.city-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.city-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
}

.city-leaf-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.city-status-pill {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-primary);
  white-space: nowrap;
}

.city-status-pill.is-locked {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.city-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.city-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-hairline);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   VIEW 4: 银发匠人端 (silver) - WCAG AAA Large Print & >= 56px Touch
   ========================================================================== */
.silver-assist-bar {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-subtle);
  border-bottom: 1.5px solid var(--border-strong);
  display: flex;
  gap: var(--sp-2);
}

.silver-speak-btn {
  flex: 1;
}

.silver-ledger {
  margin: var(--sp-4);
  padding: var(--sp-4);
  background: var(--brand-soft);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.silver-ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.silver-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.silver-income {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.silver-sub {
  font-size: 15px;
  color: var(--text-secondary);
}

.silver-stat-pill {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-primary);
  text-align: center;
  flex-shrink: 0;
}

.silver-stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.silver-stat-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.silver-privacy-note {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 74, 55, 0.25);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.silver-section-head {
  padding: var(--sp-2) var(--sp-4) var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.silver-h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}

.silver-badge-tip {
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
}

.silver-task-list,
.silver-lesson-list {
  margin: 0 var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.silver-task-card {
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.silver-task-card.is-accepted {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

.silver-task-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.silver-task-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.silver-task-pay {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.silver-task-meta {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.silver-lesson-btn {
  width: 100%;
  min-height: var(--touch-min);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.silver-lesson-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.silver-lesson-idx {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.silver-lesson-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.silver-lesson-time {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Modals, Empty States, AIGC Blueprint & Toast
   ========================================================================== */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 36, 29, 0.48);
  z-index: 20;
}

.modal-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86%;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: var(--sheet-shadow);
  z-index: 25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet-header {
  padding: 14px var(--sp-4);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
}

.sheet-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--bg-subtle);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.sheet-body {
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sheet-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-pill {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 600;
}

.opt-pill.is-selected {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

.ai-loading {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
}

.ai-progress-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  overflow: hidden;
  margin-bottom: 8px;
}

.ai-progress-bar {
  width: 68%;
  height: 100%;
  background: var(--brand-primary);
  animation: progress-slide 0.65s ease-in-out infinite alternate;
}

@keyframes progress-slide {
  from { transform: translateX(-25%); }
  to { transform: translateX(45%); }
}

.ai-loading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.ai-result-card {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-svg-stage {
  height: 170px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: grid;
  place-items: center;
}

.empty-state-box {
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.empty-state-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--bg-canvas);
  font-weight: 700;
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.poster-frame {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--p-pine-950), var(--p-jade-700));
  color: var(--p-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poster-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.poster-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
}

.poster-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
}

.wx-toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 14px);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(17, 36, 29, 0.92);
  color: var(--p-white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  z-index: 35;
  box-shadow: 0 8px 24px rgba(17, 36, 29, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .scan-beam,
  .waveform-wrap.is-playing span,
  .ai-progress-bar {
    animation: none !important;
  }
  .specimen-stage {
    transform: none !important;
  }
}
