/* 智广云控 - 浅色主题补充样式 (Tailwind CDN 已加载大部分) */

/* ==================== Mega Menu ==================== */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.15s;
  border-radius: 6px;
}
.nav-link:hover { color: #0C55B4; }

.nav-underline {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: #0C55B4;
  border-radius: 2px;
  transition: transform 0.25s ease;
  transform-origin: center;
}
.nav-link:hover .nav-underline { transform: translateX(-50%) scaleX(1); }

/* 带下拉的菜单项容器 */
.nav-item {
  position: relative;
}

/* 真正的下拉框 (默认隐藏, hover 显示) */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding-top: 12px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item:hover > .nav-mega,
.nav-mega:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover > a .nav-underline { transform: translateX(-50%) scaleX(1); }

.nav-mega__inner {
  display: flex;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-top: 3px solid #0C55B4;
  border-radius: 0 0 8px 8px;
  padding: 24px 28px;
  box-shadow: 0 12px 36px -8px rgba(12, 85, 180, 0.18), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 480px;
}
.nav-mega--single .nav-mega__inner { min-width: 320px; }

.nav-mega__col {
  min-width: 200px;
}
.nav-mega__col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0C55B4;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}
.nav-mega__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 10px 10px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-mega__item:hover { background: #EEF4FB; }
.nav-mega__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.nav-mega__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.nav-mega__item:hover .nav-mega__title { color: #0C55B4; }
.nav-mega__desc {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
  line-height: 1.4;
}

/* ==================== 通用 ==================== */

:root {
  --brand: #0066FF;
  --brand-dark: #0052D4;
  --accent: #00D4AA;
  --accent-dark: #00B894;
}

html { font-size: 16px; }
body { font-feature-settings: 'cv11', 'ss01', 'ss03'; }

/* 浅色主题滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* 文本截断 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* prose 样式 (浅色) */
.prose { line-height: 1.85; color: #334155; }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #0F172A; }
.prose h3 { font-size: 1.4rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #0F172A; }
.prose p { margin-bottom: 1.25rem; }
.prose code { background: #F1F5F9; padding: 2px 8px; border-radius: 4px; font-size: 0.9em; color: #0066FF; }
.prose pre { background: #0F172A; padding: 1.25rem; border-radius: 12px; overflow-x: auto; margin: 1.5rem 0; color: #E2E8F0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 1rem 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: #0066FF; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #0052D4; }
.prose blockquote { border-left: 3px solid #0066FF; padding-left: 1rem; margin: 1rem 0; color: #475569; font-style: italic; }

/* details / summary 优化 */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* 文本选中颜色 */
::selection { background: rgba(0, 102, 255, 0.15); color: #0F172A; }
::-moz-selection { background: rgba(0, 102, 255, 0.15); color: #0F172A; }

/* 全局过渡 (避免边框颜色突变) */
.transition { transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }

/* 表单 */
input, textarea, select {
  font-family: inherit;
}
input::placeholder, textarea::placeholder {
  color: #94A3B8;
}

/* 打印样式 */
@media print {
  header, footer, .no-print { display: none !important; }
  body { background: white; color: black; }
}
