/* ==========================================================================
   玲珑跨海协同生态 - 全局设计系统与视觉规范 (Enterprise SaaS Design System)
   采用 Plus Jakarta Sans + JetBrains Mono 现代科技字体与沉稳企业级质感
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* 字体栈 */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'HarmonyOS Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  /* 白昼浅色 (Daylight Enterprise) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-focus: #0d9488;
  --brand-teal: #0d9488;
  --brand-teal-light: #2dd4bf;
  --brand-emerald: #059669;
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.dark {
  /* 黑曜深色 (Obsidian Enterprise) */
  --bg-page: #0b0f17;
  --bg-surface: #111827;
  --bg-card: #151d2e;
  --bg-card-solid: #111827;
  --bg-hover: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: #1e293b;
  --border-focus: #14b8a6;
  --brand-teal: #14b8a6;
  --brand-teal-light: #5eead4;
  --brand-emerald: #10b981;
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 12px 0 rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

/* 标题类加精细字距 */
h1, h2, h3, h4, .font-heading {
  letter-spacing: -0.02em;
}

/* 精密数据与代码类 */
.font-mono, code, kbd, samp {
  font-family: var(--font-mono);
}

/* 坚实企业级卡片面板 */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.dark .glass-nav {
  background: rgba(11, 15, 23, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

/* 悬浮微交互 - 坚实克制无跳跃感 */
.card-hover {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-card);
}

/* 移除花哨玩具感的光晕和呼吸效果 */
.ambient-glow-teal, .ambient-glow-emerald {
  display: none !important;
}

.dragon-halo {
  animation: none !important;
}

.shimmer-btn {
  position: relative;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.shimmer-btn::after {
  display: none !important;
}

.border-beam-card {
  position: relative;
}
.border-beam-card::before {
  display: none !important;
}

/* 自定义纤细精致滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 184, 166, 0.5);
}

/* 手风琴图标平滑旋转 */
.faq-icon {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   NewAPI 风格的系统通知时间线组件体系 (Enterprise Timeline & Notice)
   ========================================================================== */

.notice-timeline {
  position: relative;
  padding-left: 28px;
}

.notice-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background-color: var(--border-subtle);
}

.notice-timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.notice-timeline-item:last-child {
  margin-bottom: 0;
}

.notice-timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: var(--bg-surface);
  border: 2px solid var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 2;
}

.notice-badge-feature {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.25);
}
.dark .notice-badge-feature {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.notice-badge-important {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.dark .notice-badge-important {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.notice-badge-price {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.dark .notice-badge-price {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.notice-badge-maintain {
  background: rgba(244, 63, 94, 0.12);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.dark .notice-badge-maintain {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

/* ==========================================================================
   企业级巨型下拉菜单与扩展交互组件体系 (Mega Navigation & Extensions)
   ========================================================================== */

/* Mega-Menu 下拉面板 */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.dark .mega-dropdown {
  background: #0f1624;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nav-item-dropdown:hover .mega-dropdown,
.nav-item-dropdown:focus-within .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 导航下拉三角微标识 */
.nav-chevron {
  transition: transform 0.18s ease;
}
.nav-item-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* 滑块控件 (Custom Enterprise Range Slider) */
input[type="range"].token-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 9999px;
  outline: none;
}

input[type="range"].token-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-teal);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

input[type="range"].token-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* 延迟测速状态指示灯与药丸徽章 */
.latency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.latency-pill.optimal {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.latency-pill.good {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.latency-pill.fair {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 知识库高亮标签 */
.kb-category-card {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-category-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

