/* 联系我们区域整体样式 */
.contact-section {
  padding: 60px 0;
  background-color: #f9fcff;
  margin-top: 50px;
}

.contact-section h2 {
  text-align: center;
  font-size: 30px;
  color: #222;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.contact-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #2575fc;
}

/* 联系内容容器 - 关键修复：使用flex布局确保并排显示 */
.contact-content {
  display: flex;
  gap: 30px; /* 两列之间的间距 */
  flex-wrap: wrap; /* 小屏幕自动换行 */
}

/* 左侧表单区域 */
.contact-form {
  flex: 1;
  min-width: 300px; /* 确保小屏幕有足够宽度 */
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form h3, .contact-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2575fc;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #2575fc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #1a68e0;
}

/* 右侧联系信息区域 - 关键修复：确保内容垂直排列正确 */
.contact-info {
  flex: 1;
  min-width: 300px; /* 确保小屏幕有足够宽度 */
}

.info-list {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start; /* 图标与文字顶部对齐 */
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-item i {
  flex-shrink: 0; /* 图标不缩小 */
  width: 24px;
  height: 24px;
  margin-right: 15px;
  color: #2575fc;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 图标背景图 */
.icon-phone {
  background-image: url('../img/icons/phone.png');
}

.icon-email {
  background-image: url('../img/icons/email.png');
}

.icon-address {
  background-image: url('../img/icons/address.png');
}

.info-item span {
  color: #666;
  line-height: 1.6; /* 提高行高，增强可读性 */
  word-break: break-word; /* 长地址自动换行 */
}

/* 统计数据区域 - 关键修复：横向均匀排列 */
.stats-box {
  display: flex;
  justify-content: space-between; /* 均匀分布 */
  gap: 15px;
  flex-wrap: wrap; /* 小屏幕自动换行 */
}

.stat-item {
  flex: 1;
  min-width: 120px; /* 确保每个统计项有足够宽度 */
  background-color: #fff;
  padding: 20px 15px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #2575fc;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-text {
  display: block;
  color: #666;
  font-size: 14px;
}

/* 其他原有样式保持不变 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb-link {
  color: #666;
  text-decoration: none;
  display: inline-block;
  margin: 0;
}

.breadcrumb-link:hover {
  color: #2575fc;
  text-decoration: underline;
}

.breadcrumb-divider {
  display: inline-block;
  margin: 0 10px;
  color: #999;
  font-size: 14px;
  line-height: 1;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
  display: inline-block;
  margin: 0;
}

/* 基础文本排版 */
body {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  -webkit-writing-mode: horizontal-tb;
  -moz-writing-mode: horizontal-tb;
  line-height: 1.6;
  letter-spacing: normal;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", sans-serif;
}

p, h1, h2, h3, h4, h5, h6, span, a, li, div {
  writing-mode: horizontal-tb !important;
  text-align: left;
  white-space: normal;
}

/* 新闻详情页布局 */
.news-detail-section {
  padding: 50px 0;
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 新闻标题区域 */
.news-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.news-title {
  font-size: 28px;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.4;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.news-meta {
  color: #999;
  font-size: 14px;
}

.news-meta span {
  display: inline-block;
  margin: 0 10px;
}

/* 图标样式 */
.news-meta i, .icon-prev, .icon-next {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-date {
  background-image: url('../img/icons/date.png');
}

.icon-view {
  background-image: url('../img/icons/view.png');
}

.icon-category {
  background-image: url('../img/icons/category.png');
}

.icon-prev {
  background-image: url('../img/icons/prev.png');
  margin-right: 8px;
}

.icon-next {
  background-image: url('../img/icons/next.png');
  margin-left: 8px;
}

/* 新闻内容区域 */
.news-content {
  font-size: 16px;
  color: #333;
  padding: 30px 0;
  max-width: 800px;
  margin: 0 auto;
  flex-direction: column;
}

.news-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.news-img {
  max-width: 100%;
  height: auto;
  margin: 25px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.news-content h4 {
  font-size: 20px;
  margin: 30px 0 15px;
  color: #2575fc;
}

/* 新闻标签 */
.news-tags {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.news-tags span {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f5f9ff;
  color: #2575fc;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-tags span:hover {
  background-color: #2575fc;
  color: #fff;
}

/* 上下篇导航 */
.news-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 15px;
}

.news-nav a {
  display: flex;
  align-items: center;
  color: #666;
  transition: color 0.3s;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-nav a:hover {
  color: #2575fc;
}

/* 相关新闻 */
.related-news {
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.related-news h3 {
  font-size: 20px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5f9ff;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-item {
  background-color: #f9fcff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.related-img {
  height: 160px;
  overflow: hidden;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.related-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-info h4 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.related-date {
  font-size: 12px;
  color: #999;
  margin-top: auto;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-title {
    font-size: 24px;
  }
  
  .news-content {
    font-size: 15px;
    padding: 20px 0;
  }
  
  .news-nav {
    flex-direction: column;
  }
  
  .news-nav a {
    max-width: 100%;
  }
  
  .related-list {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .news-title {
    font-size: 20px;
  }
  
  .news-detail-section {
    padding: 30px 0;
  }
  
  .news-meta span {
    display: block;
    margin: 5px 0;
  }
  
  .related-img {
    height: 140px;
  }
  
  .breadcrumb {
    font-size: 12px;
  }
  
  .breadcrumb-divider {
    margin: 0 6px;
  }
  
  .stats-box {
    flex-direction: column;
  }
  
  .stat-item {
    margin-bottom: 15px;
  }
  
  .stat-item:last-child {
    margin-bottom: 0;
  }
}