/*
Theme Name: 央产房上市服务主题
Theme URI: https://yourdomain.com
Author: 专业团队
Author URI: https://yourdomain.com
Description: 基于Bootstrap 5的央产房上市服务主题，无需任何插件
Version: 1.0.0
License: GPL v2 or later
Text Domain: yangchan
Tags: bootstrap, responsive, 央产房, 房地产
*/

/* 只包含主题信息，样式完全使用Bootstrap原生 */

.current-menu-item {
  font-weight: bold;
}

/* 侧边栏样式优化 */

.widget-area .card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.widget-area .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 列表项悬停效果 */

.list-group-item-action:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
  transition: all 0.2s ease;
}

/* 热门问题前三名特殊样式 */

.widget_popular_posts .list-group-item:nth-child(1) .badge.bg-danger {
  background-color: #dc3545 !important;
}

.widget_popular_posts .list-group-item:nth-child(2) .badge.bg-danger {
  background-color: #fd7e14 !important;
}

.widget_popular_posts .list-group-item:nth-child(3) .badge.bg-danger {
  background-color: #20c997 !important;
}

/* 搜索框样式优化 */

.search-form .input-group {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 联系信息卡片特殊样式 */

.widget_contact .card-body {
  border: 1px solid rgba(13, 110, 253, 0.2);
}

/* 响应式调整 */

@media (max-width: 768px) {
  .widget-area .card-body {
    padding: 1rem;
  }
  .widget-title {
    font-size: 1rem;
  }
  .list-group-item {
    padding: 0.5rem 0;
  }
}

/* 为 WordPress 分页添加 Bootstrap 样式 */

.pagination .page-numbers {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin-left: -1px;
  line-height: 1.5;
  color: #0d6efd;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.pagination .page-numbers.current {
  z-index: 3;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.pagination .page-numbers:hover {
  z-index: 2;
  color: #0a58ca;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pagination .page-numbers:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.pagination .page-numbers:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

/* 确保分页项目正确对齐 */

.pagination .nav-links {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
}
