/* 微信二维码弹窗样式 */
.wechat-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wechat-qr-modal.show {
    opacity: 1;
    visibility: visible;
}

.wechat-qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.wechat-qr-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    width: 90%;
    padding: 0;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.wechat-qr-modal.show .wechat-qr-content {
    transform: scale(1);
}

.wechat-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.wechat-qr-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.wechat-qr-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wechat-qr-close:hover {
    background: #f5f5f5;
    color: #333;
}

.wechat-qr-body {
    padding: 20px;
    text-align: center;
}

.wechat-qr-body p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.qr-code-container canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-error {
    color: #e74c3c !important;
    font-size: 14px !important;
    margin: 20px 0 !important;
    padding: 15px !important;
    background: #fdf2f2 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 6px !important;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .wechat-qr-content {
        width: 85%;
        margin: 20px;
    }
    
    .wechat-qr-header {
        padding: 15px 15px 10px;
    }
    
    .wechat-qr-header h3 {
        font-size: 16px;
    }
    
    .wechat-qr-body {
        padding: 15px;
    }
    
    .wechat-qr-body p {
        font-size: 13px;
    }
    
    .qr-code-container {
        padding: 8px;
    }
}

/* 新闻中心页面样式 */

/* 局部字体与抗锯齿，仅作用于本页 */
body {
  font-family: "HarmonyOS Sans SC","PingFang SC","MiSans","Noto Sans SC","Source Han Sans SC","Microsoft YaHei",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 新闻分节标题样式 - 应用HarmonyOS Sans字体 */
.news-section-title {
  font-family: 'HarmonyOS Sans', 'M Ying Hei', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
  color: #2A2E2E;
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 200; /* 更为纤细的字体样式 */
  letter-spacing: 0.2px;
  line-height: 1.3;
  text-align: left; /* 居左显示 */
  position: relative;
}

.news-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px 0 0 0; /* 左对齐装饰线 */
}

/* 新闻标题去除加粗 */
.news-title {
  font-weight: 400;
}

/* 公告标题去除加粗 */
.notice-title {
  font-weight: 400;
}

/* 标题样式统一 - 去除全局加粗 */
h1, h2, h3, h4, h5, h6 {
  color: #222222;
  font-weight: 400;
  margin-bottom: 1rem;
}

p {
  color: #555555;
  margin-bottom: 1.5rem;
}

/* 新闻中心页头可读性增强：仅本页生效 */
.header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* 调整logo布局，参考腾讯设计：logo和公司名称同行 */
.header-container {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  position: static;
  left: auto;
  top: auto;
}

.logo a {
  flex-direction: row;
  align-items: center;
}

.logo-img {
  margin-right: 15px;
}

.header .logo-text,
.header .logo-subtitle {
  color: #000000;
  text-shadow: none;
}

.header .logo-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.header .logo-subtitle {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 400;
}

/* 调整导航容器位置，避免与logo重叠 */
.nav-container {
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f6f6f6;
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  padding: 10px 0;
}

.nav-menu {
  justify-content: center;
}

.nav-link {
  color: #222 !important;
}
.nav-link:hover {
  color: #111 !important;
  text-shadow: none;
}
.nav-link.active {
  color: var(--primary-color) !important;
  text-shadow: none;
}
.nav-link.active::after {
  background-color: var(--primary-color) !important;
}

/* 调整获取报价按钮位置，避免遮挡导航 */
.get-quote {
  position: absolute;
  right: 30px;
  top: 15px;
  transform: none;
  background: var(--primary-color);
  color: #fff !important;
  border-color: var(--primary-color);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  letter-spacing: normal;
  padding: 10px 20px;
  border-radius: 4px;
}

.mobile-toggle {
  color: #222;
}

/* 页面横幅 */
.page-banner {
  height: 500px;
  background-image: url('../企业网站页幅底图.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: flex-end; /* 修改为flex-end，使文字垂直移动到页幅底图下端 */
  justify-content: flex-start;
  color: var(--white);
  margin-top: 120px;
  padding-left: 0px; /* 与其他页面保持一致 */
  padding-bottom: 40px; /* 添加底部内边距，确保文字不会紧贴底部 */
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 200;
  font-style: italic;
  letter-spacing: 0.1em;
  text-align: left;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 响应式设计优化 */
@media (max-width: 992px) {
  .page-banner {
    height: 450px;
    padding-left: 60px; /* 与其他页面保持一致 */
    padding-bottom: 40px; /* 保持底部内边距 */
  }
  
  .banner-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 400px;
    padding-left: 40px; /* 与其他页面保持一致 */
    padding-bottom: 40px; /* 保持底部内边距 */
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .page-banner {
    height: 350px;
    padding-left: 20px; /* 与其他页面保持一致 */
    padding-bottom: 40px; /* 保持底部内边距 */
  }
  
  .banner-title {
    font-size: 2rem;
    font-weight: 300;
  }
}

/* 新闻内容 */
.news-content {
  background-color: var(--white);
  padding: 80px 0;
}

.news-section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #000000;
  margin: 15px auto 0;
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.news-image::before {
  display: none;
}

.news-date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.news-content-inner {
  padding: 25px;
}

.news-category {
  display: inline-block;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-gray);
  line-height: 1.4;
}

.news-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 新闻卡片展开状态样式 */
.news-card.expanded {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.news-card.expanded:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* 完整内容样式 */
.news-full-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.news-full-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.news-full-content p:last-child {
  margin-bottom: 0;
}

/* 新闻摘要样式 */
.news-summary {
  display: block;
}

/* 展开动画 */
.news-full-content {
  transition: all 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .news-full-content {
    font-size: 0.95rem;
  }
  
  .news-full-content p {
    line-height: 1.7;
  }
}

/* 公示公告样式 */
.notice-list {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
}

.notice-item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  background-color: rgba(46, 125, 50, 0.02);
  margin: 0 -15px;
  padding: 25px 15px;
  border-radius: 8px;
}

.notice-date {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  background-color: rgba(46, 125, 50, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  text-align: center;
  margin-right: 25px;
  height: fit-content;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 10px;
  line-height: 1.4;
}

.notice-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.notice-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.notice-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .page-banner {
    height: 350px;
    padding-left: 60px;
  }
  
  .banner-title {
    font-size: 3rem;
  }
  
  .news-content {
    padding: 60px 0;
  }
  
  .news-section {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 320px;
    padding-left: 40px;
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .notice-item {
    flex-direction: column;
  }
  
  .notice-date {
    width: auto;
    margin-right: 0;
    margin-bottom: 15px;
    align-self: flex-start;
  }
}

/* 新闻详情模态框样式 */
.news-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.9);
  }
  to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
  }
}

.modal-header {
  padding: 25px 30px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(to right, #ffffff, #f9f9f9);
}

.modal-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.modal-category {
  display: inline-block;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-date {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.modal-title {
  margin: 0;
  font-size: 1.8rem;
  color: #222;
  font-weight: 600;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f5f5;
  border: none;
  font-size: 1.4rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
}

.modal-close:hover {
  color: #fff;
  background-color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 125, 50, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(46, 125, 50, 0.3);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(46, 125, 50, 0.5);
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.modal-image:hover {
  transform: scale(1.05);
}

.modal-text {
  padding: 25px 30px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
  font-size: 1.05rem;
}

.modal-text p {
  margin-bottom: 1.5rem;
}

.modal-text h4 {
  font-size: 1.3rem;
  margin: 30px 0 20px 0;
  color: #333;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.modal-text h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  height: calc(100% - 10px);
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.modal-text p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 20px 30px 25px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.modal-share {
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-label {
  font-size: 0.9rem;
  color: #666;
  margin-right: 15px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #666;
  margin: 0 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.share-btn i {
  font-size: 1.1rem;
}

/* 公示公告滚屏样式 */
.notice-scroll-container {
  position: relative;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  overflow: hidden;
}

.notice-scroll-wrapper {
  height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 125, 50, 0.3) transparent;
}

.notice-scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

.notice-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.notice-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(46, 125, 50, 0.3);
  border-radius: 4px;
}

.notice-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(46, 125, 50, 0.5);
}

.notice-scroll-content {
  padding-right: 10px;
}

/* 滚动控制按钮 */
.notice-scroll-controls {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.8);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.scroll-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.scroll-btn:active {
  transform: scale(0.95);
}

.scroll-up {
  transform: rotate(-90deg);
}

.scroll-down {
  transform: rotate(90deg);
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 4px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.scroll-progress {
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: height 0.3s ease;
  height: 30%;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modal-content {
      width: 95%;
      max-height: 90vh;
  }
  
  .modal-header {
      padding: 15px 20px 10px;
  }
  
  .modal-body {
      padding: 0 20px 20px;
  }
  
  .modal-image {
      height: 200px;
  }
  
  .modal-title {
      font-size: 1.3rem;
  }
  
  .modal-text {
      font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .page-banner {
    height: 280px;
    padding-left: 20px;
  }
  
  .banner-title {
    font-size: 2rem;
    font-weight: 300;
  }
  
  .news-content {
    padding: 50px 0;
  }
  
  .news-section {
    margin-bottom: 50px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .news-content-inner {
    padding: 20px;
  }
  
  .notice-list {
    padding: 20px;
  }
  
  .notice-item:hover {
    margin: 0 -10px;
    padding: 25px 10px;
  }
}