/* 暗色主题样式 */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e8e8e8 !important;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* 确保所有文字都是白色，并调整字体大小 */
body, .card-body, .card-text, p, h1, h2, h3, h4, h5, h6 {
  color: #e8e8e8 !important;
}

/* 针对Bootstrap的text-muted类，在暗色主题下显示为浅灰色 */
.text-muted,
small.text-muted,
.text-muted small {
  color: #e7e3e3 !important;
}

/* 文章内容字体优化 */
.card-text {
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif !important;
}

/* 标题字体优化 */
.card-title, h1, h2, h3 {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* 导航和按钮字体 */
.navbar, .btn, .nav-link {
  font-size: 16px !important;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif !important;
}

.navbar {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
}

.navbar-brand {
  color: #ff6b6b !important;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.nav-link {
  color: #e8e8e8 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ff6b6b !important;
}

.card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.card-title a {
  color: #ff6b6b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: #ff8e8e;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.visitor-counter {
  position: fixed;
  top: 90px;
  right: 20px;
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid #333;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-size: 14px;
  z-index: 2;
}

/* 图片样式 */
.post-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 音乐控制按钮样式 */
.music-control-nav {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.music-control-nav:hover {
  background: rgba(255, 107, 107, 0.2);
  transform: scale(1.1);
}

.music-control-nav.playing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 107, 107, 0.5); }
}

/* 主内容区域 */
#mainContent {
  padding-top: 20px;
  min-height: calc(100vh - 80px);
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #ff6b6b;
  font-size: 18px;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 文章详情页样式 */
.article-content {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.article-content .card-title {
  color: #e8e8e8 !important;
}

.article-content h1 {
  color: #e8e8e8 !important;
}

/* 按钮样式 */
.btn-outline-light {
  border-color: #333;
  color: #e8e8e8;
}

.btn-outline-light:hover {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

.btn-outline-light.active {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

.btn-outline-secondary {
  border-color: #333;
  color: #e8e8e8;
}

.btn-outline-secondary:hover {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

/* 广告容器样式 */
.ad-container {
  background: rgba(26, 26, 46, 0.8);
  border: 1px dashed #333;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
}

/* 面包屑样式 */
.breadcrumb {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid #333;
}

.breadcrumb-item a {
  color: #ff6b6b;
}

/* 文章尾段：与「延伸阅读」同系玻璃拟态 + 顶栏强调色，避免与 .card 底色糊成一块 */
.uitg-research-callout {
  margin-top: 2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid #ff6b6b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.uitg-research-callout h2.uitg-research-callout__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #fde68a !important;
  margin: 0 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.uitg-research-callout__p {
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  color: #e2e8f0 !important;
  margin: 0 0 0.75rem !important;
}

.uitg-research-callout__p:last-of-type {
  margin-bottom: 0 !important;
}

/* 覆盖 Bootstrap / 全局 a 色，避免正文区蓝链与暗底冲突 */
.card-body .uitg-research-callout a,
.uitg-research-callout a {
  color: #7dd3fc !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.card-body .uitg-research-callout a:hover,
.uitg-research-callout a:hover {
  color: #bae6fd !important;
}

.uitg-research-callout__sep {
  color: rgba(226, 232, 240, 0.55) !important;
}

