/* ============================================================
   工坊 · 极简样式表
   设计参考：Linear / Vercel / Raycast —— 大量留白、单强调色、
   细分隔线、卡片化、系统字体、无外部字体与图片请求（不卡顿）
   ============================================================ */

:root {
  --ink: #0e1116;
  --muted: #5c6470;
  --faint: #8b929e;
  --line: #e7e9ee;
  --line-strong: #d6d9e0;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --soft-2: #f1f3f7;
  --accent: #2f5bea;
  --accent-ink: #1e45c0;
  --accent-soft: #eef2ff;
  --ok: #128a5a;
  --warn: #b45309;
  --danger: #c2410c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 16px 48px rgba(16, 24, 40, .12);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3; }
h3 { font-size: 17px; }
p { margin: 0; }

code, kbd, .mono { font-family: var(--mono); font-size: .92em; }

/* ---------- 骨架 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 680; letter-spacing: -.02em; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(145deg, #2f5bea, #6f8cff);
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

/* ---------- 通用 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 11px; border-radius: 999px;
}
.lead { color: var(--muted); font-size: 16.5px; }
.small { font-size: 13px; color: var(--faint); }
.section { padding: 76px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { margin: 12px 0 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 560; cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
  font-family: inherit;
}
.btn:hover { background: var(--soft); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 22px;
}
.card.hover { transition: box-shadow .18s, border-color .18s, transform .18s; }
.card.hover:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-1px); }

.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* ---------- 首页 ---------- */
.hero { padding: 84px 0 64px; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 48px;
}
.stat { background: #fff; padding: 20px 22px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }

.tool-card { display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.tool-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-card p { font-size: 13.5px; color: var(--muted); }
.tag {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--soft-2); border-radius: 999px; padding: 2px 9px;
}
.tag.live { color: var(--ok); background: #e9f8f0; }
.tag.soon { color: var(--faint); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 13.5px; font-weight: 560; color: #333a45; }
.field .hint { font-size: 12.5px; color: var(--faint); }

input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 234, .12);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8b929e 50%), linear-gradient(135deg, #8b929e 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 13.5px; color: var(--muted); transition: all .14s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip input { display: none; }
.chip.on { background: var(--accent-soft); border-color: #c7d4ff; color: var(--accent-ink); font-weight: 560; }

/* ---------- 取名 ---------- */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step-dot {
  flex: 1; height: 4px; border-radius: 99px; background: var(--soft-2);
}
.step-dot.done { background: var(--accent); }

.persona {
  border: 1px solid #d9e2ff; background: #f6f8ff; border-radius: var(--radius);
  padding: 16px 18px; font-size: 13.5px; color: #33406b; margin-top: 14px;
}
.persona b { color: #1e2f6b; }

.name-list { display: grid; gap: 10px; margin-top: 18px; }
.name-item {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.name-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.name-main { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.name-py { font-size: 12.5px; color: var(--faint); font-weight: 400; letter-spacing: .02em; }
.name-why { font-size: 13px; color: var(--muted); margin-top: 3px; }
.name-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--muted);
  font-size: 13px;
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }

/* ---------- 论文辅助 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 11px 14px; font-size: 14px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

.checklist { display: grid; gap: 10px; }
.check-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer;
}
.check-row:hover { background: var(--soft); }
.check-row input { margin-top: 3px; accent-color: var(--accent); }

.out {
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.75;
  max-height: 420px; overflow: auto; font-family: var(--mono);
}

/* ---------- 客服 ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  transition: transform .15s, background .15s;
}
.chat-fab:hover { transform: translateY(-2px); background: #000; }

.chat-panel {
  position: fixed; right: 22px; bottom: 82px; z-index: 91;
  width: 360px; max-width: calc(100vw - 32px); max-height: 74vh;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chat-body { padding: 14px 16px; overflow: auto; font-size: 13.5px; }
.chat-foot { padding: 12px 16px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 10px 0;
  font-size: 13.5px; font-weight: 560; cursor: pointer; color: var(--ink);
  display: flex; justify-content: space-between; gap: 10px; font-family: inherit;
}
.faq-a { font-size: 13px; color: var(--muted); padding: 0 0 10px; display: none; }
.faq-item.open .faq-a { display: block; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px);
  background: #11161d; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .22s; z-index: 120;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line); padding: 34px 0; margin-top: 20px;
  font-size: 13px; color: var(--faint);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- 无障碍 / 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 收敛版首页：少装饰，多留白 ---------- */
.intro h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 12px; }
.intro p { color: var(--muted); font-size: 15.5px; max-width: 520px; }

.rows { margin-top: 46px; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px;
  padding: 17px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.row-name { font-weight: 600; font-size: 15.5px; }
.row-desc { color: var(--muted); font-size: 14px; line-height: 1.65; }
a.row:hover .row-name { text-decoration: underline; text-underline-offset: 3px; }
a.row:hover .row-desc { color: var(--ink); }
.muted-row { opacity: .55; }
.muted-row .row-name { font-weight: 500; }

.prose { margin-top: 68px; max-width: 620px; }
.prose h2 { font-size: 15px; font-weight: 650; margin-bottom: 14px; }
.prose p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 12px; }

@media (max-width: 680px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
}

/* 客服按钮收敛：白底细边，不抢视线 */
.chat-fab {
  width: 42px; height: 42px;
  background: #fff; color: var(--muted);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.chat-fab:hover { background: var(--soft); color: var(--ink); transform: none; }

/* 收敛：主按钮改近黑，选中态用中性灰，减少“产品感” */
.btn-primary { background: #11161d; border-color: #11161d; color: #fff; }
.btn-primary:hover { background: #000; border-color: #000; }
.chip.on { background: #f1f3f7; border-color: #c9ced8; color: #11161d; }
.chip:hover { border-color: #9aa3b2; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: #11161d; box-shadow: 0 0 0 3px rgba(17,22,29,.08); }

.step-dot.done { background: #11161d; }
.tab.active { border-bottom-color: #11161d; color: #11161d; }
.step-dot { height: 3px; }

