:root {
  --primary-color: #012da7;
  --secondary-color: #ff7f00;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #eee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-full {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #e06f00;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
  color: var(--primary-color);
  font-size: 2.4rem;
}

.text-center {
  text-align: center;
}

/* 顶部联系栏样式 */
.top-contact-bar {
  background-color: white;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.company-name {
  font-weight: bold;
  color: var(--primary-color);
}

.contact-details {
  color: #666;
}

/* 页眉样式 */
.site-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: white;
  margin: 0;
  font-size: 2.2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.2rem;
}

.main-nav a:hover {
  color: var(--secondary-color);
}

/* 轮播图样式 */
.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-indicator.active {
  background: white;
}

/* 产品分类样式 */
.product-categories {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: nowrap;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
}

.category-item {
  flex: 0 0 auto;
  min-width: 140px;
  width: auto;
  text-align: center;
  padding: 15px 20px;
  margin: 0;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: white;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.category-item:hover {
  background-color: #012da7;
  color: white;
  border-color: #012da7;
  box-shadow: 0 5px 15px rgba(1, 45, 167, 0.3);
  transform: translateY(-3px);
}

.category-item.active {
  background-color: #012da7;
  color: white;
  border-color: #012da7;
  box-shadow: 0 5px 15px rgba(1, 45, 167, 0.3);
}

.category-item h3 {
  margin: 0;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 产品展示样式 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: white;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image-container {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.product-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.product-title a:hover {
  color: var(--primary-color) !important;
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
}

.product-actions {
  margin-top: auto;
}

.product-actions .btn {
  width: 100%;
  text-align: center;
}

/* 图文混排样式 */
.featured-content {
  margin: 50px 0;
}

.featured-row {
  margin-bottom: 40px;
}

.featured-row:last-child {
  margin-bottom: 0;
}

.featured-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  min-height: 300px;
}

.featured-item.text-left {
  grid-template-columns: 1fr 1fr;
}

.featured-item.image-left {
  grid-template-columns: 1fr 1fr;
}

.featured-image-container {
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.featured-text h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.featured-text p {
  line-height: 1.8;
  font-size: 1.1rem;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.page-item {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 4px;
  background-color: white;
  transition: all 0.3s;
}

.page-item.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-item:hover:not(.active):not(:disabled) {
  background-color: #f5f5f5;
}

.page-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 最新资讯样式 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.news-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.news-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.news-link:hover {
  color: var(--primary-color) !important;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
}

/* 公司介绍样式 */
.company-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin: 50px 0;
  align-items: center;
}

.intro-image {
  width: 100%;
  border-radius: 8px;
}

.intro-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* 一键拨号按钮样式 */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.call-button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.call-button svg {
  width: 24px;
  height: 24px;
}

/* 在小屏幕设备上显示按钮 */
@media (max-width: 768px) {
  .call-button {
    display: flex;
  }
}

/* 在大屏幕设备上隐藏按钮 */
@media (min-width: 769px) {
  .call-button {
    display: none;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-categories {
    flex-direction: column;
  }
  
  .category-item {
    margin: 5px 0;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .carousel {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 5px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .featured-item,
  .featured-item.text-left,
  .featured-item.image-left {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
  }
  
  .featured-item.text-left .featured-text {
    order: 1;
  }
  
  .featured-item.text-left .featured-image-container {
    order: 2;
  }
  
  .featured-image-container {
    height: 250px;
  }
  
  .featured-text {
    padding: 20px;
  }
  
  .company-intro {
    grid-template-columns: 1fr;
  }
  
  .featured-text h3 {
    font-size: 1.3rem;
  }
  
  .featured-text p,
  .intro-content p {
    font-size: 1rem;
  }
}