/* ==========================================================================
   循理智能官网 · 自定义样式
   配合 TailwindCSS(CDN) 使用，本文件存放：
     1. 主题色变量（深蓝灰 + 浅科技蓝）
     2. 补充工具类与组件样式
     3. 极简过渡效果（拒绝花哨动画）
   ========================================================================== */

/* ---------- 主题色变量（VI 规范） ---------- */
:root {
  /* 主色调：VI 品牌主深蓝 */
  --navy-900: #0F2A49;
  --navy-800: #143860;
  --navy-700: #1A4470;
  --navy-600: #22507D;
  --navy-500: #2C5D8C;

  /* 辅助色：VI 点缀浅蓝 */
  --tech-400: #40A9F3;
  --tech-300: #40A9F3;
  --tech-200: #9BD1F8;

  /* VI 灰阶：深灰正文 / 常规正文 / 辅助浅灰 / 浅卡底 */
  --ink-900: #222222;
  --ink-700: #333333;
  --ink-500: #595959;
  --ink-300: #8C8C8C;
  --ink-100: #D9D9D9;
  --ink-50:  #F0F2F5;

  /* 功能色 */
  --accent: var(--tech-400);
  --divider: rgba(64, 169, 243, 0.14);
}

/* ---------- 全局 ---------- */
html {
  scroll-behavior: smooth;
}

/* 装饰性全幅图层的横向溢出保险（clip 不产生滚动容器，不影响 sticky） */
html,
body {
  overflow-x: clip;
}

body {
  /* 中英分栈：拉丁/数字/型号走 Inter，中文落思源黑体（Noto Sans SC），加载失败回退系统黑体 */
  font-family: "Inter", "Noto Sans SC", "Source Han Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  color: var(--ink-700); /* 正文深灰，避免纯黑 */
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 导航栏 ---------- */
.nav-fixed {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Hero 背景层：图片由 index.html JS 注入 backgroundImage ---------- */
#hero {
  background-color: #142438; /* VI 深炭蓝底色：图片加载前/边缘兜底 */
}
.hero-bg-layer {
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  /* v3 处理：空间渐变模糊（右缘强、向文字方向收淡）+ 手部压暗降对比已在图片内完成，
     CSS 不再做统一模糊，保留手部结构轮廓 */
}
.hero-veil {
  /* 轻蒙版：左侧略深保障标题对比度，右侧放开保留产品轮廓（基于 VI #142438） */
  background: linear-gradient(
    100deg,
    rgba(20, 36, 56, 0.92) 0%,
    rgba(20, 36, 56, 0.7) 42%,
    rgba(20, 36, 56, 0.42) 100%
  );
}
/* 移动端 cover 裁剪时向右取景，保证手部主体（掌面 Logo）不被裁丢 */
@media (max-width: 767px) {
  .hero-bg-layer {
    background-position: 82% center;
  }
}

/* ---------- 卡片悬停（极简，仅轻微位移 + 浅阴影） ---------- */
.card-hover {
  transition: transform 180ms ease-out, box-shadow 180ms ease-out,
    border-color 180ms ease-out;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(15, 42, 73, 0.18);
  border-color: var(--tech-200);
}

/* VI：单色 SVG 图标默认主深蓝（继承文字色），卡片悬停时切换为点缀浅蓝 */
.card-hover:hover svg {
  color: var(--tech-400);
}

/* ---------- 段落分隔 ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--divider),
    transparent
  );
}

/* ---------- 参数表（工业硬核风格） ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px; /* 参数/数字 15px，数字由全局字体栈自动使用 Inter */
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px; /* 加大行高，参数表更易读 */
  border-bottom: 1px solid #e5e8ec;
}
.spec-table th {
  background: var(--navy-800);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table tr:hover td {
  background: #F0F2F5;
}

/* ---------- 解决方案三层架构 ---------- */
.layer-card {
  position: relative;
  border-left: 3px solid var(--tech-400);
}

/* ---------- 联系表单 ---------- */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--tech-400);
  box-shadow: 0 0 0 3px rgba(64, 169, 243, 0.18);
}

/* ---------- 占位图容器 ---------- */
.placeholder-img {
  background: #F0F2F5;
  color: #8C8C8C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 1px;
  overflow: hidden;
  position: relative;
}
.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 滚动条美化（仅 WebKit） ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
  background: #c9d1d9;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8b949e;
}

/* ---------- 锚点偏移（固定导航高度补偿） ---------- */
.anchor-offset {
  scroll-margin-top: 72px;
}

/* ---------- 数字指标块 ---------- */
.metric-chip {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(77, 184, 255, 0.12);
  color: var(--navy-700);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---------- 汉堡菜单动画 ---------- */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- 产品完整规格弹窗 ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 20, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px -16px rgba(11, 20, 32, 0.45);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: #8b949e;
  background: #f1f3f5;
  z-index: 10;
}
.modal-close:hover {
  color: var(--navy-900);
  background: #e6edf3;
}

/* ---------- 开发者生态代码块 ---------- */
.code-block {
  margin: 0;
  padding: 18px 20px;
  background: var(--navy-900);
  color: var(--tech-200);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  min-height: 320px;
  white-space: pre;
}
.code-block code {
  font-family: inherit;
}
