/* Renard GEO 内容页共享样式
   独立于 DaisyUI，但直接采用 caramellatte 主题的精确值（daisyui theme + app style.css 的
   "降低暖度" 覆盖），与 app 的 landing 页视觉一致：
   - 底色 base-100（app 覆盖）oklch(99% 0.004 73.684)，接近暖白
   - 正文 base-content oklch(40% 0.123 38.172)，中等暖棕（不是近黑）
   - 强调 accent oklch(46.44% 0.111 37.85)
   系统 serif 栈（Source Serif 4 = 品牌字 font-brand，缺失回退 Georgia），不引外部字体。 */

:root {
  --bg: oklch(99% 0.004 73.684);
  /* base-100 (app override) */
  --paper: oklch(97% 0.008 75.164);
  /* base-200 (app override) */
  --line: oklch(94% 0.02 70.697);
  /* base-300 (app override) */
  --ink: oklch(40% 0.123 38.172);
  /* base-content */
  --ink-soft: oklch(40% 0.123 38.172 / 0.62);
  /* base-content @ ~60%，同 landing text-base-content/60 */
  --ink-faint: oklch(40% 0.123 38.172 / 0.42);
  --accent: oklch(46.44% 0.111 37.85);
  /* accent */
  --accent-hover: oklch(38% 0.111 37.85);
  --shadow: oklch(40% 0.123 38.172 / 0.08);
  /* 暖色柔和阴影，同 shadow-base-content/8 */
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

/* ---- 页头 ---- */
.geo-header {
  max-width: 60rem;
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.geo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.geo-wordmark svg {
  width: 26px;
  height: 26px;
}

.geo-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16px;
  margin-left: 20px;
}

.geo-header nav a:hover {
  color: var(--accent);
}

/* ---- 正文容器 ---- */
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.geo-eyebrow {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 10px;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  color: var(--ink);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink);
}

p {
  margin: 0 0 18px;
}

.geo-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* 可见的更新时间：AI 搜索偏好有时效信号的页面，光有 dateModified 标记不够 */
.geo-updated {
  font-size: 15px;
  color: var(--ink-faint);
  margin: 0 0 26px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, var(--accent) 35%, transparent);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-style: normal;
  color: var(--ink-soft);
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

/* ---- 能力对比表 ---- */
.geo-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--paper);
  font-weight: 600;
  color: var(--accent);
}

tbody tr:last-child td {
  border-bottom: none;
}

td:first-child,
th:first-child {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- FAQ ---- */
.geo-faq {
  margin: 20px 0 8px;
}

.geo-faq dt {
  font-weight: 600;
  font-size: 1.12rem;
  margin: 24px 0 6px;
  color: var(--ink);
}

.geo-faq dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ---- CTA ---- */
.geo-cta {
  margin: 40px 0 8px;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.geo-cta p {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--ink);
}

.geo-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  transition: background 0.15s ease-out;
}

.geo-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ---- 页脚 ---- */
.geo-footer {
  max-width: 44rem;
  margin: 32px auto 0;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.geo-footer h2 {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}

.geo-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.geo-footer li {
  margin: 0;
}

.geo-footer .geo-fine {
  color: var(--ink-faint);
}

/* ---- 中文页（/zh 及其下） ----
   Latin 仍走 Source Serif 4 / Georgia（逐字符匹配，先命中的字体先用），CJK 另开一栈：
   衬线 CJK 在各平台的默认字都不理想（Windows 回退到 SimSun，19px 下发虚），
   中文长文在屏幕上读黑体更稳，所以只给 CJK 换成系统黑体。

   Latin 的负字距与 1.65 行高是为西文调的，中文密度更高，都放回中性值。

   这里的规则全部限定在 html[lang="zh-CN"] 下，不影响英文页。 */
html[lang='zh-CN'] body {
  font-family: 'Source Serif 4', Georgia, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

html[lang='zh-CN'] h1,
html[lang='zh-CN'] h2,
html[lang='zh-CN'] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang='zh-CN'] .geo-lede {
  line-height: 1.7;
}

/* 中文没有词间空格，两端对齐不会像西文那样撕出空洞，长段落反而更整齐 */
html[lang='zh-CN'] main p {
  text-align: justify;
}

/* 中文可以在任意字符之间断行，「Free 相遇」这种短表头会被拆成「Free 相」+「遇」两行，
   读起来像两个词。表头强制不折行，表格因此变宽时由 .geo-table-wrap 横向滚动兜住。
   正文单元格是整句，照常折行。 */
html[lang='zh-CN'] thead th {
  white-space: nowrap;
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .geo-header {
    padding: 20px 18px 4px;
  }

  main {
    padding: 16px 18px 32px;
  }

  .geo-header nav a {
    margin-left: 14px;
    font-size: 15px;
  }
}

/* ---- 页头常驻 CTA ----
   这些页面是 AI 流量的落地页，但正文很长：底部那个 .geo-cta 在页面 94% 处，
   而定价表在 30% 处——在那里就被说服的人根本滚不到底。header 放一个常驻入口，
   始终可见、不打断阅读，也不用往正文里塞推销话术（那会毁掉这些页面被 AI 引用
   的前提：它们读起来像诚实的导购，不像落地页）。

   直接指 /register 而不是 /welcome：读完一整篇的人不需要再看一遍 landing。
   底部那个 CTA 仍指 /welcome——两个不同意图，header 给「已经决定了」的人，
   底部给「想先了解产品」的人。

   选择器要写成 .geo-header nav a.geo-nav-cta：.geo-header nav a 的特异性
   高于单个类名，不带上前缀的话颜色会被它盖回 --ink-soft。 */
.geo-header nav a.geo-nav-cta {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s ease-out;
}

.geo-header nav a.geo-nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

@media (max-width: 640px) {
  /* 窄屏放不下「两个站内链接 + 按钮」，挤在一起会换行把页头撑成两行。
     站内导航在页脚的「Keep reading」里全都有，这里只保留唯一的入口。 */
  .geo-header nav a:not(.geo-nav-cta) {
    display: none;
  }

  .geo-header nav a.geo-nav-cta {
    margin-left: 0;
    padding: 6px 14px;
  }
}
