/* ============================================================
   promo.css — 宣传站样式（语义化组件版）
   2026-09-01 老章 · B方案：全量去 Tailwind 化
   类名全部语义化（.card/.qr-card/...），声明由旧工具类等价合并生成
   品牌 token 见各页 head 内 theme-vars（--pds-*）
   ============================================================ */

/* ========== 1. Reset / Base ========== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--pds-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
[data-icon] {
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background-color: currentColor;
}
.icon-svg { display: inline-block; vertical-align: middle; }

/* ========== 2. 语义组件 ========== */
.promo-page { font-family: var(--pds-font-body); background-color: var(--pds-background); color: var(--pds-foreground); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.page-header { background-color: rgba(247, 243, 237, 0.95); border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--pds-border); height: 60px; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.header-inner { padding-left: 16px; padding-right: 16px; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1152px; }
.header-title { font-family: var(--pds-font-display); font-weight: 600; color: var(--pds-foreground); font-size: 20px; line-height: 1.75rem; letter-spacing: -0.025em; }
.header-back-btn { color: var(--pds-foreground); border-radius: var(--pds-radius-full); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.tabbar { background-color: var(--pds-card); border-top-width: 1px; border-top-style: solid; border-color: var(--pds-border); width: 100%; position: sticky; bottom: 0; z-index: 50; }
.tabbar-inner { margin-left: auto; margin-right: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; height: 64px; max-width: 448px; }
.tabbar-item { color: var(--pds-muted-foreground); padding-left: 4px; padding-right: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; gap: 4px; height: 100%; }
.tabbar-item-active { font-weight: 500; color: var(--pds-primary); }
.tabbar-label { font-size: 11px; line-height: 1; white-space: nowrap; }
.fab-docs { position: fixed; top: 16px; right: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--pds-radius-full); border: 1px solid var(--pds-border); background-color: rgba(255, 255, 255, 0.92); color: var(--pds-primary); font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: 0.02em; box-shadow: var(--pds-shadow-md); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fab-docs:hover { color: var(--pds-primary-700); border-color: var(--pds-primary-200); box-shadow: var(--pds-shadow-lg); }
.fab-docs:active { transform: scale(0.97); }
.card-title { font-family: var(--pds-font-display); color: var(--pds-foreground); font-size: 16px; line-height: 1.5rem; }
.card-title-lg { font-family: var(--pds-font-display); color: var(--pds-foreground); font-size: 18px; line-height: 1.75rem; }
.section-title { font-family: var(--pds-font-display); color: var(--pds-foreground); font-size: 20px; line-height: 1.75rem; }
.step-num { font-family: var(--pds-font-display); color: var(--pds-accent); font-size: 18px; line-height: 1.75rem; }
.faq-num { font-family: var(--pds-font-display); color: var(--pds-accent); }
.eyebrow { font-weight: 500; color: var(--pds-accent); font-size: 11px; line-height: 1.25; letter-spacing: 0.3em; text-transform: uppercase; }
.page-title { font-family: var(--pds-font-display); color: var(--pds-foreground); font-size: 30px; line-height: 2.25rem; margin-top: 12px; }
.hero-title { font-family: var(--pds-font-display); color: var(--pds-foreground); font-size: 36px; line-height: 1.05; margin-top: 16px; }
.card-text { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.625; margin-top: 8px; }
.card-list { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.625; margin-top: 8px; }
.card-list-decimal { list-style-type: decimal; padding-left: 20px; }
.card-em { font-weight: 500; color: var(--pds-foreground); font-size: 14px; line-height: 1.25rem; margin-top: 8px; }
.chip-title { font-weight: 500; color: var(--pds-foreground); font-size: 14px; line-height: 1.25rem; }
.chip-desc { color: var(--pds-muted-foreground); font-size: 12px; line-height: 1rem; margin-top: 4px; }
.page-sub { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.25rem; margin-top: 12px; }
.note-text { color: var(--pds-muted-foreground); font-size: 12px; line-height: 1.625; }
.tip-text { color: var(--pds-muted-foreground); font-size: 12px; line-height: 1.625; margin-top: 4px; }
.hero-sub { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.625; margin-top: 16px; max-width: 576px; }
.hero-sub-lg { color: var(--pds-muted-foreground); font-size: 16px; line-height: 1.625; margin-top: 16px; max-width: 576px; }
.page-sub-wide { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.25rem; margin-top: 12px; max-width: 576px; }
.arrow-link { color: var(--pds-primary); }
.em-strong { color: var(--pds-foreground); }
.main-narrow { padding-left: 16px; padding-right: 16px; padding-top: 32px; padding-bottom: 32px; margin-left: auto; margin-right: auto; max-width: 768px; }
.main-wide { padding-left: 16px; padding-right: 16px; padding-top: 32px; padding-bottom: 32px; margin-left: auto; margin-right: auto; max-width: 1152px; }
.main-hero { padding-left: 16px; padding-right: 16px; padding-top: 32px; padding-bottom: 32px; margin-left: auto; margin-right: auto; max-width: 1152px; }
.main-section { padding-left: 16px; padding-right: 16px; padding-bottom: 32px; margin-left: auto; margin-right: auto; max-width: 1152px; }
.main-final { padding-left: 16px; padding-right: 16px; padding-bottom: 48px; margin-left: auto; margin-right: auto; max-width: 1152px; }
.stack-md { margin-top: 32px; }
.stack-sm { margin-top: 16px; }
.search-results { margin-top: 24px; }
.stack-lg { margin-top: 32px; }
.grid-cards { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
.grid-cards-mt4 { margin-top: 16px; }
.grid-cards-mt8 { margin-top: 32px; }
.card { background-color: var(--pds-card); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-lg); box-shadow: var(--pds-shadow-md); padding: 20px; }
.card-mt6 { margin-top: 24px; }
.card-mt8 { margin-top: 32px; }
.card-link { transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); display: block; }
.card-entry { display: flex; align-items: center; justify-content: space-between; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card-entry-solid { background-color: var(--pds-primary); color: var(--pds-primary-foreground); border-radius: var(--pds-radius-lg); box-shadow: var(--pds-shadow-lg); padding: 20px; display: flex; align-items: center; justify-content: space-between; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); }
.step-card { background-color: var(--pds-card); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-lg); box-shadow: var(--pds-shadow-md); padding: 16px; display: flex; align-items: flex-start; gap: 16px; }
.chip-block { background-color: var(--pds-muted); border-radius: var(--pds-radius-md); padding: 16px; }
.tip-block { background-color: var(--pds-muted); border-radius: var(--pds-radius-lg); padding: 16px; }
.promise-block { background-color: var(--pds-muted); border-radius: var(--pds-radius-lg); padding: 20px; }
.promise-block-mt6 { margin-top: 24px; }
.promise-block-mt8 { margin-top: 32px; }
.chip-link { background-color: var(--pds-muted); border-radius: var(--pds-radius-md); padding: 16px; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); display: block; }
.poster-card { background-color: var(--pds-card); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-lg); box-shadow: var(--pds-shadow-md); overflow: hidden; }
.poster-banner { height: 128px; }
.poster-body { padding: 20px; }
.poster-points { color: var(--pds-muted-foreground); font-size: 12px; line-height: 1rem; margin-top: 12px; }
.qr-card { background-color: var(--pds-card); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-lg); box-shadow: var(--pds-shadow-md); padding: 20px; margin-top: 32px; display: flex; align-items: center; gap: 20px; }
.qr-card-full { width: 100%; }
.qr-card-mt6 { margin-top: 24px; }
.qr-card-hero { padding: 20px; margin-top: 24px; }
.qr-box { background-color: var(--pds-muted); border-radius: var(--pds-radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 80px; height: 80px; overflow: hidden; }
.qr-box-lg { width: 80px; height: 80px; }
.qr-img { width: 100%; height: 100%; object-fit: cover; }
.search-input { background-color: var(--pds-card); color: var(--pds-foreground); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-md); font-size: 14px; line-height: 1.25rem; padding-left: 16px; padding-right: 16px; padding-top: 12px; padding-bottom: 12px; margin-top: 24px; width: 100%; }
.btn-block-solid { background-color: var(--pds-primary); color: var(--pds-primary-foreground); border-radius: var(--pds-radius-md); font-size: 14px; line-height: 1.25rem; text-align: center; padding-left: 16px; padding-right: 16px; padding-top: 12px; padding-bottom: 12px; margin-top: 24px; width: 100%; }
.btn-row { margin-top: 32px; display: flex; gap: 12px; }
.btn-ghost { background-color: var(--pds-muted); color: var(--pds-foreground); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-md); font-size: 14px; line-height: 1.25rem; text-align: center; padding-left: 16px; padding-right: 16px; padding-top: 12px; padding-bottom: 12px; flex: 1 1 0%; }
.btn-solid { background-color: var(--pds-primary); color: var(--pds-primary-foreground); border-radius: var(--pds-radius-md); font-size: 14px; line-height: 1.25rem; text-align: center; padding-left: 16px; padding-right: 16px; padding-top: 12px; padding-bottom: 12px; flex: 1 1 0%; }
.lost-page { text-align: center; padding-left: 24px; padding-right: 24px; padding-top: 64px; padding-bottom: 64px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 64px); max-width: 448px; }
.lost-num { font-family: var(--pds-font-display); color: var(--pds-primary); font-size: 72px; line-height: 1; }
.lost-title { font-family: var(--pds-font-display); color: var(--pds-foreground); font-size: 24px; line-height: 2rem; margin-top: 16px; }
.lost-desc { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.25rem; margin-top: 8px; }
.qr-copy-left { text-align: left; }
.note-sm { color: var(--pds-muted-foreground); font-size: 12px; line-height: 1rem; margin-top: 8px; }
.promise-text { color: var(--pds-muted-foreground); font-size: 12px; line-height: 1.625; margin-top: 8px; }
.hero-note { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.25rem; margin-top: 4px; }
.icon-arrow-primary { color: var(--pds-primary); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); display: inline-block; vertical-align: middle; }
.icon-arrow-light { transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); display: inline-block; vertical-align: middle; }
.entry-title-light { font-family: var(--pds-font-display); font-size: 18px; line-height: 1.75rem; }
.entry-desc-light { font-size: 12px; line-height: 1rem; opacity: 0.8; margin-top: 4px; }
.faq-list { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.625; margin-top: 16px; }
.faq-row { display: flex; gap: 12px; }
.noscript-note { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.25rem; margin-top: 24px; }
.card-row-title { color: var(--pds-foreground); font-size: 14px; line-height: 1.25rem; }
.result-row { background-color: var(--pds-card); border-width: 1px; border-style: solid; border-color: var(--pds-border); border-radius: var(--pds-radius-lg); padding: 16px; display: flex; align-items: center; justify-content: space-between; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.16s cubic-bezier(0.2, 0.8, 0.2, 1); }
.search-empty { color: var(--pds-muted-foreground); font-size: 14px; line-height: 1.25rem; }

/* ========== 3. 容器子项间距 ========== */
.card-list > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 12px; }
.search-results > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 24px; }
.poster-points > * + * { margin-top: 4px; }
.faq-list > * + * { margin-top: 12px; }

/* ========== 4. 悬浮态 ========== */
.header-back-btn:hover { background-color: var(--pds-muted); }
.card-link:hover { transform: translateY(-2px); }
.card-entry:hover { transform: translateY(-2px); }
.card-entry-solid:hover { transform: translateY(-2px); }
.chip-link:hover { transform: translateY(-2px); }
.result-row:hover { transform: translateY(-2px); }
.card.card-entry:hover .icon-arrow { transform: translateX(2px); }

/* ========== 5. 表单伪类 ========== */
.search-input:focus { outline: none; }
.search-input:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--pds-ring); }
.search-input::placeholder { color: var(--pds-muted-foreground); }

/* ========== 6. 响应式（md: ≥768px） ========== */
@media (min-width: 768px) {
  .page-title { font-size: 36px; line-height: 2.5rem; }
  .hero-title { font-size: 60px; line-height: 1; }
  .hero-sub { font-size: 16px; line-height: 1.5rem; }
  .hero-sub-lg { font-size: 18px; line-height: 1.75rem; }
  .main-hero { padding-top: 48px; padding-bottom: 48px; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qr-card-hero { padding: 24px; }
  .qr-box-lg { width: 112px; height: 112px; }

}
