/* ═══════════════════════════════════════════════════════════════
   WorkDeep 官网 — 设计令牌（源自智工部 DESIGN-TOKENS v11）
   中性画布 + 一抹翡翠绿 #10A37F（Codex 级签名色）
   适用：workdeep.ai 静态站（单文件无依赖，无构建步骤）
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── 品牌色 ── */
  --c-accent: #10A37F;
  --c-accent-hover: #0E8C6B;
  --c-accent-soft: rgba(16, 163, 127, 0.14);
  --c-accent-soft-2: rgba(16, 163, 127, 0.08);
  --c-accent-fg: #FFFFFF;

  /* ── 表面层（暗色优先） ── */
  --c-canvas: #0F0F10;
  --c-surface: #18181B;
  --c-surface-2: #1F1F23;
  --c-surface-3: #27272A;

  /* ── 文字四级 ── */
  --c-text: #F4F4F5;
  --c-text-2: #A1A1AA;
  --c-text-3: #71717A;

  /* ── 发线边框（无粗边，无重阴影） ── */
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(255, 255, 255, 0.16);

  /* ── 圆角分级 ── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* ── 动效 ── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.22s;

  /* ── 布局 ── */
  --container: 1120px;
  --nav-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }
code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.1em 0.35em;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ═══════════ 按钮（四态齐备） ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--accent {
  background: var(--c-accent);
  color: var(--c-accent-fg);
}
.btn--accent:hover { background: var(--c-accent-hover); color: var(--c-accent-fg); }
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover { background: var(--c-surface-2); color: var(--c-text); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ondark { background: #FFFFFF; color: #0F0F10; border-color: transparent; }
.btn--ondark:hover { background: #E5E5E7; color: #0F0F10; }

.btn--store {
  background: var(--c-surface);
  border-color: var(--c-border-strong);
  color: var(--c-text);
  padding: 10px 18px;
  gap: 10px;
  min-width: 178px;
}
.btn--store:hover { background: var(--c-surface-2); color: var(--c-text); }
.btn--store svg { flex: none; }
.btn__store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 15px;
}
.btn__store-text small { font-size: 10.5px; font-weight: 500; opacity: 0.75; letter-spacing: 0.02em; }

/* ═══════════ 导航 ═══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(15, 15, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav--scrolled { background: rgba(15, 15, 16, 0.96); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nav__brand:hover { color: var(--c-text); }
.nav__logo { display: inline-flex; }
.nav__word { font-weight: inherit; letter-spacing: inherit; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  color: var(--c-text-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--c-text); background: var(--c-surface-2); }

/* ═══════════ Hero ═══════════ */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute;
  inset: -220px -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(16, 163, 127, 0.16), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-block: 88px 72px;
}
.hero__copy { max-width: 560px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.25);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(16, 163, 127, 0.06); }
}
.hero__title {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(120deg, #34D399 0%, #10A37F 60%, #0E8C6B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  color: var(--c-text-2);
  font-size: 17.5px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--c-text-3);
}

/* ── 手机演示（纯 CSS） ── */
.phone {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}
.phone__frame {
  position: relative;
  background: linear-gradient(180deg, #1E1E22, #141416);
  border: 1px solid var(--c-border-strong);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6);
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 118px; height: 26px;
  background: #0B0B0C;
  border-radius: var(--r-full);
  z-index: 2;
}
.phone__shadow {
  position: absolute;
  inset: auto 12% -18px 12%;
  height: 36px;
  background: radial-gradient(closest-side, rgba(16, 163, 127, 0.22), transparent 72%);
  filter: blur(6px);
}
.chat {
  background: var(--c-canvas);
  border-radius: 30px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(24, 24, 27, 0.9);
}
.chat__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 42%),
    linear-gradient(135deg, #34D399, #0E8C6B 70%);
}
.chat__headmeta { display: flex; flex-direction: column; line-height: 1.3; }
.chat__headmeta strong { font-size: 15px; font-weight: 650; }
.chat__status {
  font-size: 11.5px;
  color: var(--c-text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chat__statusdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
}
.chat__body {
  flex: 1;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 对话消息：用户 vs AI 一眼可辨（对齐 + 头像 + 底色） */
.msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: fadeIn var(--dur) var(--ease) backwards;
}
.msg:nth-child(1) { animation-delay: 0.35s; }
.msg:nth-child(2) { animation-delay: 0.6s; }
.msg:nth-child(3) { animation-delay: 0.9s; }
.msg:nth-child(5) { animation-delay: 1.3s; }

.msg--ai { justify-content: flex-start; }
.msg--user { justify-content: flex-end; }
.msg__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 42%),
    linear-gradient(135deg, #34D399, #0E8C6B 70%);
}
.msg--user .msg__avatar { display: none; }
.msg__bubble {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: var(--r-lg);
}
.msg--ai .msg__bubble {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-top-left-radius: 6px;
}
.msg--user .msg__bubble {
  background: var(--c-accent-soft);
  border: 1px solid rgba(16, 163, 127, 0.28);
  color: var(--c-text);
  border-top-right-radius: 6px;
}
.msg__list { margin: 6px 0 2px; padding-left: 18px; color: var(--c-text-2); font-size: 13px; }
.msg__list li { margin-bottom: 2px; }

/* 记忆 chip */
.chip {
  align-self: flex-start;
  margin-left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--c-accent-soft-2);
  border: 1px solid rgba(16, 163, 127, 0.22);
  color: var(--c-accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: fadeIn var(--dur) var(--ease) 1.1s backwards;
}
.chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* ═══════════ Value strip ═══════════ */
.strip { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 28px;
}
.strip__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c-text-2);
  line-height: 1.45;
}
.strip__item svg { flex: none; margin-top: 2px; }
.strip__item strong { display: block; color: var(--c-text); font-weight: 600; }

/* ═══════════ 区块通用 ═══════════ */
.section { padding-block: 104px; }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 720;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section__sub { color: var(--c-text-2); font-size: 16.5px; }

/* ═══════════ 卡片栅格 ═══════════ */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--c-border-strong); background: var(--c-surface-2); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid rgba(16, 163, 127, 0.22);
  margin-bottom: 18px;
}
.card h3 { font-size: 17.5px; font-weight: 650; margin-bottom: 10px; }
.card p { color: var(--c-text-2); font-size: 14.5px; }

/* 步骤卡 */
.card--step { position: relative; padding-top: 40px; }
.card__stepnum {
  position: absolute;
  top: -16px; left: 26px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-fg);
  font-size: 14px;
  font-weight: 700;
  border: 4px solid var(--c-canvas);
}

/* ═══════════ 关系阶梯 ═══════════ */
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: ladder;
}
.ladder__step {
  background: var(--c-canvas);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.ladder__step::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% -30%;
  height: 130px;
  background: radial-gradient(closest-side, var(--c-accent-soft), transparent 75%);
  pointer-events: none;
}
.ladder__num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 14px;
}
.ladder__step h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.ladder__step p { color: var(--c-text-2); font-size: 13.5px; }
.ladder__bar {
  display: block;
  height: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--c-accent), transparent);
  margin-top: 20px;
  opacity: 0.5;
}
.ladder__step:last-child .ladder__bar { background: linear-gradient(90deg, #34D399, #0E8C6B); opacity: 1; }

/* ═══════════ 定价 ═══════════ */
.grid--pricing { align-items: stretch; }
.card--price { display: flex; flex-direction: column; position: relative; }
.card--featured {
  border-color: rgba(16, 163, 127, 0.5);
  background: linear-gradient(180deg, rgba(16, 163, 127, 0.08), var(--c-surface) 42%);
}
.card--featured:hover { border-color: var(--c-accent); background: var(--c-surface-2); }
.card__flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: var(--c-accent-fg);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.price__name { font-size: 15px; font-weight: 650; color: var(--c-text-2); margin-bottom: 10px; }
.price__amount {
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.price__per { font-size: 14px; font-weight: 500; color: var(--c-text-3); letter-spacing: 0; margin-left: 2px; }
.price__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price__list li {
  position: relative;
  padding-left: 26px;
  color: var(--c-text-2);
  font-size: 14px;
}
.price__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  border: 1.5px solid var(--c-accent);
}
.price__list li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 11.5px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--c-accent);
  border-bottom: 1.5px solid var(--c-accent);
  transform: rotate(-45deg);
}
.price__note { margin-top: 10px; font-size: 12px; color: var(--c-text-3); text-align: center; }
.price__fineprint { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--c-text-3); }

/* ═══════════ FAQ ═══════════ */
.container--narrow { max-width: 780px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq__item:hover { border-color: var(--c-border-strong); }
.faq__item[open] { border-color: rgba(16, 163, 127, 0.35); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-text-2);
  border-bottom: 2px solid var(--c-text-2);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq__item p {
  padding: 0 22px 20px;
  color: var(--c-text-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ═══════════ 底部 CTA ═══════════ */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  inset: -140px 20% auto 20%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(16, 163, 127, 0.14), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta__sub { color: var(--c-text-2); font-size: 17px; margin-bottom: 30px; }
.cta .hero__cta { justify-content: center; }

/* ═══════════ Footer ═══════════ */
.footer { border-top: 1px solid var(--c-border); background: var(--c-surface); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}
.footer__tag { color: var(--c-text-3); font-size: 13.5px; margin-top: 14px; max-width: 240px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
  margin-bottom: 6px;
}
.footer__col a { color: var(--c-text-2); font-size: 14px; }
.footer__col a:hover { color: var(--c-accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-3);
  font-size: 12.5px;
}

/* ═══════════ 动效 & 可访问性 ═══════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding-block: 64px 56px; }
  .hero__copy { max-width: none; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid--3 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn--store { justify-content: center; }
}
