:root {
  --primary-color: #004f76;
  --secondary-color: #007bff;
  --accent-color: #ff6b6b;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --font-family: '微软雅黑', sans-serif;
  --text-color: #333;
  --background-color: #f8f9fa;
  --footer-bg-color: #2c3e50;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --heading-font-size: 2rem;
  --heading-font-weight: 700;
  --heading-line-height: 1.2;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.6;
  padding-top: 70px;
}

body.home-page {
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: var(--font-family);
  font-size: var(--heading-font-size);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
  margin-bottom: 1rem;
}

.navbar {
  background: var(--footer-bg-color) !important;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(-10deg);
}

.nav-link {
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.carousel-caption h2, .carousel-caption p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.carousel-caption a.btn {
  margin-top: 15px;
}

.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,79,118,0.1);
}

.card-img-top {
  border-radius: 15px 15px 0 0;
  height: 250px;
  object-fit: cover;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 3px solid var(--primary-color);
  margin-top: 1rem;
}

.timeline li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.timeline-year {
  font-weight: bold;
  margin-bottom: 0.25rem;
  display: block;
  color: var(--primary-color);
}

.partners-container {
  display: none; /* 隐藏原有的容器 */
}

.slider-container {
  position: relative;
  overflow: hidden; /* 确保超出部分隐藏 */
  width: 100%; /* 可根据实际情况调整 */
}

.slider-wrapper {
  display: flex;
  transition: transform 0.3s ease; /* 确保过渡效果存在 */
}

.partner-item {
  flex: 0 0 220px;
  margin-right: 20px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.footer {
  background: var(--footer-bg-color);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer a {
  color: #ddd;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
}

.page-header {
  background: var(--background-color);
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 1.8rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }
  .timeline {
    border-left-width: 2px;
  }
}

body.contact-page {
  padding-top: 0;
}

.page-header.contact-header {
  margin-top: 70px;
  padding: 0;
  border-bottom: none;
  position: relative;
}

.page-header.contact-header img {
  display: block;
  margin-top: -70px;
}

.about-preview {
  position: relative;
  overflow: hidden;
}

.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  z-index: 2;
}

.experience-badge h3 {
  font-size: 2.5rem;
  line-height: 1;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.contact-hero {
  background: linear-gradient(135deg, rgba(0,79,118,0.1) 0%, rgba(255,255,255,1) 100%);
  margin-top: 70px;
  padding: 80px 0;
}

.hover-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
}

.hover-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.office-photo {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.office-photo:hover img {
  transform: scale(1.05);
}

.office-photo img {
  transition: transform 0.5s ease;
}

.about-intro {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,248,250,0.95) 100%);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,0.2);
}

.experience-badge h3 {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.experience-badge small {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .experience-badge {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: -20px;
  }
  .experience-badge h3 {
    font-size: 2rem;
  }
}

.products-page {
  padding-top: 90px;
}

.category-sidebar {
  top: 100px;
  margin-left: 1rem;
  border: 1px solid rgba(0,79,118,0.1);
}

.btn-category {
  text-align: left;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.btn-category:hover,
.btn-category.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateX(8px);
}

.product-card {
  border: 1px solid rgba(0,79,118,0.1);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,79,118,0.08);
}

.product-card .card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.card-img-top {
  height: 220px;
  object-fit: contain;
  padding: 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(0,79,118,0.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.btn-detail {
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  padding: 8px;
  transition: opacity 0.3s ease;
}

.btn-detail:hover {
  opacity: 0.9;
}

.btn-quote {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 6px;
  padding: 8px;
  transition: background 0.3s ease;
}

.btn-quote:hover {
  background: rgba(0,79,118,0.1);
}

@media (max-width: 768px) {
  .card-img-top {
    height: 180px;
  }
}

/* 新增优化样式 */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  border-radius: 30px;
  padding-left: 20px;
}

.search-box button {
  border-radius: 30px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background: var(--primary-color);
  color: white;
}

.pagination .page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-link {
  color: var(--primary-color);
  border-radius: 8px;
  margin: 0 3px;
}

/* 产品模块图片优化 */
.products-section .card-img-top {
  height: 280px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
}

.products-section .card:hover .card-img-top {
  transform: scale(1.05);
}

/* 产品模块字体优化 */
.products-section .display-5 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.products-section .lead {
  font-size: 1.1rem;
  color: #555;
}

.products-section .card-title {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.products-section .card-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 重新设计的合作伙伴样式 */
.partners-section {
  padding: 40px 0;
}

.partner-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.partner-img-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.partner-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-card:hover .partner-img {
  filter: grayscale(0);
}

.partner-info {
  padding: 20px;
  text-align: center;
}

.partner-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.partner-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* 提高选择器优先级 */
.slider-container .slider-wrapper {
  display: flex;
  transition: transform 0.3s ease;
}