/* ==================== Open Sans 字体 ==================== */
/* 300 Light */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(./fonts/open-sans-300.ttf) format("truetype");
}

/* 400 Regular */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/open-sans-400.ttf) format("truetype");
}

/* 600 SemiBold */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/open-sans-600.ttf) format("truetype");
}

/* 700 Bold */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/open-sans-700.ttf) format("truetype");
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrapper {
  width: 100%;
  height: 100%;
}
/* 头区 */
header {
  max-width: 1920px;
  margin: 0 auto;
}

.header-bg {
  width: 100%;
  position: relative;
}

.header-bg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 默认显示1920px图片，隐藏其他尺寸 */
.header-bg .img-768 {
  display: none;
}

.header-bg .img-1920 {
  display: block;
}

/* 内容区 */
section {
  max-width: 1290px;
  margin: 0 auto;
  padding: 60px 0;
}

section ul {
  list-style: none;
  padding: 0 15px;
  margin: 0;
}

section li {
  display: flex;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

section li:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.content-imgbox {
  width: 60%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.content-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

section li:hover .content-imgbox img {
  transform: scale(1.05);
}

section li > div:last-child {
  width: 40%;
  padding: 30px;
  padding-top: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: 0 8px 8px 0;
}

section li > div:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
}

section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

section li:hover h3 {
  color: #0056b3;
}

section p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: #666;
  margin: 0;
  transition: color 0.3s ease;
}

section li:hover p {
  color: #495057;
}

/* 分页器 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

#displaypagenum {
  width: 100%;
}

#displaypagenum center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#displaypagenum a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-decoration: none;
}

#displaypagenum a:hover {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

/* #displaypagenum span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #0056b3;
  background: #0056b3;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
} */

/* #displaypagenum span:not(:first-child):not(:last-child) {
  border: none;
  background: transparent;
  color: #495057;
  padding: 10px 8px;
} */

#displaypagenum .current {
  display: inline-block;
  background: #0056b3;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #0056b3;
}



/* ==================== 回到顶部按钮 ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 15%;
  right: 60px;
  width: 50px;
  height: 50px;
  background: #8dbdf1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) rotate(-90deg);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
  z-index: 1000;
  box-shadow:
    0 6px 20px rgba(106, 202, 247, 0.4),
    0 2px 8px rgba(93, 189, 233, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(-90deg);
}

.scroll-to-top:hover {
  background: #0056b3;
  transform: translateY(-5px) rotate(-90deg);
  box-shadow:
    0 8px 28px rgba(106, 202, 247, 0.5),
    0 4px 12px rgba(93, 189, 233, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-2px) rotate(-90deg);
}

.scroll-to-top img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* 尾区样式 */
footer {
  width: 100%;
  padding: 30px 0;
  background: #146698;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-line {
  font-size: 16px;
  color: #fff;
  margin: 0;
}
