/**
 * 落地首页（index.html）页级样式
 * 共用版式 → shared.css；本文件含首页营销分区
 */
@import url("./shared.css");

/**
 * 首页营销区块：Hero / Features / Value / Theme / Workflow / CTA
 */

/* —— Hero —— */
.wa-hero--pro {
  padding: clamp(40px, 8vw, 72px) 0 clamp(32px, 6vw, 56px);
}

.wa-hero__copy {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.wa-hero--pro .wa-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-bottom: 18px;
  padding: 0 14px 0 10px;
  gap: 8px;
  border-radius: var(--wa-radius-pill);
  border: 1px solid rgba(var(--wa-color-primary-rgb), 0.22);
  background: rgba(var(--wa-color-primary-rgb), 0.08);
  color: var(--wa-color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}

.wa-hero--pro .wa-hero__eyebrow i {
  color: var(--wa-color-primary);
}

html[data-theme="dark"] .wa-hero--pro .wa-hero__eyebrow {
  background: rgba(var(--wa-color-primary-rgb), 0.18);
  border-color: rgba(var(--wa-color-primary-rgb), 0.45);
}

.wa-hero__title {
  margin: 0;
  font-family: var(--wa-font-display);
  font-size: clamp(40px, 6.2vw, 60px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--wa-color-text-1);
}

.wa-shiny {
  position: relative;
  display: inline-block;
  color: var(--wa-color-text-1);
  -webkit-text-fill-color: currentColor;
  --wa-shiny-highlight: rgba(255, 255, 255, 0.58);
}

.wa-shiny::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  background-image: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    var(--wa-shiny-highlight) 50%,
    transparent 60%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-position: 160% center;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wa-shiny-sweep 5s ease-in-out infinite;
}

html[data-theme="dark"] .wa-shiny {
  --wa-shiny-highlight: #c4b5fd;
}

@keyframes wa-shiny-sweep {
  0%,
  20% {
    background-position: 160% center;
  }
  100% {
    background-position: -60% center;
  }
}

.wa-hero__sub {
  display: block;
  width: 100%;
  max-width: min(22em, 94vw);
  margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--wa-color-text-1);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.wa-hero--pro .wa-hero__lead {
  margin: 14px auto 0;
  max-width: 52em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--wa-color-text-secondary, var(--wa-color-muted));
  text-wrap: balance;
}

.wa-hero--pro .wa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.wa-hero--pro .wa-hero__actions .wa-btn--lg {
  border-radius: 10px;
}

.wa-hero-demo {
  display: block;
  width: min(100%, 980px);
  margin: 20px auto 0;
  text-decoration: none;
  color: inherit;
  animation: wa-rise-in 0.7s var(--wa-ease) 0.12s both;
}

@keyframes wa-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wa-stage {
  border: 1px solid color-mix(in srgb, var(--wa-color-border) 80%, transparent);
  border-radius: 14px;
  overflow: hidden;
  background: #f4f5f7;
  box-shadow:
    0 4px 8px rgba(48, 36, 120, 0.06),
    0 18px 40px rgba(48, 36, 120, 0.12);
  transition: box-shadow var(--wa-duration) var(--wa-ease), transform var(--wa-duration) var(--wa-ease);
}

html[data-theme="dark"] .wa-stage {
  background: #232324;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.wa-hero-demo:hover .wa-stage {
  box-shadow:
    0 8px 16px rgba(48, 36, 120, 0.08),
    0 24px 56px rgba(48, 36, 120, 0.16);
  transform: translateY(-2px);
}

.wa-stage__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(18, 16, 26, 0.05);
  background: #fff;
  font-size: 0.71875rem;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

html[data-theme="dark"] .wa-stage__chrome {
  background: #232324;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.wa-stage__dots {
  display: flex;
  gap: 5px;
}

.wa-stage__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wa-stage__dots span:nth-child(1) { background: #f87171; }
.wa-stage__dots span:nth-child(2) { background: #fbbf24; }
.wa-stage__dots span:nth-child(3) { background: #34d399; }

.wa-stage__meta {
  justify-self: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--wa-color-text-secondary);
}

.wa-stage__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--wa-color-primary-rgb), 0.22);
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wa-stage__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wa-color-primary);
}

.wa-stage__status-light,
.wa-stage__status-dark {
  transition: opacity var(--wa-duration) var(--wa-ease);
}

.wa-stage__status-dark {
  display: none;
  opacity: 0;
}

.wa-stage__status-light {
  opacity: 1;
}

html[data-theme="dark"] .wa-stage__status-light {
  display: none;
  opacity: 0;
}

html[data-theme="dark"] .wa-stage__status-dark {
  display: inline;
  opacity: 1;
}

.wa-hero-demo__screens {
  position: relative;
  height: clamp(400px, 52vw, 560px);
  overflow: hidden;
  background: var(--wa-color-bg);
}

/* 虚拟后台骨架屏 */
.wa-admin-skel {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  height: 100%;
  background: var(--wa-color-bg);
}

.wa-admin-skel__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 12px;
  border-right: 1px solid var(--wa-color-border-1, var(--wa-color-border));
  background: color-mix(in srgb, var(--wa-color-surface) 88%, transparent);
}

.wa-admin-skel__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 4px;
}

.wa-admin-skel__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    var(--wa-color-primary),
    color-mix(in srgb, var(--wa-color-primary) 55%, #fff)
  );
}

.wa-admin-skel__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-admin-skel__nav-item {
  display: block;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 70%, transparent);
}

.wa-admin-skel__nav-item.is-active {
  background: var(--wa-color-primary-soft);
}

.wa-admin-skel__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 14px 16px 16px;
}

.wa-admin-skel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.wa-admin-skel__top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-admin-skel__bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 85%, transparent);
}

.wa-admin-skel__bar--sm {
  height: 10px;
}

.wa-admin-skel__chip {
  width: 88px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 75%, transparent);
}

.wa-admin-skel__dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 75%, transparent);
}

.wa-admin-skel__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wa-color-primary) 35%, var(--wa-color-fill-2, #ddd));
}

.wa-admin-skel__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wa-admin-skel__stat {
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--wa-color-border-1, var(--wa-color-border));
  background: var(--wa-color-surface);
  position: relative;
  overflow: hidden;
}

.wa-admin-skel__stat::before,
.wa-admin-skel__stat::after {
  content: "";
  position: absolute;
  left: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 80%, transparent);
}

.wa-admin-skel__stat::before {
  top: 16px;
  width: 36%;
  height: 10px;
}

.wa-admin-skel__stat::after {
  bottom: 16px;
  width: 52%;
  height: 8px;
  opacity: 0.7;
}

.wa-admin-skel__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--wa-color-border-1, var(--wa-color-border));
  background: var(--wa-color-surface);
}

.wa-admin-skel__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wa-admin-skel__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.wa-admin-skel__row {
  display: block;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 55%, transparent) 0%,
    color-mix(in srgb, var(--wa-color-fill-1, #f0f0f0) 90%, transparent) 45%,
    color-mix(in srgb, var(--wa-color-fill-2, var(--wa-color-border)) 55%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: wa-skel-shimmer 1.6s ease-in-out infinite;
}

.wa-admin-skel__row:nth-child(2) { width: 96%; animation-delay: 0.08s; }
.wa-admin-skel__row:nth-child(3) { width: 100%; animation-delay: 0.16s; }
.wa-admin-skel__row:nth-child(4) { width: 92%; animation-delay: 0.24s; }
.wa-admin-skel__row:nth-child(5) { width: 98%; animation-delay: 0.32s; }
.wa-admin-skel__row:nth-child(6) { width: 88%; animation-delay: 0.4s; }

@keyframes wa-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .wa-admin-skel {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .wa-admin-skel__brand .wa-admin-skel__bar,
  .wa-admin-skel__stats {
    display: none;
  }

  .wa-admin-skel__nav-item {
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-admin-skel__row {
    animation: none;
  }
}

/* —— Features —— */
.wa-features {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wa-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .wa-features,
  .wa-features--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wa-feature {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--wa-radius);
  overflow: hidden;
}

.wa-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wa-color-primary);
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
}

.wa-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--wa-color-primary);
  color: var(--wa-color-on-primary);
  font-size: 0.875rem;
}

.wa-feature__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.wa-feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--wa-color-text-secondary);
}

/* —— Value：分卡网格，序号胶囊 + 左侧主色条 —— */
.wa-value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .wa-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.wa-value {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 22px 22px 22px 24px;
  overflow: hidden;
  border-radius: var(--wa-radius);
  border-left: none;
  transition: box-shadow var(--wa-duration, 0.2s) var(--wa-ease, ease);
}

/* 左侧色条内缩，不画进圆角区 */
.wa-value::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--wa-color-primary);
  pointer-events: none;
  z-index: 2;
}

.wa-value:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .wa-value:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.wa-value__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2.25rem;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: var(--wa-radius-pill);
  border: 1px solid rgba(var(--wa-color-primary-rgb), 0.28);
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary-strong);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
}

html[data-theme="dark"] .wa-value__index {
  background: rgba(var(--wa-color-primary-rgb), 0.14);
  border-color: rgba(var(--wa-color-primary-rgb), 0.32);
  color: var(--wa-color-primary);
}

.wa-value__content {
  position: relative;
  z-index: 1;
  max-width: none;
  padding-right: 0;
}

.wa-value__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wa-color-primary);
}

.wa-value__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.wa-value__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--wa-color-text-secondary);
}

/* —— Templates —— */
.wa-template-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}

.wa-template-head h3 {
  margin: 0;
  font-size: 1rem;
}

.wa-template-head span {
  font-size: 0.75rem;
  color: var(--wa-color-muted);
}

.wa-export-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}

.wa-export-grid:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .wa-export-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-export-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .wa-export-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wa-export-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 28px 22px 24px;
  border-radius: var(--wa-radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.wa-export-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .wa-export-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.wa-export-card__ext {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: var(--wa-radius-pill);
  border: 1px solid rgba(var(--wa-color-primary-rgb), 0.28);
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, Consolas, monospace;
}

html[data-theme="dark"] .wa-export-card__ext {
  background: rgba(var(--wa-color-primary-rgb), 0.14);
  border-color: rgba(var(--wa-color-primary-rgb), 0.32);
  color: var(--wa-color-primary);
}

.wa-export-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.wa-export-card p {
  margin: 0;
  max-width: 16em;
  font-size: 13px;
  line-height: 1.65;
  color: var(--wa-color-text-secondary);
}

/* —— Theme studio：主色试调区块壳 —— */
.wa-theme-studio {
  padding: 22px 24px 24px;
  overflow: hidden;
}

.wa-theme-studio__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.wa-theme-studio__controls {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  align-items: stretch;
  padding: 12px;
}

.wa-theme-studio__intro h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.wa-theme-studio__intro p {
  font-size: 13px;
  color: var(--wa-color-text-secondary);
  margin: 0;
  line-height: 1.65;
}

.wa-theme-studio__panel {
  padding: 12px;
  padding-left: 0;
}

.wa-theme-studio__swatches-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--wa-color-muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.wa-swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 8px;
}

.wa-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--wa-color-border);
  cursor: pointer;
  padding: 0;
}

.wa-swatch.is-active {
  box-shadow: 0 0 0 2px var(--wa-color-primary);
}

.wa-swatch-label {
  font-size: 13px;
  color: var(--wa-color-muted);
  margin: 0;
}

.wa-theme-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.wa-theme-points li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 10px 0;
  border-radius: 10px;
  background: transparent;
  font-size: 12px;
  color: var(--wa-color-text-secondary);
  line-height: 1.5;
}

.wa-theme-points__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary);
  font-size: 13px;
}

.wa-theme-points strong {
  display: block;
  font-size: 13px;
  color: var(--wa-color-text);
  margin-bottom: 3px;
}

.wa-theme-preview {
  background: transparent;
  border: 1px solid rgba(18, 16, 26, 0.05);
  border-radius: 14px;
  padding: 16px 14px 14px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

html[data-theme="dark"] .wa-theme-preview {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05);
}

.wa-theme-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-color-text);
}

.wa-theme-preview__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary);
}

.wa-theme-preview__bar {
  display: flex;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(18, 16, 26, 0.05);
  margin-bottom: 12px;
  overflow: hidden;
}

html[data-theme="dark"] .wa-theme-preview__bar {
  border-color: rgba(255, 255, 255, 0.05);
}

.wa-theme-preview__bar span {
  flex: 1;
  height: 12px;
  border-radius: 0;
  min-width: 0;
}

.wa-theme-preview__bar span:nth-child(1) { background: var(--wa-color-primary); }
.wa-theme-preview__bar span:nth-child(2) { background: color-mix(in srgb, var(--wa-color-primary) 72%, white); }
.wa-theme-preview__bar span:nth-child(3) { background: color-mix(in srgb, var(--wa-color-primary) 45%, white); }
.wa-theme-preview__bar span:nth-child(4) { background: var(--wa-color-primary-soft); }
.wa-theme-preview__bar span:first-child { border-radius: 999px 0 0 999px; }
.wa-theme-preview__bar span:last-child { border-radius: 0 999px 999px 0; }

.wa-theme-preview__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  flex: 1;
  min-height: 284px;
  margin-bottom: 12px;
  align-items: stretch;
}

.wa-theme-preview__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  height: 100%;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(18, 16, 26, 0.05);
  box-sizing: border-box;
}

html[data-theme="dark"] .wa-theme-preview__card {
  border-color: rgba(255, 255, 255, 0.05);
}

.wa-theme-preview__card--accent {
  background: var(--wa-color-primary-soft);
  border-color: rgba(var(--wa-color-primary-rgb), 0.2);
}

.wa-theme-preview__card--stack {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 8px;
}

.wa-theme-preview__card--stack .wa-theme-preview__card-body {
  width: 100%;
}

.wa-theme-preview__card--has-badge {
  position: relative;
}

.wa-theme-preview__card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-color-primary-soft);
  color: var(--wa-color-primary);
  font-size: 12px;
  flex-shrink: 0;
}

.wa-theme-preview__card--accent .wa-theme-preview__card-icon {
  background: rgba(var(--wa-color-primary-rgb), 0.14);
}

html[data-theme="dark"] .wa-theme-preview__card--accent .wa-theme-preview__card-icon {
  background: rgba(255, 255, 255, 0.08);
}

.wa-theme-preview__card-body span,
.wa-theme-preview__card-label {
  display: block;
  font-size: 10px;
  color: var(--wa-color-muted);
}

.wa-theme-preview__card-body strong,
.wa-theme-preview__card-value {
  display: block;
  font-family: var(--wa-font-display, inherit);
  font-size: 16px;
  color: var(--wa-color-text);
  line-height: 1.2;
}

.wa-theme-preview__card-delta {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  color: var(--wa-color-primary);
}

.wa-theme-preview__card-delta i {
  font-size: 8px;
}

.wa-theme-preview__card-value.is-sm {
  font-size: 14px;
}

.wa-theme-preview__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.wa-theme-preview__card-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  margin-top: auto;
}

.wa-theme-preview__card-chart span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--wa-color-primary) 72%, white);
}

.wa-theme-preview__card-chart span:nth-child(odd) {
  background: var(--wa-color-primary);
  opacity: 0.85;
}

.wa-theme-preview__card-tabs {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding: 3px;
  border-radius: 8px;
  background: #f7f8fa;
  border: 1px solid var(--wa-color-border);
}

html[data-theme="dark"] .wa-theme-preview__card-tabs {
  background: #141226;
}

.wa-theme-preview__card-tabs span {
  flex: 1;
  text-align: center;
  padding: 5px 4px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--wa-color-muted);
}

.wa-theme-preview__card-tabs span.is-active {
  background: var(--wa-color-primary);
  color: #fff;
}

.wa-theme-preview__card-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--wa-color-primary-rgb), 0.15);
  overflow: hidden;
  margin-top: auto;
}

.wa-theme-preview__card-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wa-color-primary);
}

.wa-theme-preview__card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: var(--wa-color-muted);
}

.wa-theme-preview__card-foot strong {
  color: var(--wa-color-text);
  font-weight: 600;
}

.wa-theme-preview__card-foot strong.is-up {
  color: var(--wa-color-primary);
}

.wa-theme-preview__ring-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.wa-theme-preview__ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.wa-theme-preview__ring-label {
  font-size: 8px;
  color: var(--wa-color-muted);
  white-space: nowrap;
  line-height: 1.2;
}

.wa-theme-preview__card-ring {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  color: var(--wa-color-primary);
}

.wa-theme-preview__ring-item:nth-child(2) .wa-theme-preview__card-ring {
  color: color-mix(in srgb, var(--wa-color-primary) 72%, white);
}

.wa-theme-preview__ring-item:nth-child(3) .wa-theme-preview__card-ring {
  color: color-mix(in srgb, var(--wa-color-primary) 45%, white);
}

.wa-theme-preview__card-ring svg {
  width: 100%;
  height: 100%;
}

.wa-theme-preview__card-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wa-font-display, inherit);
  font-size: 9px;
  font-weight: 700;
  color: var(--wa-color-text);
}

.wa-theme-preview__note {
  margin: 0;
  padding-top: 8px;
  font-size: 12px;
  color: var(--wa-color-muted);
  line-height: 1.55;
}

@media (max-width: 959px) {
  .wa-theme-studio__row {
    grid-template-columns: 1fr;
  }

  .wa-theme-studio__controls {
    padding: 0;
  }
}

/* —— Workflow —— */
.wa-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wa-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .wa-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.wa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 24px;
  border-radius: var(--wa-radius);
  text-align: center;
}

.wa-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--wa-color-primary);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--wa-font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(var(--wa-color-primary-rgb), 0.28);
}

.wa-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wa-color-text-1);
}

.wa-step > span:not(.wa-step__num) {
  font-size: 13px;
  line-height: 1.5;
  color: var(--wa-color-text-secondary);
}

.wa-workflow-cta {
  margin-top: 28px;
  text-align: center;
}

/* —— CTA —— */
.wa-cta {
  /* 底边距交给 .wa-footer margin，避免 CTA→footer 叠两段空白 */
  padding: 64px 0 0;
}

.wa-cta__panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 44px 40px;
  border: none;
  border-radius: var(--wa-radius-lg);
  background: var(--wa-color-primary);
  color: #fff;
  box-shadow: 0 20px 48px rgba(var(--wa-color-primary-rgb), 0.3);
}

.wa-cta__panel::before {
  content: "";
  position: absolute;
  top: -56px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.wa-cta__copy,
.wa-cta__actions {
  position: relative;
  z-index: 1;
}

.wa-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #fff;
}

.wa-cta__desc {
  margin: 0;
  max-width: 36em;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
}

.wa-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.wa-cta__btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--wa-color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.wa-cta__btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--wa-color-primary-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.wa-cta__btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.wa-cta__btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

@media (max-width: 720px) {
  .wa-hero--pro {
    padding: 28px 0 24px;
  }

  .wa-hero__copy {
    margin-bottom: 24px;
  }

  .wa-hero--pro .wa-hero__lead {
    max-width: none;
    font-size: 14px;
  }

  .wa-hero--pro .wa-hero__actions {
    width: 100%;
  }

  .wa-hero--pro .wa-hero__actions .wa-btn--lg {
    flex: 1 1 auto;
  }

  .wa-features {
    gap: 14px;
  }

  .wa-feature {
    padding: 18px 16px 16px;
  }

  .wa-value-grid {
    gap: 14px;
  }

  .wa-value {
    padding: 16px 16px 16px 18px;
  }

  .wa-export-grid {
    gap: 14px;
  }

  .wa-export-card {
    padding: 22px 16px 18px;
  }

  .wa-theme-studio {
    padding: 16px 14px 18px;
  }

  .wa-steps {
    gap: 12px;
  }

  .wa-step {
    padding: 22px 14px 18px;
  }

  .wa-cta__panel {
    padding: 28px 16px;
  }

  .wa-cta__actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .wa-cta__actions .wa-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .wa-feature,
  .wa-value,
  .wa-export-card,
  .wa-step,
  .wa-theme-studio {
    padding-left: 14px;
    padding-right: 14px;
  }

  .wa-hero--pro .wa-hero__actions .wa-btn--lg {
    width: 100%;
  }
}

/* —— FAQ 下方：修改提示词示例 —— */
.wa-faq-foot {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.wa-modal--prompt-examples .wa-modal__panel {
  width: min(560px, calc(100vw - 32px));
  max-height: min(84vh, 760px);
}

.wa-modal--prompt-examples .wa-modal__body {
  padding-top: 18px;
  padding-bottom: 20px;
}

.wa-prompt-ex__lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wa-color-muted);
}

.wa-prompt-ex {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-prompt-ex li {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 14px 14px 13px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--wa-color-border) 88%, transparent);
  background: color-mix(in srgb, var(--wa-color-fill-1, rgba(17, 17, 19, 0.04)) 88%, var(--wa-color-surface));
  box-shadow: none;
}

html[data-theme="dark"] .wa-prompt-ex li {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.wa-prompt-ex__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  min-height: 1.4rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--wa-color-text-1, var(--wa-color-text));
  background: color-mix(in srgb, var(--wa-color-muted) 14%, transparent);
  white-space: nowrap;
}

.wa-prompt-ex__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.wa-prompt-ex__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--wa-color-text-2);
}

.wa-prompt-ex__quote {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  quotes: none;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  color: var(--wa-color-text-1, var(--wa-color-text));
}

.wa-prompt-ex__quote::before {
  content: "「";
  color: var(--wa-color-muted);
}

.wa-prompt-ex__quote::after {
  content: "」";
  color: var(--wa-color-muted);
}

@media (max-width: 640px) {
  .wa-prompt-ex li {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 12px;
  }

  .wa-prompt-ex__tag {
    width: fit-content;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-shiny::after {
    animation: none;
    content: none;
  }

  .wa-hero-demo {
    animation: none;
  }
}
