/* =============================================
   header.css — 顶部标题栏样式
   ============================================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-cyan), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
/* 底部扫光线 */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanLine 3s linear infinite;
}
@keyframes scanLine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* --- 左侧 Logo + 标题 --- */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: var(--radius-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(0,212,255,0.5);
}
.header-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff 0%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 2px;
}

/* --- 中间时钟 --- */
.header-center { text-align: center; }
.current-time {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent-cyan);
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}
.current-date {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* --- 右侧状态 --- */
.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.status-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
.header-divider { font-size: 12px; color: var(--text-dim); }
.header-datasource {
  font-size: 12px;
  color: var(--text-secondary);
}
.header-datasource i { color: var(--accent-cyan); margin-right: 4px; }
