/* 暗色主题样式 */
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;
}

