/* 工蚁 Worker Ant · 落地页样式
   无构建步骤、无外部依赖（字体走系统栈，离线可用）。 */

:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-soft: #57534e;
  --text-mute: #8a827a;
  --line: #e5ded4;
  --accent: #b45309;
  --accent-in: #d97706;
  --accent-bg: #fdf3e3;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --radius: 14px;
  --wrap: 1060px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 8px 24px -12px rgba(28, 25, 23, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --bg-alt: #1e1b18;
    --surface: #232019;
    --text: #f5f2ee;
    --text-soft: #c4bdb4;
    --text-mute: #948b81;
    --line: #35302a;
    --accent: #f0a94a;
    --accent-in: #f5c073;
    --accent-bg: #2c2318;
    --ok: #6ee7a8;
    --ok-bg: #14261c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

.hero-demo {
  margin: 2.5rem auto 0;
  max-width: 800px;
}

.hero-demo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-demo figcaption {
  margin-top: 0.6rem;
  color: var(--text-mute);
  font-size: 0.85rem;
  text-align: center;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 28px;
}
h3 {
  font-size: 1.06rem;
  font-weight: 700;
}
strong {
  font-weight: 700;
}
code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
}
.brand:hover {
  text-decoration: none;
}
/* 品牌标 = 应用图标本尊（白底圆角 WA 蚂蚁字标，圆角外透明）。圆角 + 细边让它贴住页面而不显成一块白斑。 */
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
  flex: none;
}
.brand-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-mute);
  font-size: 0.85em;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--text-soft);
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-cta {
  flex: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.16s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--accent-in);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  height: 36px;
  padding: 0 15px;
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line);
  font-size: 0.9rem;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin-bottom: 22px;
}
.lede {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--text-soft);
}
.hero-tag {
  margin: 14px auto 0;
  font-size: 1.02rem;
  font-weight: 700;
}
.hero-en {
  margin: 10px auto 0;
  color: var(--text-mute);
  font-size: 0.9rem;
  font-style: italic;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.trust {
  margin-top: 20px;
  color: var(--text-mute);
  font-size: 0.87rem;
}

/* ---------- 区块 ---------- */
.band {
  padding: clamp(48px, 7vw, 78px) 0;
}
.band-alt {
  background: var(--bg-alt);
}
.band-foot {
  margin-top: 26px;
  font-size: 1.06rem;
  color: var(--text-soft);
}
.note {
  margin-top: 22px;
  color: var(--text-mute);
  font-size: 0.89rem;
}

/* ---------- 痛点 ---------- */
.pain {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pain li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pain-k {
  font-weight: 600;
}
.pain-v {
  color: var(--text-mute);
  font-size: 0.95rem;
}

/* ---------- 卡片 ---------- */
.cards-3,
.cards-2 {
  display: grid;
  gap: 20px;
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 14px;
}
.card p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-use .quote {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.card-use .out {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- 三步 ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-n {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-in);
  margin-bottom: 6px;
}
.steps h3 {
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- 快速开始 ---------- */
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
  align-items: start;
}
/* min-width:0 —— grid 子项默认 min-width:auto，会被内部的长命令撑破整列（手机端横向溢出 615px）。 */
.start-grid > * {
  min-width: 0;
}
.start-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.start-col-primary {
  border-color: var(--accent);
}
.start-col h3 {
  margin-bottom: 14px;
}
.muted {
  color: var(--text-soft);
  font-size: 0.93rem;
}
.code {
  position: relative;
  margin: 14px 0;
  max-width: 100%;
  background: #1c1917;
  color: #f0ece6;
  border-radius: 10px;
  padding: 16px 16px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.8;
  -webkit-overflow-scrolling: touch;
}
.code code {
  white-space: pre;
}
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f0ece6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--bg-alt);
  font-size: 0.87rem;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.compare td:first-child {
  white-space: nowrap;
  font-weight: 500;
}
.pricing td:nth-child(2) {
  white-space: nowrap;
}
/* 窄屏下让表格保持可读的自然宽度、由 .table-wrap 横向滚动，而不是把列挤成一字一行。 */
.compare {
  min-width: 640px;
}
.pricing {
  min-width: 560px;
}
.row-now {
  background: var(--accent-bg);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-ok {
  background: var(--ok-bg);
  border-color: transparent;
  color: var(--ok);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 2px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '＋';
  float: right;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '－';
}
.faq details p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
.foot-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 760px;
  margin-bottom: 36px;
}
.foot-col h4 {
  font-size: 0.84rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.foot-col a {
  display: block;
  color: var(--text-soft);
  font-size: 0.93rem;
  padding: 3px 0;
}
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.foot-slogan {
  margin: 0;
  font-weight: 600;
}
.foot-copy {
  margin: 6px 0 0;
  color: var(--text-mute);
  font-size: 0.84rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .cards-3,
  .steps {
    grid-template-columns: 1fr;
  }
  .start-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 620px) {
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .pain li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }
  .br-mobile {
    display: none;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
