/* 板块周期选股系统 - 色彩稍丰富 */
:root {
  --bg: #0a0e14;
  --bg-elevated: #111820;
  --bg-card: #161d28;
  --bg-hover: #1e2836;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --danger: #ef4444;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.15);
  --font-sans: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  /* 多色点缀 */
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --rose: #f43f5e;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --amber-soft: rgba(245, 158, 11, 0.12);
  --violet-soft: rgba(139, 92, 246, 0.12);
  --rose-soft: rgba(244, 63, 94, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08), transparent),
                   radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.05), transparent),
                   radial-gradient(ellipse 50% 30% at 0% 80%, rgba(6, 182, 212, 0.04), transparent);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 顶部导航 - 极简 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.site-title:hover {
  color: var(--accent-hover);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-main a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-main a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.nav-main a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border);
}

.nav-more-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-more-links {
  display: flex;
  gap: 0.25rem;
}

.nav-more-links a {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-more-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.update-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 主内容 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Hero 区 - 首页用 */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Solutions 卡片网格 */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.solutions-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.solutions-card:nth-child(1) { border-left-color: var(--blue); }
.solutions-card:nth-child(2) { border-left-color: var(--cyan); }
.solutions-card:nth-child(3) { border-left-color: var(--emerald); }
.solutions-card:nth-child(4) { border-left-color: var(--amber); }
.solutions-card:nth-child(5) { border-left-color: var(--violet); }
.solutions-card:nth-child(6) { border-left-color: var(--rose); }
.solutions-card:nth-child(7) { border-left-color: #10b981; }  /* 资金流出-绿色显眼 */

.solutions-card:hover {
  transform: translateY(-2px);
}
.solutions-card:nth-child(1):hover { border-color: var(--blue); background: var(--blue-soft); }
.solutions-card:nth-child(2):hover { border-color: var(--cyan); background: var(--cyan-soft); }
.solutions-card:nth-child(3):hover { border-color: var(--emerald); background: var(--emerald-soft); }
.solutions-card:nth-child(4):hover { border-color: var(--amber); background: var(--amber-soft); }
.solutions-card:nth-child(5):hover { border-color: var(--violet); background: var(--violet-soft); }
.solutions-card:nth-child(6):hover { border-color: var(--rose); background: var(--rose-soft); }
.solutions-card:nth-child(7):hover { border-color: #10b981; background: rgba(16, 185, 129, 0.15); }

.solutions-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.solutions-card:nth-child(1) h3 { color: #93c5fd; }
.solutions-card:nth-child(2) h3 { color: #67e8f9; }
.solutions-card:nth-child(3) h3 { color: #6ee7b7; }
.solutions-card:nth-child(4) h3 { color: #fcd34d; }
.solutions-card:nth-child(5) h3 { color: #c4b5fd; }
.solutions-card:nth-child(6) h3 { color: #fda4af; }
.solutions-card:nth-child(7) h3 { color: #34d399; font-weight: 700; }

.solutions-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 预留区块 */
.reserved-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.reserved-section h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.reserved-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reserved-links a {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.reserved-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* 通用卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  background: rgba(59, 130, 246, 0.06);
}

.data-table tr:hover {
  background: var(--bg-hover);
}

.num-up {
  color: var(--success);
}

.num-down {
  color: var(--danger);
}

.chart-container {
  min-height: 320px;
  padding: 1rem 0;
}

.placeholder-box {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

/* 页脚 - 简洁 */
.site-footer {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.wechat-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.wechat-qrcode {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
}

.qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wechat-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .wechat-section {
    flex-direction: row;
    gap: 1rem;
  }
  
  .wechat-qrcode {
    width: 100px;
    height: 100px;
  }
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* 预留链接悬停多色 */
.reserved-links a:nth-child(1):hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-soft); }
.reserved-links a:nth-child(2):hover { color: var(--violet); border-color: var(--violet); background: var(--violet-soft); }

/* 响应式 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-main {
    flex-wrap: wrap;
  }
  .nav-more {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

.nav-highlight {
  color: #fbbf24 !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1)) !important;
  font-weight: 600 !important;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.5); }
}

.solutions-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.04));
  border: 2px solid rgba(251, 191, 36, 0.4) !important;
  border-left-color: #fbbf24 !important;
  position: relative;
  overflow: hidden;
}

.solutions-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.solutions-card-featured:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: #fbbf24 !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08));
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

.solutions-card-featured h3 {
  color: #fbbf24 !important;
  font-size: 1.125rem !important;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

@media (max-width: 768px) {
  .solutions-card-featured {
    grid-column: span 1;
  }
}

/* 模块化功能区布局 */
.module-section {
  margin-bottom: 2.5rem;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.module-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.module-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.module-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.module-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.module-grid-1 {
  grid-template-columns: 1fr;
  max-width: 400px;
}

/* 模块内卡片样式优化 */
.module-section .solutions-card {
  position: relative;
}

.module-section .module-grid .solutions-card:nth-child(1) { border-left-color: var(--blue); }
.module-section .module-grid .solutions-card:nth-child(2) { border-left-color: var(--cyan); }
.module-section .module-grid .solutions-card:nth-child(3) { border-left-color: var(--emerald); }
.module-section .module-grid .solutions-card:nth-child(4) { border-left-color: var(--amber); }
.module-section .module-grid .solutions-card:nth-child(5) { border-left-color: var(--violet); }
.module-section .module-grid .solutions-card:nth-child(6) { border-left-color: var(--rose); }

.module-section .module-grid .solutions-card:hover:nth-child(1) { border-color: var(--blue); background: var(--blue-soft); }
.module-section .module-grid .solutions-card:hover:nth-child(2) { border-color: var(--cyan); background: var(--cyan-soft); }
.module-section .module-grid .solutions-card:hover:nth-child(3) { border-color: var(--emerald); background: var(--emerald-soft); }
.module-section .module-grid .solutions-card:hover:nth-child(4) { border-color: var(--amber); background: var(--amber-soft); }
.module-section .module-grid .solutions-card:hover:nth-child(5) { border-color: var(--violet); background: var(--violet-soft); }
.module-section .module-grid .solutions-card:hover:nth-child(6) { border-color: var(--rose); background: var(--rose-soft); }

.module-section .module-grid .solutions-card:nth-child(1) h3 { color: #93c5fd; }
.module-section .module-grid .solutions-card:nth-child(2) h3 { color: #67e8f9; }
.module-section .module-grid .solutions-card:nth-child(3) h3 { color: #6ee7b7; }
.module-section .module-grid .solutions-card:nth-child(4) h3 { color: #fcd34d; }
.module-section .module-grid .solutions-card:nth-child(5) h3 { color: #c4b5fd; }
.module-section .module-grid .solutions-card:nth-child(6) h3 { color: #fda4af; }

/* 外部链接卡片 */
.solutions-card-external {
  border-left-color: #64748b !important;
}

.solutions-card-external h3 {
  color: var(--text-secondary) !important;
}

.solutions-card-external:hover {
  border-color: #64748b !important;
  background: var(--bg-hover) !important;
}

.solutions-card-external:hover h3 {
  color: var(--text) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .module-header {
    flex-wrap: wrap;
  }
  .module-desc {
    width: 100%;
    margin-left: 2.75rem;
    margin-top: -0.25rem;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
}
