/* EA超市 - 自定义样式 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --bg-page: #f0f2f5;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --text-light: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-light);
  margin: 0;
  min-height: 100vh;
}

/* 主体容器 */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg-dark);
  padding: 1.5rem 2rem;
  min-height: calc(100vh - 64px);
}

/* 导航栏 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  color: var(--text-light);
  transition: color 0.2s;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 700;
}

/* 卡片 */
.ea-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.ea-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-trend { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.tag-range { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.tag-martin { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.tag-hedge { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.tag-scalp { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.tag-mt4 { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.tag-mt5 { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.1);
}

/* 统计数字 */
.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 搜索框 */
.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  width: 100%;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.search-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 分类侧边栏 */
.sidebar-item {
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-item:hover, .sidebar-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* 进度条 */
.progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: rgba(37, 99, 235, 0.1);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.data-table tr:hover td {
  background: rgba(37, 99, 235, 0.05);
}

/* 页脚 */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .ea-card-img { height: 140px; }
  .stat-value { font-size: 1.4rem; }
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f2f5; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Hero区域 */
.hero-gradient {
  background: linear-gradient(135deg, #0f2847 0%, #1d4ed8 50%, #0f2847 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-gradient p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-gradient .stat-value {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* 信号状态指示 */
.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.signal-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 论坛帖子 */
.post-item {
  border-left: 3px solid transparent;
  padding: 1rem 1.25rem;
  transition: all 0.2s;
}

.post-item:hover {
  border-left-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}
