/* ============================================
   新闻中心专属样式 (news.css)
============================================ */

/* 内页 Hero Banner */
.inner-page-hero {
  position: relative;
  background: url('../images/news.webp') no-repeat center center / cover;
  height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 40px;
}
.inner-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,0.88) 0%, rgba(0,40,100,0.45) 55%, rgba(0,0,0,0.15) 100%);
}
.inner-page-hero .container { position: relative; z-index: 2; }
.detail-breadcrumb-bar { background: transparent; border-bottom: none; padding: 0; margin-bottom: 16px; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 0; font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.breadcrumb-list a { color: #fff; transition: color 0.25s; }
.breadcrumb-list a:hover { color: #a4c9ff; }
.breadcrumb-list .sep { margin: 0 8px; opacity: 0.5; color: #fff; font-size: 0.8rem; }
.breadcrumb-list .current { color: #fff; font-weight: 700; }
.hero-title { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: #fff; margin: 0; letter-spacing: 0.02em; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-top: 10px; max-width: 660px; line-height: 1.65; }

/* 新闻子栏目导航 Tab Bar (锚点统一样式) */
.news-tab-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 80px;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.anchor-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  height: 70px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-item {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  background: none;
  border: none;
  outline: none;
  white-space: nowrap;
  padding: 0 8px;
}
.anchor-item:hover, .anchor-item.active {
  color: var(--primary);
}
.anchor-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.anchor-item.active::after {
  width: 100%;
}

/* 新闻主体布局：纯网格结构 (无侧边栏) */
.news-body-section {
  padding: 56px 0 80px;
  background: var(--bg-light);
}

/* 精选置顶新闻 (左图右文白底大卡) */
.news-hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: row;
  margin-bottom: 40px;
  transition: var(--transition);
}
.news-hero-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-hero-card__img {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  background: #eef2fa;
}
.news-hero-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.news-hero-card:hover .news-hero-card__img img { transform: scale(1.04); }
.news-hero-card__content {
  flex: 1;
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.news-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,107,0,0.1); color: var(--accent-orange);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
  margin-bottom: 16px; width: fit-content;
}
.news-hero-card__content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800; color: var(--text-dark); line-height: 1.4;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.news-hero-card:hover .news-hero-card__content h2 {
  color: var(--primary);
}
.news-hero-card__content p {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 24px;
}
.news-hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.news-hero-meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: #888;
}
.btn-news-read {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-light); color: var(--primary);
  border: 1px solid var(--border-light);
  font-size: 0.9rem; font-weight: 700;
  padding: 11px 24px; border-radius: 8px;
  transition: var(--transition); width: fit-content;
}
.btn-news-read:hover { 
  background: var(--primary); color: #fff; 
  border-color: var(--primary); transform: translateY(-2px); 
  box-shadow: 0 6px 16px rgba(0,71,157,0.2); 
}

/* 标准新闻卡片列表 (高级网格排版) */
.news-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,71,157,0.15);
}
.news-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2fa;
  position: relative;
}
.news-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__date-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  z-index: 2;
  border-radius: 0 0 16px 0;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
}
.news-card__date-badge .day {
  display: block; 
  font-size: 1.5rem; 
  font-weight: 800; 
  line-height: 1; 
  margin-bottom: 2px;
  font-family: var(--font-display);
}
.news-card__date-badge .year-month {
  display: block; 
  font-size: 0.75rem; 
  opacity: 0.9;
}
.news-card__body {
  flex: 1; 
  padding: 24px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.news-card__title {
  font-size: 1.15rem; font-weight: 800; color: var(--text-dark);
  line-height: 1.45; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.news-card:hover .news-card__title { color: var(--primary); }
.news-card__summary {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0;
}
.news-card__bottom {
  display: flex; align-items: center; justify-content: flex-start;
  margin-top: auto; 
  padding-top: 20px;
}
.news-read-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.9rem; font-weight: 700; color: var(--primary);
  transition: gap 0.2s;
  white-space: nowrap;
}
.news-read-link:hover { gap: 9px; }
.news-read-link .fa-arrow-right { font-size: 0.8rem; }

/* 分页 */
.news-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 7px; margin-top: 50px; flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #dde2ea;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition); outline: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 10px rgba(0,71,157,0.22); }
.page-btn.prev-next { width: auto; padding: 0 14px; gap: 6px; font-size: 0.85rem; }
.page-ellipsis { color: #bbb; font-size: 0.9rem; line-height: 40px; padding: 0 3px; }

/* 底部扩展模块区 (门户风格双列排版) */
.bottom-widgets-section {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
}
.bottom-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}
.portal-widget-title {
  font-size: 1.15rem; color: var(--text-dark); border-bottom: 2px solid #f0f2f6; 
  padding-bottom: 12px; margin-bottom: 24px; position: relative; font-weight: 600;
}
.portal-widget-title::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 32px; height: 2px; background: var(--primary);
}

/* 推荐新闻列表 (清爽门户风) */
.portal-news-list { display: flex; flex-direction: column; gap: 16px; }
.portal-news-item { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.portal-news-dot { width: 5px; height: 5px; background: #c0c0c0; transition: background 0.3s; flex-shrink: 0; border-radius: 1px; }
.portal-news-item:hover .portal-news-dot { background: var(--primary); }
.portal-news-text { flex: 1; font-size: 0.95rem; color: #444; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.portal-news-item:hover .portal-news-text { color: var(--primary); }
.portal-news-date { font-size: 0.85rem; color: #999; flex-shrink: 0; font-family: var(--font-en); }

/* 推荐产品宫格 (轻盈卡片风) */
.portal-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.portal-prod-card { display: block; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid #f0f2f6; transition: var(--transition); cursor: pointer;}
.portal-prod-card:hover { border-color: rgba(0,71,157,0.2); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-3px); }
.portal-prod-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f8f9fc; transition: transform 0.4s ease; }
.portal-prod-card:hover .portal-prod-img { transform: scale(1.03); }
.portal-prod-info { padding: 12px 10px; text-align: center; }
.portal-prod-name { font-size: 0.95rem; color: #444; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.portal-prod-card:hover .portal-prod-name { color: var(--primary); }

/* 入场动画 */
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* 响应式断点 */
@media (max-width: 1199px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  }
@media (max-width: 991px) {
  .news-hero-card { flex-direction: column; }
  .news-hero-card__img { flex: none; aspect-ratio: 16 / 9; }
  .news-hero-card__content { padding: 36px; }
  .bottom-widgets-grid { gap: 40px; }
}
@media (max-width: 767px) {
  .inner-page-hero { height: auto; padding-top: 96px; padding-bottom: 30px; }
  .hero-title { font-size: 1.8rem; }
  .anchor-nav { justify-content: flex-start; gap: 24px; }
  .news-body-section { padding: 36px 0 60px; }
  
  .news-grid { grid-template-columns: 1fr; }
  .bottom-widgets-grid { grid-template-columns: 1fr; gap: 40px; }
  .portal-prod-grid { grid-template-columns: repeat(2, 1fr); }
  
  .news-hero-card { min-height: auto; }
  .news-hero-card__content { padding: 24px; }
  .news-hero-card__content h2 { font-size: 1.35rem; }
 }
@media (max-width: 480px) {
  .anchor-nav { gap: 16px; }
  .anchor-item { font-size: 0.95rem; }
}

/* ============================================
   新闻详情页专属样式 (news.css 补充)
============================================ */

/* 顶部进度条 */
.reading-progress-line {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(to right, var(--primary), #3a9bdc);
  z-index: 10002; transition: width 0.1s linear;
}

/* 详情页专属较短的 Hero Banner */
.news-detail-hero {
  position: relative;
  background: url('../images/news.webp') no-repeat center center/cover;
  height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 30px;
}
.news-detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,18,54,0.85) 0%, rgba(0,0,0,0.3) 100%);
}
.news-detail-hero .container { position: relative; z-index: 2; }

/* 详情页面包屑 */
.news-detail-hero .breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-bottom: 0; }
.news-detail-hero .breadcrumb-list a { color: rgba(255,255,255,0.9); transition: color .2s; }
.news-detail-hero .breadcrumb-list a:hover { color: #fff; }
.news-detail-hero .breadcrumb-list .sep { margin: 0 7px; opacity: 0.5; font-size: 0.78rem; }
.news-detail-hero .breadcrumb-list .current { color: #fff; font-weight: 500; }

/* 文章内容区域主容器 */
.news-detail-section {
  background: var(--bg-light);
  padding: 60px 0 80px;
}
.article-wrapper {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}

/* 文章头部信息 */
.article-header { padding: 60px 8% 30px; }
.article-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem); 
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0 0 15px;
  text-align: center;
}
.article-meta-wrapper {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; margin-top: 25px; padding-top: 18px;
  border-top: 1px solid #eaeaea; color: #999; font-size: 0.9rem;
}
.article-meta-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.article-font-ctrl { display: flex; align-items: center; }
.article-font-ctrl a { color: #999; margin: 0 4px; text-decoration: none; transition: color 0.3s; cursor: pointer; }
.article-font-ctrl a:hover { color: var(--primary); }

/* 文章 CMS 通用排版 */
.article-body {
  padding: 30px 8% 50px; 
  font-size: 1.08rem;
  line-height: 2.0;
  color: var(--text-dark);
  transition: font-size 0.3s ease; 
}
.article-body h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--text-dark);
  margin: 40px 0 18px; padding-bottom: 12px; border-bottom: 1px solid #eee;
}
.article-body p { margin-bottom: 24px; text-align: justify; }
.article-body img {
  max-width: 100%; height: auto; display: block; margin: 35px auto;
  border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.article-body a {
  color: var(--primary); text-decoration: none;
  border-bottom: 1px solid rgba(0,71,157,0.3); transition: border-color .2s;
}
.article-body a:hover { border-bottom-color: var(--primary); }
.article-body ul, .article-body ol { margin-bottom: 24px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }

/* SEO 引流模块 */
.seo-info-block {
  background: #f8faff; border: 1px solid #eef2f8; border-left: 4px solid var(--primary);
  padding: 20px 25px; border-radius: 0 8px 8px 0; margin-top: 40px;
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.8;
}
.seo-info-block strong { color: var(--text-dark); margin-right: 6px; }
.seo-info-block i { color: var(--primary); margin-right: 4px; }
.seo-info-block a { border-bottom: 1px solid var(--primary); color: var(--primary); font-weight: 500; }
.seo-info-block a:hover { color: var(--primary-dark); }

/* 分享条 */
.share-action-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 40px; padding-top: 25px; border-top: 1px dashed #eee;
}
.share-label { font-size: 0.95rem; color: #888; }
.share-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border: 1px solid #e8eaf0; background: #fff; color: #888; cursor: pointer; outline: none; transition: var(--transition);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.share-btn.wx:hover { background: #07c160; color: #fff; border-color: #07c160; }
.share-btn.wb:hover { background: #e6162d; color: #fff; border-color: #e6162d; }
.share-btn.lk:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 标签与网址 */
.article-tags-wrapper { border-top: 1px solid #f0f2f6; background: #fafbfc; }
.article-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 30px 8% 15px; }
.tag-label { font-size: 0.95rem; color: #888; }
.article-tag {
  font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
  background: #fff; border: 1px solid #e5eaf3; padding: 6px 18px; border-radius: 20px; transition: var(--transition);
}
.article-tag:hover { background: #EEF5FF; border-color: var(--primary); color: var(--primary); }
.article-url { padding: 0 8% 30px; font-size: 0.9rem; color: #999; word-wrap: break-word; }
.article-url a { color: #999; border-bottom: none; transition: color 0.2s; }
.article-url a:hover { color: var(--primary); }

/* 上下篇 */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 35px; }
.article-nav-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 28px 30px; display: flex; align-items: center; gap: 20px; transition: var(--transition); text-decoration: none !important;
}
.article-nav-card:hover { border-color: rgba(0,71,157,0.2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-nav-card.next { flex-direction: row-reverse; text-align: right; }
.nav-arrow {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-light); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; transition: var(--transition);
}
.article-nav-card:hover .nav-arrow { background: var(--primary); color: #fff; }
.nav-direction { font-family: var(--font-en); font-size: 0.85rem; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.nav-title { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.article-nav-card:hover .nav-title { color: var(--primary); }

/* 公共轮播样式 (用于详情页的案例与相关推荐) */
.custom-carousel { position: relative; padding-bottom: 50px; }
.custom-carousel .carousel-inner { padding-top: 10px; padding-bottom: 25px; }
.custom-carousel .carousel-control-prev, .custom-carousel .carousel-control-next { 
  width: 48px; height: 48px; background: #fff; border-radius: 50%; 
  box-shadow: var(--shadow-md); top: 40%; transform: translateY(-50%); 
  opacity: 1; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; 
}
.custom-carousel .carousel-control-prev { left: -24px; }
.custom-carousel .carousel-control-next { right: -24px; }
.custom-carousel .carousel-control-prev-icon, .custom-carousel .carousel-control-next-icon { display: none; }
.custom-carousel .carousel-control-prev::after, .custom-carousel .carousel-control-next::after { 
  font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--primary); font-size: 1.2rem; 
}
.custom-carousel .carousel-control-prev::after { content: '\f053'; margin-right: 3px;}
.custom-carousel .carousel-control-next::after { content: '\f054'; margin-left: 3px;}
.custom-carousel .carousel-indicators { bottom: -20px; }
.custom-carousel .carousel-indicators li { width: 30px; height: 4px; border-radius: 2px; background: var(--primary); opacity: 0.3; margin: 0 4px; }
.custom-carousel .carousel-indicators .active { opacity: 1; width: 48px; }

/* 成功案例模块 (详情页内) */
.cases-block {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); margin-top: 35px;
}
.cases-block-header { padding: 24px 35px; border-bottom: 1px solid #f0f2f6; display: flex; align-items: center; gap: 14px; }
.cases-block-header i { color: var(--primary); font-size: 1.3rem; }
.cases-block-header h3 { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); margin: 0; }
.cases-carousel-wrap { padding: 30px 35px 10px; }
.case-card { 
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); 
  transition: var(--transition); margin: 8px 4px 16px; border: 1px solid var(--border-light);
  display: block; text-decoration: none !important;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-img-wrap { overflow: hidden; height: 220px; }
.case-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover .case-img-wrap img { transform: scale(1.06); }
.case-card-body { padding: 24px; text-align: left;}
.case-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s;}
.case-card:hover .case-card-title { color: var(--primary); }
.case-card-excerpt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0;}

/* 底部扩展模块 (产品、近期、相关推荐) */
.bottom-extensions { margin-top: 70px; border-top: 1px solid #eaedf2; padding-top: 60px; }
.extension-block { margin-bottom: 60px; }
.ext-header { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; }
.ext-header h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin: 0; display: flex; align-items: center; gap: 12px; }
.ext-header h3::before { content: ''; display: inline-block; width: 5px; height: 1.15em; background: var(--primary); border-radius: 3px; }
.ext-more { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.ext-more:hover { color: var(--primary); }

.ext-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ep-card { display: block; background: #fff; border-radius: var(--radius); border: 1px solid var(--border-light); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); text-decoration: none !important; }
.ep-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,71,157,0.2); }
.ep-img-wrap { overflow: hidden; border-bottom: 1px solid #f0f2f6; }
.ep-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ep-card:hover .ep-img { transform: scale(1.08); }
.ep-body { padding: 22px 18px; text-align: center; background: #fff; position: relative; z-index: 2; }
.ep-title { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; transition: color .2s; }
.ep-card:hover .ep-title { color: var(--primary); }
.ep-desc { font-size: 0.9rem; color: var(--text-muted); }

.ext-hot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; background: #fff; padding: 35px 45px; border-radius: var(--radius); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.eh-item { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px dashed #e4e7ed; transition: var(--transition); text-decoration: none !important; width: 100%; box-sizing: border-box; overflow: hidden; }
.ext-hot-grid > a:nth-last-child(-n+2) { border-bottom: none; } 
.eh-item:hover { transform: translateX(6px); }
.eh-item:hover .eh-title { color: var(--primary); }
.eh-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 6px; background: #f0f4fa; color: #888; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; font-family: var(--font-display); }
.eh-num.top { background: var(--primary); color: #fff; }
.eh-title { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.eh-date { font-family: var(--font-display); font-size: 0.9rem; color: #aaa; flex-shrink: 0; margin-left: 10px; white-space: nowrap; } 

.rn-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); margin: 8px 4px 16px; border: 1px solid var(--border-light); display: flex; flex-direction: column; text-decoration: none !important; height: 100%;}
.rn-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,71,157,0.15); }
.rn-card__img { overflow: hidden; flex-shrink: 0; height: 200px; }
.rn-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rn-card:hover .rn-card__img img { transform: scale(1.08); }
.rn-card__body { padding: 22px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.rn-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; width: fit-content; }
.rn-cat.company { background: #eef4ff; color: var(--primary); }
.rn-cat.industry { background: #fff4e8; color: #c46a00; }
.rn-cat.knowledge { background: #e8f8f1; color: #0a8a55; }
.rn-title { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); line-height: 1.5; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.rn-card:hover .rn-title { color: var(--primary); }
.rn-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: #999; }
.rn-read { color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; font-size: 0.88rem; transition: gap .2s; }
.rn-read:hover { gap: 7px; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* 详情页专属移动端适配 */
@media (max-width: 1199px) { 
  .ext-hot-grid { padding: 30px; gap: 0 40px; }
}
@media (max-width: 991px) {
  .ext-products-grid { grid-template-columns: repeat(2, 1fr); }
  .ext-hot-grid { grid-template-columns: 1fr; gap: 0; }
  .ext-hot-grid > a:nth-last-child(2) { border-bottom: 1px dashed #e4e7ed; } 
}
@media (max-width: 767px) {
  .news-detail-hero { height: auto; padding-top: 92px; padding-bottom: 28px; }
  .article-header { padding: 30px 15px 10px; } 
  .article-title { font-size: 1.35rem; text-align: left; }
  .article-meta-wrapper { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 15px; padding-top: 15px; }
  .article-meta-info { gap: 12px; }
  .article-body { padding: 20px 15px; font-size: 1.05rem; } 
  .article-tags { padding: 20px 15px 10px; }
  .article-url { padding: 0 15px 25px; }
  .share-action-bar { margin-top: 20px; padding-top: 20px; justify-content: flex-start; }
  .seo-info-block { padding: 15px; font-size: 0.95rem; margin-top: 30px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-card { padding: 20px; flex-direction: column; text-align: center; gap: 12px; }
  .article-nav-card.next { flex-direction: column; text-align: center; }
  .article-nav-card .nav-arrow { margin-bottom: 5px; }
  .cases-block-header { padding: 15px 20px; }
  .cases-carousel-wrap { padding: 15px 15px 35px; }
  
  /* 修复手机端轮播图箭头溢出 */
  .custom-carousel .carousel-control-prev { left: 0px; top: 35%; width: 36px; height: 36px; }
  .custom-carousel .carousel-control-next { right: 0px; top: 35%; width: 36px; height: 36px; }
  .custom-carousel .carousel-control-prev::after, .custom-carousel .carousel-control-next::after { font-size: 1rem; }
  .custom-carousel .carousel-indicators { bottom: -10px; }
  
  .rn-card { margin: 8px 0 16px; }
  .ext-products-grid { grid-template-columns: 1fr; }
  .ext-hot-grid { padding: 15px; }
  .eh-item { gap: 10px; padding: 15px 0; }
  .eh-num { width: 28px; height: 28px; font-size: 0.9rem; }
  .eh-title { font-size: 0.95rem; }
  .eh-date { font-size: 0.8rem; margin-left: 5px; }
  .eh-year { display: none; }
  .news-detail-section { padding: 20px 0 60px; }
}

/* ============================================
   易优CMS 桥接与 SEO 结构微调样式
============================================ */
.news-pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 50px; flex-wrap: wrap; list-style: none; padding: 0; }
.news-pagination li { display: inline-block; }
.news-pagination li a, .news-pagination li span.current { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 12px; background: #fff; border: 1px solid #dde2ea; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition); text-decoration: none; }
.news-pagination li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 10px rgba(0,71,157,0.22); }
.news-pagination li.active a, .news-pagination li span.current { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 10px rgba(0,71,157,0.22); cursor: default; }
.eyou-nav-item { position: relative; font-size: 1.05rem; font-weight: 600; color: var(--text-muted); cursor: pointer; height: 100%; display: flex; align-items: center; transition: color 0.3s; background: none; border: none; outline: none; white-space: nowrap; padding: 0 8px; text-decoration: none; }
.eyou-nav-item:hover, .eyou-nav-item.active { color: var(--primary); text-decoration: none; }
.eyou-nav-item::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--primary); transition: width 0.3s ease; }
.eyou-nav-item.active::after { width: 100%; }
.portal-news-list { display: flex; flex-direction: column; gap: 16px; }
.portal-news-item-wrap { display: flex; align-items: center; gap: 12px; }
.portal-news-dot { width: 5px; height: 5px; background: #c0c0c0; transition: background 0.3s; flex-shrink: 0; border-radius: 1px; }
.portal-news-link { flex: 1; font-size: 0.95rem; color: #444; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; text-decoration: none; }
.portal-news-link:hover { color: var(--primary); }
.portal-news-item-wrap:hover .portal-news-dot { background: var(--primary); }
.portal-news-date { font-size: 0.85rem; color: #999; flex-shrink: 0; font-family: var(--font-en); }
.portal-prod-card-wrap { display: block; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid #f0f2f6; transition: var(--transition); }
.portal-prod-card-wrap:hover { border-color: rgba(0,71,157,0.2); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-3px); }
.portal-prod-img-link { display: block; overflow: hidden; }
.portal-prod-card-wrap:hover .portal-prod-img { transform: scale(1.03); }
.portal-prod-title-link { color: inherit; text-decoration: none; display: block; transition: color 0.3s; }
.portal-prod-card-wrap:hover .portal-prod-title-link { color: var(--primary); }