/* Jordan 个人站 v2：暖米纸底 + 近黑墨 + 一个柠檬强调色；Bricolage Grotesque / Noto Sans SC。 */
:root {
  --bg: #f4f1e9;
  --surface: #fbfaf6;
  --surface-2: #ebe7de;
  --ink: #121313;
  --mute: #666962;
  --line: rgba(18, 19, 19, 0.12);
  --line-strong: rgba(18, 19, 19, 0.32);
  --lime: #f4ff71;
  --lime-ink: #121313;
  --btn-bg: #121313;
  --btn-ink: #f4f1e9;
  --sar-red: #a8362a;

  --t-sage: #8fa38a;
  --t-mauve: #8d7fa0;

  --radius: 14px;
  --font: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --small: 15px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121313;
    --surface: #1b1c1c;
    --surface-2: #262727;
    --ink: #f4f1e9;
    --mute: #a4a69e;
    --line: rgba(244, 241, 233, 0.13);
    --line-strong: rgba(244, 241, 233, 0.36);
    --btn-bg: #f4f1e9;
    --btn-ink: #121313;
    --sar-red: #c9493b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
/* 子页：标题左对齐大字，正文段落最宽 720px */
.page > p, .page > ol, .page > ul, .page > .faq, .page > .fit { max-width: 720px; }
.page > h1 { max-width: 980px; }
.page > .pricing { max-width: 1000px; }
.page-visual { max-width: 720px; margin: 8px 0 32px; }

/* ── 顶栏 ─────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 6px 16px;
  padding-top: 10px;
  padding-bottom: 8px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}
.brand .site-mark { width: 24px; height: 24px; }
.site-mark {
  display: inline-block;
  flex: none;
  background: url('/assets/site-logo-a.png') center / contain no-repeat;
  clip-path: circle(48% at center);
}
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: var(--small); font-weight: 500; }
.nav a { color: var(--mute); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.top .btn { grid-area: cta; }

/* ── 按钮 / 胶囊 / 徽章 ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.quiet:hover { border-color: var(--ink); }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: var(--small); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.actions.center { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 1px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: var(--small);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ── 标题与正文 ─────────────────────────── */
main { padding: 40px 0 24px; }
h1, h2, h3 { font-weight: 600; color: var(--ink); }
h1 {
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
:lang(en) h1 { letter-spacing: -0.05em; }
h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 64px 0 16px;
}
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }
.mute { color: var(--mute); }
.small { font-size: var(--small); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: var(--small);
  font-weight: 500;
  line-height: 1.4;
}
.eyebrow:has(.mark) { padding-left: 5px; }

ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin: 0 0 6px; }

/* 细线列表（关于页“我不服务谁”等） */
.lined { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.lined li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ── 首页 Hero ─────────────────────────── */
.hero { padding: 24px 0 8px; text-align: center; }
.hero .hero-copy { max-width: 820px; }
.display {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  text-shadow: 2px 3px 0 rgba(201, 101, 74, 0.35);
}
.hero .lead { margin-bottom: 8px; }
.no-wrap { white-space: nowrap; }

/* 可以直接访问的网站作品 */
.site-work { scroll-margin-top: 100px; }
.site-work .section-head { margin-bottom: 10px; }
.site-work .section-head h2 { margin: 0; }
.site-work-intro { color: var(--mute); margin: 0 0 24px; }
.site-work-grid { display: grid; gap: 16px; }
.work-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(18,19,19,.09); }
.work-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  background: #222423;
  color: #e8e9e2;
}
.work-browser > span { width: 6px; height: 6px; border-radius: 50%; background: #848780; }
.work-browser > span:first-child { background: #d88876; }
.work-browser em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; font: normal 10px var(--mono); opacity: .8; }
.work-canvas {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 225px;
  padding: 22px;
  color: #121313;
}
.work-canvas small { font: 700 11px/1.4 var(--mono); letter-spacing: .1em; }
.work-canvas strong { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
.work-canvas > span { align-self: flex-end; font-size: 13px; font-weight: 600; }
.work-brace .work-canvas { background: #a4b8a0; }
.work-sar .work-canvas { background: #f0eae0; }
.work-sar .work-canvas strong { color: #a8362a; }
.work-here .work-canvas { background: #ded3b9; }
.work-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 14px 16px 16px; font-size: var(--small); line-height: 1.4; }
.work-caption b { font-size: 16px; }
.work-caption span { color: var(--mute); }

/* 关于页：先给可点开的项目 */
.proof-list { max-width: 820px; margin: 42px 0 24px; border-top: 1px solid var(--line); }
.proof-list a { display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 12px; padding: 19px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.proof-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.proof-list strong, .proof-list small { display: block; }
.proof-list strong { font-size: 19px; line-height: 1.35; }
.proof-list small { color: var(--mute); font-size: var(--small); line-height: 1.5; }
.proof-num { color: var(--mute); font: 13px var(--mono); }

/* Sera 场景：示例对话和接管决定分开看 */
.demo-note { max-width: 720px; color: var(--mute); font-size: var(--small); }
.sera-demo { max-width: 860px; margin: 28px 0 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.scenario-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.scenario-tabs button { min-height: 38px; padding: 7px 13px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--mute); font: 600 var(--small) var(--font); cursor: pointer; }
.scenario-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.scenario-tabs button:not([aria-selected="true"]):hover { border-color: var(--line-strong); color: var(--ink); }
.scenario-panel { padding: clamp(18px, 3vw, 32px); }
.scenario-panel[hidden] { display: none; }
.scenario-kicker { font: 700 12px/1.4 var(--mono); letter-spacing: .07em; color: var(--mute); margin-bottom: 24px; }
.demo-chat { display: flex; flex-direction: column; gap: 18px; margin: 0 0 28px; }
.demo-message { max-width: min(85%, 570px); margin: 0; padding: 14px 18px; border-radius: 18px; line-height: 1.55; }
.demo-message span { display: block; margin-bottom: 6px; font: 700 12px/1.3 var(--mono); letter-spacing: .05em; }
.demo-message.buyer { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--surface-2); }
.demo-message.sera-reply { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--t-mauve); color: #121313; }
.scenario-decision { margin: 0; padding: 16px 18px; border-left: 3px solid var(--sar-red); background: var(--bg); font-size: var(--small); }

/* ── 区块头 ─────────────────────────────── */
.section { margin-top: 72px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.section-head h2 { margin: 0; }
.section-head .all { font-size: var(--small); font-weight: 600; white-space: nowrap; text-decoration: none; }
.section-head .all:hover { text-decoration: underline; }

/* ── 大图卡（三样东西） ─────────────────── */
.cards { display: grid; gap: 40px 20px; margin: 0; }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  margin: 0 0 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .badge { position: absolute; top: 12px; left: 12px; }
.thumb.brace { background: var(--t-sage); }
.brace-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 32px);
  color: #121313;
}
.brace-label, .brace-route { font-family: var(--mono); font-size: clamp(10px, 1.3vw, 13px); font-weight: 700; letter-spacing: .1em; line-height: 1.3; }
.brace-visual strong { font-size: clamp(22px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.brace-route { align-self: flex-end; }
.brace-route span { font-size: 1.4em; margin: 0 .2em; }
.thumb.sar img { object-position: 50% 0; }
.card:hover .thumb { transform: translateY(-3px); border-color: var(--line-strong); }
.card .pill { margin: 0 0 10px; }
.card h2 { font-size: clamp(21px, 2.3vw, 25px); line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 8px; }
.card p { color: var(--mute); margin: 0 0 12px; }
.card .more { font-weight: 600; font-size: var(--small); text-decoration: none; }
.card .more::after { content: " →"; }
.card .more:hover { text-decoration: underline; }
.card.linked .more::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Sera 缩略图：纯 CSS 对话气泡 */
.thumb.sera {
  background: var(--t-mauve);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 8%;
}
.bubble {
  max-width: 80%;
  padding: 9px 15px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  background: #fbfaf6;
  color: #121313;
}
.bubble.me { align-self: flex-end; background: #121313; color: #f4f1e9; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 13px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8d7fa0; }
.bubble .bar { display: block; height: 8px; border-radius: 4px; background: currentColor; opacity: .5; width: 150px; max-width: 100%; }
.bubble .bar + .bar { margin-top: 7px; width: 96px; }

/* ── 已发布平台与视频封面 ── */
.social-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.social-index a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--small);
  font-weight: 600;
  text-decoration: none;
}
.social-index a:hover { border-color: var(--line-strong); }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.post-card { position: relative; margin: 0; scroll-snap-align: start; }
.post-card .thumb { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.post-card .meta { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--mute); font-size: var(--small); }
.post-card time { font-family: var(--mono); font-size: var(--small); }
.post-card .title { display: block; font-weight: 600; font-size: 17px; line-height: 1.4; text-decoration: none; }
.post-card .title::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .thumb { transform: translateY(-3px); border-color: var(--line-strong); }
.post-card:hover .title { text-decoration: underline; }

/* ── 步骤 ───────────────────────────────── */
.steps { list-style: none; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 18px 0 18px 56px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 15px;
}
.steps strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }

/* 适合 / 不适合：细线两栏 */
.fit { display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
.fit section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fit p { margin: 0; }

/* ── 定价：表格语义保留，视觉为圆角卡 ───── */
.pricing { margin: 0 0 18px; }
.pricing table, .pricing tbody, .pricing tr, .pricing th, .pricing td { display: block; }
.pricing table { width: 100%; }
.pricing thead {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.pricing tbody { display: grid; gap: 14px; }
.pricing tr {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.pricing tr.current { border-color: var(--line-strong); }
.pricing th { font-weight: 600; font-size: 17px; text-align: left; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pricing td.num { font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; white-space: nowrap; }
.pricing td:last-child { color: var(--mute); }

/* ── 常见问题：细线折叠 ─────────────────── */
.faq { border-top: 1px solid var(--line); margin: 0 0 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--mute); max-width: 680px; }

/* ── 内容列表（posts 页） ───────────────── */
.posts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.posts li { display: grid; gap: 4px 24px; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); }
.posts time { color: var(--mute); font-family: var(--mono); font-size: var(--small); }
.posts .title { font-weight: 600; font-size: 17px; line-height: 1.45; }
.posts .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.posts .links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--small);
  font-weight: 500;
  text-decoration: none;
}
.posts .links a:hover { border-color: var(--ink); }

/* ── 代码 ───────────────────────────────── */
code {
  font-family: var(--mono);
  font-size: max(var(--small), 0.86em);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 6px;
}

/* 小遇标识：与 SAR 站 site-header.tsx 的 .mark 一致（红色圆角方块 + 白色“遇”字） */
.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--sar-red);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.mark::before { content: "遇"; }

/* ── 页脚：一行小灰字 ───────────────────── */
.foot { margin-top: 88px; border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 36px;
  font-size: var(--small);
  color: var(--mute);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.foot p { margin: 0; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── 宽屏 ───────────────────────────────── */
@media (min-width: 700px) {
  :root { --small: 14px; }
  body { font-size: 17px; }
  .wrap { padding: 0 28px; }
  main { padding-top: 64px; }
  .hero { padding-top: 40px; }
  .fit { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100% - 32px) / 3); }
  .posts li { grid-template-columns: 120px 1fr; }
  .posts li .links { grid-column: 2; }
  .top .wrap {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav cta";
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .top .btn { justify-self: end; }
  .nav { justify-content: center; gap: 4px 26px; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .site-work-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing tbody { grid-template-columns: repeat(3, 1fr); }
  .pricing tr.addon {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 24px;
  }
  .pricing tr.addon th, .pricing tr.addon td.num, .pricing tr.addon td { margin: 0; }
  .pricing tr.addon td.num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .thumb, .work-card { transition: none; }
  .btn:hover, .card:hover .thumb, .post-card:hover .thumb, .work-card:hover { transform: none; }
}
.after-cards { margin-top: 40px; font-weight: 600; }
.page > .cards { margin-top: 56px; }
