/* ============================================================
   即刻智能 · 首页兼容模式样式
   ------------------------------------------------------------
   配套 jk-legacy-fallback.js 使用。当浏览器内核过旧、React 应用
   无法启动时，#seo-content 里那份「给搜索引擎看的静态正文」
   会被 .jk-legacy 激活，变成一页完整可读的官网。

   写法约束（刻意为之，勿随意现代化）：
     ✗ CSS 变量 / calc 之外的函数（clamp、min、max）
     ✗ Grid（Chromium 57 起才支持）
     ✗ flex gap（Chromium 84 起才支持）—— 一律用 margin
     ✗ :is() / :where() / :has()（Chromium 88-105 起支持）
     ✗ 逻辑属性 inset / margin-inline（老内核不认）
   全部按 Chromium 49 能正确渲染的标准书写。
   ============================================================ */

/* ------------------------------------------------------------
   PART 1 · 静态正文排版
   这部分始终生效也无害：现代浏览器下 #seo-content 被 .seo-hidden
   定位到屏幕外并裁切，不会产生任何视觉或布局影响。
   ------------------------------------------------------------ */
#seo-content {
  color: #c9d4e2;
  background: #050508;
  font-size: 15px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
#seo-content h1,
#seo-content h2,
#seo-content h3 {
  color: #f2f6fb;
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 700;
}
#seo-content h1 { font-size: 26px; }
#seo-content h2 {
  font-size: 21px;
  margin-top: 44px;
  padding-left: 13px;
  border-left: 4px solid #0071e3;
}
#seo-content h3 {
  font-size: 16px;
  margin-top: 24px;
  color: #dfe8f3;
}
#seo-content p {
  margin: 0 0 13px;
  color: #b9c6d6;
}
#seo-content ul,
#seo-content ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
#seo-content li { margin-bottom: 7px; color: #b9c6d6; }
#seo-content a {
  color: #4da3ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 163, 255, .35);
}
#seo-content a:hover { color: #7dbcff; border-bottom-color: #7dbcff; }
#seo-content strong,
#seo-content b { color: #eaf1f9; }
#seo-content section { margin-bottom: 38px; }
#seo-content footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #1c222c;
  font-size: 13px;
  color: #7d8b9c;
}
#seo-content figure.geo-hero,
#seo-content figure.geo-about-img,
#seo-content figure.geo-case-img {
  margin: 0 0 26px;
  padding: 0;
}
#seo-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #1c222c;
}
#seo-content figcaption {
  margin-top: 9px;
  font-size: 12px;
  color: #6f7d8e;
}
#seo-content table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}
#seo-content th,
#seo-content td {
  padding: 9px 11px;
  border: 1px solid #1c222c;
  text-align: left;
}
#seo-content th { background: #0d1117; color: #eaf1f9; }

/* ------------------------------------------------------------
   PART 2 · 兼容模式激活
   ------------------------------------------------------------ */
.jk-legacy { background: #050508; }

/* 解除 .seo-hidden 的离屏裁切 —— 选择器权重 (1,1,0) 高于
   index.html 内联的 .seo-hidden (0,1,0)，无需 !important */
.jk-legacy #seo-content.seo-hidden {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.jk-legacy #seo-content {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 72px;
}
/* React 挂载点为空时不该占位 */
.jk-legacy #root { display: none; }
/* 兼容模式下 Reels/吸顶等脚本元素不必抢焦点 */
.jk-legacy .jk-lc-header,
.jk-legacy .jk-lc-fab { -webkit-box-sizing: border-box; box-sizing: border-box; }

/* ------------------------------------------------------------
   PART 3 · 兼容模式自建导航与转化组件
   ------------------------------------------------------------ */
.jk-lc-header {
  background: #0a0d13;
  border-bottom: 1px solid #1c222c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
.jk-lc-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 13px 20px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.jk-lc-brand {
  font-size: 17px;
  font-weight: 700;
  color: #f2f6fb;
  text-decoration: none;
  white-space: nowrap;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.jk-lc-brand span {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #7dbcff;
  border: 1px solid rgba(77, 163, 255, .45);
  border-radius: 4px;
  vertical-align: middle;
}
.jk-lc-nav {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  margin: 0 14px;
  overflow: hidden;
  white-space: nowrap;
}
.jk-lc-nav a {
  display: inline-block;
  margin-right: 16px;
  font-size: 14px;
  color: #b9c6d6;
  text-decoration: none;
}
.jk-lc-nav a:hover { color: #4da3ff; }
.jk-lc-tel {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.jk-lc-tel svg { vertical-align: -2px; margin-right: 5px; }
.jk-lc-tel b { font-weight: 700; }
.jk-lc-tel em {
  font-style: normal;
  margin-left: 7px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  opacity: .85;
  font-size: 12px;
}
.jk-lc-notice {
  background: #10151d;
  border-bottom: 1px solid #1c222c;
  padding: 8px 20px;
  font-size: 12.5px;
  color: #8b99aa;
  text-align: center;
}
.jk-lc-notice b { color: #7dbcff; }
.jk-lc-notice a { color: #4da3ff; text-decoration: none; }
.jk-lc-notice a:hover { text-decoration: underline; }

.jk-lc-fab {
  position: fixed;
  left: 22px;
  bottom: 26px;
  z-index: 900;
  display: inline-block;
  padding: 12px 19px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 113, 227, .38);
}
.jk-lc-fab b { font-weight: 600; }
.jk-lc-fab svg { vertical-align: -3px; margin-right: 6px; }
.jk-lc-fab:hover { background: #0a80f5; }

/* ------------------------------------------------------------
   PART 4 · 响应式
   ------------------------------------------------------------ */
/* 中等宽度先收起锚点导航，避免和电话按钮互相挤压 */
@media (max-width: 1100px) {
  .jk-lc-nav { display: none; }
}
@media (max-width: 768px) {
  #seo-content h1 { font-size: 21px; }
  #seo-content h2 { font-size: 18px; margin-top: 34px; }
  #seo-content h3 { font-size: 15px; }
  .jk-legacy #seo-content { padding: 0 16px 90px; }
  .jk-lc-inner { padding: 11px 16px; }
  .jk-lc-nav { display: none; }          /* 窄屏收起锚点，正文本身可直接滚动 */
  .jk-lc-brand { font-size: 16px; }
  .jk-lc-tel { padding: 7px 12px; font-size: 13px; }
  .jk-lc-tel em { display: none; }
  /* 移动端吸底转化条由 experience-enhance.js 负责，这里让位 */
  .jk-lc-fab { display: none; }
  .jk-lc-notice { font-size: 12px; padding: 7px 14px; text-align: left; }
}
