/* css/new-style.css */
@font-face {
  font-family: OPlusSans3;
  src: url("../fonts/OPlusSans3-Medium.ttf");
}
@font-face {
  font-family: OPlusBold;
  src: url("../fonts/OPlusSans3-Bold.ttf");
}
@font-face {
  font-family: DelaSukoGothicOne;
  src: url("../fonts/DelaSukoGothicOne-R.ttf");
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "OPlusSans3", "PingFang SC", sans-serif, Robot, 思源黑体;
  background: #fff;
  color: #333;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}

/* 通用容器 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 273px);
  padding: 0 15px;
}

/* 主内容区域 */
main {
  margin: 0;
  padding: 0;
}

/* 确保页面内容在移动端完全适配 */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 10px;
    max-width: 100%;
  }
  
  html, body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 15px;
    max-width: 100%;
  }
  
  html, body {
    font-size: 13px;
  }
}

/* 下划线悬停效果 */
.underline-on-hover {
  position: relative;
}
.underline-on-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s ease;
}
.underline-on-hover:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* SEO 優化樣式 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 公告和资讯页样式 */
.content-section {
  padding: 100px 0;
  background-color: #fff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #0099ff;
  border-radius: 2px;
}

.announcement-list,
.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.announcement-item,
.news-item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.announcement-item:hover,
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #0099ff;
}

.announcement-image,
.news-image {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
}

.announcement-image img,
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-content,
.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.announcement-title,
.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  list-style-type: disc;
  padding-left: 20px;
}

.announcement-desc,
.news-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.announcement-meta,
.news-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.announcement-tag,
.news-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #0099ff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
}

.announcement-read,
.news-read {
  display: inline-block;
  padding: 4px 12px;
  background-color: #0099ff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
}

.announcement-date,
.news-date {
  font-size: 0.85rem;
  color: #666;
  text-align: right;
}

/* 分页组件样式 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  padding: 20px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #0099ff;
  color: #0099ff;
}

.pagination-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
}

.pagination-number {
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-number:hover:not(.active) {
  background-color: #f5f5f5;
  border-color: #0099ff;
  color: #0099ff;
}

.pagination-number.active {
  background-color: #8a33ff;
  border-color: #8a33ff;
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .announcement-item,
  .news-item {
    flex-direction: column;
    padding: 15px;
  }

  .announcement-image,
  .news-image {
    width: 100%;
    height: 200px;
  }

  .announcement-title,
  .news-title {
    font-size: 1.1rem;
  }

  .announcement-desc,
  .news-desc {
    font-size: 0.9rem;
  }

  .pagination-container {
    margin-top: 30px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .pagination-number {
    width: 35px;
    height: 35px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .announcement-image,
  .news-image {
    height: 160px;
  }

  .announcement-title,
  .news-title {
    font-size: 1rem;
  }

  .announcement-desc,
  .news-desc {
    font-size: 0.85rem;
  }

  .pagination-container {
    margin-top: 20px;
  }

  .pagination-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .pagination-number {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}