/* AI智脑悟空 · 公开商城前台
   设计语言：商家工作台 / 在岗名册；墨绿黑 + 冷米纸 + 朱砂红 + 黄铜线。 */

:root {
  color-scheme: light;
  --ink: #151a17;
  --ink-2: #2a302b;
  --paper: #f1f2ec;
  --paper-2: #e5e7de;
  --white: #ffffff;
  --cinnabar: #c23b2a;
  --cinnabar-dark: #9f2f21;
  --brass: #a67c3d;
  --jade: #2e6b5a;
  --muted: #5c635d;
  --line: rgba(21, 26, 23, 0.16);
  --line-strong: rgba(21, 26, 23, 0.32);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cinnabar); }
img { max-width: 100%; display: block; }

::selection { background: var(--cinnabar); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ---------- 头部 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 242, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--cinnabar);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-on { color: var(--ink); border-bottom-color: var(--cinnabar); }

/* ---------- 首页 hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 92px) 0 clamp(36px, 6vw, 80px);
}

.hero::before {
  content: "变";
  position: absolute;
  right: -0.06em;
  top: -0.2em;
  font-family: var(--serif);
  font-size: clamp(220px, 38vw, 560px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(21, 26, 23, 0.09);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-kicker .seal { width: 26px; height: 26px; font-size: 15px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 26px;
  text-wrap: balance;
}

.hero-lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.btn-primary:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: #fff; color: var(--ink); }

.hero-note {
  margin: 24px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* 在岗名册卡片 —— 页面唯一的“实物”元素 */
.roster-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: 22px 22px 16px;
  border-radius: 2px;
  box-shadow: 8px 8px 0 rgba(21, 26, 23, 0.05);
}
.roster-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stamp {
  display: inline-block;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  transform: rotate(-4deg);
}

.roster-list { list-style: none; margin: 0; padding: 0; }
.roster-list li { border-bottom: 1px dashed var(--line); }
.roster-list a,
.roster-list li > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
}
.roster-list a:hover { color: var(--cinnabar); }
.roster-name { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.roster-cat { color: var(--muted); font-size: 12px; white-space: nowrap; }
.roster-list .is-off { color: var(--muted); }
.roster-list .is-off span:first-child { font-family: var(--serif); }
.roster-foot { padding-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- 通用区块 ---------- */

.section { padding: clamp(46px, 7vw, 86px) 0; border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2,
.page-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head a {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.section-head a:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.section-lede {
  max-width: 40em;
  color: var(--muted);
  margin: -10px 0 30px;
  font-size: 15px;
}

/* ---------- 智能体名册表格 ---------- */

.agent-table { border-bottom: 1px solid var(--line); }

.agent-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 140px;
  gap: clamp(18px, 3vw, 40px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.agent-main { display: flex; gap: 16px; min-width: 0; }
.agent-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  flex: none;
  object-fit: cover;
  background: var(--paper-2);
}
.agent-main h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 600;
}
.agent-main h3 a:hover { color: var(--cinnabar); }
.agent-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--jade);
  margin-bottom: 6px;
}
.agent-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.agent-price { text-align: right; white-space: nowrap; }
.agent-price strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.agent-price .unit { font-size: 12px; color: var(--muted); margin-left: 2px; }
.agent-price small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.agent-price .off {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.agent-row.is-off .agent-main h3 { color: var(--muted); }
.agent-row.is-off .agent-icon { opacity: 0.55; }

/* ---------- 怎么开始 ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: 34px;
}
.how-step { border-top: 2px solid var(--ink); padding-top: 18px; }
.how-num {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  color: var(--cinnabar);
  letter-spacing: -0.04em;
}
.how-step h3 { font-family: var(--serif); font-size: 22px; margin: 12px 0 8px; font-weight: 600; }
.how-step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 为什么 ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.why-item { padding: 26px 28px 0 0; border-right: 1px solid var(--line); }
.why-item:last-child { border-right: 0; padding-right: 0; }
.why-item + .why-item { padding-left: 28px; }
.why-item h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; font-weight: 600; }
.why-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 深色收尾 ---------- */

.cta-band { background: var(--ink); color: var(--paper); padding: clamp(52px, 8vw, 96px) 0; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
  max-width: 16em;
  letter-spacing: -0.02em;
}
.cta-band p { color: #b9c0b8; font-size: 14px; margin: 12px 0 0; }
.cta-band .seal { width: 48px; height: 48px; font-size: 26px; margin-bottom: 18px; }
.cta-band .btn-paper { min-height: 52px; padding: 0 28px; }

/* ---------- 页脚 ---------- */

.site-foot {
  background: var(--ink);
  color: #aeb5ad;
  padding: 36px 0 30px;
  border-top: 1px solid rgba(241, 242, 236, 0.12);
}
.site-foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.site-foot a { color: #d8ddd5; }
.site-foot a:hover { color: #fff; }
.foot-brand { font-family: var(--serif); font-size: 20px; color: var(--paper); margin-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.foot-meta { font-size: 12.5px; line-height: 1.9; text-align: right; }

/* ---------- 详情页 ---------- */

.crumbs { padding: 22px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--cinnabar); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(26px, 4vw, 48px) 0 clamp(50px, 7vw, 90px);
  align-items: start;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--jade);
  margin-bottom: 14px;
}

.detail h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 12px;
}

.detail-sub { font-size: 18px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }

.detail-desc {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  max-width: 44em;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.9;
}
.detail-desc p { margin: 0 0 1.1em; }
.detail-desc h2, .detail-desc h3 { font-family: var(--serif); margin: 1.6em 0 0.6em; line-height: 1.3; }
.detail-desc ul, .detail-desc ol { padding-left: 1.3em; }
.detail-desc li { margin: 0.35em 0; }
.detail-desc img { border: 1px solid var(--line); margin: 1em 0; }

.examples { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 26px; }
.examples h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 14px; font-weight: 600; }
.examples ul { list-style: none; margin: 0; padding: 0; }
.examples li {
  border-left: 3px solid var(--cinnabar);
  padding: 4px 0 4px 14px;
  margin: 10px 0;
  font-size: 15px;
  color: var(--ink-2);
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.buy-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--cinnabar);
  padding: 22px;
  background: var(--white);
  border-radius: 2px;
}
.buy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.buy-price {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  margin: 18px 0 4px;
  letter-spacing: -0.03em;
}
.buy-price .unit { font-size: 15px; color: var(--muted); margin-left: 4px; }
.buy-market { font-size: 13px; color: var(--muted); text-decoration: line-through; margin: 0 0 10px !important; }
.buy-panel p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.buy-panel .btn { width: 100%; }
.copy {
  margin-top: 10px;
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--sans);
  border-radius: 2px;
  cursor: pointer;
}
.copy:hover { border-color: var(--ink); }
.buy-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px !important; }

/* ---------- 筛选 ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.filters a {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
}
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 关于 / 开始使用 ---------- */

.prose { max-width: 46em; font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.prose h2 { font-family: var(--serif); font-size: 24px; margin: 2em 0 0.7em; }
.prose p { margin: 0 0 1.1em; }
.prose .contact { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; }

.steps { list-style: none; padding: 0; margin: 30px 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 32px;
  color: var(--cinnabar);
  line-height: 1;
}
.steps h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.note-box {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 24px 0;
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-lede, .hero-actions { animation: rise 0.6s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .roster-card { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .roster-card { max-width: 520px; }
  .detail { grid-template-columns: 1fr; }
  .buy-panel { position: static; max-width: 480px; }
}

@media (max-width: 820px) {
  .agent-row { grid-template-columns: 1fr; gap: 12px; }
  .agent-price { text-align: left; }
  .agent-tags { order: 3; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .why-item + .why-item { padding-left: 0; }
  .why-item:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .how-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .foot-meta { text-align: left; }
}

@media (max-width: 560px) {
  .site-head .wrap { min-height: 60px; gap: 12px; }
  .brand { font-size: 16px; }
  .nav { gap: 12px; font-size: 13px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero::before { font-size: 78vw; top: -0.08em; right: -0.16em; }
  .roster-card { padding: 18px 18px 12px; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .steps li { grid-template-columns: 42px 1fr; gap: 12px; }
  .steps li::before { font-size: 26px; }
}
