/* 民大校友门户首页 */
:root {
  --primary: #0b59a9;
  --primary-dark: #094a8f;
  --bg: #ffffff;
  --white: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --border: #e5e5e5;
  --icon-pink: #e88a8c;
  --icon-pink-bg: #fde8e9;
  --width: 1260px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: #0d65be;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.container {
  width: var(--width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 顶栏 ========== */
.site-header {
  height: 120px;
  background: linear-gradient(180deg, rgba(140, 200, 235, 0.55) 0%, rgba(140, 200, 235, 0.18) 55%, rgba(140, 200, 235, 0) 100%);
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-link img {
  width: 350px;
  height: auto;
  max-height: 100%;
  display: block;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  width: 220px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-right: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
}

.search-form input:focus {
  border-color: var(--primary);
}

.search-form button {
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  background:#0d65be;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* ========== 导航 ========== */
.main-nav {
  background: #0d65be;
  background: url(../images/top.png) repeat;
  position: relative;
  z-index: 20;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 17px 8px;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  font-weight: bold;
}

.nav-item > a:hover,
.nav-item.has-dropdown:hover > a {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.nav-item > a.active {
  color: #fff;
  background: transparent;
}

/* 下拉层：260px，左图右列表 */
.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 260px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 100;
  padding: 10px;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  display: flex;
  gap: 10px;
}

.nav-dropdown-img {
  flex: 0 0 110px;
  width: 110px;
  height: 120px;
  overflow: hidden;
  background: #eee;
}

.nav-dropdown-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-dropdown-list {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}

.nav-dropdown-list a {
  display: block;
  padding: 8px 6px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-list li:last-child a {
  border-bottom: none;
}

.nav-dropdown-list a:hover {
  color: var(--primary);
  background: #f5f8fc;
}

/* ========== Banner ========== */
.banner-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(140, 200, 235, 0.45) 0%, rgba(140, 200, 235, 0.12) 50%, rgba(140, 200, 235, 0) 100%);
  padding: 0 0 60px;
  position: relative;
}

.banner {
  position: relative;
  width: 1260px;
  max-width: 100%;
  height: 385px;
  overflow: hidden;
  background: #1a3a5c;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner:hover .banner-arrow {
  opacity: 1;
  visibility: visible;
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.banner-arrow.prev {
  left: 16px;
}

.banner-arrow.next {
  right: 16px;
}

.banner-pager {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.banner-pager button {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}

.banner-pager button.active,
.banner-pager button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ========== 主内容三栏（与 Banner 重叠） ========== */
.main-overlap {
  position: relative;
  z-index: 5;
  margin-top: -100px;
  margin-bottom: 24px;
}

.news-panel {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: grid;
  /* 母校新闻栏缩 60px，通知公告放宽 60px */
  grid-template-columns: 420px minmax(0, 1fr) 340px;
  gap: 0;
  align-items: stretch;
}

.news-pic {
  position: relative;
  width: 420px;
  overflow: hidden;
  background: #fff;
  padding: 25px;
  box-sizing: border-box;
}

.news-pic-slider {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
}

.news-pic-track {
  display: flex;
  width: 100%;
  height: 310px;
  transition: transform 0.4s ease;
}

.news-pic-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 310px;
}

.news-pic-slide img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.news-pic-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.news-pic-slider:hover .news-pic-arrow {
  opacity: 1;
  visibility: visible;
}

.news-pic-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.news-pic-arrow.prev {
  left: 8px;
}

.news-pic-arrow.next {
  right: 8px;
}

.news-pic-caption {
  background: #f0f0f0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--border);
}

.news-pic-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}

.news-pic-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}

.news-pic-dots button.active {
  background: var(--primary);
}

.news-mid {
  padding: 25px 38px 0 20px;
}

.news-side {
  padding: 16px 20px;
}

.news-side {
  background-color: #fff;
  background-image: url(../images/tzggbg.png);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding-top: 25px;
}


.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #000;
}

.section-head .tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
}

.section-head .tabs .sep {
  color: #ccc;
  font-weight: 400;
}

.section-head .tabs a {
  color: #000;
  cursor: pointer;
}

.section-head .tabs a.active,
.section-head .tabs a:hover {
  color:#0d65be;
}

.news-mid .news-panels {
  position: relative;
}

.news-mid .news-list-panel {
  display: none;
}

.news-mid .news-list-panel.active {
  display: block;
}

.more-link {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  border: 1px solid #ccc;
  padding: 2px 8px;
  line-height: 1.5;
}

.more-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.8;
}


.news-list a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list .date {
  flex-shrink: 0;
  color: #999;
  font-size: 12px;
}

/* ========== 中部三列 ========== */
.triple-cols {
  background: var(--white);
  margin-bottom: 28px;
  padding: 8px 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.triple-col {
  padding: 12px 24px;
}

/* ========== 校友视界 ========== */
.vision-section {
  padding: 40px 0 80px 0;
  margin-bottom: 32px;
  background: url(../images/xysjbg.jpg);
}

.block-title {
  text-align: center;
  margin-bottom: 40px;
  line-height: 50px;
  border-bottom: 1px solid #ddd;
}

/* 效果图样式：中间贯通的下划线，标题压在线上 */
.block-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  z-index: 0;
}

.block-title h2 {
  z-index: 1;
  display: inline-block;
  padding: 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  letter-spacing: 4px;
  white-space: nowrap;
  line-height: 1.4;
}

.vision-wrap {
  position: relative;
  padding: 0 40px;
}

.vision-viewport {
  overflow: hidden;
}

.vision-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.vision-card {
  flex: 0 0 calc(25% - 15px);
  background: var(--white);
}

.vision-card a {
  display: block;
}

.vision-card .thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #eee;
}

.vision-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vision-card:hover .thumb img {
  transform: scale(1.05);
}

.vision-card .thumb .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.vision-card .caption {
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

.vision-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: #666;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}

.vision-btn:hover {
  background: rgba(11, 89, 169, 0.75);
  color: #fff;
}

.vision-btn.prev {
  left: 0;
}

.vision-btn.next {
  right: 0;
}

/* ========== 校友服务图标 ========== */
.services-section {
  margin-bottom: 40px;
}

.service-grid {
  flex-wrap: wrap;
  overflow: hidden;
  justify-content: space-between;
  gap: 20px 10px;
  background: var(--white);
}

.service-item {
  width: 12%;
  float: left;
  padding-bottom: 25px;
  min-width: 90px;
  text-align: center;
}

.service-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.service-icon {
  width: 77px;
  height: 77px;
  border-radius: 50%;
  background: var(--icon-pink-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.05);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--icon-pink);
}

.service-item span {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.service-item:hover span {
  color: var(--primary);
}

/* ========== 页脚 ========== */
.site-footer {
  background:#0d65be;
  color: #fff;
  padding: 28px 0 20px;
  font-size: 13px;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #ffd76a;
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-links {
  margin-bottom: 14px;
  line-height: 1.8;
}

.footer-links .label {
  margin-right: 8px;
}

.footer-links a {
  margin-right: 12px;
}

.footer-info p {
  line-height: 1.9;
  opacity: 0.95;
}

.footer-mobile {
  flex-shrink: 0;
  text-align: center;
  padding-top: 8px;
}

.footer-mobile a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.footer-mobile svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
  .container {
    width: 100%;
  }

  .banner {
    width: 100%;
    height: auto;
    aspect-ratio: 1260 / 530;
  }
}

@media (max-width: 992px) {
  .news-panel {
    grid-template-columns: 1fr;
  }

  .news-pic,
  .news-pic-slider,
  .news-pic-track,
  .news-pic-slide,
  .news-pic-slide img {
    width: 100%;
  }

  .news-pic-slider,
  .news-pic-track,
  .news-pic-slide,
  .news-pic-slide img {
    height: 310px;
  }

  .news-pic-arrow {
    opacity: 1;
    visibility: visible;
  }


  .news-mid,
  .news-side {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .triple-cols {
    grid-template-columns: 1fr;
  }

  .triple-col + .triple-col {
    border-top: 1px solid var(--border);
  }

  .vision-card {
    flex: 0 0 calc(50% - 10px);
  }

  .service-item {
    width: 25%;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .nav-item > a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .nav-dropdown {
    left: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .header-inner {
    height: auto;
    min-height: 120px;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .logo-link img {
    width: 260px;
    height: auto;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    flex: 1;
    width: auto;
  }

  .banner-arrow {
    opacity: 1;
    visibility: visible;
  }

  .main-overlap {
    margin-top: -60px;
  }

  .banner-wrap {
    padding-bottom: 40px;
  }

  .vision-card {
    flex: 0 0 100%;
  }

  .service-item {
    width: 33.33%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links a {
    display: inline-block;
    margin: 4px 8px;
  }
}