/* 悬浮组件（侧边联系栏 / AI 客服 / 手机底部条）：原型页只加载本文件，避免与版式样式冲突 */
/* ==========================================================================
   迪赛品牌设计 DISAI BRAND DESIGN — 全站样式
   视觉纪律：深色 #0C1116 / 浅灰 #F7F8F9 / 强调红 #C8102E（全站唯一强调色）
   禁止：渐变、炫光、阴影堆叠、飘窗弹窗
   只允许一种动效：内容随滚动淡入
   ========================================================================== */

:root {
  --ink: #0C1116;
  --ink-2: #5C646E;
  --ink-3: #8B96A2;
  --ink-4: #B4BAC2;
  --paper: #F5F5F5;
  --paper-2: #EDEDED;
  --line: #DCDCDC;
  --line-dark: #4A4A4A;
  --white: #FFFFFF;
  --red: #C8102E;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 标题字体：思源黑体 Bold 子集（SIL OFL 1.1 免费商用，见 /fonts/OFL.txt） */
  --font-heading: "DISAI Heading", -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --nav-h: 60px;
  --gutter: 24px;
  --max: 1200px;
  --sec-y: 64px;
}
/* 思源黑体 Bold 子集：仅含标题实际用字（src/make_fonts.py 自动生成） */
@font-face {
  font-family: "DISAI Heading";
  src: url("/fonts/disai-heading-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* 字体未下载完先用系统字体显示，避免手机上标题空白等待 */
  font-display: swap;
}
/* ---------- 悬浮条（PC 右侧极细竖向） ---------- */
.sidebar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 50;
  background: var(--ink); border-left: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center;
}
.sidebar a, .sidebar .sb-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  writing-mode: vertical-rl; letter-spacing: .22em;
  padding: 20px 12px; font-size: 12px; color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar a:hover { background: #2E2E2E; color: #fff; }
.sidebar .sb-item { writing-mode: horizontal-tb; padding: 14px 8px; }
.sidebar img { width: 76px; height: 76px; background: #fff; padding: 3px; object-fit: contain; }
.sidebar span.sb-label { font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.5); }
/* ---------- 移动端底部固定栏 ---------- */
.mobar { display: none; }
.mobar__in {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobar__in a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em;
}
.mobar__in a + a { border-left: 1px solid rgba(255,255,255,.12); }
.mobar__in .is-red { background: var(--red); }
@media (max-width: 860px){
:root { --sec-y: 32px; --gutter: 20px; --nav-h: 56px; }
.sidebar { display: none; }
.mobar { display: block; }
}
/* ---------- 右下角悬浮：加微信咨询 ---------- */
.aiwidget { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.aiwidget.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.aiwidget { transition: opacity .25s ease, transform .25s ease; }
.aiwidget__btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--white);
  border: none; cursor: pointer;
  padding: 13px 18px; font-size: 14px; font-weight: 700;
  font-family: var(--font); letter-spacing: .02em;
  border-bottom: 3px solid var(--red);
}
.aiwidget__btn:hover { background: #2E2E2E; }
.aiwidget__ico { width: 20px; height: 20px; fill: var(--white); flex: none; }
@media (max-width: 860px){
.aiwidget { right: 14px; bottom: 72px; }
.aiwidget__btn { padding: 11px 15px; font-size: 13px; }
}
/* ---------- 加微信咨询弹窗 ---------- */
.aiwidget-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.aiwidget-modal[hidden] { display: none; }
.aiwidget-modal__mask { position: absolute; inset: 0; background: rgba(58, 58, 58, .55); }
.aiwidget-modal__panel {
  position: relative; background: var(--white); border: 1px solid var(--line);
  width: 100%; max-width: 360px; max-height: 86vh; display: flex; flex-direction: column;
}
.aiwidget-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--white);
  padding: 13px 16px; font-size: 14.5px; font-weight: 700;
  border-bottom: 3px solid var(--red);
}
.aiwidget-modal__x { background: none; border: none; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; font-family: var(--font); }
.aiwidget-modal__body { padding: 22px 20px; overflow-y: auto; text-align: center; }
.aiwidget-modal__body img { width: 200px; height: 200px; display: block; margin: 0 auto 14px; border: 1px solid var(--line); }
.aiwidget-modal__body .aiwidget-modal__tip { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.aiwidget-modal__body .aiwidget-modal__tip b { color: var(--ink); }
.aiwidget-modal__frame { position: relative; width: 100%; height: 62vh; min-height: 320px; border: 1px solid var(--line); }
.aiwidget-modal__frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.aiwidget-modal__open { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.aiwidget-modal__open:hover { color: var(--red); }
.aiwidget-modal--wide .aiwidget-modal__panel { max-width: 520px; }

/* 顶栏 / 导航 / 页脚 / 手机底部条的版式统一放在 chrome.css，全站（含原型页）共用一份 */
