/* 全局样式 */
:root {
  --primary-color: #012da7; /* 克莱因蓝主色调 */
  --secondary-color: #ff7f00; /* 赤橙色配色 */
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.8;
  font-size: 18px;
}

/* 顶部空白区域 */
.top-banner {
  height: 90px;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.top-banner .logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  position: absolute;
  left: 300px;
}

.top-banner .logo-image {
  height: 60px;
  width: auto;
}

.top-banner .logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.top-banner .contact {
  font-size: 20px;
  color: var(--text-color);
  position: absolute;
  right: 500px;
}

/* 页眉样式 */
.header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 36px;
  font-weight: bold;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 16px;
}

.contact-item span:first-child {
  font-size: 14px;
  opacity: 0.8;
}

.contact-item span:last-child {
  font-size: 18px;
  font-weight: bold;
}

/* 导航栏样式 */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  width: 100%;
}

.nav-menu li {
  flex: 1;
}

.nav-menu a {
  display: block;
  padding: 20px 0;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 20px;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* 一键拨号按钮 */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s ease;
}

.call-button:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.call-button i {
  font-style: normal;
  font-weight: bold;
}

/* 轮播图样式 */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 600px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.carousel-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--white);
}

/* 产品分类列表样式 */
.product-categories {
  padding: 50px 0;
  background-color: var(--white);
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.categories-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 32px;
}

.categories-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 0;
}

.category-item {
  min-width: 180px;
  padding: 20px 25px;
  background-color: var(--light-gray);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 20px;
}

.category-item:hover,
.category-item.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 产品展示样式 */
.products-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-size: 36px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 25px;
}

.product-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.product-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
  min-height: 80px;
}

.product-price {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  display: none;
}

.product-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.product-link:hover {
  background-color: var(--secondary-color);
}

/* 副banner样式 */
.sub-banner {
  width: 100%;
  height: 400px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.sub-banner-content {
  text-align: center;
  padding: 0 20px;
}

.banner-main-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
}

.banner-sub-title {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.banner-contact {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
}

/* 图文混排板块样式 */
.content-section {
  padding: 80px 0;
  background-color: var(--white);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-row {
  display: flex;
  margin-bottom: 60px;
  align-items: center;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-image {
  flex: 1;
  padding: 0 30px;
}

.content-image img {
  width: 100%;
  border-radius: 12px;
}

.content-text {
  flex: 1;
  padding: 0 30px;
}

.content-title {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.content-description {
  font-size: 20px;
  line-height: 1.8;
  color: #555;
}

/* 最新资讯板块样式 */
.news-section {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-size: 36px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-item {
  background-color: var(--white);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-title-link {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.news-meta {
  font-size: 16px;
  color: #999;
}

.news-summary {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 15px;
}

.page-item {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
}

.page-item:hover,
.page-item.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
  background-color: #333;
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 300px;
}

.footer-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 20px;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-info {
  border-top: 1px solid #555;
  padding-top: 30px;
  text-align: center;
  font-size: 18px;
  color: #ccc;
}

.footer-info a {
  color: #ccc;
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--secondary-color);
}

/* 轮播图响应式尺寸 */
@media (min-width: 1200px) {
  .carousel-container {
    height: 500px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .carousel-container {
    height: 450px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .carousel-container {
    height: 400px;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .carousel-container {
    height: 350px;
  }
}

@media (max-width: 575px) and (min-width: 400px) {
  .carousel-container {
    height: 300px;
  }
}

@media (max-width: 399px) {
  .carousel-container {
    height: 250px;
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-content {
    padding: 0 15px;
  }
  
  .nav-content ul {
    gap: 30px;
  }
  
  .nav-content a {
    padding: 15px 0;
  }
  
  .categories-list {
    gap: 18px;
  }
  
  .category-item {
    min-width: 170px;
    padding: 18px 22px;
    font-size: 19px;
  }
  
  .banner-main-title {
    font-size: 32px;
  }
  
  .banner-sub-title {
    font-size: 22px;
  }
  
  .banner-contact {
    font-size: 26px;
  }
}

@media (max-width: 992px) {
  .top-banner {
    height: 90px;
  }
  
  .top-banner .logo-text {
    font-size: 20px;
  }
  
  .top-banner .contact {
    font-size: 18px;
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  
  .logo {
    font-size: 28px;
  }
  
  .contact-info {
    flex-direction: row;
    gap: 30px;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  
  .contact-item span:first-child {
    font-size: 14px;
    opacity: 0.8;
  }
  
  .contact-item span:last-child {
    font-size: 18px;
    font-weight: bold;
  }
  
  .nav-content a {
    padding: 18px 0;
    font-size: 18px;
  }
  
  .carousel-container {
    height: 400px;
  }
  
  .sub-banner {
    height: 350px;
  }
  
  .banner-main-title {
    font-size: 28px;
  }
  
  .banner-sub-title {
    font-size: 20px;
  }
  
  .banner-contact {
    font-size: 24px;
  }
  
  .categories-list {
    gap: 15px;
  }
  
  .category-item {
    min-width: 150px;
    padding: 15px 20px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    height: 80px;
  }
  
  .top-banner .logo-text {
    font-size: 18px;
  }
  
  .top-banner .contact {
    font-size: 16px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  
  .contact-item span:first-child {
    font-size: 12px;
    opacity: 0.8;
  }
  
  .contact-item span:last-child {
    font-size: 16px;
    font-weight: bold;
  }
  
  .nav-content {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    z-index: 100;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0;
  }
  
  .nav-menu a {
    padding: 15px;
    display: block;
    font-size: 18px;
  }
  
  .categories-list {
    gap: 12px;
  }
  
  .category-item {
    min-width: 130px;
    padding: 12px 18px;
    font-size: 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 30px;
  }
  
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .page-item {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .sub-banner {
    height: 300px;
  }
  
  .sub-banner-content {
    padding: 0 15px;
  }
  
  .banner-main-title {
    font-size: 24px;
  }
  
  .banner-sub-title {
    font-size: 18px;
  }
  
  .banner-contact {
    font-size: 20px;
  }
  
  .content-row {
    flex-direction: column;
  }
  
  .content-row:nth-child(even) .content-text {
    order: 2;
  }
  
  .content-text,
  .content-image {
    padding: 0 15px;
    margin-bottom: 30px;
  }
  
  .content-title {
    font-size: 28px;
  }
  
  .content-description {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .top-banner {
    height: 80px;
  }
  
  .top-banner .logo-text {
    font-size: 18px;
  }
  
  .top-banner .contact {
    font-size: 16px;
  }
  
  .categories-list {
    gap: 12px;
  }
  
  .category-item {
    min-width: 130px;
    padding: 12px 18px;
    font-size: 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 30px;
  }
  
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .page-item {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .nav-menu a {
    padding: 12px;
    font-size: 16px;
  }
  
  .contact-item span:first-child {
    font-size: 11px;
  }
  
  .contact-item span:last-child {
    font-size: 14px;
  }
  
  .sub-banner {
    height: 250px;
  }
  
  .sub-banner-content {
    padding: 0 15px;
  }
  
  .banner-main-title {
    font-size: 20px;
  }
  
  .banner-sub-title {
    font-size: 16px;
  }
  
  .banner-contact {
    font-size: 18px;
  }
  
  .content-title {
    font-size: 24px;
  }
  
  .content-description {
    font-size: 16px;
  }
  
  .news-title-link {
    font-size: 20px;
  }
  
  .product-name {
    font-size: 22px;
  }
  
  .product-description {
    font-size: 16px;
  }
}

/* 新闻详情页面样式 */
#newsContent p {
  font-size: 20px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

#newsContent strong {
  color: var(--primary-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  #newsContent p {
    font-size: 18px;
  }
  
  .content-text {
    padding: 0 15px;
  }
  
  .content-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  #newsContent p {
    font-size: 16px;
  }
  
  .content-title {
    font-size: 24px;
  }
}
