/* clawcu alpha 官网落地页(/welcome;文件名沿用 welcome2.*,alpha1 已于 2026-10-01 弃用、留在 git tag alpha1)的版式。
   设计系统不在这里:颜色/圆角/按钮/chip/tabs 全部复用 app.css 的令牌与组件,本文件只补落地页版式。
   ⚠️ CSP 是 style-src-elem 'self' → 样式必须走外部文件;只有 style="…" 属性可用。
   ⚠️ 类名一律 lp- 前缀,避免和 app.css 的 .card/.row/.tabs 等组件撞名。 */

/* ── 骨架 ── */
.lp { min-height: 100%; }
/* 锚点落点避开吸顶栏(topbar 56px) */
html { scroll-padding-top: 72px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lp-bar { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.lp-spacer { flex: 1; }
.lp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .lp-wrap { padding: 0 16px; } .lp-bar { gap: 8px; } }

.lp-brand { padding: 0; font-weight: 600; letter-spacing: -0.01em; }
.lp-nav { display: flex; gap: 20px; margin-left: 10px; }
.lp-nav a { color: var(--ink-soft); font-size: 13.5px; white-space: nowrap; }
.lp-nav a:hover { color: var(--ink); }
.lp-menu-btn { display: none; }
@media (max-width: 900px) {
  .lp-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 56px;
    flex-direction: column; gap: 0; margin: 0; padding: 6px 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .lp-nav.open { display: flex; }
  .lp-nav a { padding: 11px 20px; font-size: 14px; }
  .lp-menu-btn { display: grid; }
}
@media (max-width: 560px) { .lp-hide-sm { display: none; } }

/* ── Hero:左文案(H1 + 口号 + 价格锚点),右在售列表;两栏顶对齐 ── */
/* 欢迎额度横幅:默认 hidden(attrib.js 按推广码打开)。display 只写在内层,别覆盖外层的 [hidden] */
.lp-promo { background: var(--primary-soft); border-bottom: 1px solid var(--line); }
.lp-promo-inner { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px; }
.lp-promo-text { margin: 0; font-size: 14px; font-weight: 600; text-align: center; }
.lp-promo-note { font-weight: 400; color: var(--ink-mute); font-size: 12.5px; margin-left: 6px; white-space: nowrap; }
.lp-hero { padding-top: 56px; padding-bottom: 8px; }
@media (max-width: 640px) { .lp-hero { padding-top: 36px; } }
.lp-hero-grid { display: grid; gap: 28px 40px; align-items: start; }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.lp-h1 {
  margin: 18px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.03em;
}
.lp-lede { margin: 16px 0 0; max-width: 36em; color: var(--ink-soft); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.lp-anchor { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 0; }
.lp-anchor-label { color: var(--ink-mute); font-size: 13px; }
.lp-anchor b {
  font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--primary);
}

.lp-models { padding: 5px 6px 6px; }
.lp-models-head {
  display: flex; justify-content: space-between;
  padding: 9px 12px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-mute); font-size: 11.5px; letter-spacing: .06em;
}
.lp-model {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: background-color .14s ease;
}
.lp-model + .lp-model { border-top: 1px solid var(--line-soft); border-radius: 0; }
.lp-model:hover { background: var(--surface-3); }
.lp-mk { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.lp-model-name { flex: 1; min-width: 0; }
.lp-model-price { color: var(--ink-soft); font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
/* 2026-10-03 用户:Kimi K3 降价 → 官方价划线、在售价高亮对比。 */
.lp-was { color: var(--ink-mute); text-decoration: line-through; text-decoration-thickness: 1px; margin-right: 5px; font-weight: 500; }
.lp-now { color: var(--primary); font-weight: 700; }
.lp-ptable td.price .lp-was { color: var(--ink-mute); font-weight: 500; }
.lp-ptable td.price .lp-now { color: var(--primary); font-weight: 700; }

/* ── 区块 ── */
.lp-section { padding-top: 56px; }
@media (max-width: 640px) { .lp-section { padding-top: 40px; } }
.lp-sec-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lp-sec-head h2 { margin: 0; font-size: clamp(21px, 2.6vw, 27px); font-weight: 600; letter-spacing: -0.025em; }
.lp-sec-sub { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* ── 定价对比表(≥880px):三价同级、等宽数字右对齐;hero 点行跳来时 :target 高亮该行 ── */
.lp-table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.lp-ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lp-ptable th, .lp-ptable td {
  padding: 14px 16px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
.lp-ptable thead th {
  padding-top: 11px; padding-bottom: 11px;
  background: var(--surface-3); border-bottom-color: var(--line);
  color: var(--ink-mute); font-family: var(--font); font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.lp-ptable tbody tr:last-child > * { border-bottom: 0; }
.lp-ptable tbody tr { transition: background-color .14s ease; }
.lp-ptable tbody tr:hover { background: var(--surface-3); }
.lp-ptable tbody tr:target { background: var(--primary-soft); }
.lp-ptable .num { text-align: right; white-space: nowrap; }
.lp-ptable td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lp-ptable td.price { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.lp-ptable td:not(.price) { color: var(--ink-soft); }
.lp-pm { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.lp-pm-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.lp-pm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

/* 窄屏:表格回落成卡片 —— 每行一张卡,模型名占满一行,其余 6 格 3×2 排,字段名取 td 的 data-label */
@media (max-width: 879px) {
  .lp-table-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .lp-ptable, .lp-ptable tbody { display: block; }
  .lp-ptable thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .lp-ptable tbody { display: grid; gap: 12px; }
  .lp-ptable tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px;
    padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  }
  .lp-ptable tbody tr:hover { background: var(--surface); }
  .lp-ptable tbody tr:target { background: var(--primary-soft); }
  .lp-ptable th, .lp-ptable td { padding: 0; border: 0; }
  .lp-ptable .lp-pm { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
  .lp-ptable td { text-align: left !important; white-space: normal; }
  .lp-ptable td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    color: var(--ink-mute); font-family: var(--font); font-size: 11.5px; font-weight: 400;
  }
}
@media (min-width: 600px) and (max-width: 879px) {
  .lp-ptable tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lp-notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-notes li { color: var(--ink-mute); font-size: 12.5px; }
.lp-ic {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  background: var(--surface-3); border-radius: var(--radius-sm);
  padding: 1px 5px; white-space: nowrap;
}
.lp-ptable tbody tr:hover .lp-ic { background: var(--surface); }

/* ── 接入:四步落点 ── */
.lp-start {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  margin-top: 22px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.lp-steps {
  flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px;
  list-style: none; margin: 0; padding: 0;
}
.lp-steps li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13.5px; white-space: nowrap; }
.lp-steps li + li::before { content: "→"; margin-right: 8px; color: var(--ink-mute); font-family: var(--mono); }
.lp-step-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-size: 11.5px; font-weight: 600; font-family: var(--mono);
}
@media (max-width: 640px) {
  .lp-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .lp-steps li + li::before { content: none; }
  .lp-start-btn { width: 100%; justify-content: center; }
}

/* Base URL:标签 / 地址 / 复制 一行;窄屏标签上移,地址与按钮仍同行(不再把按钮挤到第二行) */
.lp-base {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.lp-base code { font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: nowrap; }
@media (max-width: 480px) {
  .lp-base { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .lp-base .lp-label { grid-column: 1 / -1; }
}
.lp-label { color: var(--ink-mute); font-size: 11.5px; }

/* 不设 overflow:选中下划线在 bottom:-1px(app.css),一裁就会冒出纵向滚动条;4 个标签在 375px 下收窄间距即可放下 */
#int-tabs { margin: 22px 0 14px; }
#int-tabs .tab { white-space: nowrap; }
@media (max-width: 480px) {
  #int-tabs { gap: 10px 14px; flex-wrap: wrap; }   /* wrap 只是 ≤320px 小屏的兜底,375px 下一行放得下 */
  #int-tabs .tab { font-size: 13.5px; }
}
.lp-code-card {
  min-width: 0; padding: 12px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-3);
}
/* Codex CLI 页签放两张卡(Unix / Windows):卡间留缝,脚本说明落在卡下方 */
.lp-panel > .lp-code-card + .lp-code-card { margin-top: 10px; }
.lp-note { margin: 10px 2px 0; color: var(--ink-mute); font-size: 12.5px; line-height: 1.6; }
.lp-note code { font-family: var(--mono); font-size: 12px; margin: 0 3px; }
/* 卡片标题是文件名/路径,不能转大写 */
.lp-code-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; color: var(--ink-mute); font-size: 11.5px; letter-spacing: 0.04em;
}
.lp-code-card pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--ink); }
.tk-c { color: var(--ink-mute); }

/* ── 页脚:logo + 版权在左,链接顶到右;换行后整体左对齐(不再出现"版权右上、链接右下") ── */
.lp-foot { margin-top: 56px; border-top: 1px solid var(--line); }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 26px; padding-bottom: 26px; }
.lp-foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lp-foot-meta { color: var(--ink-mute); font-size: 12.5px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; color: var(--ink-soft); font-size: 13px; }
.lp-foot-links a:hover { color: var(--ink); }
@media (max-width: 900px) { .lp-foot-links { margin-left: 0; flex-basis: 100%; } }

/* 页头语言切换(2026-10-11 起下拉菜单,见 welcome2.js):一个按钮「地球 + 当前语言简称 + ▾」,与登录按钮同高,窄屏也保留;
   菜单复用 app.css 的 .popover / .popover-item,这里只改成跟着按钮走的绝对定位 */
.lp-lang { min-width: 40px; justify-content: center; gap: 5px; padding: 0 8px; }
.lp-lang::after {
  content: ""; width: 0; height: 0; margin-left: 1px; opacity: .6;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor;
}
.lp-lang[aria-expanded="true"] { background: var(--surface-3); color: var(--ink); }
.lp-globe { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lp-lang-wrap { position: relative; }
.lp-lang-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; }
.lp-lang-menu[hidden] { display: none; }
.lp-lang-menu .popover-item { text-decoration: none; }

/* API 端点(2026-10-04):主推 OpenAI 兼容,一张全宽卡,按「规格表」排 ——
   左列标签同宽(Base URL / 端点 / 认证),右列取值共用一条左边线,行间细分隔线;
   方法徽章定宽 → 各路径左对齐;说明放在路径正下方(与路径同一条左边线)。宽屏三个端点并排,窄屏标签上移、端点单列。 */
.lp-api { margin-top: 12px; }
.lp-api-card {
  min-width: 0; padding: 16px 20px 4px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.lp-api-title { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.lp-spec { margin: 0; }
.lp-spec-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.lp-spec-row:first-child { border-top: 0; }
.lp-spec-k { margin: 0; color: var(--ink-mute); font-size: 12px; line-height: 20px; }
.lp-spec-v { margin: 0; min-width: 0; font-size: 12.5px; line-height: 20px; }
.lp-spec-v code { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.lp-spec-v--copy code { color: var(--ink); font-weight: 700; }   /* Base URL 行:黑色加粗凸显(用户 2026-10-04) */
.lp-spec-v--copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-spec-row:first-child { align-items: center; }   /* 复制按钮比文字高:首行按中线对齐,标签不下沉 */
.lp-eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-eps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: baseline; min-width: 0; }
.lp-verb {
  justify-self: start; width: 44px; text-align: center; padding: 1px 0; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary); font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 16px;
}
.lp-ep-desc { grid-column: 2; color: var(--ink-mute); font-size: 12px; line-height: 18px; }
@media (min-width: 900px) {
  .lp-eps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 560px) {
  .lp-api-card { padding: 14px 16px 2px; }
  .lp-spec-row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
}

/* ── QA(2026-10-08):投 Google Ads 前的异议处理 ──────────────────────────────
   用原生 <details>/<summary> 折叠:不需要 JS —— CSP 是 script-src 'self',任何"点开收起"的
   自研实现都要么加内联 handler(被拦)要么加额外脚本文件;原生元素零成本且可被搜索引擎读到全文。 */
.lp-faq { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-qa {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 0;
}
.lp-qa > summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 15px 46px 15px 18px; font-size: 14.5px; font-weight: 600; line-height: 1.5;
  color: var(--ink); border-radius: var(--radius-lg);
}
.lp-qa > summary::-webkit-details-marker { display: none; }   /* Safari 默认三角 */
.lp-qa > summary::after {                                     /* 右侧 +/− 指示 */
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 17px; font-weight: 400; color: var(--ink-mute); line-height: 1;
}
.lp-qa[open] > summary::after { content: '−'; }
.lp-qa[open] > summary { border-bottom: 1px solid var(--line-soft); }
.lp-qa > summary:hover { background: var(--mute-soft); }
.lp-qa-body { padding: 14px 18px 16px; }
.lp-qa-body > p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; }
.lp-qa-body > p + .lp-notes { margin-top: 10px; }
.lp-qa-body .lp-notes li { font-size: 13px; line-height: 1.65; }
.lp-qa-body .lp-notes li::before { content: '· '; }           /* 与正文区分:清单用点号起头 */
/* QA 里的「标签:地址」行(如 Q4 的两个端点):标签与地址之间留一口气,地址过长时整体换行而不是把标签切断 */
.lp-qa-body .lp-notes li .lp-ic { margin-left: 4px; }
.lp-qa-body .lp-notes li > span[data-i18n] { white-space: nowrap; }
.lp-qa-foot { margin: 12px 0 0 !important; color: var(--ink-mute) !important; font-size: 12.5px !important; }
.lp-qa-foot a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* 404 页(SPEC-apps-site-seo)*/
.lp-404 { padding: 96px 0 120px; }
.lp-404-cta { margin: 28px 0 0; }

/* ── 模型落地页 /deepseek-api 等(SPEC-apps-model-landing-pages):其余样式全部复用首页的 lp-* ── */
.mp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-ptable td.mp-save { color: var(--primary); font-weight: 600; }
/* 对比表的行头是普通表格单元格(首页的 .lp-pm 是 flex,放在纯文字行头上会让行线错位);窄屏卡片里占满一行 */
.lp-ptable th.mp-rowh { font-weight: 500; color: var(--ink); }
@media (max-width: 879px) {
  .lp-ptable .mp-rowh { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
}
.mp-tools-title { margin-top: 28px; }
.mp-more { max-width: 560px; }
