/**
 * @Author: Danson zheng
 * @Date: 2026-09-11
 * @Description: ECIMG 电商图工厂 · 宣传官网样式（浅色主题，零第三方依赖）。
 *               结构：设计变量 → 基础重置 → 通用组件（按钮/容器/标题） → 顶栏 → 首屏 →
 *                     对比 → 能力卡 → 架构分层 → 模板库 → 开发者 → Skill → 定价 → FAQ → CTA → 页脚。
 *               注意事项：颜色一律走 :root 变量；断点统一 1080 / 860 / 560 三档。
 */

/* ========== 设计变量 ========== */
:root {
  /* 文字 */
  --ink: #0b1220;
  --ink-2: #223052;
  --muted: #5b6b88;
  --muted-2: #8494ad;

  /* 背景与描边 */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #fbfcfe;
  --line: #e6eaf3;
  --line-2: #eff2f8;

  /* 品牌色 */
  --brand: #4b4ded;
  --brand-2: #8b5cf6;
  --brand-deep: #33309f;
  --brand-soft: #eef0fe;
  --brand-soft-2: #e4e6fd;
  --accent: #ff6b35;
  --ok: #0ea371;
  --warn: #d97706;

  /* 分类色（模板库/图示） */
  --c-main: #4b4ded;
  --c-detail: #8b5cf6;
  --c-copy: #0ea5a5;
  --c-base: #f59e0b;
  --c-combo: #e0526b;

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #4b4ded 0%, #7c5cfc 55%, #a855f7 100%);
  --grad-hero: radial-gradient(120% 90% at 12% 0%, #e8ebff 0%, rgba(232, 235, 255, 0) 58%),
    radial-gradient(90% 80% at 92% 8%, #f6e9ff 0%, rgba(246, 233, 255, 0) 55%);

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(16, 26, 54, 0.05);
  --sh-sm: 0 2px 8px rgba(16, 26, 54, 0.06);
  --sh-md: 0 10px 30px -12px rgba(16, 26, 54, 0.16);
  --sh-lg: 0 26px 60px -24px rgba(16, 26, 54, 0.24);

  /* 尺寸 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1160px;
  --nav-h: 68px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

/* ========== 基础重置 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 0.12em 0.42em;
  border-radius: 5px;
  white-space: nowrap;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

/* ========== 通用容器与标题 ========== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 840px;
}

.sec {
  padding: 96px 0;
  position: relative;
}

.sec--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.sec__head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.sec__head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  margin: 14px 0 14px;
}

.sec__sub {
  color: var(--muted);
  font-size: 16.5px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
}

.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(75, 77, 237, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(75, 77, 237, 0.75);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}

.btn--ghost:hover {
  border-color: var(--brand-soft-2);
  color: var(--brand-deep);
  transform: translateY(-2px);
}

.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 13px;
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
  margin-top: 20px;
}

/* ========== 顶栏 ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(16, 26, 54, 0.4);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  display: block;
  border-radius: 9px;
  box-shadow: 0 6px 14px -8px rgba(75, 77, 237, 0.9);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand__text em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links > a:not(.nav__cta) {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}

.nav__links > a:not(.nav__cta):hover {
  color: var(--ink);
  background: var(--bg-soft);
}

/* 顶栏 CTA 保持白字，hover 只做轻微提亮，避免被通用链接样式覆盖成深字 */
.nav__cta {
  margin-left: 8px;
  color: #fff;
}

.nav__cta:hover {
  color: #fff;
  transform: none;
  box-shadow: 0 14px 28px -12px rgba(75, 77, 237, 0.85);
  filter: brightness(1.06);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav__toggle span {
  width: 16px;
  height: 1.8px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.8px) rotate(-45deg);
}

/* ========== 首屏 ========== */
.hero {
  position: relative;
  padding: 76px 0 92px;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(38% 60% at 22% 30%, rgba(75, 77, 237, 0.16) 0%, transparent 70%),
    radial-gradient(34% 56% at 82% 22%, rgba(168, 85, 247, 0.16) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--brand-soft-2);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--sh-xs);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(14, 163, 113, 0.16);
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero__sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.hero__sub strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted-2);
  font-size: 13.5px;
}

.hero__facts li {
  position: relative;
  padding-left: 16px;
}

.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--brand-soft-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stats dt span {
  font-size: 0.6em;
  font-weight: 700;
  margin-left: 2px;
}

.stats dd {
  font-size: 13px;
  color: var(--muted-2);
}

/* 首屏视觉卡片 */
.hero__visual {
  margin: 0;
}

.canvas-card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.canvas-card__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft-2);
  border-bottom: 1px solid var(--line-2);
}

.canvas-card__bar .dots {
  display: flex;
  gap: 5px;
}

.canvas-card__bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dfe4ef;
}

.canvas-card__bar .dots i:first-child {
  background: #ffc9bd;
}

.canvas-card__title {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.canvas-card__tag {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.flow {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px 4px 0;
}

.node__t {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}

.node__s {
  font-family: var(--font);
  font-size: 11px;
  fill: var(--muted-2);
}

.node__t--w {
  fill: #fff;
}
.node__s--w {
  fill: rgba(255, 255, 255, 0.82);
}

.flow__dash {
  stroke-dasharray: 5 5;
  animation: dash 1.1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}

.canvas-card__foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-2);
  background: var(--bg-soft-2);
}

.canvas-card__foot .cost {
  font-size: 13.5px;
  color: var(--muted);
}

.canvas-card__foot .cost b {
  color: var(--brand-deep);
  font-size: 16px;
}

.canvas-card__foot .cost__eq {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ========== 对比 ========== */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare__col {
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  background: #fff;
}

.compare__col--old {
  background: var(--bg-soft);
}

.compare__col--new {
  border-color: var(--brand-soft-2);
  box-shadow: var(--sh-md);
}

.compare__col h3 {
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.compare__col li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

.compare__col li:last-child {
  margin-bottom: 0;
}

.compare__col li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.compare__col--old li::before {
  background: #f1d4d4;
  box-shadow: inset 0 0 0 2.5px #d98a8a;
}

.compare__col--new li {
  color: var(--ink-2);
}

.compare__col--new li::before {
  background: rgba(14, 163, 113, 0.14);
  box-shadow: inset 0 0 0 2.5px var(--ok);
}

/* ========== 能力卡 ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-soft-2);
  box-shadow: var(--sh-md);
}

.card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ========== 引擎与架构 ========== */
.engine {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.pipe li {
  position: relative;
  padding: 0 0 26px 58px;
}

.pipe li:last-child {
  padding-bottom: 0;
}

.pipe li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(var(--brand-soft-2), transparent);
}

.pipe li:last-child::before {
  display: none;
}

.pipe__no {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}

.pipe h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
  line-height: 36px;
}

.pipe p {
  font-size: 14.5px;
  color: var(--muted);
}

.layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-xs);
}

.layer--api {
  border-color: var(--brand-soft-2);
  background: linear-gradient(135deg, #f8f9ff, #fff);
}

.layer--infra {
  background: var(--ink);
  border-color: var(--ink);
}

.layer__tag {
  flex-shrink: 0;
  width: 92px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.layer--infra .layer__tag {
  color: #fff;
}

.layer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.layer__chips i {
  font-style: normal;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line-2);
}

.layer__chips i code {
  background: transparent;
  padding: 0;
  font-size: 1em;
  color: var(--brand-deep);
}

.layer--infra .layer__chips i {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
}

/* ========== 模板库 ========== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.16s ease;
}

.tab span {
  font-size: 11.5px;
  color: var(--muted-2);
  font-family: var(--mono);
}

.tab:hover {
  border-color: var(--brand-soft-2);
  color: var(--brand-deep);
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--sh-sm);
}

.tab.is-active span {
  color: rgba(255, 255, 255, 0.6);
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tcard {
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tcard:hover {
  transform: translateY(-4px);
  border-color: var(--brand-soft-2);
  box-shadow: var(--sh-md);
}

.tcard.is-hidden {
  display: none;
}

.tcard__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.tcard__badge--free {
  background: rgba(14, 163, 113, 0.92);
}

.tcard__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  color: #fff;
}

.tcard__thumb--main {
  background: linear-gradient(135deg, #5b5ef5, #8b5cf6);
}
.tcard__thumb--detail {
  background: linear-gradient(135deg, #7c5cfc, #b06ef0);
}
.tcard__thumb--copy {
  background: linear-gradient(135deg, #0ea5a5, #34c9b4);
}
.tcard__thumb--base {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
}
.tcard__thumb--combo {
  background: linear-gradient(135deg, #e0526b, #f4728a);
}

.tcard__body {
  padding: 16px 18px 18px;
}

.tcard__body h3 {
  font-size: 15.5px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.tcard__id {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.tcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tcard__meta li {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line-2);
}

.tgrid__note {
  margin-top: 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ========== 开发者 ========== */
.dev {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

.dev__code {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #1b2440;
  background: #0d1526;
  box-shadow: var(--sh-lg);
}

.codebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #121c33;
  border-bottom: 1px solid #1b2440;
}

.codebar__tabs {
  display: flex;
  gap: 4px;
}

.ctab {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: var(--mono);
  color: #7f8db0;
  transition: all 0.16s ease;
}

.ctab:hover {
  color: #cbd5f0;
}

.ctab.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.codebar__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #9aa8c9;
  border: 1px solid #26314f;
  transition: all 0.16s ease;
}

.codebar__copy:hover {
  color: #fff;
  border-color: #3a4769;
}

.codebar__copy.is-done {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

.code {
  display: none;
  margin: 0;
  padding: 22px 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.6px;
  line-height: 1.85;
  color: #d6e0f5;
  tab-size: 2;
}

.code.is-active {
  display: block;
}

.code code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

.c-cm {
  color: #64769c;
}
.c-key {
  color: #a78bfa;
}
.c-str {
  color: #6ee7b7;
}
.c-fn {
  color: #7dd3fc;
}

.dev__side h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.dev__h3 {
  margin-top: 30px;
}

.api {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.api th {
  text-align: left;
  font-weight: 600;
  color: var(--muted-2);
  font-size: 12px;
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--line);
}

.api td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  vertical-align: middle;
}

.api td:last-child,
.api th:last-child {
  padding-right: 0;
}

.api code {
  font-size: 12px;
  background: transparent;
  color: var(--ink-2);
  padding: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.m {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.m--post {
  background: rgba(14, 163, 113, 0.12);
  color: #0b7f59;
}

.m--get {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.errs li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--muted);
}

.errs b {
  flex-shrink: 0;
  width: 34px;
  font-family: var(--mono);
  color: var(--ink);
}

/* ========== Skill ========== */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.skillmd {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1526;
  border: 1px solid #1b2440;
  box-shadow: var(--sh-lg);
}

.skillmd__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  background: #121c33;
  border-bottom: 1px solid #1b2440;
}

.skillmd__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b3757;
}

.skillmd__bar i:first-child {
  background: #4a3a52;
}

.skillmd__bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: #7f8db0;
}

.skillmd pre {
  margin: 0;
  padding: 20px 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.4px;
  line-height: 1.8;
  color: #d6e0f5;
}

.skillmd code {
  background: none;
  padding: 0;
  color: inherit;
  white-space: pre;
}

.skills__list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.skills__list li:first-child {
  padding-top: 0;
}

.skills__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.skills__list h3 {
  font-size: 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.skills__list h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.skills__list p {
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 15px;
}

/* ========== 定价 ========== */
.price {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.plan--hot {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand), var(--sh-lg);
}

.plan__flag {
  position: absolute;
  top: -12px;
  left: 26px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(75, 77, 237, 0.9);
}

.plan h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  margin-bottom: 10px;
}

.plan__price b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan__price span {
  font-size: 14px;
  color: var(--muted-2);
}

.plan__desc {
  font-size: 13px;
  color: var(--muted-2);
  min-height: 44px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.plan ul {
  flex: 1;
  padding-top: 16px;
}

.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.price__note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
}

/* ========== FAQ ========== */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq details[open] {
  border-color: var(--brand-soft-2);
  box-shadow: var(--sh-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--brand);
}

.faq p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ========== 结尾 CTA ========== */
.cta {
  padding: 92px 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 520px;
  background: radial-gradient(38% 60% at 26% 40%, rgba(75, 77, 237, 0.5) 0%, transparent 70%),
    radial-gradient(34% 56% at 76% 34%, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.cta .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ========== 页脚 ========== */
.foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 54px 0 26px;
}

.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.foot__brand {
  display: flex;
  gap: 12px;
  max-width: 320px;
}

.foot__brand strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.foot__brand p {
  font-size: 13px;
  color: var(--muted-2);
}

.foot__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.foot__links h4 {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 14px;
}

.foot__links a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 9px;
  transition: color 0.16s ease;
}

.foot__links a:hover {
  color: var(--brand);
}

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
}

.foot__stack {
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ========== 回到顶部 ========== */
.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.totop.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.totop:hover {
  color: var(--brand);
  border-color: var(--brand-soft-2);
}

/* ========== 滚动入场 ==========
   仅在 JS 可用时（html.js）才隐藏内容，避免脚本失效导致页面空白。 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__sub {
    max-width: none;
  }

  .engine,
  .dev,
  .skills {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .skills {
    gap: 34px;
  }

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

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

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

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
  }

  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__links > a {
    padding: 12px 14px;
    font-size: 15.5px;
  }

  .nav__cta {
    margin: 8px 0 0;
    height: 46px;
  }

  .nav__toggle {
    display: flex;
  }

  .sec {
    padding: 72px 0;
  }

  .sec__head {
    margin-bottom: 40px;
  }

  .compare,
  .tgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__links {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .cards,
  .tgrid,
  .price {
    grid-template-columns: 1fr;
  }

  .layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .layer__tag {
    width: auto;
  }

  .foot__inner,
  .foot__bottom {
    flex-direction: column;
  }

  .foot__links {
    gap: 28px 36px;
  }

  .code,
  .skillmd pre {
    font-size: 11.6px;
    padding: 18px 16px 20px;
  }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
