/* 板块周期选股系统 - 色彩稍丰富 */
: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.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

/* 第一行：网站标题（始终完整显示） */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.site-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.site-title:hover {
  filter: brightness(1.2);
}

/* 第二行：导航菜单（自动换行） */
.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.125rem;
}

.nav-main a {
  display: block;
  padding: 0.4375rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-main a:hover {
  color: #f1f5f9 !important;
  background: rgba(148, 163, 184, 0.18) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 特殊菜单项悬停加深 */
.nav-hot-glow:hover {
  color: #f9a8d4 !important;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.28), rgba(236, 72, 153, 0.15)) !important;
  border-color: rgba(244, 114, 182, 0.55) !important;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.35);
  transform: translateY(-2px);
}

.nav-style-glow:hover {
  color: #c4b5fd !important;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(139, 92, 246, 0.15)) !important;
  border-color: rgba(167, 139, 250, 0.55) !important;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.nav-choice-glow:hover {
  color: #6ee7b7 !important;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.28), rgba(16, 185, 129, 0.15)) !important;
  border-color: rgba(52, 211, 153, 0.55) !important;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
  transform: translateY(-2px);
}

.nav-highlight:hover {
  color: #fcd34d !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.15)) !important;
  border-color: rgba(251, 191, 36, 0.55) !important;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
  transform: translateY(-2px);
}

.nav-resonance-glow:hover {
  color: #67e8f9 !important;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(6, 182, 212, 0.10)) !important;
  border-color: rgba(103, 232, 249, 0.50) !important;
  box-shadow: 0 4px 20px rgba(103, 232, 249, 0.30);
  transform: translateY(-2px);
}

.nav-report-glow:hover {
  color: #fb923c !important;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.22), rgba(234, 88, 12, 0.10)) !important;
  border-color: rgba(251, 146, 60, 0.50) !important;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.30);
  transform: translateY(-2px);
}

.nav-main a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

/* 导航高亮项底部指示条 */
.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.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: 3.5rem 0 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 40%, #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.7;
  letter-spacing: 0.01em;
}

/* 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: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.solutions-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 预留区块 */
.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: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.125rem;
  }
  .nav-main::-webkit-scrollbar {
    display: none;
  }
  .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); }
}

/* 特殊菜单项美化 */
.nav-hot-glow {
  color: #f472b6 !important;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(236, 72, 153, 0.08)) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(244, 114, 182, 0.35) !important;
  animation: pulse-hot 2.5s ease-in-out infinite;
}

@keyframes pulse-hot {
  0%, 100% { box-shadow: 0 0 6px rgba(244, 114, 182, 0.3); }
  50% { box-shadow: 0 0 16px rgba(244, 114, 182, 0.45); }
}

.nav-style-glow {
  color: #a78bfa !important;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.08)) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  animation: pulse-style 2.5s ease-in-out infinite;
}

@keyframes pulse-style {
  0%, 100% { box-shadow: 0 0 6px rgba(167, 139, 250, 0.3); }
  50% { box-shadow: 0 0 16px rgba(167, 139, 250, 0.45); }
}

.nav-choice-glow {
  color: #34d399 !important;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.08)) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  animation: pulse-choice 2.5s ease-in-out infinite;
}

@keyframes pulse-choice {
  0%, 100% { box-shadow: 0 0 6px rgba(52, 211, 153, 0.3); }
  50% { box-shadow: 0 0 16px rgba(52, 211, 153, 0.45); }
}

.nav-resonance-glow {
  color: #22d3ee !important;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(6, 182, 212, 0.08)) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
}

.nav-report-glow {
  color: #fb923c !important;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(249, 115, 22, 0.08)) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(251, 146, 60, 0.35) !important;
}

.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: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.module-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.module-icon {
  font-size: 1.125rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}

.module-header h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.module-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 500;
}

.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); }

/* 外部链接卡片 */
.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;
  }
}
