/* ═══════════════════════════════════════════════════════════
   捷辉创 · 品牌元素注入样式表
   两个网站通用 · CSS变量控制配色 · PC+移动端响应式
   核心原则：不破坏原有布局，fixed定位浮动元素+body补偿
═══════════════════════════════════════════════════════════ */

/* ── 品牌配色变量（两个网站可通过覆盖这些变量适配现有风格）── */
:root {
  --jhc-primary: #0E7490;        /* 企业蓝（主色） */
  --jhc-primary-dark: #083344;   /* 深空蓝（深色背景） */
  --jhc-accent: #fbbf24;         /* 精度橙黄（强调/0.005mm高亮） */
  --jhc-accent-dark: #d97706;    /* 深橙（按钮hover） */
  --jhc-light: #ecfeff;          /* 浅蓝（浅色背景） */
  --jhc-text-light: #ffffff;     /* 浅色文字 */
  --jhc-text-dark: #0f3a4a;      /* 深色文字 */
  --jhc-text-muted: #94a3b8;     /* 次要文字 */
  --jhc-border: rgba(255,255,255,0.2); /* 边框 */
  --jhc-font: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   组件1 · 顶部slogan细条（固定顶部，不占布局空间，body自动补偿）
═══════════════════════════════════════════════════════════ */
.jhc-slogan-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(90deg, var(--jhc-primary), var(--jhc-primary-dark));
  color: var(--jhc-text-light);
  font-family: var(--jhc-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(8,51,68,0.25);
  overflow: hidden;
  white-space: nowrap;
  transition: height 0.3s ease;
}
.jhc-slogan-bar .jhc-slogan-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.jhc-slogan-bar .jhc-slogan-text .jhc-num {
  color: var(--jhc-accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
}
.jhc-slogan-bar .jhc-slogan-sep {
  color: var(--jhc-border);
  font-size: 12px;
}
.jhc-slogan-bar .jhc-slogan-data {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.jhc-slogan-bar .jhc-slogan-data b {
  color: var(--jhc-accent);
  font-weight: 700;
}
.jhc-slogan-bar .jhc-slogan-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.jhc-slogan-bar .jhc-slogan-close:hover { color: var(--jhc-text-light); }

/* body顶部补偿（由JS动态设置，确保原有内容不被遮挡） */
body.jhc-has-slogan-bar { padding-top: 36px !important; }

/* 修复绝对定位的header与slogan条重叠问题 */
body.jhc-has-slogan-bar .h_top {
  top: 36px !important;
}

/* ═══════════════════════════════════════════════════════════
   组件2 · 右下角浮动精度信仰徽章（不占布局空间，可收起）
═══════════════════════════════════════════════════════════ */
.jhc-precision-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 99997;
  font-family: var(--jhc-font);
}
.jhc-precision-float .jhc-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--jhc-primary), var(--jhc-primary-dark));
  color: var(--jhc-text-light);
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(14,116,144,0.4);
  transition: all 0.25s ease;
  font-family: var(--jhc-font);
}
.jhc-precision-float .jhc-float-btn:hover {
  background: linear-gradient(135deg, var(--jhc-accent-dark), var(--jhc-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(217,119,6,0.4);
}
.jhc-precision-float .jhc-float-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--jhc-accent);
  letter-spacing: 0.5px;
}
.jhc-precision-float .jhc-float-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

/* 浮动详情面板（点击展开） */
.jhc-precision-float .jhc-float-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  font-family: var(--jhc-font);
}
.jhc-precision-float .jhc-float-panel.show {
  display: block;
  animation: jhcSlideUp 0.3s ease;
}
@keyframes jhcSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.jhc-precision-float .jhc-panel-head {
  background: linear-gradient(135deg, var(--jhc-primary), var(--jhc-primary-dark));
  color: var(--jhc-text-light);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jhc-precision-float .jhc-panel-head .jhc-panel-title {
  font-size: 16px;
  font-weight: 700;
}
.jhc-precision-float .jhc-panel-head .jhc-panel-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--jhc-accent);
}
.jhc-precision-float .jhc-panel-close {
  background: none;
  border: none;
  color: var(--jhc-text-light);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.jhc-precision-float .jhc-panel-close:hover { opacity: 1; }
.jhc-precision-float .jhc-panel-body {
  padding: 16px 18px;
}
.jhc-precision-float .jhc-panel-body .jhc-precision-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.jhc-precision-float .jhc-panel-body .jhc-precision-item:last-child {
  border-bottom: none;
}
.jhc-precision-float .jhc-precision-item .jhc-pi-label {
  color: var(--jhc-text-muted);
}
.jhc-precision-float .jhc-precision-item .jhc-pi-value {
  font-weight: 700;
  color: var(--jhc-text-dark);
}
.jhc-precision-float .jhc-precision-item .jhc-pi-value .jhc-pi-num {
  color: var(--jhc-primary);
  font-size: 15px;
}
.jhc-precision-float .jhc-panel-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 10px;
  background: var(--jhc-primary);
  color: var(--jhc-text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.jhc-precision-float .jhc-panel-link:hover {
  background: var(--jhc-primary-dark);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   组件3 · 首页精度信仰横幅（插入到首页指定位置）
═══════════════════════════════════════════════════════════ */
.jhc-precision-banner {
  background: linear-gradient(135deg, var(--jhc-primary-dark) 0%, var(--jhc-primary) 50%, var(--jhc-primary-dark) 100%);
  color: var(--jhc-text-light);
  padding: 48px 24px;
  text-align: center;
  font-family: var(--jhc-font);
  position: relative;
  overflow: hidden;
}
.jhc-precision-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(251,191,36,0.12), transparent 70%);
  border-radius: 50%;
}
.jhc-precision-banner .jhc-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.jhc-precision-banner .jhc-banner-badge {
  display: inline-block;
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.4);
  color: var(--jhc-accent);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.jhc-precision-banner .jhc-banner-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.jhc-precision-banner .jhc-banner-title .jhc-banner-num {
  color: var(--jhc-accent);
  font-size: 40px;
}
.jhc-precision-banner .jhc-banner-sub {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.7;
}
.jhc-precision-banner .jhc-banner-data {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.jhc-precision-banner .jhc-banner-data .jhc-bd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jhc-precision-banner .jhc-banner-data .jhc-bd-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--jhc-accent);
  line-height: 1;
}
.jhc-precision-banner .jhc-banner-data .jhc-bd-num small {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.jhc-precision-banner .jhc-banner-data .jhc-bd-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}
.jhc-precision-banner .jhc-banner-btn {
  display: inline-block;
  background: var(--jhc-accent);
  color: var(--jhc-primary-dark);
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
}
.jhc-precision-banner .jhc-banner-btn:hover {
  background: var(--jhc-accent-dark);
  color: var(--jhc-text-light);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(251,191,36,0.4);
}

/* ═══════════════════════════════════════════════════════════
   组件4 · 底部slogan（插入到</body>前，页脚版权区上方）
═══════════════════════════════════════════════════════════ */
.jhc-slogan-footer {
  background: var(--jhc-primary-dark);
  color: var(--jhc-text-light);
  text-align: center;
  padding: 20px 16px;
  font-family: var(--jhc-font);
  border-top: 2px solid var(--jhc-accent);
}
.jhc-slogan-footer .jhc-footer-slogan {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.jhc-slogan-footer .jhc-footer-slogan .jhc-footer-num {
  color: var(--jhc-accent);
}
.jhc-slogan-footer .jhc-footer-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   组件5 · 页面级精度信仰标签（小胶囊，可插入到内容区）
═══════════════════════════════════════════════════════════ */
.jhc-precision-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--jhc-light);
  color: var(--jhc-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--jhc-font);
  border: 1px solid rgba(14,116,144,0.2);
  vertical-align: middle;
}
.jhc-precision-tag .jhc-tag-num {
  color: var(--jhc-accent-dark);
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   P2 · 移动端响应式（≤768px手机 / ≤480px小屏）
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 顶部slogan条：缩小高度+字号 */
  .jhc-slogan-bar {
    height: 32px;
    font-size: 11.5px;
    gap: 8px;
  }
  .jhc-slogan-bar .jhc-slogan-text .jhc-num { font-size: 13px; }
  .jhc-slogan-bar .jhc-slogan-data { display: none; } /* 移动端隐藏数据滚动，只留slogan */
  .jhc-slogan-bar .jhc-slogan-sep { display: none; }
  body.jhc-has-slogan-bar { padding-top: 32px !important; }
  body.jhc-has-slogan-bar .h_top {
    top: 32px !important;
  }

  /* 浮动徽章：缩小+文字隐藏只留数字，上移避免与浏览器底部工具栏重叠 */
  .jhc-precision-float { right: 14px; bottom: 130px; }
  .jhc-precision-float .jhc-float-btn { padding: 10px 14px; font-size: 13px; }
  .jhc-precision-float .jhc-float-num { font-size: 15px; }
  .jhc-precision-float .jhc-float-label { display: none; } /* 移动端只显示0.005mm数字 */
  .jhc-precision-float .jhc-float-panel {
    width: calc(100vw - 28px);
    right: -6px;
  }

  /* 首页横幅：缩小 */
  .jhc-precision-banner { padding: 36px 16px; }
  .jhc-precision-banner .jhc-banner-title { font-size: 24px; }
  .jhc-precision-banner .jhc-banner-title .jhc-banner-num { font-size: 30px; }
  .jhc-precision-banner .jhc-banner-sub { font-size: 14px; }
  .jhc-precision-banner .jhc-banner-data { gap: 24px; }
  .jhc-precision-banner .jhc-banner-data .jhc-bd-num { font-size: 24px; }
  .jhc-precision-banner .jhc-banner-btn { padding: 11px 26px; font-size: 14px; }

  /* 底部slogan：缩小 */
  .jhc-slogan-footer .jhc-footer-slogan { font-size: 15px; letter-spacing: 1px; }
  .jhc-slogan-footer .jhc-footer-sub { font-size: 11px; }
}
@media (max-width: 480px) {
  .jhc-precision-banner .jhc-banner-title { font-size: 20px; }
  .jhc-precision-banner .jhc-banner-title .jhc-banner-num { font-size: 26px; }
  .jhc-precision-banner .jhc-banner-data { gap: 16px; }
  .jhc-precision-banner .jhc-banner-data .jhc-bd-item { min-width: 40%; }
}

/* 触摸优化 */
@media (pointer: coarse) {
  .jhc-precision-float .jhc-float-btn { padding: 14px 16px; }
  .jhc-precision-banner .jhc-banner-btn { padding: 14px 28px; }
}
