/*
Theme Name: My HTML Theme
Author: 自定义
Version: 5.52
Description: 将 HTML 官网转换成 WordPress 主题
*/



/* 导航样式 */
nav {
  font-weight: bold;
  color: black;
}

/* 横幅 */
.banner {
  background: url('https://via.placeholder.com/1500x400') no-repeat center center;
  background-size: cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

/* 通用区块 */
.section {
 
}
.section:nth-child(even) {
  background-color: #f8f9fa;
}

/* 图像类 */
.section-img {
  max-width: 100%;
  height: auto;
}

/* 新闻卡片 */
.custom-news-card {
  width: 280px;
  height: 420px;
  border: 1px solid #eee;
  border-radius: 0 0 2rem 0;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.2s ease;
}
.custom-news-card:hover {
  transform: translateY(-4px);
}
.custom-news-image {
  height: 75%;
  width: 100%;
  object-fit: cover;
}
.custom-news-content {
  height: 25%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.custom-news-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.custom-news-footer {
  display: flex;
  justify-content: flex-end;
}

/* 日期显示 */
.custom-date {
  font-size: 0.85rem;
  color: #666;
  cursor: default;
}

/* 链接指针样式 */
a {
  cursor: pointer;
}

/* 新闻列表布局 */
@media (min-width: 768px) {

  .news-left {
    flex: 1;
  }
  .news-right {
    flex: 2;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 20rem;
  }
}

/* NEWSROOM 样式 */
.newsroom-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}
.newsroom-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.newsroom-subtitle .bold {
  font-weight: 700;
  color: #000;
}
.newsroom-subtitle .light {
  font-weight: 400;
  color: #666;
  margin-left: 0.5rem;
}
.newsroom-line {
  width: 60px;
  height: 2px;
  background-color: #000;
}

/* ========== TUF 模块 ========== */
.tuf-box {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  font-weight: bold;
  font-size: 0.55rem;
  color: white;
  background: linear-gradient(90deg, #007BFF 0%, #00C6FF 70%, #ffffff 100%);
  border-radius: 0.25rem;
  user-select: none;
}

.main-title {
  color: #000;
  font-weight: 700;
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem 0;
}

.summary-text {
  max-width: 600px;
  white-space: normal;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  color: #A58B8D;
  margin-bottom: 1.25rem;
}

.view-more {
  color: #073638;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
}
.view-more:hover {
  color: #0056b3;
}


.news-section {
  display: flex;
  align-items: center;         /* 垂直居中 */
  justify-content: space-between;  /* 左右分布 */
  height: 100%;
}

.custom-image {
  max-width: 70%;   /* 或具体宽度如 280px */
  height: auto;
}
.pagination-wrapper .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}
.pagination-wrapper .current {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
.pagination-wrapper .page-numbers:hover {
  background-color: #e2e6ea;
}

/* 初始透明 */
#mainNavbar {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


#mainNavbar {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1030;

}

#mainNavbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#mainNavbar .nav-link {
  transition: color 0.3s ease;
}

#mainNavbar .btn {
  transition: all 0.3s ease;
}

