.content {
  padding: 20px 10%;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.content .content-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
}
.content .content-item button {
  margin: 0 30px;
  padding: 10px 30px;
}
.content .content-item button.active {
  background-color: #00a2e8;
  color: white;
}

.content .content-item button:hover:not(.active) {
  background-color: #f0f8ff;
}
.content .hidden {
  display: none;
}
.content ul {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.content ul li {
  width: 20%;
  margin: 1.5%;
}
.news-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.card-image {
  position: relative;
  height: 200px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

.date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #00a2e8;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.day {
  font-size: 1.25rem;
  font-weight: bold;
}

.month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-height: 3.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* 添加标准的 line-clamp 属性 */
  -webkit-box-orient: vertical;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  color: #00a2e8;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #007ab3;
}

.view-count {
  color: #999;
  font-size: 0.875rem;
}
.pagination button {
  padding: 8px 16px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  font-size: 0.95em;
  color: #333;
}
/* 订阅区域 */
.subscribe {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 30px;
}

.subscribe h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.subscribe p {
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
  border-color: #00a2e8;
}

.subscribe-form button {
  padding: 0.75rem 1rem;
  background-color: #00a2e8;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #007ab3;
}

@media screen and (max-width: 768px) and (min-width: 576px) {
  .content {
    flex-direction: column;
  }
  .content ul li {
    width: 45%;
    margin: 1.5%;
  }
}
@media screen and (max-width: 576px) {
  .content {
    flex-direction: column;
  }
  .content ul li {
    width: 100%;
    margin: 1.5%;
  }
}
