/* 官网原型页的补丁样式(原型 <head> 里那段基础 reset + 上线新增元素)。原型自身样式在 /site/css/。 */
.site-proto [hidden]:not([hidden=until-found i]) { display: none !important; }
.site-proto img { max-width: 100%; }
.site-proto .ck-form input.is-invalid { outline: 2px solid var(--accent, #E5A338); outline-offset: 2px; }
.site-proto .ct__err { margin: 10px 0 0; font-size: 14px; color: #E5484D; }

/* 价格页竞品对比表(.pc--vs4)手机端(2026-11-20 浩然反馈):原型第四十六轮加第四列时追加的
   min-width:980px 与 16px 单元格内边距写在手机端竖排规则之后,把它覆盖了 —— 表格撑出屏幕右侧被截断,
   左侧绝对定位的公司名压在只留 16px 的内容上。这里在 ≤760px 恢复竖排卡片的写法。
   加 .site-proto 一层是为了不依赖加载顺序(原型样式的 <link> 在 body 里) */
@media (max-width: 760px) {
  .site-proto .pc--vs4 { min-width: 0; }
  .site-proto .pc--vs4 td, .site-proto .pc--vs4 tr.pc__group td { padding: 6px 10px 6px 88px; }
  .site-proto .pc--vs4 tbody th { width: auto; padding-left: 0; }
}
/* 月付 / 季付 / 年付切换(2026-11-20 浩然反馈):窄屏时「Save 10%」被挤成两行;
   改成横排一行又会让整条比屏幕宽(360px 宽时左右各溢出 12px)。窄屏下每个按钮「周期」在上、「Save xx%」完整一行在下 */
@media (max-width: 520px) {
  .site-proto .aud-cycle em { white-space: nowrap; }
}
@media (max-width: 420px) {
  .site-proto .aud-cycle button { flex-direction: column; justify-content: center; gap: 1px; padding-inline: 10px; line-height: 1.15; }
  .site-proto .aud-cycle em { margin: 0; font-size: 10.5px; }
}

/* ── 文档站(使用文档,data-site-prototype=docs*)与后端 REST API / MCP 文档同版面(2026-11-20)──
   后端(geolix-backend/app/routers/api_docs.py):容器最宽 1680px、左右 56px、目录 260px + 间距 48px,
   顶栏(与首页同宽,见下)当前项强调色下划线;≤640px 顶栏藏分栏、复制到正文顶部。
   这里让使用文档逐项对上,切换时左侧目录与正文起点不跳 */
/* 顶栏与文档自己的内容区同框(2026-11-20 用户定):最宽 1680、左右 56 —— logo 对齐左侧目录、右侧按钮对齐右侧目录;
   三项绝对定位到正文起点(56 + 260 + 48);右侧 语言 / 登录 / 注册 / 预约演示 */
[data-site-prototype^="docs"] .nav--docs .nav__inner { position: relative; max-width: 1680px; padding-inline: 56px; gap: 18px; }
[data-site-prototype^="docs"] .nav--docs .nav__links { position: absolute; left: calc(56px + 308px); display: flex; align-items: center; gap: 28px; margin: 0; font-size: 14px; font-weight: 500; }
[data-site-prototype^="docs"] .nav--docs .nav__link { position: relative; display: inline-flex; align-items: center; color: var(--text-2); white-space: nowrap; transition: color .14s; }
[data-site-prototype^="docs"] .nav--docs .nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .18s; }
[data-site-prototype^="docs"] .nav--docs .nav__link:hover, [data-site-prototype^="docs"] .nav--docs .nav__link.is-active { color: var(--text); }
[data-site-prototype^="docs"] .nav--docs .nav__link:hover::after, [data-site-prototype^="docs"] .nav--docs .nav__link.is-active::after { transform: scaleX(1); }
[data-site-prototype^="docs"] .nav--docs .nav__actions { margin-left: auto; }
[data-site-prototype^="docs"] .dc__grid { max-width: 1680px; padding-inline: 56px; column-gap: 48px; }
@media (min-width: 1181px) { [data-site-prototype^="docs"] .dc__grid { grid-template-columns: 260px minmax(0, 1fr) 190px; } }
@media (min-width: 901px) and (max-width: 1180px) { [data-site-prototype^="docs"] .dc__grid { grid-template-columns: 260px minmax(0, 1fr); } }
/* 文档顶栏没有汉堡菜单:≤980 营销 CSS 会藏三项与登录,这里留住它们,只藏「预约演示」 */
@media (max-width: 980px) {
  [data-site-prototype^="docs"] .nav--docs .nav__links { position: static; display: flex; gap: 16px; margin-left: 20px; }
  [data-site-prototype^="docs"] .nav--docs .nav__login { display: inline-flex; }
  [data-site-prototype^="docs"] .nav--docs .nav__cta { display: none; }
}
@media (max-width: 760px) { [data-site-prototype^="docs"] .nav--docs .nav__inner, [data-site-prototype^="docs"] .dc__grid { padding-inline: 20px; } }
@media (max-width: 640px) {
  [data-site-prototype^="docs"] .nav--docs .nav__links { display: none; }
}
/* 手机:三项分栏放到正文顶部(同后端 .toc-switch) */
.site-proto .dc-tabs--m { display: none; }
@media (max-width: 640px) {
  .site-proto .dc-tabs--m { display: flex; gap: 2px; margin: 0 0 16px; padding: 3px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
  .site-proto .dc-tabs--m a { flex: 1; padding: 7px 10px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 600; text-align: center; white-space: nowrap; text-decoration: none; }
  .site-proto .dc-tabs--m a.is-active { background: var(--text); color: var(--bg); }
}

/* 诊断页输入框(.ck-form)的「品牌名不是域名」气泡与抖动:复用首页 .hero-check__tip / hc-shake(2026-11-23) */
.site-proto .ck-form { position: relative; }
.site-proto .ck-form__tip { left: 20px; }
.site-proto .ck-form.is-shake { animation: hc-shake .35s ease; }
