/* 九章格物 - 自定义样式 */
:root {
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --dark-bg: #0a0a0f;
  --dark-card: #12121a;
  --dark-border: #1e1e2e;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--dark-bg);
  color: #e2e8f0;
}

/* 渐变文字 */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 渐变按钮 */
.gradient-btn {
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gradient-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 ease;
}

.gradient-btn:hover::before {
  left: 100%;
}

.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

/* 卡片悬停效果 */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid var(--dark-border);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
}

/* 发光效果 */
.glow {
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
}

/* 网格背景 */
.grid-bg {
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 径向渐变光晕 */
.radial-glow {
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* 导航栏滚动效果 */
.nav-scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
}

/* 导航栏链接：统一下划线风格 */
.nav-link {
  position: relative;
  color: #d1d5db;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #c084fc; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

/* 亮色 Hero（黄绿色）模式下的导航栏：
 * 用于 index.html 首页顶部，Hero 为明黄色时导航使用半透明深色背景 + 白字；
 * 滚动后（超过 Hero 高度进入暗色区）由 nav-scrolled 接管
 */
.nav-light-hero {
  background: #0a0a0f;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
}
.nav-light-hero #mobile-menu-btn { color: #e2e8f0; }
.nav-light-hero #mobile-menu-btn:hover { color: #c084fc; }
/* 联系我们按钮保持渐变风格 */
.nav-light-hero .nav-cta {
  background: var(--primary-gradient) !important;
  color: #fff !important;
}
.nav-light-hero .nav-cta:hover {
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

/* 科技感卡片网格背景（hover 时显示） */
.tech-grid-bg {
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 案例卡片 hover 动态效果 */
.tech-card {
  background: var(--dark-card);
  border-radius: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.tech-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px -12px rgba(139, 92, 246, 0.25);
  animation: cardFloat 2.5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(-8px) scale(1.02); }
  50% { transform: translateY(-14px) scale(1.02); }
}
.tech-card:hover .tech-grid-bg {
  opacity: 1;
}
/* 扫描线动画 */
.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.tech-card:hover::after {
  left: 100%;
}
/* 数据数字 hover 弹出 */
.tech-card .case-stat {
  transition: transform 0.3s ease, color 0.3s ease;
}
.tech-card:hover .case-stat {
  transform: scale(1.15);
}

/* 营业执照灯箱预览 */
.license-lightbox {
  animation: lightboxFadeIn 0.25s ease forwards;
}
.license-lightbox.hidden {
  animation: none;
}
.license-modal {
  animation: lightboxZoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 书籍封面 3D 浮动效果 */
.book-cover-wrap {
  perspective: 1200px;
}
.book-cover {
  transform: rotateY(-12deg) rotateX(2deg);
  box-shadow: -18px 24px 60px -12px rgba(139, 92, 246, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  animation: bookFloat 4s ease-in-out infinite;
}
.book-cover:hover {
  transform: rotateY(-4deg) rotateX(0deg) scale(1.03);
  box-shadow: -10px 16px 50px -8px rgba(139, 92, 246, 0.5), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  animation-play-state: paused;
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-12deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-12deg) rotateX(2deg) translateY(-10px); }
}

/* 通用弹窗（书籍页付款/咨询） */
.modal-overlay {
  animation: lightboxFadeIn 0.25s ease forwards;
}
.modal-overlay.hidden {
  animation: none;
}
.modal-box {
  animation: lightboxZoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 数字动画 */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-count {
  animation: countUp 0.8s ease forwards;
}

/* 淡入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 浮动动画 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* 脉冲发光 */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* FAQ手风琴 */
.faq-item {
  border: 1px solid var(--dark-border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* SVG chevron 图标旋转 */
.faq-item.active .faq-icon svg {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* 移动端菜单 */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

/* 输入框聚焦效果 */
.input-focus:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  outline: none;
}

/* 标签徽章 */
.tag-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

/* 分隔线渐变 */
.hr-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  border: none;
}

/* 打字光标 */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: linear-gradient(180deg, #8b5cf6, #ec4899);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.7s step-end infinite;
  border-radius: 2px;
}

/* 深色背景下的打字光标 */
.typing-cursor-dark {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: #1f2937;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.7s step-end infinite;
  border-radius: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 雷达图动画 */
@keyframes radarGrow {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.radar-dot {
  opacity: 0;
  animation: radarDotPop 0.4s ease-out forwards;
  box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

@keyframes radarDotPop {
  0% { opacity: 0; transform: scale(0); }
  80% { transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════
   语义化组件类（替代重复的 Tailwind 组合）
   ══════════════════════════════════════ */

/* 章节分隔线 */
.section-divider { border-top: 1px solid var(--dark-border); }

/* 章节标题 */
.section-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; line-height: 2.5rem; }
}

/* 小号正文 */
.text-body-sm { color: #9ca3af; font-size: 0.875rem; line-height: 1.625rem; }

/* 大号正文 */
.text-body-lg { color: #9ca3af; font-size: 1.125rem; line-height: 1.75rem; }

/* 统一卡片基础（暗色卡片 + 边框 + 圆角） */
.card-base {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
}

/* 带边框的暗色卡片（带特定颜色边框） */
.card-border-indigo { border-color: rgba(99, 102, 241, 0.2); }
.card-border-purple  { border-color: rgba(139, 92, 246, 0.2); }
.card-border-pink    { border-color: rgba(236, 72, 153, 0.2); }
.card-border-emerald { border-color: rgba(16, 185, 129, 0.2); }
.card-border-amber   { border-color: rgba(245, 158, 11, 0.2); }
.card-border-blue    { border-color: rgba(59, 130, 246, 0.2); }

/* 标签徽章（通用） */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* 各色系标签 */
.tag-purple  { background: rgba(139, 92, 246, 0.1);  border: 1px solid rgba(139, 92, 246, 0.2);  color: #c4b5fd; }
.tag-indigo  { background: rgba(99, 102, 241, 0.1);  border: 1px solid rgba(99, 102, 241, 0.2);  color: #a5b4fc; }
.tag-pink    { background: rgba(236, 72, 153, 0.1);  border: 1px solid rgba(236, 72, 153, 0.2);  color: #f9a8d4; }
.tag-emerald { background: rgba(16, 185, 129, 0.1);  border: 1px solid rgba(16, 185, 129, 0.2);  color: #6ee7b7; }
.tag-amber   { background: rgba(245, 158, 11, 0.1);  border: 1px solid rgba(245, 158, 11, 0.2);  color: #fcd34d; }
.tag-blue    { background: rgba(59, 130, 246, 0.1);  border: 1px solid rgba(59, 130, 246, 0.2);  color: #93c5fd; }
.tag-gray    { background: rgba(156, 163, 175, 0.1); border: 1px solid rgba(156, 163, 175, 0.2); color: #d1d5db; }

/* 章节标签（上方小标签） */
.section-label {
  color: rgba(168, 139, 250, 0.6);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
}

/* hover 链接颜色 */
.link-hover { color: #9ca3af; transition: color 0.2s; }
.link-hover:hover { color: #c084fc; }

/* 页面容器（水平padding + max-width） */
.page-container { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .page-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .page-container { padding-left: 2rem; padding-right: 2rem; } }

/* 页面容器 + 标准section垂直间距 */
.page-container-section { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 640px) { .page-container-section { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .page-container-section { padding-left: 2rem; padding-right: 2rem; padding-top: 8rem; padding-bottom: 8rem; } }

/* 页面容器 + 小间距 */
.page-container-sm { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
@media (min-width: 640px) { .page-container-sm { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .page-container-sm { padding-left: 2rem; padding-right: 2rem; padding-top: 3rem; padding-bottom: 3rem; } }

/* 窄容器（用于FAQ等） */
.page-container-narrow { max-width: 56rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .page-container-narrow { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .page-container-narrow { padding-left: 2rem; padding-right: 2rem; } }

/* 移动端菜单链接 */
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #d1d5db;
  transition: background-color 0.15s, color 0.15s;
}
.mobile-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.mobile-link.active { color: #fff; background: rgba(255, 255, 255, 0.05); font-weight: 500; }

/* 社交平台链接 */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  transition: background-color 0.2s, color 0.2s;
}
.social-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* 页脚标题 */
.footer-title { color: #fff; font-weight: 600; margin-bottom: 1rem; }

/* 页脚列表 */
.footer-list { display: flex; flex-direction: column; gap: 0.75rem; }

/* 页脚品牌描述 */
.footer-desc { color: #9ca3af; margin-bottom: 1.5rem; max-width: 24rem; }

/* 版权文字 */
.copyright-text { color: #6b7280; font-size: 0.875rem; }

/* 页面容器 + 垂直间距 */
.page-container-lg { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .page-container-lg { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .page-container-lg { padding-left: 2rem; padding-right: 2rem; padding-top: 4rem; padding-bottom: 4rem; } }

/* 暗色卡片（通用） */
.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
}

/* Hero 区域网格背景 */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Hero 区域径向光晕 */
.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}

/* 卡片顶部渐变光线 */
.card-top-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

/* ══════════════════════════════════════
   第二批语义化组件类
   ══════════════════════════════════════ */

/* 章节标题（带动画） */
.section-heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .section-heading { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .section-heading { font-size: 3rem; line-height: 1; } }

/* 章节副标题 */
.section-subtitle { color: #9ca3af; font-size: 1.125rem; line-height: 1.75rem; }

/* 深色主按钮 */
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #111827;
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.btn-primary-dark:hover { background: #1f2937; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* 紫色描边按钮 */
.btn-outline-purple {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s;
}
.btn-outline-purple:hover { background: rgba(168, 85, 247, 0.1); }

/* 科技风标签（font-mono，紧凑） */
.tag-tech {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.tag-tech-indigo  { background: rgba(99, 102, 241, 0.1);  border: 1px solid rgba(99, 102, 241, 0.2);  color: #a5b4fc; }
.tag-tech-purple  { background: rgba(139, 92, 246, 0.1);  border: 1px solid rgba(139, 92, 246, 0.2);  color: #c4b5fd; }
.tag-tech-pink    { background: rgba(236, 72, 153, 0.1);  border: 1px solid rgba(236, 72, 153, 0.2);  color: #f9a8d4; }
.tag-tech-emerald { background: rgba(16, 185, 129, 0.1);  border: 1px solid rgba(16, 185, 129, 0.2);  color: #6ee7b7; }
.tag-tech-amber   { background: rgba(245, 158, 11, 0.1);  border: 1px solid rgba(245, 158, 11, 0.2);  color: #fcd34d; }
.tag-tech-teal    { background: rgba(20, 184, 166, 0.1);  border: 1px solid rgba(20, 184, 166, 0.2);  color: #5eead4; }
.tag-tech-blue    { background: rgba(59, 130, 246, 0.1);  border: 1px solid rgba(59, 130, 246, 0.2);  color: #93c5fd; }

/* 带边框暗色卡片（rounded-2xl） */
.card-bordered {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
}

/* 深色背景卡片（rounded-2xl，无边框） */
.card-dark-bg {
  background: var(--dark-bg);
  border-radius: 1rem;
}

/* 卡片背景（rounded-2xl，无边框，nine-card色） */
.card-plain {
  background: var(--dark-card);
  border-radius: 1rem;
}

/* 灰色数据徽章 */
.badge-gray {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.75rem;
}

/* ══════════════════════════════════════
   文章详情页样式
   ══════════════════════════════════════ */

/* 文章正文容器 */
.article-body { color: #d1d5db; font-size: 1rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-top: 2.5rem; margin-bottom: 1rem;
  padding-left: 0.75rem; border-left: 3px solid #8b5cf6;
  scroll-margin-top: 6rem;
}
.article-body h3 {
  font-size: 1.2rem; font-weight: 600; color: #e5e7eb;
  margin-top: 2rem; margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body ul li { list-style: disc; margin-bottom: 0.5rem; }
.article-body ol li { list-style: decimal; margin-bottom: 0.5rem; }
.article-body li::marker { color: #8b5cf6; }
.article-body a { color: #c4b5fd; text-decoration: underline; text-decoration-color: rgba(139, 92, 246, 0.3); transition: color 0.15s; }
.article-body a:hover { color: #ddd6fe; text-decoration-color: rgba(139, 92, 246, 0.6); }
.article-body strong { color: #fff; font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.875rem; }
.article-body th { background: rgba(139, 92, 246, 0.1); color: #fff; font-weight: 600; text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--dark-border); }
.article-body td { padding: 0.75rem 1rem; border: 1px solid var(--dark-border); color: #d1d5db; }
.article-body tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.article-body blockquote {
  border-left: 3px solid #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 1.25rem;
  color: #c4b5fd;
}

/* 文章内嵌CTA */
.article-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

/* 目录 */
.article-sidebar {
  position: sticky;
  top: 6rem;
  align-self: flex-start;
}
.article-toc { margin-bottom: 1rem; }
.article-toc-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(168, 139, 250, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.article-toc ul { display: flex; flex-direction: column; gap: 0.375rem; }
.article-toc li { list-style: none; }
.article-toc a {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 0.25rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 0.25rem 0.25rem 0;
  transition: all 0.15s;
  line-height: 1.5;
}
.article-toc a:hover { color: #c4b5fd; border-left-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.05); }
.article-toc a.toc-h3 { padding-left: 1.5rem; font-size: 0.75rem; }

/* 文章元信息 */
.article-meta { display: flex; align-items: center; gap: 0.75rem; color: #6b7280; font-size: 0.875rem; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.article-meta svg { color: #6b7280; flex-shrink: 0; }
.article-meta span:not(:last-child)::after { content: '·'; margin-left: 0.75rem; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #6b7280; }
.breadcrumb a { color: #9ca3af; transition: color 0.15s; }
.breadcrumb a:hover { color: #c4b5fd; }
.breadcrumb-sep { color: #4b5563; }

/* 关于作者 */
.article-author {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.article-author-label {
  position: absolute;
  top: -10px;
  left: 1.25rem;
  z-index: 1;
  background: #0a0a0f;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #c4b5fd;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .article-author-label {
    left: 1rem;
    font-size: 0.6875rem;
    padding: 0.1875rem 0.625rem;
  }
}
.article-author-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.article-author-info { flex: 1; min-width: 0; }
.article-author-name { font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.article-author-role { font-size: 0.8rem; color: rgba(168, 139, 250, 0.7); margin-bottom: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-author-desc { font-size: 0.875rem; color: #9ca3af; line-height: 1.6; }
.article-author-desc strong { color: #d1d5db; }
@media (max-width: 640px) {
  .article-author { flex-direction: column; gap: 1rem; }
  .article-author-avatar { width: 56px; height: 56px; font-size: 1.25rem; }
}

/* 上一篇 / 下一篇 */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.article-nav-prev,
.article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(31, 32, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.article-nav-prev:hover,
.article-nav-next:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
}
.article-nav-next { text-align: right; align-items: flex-end; }
.article-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-nav-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #d1d5db;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav-prev:hover .article-nav-title,
.article-nav-next:hover .article-nav-title { color: #fff; }
.article-nav-prev:hover .article-nav-label,
.article-nav-next:hover .article-nav-label { color: #a78bfa; }
.article-nav-prev.is-disabled,
.article-nav-next.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(31, 32, 41, 0.3);
  border-color: rgba(255, 255, 255, 0.04);
}
.article-nav-prev.is-disabled:hover,
.article-nav-next.is-disabled:hover {
  transform: none;
  background: rgba(31, 32, 41, 0.3);
  border-color: rgba(255, 255, 255, 0.04);
}
.article-nav-prev.is-disabled .article-nav-title,
.article-nav-next.is-disabled .article-nav-title { color: #6b7280; }
.article-nav-prev.is-disabled .article-nav-label,
.article-nav-next.is-disabled .article-nav-label { color: #4b5563; }
@media (max-width: 640px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { text-align: left; align-items: flex-start; }
}

/* 侧边栏 - 诊断报告卡片 */
.article-report-card {
  padding: 1.25rem 1rem;
  background: var(--dark-card);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}
.article-report-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.625rem;
  border-radius: 0.625rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
}
.article-report-title { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.375rem; }
.article-report-desc { font-size: 0.6875rem; color: #9ca3af; margin-bottom: 0.875rem; line-height: 1.6; text-align: left; }
.article-report-btn {
  display: block;
  width: 100%;
  padding: 0.625rem 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.article-report-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  opacity: 0.95;
}

/* 诊断报告弹窗 */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.report-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.report-modal {
  position: relative;
  width: calc(100% - 2rem);
  max-width: 24rem;
  background: #13141b;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.2s;
}
.report-modal-overlay.is-open .report-modal { transform: scale(1); }
.report-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
}
.report-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.report-modal-title { font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.report-modal-desc { font-size: 0.8125rem; color: #9ca3af; line-height: 1.6; margin-bottom: 1.25rem; }
.report-modal-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.report-modal-contact {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.625rem;
}
.report-modal-contact-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: #6b7280;
  margin-bottom: 0.375rem;
}
.report-modal-contact-value { font-size: 0.9375rem; font-weight: 600; color: #c4b5fd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.report-modal-qr { padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.report-modal-qr-img { width: 120px; height: 120px; border-radius: 0.5rem; margin: 0 auto 0.5rem; display: block; }
.report-modal-qr-text { font-size: 0.75rem; color: #6b7280; }

/* ══════════════════════════════════════
   白皮书详情页样式
   ══════════════════════════════════════ */

/* 白皮书封面：科技蓝渐变背景 + 立体效果 */
.whitepaper-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(6, 95, 130, 0.9) 45%, rgba(14, 116, 144, 0.85) 100%),
    linear-gradient(180deg, #0c1a3a 0%, #071029 100%);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(14, 165, 233, 0.15),
    inset 0 1px 0 rgba(186, 230, 253, 0.15);
  overflow: hidden;
}

.whitepaper-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(186, 230, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.65;
}

.whitepaper-cover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(186, 230, 253, 0.14) 0%, transparent 50%);
  pointer-events: none;
}

.whitepaper-cover-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .whitepaper-cover-inner {
    padding: 2.5rem 2rem;
  }
}

/* 白皮书详情弹窗：扩展宽度适配双列布局 */
#download-modal.report-modal-overlay .report-modal {
  max-width: 42rem;
  width: calc(100% - 1.5rem);
  text-align: left;
  padding: 2.5rem 2rem 2rem;
}

.report-modal-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-modal-subtitle {
  display: inline-block;
  font-size: 0.75rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-bottom: 0.75rem;
}
