.news-main {
    max-width: 1400px;
    margin: calc(var(--nav-height)) auto 20px;
    padding: 0 20px;
    flex: 1; /* 撑满剩余空间 */
    transition: margin-top 0.3s ease;
}

/* 默认的 :root 变量 */
@media (min-width: 769px) {
    :root {
      --nav-height: 70px;
      --footer-height: 60px;
    }
  }
  
#news-container {
    display: grid;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 20px auto;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-title {
    margin-bottom: 1.5rem;
}

.news-title-link {
    color: #333;
    text-decoration: none;
}

.news-content {
    line-height: 1.8;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card.open {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #007bff;
    z-index: 1;
}

.card-header h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.card-header p {
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    min-height: 1.5em;
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.news-card.open .card-content {
    max-height: var(--content-height);
}

.content-wrapper {
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 15px;
    color: #444;
    line-height: 1.8;
}

.news-card h3 {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.news-card time {
    text-align: right;
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card .summary {
    line-height: 1.6;
    color: #34495e;
    display: -webkit-box;
    display: -ms-flexbox;
    -webkit-box-orient: vertical;
    -ms-box-orient: vertical;
    -webkit-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 1rem;
}

.news-card.expanded {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.news-card.expanded .full-content {
    min-height: 200px;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    color: #4a5568;
}

@media (max-width: 768px) {
    .news-card {
        padding: 1.2rem;
        /* margin: 0.1rem 0; */
    }
}

@media (max-width: 480px) {
    .news-card {
        flex-direction: column;
    }
    .news-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .news-content {
        width: 100%;
    }
}
.news-navigation {
  margin-top: 2rem;
  flex-direction: column;
  gap: 0.8rem;
  display: flex;
}

.news-nav-btn {
  display: inline-block;
  margin: 0.3rem 0;
}

@media (max-width: 768px) {
  .news-navigation {
    margin-top: 1.5rem;
    gap: 1rem;
  }
  .news-nav-btn {
    width: 100%;
    text-align: center;
  }
}

.nav-btn-wrapper {
  display: block;
  width: 100%;
}
.seo-nav {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(100%) !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.seo-link-list {
  list-style: none;
  padding-left: 0;
}

.seo-link-list a {
  color: inherit;
  text-decoration: none;
}

/* 基础模板样式 - 请勿直接修改此文件 */
/* 新页面使用规范：
   1. 在HTML头部通过 <link rel="stylesheet" href="styles/sample.css"> 引用
   2. 创建新CSS文件（如：about.css）编写页面专属样式
   3. 使用 :where() 选择器避免样式冲突
   4. 遵循 BEM 命名规范扩展类名（如：.contact-main__subtitle）
   5. 媒体查询建议使用 rem 单位：@media (max-width: 48rem)
*/