/* AI量化交易页面样式 */

/* Hero Section */
.quant-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quant-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 量化导航栏 */
.quant-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.quant-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.quant-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quant-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.quant-nav-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quant-nav-link:hover::before {
  opacity: 1;
}

.quant-nav-link.active {
  color: white;
  background: var(--accent-gradient);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quant-nav-link .nav-icon {
  font-size: 18px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.quant-nav-link:hover .nav-icon {
  transform: scale(1.2);
}

.quant-nav-link .nav-text {
  white-space: nowrap;
}

/* 响应式导航 */
@media (max-width: 768px) {
  .quant-nav-links {
    gap: 6px;
    padding: 10px 0;
  }

  .quant-nav-link {
    padding: 10px 16px;
    font-size: 14px;
  }

  .quant-nav-link .nav-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .quant-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quant-nav-links::-webkit-scrollbar {
    display: none;
  }

  .quant-nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Section 样式 */
.section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 投资大师介绍卡片 */
.guru-profile {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guru-profile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.guru-header {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.guru-avatar {
  flex-shrink: 0;
}

.guru-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.guru-info {
  flex: 1;
}

.guru-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guru-company {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guru-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.badge-primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-secondary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: var(--accent-2);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-accent {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.2) 100%);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.guru-description h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.guru-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 投资组合统计 */
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stat-card-large {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card-large:hover::before {
  transform: scaleX(1);
}

.stat-card-large:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 活动动向卡片 */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.activity-buy {
  border-left-color: #10b981;
}

.activity-increase {
  border-left-color: var(--accent);
}

.activity-reduce {
  border-left-color: #ef4444;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-icon {
  font-size: 20px;
}

.activity-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-stock {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.activity-details {
  margin-bottom: 16px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
}

.activity-item .label {
  color: var(--text-secondary);
  font-weight: 500;
}

.activity-item .value {
  color: var(--text-primary);
  font-weight: 600;
}

.value-highlight {
  color: #10b981 !important;
  font-weight: 700 !important;
}

.value-alert {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

.activity-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.activity-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
}

/* 持仓表格 */
.holdings-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.holdings-table thead {
  background: var(--bg-primary);
}

.holdings-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.holdings-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.holdings-table tbody tr:hover {
  background: var(--bg-primary);
}

.holdings-table td {
  padding: 16px 12px;
  color: var(--text-primary);
}

.holdings-table .rank {
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

.holdings-table .ticker {
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.holdings-table .company {
  font-weight: 500;
}

.holdings-table .value {
  font-weight: 700;
  color: var(--accent);
}

.holdings-table .change {
  font-weight: 700;
}

.holdings-table .change.positive {
  color: #10b981;
}

.holdings-table .change.positive::before {
  content: '▲ ';
}

.holdings-table .change.negative {
  color: #ef4444;
}

.holdings-table .change.negative::before {
  content: '▼ ';
}

.holdings-table .new-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 投资哲学 */
.philosophy-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.philosophy-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: white;
}

.philosophy-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.philosophy-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.philosophy-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.faq-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question::before {
  content: '💬';
  font-size: 20px;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 32px;
}

/* 导航激活状态 */
.nav a.active {
  color: var(--accent);
  font-weight: 700;
  position: relative;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .guru-header {
    flex-direction: column;
    text-align: center;
  }

  .guru-name {
    font-size: 26px;
  }

  .guru-badges {
    justify-content: center;
  }

  .portfolio-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .holdings-table-wrapper {
    padding: 16px;
  }

  .holdings-table {
    font-size: 13px;
  }

  .holdings-table th,
  .holdings-table td {
    padding: 12px 8px;
  }

  .section-title {
    font-size: 26px;
  }

  .philosophy-section {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .portfolio-stats {
    grid-template-columns: 1fr;
  }

  .stat-card-large {
    padding: 24px;
  }

  .stat-icon {
    font-size: 40px;
  }

  .stat-value {
    font-size: 28px;
  }
}

/* AI选股大师网格 */
.guru-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.guru-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.guru-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.guru-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.guru-card:hover::before {
  transform: scaleX(1);
}

.guru-card-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
}

.guru-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.guru-card:hover .guru-card-avatar img {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.guru-card-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guru-card-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.guru-card-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.guru-card-stats span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.guru-card-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guru-card-tags .tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-weight: 600;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .guru-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .guru-card {
    padding: 24px 20px;
  }

  .guru-card-avatar {
    width: 100px;
    height: 100px;
  }

  .guru-card-name {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .guru-grid {
    grid-template-columns: 1fr;
  }
}

/* 热点洞察页面样式 */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.insight-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.insight-card:hover::before {
  transform: scaleY(1);
}

.insight-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.insight-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-gradient);
  color: white;
  margin-bottom: 16px;
}

.insight-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.insight-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.insight-title a:hover {
  color: var(--accent);
}

.insight-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.insight-date,
.insight-category {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 股票高亮栏 */
.stock-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.highlight-column {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.highlight-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.stock-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stock-list li {
  margin-bottom: 12px;
}

.stock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--bg-primary);
}

.stock-item:hover {
  background: var(--accent-gradient);
  transform: translateX(4px);
}

.stock-item:hover .stock-ticker,
.stock-item:hover .stock-name,
.stock-item:hover .stock-gurus,
.stock-item:hover .stock-weight,
.stock-item:hover .stock-conviction {
  color: white;
}

.stock-ticker {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  min-width: 60px;
}

.stock-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.stock-gurus,
.stock-weight,
.stock-conviction {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insight-card.featured {
    grid-column: span 1;
  }

  .stock-highlights {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .insight-card {
    padding: 20px;
  }

  .insight-title {
    font-size: 18px;
  }

  .highlight-column {
    padding: 20px;
  }
}

/* AI择时页面特定样式 */

/* 市场动态概览 */
.market-overview {
  margin-bottom: 48px;
}

.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value.positive {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* 信号卡片 */
.signal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.signal-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.signal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.signal-card:hover::before {
  left: 100%;
}

.signal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.signal-card.hot {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 100%);
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.signal-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-gradient);
  color: white;
}

.signal-badge.cluster {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.signal-body {
  margin-bottom: 12px;
}

.signal-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.signal-return {
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
}

.signal-return.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.signal-return.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.signal-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 热门交易列表 */
.top-trades-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.trade-item {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.trade-item:hover {
  transform: translateX(4px);
  border-left-color: var(--accent);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.trade-item.featured {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, var(--bg-card) 100%);
  border-left-color: #f59e0b;
}

.trade-rank {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  min-width: 40px;
  text-align: center;
}

.trade-item.featured .trade-rank {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trade-info {
  flex: 1;
}

.trade-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.insider-name {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trade-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.trade-amount {
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
}

.trade-price {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 表格增强 */
.holdings-table .badge.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.holdings-table .badge.ceo {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.holdings-table .badge.cfo {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.holdings-table .value {
  font-weight: 700;
  color: var(--text-primary);
}

.holdings-table .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.holdings-table .potential {
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
}

.holdings-table td.neutral {
  color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .market-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .signal-cards {
    grid-template-columns: 1fr;
  }
  
  .trade-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .trade-rank {
    font-size: 24px;
  }
  
  .trade-details {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .market-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 28px;
  }
  
  .holdings-table {
    font-size: 12px;
  }
  
  .holdings-table th,
  .holdings-table td {
    padding: 10px 8px;
  }
}

/* AI择时页面 - 紧凑三栏布局 */
.compact-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.overview-column {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.section-title-compact {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* 市场动态紧凑样式 */
.compact-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact-stat-item {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.compact-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compact-stat-half {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.compact-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.compact-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
}

.compact-stat-value-sm {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.compact-stat-trend {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.compact-stat-trend.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.compact-stat-detail {
  font-size: 11px;
  color: var(--text-muted);
}

/* 信号紧凑样式 */
.compact-signals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-signal-item {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.compact-signal-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.compact-signal-item.hot {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), var(--bg-primary));
}

.signal-stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stock-symbol-compact {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.signal-badge-compact {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-gradient);
  color: white;
}

.signal-badge-compact.cluster {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.signal-price-compact {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.signal-return-compact {
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.signal-return-compact.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.signal-return-compact.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* 热门交易紧凑样式 */
.compact-trades {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-trade-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.compact-trade-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.compact-trade-item.featured {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), var(--bg-primary));
}

.trade-rank-compact {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  min-width: 28px;
  text-align: center;
}

.compact-trade-item.featured .trade-rank-compact {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trade-content-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trade-stock-compact {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.trade-insider-compact {
  font-size: 12px;
  color: var(--text-secondary);
}

.trade-amount-compact {
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
}

.trade-return-compact {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.trade-return-compact.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* 数据方法论样式 */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.methodology-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.methodology-card.full-width {
  grid-column: 1 / -1;
}

.methodology-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* 信号图例 */
.signal-legend {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legend-category h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--bg-primary);
  border-radius: 6px;
  margin-bottom: 8px;
}

.legend-icon {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.legend-icon.buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.legend-icon.sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.legend-icon.grant,
.legend-icon.exercise,
.legend-icon.convert {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.legend-icon.tax,
.legend-icon.gift,
.legend-icon.other {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.legend-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* SEC 表格样式 */
.sec-forms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-item {
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.form-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.form-item.featured {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), var(--bg-primary));
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.form-badge.initial {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.form-badge.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.form-badge.annual {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.form-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 核心概念网格 */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.concept-item {
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.concept-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.concept-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* FAQ - details/summary 样式 */
.faq-row {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}
.faq-row:hover {
  border-color: var(--accent);
}
.faq-row summary {
  padding: 20px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::before {
  content: '💬';
  font-size: 18px;
  margin-right: 12px;
}
.faq-row summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-row[open] summary::after { content: '\2212'; }
.faq-row .faq-body {
  padding: 0 28px 20px 60px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 大师重仓 3列卡片 */
.guru-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.focus-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.focus-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.focus-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.focus-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.focus-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.focus-list li:last-child { border-bottom: none; }
.focus-tk {
  font-weight: 700;
  color: var(--accent);
  min-width: 56px;
}
.focus-name {
  flex: 1;
  color: var(--text-primary);
}
.focus-val {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.focus-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 板块资金流向 */
.sector-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.flow-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.flow-card:hover {
  box-shadow: var(--shadow-md);
}
.flow-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.flow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.flow-list li:last-child { border-bottom: none; }
.flow-sector {
  min-width: 80px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.flow-bar-wrap {
  flex: 1;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 5px;
  overflow: hidden;
}
.flow-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.flow-bar.inflow {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.flow-bar.outflow {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.flow-amount {
  min-width: 80px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}
.inflow-text { color: #10b981; }
.outflow-text { color: #ef4444; }

/* 投资组合更新表格微调 */
.portfolio-update-table td {
  font-size: 13px;
}

@media (max-width: 768px) {
  .guru-focus-grid { grid-template-columns: 1fr; }
  .sector-flow-grid { grid-template-columns: 1fr; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .compact-overview-grid {
    grid-template-columns: 1fr;
  }
  
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  
  .concept-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .compact-stat-row {
    grid-template-columns: 1fr;
  }
  
  .section-title-compact {
    font-size: 16px;
  }
  
  .compact-stat-value {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .overview-column {
    padding: 16px;
  }
  
  .compact-trade-item {
    flex-direction: column;
  }
  
  .trade-rank-compact {
    font-size: 18px;
  }
}
