/* ===== 全局变量系统 ===== */ :root {
  /* 字体系统 */
  --font-system: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-mono: "Menlo", "Consolas", "Monaco", monospace;
  /* 品牌色系 */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-rgb: 37, 99, 235;
  --color-secondary: #64748b;
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  /* 中性色阶 */
  --color-text-primary: #1D2129; /* 主要文本 */
  --color-text-secondary: #4E5969; /* 次要文本 */
  --color-text-tertiary: #86909C; /* 辅助文本 */
  --color-text-inverse: #FFFFFF; /* 反色文本 */
  /* 背景色阶 */
  --color-bg-body: #F7F8FA;
  --color-bg-card: rgba(255, 255, 255, 0.98);
  --color-bg-footer: #16213e;
  --color-bg-muted: #F2F3F5;
  /* 字号系统（基于16px基准） */
  --text-xs: 0.75rem; /* 12px - 辅助文本 */
  --text-sm: 0.875rem; /* 14px - 次要正文 */
  --text-base: 1rem; /* 16px - 标准正文 */
  --text-lg: 1.125rem; /* 18px - 强调文本 */
  --text-xl: 1.25rem; /* 20px - 小标题 */
  --text-2xl: 1.5rem; /* 24px - 中标题 */
  --text-3xl: 1.875rem; /* 30px - 大标题 */
  --text-4xl: 2.25rem; /* 36px - 超大标题 */
  /* 行高系统 */
  --line-height-tight: 1.5; /* 紧凑型 */
  --line-height-normal: 1.65; /* 标准型（中文最佳） */
  --line-height-loose: 1.8; /* 宽松型 */
  /* 间距系统 */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  /* 圆角系统 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  /* 阴影系统 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  /* 动画曲线 */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}
/* ===== 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-system);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin-top: 90px;
}
/* ===== 排版系统 ===== */
/* 标题层级 */
h1, .h1 {
  font-size: var(--text-3xl);
  line-height: 1.25;
  margin: 0 0 var(--space-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}
h2, .h2 {
  font-size: var(--text-2xl);
  line-height: 1.3;
  margin: var(--space-xl) 0 var(--space-md);
  font-weight: 600;
  position: relative;
  padding-bottom: var(--space-xs);
}
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3em;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
}
h3, .h3 {
  font-size: var(--text-xl);
  line-height: 1.35;
  margin: var(--space-lg) 0 var(--space-md);
  font-weight: 600;
  color: var(--color-text-primary);
}
/* 段落优化 */
p {
  margin-bottom: var(--space-md);
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: break-word;
  hyphens: auto;
  color: var(--color-text-primary);
}
/* 列表优化 */
ul, ol {
  margin: var(--space-md) 0;
  padding-left: 1.5em;
  list-style-type: none;	
}
li {
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-normal);
}
/* 链接优化 */
a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.3);
  transition: all 0.2s var(--ease-in-out);
}
a:hover {
  color: var(--color-primary-hover);
  border-bottom-color: currentColor;
}
/* 特殊文本处理 */
strong, b {
  font-weight: 600;
  color: var(--color-text-primary);
}
em, i {
  font-style: normal;
}
/* 代码块 */
code, pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--color-bg-muted);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}
/* ===== 组件系统 ===== */
/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-in-out);
  z-index: 1000;
}
.navbar.scrolled {
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow-md);
}
.nav-link {
  position: relative;
  padding: var(--space-xs) var(--space-md);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.3s var(--ease-in-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s var(--ease-in-out);
}
.nav-link:hover {
  color: var(--color-primary);
}
.nav-link:hover::after {
  width: 70%;
}
.navbar-brand {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
}
/* 卡片组件 */
.card {
  border: none;
  border-radius: var(--radius-xl);
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-in-out);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-body {
  padding: var(--space-xl);
}
/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  transition: all 0.2s var(--ease-in-out);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s var(--ease-in-out);
}
.btn:hover::before {
  left: 100%;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background-color: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
}
.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}
/* 图片组件 */
.img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}
.img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s var(--ease-in-out);
}
.img-fluid:hover {
  transform: scale(1.03);
}
/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite linear;
}
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ===== 布局系统 ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
/* ===== 工具类 ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.mt-1 {
  margin-top: var(--space-xs);
}
.mt-2 {
  margin-top: var(--space-sm);
}
.mt-3 {
  margin-top: var(--space-md);
}
.mt-4 {
  margin-top: var(--space-lg);
}
.mt-5 {
  margin-top: var(--space-xl);
}
/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  :root {
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
  }
  .card-body {
    padding: var(--space-lg);
  }
}
@media (max-width: 768px) {
  :root {
    --text-3xl: 1.5rem;
    --text-2xl: 1.375rem;
    --text-xl: 1.125rem;
    --line-height-normal: 1.7;
  }
  body {
    font-size: var(--text-base);
  }
  .navbar-collapse {
    padding-top: var(--space-md);
  }
}
@media (max-width: 576px) {
  :root {
    --text-3xl: 1.375rem;
    --text-2xl: 1.25rem;
    --text-xl: 1.125rem;
  }
  .container {
    padding: 0 var(--space-sm);
  }
}
/* 打印优化 */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.6;
    color: black;
    background: white;
  }
  a {
    color: black;
    text-decoration: underline;
  }
  .navbar, .fixed-consult {
    display: none;
  }
}
footer {
  background-color: var(--color-bg-footer);
}
footer a {
  color: rgba(255, 255, 255, 0.80);
  border: 0;
}
footer a:hover {
  color: white;
  padding-left: 5px;
}
aside a {
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 0;
}
aside a:hover {
  padding-left: 5px;
}
.zr-icon {
  fill: currentColor;
  stroke: currentColor;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.zr-icon:hover {
  transform: scale(1.05);
  opacity: 1;
}
/* 悬浮咨询按钮 */
.fixed-consult {
  position: fixed;
  bottom: 150px;
  right: 30px;
  z-index: 999;
}
.fixed-consult .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
/* 标签 */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #EFEFEF;
  color: #4b5563;
  border-radius: 50px;
  font-size: 0.875rem;
  transition: all 0.2s var(--ease-in-out);
  &:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
  }
}
.breadcrumb a {
  color: var(--color-text-secondary);
  border: 0;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: all 0.2s var(--ease-in-out);
  &:hover {
    background-color: var(--bs-primary);
    transform: translateY(-2px);
  }
}
.hover-grow {
  transition: transform 0.3s var(--ease-in-out);
  &:hover {
    transform: scale(1.02);
  }
}
.article-meta {
  margin: 1.5rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
/* 补充SEO相关样式优化 */
.faq-container {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
}
.faq-item h3 {
  margin-bottom: 0.5rem;
}
.list-decimal li {
  margin-bottom: 1rem;
}
.text-primary {
  color: #2563eb !important;
}
.related-article li {
  transition: all 0.3s ease;
}
.related-article li:hover {
  transform: translateX(5px);
}
@media (max-width: 576px) {
  .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 44px;
  }
}
.opacity-10 {
  opacity: .1 !important;
}
/* f分享到社交媒体 */
.share-container {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.share-btn i {
  margin-right: 8px;
  font-size: 16px;
}
.wechat-btn {
  background-color: #07C160;
}
.weibo-btn {
  background-color: #E6162D;
}
.qq-btn {
  background-color: #12B7F5;
}
.qzone-btn {
  background-color: #FDBE3D;
  color: #333;
}
.douban-btn {
  background-color: #007722;
}
/* 二维码弹窗样式 - Bootstrap优化 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.qrcode-img {
  width: 200px;
  height: 200px;
  margin: 15px auto;
  border: 1px solid #eee;
  background: white;
  padding: 10px;
}
.modal-close {
  margin-top: 15px;
  padding: 8px 20px;
  background: #07C160;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.modal-close:hover {
  background: #05a854;
}
.modal-title {
  font-size: 18px;
  color: #333;
  font-weight: 500;
}
.modal-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}
.modal-dialog-centered {
    justify-content: center;
}
.navbar-toggler:focus {
    box-shadow: none;
}

