/*
Theme Name: 半熟火腿的A类主题
Description: 简约图片为主
Version: 1.0
Author: BI8EFI
*/

/* Custom CSS for Amateur Radio Theme */

/* 全局优化 */
html {
  scroll-behavior: smooth;
}

/* 全局文字样式 */
html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  /* 移除padding-top，因为我们希望导航栏与背景图片无缝连接 */
}

body > * {
  flex-shrink: 0;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: #0066cc;
  transition: all 0.3s ease;
}

a:hover {
  color: #0052a3;
  text-decoration: none;
}

a:focus {
  outline: none;
}

button:focus,
input:focus,
textarea:focus {
  outline: 2px dashed #0066cc;
  outline-offset: 2px;
}

/* 优化容器样式 */
.container {
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* 优化行间距 */
.row {
  margin-left: -15px;
  margin-right: -15px;
}

/* 优化列间距 */
[class^="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* 背景图片相关样式 */
.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.bg-image .container {
  position: relative;
  z-index: 2;
}

/* 卡片样式 */
.card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.card.bg-image {
  transition: transform 0.3s ease;
}

.card.bg-image:hover {
  transform: scale(1.02);
}

.jumbotron.bg-image {
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  padding: 4rem 1rem;
  min-height: 450px;
}

.jumbotron.bg-image h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
}

.jumbotron.bg-image p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 850px;
  margin: 0 auto 1.8rem;
}

/* 按钮样式 */
.btn {
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc, #0052a3);
  border-color: #0066cc;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3, #004080);
  border-color: #0052a3;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  border-color: #28a745;
}

.btn-success:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  border-color: #1e7e34;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.btn-outline-primary {
  color: #0066cc;
  border: 2px solid #0066cc;
}

/* 加载更多按钮样式 */
#load-more {
  margin: 2rem auto;
  display: block;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #0066cc, #0052a3);
  border: none;
  border-radius: 50px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

#load-more:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

#load-more:active {
  transform: translateY(-1px);
}

/* 文章项样式 */
.post-item {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.post-title a {
  color: white;
  transition: all 0.3s ease;
}

.post-title a:hover {
  color: #ffcc00;
  text-decoration: none;
  transform: scale(1.05);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .jumbotron.bg-image h1 {
    font-size: 2.5rem;
  }
  
  .jumbotron.bg-image p {
    font-size: 1.1rem;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .jumbotron.bg-image h1 {
    font-size: 2rem;
  }
  
  .jumbotron.bg-image p {
    font-size: 1rem;
  }
  
  .post-title {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: #0066cc;
  border-color: #0066cc;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

/* 文章内容样式 */
.card-title a {
  color: #1a1a1a;
  transition: color 0.3s;
  text-decoration: none;
}

.card-title a:hover {
  color: #0052a3;
}

.card-text {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

/* 文章内页标题样式 */
.single .card-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e9ecef;
  text-align: center;
}

/* 考试日历样式 */
.calendar-navigation {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 25px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-navigation h2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calendar-navigation .btn {
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background-color: rgba(255, 255, 255, 0.9);
  color: #2575fc;
}

.calendar-navigation .btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  background-color: #ffffff;
}

.calendar-navigation .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.calendar-navigation .btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.calendar-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 35px;
}

.calendar-weekdays {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.calendar-day-header {
  width: 14.28%; /* 100% / 7 days */
  padding: 15px 0;
  color: #2575fc;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-days {
  display: flex;
  flex-wrap: wrap;
}

.calendar-day {
  width: 14.28%; /* 100% / 7 days */
  min-height: 90px;
  padding: 8px;
  border: 2px solid #dee2e6;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .calendar-day-header,
  .calendar-day {
    width: 14.28%;
    min-height: 60px;
    padding: 4px;
  }
  
  .calendar-day-header {
    font-size: 1rem;
    padding: 10px 0;
  }
  
  .calendar-day .day-number {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .calendar-day-header,
  .calendar-day {
    width: 14.28%;
    min-height: 50px;
    padding: 2px;
  }
  
  .calendar-day-header {
    font-size: 0.8rem;
    padding: 5px 0;
  }
  
  .calendar-day .day-number {
    font-size: 0.9rem;
  }
}

.calendar-day:hover {
  background-color: #e9ecef;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.calendar-day.has-exam {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffc107;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.calendar-day.has-exam::after {
  content: "•";
  position: absolute;
  top: 2px;
  right: 2px;
  color: #ffc107;
  font-size: 20px;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.calendar-day.today {
  background: linear-gradient(135deg, #cce5ff 0%, #a3d5ff 100%);
  border-color: #007bff;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.calendar-day.today .day-number {
  color: #004085;
}

.calendar-day .day-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: #212529;
}

.calendar-day.empty {
  background-color: #f8f9fa;
  cursor: default;
}

.calendar-day.empty:hover {
  background-color: #f8f9fa;
  transform: none;
  box-shadow: none;
}

/* 倒计时样式 */
.calendar-day .countdown {
  font-size: 10px;
  color: #ffffff;
  margin-top: 2px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 考试列表样式 */
#exam-list {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#exam-list h3 {
  color: #333;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 10px;
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 已移除 .exam-card 样式，不再使用
.exam-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.exam-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.exam-card .card-body {
  padding: 20px;
}

.exam-card .card-title {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.exam-card .card-text {
  color: #444;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.exam-card .btn {
  margin-top: 10px;
}
*/

#exam-list {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#exam-list h3 {
  color: #212529;
  font-weight: 700;
  margin-bottom: 15px;
}

#exam-list .list-group-item {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#exam-list .list-group-item h5 {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.3rem;
}

#exam-list .list-group-item p {
  color: #444;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 加载指示器样式 */
.loading-indicator {
  display: inline-flex;
  align-items: center;
}

.loading-indicator .spinner-border {
  width: 1.2rem;
  height: 1.2rem;
}

/* 文章内页内容样式 */
.single .card-text .entry-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.single .card-text .entry-content p {
  margin-bottom: 1.5rem;
}

.single .card-text .entry-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single .card-text .entry-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* 首页文章列表样式 */
.post-item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  height: 300px; /* 固定高度 */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* 在文章项目上添加一个半透明的黑色遮罩并添加轻微模糊效果 */
.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25); /* 半透明黑色 */
  backdrop-filter: blur(3px); /* 轻微模糊效果 */
  -webkit-backdrop-filter: blur(3px); /* Safari兼容 */
  z-index: 1;
}

.post-item .container-fluid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.post-title {
  z-index: 2;
  font-size: 1.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  font-weight: 800;
  padding: 0 1.2rem;
  position: relative;
}

.post-title a {
  transition: all 0.4s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: #ffdf00 !important;
  transform: scale(1.05);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* 上一篇下一篇导航样式 */
.pagination {
  border-radius: 10px;
}

.page-link {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #0066cc;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
}

.page-link:hover {
  background-color: #e9ecef;
  border-color: #0066cc;
  color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-link.disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 分页导航样式 */
.pagination {
  margin-top: 2.5rem !important;
}

.page-numbers {
  padding: 0.75rem 1.25rem;
  font-size: 1.15rem;
  border-radius: 30px;
  font-weight: 600;
  background-color: #0066cc;
  border: 2px solid #0066cc;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin: 0 0.25rem;
}

.page-numbers:hover {
  background-color: #0052a3;
  border-color: #0052a3;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.page-numbers.current {
  background-color: #0052a3;
  border-color: #0052a3;
  color: #fff;
  cursor: default;
}

.page-numbers.dots {
  background-color: transparent;
  border: none;
  box-shadow: none;
  color: #6c757d;
  cursor: default;
  transform: none;
}

.page-numbers.dots:hover {
  background-color: transparent;
  transform: none;
  box-shadow: none;
}

.page-numbers.prev, .page-numbers.next {
  background-color: #6c757d;
  border-color: #6c757d;
}

.page-numbers.prev:hover, .page-numbers.next:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* 评论模块样式 */
.comments-area {
  margin-top: 2.5rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comments-title {
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #e9ecef;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list ol {
  list-style: none;
}

.comment-list li {
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.comment-list li article {
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  background-color: transparent;
  box-shadow: none;
  transition: none;
}

.comment-list li article:hover {
  box-shadow: none;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e9ecef;
}

.comment-author {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.comment-author a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-author a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.comment-metadata {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: normal;
}

.comment-content {
  margin-top: 0.7rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.comment-content p {
  margin-bottom: 0.7rem;
}

.comment-content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.comment-content a:hover {
  color: #0052a3;
  border-bottom: 1px solid #0066cc;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid #e9ecef;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
  color: #5b4f4e;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  background-color: #f1f3f5;
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
  background-color: #e9ecef;
  color: #5b4f4e;
  border-bottom: 1px solid #5b4f4e;
}

.comment-navigation .nav-previous a:active,
.comment-navigation .nav-next a:active {
  transform: translateY(1px);
}

.comment-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.comment-form .form-group {
  margin-bottom: 1.2rem;
}

.comment-form .form-control {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.comment-form .form-control:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.25rem rgba(0,102,204,0.2);
}

.comment-form .form-control::-webkit-input-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control::-moz-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control:-ms-input-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control::-ms-input-placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .form-control::placeholder {
  color: #6c757d;
  font-style: normal;
}

.comment-form .btn {
  background-color: #0066cc;
  border-color: #0066cc;
  border-radius: 0.5rem;
  padding: 0.7rem 1.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.comment-form .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.comment-form .btn:hover::before {
  transform: translateX(0);
}

.comment-form .btn:hover {
  background-color: #0052a3;
  border-color: #0052a3;
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}

.comment-form .btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(0,102,204,0.2);
  outline: none;
}

/* 固定导航栏样式 */
.navbar.fixed-top {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  background-color: rgba(0, 0, 0, 0.7) !important; /* 使用半透明背景，更好地与背景图片融合 */
  backdrop-filter: blur(10px);
  border: none; /* 移除可能存在的边框 */
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-weight: bold;
  color: #fff !important;
  font-size: 1.5rem;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #0066cc !important;
}

/* 折叠菜单样式 */
.navbar-collapse {
  margin-top: 10px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  margin: 0 0.25rem;
  text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #0066cc !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  color: #0066cc !important;
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-radius: 0.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
  
  .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.75rem 1rem;
  }
}

/* 响应式优化 */
@media (max-width: 768px) {
  .navbar .nav-link {
    margin: 0.25rem 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .jumbotron.bg-image {
    height: 250px !important;
    margin-top: -60px !important;
    padding-top: 60px !important;
  }
  
  .jumbotron.bg-image h1 {
    font-size: 2.5rem;
  }
  
  .jumbotron.bg-image p {
    font-size: 1.1rem;
  }
  
  h1.display-4 {
    font-size: 2.5rem;
  }
  
  body {
    padding-top: 60px; /* 在小屏幕上调整顶部填充 */
  }
  
  /* 评论模块移动端优化 */
  .comments-area {
    padding: 1.2rem;
    margin-top: 1.5rem;
  }
  
  .comments-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .comment-list li {
    margin-bottom: 1.2rem;
    padding: 1rem;
  }
  
  .comment-author {
    font-size: 1rem;
  }
  
  .comment-content {
    font-size: 0.95rem;
  }
  
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .comment-metadata {
    font-size: 0.75rem;
    margin-top: 0.2rem;
  }
  
  .comment-form {
    padding: 1.2rem;
  }
  
  .comment-form .form-control {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }
  
  .comment-form .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* 针对更小屏幕的优化 */
@media (max-width: 576px) {
  .jumbotron.bg-image {
    height: 200px !important;
    padding: 1rem;
  }
  
  .jumbotron.bg-image h1 {
    font-size: 2rem;
  }
  
  .jumbotron.bg-image p {
    font-size: 1rem;
  }
  
  h1.display-4 {
    font-size: 2rem;
  }
  
  body {
    padding-top: 56px;
  }
  
  /* 更小屏幕下评论模块的优化 */
  .comments-area {
    padding: 1rem;
  }
  
  .comments-title {
    font-size: 1.2rem;
  }
  
  .comment-list li {
    margin-bottom: 1rem;
    padding: 0.8rem;
  }
  
  .comment-author {
    font-size: 0.9rem;
  }
  
  .comment-content {
    font-size: 0.9rem;
  }
  
  .comment-meta {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
  }
  
  .comment-metadata {
    font-size: 0.7rem;
  }
  
  .comment-form {
    padding: 1rem;
  }
  
  .comment-form .form-row .col-md-4 {
    margin-bottom: 0.8rem;
  }
  
  .comment-form .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
  }
  
  .comment-form .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

/* 倒计时提醒 */
#countdown-reminder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 35px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#countdown-reminder h4 {
  margin-top: 0;
  color: #007bff;
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
}

.countdown-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.countdown-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
  width: calc(20% - 20px);
  min-width: 150px; /* 减小最小宽度以适应小屏幕 */
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.countdown-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.countdown-card .card-body {
  padding: 20px;
  flex-grow: 1;
}

.countdown-card .card-title {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.countdown-card .card-text {
  color: #444;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.countdown-card .countdown-value {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  background-color: #28a745;
  text-align: center;
  margin-top: auto;
}

.countdown-card .countdown-value.urgent {
  background-color: #dc3545;
}

.countdown-card .countdown-value.today {
  background-color: #ffc107;
  color: #212529;
}

.countdown-card .exam-date {
  color: #6c757d;
  font-size: 0.9em;
  text-align: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e9ecef;
}

@media (max-width: 1200px) {
  .countdown-card {
    width: calc(25% - 20px);
  }
}

@media (max-width: 992px) {
  .countdown-card {
    width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .countdown-card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .countdown-card {
    width: 100%;
  }
}
/* WordPress 区块编辑器样式支持 */

/* 基础区块间距 */
.wp-block {
  margin-bottom: 1.5em;
}

/* 段落区块 */
.wp-block-paragraph {
  margin-bottom: 1.5em;
}

/* 标题区块 */
.wp-block-heading {
  margin-top: 1.5em;
  margin-bottom: 1em;
}

h1.wp-block-heading {
  font-size: 2.5em;
}

h2.wp-block-heading {
  font-size: 2em;
}

h3.wp-block-heading {
  font-size: 1.75em;
}

h4.wp-block-heading {
  font-size: 1.5em;
}

h5.wp-block-heading {
  font-size: 1.25em;
}

h6.wp-block-heading {
  font-size: 1.1em;
}

/* 引用区块 */
.wp-block-quote {
  border-left: 4px solid #007bff;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
}

.wp-block-quote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #6c757d;
}

/* 代码区块 */
.wp-block-code {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1em;
  overflow-x: auto;
  font-size: 0.9em;
}

/* 图片区块 */
.wp-block-image {
  margin: 1.5em 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-image.alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image figcaption {
  font-size: 0.9em;
  color: #6c757d;
  text-align: center;
  margin-top: 0.5em;
}

/* 分隔符区块 */
.wp-block-separator {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 2em auto;
  max-width: 100px;
}

.wp-block-separator.is-style-wide {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.wp-block-separator.is-style-dots {
  border-top: none;
  text-align: center;
  line-height: 1;
  height: auto;
}

.wp-block-separator.is-style-dots::before {
  content: "\00b7 \00b7 \00b7";
  color: #6c757d;
  font-size: 1.5em;
  letter-spacing: 1em;
  padding-left: 1em;
  font-weight: bold;
}

/* 列表区块 */
.wp-block-list {
  margin: 1.5em 0;
  padding-left: 2em;
}

/* 按钮区块 */
.wp-block-button {
  margin: 1em 0;
}

.wp-block-button a {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.wp-block-button a:hover {
  background-color: #0056b3;
}

.wp-block-button.is-style-outline a {
  background-color: transparent;
  border: 2px solid #007bff;
  color: #007bff;
}

.wp-block-button.is-style-outline a:hover {
  background-color: #007bff;
  color: #fff;
}

/* 预格式化文本区块 */
.wp-block-preformatted {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1em;
  overflow-x: auto;
  font-size: 0.9em;
  white-space: pre-wrap;
}

/* 表格区块 */
.wp-block-table {
  margin: 1.5em 0;
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table table {
  width: 100%;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.5em;
  border: 1px solid #e9ecef;
}

.wp-block-table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

/* 封面图片区块 */
.wp-block-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5em 0;
}

.wp-block-cover.alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-cover.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1200px;
  padding: 1em;
  color: #fff;
  text-align: center;
}

.wp-block-cover h2 {
  color: inherit;
}

/* 媒体与文字区块 */
.wp-block-media-text {
  margin: 1.5em 0;
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

.wp-block-media-text .wp-block-media-text__media {
  padding: 0 1em;
}

.wp-block-media-text .wp-block-media-text__content {
  padding: 0 1em;
}

/* 文件区块 */
.wp-block-file {
  margin: 1.5em 0;
}

.wp-block-file a {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.wp-block-file a:hover {
  background-color: #0056b3;
}

.wp-block-file .wp-block-file__button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin-left: 0.5em;
}

.wp-block-file .wp-block-file__button:hover {
  background-color: #0056b3;
}

/* 专栏区块 */
.wp-block-column {
  padding: 0 1em;
}

.wp-block-column:first-child {
  padding-left: 0;
}

.wp-block-column:last-child {
  padding-right: 0;
}

/* 嵌入内容区块 */
.wp-block-embed {
  margin: 1.5em 0;
}

.wp-block-embed iframe {
  width: 100%;
}

/* 社交链接区块 */
.wp-block-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1em 0;
}

.wp-block-social-links .wp-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #007bff;
}

.wp-block-social-links .wp-social-link a {
  color: #fff;
  text-decoration: none;
}

/* 拉伸对齐支持 */
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式支持 */
@media (max-width: 768px) {
  .wp-block-media-text {
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
  }
  
  .wp-block-media-text .wp-block-media-text__media,
  .wp-block-media-text .wp-block-media-text__content {
    padding: 1em 0;
  }
  
  .wp-block-cover {
    min-height: 300px;
  }
  
  h1.wp-block-heading {
    font-size: 2em;
  }
  
  h2.wp-block-heading {
    font-size: 1.75em;
  }
  
  h3.wp-block-heading {
    font-size: 1.5em;
  }
  
  h4.wp-block-heading {
    font-size: 1.25em;
  }
  
  h5.wp-block-heading {
    font-size: 1.1em;
  }
  
  h6.wp-block-heading {
    font-size: 1em;
  }
}

/* 分享按钮样式 */
.share-button-container {
  margin: 2rem 0;
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.share-button-container .btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
  transition: all 0.3s ease;
}

.share-button-container .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

.share-button-container .btn:active {
  transform: translateY(-1px);
}

.share-button-container .btn i {
  transition: transform 0.3s ease;
}

.share-button-container .btn:hover i {
  transform: rotate(30deg);
}