/* =====================================================
   小羊拼豆 · 官网首页样式（独立于 style.css，不与其冲突）
   ===================================================== */

/* ---------------- 设计规范 ---------------- */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #f8f9fb;
  --border: #e4e6eb;
  --border-strong: #d0d3da;

  --text: #2b2b33;
  --text-secondary: #6b7280;
  --text-light: #9aa0a8;

  --primary: #4a7ba6;
  --primary-hover: #3f6f99;
  --primary-soft: #eaf2f9;

  --success: #3f9d63;
  --danger: #d9534f;

  --radius: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 40, .06);
  --shadow-md: 0 2px 8px rgba(20, 24, 40, .08);
  --shadow-lg: 0 10px 28px rgba(20, 24, 40, .10);

  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: Consolas, "Courier New", monospace;

  --header-h: 60px;
}

/* ---------------- Reset ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 820px; }

button { font-family: inherit; cursor: pointer; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); }

.btn-light-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light-ghost:hover { background: rgba(255,255,255,.22); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
  white-space: nowrap;
}

.brand-logo { font-size: 22px; line-height: 1; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a { font-size: 14.5px; color: var(--text-secondary); transition: color .15s ease; }
.main-nav a:hover { color: var(--primary); }

.main-nav .nav-cta {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--primary-hover); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 420px at 85% -10%, var(--primary-soft), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d7e4ef;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: .5px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 26px;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.hero-points li::before { content: "✓"; color: var(--success); margin-right: 6px; font-weight: 700; }

/* Hero 展示区 */
.hero-showcase {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.step {
  width: 98px;
  text-align: center;
  opacity: .45;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.step.is-active { opacity: 1; transform: translateY(0); }

.step img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 6px;
  margin: 0 auto 8px;
}

.step figcaption {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.step-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  display: inline-block;
}

.step-arrow { font-size: 20px; color: var(--primary); font-weight: 700; flex: 0 0 auto; }

.hero-chip {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.hero-chip strong { color: #ffd76e; }

.hero-dots {
  position: absolute;
  bottom: -46px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  transition: background .2s ease, transform .2s ease;
  padding: 0;
}
.dot.is-active { background: var(--primary); transform: scale(1.25); }

/* ---------------- 数据条 ---------------- */
.stats-band {
  background: var(--text);
  color: #fff;
  padding: 30px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #ffd76e;
  line-height: 1.2;
}
.stat span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.78); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: .4px; margin-bottom: 10px; }
.section-head p { font-size: 15.5px; color: var(--text-secondary); }

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* ---------------- AI 工作流程 ---------------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: wf;
}

.workflow li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.workflow li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.workflow li::before {
  counter-increment: wf;
  content: counter(wf);
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}

.wf-icon { font-size: 30px; margin-bottom: 12px; }
.workflow h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.workflow p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------------- Before / After ---------------- */
.ba {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
  user-select: none;
  touch-action: none;
}

.ba-base, .ba-top { position: absolute; inset: 0; }
.ba-base { position: relative; }

.ba img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface-alt);
}

.ba-top {
  clip-path: inset(0 0 0 var(--pos, 50%));
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.35);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle::after {
  content: "⇔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  box-shadow: var(--shadow-md);
}

/* ---------------- 套餐与购买 ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.pricing-card-name { font-size: 18px; font-weight: 700; }

.pricing-badge {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d7e4ef;
  padding: 3px 8px;
  border-radius: 999px;
}
.pricing-badge.is-free { color: var(--success); background: #eaf6ef; border-color: #d2ead9; }
.pricing-badge.is-recommend {
  color: #fff;
  background: linear-gradient(135deg, #4a7de0, #3a66c8);
  border-color: transparent;
}
.pricing-badge.is-value {
  color: #9a5b00;
  background: #fff3d6;
  border-color: #f0d9a8;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 16px;
}
.pricing-currency { font-size: 16px; font-weight: 700; color: var(--text); }
.pricing-amount { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-per { font-size: 13px; color: var(--text-light); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.pf-icon { width: 18px; text-align: center; flex-shrink: 0; }

.pricing-btn { width: 100%; min-height: 44px; }

.pricing-loading { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); padding: 24px 0; }
.pricing-loading.is-error { color: var(--danger); }

.pricing-note {
  max-width: 720px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.pricing-note a { color: var(--primary); text-decoration: underline; }
.pricing-note b { color: var(--text); }

/* ---------------- 购买确认弹窗 ---------------- */
.buy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 24, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: buyFade .18s ease;
}
.buy-modal-backdrop[hidden] { display: none; }

.buy-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.buy-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
}
.buy-modal-close:hover { color: var(--text); background: var(--border); }

.buy-modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 16px; }

.buy-plan-name { font-size: 15px; color: var(--text-secondary); }
.buy-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0 18px;
}
.buy-price-amount { font-size: 30px; font-weight: 800; }
.buy-price-per { font-size: 13px; color: var(--text-light); }

.buy-provider-wrap { margin: 0 0 16px; }
.buy-provider-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.buy-provider-group {
  display: flex;
  gap: 10px;
}
.buy-provider-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.buy-provider-option:hover { border-color: var(--primary); }
.buy-provider-option input { accent-color: var(--primary); margin: 0; }
.buy-provider-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(74, 125, 224, .06);
  font-weight: 600;
}

/* ---- 购买弹窗：订单摘要 ---- */
.buy-summary {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.buy-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
}
.buy-summary-row .k { color: var(--text-secondary); }
.buy-summary-row .v { color: var(--text); font-weight: 700; }
.buy-summary-row.total {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
}
.buy-summary-row.total .v { font-size: 20px; font-weight: 800; }

/* ---- 购买弹窗：支付方式 ---- */
.buy-pay-method { margin: 0 0 16px; }
.buy-pay-method-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.buy-pay-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--primary);
  background: rgba(74, 125, 224, .06);
  border-radius: var(--radius-sm);
}
.buy-pay-method-dot { color: var(--primary); font-size: 12px; }
.buy-pay-method-name { font-size: 14px; font-weight: 600; color: var(--text); }
.buy-pay-method-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #9a5b00;
  background: #fff3d6;
  border: 1px solid #f0d9a8;
  padding: 2px 8px;
  border-radius: 999px;
}
.buy-pay-method-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---- 购买弹窗：操作区 ---- */
.buy-actions { display: flex; gap: 10px; }
.buy-actions .btn { flex: 1; min-height: 44px; }
.buy-cancel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.buy-cancel:hover { border-color: var(--border-strong); color: var(--text); }

.buy-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.buy-tips li { font-size: 13px; color: var(--text-secondary); }
.buy-tips li::before { content: "•"; color: var(--primary); margin-right: 6px; font-weight: 700; }

.buy-email-wrap { margin: 0 0 16px; }
.buy-email-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.buy-email-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.buy-email-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 125, 224, .15); }
.buy-email-input.invalid { border-color: var(--danger); }

.buy-submit { width: 100%; }
.buy-submit:disabled { opacity: .65; cursor: not-allowed; }

.buy-error { margin-top: 14px; font-size: 13px; color: var(--danger); text-align: center; }

@keyframes buyFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .buy-modal { padding: 24px 18px 20px; }
  .buy-modal-backdrop { padding: 12px; }
}

.ba-tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(43, 43, 51, .82);
  color: #fff;
  pointer-events: none;
  z-index: 2;
}
.ba-tag-left { left: 12px; }
.ba-tag-right { right: 12px; }

.ba-range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0 auto;
  width: 70%;
  z-index: 3;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm);
  cursor: ew-resize;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
}
.ba-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
}

/* ---------------- 功能亮点 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  font-size: 22px;
  margin-bottom: 14px;
}

.feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------------- 在线设计器介绍 ---------------- */
.designer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.designer-copy h2 { font-size: 30px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.designer-copy > p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }

.designer-list {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.designer-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}
.designer-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.designer-list strong { color: var(--text); }

/* 工作台示意图 */
.workbench-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.wm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.wm-pill {
  font-size: 11px;
  background: rgba(255,255,255,.16);
  padding: 3px 10px;
  border-radius: 999px;
}

.wm-body {
  display: grid;
  grid-template-columns: 132px 1fr 132px;
  gap: 10px;
  padding: 12px;
}

.wm-left, .wm-right { min-width: 0; }

.wm-panel {
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-item {
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-item.is-mini {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.wm-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-canvas {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-height: 120px;
}

.wm-cell { border-radius: 2px; aspect-ratio: 1; }

.wm-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  background: var(--surface-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 5px;
}

/* ---------------- 使用场景 ---------------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scenario:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.scenario > span { font-size: 26px; flex: 0 0 auto; }
.scenario h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.scenario p { font-size: 13px; color: var(--text-secondary); }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-alt); }

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); background: var(--primary-soft); }

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item p strong { color: var(--text); }

/* ---------------- CTA ---------------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(255,255,255,.08), transparent 60%),
    var(--text);
  color: #fff;
  padding: 72px 0;
}

.cta-inner { text-align: center; max-width: 640px; }

.cta-inner h2 { font-size: 30px; font-weight: 800; letter-spacing: .4px; margin-bottom: 12px; }
.cta-inner p { font-size: 15.5px; color: rgba(255,255,255,.8); margin-bottom: 30px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------------- 页脚 ---------------- */
.site-footer { background: #23232a; color: rgba(255,255,255,.78); }

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.footer-nav a { color: rgba(255,255,255,.75); transition: color .15s ease; }
.footer-nav a:hover { color: #ffd76e; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.footer-note { font-size: 12px; }

/* ---------------- 滚动显现 ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step, .step.is-active { transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: 640px; }
  .hero-showcase { max-width: 560px; margin: 0 auto; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .designer-grid { grid-template-columns: 1fr; gap: 40px; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 11px 8px; border-radius: var(--radius-sm); font-size: 15px; }
  .main-nav a:hover { background: var(--surface-alt); }
  .main-nav .nav-cta { margin-top: 8px; height: 42px; justify-content: center; }

  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat strong { font-size: 25px; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 26px; }

  .workflow, .feature-grid, .scenario-grid { grid-template-columns: 1fr; }

  .designer-copy h2 { font-size: 26px; }

  .cta-inner h2 { font-size: 24px; }
  .footer-inner { flex-direction: column; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-showcase { padding: 22px 14px 18px; gap: 4px; }
  .step { width: 76px; }
  .step img { width: 76px; height: 76px; }
  .step-arrow { font-size: 15px; }
  .hero-chip { font-size: 11.5px; padding: 7px 12px; }
  .hero-dots { bottom: -40px; }
  .wm-body { grid-template-columns: 1fr 1.4fr 1fr; padding: 8px; gap: 6px; }
  .wm-item { padding: 5px 6px; font-size: 10.5px; }
  .wm-panel { padding: 5px 6px; font-size: 11px; }
  .cta-actions .btn-lg { width: 100%; }
}

