@charset "utf-8";
/*
 * =====================================================
 * Forlinx Product Manual Design System
 * 重排版本：按 CSS 层叠优先级从低到高排列
 *
 * 阅读指引：
 *   本文件从上到下，优先级依次升高。
 *   当两条规则选择器权重相同时，位置靠后的规则"赢"。
 *   因此：全局基础 → 布局骨架 → 组件样式 → 响应式覆盖 → 增强覆盖
 * =====================================================
 */


/* =====================================================
   LAYER 1 · 全局重置与基础变量
   -------------------------------------------------------
   最先定义，权重最低，所有后续规则都可以覆盖它。
   盒模型、字体、行高、背景色等"底层设定"。
   ===================================================== */

/* 全局盒模型重置，确保 padding/border 不撑大元素 */
* {
  box-sizing: border-box;
}

/* HTML 根字号 16px，开启平滑滚动 */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/*
 * body 基础样式：
 * - 第一条 body {} 设置字体、颜色、行高
 * - 第二条 body {} (在 LAYER 5 增强区) 会覆盖背景色为 #fbfbfd
 * 两者共存，后面的 background-color 声明胜出。
 */
body {
  margin: 0;
  padding: 0;
  background: #ffffff;       /* 被 LAYER 5 中的 #fbfbfd 覆盖 */
  color: #1d1d1f;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
}

/* 全局图片防溢出 */
img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}


/* =====================================================
   LAYER 2 · 页面骨架布局（三栏 Grid）
   -------------------------------------------------------
   定义整体三列结构：左侧目录 | 主内容 | 右侧工具栏。
   响应式媒体查询会在 LAYER 6 中把它重置为单列 flex。
   ===================================================== */

/* 三栏网格容器 */
.page-layout {
  display: grid;
  /* 默认三栏布局 */
  grid-template-columns: 260px minmax(400px, 1fr) 300px;
  min-height: 100vh;
  width: 100%;
  /* 为网格列宽变化添加平滑过渡 */
  transition: grid-template-columns 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 侧边栏折叠时的网格状态 */
.page-layout.left-collapsed {
  grid-template-columns: 0px minmax(400px, 1fr) 300px;
}
.page-layout.right-collapsed {
  grid-template-columns: 260px minmax(400px, 1fr) 0px;
}
.page-layout.left-collapsed.right-collapsed {
  grid-template-columns: 0px minmax(400px, 1fr) 0px;
}


/* =====================================================
   LAYER 3 · 核心组件样式
   -------------------------------------------------------
   各个独立 UI 组件的基础样式：
   侧边栏、正文、表格、图片、按钮、右侧面板等。
   它们的值会被 LAYER 5（Apple 风格增强）局部覆盖。
   ===================================================== */


/* ---------- 3-A · 左侧目录栏（Sidebar / TOC） ---------- */

/*
 * 桌面端左侧目录品牌 logo 区
 * padding/border-bottom 构成视觉分隔线
 */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.sidebar-brand img {
  width: clamp(180px, 20vw, 250px); 
  height: auto;
}

/*
 * 桌面端侧边栏主体：
 * - position: sticky 使其跟随视口滚动
 * - background/border 将在 LAYER 5 被毛玻璃版本覆盖
 */
.sidebar {
  background: #f7f7f7;                    /* → 被 LAYER 5 覆盖为半透明毛玻璃 */
  border-right: 1px solid #e5e5e5;        /* → 被 LAYER 5 覆盖为更轻的 0.05 透明度 */
  padding: 24px 20px;
  overflow-y: auto;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
}

/* 目录链接样式 */
.toc a {
  display: block;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

/* H2 级目录项 — 加粗 */
.toc a.h2 { font-weight: 600; }

/* H3 级目录项 — 缩进 14px，字号略小 */
.toc a.h3 { padding-left: 14px; font-size: 13px; }

/* H4 级目录项 — 缩进 28px，字号最小，灰色 */
.toc a.h4 { padding-left: 28px; font-size: 12.5px; color: #666; }

/* 悬停和激活高亮为品牌蓝 */

.toc a:hover,
.toc a.active {
  color: #007aff;
}

/* 在它后面紧接着加，!important 确保覆盖所有 transition */
.toc a.active {
  transition: none !important;
}

.toc a:not(.active) {
  transition: color 0.2s;  /* 非激活态保留 hover 动画 */
}

/* 移动端目录切换按钮和抽屉侧边栏：桌面端隐藏 */
.toc-toggle, .sidebar-mobile { display: none; }


/* ---------- 3-B · 主内容区（Main Content） ---------- */

/*
 * 主内容区基础样式：
 * - padding/max-width 在 LAYER 5 会追加圆角、阴影、背景白色
 */
.main-content {
  padding: 48px 72px;
  max-width: none;
}

/* 标题通用样式 */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  color: #111;
  font-weight: 600;
  scroll-margin-top: 80px;    /* 使锚点跳转时不被顶部遮挡 */
}

/*
 * H1：页面大标题
 * 注意：下边框和 padding-bottom 在此定义，
 * H2/H3/H4 的美化覆盖在 LAYER 5 中完成。
 */
.main-content h1 {
  font-size: 40px;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 0.5rem;
}

/* H2 基础尺寸（被 LAYER 5 大幅美化覆盖） */
.main-content h2 {
  font-size: 35px;
  margin-top: 3rem;
}

/* H3 基础尺寸（被 LAYER 5 美化覆盖） */
.main-content h3 {
  font-size: 28px;
  margin-top: 2rem;
}

/* H4 基础尺寸（被 LAYER 5 美化覆盖） */
.main-content h4 {
  font-size: 22px;
  margin-top: 1.5rem;
}

/* 正文段落 */
.main-content p {
  margin: 0.5rem 0 0.8rem;
  font-size: 1rem;
}

/* ---------------------------------------------------
   1. 放在 LAYER 3 的基础样式区 (紧跟在 H4 后面)
   --------------------------------------------------- */
   .main-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 1.2rem;
  }
  


/*
 * 主内容区图片：
 * cursor: zoom-in 配合 JS 实现点击放大
 */
.main-content img {
  cursor: zoom-in;
}

/*
 * 图片放大后的全屏覆盖态（由 JS 切换 .zoomed 类名触发）
 * position: fixed 将图片脱离文档流居中显示
 */
.main-content img.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto;
  height: auto;
  margin: 0;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 9999;
  cursor: zoom-out;
  background: #fff;
  transition: all 0.25s ease;
  user-select: none;
}

/* 无序列表容器 */
.main-content ul {
  padding-left: 20px;
}

/* 列表项：移除默认黑点，改用 LAYER 5 的箭头伪元素 */
.main-content ul li {
  margin-bottom: 8px;
  color: #334155;
  position: relative;
  list-style-type: none;
}

/* 列表项前的箭头装饰（LAYER 5 中定义，此处占位注释） */
.main-content ul li::before {
  content: '→';
  position: absolute;
  left: -20px;
  color: #94a3b8;
  font-size: 0.9em;
}


/* ---------- 3-C · 表格（image-table / param-table） ---------- */

/*
 * figure 包裹层：允许横向滚动防止表格溢出
 * border-radius/box-shadow 在 LAYER 5 被覆盖为更精致的版本
 */
figure.image-table,
figure.param-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

/* 表格宽度撑满容器 */
figure.image-table table,
figure.param-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  /* border-radius/box-shadow 被 LAYER 5 追加 */
}

/* 表头：渐变底色 + sticky 吸顶 */
figure.image-table table th,
figure.param-table table th {
  text-align: left;
  font-weight: 600;
  background: linear-gradient(180deg, #f5f5f7, #eaeaea); /* → 被 LAYER 5 覆盖为毛玻璃 */
  border-bottom: 2px solid #d2d2d7;                      /* → 被 LAYER 5 覆盖 */
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* 单元格：统一内边距 + 防溢出截断 */
figure.image-table table td,
figure.param-table table td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;  /* → 被 LAYER 5 覆盖为更轻的透明边框 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 隔行变色（斑马纹）— 在 LAYER 5 被覆盖为更淡的版本 */
figure.image-table table tbody tr:nth-child(even),
figure.param-table table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* image-table 中的图片圆角边框 */
.image-table img {
  border-radius: 8px;
  border: none !important; /* 彻底去掉产品图片外围的灰色细线 (#eee) */
  box-shadow: none !important;
}


/* ---------- 3-D · Logo 图片组（页面右上角多品牌 logo） ---------- */

/* 右对齐弹性布局展示多个 logo */
.logo-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 15pt 0;
}

.logo-group img {
  max-height: 40px;
  height: auto;
}

/* 单独微调某一个 logo 的大小 */
.logo-group img.logo-large {
  max-height: 48px; /* 原本全局是 40px，这里根据需要调大或调小 */
}

/* ---------- 3-E · 按钮组（Button Group） ---------- */

/* 横向按钮容器，支持换行 */
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* 基础按钮：边框样式 */
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #007aff;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* 主要按钮：填充底色 */
.button.primary {
  background: #007aff;
  color: #fff;
}

/* 普通按钮悬停态变为填充蓝 */
.button:hover {
  background: #007aff;
  color: #fff;
}


/* ---------- 3-F · 右侧工具面板（Search Panel） ---------- */

/*
 * position: sticky 使面板在页面滚动时保持在视口内
 * background/border 将在 LAYER 5 被毛玻璃版本覆盖
 */
.search-panel {
  position: sticky;
  top: 24px;
  align-self: flex-start;
  background: #fafafa;                /* → 被 LAYER 5 覆盖为毛玻璃 */
  border-left: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 12px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
}

/* 面板内标题 */
.search-panel h3 {
  font-size: 14pt;
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* 支持信息卡片 */
.support-box {
  margin-bottom: 20px;
  padding: 14px;
  background: #ffffff;               /* → 被 LAYER 5 覆盖 */
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

/* 支持按钮（通用） */
.support-btn {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 10.5pt;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.support-btn:hover {
  background: #f2f6ff;
}

/* 主要支持按钮（如"购买"链接） */
.support-btn.primary {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
}

.support-btn.primary:hover {
  background: #005bb5;
}

/* 右侧面板自定义滚动条（Webkit 浏览器） */
.search-panel::-webkit-scrollbar {
  width: 6px;
}

.search-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

.search-panel::-webkit-scrollbar-track {
  background: transparent;
}


/* ---------- 3-G · 顶部 Hero Banner（科技蓝渐变横幅） ---------- */

/* 主横幅容器：深海蓝渐变背景 + 溢出遮罩 */
.hero-banner-blue {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 70px 30px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.3);
  position: relative;
  overflow: hidden;
}

/* 光晕背景效果（伪元素，pointer-events: none 不影响交互） */
.hero-banner-blue::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* 内容层需要 z-index 高于 ::before 伪元素 */
.hero-content {
  position: relative;
  z-index: 2;
}

/* 主标题：覆盖 .main-content h1 的 border-bottom */
.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 15px 0 !important;
  color: #ffffff !important;
  border-bottom: none !important;
  letter-spacing: -0.5px;
}

/* 副标题 */
.hero-subtitle {
  font-size: 1.25rem;
  color: #93c5fd;
  margin-bottom: 35px;
  font-weight: 400;
}

/* 特性标签组 */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  border: 1px solid rgba(147, 197, 253, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-badges span:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 197, 253, 0.5);
}

.hero-badges i {
  color: #38bdf8;
}


/* ---------- 3-H · 底部优势展示区（Footer Promo） ---------- */

/* 优势区外层容器 */
.footer-promo-blue {
  margin-top: 70px;
  padding: 50px 0;
  border-top: 1px solid #e2e8f0;
}

/* 区块标题 */
.promo-header {
  text-align: center;
  margin-bottom: 50px;
}

/* ---------- 3-H · 底部优势展示区（Footer Promo） ---------- */

/* ... (保留原本的 .footer-promo-blue 等外层容器样式) ... */

/* ==================================================
   独立标题设计区 (隔离 LAYER 5 的全局污染)
   ================================================== */

/* 1. 顶部大标题 (H2) */
.promo-header h2 {
  font-size: 2.2rem;
  color: #0f172a;
  margin: 0 0 10px 0 !important; /* 重置全局 margin */
  padding: 0 !important;
  border-bottom: none !important;
  display: block !important;
}

/* 彻底清除 LAYER 5 带来的 h2 底部蓝色渐变线 */
.promo-header h2::after,
.promo-header h2::before {
  content: none !important;
  display: none !important;
}

/* 2. 单个优势卡片标题 (H4) */
.promo-item h4 {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  font-size: 1.25rem;
  color: #1e293b;
  font-weight: 700;
  text-transform: none !important; /* 清除 LAYER 5 的全大写 (uppercase) 设定 */
  letter-spacing: normal !important; /* 清除 LAYER 5 的宽字间距 */
  border-bottom: none !important; /* 清除 LAYER 5 的浅色下边框 */
}

/* 3. CTA 转化区标题 (H3) */
.promo-cta h3 {
  color: #ffffff !important;
  font-size: 1.8rem;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
  display: block !important; /* 强制覆盖 LAYER 5 中 h3 的 display: flex */
  text-align: center;
}

/* 彻底清除 LAYER 5 带来的 h3 头部蓝色同心圆点 */
.promo-cta h3::before,
.promo-cta h3::after {
  content: none !important;
  display: none !important;
}

/* 3 列弹性网格（自动适应列数） */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* 单个优势卡片 */
.promo-item {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* 悬停时顶部出现蓝色强调条（scaleX 动画） */
.promo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #2563eb;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.promo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.15);
  border-color: #e2e8f0;
}

.promo-item:hover::before {
  transform: scaleX(1);
}

/* 优势图标圆形容器 */
.promo-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-icon i {
  font-size: 1.8rem;
  color: #2563eb;
}

/* 优势卡片标题：覆盖 .main-content h4 的样式（未嵌套，选择器独立） */
.promo-item h4 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  color: #1e293b;
  font-weight: 700;
}

.promo-item p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* CTA 转化区（Call to Action） */
.promo-cta {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 30px -5px rgba(29, 78, 216, 0.4);
}

/* CTA 标题覆盖：去掉下边框，强制白色 */
.promo-cta h3 {
  color: #ffffff !important;
  font-size: 1.8rem;
  margin: 0 0 12px 0;
  border-bottom: none;
}

.promo-cta p {
  color: #bfdbfe;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* CTA 按钮：白底蓝字，带悬停上浮 */
.cta-btn {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
}

.cta-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}


/* ---------- 3-I · 移动端遮罩层（Overlay） ---------- */

/*
 * 默认隐藏；添加 .active 类后显示，遮住主内容。
 * LAYER 6 媒体查询中会为其补充 backdrop-filter。
 */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* ---------- 3-J · 侧边栏内容过渡保护 ---------- */
/* 当网格列宽缩小到 0 时，平滑隐藏里面的内容，防止文字挤压重排 */
.sidebar, .search-panel {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.page-layout.left-collapsed .sidebar {
  opacity: 0;
  visibility: hidden;
}
.page-layout.right-collapsed .search-panel {
  opacity: 0;
  visibility: hidden;
}


/* ---------- 3-K · 折叠控制按钮 ---------- */
.main-content {
  position: relative;
}

.panel-toggle-btn {
  position: fixed; 
  top: 50%; 
  transform: translateY(-50%); 
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  
  /* 【尺寸增大】从 32px 升级到 40px */
  width: 40px;
  height: 40px;
  font-size: 16px; /* 让内部的箭头图标也稍微丰满一点 */
  
  cursor: pointer;
  z-index: 1000 !important; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.panel-toggle-btn:hover {
  color: #007aff;
  box-shadow: 0 4px 12px rgba(0,122,255,0.15);
}

/* 左侧按钮：260px 减去按钮宽度的一半 (20px) */
.panel-toggle-btn.left-toggle {
  left: calc(260px - 20px); 
}

/* 右侧按钮：300px 减去按钮宽度的一半 (20px) */
.panel-toggle-btn.right-toggle {
  right: calc(300px - 20px);
}

/* 左侧面板完全折叠时，按钮紧贴边缘 */
.page-layout.left-collapsed .panel-toggle-btn.left-toggle {
  left: 0;
  border-radius: 0 50% 50% 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

/* 右侧面板完全折叠时，按钮紧贴边缘 */
.page-layout.right-collapsed .panel-toggle-btn.right-toggle {
  right: 0;
  border-radius: 50% 0 0 50%;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

/* =====================================================
   LAYER 4 · 打印 / PDF 降级输出
   -------------------------------------------------------
   @media print 专属规则，仅在打印时生效，不影响屏幕。
   放在响应式和增强覆盖之前，避免和屏幕规则混淆。
   ===================================================== */

/* Logo 图片组打印时强制块级 */
@media print {
  .logo-group {
    display: block !important;
  }
  .logo-group img {
    display: inline-block;
    margin: 5pt 0;
  }
}

/* A4 页面设定 + 隐藏侧边栏/按钮 */
@media print {
  @page {
    size: A4;
    margin: 20mm;
  }

  body {
    font-size: 11pt;
  }

  /* 侧边栏、右侧面板、按钮组打印时不需要 */
  .sidebar,
  .search-panel,
  .button-group {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  h1 { font-size: 20pt; }
  h2 { font-size: 15pt; }
}


/* =====================================================
   LAYER 5 · Apple 风格增强覆盖（桌面端）
   -------------------------------------------------------
   对 LAYER 3 各组件进行视觉升级：
   毛玻璃效果、圆角卡片、精致标题、渐变下划线等。
   相同选择器下，此处的声明因为位置靠后而胜出。
   ===================================================== */

/* ===== 5-A · 页面底色：极浅科技灰白 ===== */

/* 覆盖 LAYER 1 中 body 的 background: #ffffff */
body {
  background-color: #fbfbfd;
}

/* ===== 5-B · 主内容区：白色卡片 + 呼吸阴影 + 圆角 ===== */

/*
 * 追加属性：background-color、box-shadow、border-radius、margin
 * 与 LAYER 3 中的 padding、max-width 共存，不冲突
 */
.main-content {
  background-color: #ffffff;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.02);
  border-radius: 20px;
  margin: 24px 0;
}

/* ===== 5-C · 左侧目录栏：毛玻璃化 ===== */

/*
 * !important 确保覆盖 LAYER 3 中的纯色背景
 * backdrop-filter 实现模糊穿透效果（需浏览器支持）
 */
.sidebar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.05) !important;

    /* ✅ 新增：解决平滑滚动时的残影问题 */
    will-change: transform;       /* 提前分配独立 GPU 合成层 */
    transform: translateZ(0);     /* 强制硬件加速，避免软件回退 */
    isolation: isolate;           /* 防止与相邻层混合渲染 */
}

/* ===== 5-D · 右侧面板：毛玻璃化 ===== */

.search-panel {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.04) !important;
  border-radius: 16px !important;
}

/* ===== 5-E · 支持卡片：白色半透明质感 ===== */

.support-box {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border-radius: 12px !important;
}

/* ===== 5-F · 表格：圆角、毛玻璃表头、轻边框 ===== */

/* ----------------------------------
   图片表格区域 (Image Table)
   极简悬浮风格：无外框、无背景、无阴影
----------------------------------- */
/* ----------------------------------
   图片表格区域 (Image Table)
----------------------------------- */
figure.image-table table {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important; 
  border-collapse: separate !important;
  border-spacing: 0 !important;
  
  /* 【核心修复】：找回圆角裁切，约束内部表头的直角溢出 */
  border-radius: 12px;
  overflow: hidden;
}

/* 保持图片表格头部的毛玻璃效果，作为型号标识 */
figure.image-table table th {
  background: rgba(245, 245, 247, 0.8) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #1d1d1f;
  font-weight: 600;
  padding: 14px 16px;
}

figure.image-table table td {
  border: none !important;
  padding: 12px 16px;
  background: transparent !important; 
}

/* ----------------------------------
   参数表格区域 (Param Table)
   数据卡片风格：保留高级白底和微弱阴影
----------------------------------- */

figure.param-table table {
  border-collapse: separate !important; 
  border-spacing: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06) !important; /* 【回归的外边框】极淡的冷灰色，勾勒轮廓 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);      /* 阴影收敛，配合实体外框更显精致 */
  background: #ffffff; 
}

/* 参数表头：毛玻璃 + 底线 */
figure.param-table table th {
  background: rgba(245, 245, 247, 0.8) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important; /* 表头和数据之间的分割线 */
  color: #1d1d1f;
  font-weight: 600;
  padding: 14px 16px;
}

/* 参数单元格：内部依然保持无边框，只靠斑马纹引导 */
figure.param-table table td {
  border: none !important;
  padding: 12px 16px;
}

/* 参数表格的隐形斑马纹引导线 */
figure.param-table table tbody tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.6) !important;
}

/* ===== 5-G · H2 标题美化：渐变下划线 + 深色 ===== */


.main-content h2 {
  font-size: 2.4rem;
  font-weight: 800; /* 加粗提升张力 */
  margin: 4.5rem 0 2rem;
  padding-bottom: 1rem;
  position: relative;
  letter-spacing: -0.5px;
  border-bottom: none;
  
  /* 核心升级 1：科技感文字渐变 (深石板灰 -> 品牌蓝) */
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f172a; /* 兜底颜色，防止旧浏览器不支持 */
}

/* 核心升级 2：底部光晕速度线 */
.main-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  /* 渐变从深蓝 -> 亮青蓝 -> 透明渐隐 (尾部消失带来速度感) */
  background: linear-gradient(90deg, #2563eb, #38bdf8, transparent); 
  border-radius: 4px;
  /* 增加赛博光晕阴影 */
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.4); 
}

/* ===== 5-H · H3 标题美化：蓝色圆点前缀 ===== */

/*
 * 使用 display: flex + ::before 在标题前插入同心圆点
 * 覆盖 LAYER 3 的字号和 margin
 */
/* ===== 5-H · H3 标题美化：字体排版（Typography）升级 ===== */
.main-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;            /* 深邃的石板黑，比纯黑更显质感 */
  margin: 3.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  
  /* --- 核心字体升级区 --- */
  /* 优先调用系统的 Display 级字体，渲染效果更饱满平滑 */
  font-family: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: -0.02em;   /* 关键微调：稍微收紧字间距，立刻产生现代大厂的高级感 */
  line-height: 1.3;
}

/* 保持原有的小蓝点装饰（如果觉得蓝点也多余，可以删掉这段 ::before） */
.main-content h3::before {
  content: '';
  display: inline-block;
  width: 12px;               /* 稍微缩小了一点圆点，配合更精致的字体 */
  height: 12px;
  background-color: #38bdf8;
  border: 3px solid #eff6ff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* ===== 5-I · H4 标题美化：全大写 + 字间距 ===== */

/*
 * text-transform: uppercase 使英文关键词全大写，专业技术文档风格
 * 覆盖 LAYER 3 的字号、margin 和颜色
 */
.main-content h4 {
  font-size: 1.05rem;
  color: #64748b;
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}


/* ===== 5-K · H5 标题美化：低调内敛的技术小标题 ===== */
.main-content h5 {
  font-size: 1.05rem;     /* 字号与正文相近，不突兀 */
  color: #475569;         /* 采用偏冷的石板灰 (Slate 600)，极度克制 */
  font-weight: 600;       /* 仅靠字重与正文区分 */
  margin: 1.5rem 0 0.8rem 0;
  padding: 0;             /* 移除原本给线条留的缩进 */
  letter-spacing: 0;
  border: none;
}

/* 强制清除可能残留的 ::before 伪元素 */
.main-content h5::before,
.main-content h5::after {
  content: none !important;
  display: none !important;
}

/* ===== 5-J · 分割线 <hr> 美化 ===== */

/* 两端淡出的渐变线，比 border 更优雅 */
.main-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(226, 232, 240, 0) 0%,
    rgba(226, 232, 240, 1) 50%,
    rgba(226, 232, 240, 0) 100%
  );
  margin: 4rem 0;
}


/* =====================================================
   LAYER 6 · 响应式覆盖（移动端 ≤ 1024px）
   -------------------------------------------------------
   最后定义，优先级最高（媒体查询内部规则在条件触发时
   相当于追加在文件末尾，覆盖所有前述同等权重规则）。
   ===================================================== */

/* ===== 6-A · 断点 ≤ 1024px：桌面/移动端 Sidebar 切换 ===== */

/* 超过 1024px 宽时隐藏移动端抽屉 sidebar；反之隐藏桌面版 */
@media (max-width: 1024px) {
  .sidebar:not(.sidebar-mobile) {
    display: none;
  }
  .sidebar-mobile {
    display: block;
  }
  /* 新增：移动端隐藏桌面折叠按钮 */
  .panel-toggle-btn {
    display: none !important;
  }
}

/* ===== 6-B · 断点 ≤ 1024px：品牌 logo 尺寸收缩 ===== */
@media (max-width: 1024px) {
  .sidebar-brand {
    padding: 4px 0 10px;
    margin-bottom: 8px;
  }
  .sidebar-brand img {
    max-width: 120px;
    max-height: 32px;
  }
}

/* ===== 6-C · 断点 ≤ 1024px：整体布局变为单列 ===== */
@media (max-width: 1024px) {

  /* 三栏 grid → 单列 flex */
  .page-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* 顶部横向目录 */
  .sidebar {
    position: relative;
    display: block;
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 12px 14px;
    overflow-x: auto;
  }

  /* 目录前置文字 "📖 Contents" */
  .sidebar::before {
    content: "📖 Contents";
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #111;
  }

  /* 目录横向平铺，不换行 */
  .toc {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 16px;
  }

  .toc a {
    font-size: 13px;
    padding: 4px 0;
    color: #007aff;
    white-space: nowrap;
  }

  /* 移动端取消 H3/H4 的左缩进 */
  .toc a.h3,
  .toc a.h4 {
    padding-left: 0;
    font-weight: 400;
  }

 /* 主内容区：紧凑内边距 */
 .main-content {
  padding: 20px 16px 32px; /* 稍微增加左右内边距，提升卡片感 */
}

/* 标题系统优化：大幅缩减继承自 PC 端的巨大上下留白 */
.main-content h1 { font-size: 1.7rem; margin-bottom: 1rem; }

.main-content h2 { 
  font-size: 1.5rem; 
  margin-top: 2.5rem; /* 覆盖桌面的 4.5rem，防止手机上出现巨大空隙 */
  margin-bottom: 1.2rem; 
}

.main-content h3 { 
  font-size: 1.25rem; 
  margin-top: 2rem; 
  margin-bottom: 1rem;
  gap: 8px; /* 缩小蓝点和文字的间距 */
}

.main-content h4 { 
  font-size: 1.1rem; 
  margin-top: 1.5rem; 
  margin-bottom: 0.8rem;
}

/* 补上移动端的 H5 设置 */
.main-content h5 { 
  font-size: 1rem; 
  margin-top: 1.2rem; 
  margin-bottom: 0.5rem;
}

/* 正文字号：15px 黄金比例，提升行高增加呼吸感 */
.main-content p,
.main-content ul,
.main-content ol {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Logo 组移动端右对齐小图 (保持不变) */
.logo-group {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}

.logo-group img {
  max-height: 30px;
  height: auto;
  margin: 0 6px;
}

/* 内容图片点击放大 (保持不变) */
.main-content img:not(.logo-group img) {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.main-content img.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90%;
  max-height: 90%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  cursor: zoom-out;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 移动端右下角悬浮转化按钮 (FAB) */
.mobile-fab-contact {
  position: fixed;
  bottom: 30px; /* 避开底部手势操作区 */
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #007aff;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px; /* 饱满的胶囊形 */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.35); /* 呼吸感强阴影，吸引点击 */
  transition: transform 0.2s ease;
}

.mobile-fab-contact i {
  font-size: 16px;
}

/* ==========================================
   移动端：表格体验终极优化 (原生滑动体验)
   ========================================== */

/* 表格横向滚动：突破父级边距，边缘贴边显示 */
figure.image-table,
figure.param-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* 开启 iOS 弹性顺滑滚动黑科技 */
  margin: 1.5rem -16px; /* 负 margin 让表格在手机上直接顶满左右屏幕边缘 */
  padding: 0 16px;
  width: calc(100% + 32px);
}

figure.image-table table,
figure.param-table table {
  font-size: 0.875rem; /* 14px，适合手机阅读数据 */
}

/* 核心修复：废弃强行换行，保证技术参数的完整性，引导用户横向滑动 */
figure.image-table table th,
figure.param-table table th,
figure.image-table table td,
figure.param-table table td {
  white-space: nowrap !important; /* 强制单行，决不换行 */
  padding: 10px 14px; /* 移动端稍微收紧单元格内边距 */
}



  /* 移动端目录抽屉切换按钮（固定在左上角） */
  .toc-toggle {
    display: block;
    position: fixed;
    top: 24px;
    left: 16px;
    z-index: 1000;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #007aff;        /* → 被 6-E 毛玻璃版本覆盖 */
    color: #fff;
    font-size: 14px;
    cursor: pointer;
  }

  /* 抽屉侧边栏：默认滑出屏幕左侧，open 态滑入 */
  .sidebar-mobile {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #f7f7f7;        /* → 被 6-E 毛玻璃版本覆盖 */
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .sidebar-mobile.open {
    left: 0;
  }

  /* 抽屉内目录链接样式 */
  .toc-mobile a {
    display: block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding: 6px 0;
  }
  .toc-mobile a.active {
    transition: none !important;
  }
  
  .toc-mobile a:not(.active) {
    transition: color 0.2s;
  }

  .toc-mobile a.h2 { font-weight: 600; }
  .toc-mobile a.h3 { padding-left: 14px; font-size: 13px; }
  .toc-mobile a.h4 { padding-left: 28px; font-size: 12.5px; color: #666; }
  .toc-mobile a:hover { color: #007aff; }

  /* 按钮组：移动端单列全宽卡片 */
  .button-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  .button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    border-radius: 14px;
  }

  /* 右侧工具栏移动端降为普通流（不再 sticky），沉到页面底部 */
  .search-panel {
    position: relative;
    top: auto;
    border-left: none;
    border-top: 1px solid #e5e5e5;
    border-radius: 0;
    margin-top: 24px;
    padding: 16px 12px;
    background: #f9f9f9;
  }
}

/* ===== 6-D · 断点 ≤ 768px：Hero / Promo 区缩小 ===== */
@media (max-width: 768px) {
  .hero-title    { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-banner-blue { padding: 50px 20px; }

  /* Promo 网格折为单列 */
  .promo-grid { grid-template-columns: 1fr; }
  .promo-header h2 { font-size: 1.8rem; }
  .promo-cta { padding: 30px 20px; }
  .promo-cta h3 { font-size: 1.5rem; }
}

/* ===== 6-E · 断点 ≤ 1024px：移动端组件毛玻璃增强 ===== */
/*
 * 此处覆盖 6-C 中的纯色背景，是 LAYER 6 内部的二次覆盖。
 * 同在媒体查询内，位置靠后所以胜出。
 */
@media (max-width: 1024px) {

  /* 遮罩层：更强的背景模糊 */
  .sidebar-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2) !important;
  }

  /* 抽屉侧边栏：毛玻璃 */
  .sidebar-mobile {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
  }
}