/* 自定义样式（在 Bootstrap 之后加载） */
:root {
  --section-title-border: #0d6efd; /* Bootstrap primary */
}

body {
  background-color: #121826;
  color: #CCCCCC;
}

.section-title {
  padding-left: 0.75rem;
  border-left: 4px solid var(--section-title-border);
  margin-bottom: 0.75rem;
}

.figure img {
  object-fit: cover;
}

.content p {
  margin-bottom: 1rem;
}

/* 提升移动端可读性 */
@media (max-width: 576px) {
  body {
    font-size: 16px;
  }
  .display-6 {
    font-size: 1.75rem;
  }
}

/* Header 颜色覆盖：与页面底色一致，并保证文字可读性 */
header.sticky-top {
  background-color: #121826 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

header.sticky-top .display-6,
header.sticky-top h1 {
  color: #ffffff;
}

header.sticky-top #page-subtitle,
header.sticky-top .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* 相关推荐模块样式 */
#related-content .card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

#related-content .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

#related-content .card-body {
  position: relative;
}

/* 减小卡片高度 - 减少内边距 */
#related-content .card-body.p-2 {
  padding: 0.5rem !important;
}

#related-content .card-body.p-3 {
  padding: 0.75rem !important;
}

#related-content .card-body.p-4 {
  padding: 1rem !important;
}

/* 减小标题和文本的间距 */
#related-content .card-title {
  margin-bottom: 0.5rem !important;
  margin-left: 0.5rem !important;
  line-height: 1.2;
}

/* 为ProSignals卡片添加左侧margin */
#related-content .card {
  margin-left: 0.5rem;
}

#related-content .card-text {
  margin-bottom: 0.5rem !important;
  line-height: 1.4;
}

#related-content .btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

#related-content .btn:hover {
  transform: translateX(2px);
}

/* 确保链接可点击 */
#related-content a {
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
  position: relative;
}

#related-content .bg-warning,
#related-content .bg-info {
  color: #1E293B;
}

/* 响应式调整 */
@media (max-width: 768px) {
  #related-content .card-body {
    padding: 1rem !important;
  }
  
  #related-content .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
} 