
/* ===== News Page ===== */
.news-section{
  position:relative;
}

.news-section + .news-section{
  margin-top:18px;
}

.news-section + .news-section::before{
  content:"";
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  width:min(1180px, calc(100% - 48px));
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(31,107,255,.16), rgba(83,179,255,.22), rgba(31,107,255,.16), transparent);
  box-shadow:0 0 24px rgba(31,107,255,.08);
}

/* 分类 */
.news-filter-wrap{
  text-align:center;
}

.news-filter{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}

.news-filter-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  text-decoration:none;
  font-size:.9rem;
  transition:all .25s ease;
  box-shadow:0 12px 24px -18px rgba(15,23,42,.08);
}

.news-filter-item i{
  font-size:.9rem;
}

.news-filter-item:hover{
  border-color:var(--brand);
  color:var(--brand);
  transform:translateY(-1px);
}

.news-filter-item.is-active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
  box-shadow:0 12px 24px -14px rgba(31,107,255,.45);
}

/* 置顶新闻 */
.news-featured-card{
  position:relative;
  border:1px solid var(--line);
  border-radius:30px;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--accent) 4%, #ffffff) 100%);
  box-shadow:0 18px 44px -34px rgba(15,23,42,.14);
}

.news-featured-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
}

.news-featured-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:stretch;
}

.news-featured-media{
  position:relative;
  min-height:420px;
  background:#eef3fb;
}

.news-featured-media img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
  display:block;
}

.news-featured-badge{
  position:absolute;
  left:22px;
  top:22px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  color:#fff;
  font-size:.86rem;
  background:linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
  box-shadow:0 14px 24px -14px rgba(31,107,255,.45);
}

.news-featured-content{
  padding:34px 34px 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.news-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  color:var(--muted);
  font-size:.92rem;
  margin-bottom:16px;
}

.news-meta span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.news-featured-title{
  font-size:2rem;
  line-height:1.38;
  font-weight:820;
  letter-spacing:-.03em;
  color:var(--ink);
  margin:0 0 16px;
}

.news-featured-desc{
  margin:0;
  color:var(--muted);
  line-height:1.92;
  font-size:1rem;
}

.news-featured-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

/* 新闻列表 */
.news-list-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}

.news-card{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--accent) 4%, #ffffff) 100%);
  box-shadow:0 18px 44px -34px rgba(15,23,42,.14);
  transition:transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.news-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
}

.news-card:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 54px -34px rgba(15,23,42,.20);
  border-color:color-mix(in srgb, var(--brand) 18%, var(--line));
}

/* 新闻卡片图片区域 - 统一高度和占位样式 */
.news-card-media{
  position:relative;
  overflow:hidden;
  height:220px;
  min-height:220px;
  border-bottom:1px solid rgba(230,235,244,.92);
  background:linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #ffffff) 0%, color-mix(in srgb, var(--accent) 85%, #ffffff) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* 默认占位内容（无图片或图片加载失败时显示） */
.news-card-media .media-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  height:100%;
  background:linear-gradient(135deg, var(--soft) 0%, color-mix(in srgb, var(--brand) 8%, #ffffff) 100%);
}

.news-card-media .media-placeholder i{
  font-size:48px;
  color:var(--bs-gray-400);
  opacity:0.65;
}

.news-card-media .media-placeholder span{
  font-size:14px;
  color:var(--muted);
  font-weight:500;
  letter-spacing:.5px;
}

/* 有图片时的样式 */
.news-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
  position:relative;
  z-index:1;
}

.news-card:hover .news-card-media img{
  transform:scale(1.04);
}

/* 图片为空或加载失败时隐藏图片，显示占位 */
.news-card-media img[src=""],
.news-card-media img:not([src]),
.news-card-media img.error{
  display:none;
}

/* 当图片隐藏时，确保占位显示 */
.news-card-media img[src=""] + .media-placeholder,
.news-card-media img:not([src]) + .media-placeholder,
.news-card-media img.error + .media-placeholder{
  display:flex;
}

/* 没有占位元素时，使用伪元素显示占位 */
.news-card-media:not(:has(img))::after,
.news-card-media:has(img[src=""])::after,
.news-card-media:has(img:not([src]))::after{
  content:"";
  font-size:48px;
  opacity:0.35;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-family:"Font Awesome 6 Free", "Inter", sans-serif;
  pointer-events:none;
}

.news-card-media:not(:has(img)) .media-placeholder,
.news-card-media:has(img[src=""]) .media-placeholder,
.news-card-media:has(img:not([src])) .media-placeholder{
  display:flex;
}

.news-card-body{
  padding:22px 22px 24px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.news-card-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.05);
  color:var(--muted);
  font-size:.84rem;
  line-height:1;
  margin-bottom:14px;
  width:max-content;
}

.news-card-title{
  font-size:1.14rem;
  line-height:1.55;
  font-weight:780;
  color:var(--ink);
  margin:0 0 12px;
}

.news-card-desc{
  color:var(--muted);
  line-height:1.82;
  font-size:.95rem;
  margin:0 0 18px;
  flex:1;
}

.news-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
  border-top:1px dashed rgba(220,227,240,.9);
  color:var(--muted);
  font-size:.9rem;
}

.news-card-foot a{
  color:var(--brand);
  font-weight:600;
  text-decoration:none;
  transition:color .2s ease;
}

.news-card-foot a:hover{
  color:var(--brand-dark);
}

/* ===== 空状态样式 - 居中对齐带图标 ===== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 56px;
    color: #94a3b8;
    opacity: 0.7;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.empty-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.empty-actions .btn-primary,
.empty-actions .btn-brand {
    background: linear-gradient(90deg, #1f3a7a 0%, #1f6bff 55%, #53b3ff 100%);
    border: none;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.empty-actions .btn-primary:hover,
.empty-actions .btn-brand:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.empty-actions .btn-outline-primary {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.empty-actions .btn-outline-primary:hover {
    border-color: #1f6bff;
    color: #1f6bff;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .empty-state {
        padding: 50px 20px;
    }
    .empty-icon i {
        font-size: 44px;
    }
    .empty-title {
        font-size: 1.25rem;
    }
    .empty-description {
        font-size: 0.85rem;
    }
    .empty-actions {
        flex-direction: column;
        gap: 12px;
    }
    .empty-actions .btn-primary,
    .empty-actions .btn-outline-primary,
    .empty-actions .btn-brand {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width:1199.98px){
  .news-featured-grid{
    grid-template-columns:1fr;
  }

  .news-list-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .news-featured-media,
  .news-featured-media img{
    min-height:340px;
  }
}

@media (max-width:767.98px){
  .news-list-grid{
    grid-template-columns:1fr;
  }

  .news-featured-content,
  .news-card-body{
    padding:22px;
  }

  .news-featured-title{
    font-size:1.45rem;
  }

  .news-card-foot{
    flex-direction:column;
    align-items:flex-start;
  }

  .section{
    padding:72px 0;
  }
  
  .news-card-media{
    height:200px;
    min-height:200px;
  }
}



 .news-detail-section{
      position:relative;
    }

    .news-detail-section + .news-detail-section{
      margin-top:18px;
    }

    .news-detail-section + .news-detail-section::before{
      content:"";
      position:absolute;
      top:-10px;
      left:50%;
      transform:translateX(-50%);
      width:min(1180px, calc(100% - 48px));
      height:1px;
      background:linear-gradient(90deg, transparent, rgba(31,107,255,.16), rgba(83,179,255,.22), rgba(31,107,255,.16), transparent);
      box-shadow:0 0 24px rgba(31,107,255,.08);
    }

    .news-detail-shell{
      display:grid;
      grid-template-columns:minmax(0, 1fr);
      gap:24px;
    }

    .news-detail-article,
    .news-detail-nav,
    .news-detail-related{
      position:relative;
      border:1px solid var(--line);
      border-radius:30px;
     /* background:linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--accent) 4%, #ffffff) 100%);*/
      box-shadow:0 18px 44px -34px rgba(15,23,42,.14);
      overflow:hidden;
    }

    .news-detail-article::before,
    .news-detail-nav::before,
    .news-detail-related::before{
      content:"";
      position:absolute;
      left:0;
      top:0;
      width:100%;
      height:3px;
      background:linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
    }

    .news-detail-article{
      padding:34px 34px 38px;
    }

    .news-detail-label{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:8px 14px;
      border-radius:999px;
      background:rgba(15,23,42,.05);
      color:var(--muted);
      font-size:.86rem;
      line-height:1;
      margin-bottom:18px;
    }

    .news-detail-title{
      font-size:2.25rem;
      line-height:1.34;
      font-weight:820;
      letter-spacing:-.03em;
      color:var(--ink);
      margin:0 0 18px;
    }

    .news-detail-meta{
      display:flex;
      flex-wrap:wrap;
      gap:10px 18px;
      color:var(--muted);
      font-size:.94rem;
      padding-bottom:22px;
      margin-bottom:26px;
      border-bottom:1px solid rgba(230,235,244,.9);
    }

    .news-detail-meta span{
      display:inline-flex;
      align-items:center;
      gap:8px;
    }

    .news-detail-cover{
      border-radius:24px;
      overflow:hidden;
      border:1px solid rgba(230,235,244,.94);
      margin-bottom:28px;
      background:#eef3fb;
    }

    .news-detail-cover img{
      width:100%;
      height:auto;
      min-height:320px;
      object-fit:cover;
      display:block;
    }

    .news-detail-body{
      color:var(--muted);
      font-size:1rem;
      line-height:1.95;
    }

    .news-detail-body p{
      margin:0 0 18px;
	  font-size:1.0rem
    }

    .news-detail-body h2{
      font-size:1.38rem;
      line-height:1.45;
      font-weight:800;
      color:var(--ink);
      margin:34px 0 16px;
      padding-left:16px;
      position:relative;
    }

    .news-detail-body h2::before{
      content:"";
      position:absolute;
      left:0;
      top:.28em;
      width:5px;
      height:1.15em;
      border-radius:999px;
      background:linear-gradient(180deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
      box-shadow:0 8px 18px -10px rgba(31,107,255,.45);
    }

    .news-detail-body ul{
      margin:0 0 20px;
      padding-left:1.2rem;
    }

    .news-detail-body li{
      margin-bottom:8px;
    }

    .news-detail-quote{
      margin:26px 0;
      padding:22px 24px;
      border-radius:22px;
      border:1px solid rgba(230,235,244,.96);
      background:
        radial-gradient(circle at right top, rgba(31,107,255,.05), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, rgba(246,249,253,.96) 100%);
      color:var(--ink);
    }

    .news-detail-quote p{
      margin:0;
      font-size:1.02rem;
      line-height:1.9;
    }

    .news-detail-tags{
      display:flex;
      flex-wrap:wrap;

      gap:10px;
      padding-top:20px;
      margin-top:30px;
      border-top:1px dashed rgba(220,227,240,.9);
    }

    .news-detail-tags a{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:8px 14px;
      border-radius:999px;
      background:#fff;
      border:1px solid var(--line);
      color:var(--muted);
      text-decoration:none;
      font-size:.88rem;
      transition:all .25s ease;
    }

    .news-detail-tags a:hover{
      color:var(--brand);
      border-color:color-mix(in srgb, var(--brand) 22%, var(--line));
      transform:translateY(-1px);
    }

    .news-detail-nav{
      padding:26px 28px;
    }

    .news-detail-nav-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:18px;
    }

    .news-detail-nav-item{
      display:block;
      text-decoration:none;
      border:1px solid rgba(230,235,244,.94);
      border-radius:22px;
      padding:20px 20px 18px;
      background:rgba(255,255,255,.86);
      transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

    .news-detail-nav-item:hover{
      transform:translateY(-4px);
      border-color:color-mix(in srgb, var(--brand) 22%, var(--line));
      box-shadow:0 18px 34px -26px rgba(15,23,42,.16);
    }

    .news-detail-nav-item small{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-size:.84rem;
      color:var(--muted);
      margin-bottom:10px;
    }

    .news-detail-nav-item h3{
      margin:0;
      color:var(--ink);
      font-size:1rem;
      line-height:1.7;
      font-weight:760;
    }

    .news-detail-nav-item.next{
      text-align:right;
    }

    .news-detail-related{
      padding:30px;
    }

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

    .news-related-card{
      position:relative;
      display:flex;
      flex-direction:column;
      height:100%;
      border:1px solid rgba(230,235,244,.94);
      border-radius:24px;
      overflow:hidden;
      background:#fff;
      text-decoration:none;
      transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

    .news-related-card:hover{
      transform:translateY(-5px);
      border-color:color-mix(in srgb, var(--brand) 20%, var(--line));
      box-shadow:0 20px 38px -28px rgba(15,23,42,.18);
    }

    .news-related-media{
      min-height:190px;
      background:#eef3fb;
      overflow:hidden;
      border-bottom:1px solid rgba(230,235,244,.92);
    }

    .news-related-media img{
      width:100%;
      height:100%;
      min-height:190px;
      object-fit:cover;
      display:block;
      transition:transform .5s ease;
    }

    .news-related-card:hover .news-related-media img{
      transform:scale(1.04);
    }

    .news-related-body{
      padding:20px 20px 22px;
      display:flex;
      flex-direction:column;
      flex:1;
    }

    .news-related-tag{
      display:inline-flex;
      align-items:center;
      gap:7px;
      width:max-content;
      padding:7px 12px;
      border-radius:999px;
      background:rgba(15,23,42,.05);
      color:var(--muted);
      font-size:.82rem;
      line-height:1;
      margin-bottom:14px;
    }

    .news-related-title{
      margin:0 0 12px;
      color:var(--ink);
      font-size:1.04rem;
      line-height:1.65;
      font-weight:760;
    }

    .news-related-date{
      margin-top:auto;
      padding-top:14px;
      border-top:1px dashed rgba(220,227,240,.9);
      color:var(--muted);
      font-size:.88rem;
    }

    @media (max-width:1199.98px){
      .news-related-grid{
        grid-template-columns:repeat(2, 1fr);
      }
    }

    @media (max-width:767.98px){
      .news-detail-article,
      .news-detail-nav,
      .news-detail-related{
        padding:22px;
      }

      .news-detail-title{
        font-size:1.6rem;
      }

      .news-detail-nav-grid,
      .news-related-grid{
        grid-template-columns:1fr;
      }

      .news-detail-nav-item.next{
        text-align:left;
      }

      .news-detail-cover img{
        min-height:220px;
      }

      .section{
        padding:72px 0;
      }
    }
    
    
    
.news-detail-body img {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 10px auto;
}