/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1e1e2a; }
::-webkit-scrollbar-thumb { background: #3a3a4a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a5a; }

/* 导航链接 */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-link:hover { background: #1e1e2a; color: #e5e7eb; }
.nav-link.active { background: #2a2a3a; color: #f0b429; font-weight: 600; }

/* 卡片 */
.card {
  background: #16161e;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 20px;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2a3a;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1e1e2a;
}
.data-table tr:hover td { background: #1a1a24; }

/* 输入框 */
.input {
  background: #1e1e2a;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e5e7eb;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: #f0b429; }
.input::placeholder { color: #4a4a5a; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: #f0b429; color: #0f0f13; }
.btn-primary:hover { background: #d49a1a; }
.btn-secondary { background: #2a2a3a; color: #e5e7eb; }
.btn-secondary:hover { background: #3a3a4a; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* 标签 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}
.badge-rise { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-fall { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-gold { background: rgba(240,180,41,0.15); color: #f0b429; }
.badge-gray { background: rgba(107,114,128,0.15); color: #9ca3af; }

/* 情绪指标 */
.emotion-bar {
  height: 8px;
  border-radius: 4px;
  background: #2a2a3a;
  overflow: hidden;
}
.emotion-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

/* 加载动画 */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #2a2a3a;
  border-top-color: #f0b429;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 归档标签 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #1e1e2a;
  color: #6b7280;
  border: 1px solid #2a2a3a;
}

/* Toast通知 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  animation: toastIn 0.3s ease;
}
.toast-success { background: #1a5c3a; color: #2ecc71; }
.toast-error { background: #5c1a1a; color: #e74c3c; }
.toast-info { background: #1a3a5c; color: #3498db; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 涨停分析页面样式 ========== */

/* 统计卡片增强 */
.stat-card {
  background: linear-gradient(135deg, #1e1e2a 0%, #16161e 100%);
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
}
.stat-card .label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 概念板块热度条 */
.plate-bar-container {
  background: #1e1e2a;
  border-radius: 4px;
  height: 20px;
  overflow: hidden;
  position: relative;
}
.plate-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease-out;
  position: relative;
}
.plate-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 连板梯队卡片 */
.ladder-card {
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.ladder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.ladder-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ladder-card .board-count {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.ladder-card .board-label {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}
.ladder-card .stock-count {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
}
.ladder-card .stock-label {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

/* 涨停股票表格 */
.limitup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.limitup-table th {
  text-align: left;
  padding: 12px;
  background: #1e1e2a;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a3a;
}
.limitup-table td {
  padding: 12px;
  border-bottom: 1px solid #1e1e2a;
  vertical-align: middle;
}
.limitup-table tr:hover td {
  background: #1a1a24;
}
.limitup-table .stock-name {
  font-weight: 600;
  color: #e74c3c;
}
.limitup-table .stock-code {
  color: #6b7280;
  font-family: monospace;
}
.limitup-table .board-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.limitup-table .time {
  color: #6b7280;
  font-family: monospace;
}
.limitup-table .value {
  color: #9ca3af;
}
.limitup-table .reason {
  color: #6b7280;
  font-size: 12px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 板块分布图 */
.plate-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.plate-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.plate-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 颜色工具类 */
.text-rise { color: #e74c3c; }
.text-fall { color: #2ecc71; }
.text-gold { color: #f0b429; }
.text-blue-400 { color: #60a5fa; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

.bg-rise { background: #e74c3c; }
.bg-gold { background: #f0b429; }
.bg-blue-500 { background: #3b82f6; }
.bg-green-500 { background: #22c55e; }
.bg-purple-500 { background: #a855f7; }
.bg-pink-500 { background: #ec4899; }
.bg-cyan-500 { background: #06b6d4; }
.bg-orange-500 { background: #f97316; }
.bg-indigo-500 { background: #6366f1; }
.bg-dark-500 { background: #374151; }
.bg-dark-600 { background: #1f2937; }
.bg-dark-700 { background: #111827; }
.bg-dark-800 { background: #0f172a; }

/* 渐变背景 */
.from-rise { --tw-gradient-from: #e74c3c; }
.to-orange-500 { --tw-gradient-to: #f97316; }
.from-gold { --tw-gradient-from: #f0b429; }
.to-yellow-500 { --tw-gradient-to: #eab308; }
.from-blue-500 { --tw-gradient-from: #3b82f6; }
.to-cyan-500 { --tw-gradient-to: #06b6d4; }
