/* 顶部栏样式 */
.top-bar {
  font-size: 14px;
  background-color: #313131;
}

.contact-info a:hover,
.social-links a:hover {
  opacity: 0.8;
}

/* 导航栏样式 */
.site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #313131;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #313131;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: #000000;
}

/* 多级菜单样式 */
.dropdown-menu {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  color: #313131;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #000000;
}

/* 三级菜单样式 */
.dropdown-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  visibility: hidden;
  opacity: 0;
  margin-top: -1px;
  min-width: 200px;
  transition: all 0.2s;
  background-color: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown-menu .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
}

/* 鼠标悬停或点击时显示子菜单 */
.dropdown-menu li:hover>.dropdown-submenu,
.dropdown-menu li.show>.dropdown-submenu {
  visibility: visible;
  opacity: 1;
}

/* 确保链接可点击 */
.dropdown>a {
  cursor: pointer;
}

/* 移动端菜单样式调整 */
@media (max-width: 991.98px) {
  .dropdown-submenu {
    position: static;
    margin-left: 1rem;
    visibility: visible;
    opacity: 1;
    display: none;
    border: none;
    box-shadow: none;
  }

  .dropdown-menu .dropdown-toggle::after {
    transform: rotate(90deg);
  }

  .dropdown-menu li.show>.dropdown-submenu {
    display: block;
  }
}

.btn-primary {
  padding: 0.5rem 1.5rem;
}

/* 自定义logo样式 */
.custom-logo-link img {
  max-height: 50px;
  width: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .top-bar {
    font-size: 12px;
  }

  .contact-info {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* 页脚样式 */
.site-footer {
  background-color: #f0f0f0 !important;
}

.footer-widget .widget-title {
  color: #000;
}

.footer-links a {
  color: #000;
}

.footer-links a:hover {
  color: #333;
}

.contact-info li {
  color: #000;
}

.social-links a {
  color: #000;
}

.social-links a:hover {
  color: #333;
}

.copyright {
  color: #000;
}

.footer-logo img {
  max-height: 50px;
  filter: brightness(0) invert(0);
}

.company-desc {
  color: #adb5bd;
  line-height: 1.6;
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--bs-primary);
}

.contact-info li {
  color: #adb5bd;
}

.contact-info i {
  color: var(--bs-primary);
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--bs-primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .widget-title {
    margin-top: 1.5rem;
  }

  .footer-widget {
    text-align: center;
  }

  .widget-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info li {
    justify-content: center;
  }
}

/* 幻灯片样式 */
.hero-slider {
  margin-top: 0;
}

.carousel-item {
  height: 400px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
}

/* 产品分类卡片样式 */
.category-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* 关于我们区域样式 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li {
  margin-bottom: 10px;
}

.feature-list i {
  margin-right: 10px;
}

/* 联系表单样式 */
.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.wpcf7-form input[type="submit"] {
  background: #f38002;
  color: #fff;
  border: none;
  padding: 12px 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--bs-primary-dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
  }
}

/* 新增分页样式 */
.pagination-wrapper {
    padding: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.page-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0 15px;
    border-radius: 8px;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-numbers a:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-numbers .current {
    background: #212529;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 576px) {
    .page-numbers {
        gap: 4px;
    }
    .page-numbers a,
    .page-numbers span {
        min-width: 35px;
        height: 35px;
        line-height: 35px;
        padding: 0 12px;
    }
}