:root {
  --primary: #2858a8;
  --primary-dark: #214a92;
  --text: #25364a;
  --muted: #748196;
  --line: #edf1f6;
  --soft: #f5f8fc;
  --page-bg: #eef4f9;
  --footer: #304254;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

main {
  background: var(--page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-inner {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 顶部细导航 */
.top-strip {
  height: 28px;
  color: #626a75;
  background: #f6f6f6;
  border-bottom: 1px solid #e7e7e7;
  font-size: 12px;
}

.top-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}

.top-links {
  display: flex;
  gap: 18px;
}

.top-links a:hover {
  color: var(--primary);
}

/* 站点头部 */
.site-header {
  height: 80px;
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #254a7c;
}

.brand strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand span {
  color: #4d5662;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
}

.search {
  display: flex;
  width: 162px;
  height: 27px;
  border: 1px solid #e0e5ee;
}

.search input {
  width: 128px;
  min-width: 0;
  padding: 0 9px;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 12px;
}

.search button {
  display: grid;
  width: 34px;
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  place-items: center;
}

.search svg {
  width: 14px;
  height: 14px;
}

/* 主导航 */
.main-nav {
  height: 43px;
  color: #fff;
  background: var(--primary);
}

.main-nav__inner {
  display: flex;
  height: 43px;
}

.main-nav a {
  display: grid;
  min-width: 86px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  place-items: center;
  transition: background-color .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--primary-dark);
}

/* Banner */
.hero {
  position: relative;
  height: 412px;
  overflow: hidden;
  background: #173761;
}

.hero-track,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .65s ease, transform 1.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 54px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, .24);
  border: 0;
  cursor: pointer;
  opacity: .7;
  place-items: center;
  transform: translateY(-50%);
  transition: opacity .2s ease, background-color .2s ease;
}

.hero-control:hover,
.hero-control:focus-visible {
  background: rgba(0, 0, 0, .38);
  opacity: 1;
}

.hero-control svg {
  width: 23px;
  height: 23px;
}

.hero-control--prev {
  left: 22px;
}

.hero-control--next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(37, 73, 124, .38);
  border-radius: 50%;
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}

.hero-dots button.is-active {
  width: 24px;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 9px;
}

/* 内页 Banner */
.page-hero {
  display: grid;
  height: 188px;
  color: #fff;
  background: #3678b8;
  place-content: center;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-hero p {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

/* 学校概况内页主体 */
.subpage-wrap {
  background: var(--page-bg);
  border-top: 1px solid #e8eef5;
}

.inner-main {
  display: grid;
  grid-template-columns: 194px 1fr;
  gap: 28px;
  padding: 36px 0 8px;
}

.side-menu {
  align-self: start;
  min-height: 302px;
  background: #fff;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 18px rgba(26, 55, 95, .09);
}

.side-menu h2 {
  height: 44px;
  padding: 0 14px;
  margin: 0;
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  line-height: 44px;
}

.side-menu a {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 43px;
  padding: 0 18px;
  color: #313d4d;
  border-bottom: 1px solid #f0f3f8;
  font-size: 12px;
  transition: color .2s ease, background-color .2s ease;
}

.side-menu a:hover,
.side-menu a.is-current {
  color: var(--primary);
  background: #f8fbff;
}

.side-menu span {
  color: #9ba8b8;
  font-size: 17px;
  line-height: 1;
}

.content-card {
  min-height: 1190px;
  padding: 30px 32px 48px;
  background: #fff;
  box-shadow: 0 3px 18px rgba(21, 43, 78, .08);
}

.about-content-card {
  background: #f4f9ff;
}

.content-card h2 {
  position: relative;
  margin: 0 0 28px;
  color: #26364b;
  font-size: 20px;
  font-weight: 500;
}

.content-card h2::after {
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 44px;
  height: 2px;
  background: #1f5d90;
  content: "";
}

.content-card p {
  margin: 0 0 18px;
  color: #27384b;
  font-size: 13px;
  line-height: 2;
  text-indent: 2em;
}

/* 院系设置 */
.departments-main {
  padding-bottom: 40px;
}

.departments-card {
  min-height: 884px;
  padding-bottom: 30px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 10px;
}

.department-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 292px;
  padding: 28px 18px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 16px rgba(29, 55, 96, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.department-item:hover {
  border-color: #d7e4f2;
  box-shadow: 0 10px 24px rgba(29, 80, 150, .09);
  transform: translateY(-3px);
}

.department-icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 14px;
  color: var(--primary);
  background: #f2f8ff;
  border-radius: 50%;
  place-items: center;
}

.department-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.2;
}

.department-item h3 {
  margin: 0 0 12px;
  color: #1f2f45;
  font-size: 15px;
  font-weight: 800;
}

.department-item p {
  min-height: 48px;
  margin: 0 0 10px;
  color: #657184;
  font-size: 12px;
  line-height: 1.75;
  text-indent: 0;
}

.department-item .department-majors {
  min-height: 78px;
  color: #40516a;
  font-size: 11px;
  line-height: 1.7;
}

.department-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 28px;
  padding: 0 15px;
  color: #1e5778;
  border: 1px solid #1e5778;
  border-radius: 15px;
  font-size: 11px;
  transition: color .2s ease, background-color .2s ease;
}

.department-item a:hover {
  color: #fff;
  background: #1e5778;
}

/* 新闻中心列表页 */
.news-center-main {
  padding-bottom: 34px;
}

.news-list-card {
  min-height: 1088px;
  padding-bottom: 42px;
}

.news-list-page {
  padding-top: 2px;
}

.news-row {
  display: grid;
  grid-template-columns: 181px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #eef1f5;
}

.news-row:first-child {
  padding-top: 0;
}

.news-row img {
  width: 181px;
  height: 112px;
  object-fit: cover;
  border-radius: 1px;
}

.news-row__body h3 {
  margin: 0 0 17px;
  color: #26364b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.news-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 17px;
  color: #8d98a8;
  font-size: 11px;
}

.news-meta span {
  position: relative;
  padding-left: 16px;
}

.news-meta span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border: 1px solid #a5afbd;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.news-row__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #5f6d80;
  font-size: 12px;
  line-height: 1.85;
  text-indent: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 28px;
}

.pager a {
  display: inline-grid;
  min-width: 33px;
  height: 33px;
  padding: 0 12px;
  color: #4f5d70;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 2px;
  font-size: 13px;
  place-items: center;
}

.pager a.is-current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.pager a.is-disabled {
  color: #b7c0cd;
  cursor: default;
}

.overview-figure {
  margin: 36px 0 26px;
}

.overview-figure img {
  width: 100%;
  max-height: 459px;
  object-fit: cover;
  border-radius: 2px;
}

.overview-figure--portrait {
  display: grid;
  justify-items: center;
  padding: 22px 0 0;
  background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%);
  border: 1px solid #edf3fa;
}

.overview-figure--portrait img {
  width: auto;
  max-width: min(438px, 100%);
  max-height: none;
  object-fit: contain;
}

.overview-figure figcaption {
  margin-top: 24px;
  color: #515c6c;
  font-size: 11px;
  text-align: center;
}

/* 通用标题 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  margin: 0;
  color: #244873;
  font-size: 16px;
  font-weight: 800;
}

.section-head h2::before {
  width: 4px;
  height: 25px;
  margin-right: 9px;
  background: var(--primary);
  content: "";
}

.section-head svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.section-head > a {
  color: #929cab;
  font-size: 12px;
}

.section-head > a:hover {
  color: var(--primary);
}

/* 新闻公告 */
.news-layout {
  display: grid;
  grid-template-columns: 565px 285px;
  gap: 30px;
  padding-top: 30px;
}

.lead-news {
  display: grid;
  grid-template-columns: 181px 1fr;
  gap: 16px;
  min-height: 140px;
  padding: 13px 18px 13px 13px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(29, 55, 96, .06);
}

.lead-news img {
  width: 181px;
  height: 119px;
  object-fit: cover;
}

.lead-news h3 {
  margin: 0 0 8px;
  color: #26364b;
  font-size: 15px;
  line-height: 1.35;
}

.lead-news p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #637184;
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.text-list,
.notice-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.text-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 33px;
  border-bottom: 1px solid var(--line);
}

.text-list a {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #39485a;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-list a::before {
  margin-right: 7px;
  color: #1b2f4c;
  content: "›";
  font-size: 18px;
  line-height: 1;
}

.text-list time {
  color: #9aa4b3;
  font-size: 12px;
}

.notice {
  min-height: 394px;
  padding-left: 0;
}

.notice-list {
  padding: 4px 0 14px;
  border-right: 1px solid #edf0f5;
}

.notice-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  margin-bottom: 13px;
}

.notice-list time {
  display: grid;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--primary);
  border-radius: 3px;
  line-height: 1;
  place-items: center;
}

.notice-list b {
  font-size: 16px;
}

.notice-list span {
  margin-top: -6px;
  font-size: 10px;
}

.notice-list strong {
  display: -webkit-box;
  overflow: hidden;
  color: #26364b;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-list em {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #929cab;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 学术讲座 */
.lectures {
  padding-top: 22px;
}

.lecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.lecture-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  min-height: 75px;
  background: #fff;
  border-left: 4px solid var(--primary);
  box-shadow: 0 7px 20px rgba(29, 55, 96, .07);
}

.lecture-card time {
  display: grid;
  align-content: center;
  justify-items: center;
  color: #31577f;
  background: linear-gradient(90deg, #f2f8fc 0%, #fff 100%);
}

.lecture-card b {
  font-size: 21px;
  line-height: 1.1;
}

.lecture-card span {
  color: #6f7c8f;
  font-size: 11px;
}

.lecture-card div {
  padding: 13px 12px 10px;
}

.lecture-card h3 {
  margin: 0 0 4px;
  color: #26364b;
  font-size: 14px;
}

.lecture-card p,
.lecture-card small {
  display: block;
  margin: 0;
  color: #697589;
  font-size: 11px;
}

/* 校训横幅 */
.motto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  margin-top: 44px;
  color: #fff;
  background: linear-gradient(90deg, #2f63b8 0%, #1f4b9a 100%);
  border-radius: 2px;
  box-shadow: 0 2px 7px rgba(37, 82, 154, .25);
}

.motto svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.motto span {
  font-size: 22px;
  font-weight: 800;
}

/* 专题网站与常用服务 */
.service-band {
  margin-top: 32px;
  padding: 36px 0 42px;
  background: #e8f1f8;
}

.service-band h2 {
  margin: 0 0 30px;
  color: #254873;
  font-size: 19px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.service-grid a {
  display: grid;
  height: 74px;
  align-content: center;
  justify-items: center;
  color: var(--primary);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px rgba(40, 88, 168, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(40, 88, 168, .14);
}

.service-grid svg {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
}

.service-grid span {
  color: #293b52;
  font-size: 12px;
  font-weight: 700;
}

/* 校园美景 */
.scenery {
  padding-top: 34px;
  padding-bottom: 30px;
}

.scenery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.scenery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
}

/* 页脚 */
.site-footer {
  min-height: 140px;
  color: #d8e1ec;
  background: var(--footer);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  padding: 30px 0;
}

.footer-brand strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
}

.footer-brand svg {
  width: 32px;
  height: 32px;
  color: #fff;
  vertical-align: middle;
}

.footer-brand p,
.footer-links a,
.footer-links span {
  display: block;
  margin: 8px 0 0;
  color: #d8e1ec;
  font-size: 12px;
}

.footer-links span {
  color: #fff;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.site-footer--full {
  min-height: 238px;
}

.site-footer--full .site-footer__inner {
  grid-template-columns: 1.55fr 1fr .8fr;
  padding: 34px 0 24px;
}

.site-footer--full .footer-brand p {
  margin-top: 9px;
}

.copyright {
  width: min(880px, calc(100% - 32px));
  padding: 14px 0 20px;
  margin: 0 auto;
  color: #d0d9e4;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header,
  .site-header__inner {
    height: auto;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
  }

  .search {
    width: 100%;
  }

  .search input {
    flex: 1;
    width: auto;
  }

  .main-nav {
    height: auto;
  }

  .main-nav__inner {
    height: auto;
    overflow-x: auto;
  }

  .main-nav a {
    min-width: 92px;
    height: 43px;
  }

  .hero {
    height: 300px;
  }

  .hero-control {
    width: 34px;
    height: 48px;
  }

  .news-layout,
  .lecture-grid,
  .department-grid,
  .inner-main,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .notice-list {
    border-right: 0;
  }

  .service-grid,
  .scenery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-card {
    min-height: 0;
  }

  .department-grid {
    gap: 16px;
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .news-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 181 / 112;
  }
}

@media (max-width: 560px) {
  .top-strip {
    height: auto;
  }

  .top-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    height: auto;
    padding: 6px 0;
  }

  .top-links {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .brand strong {
    font-size: 24px;
  }

  .hero {
    height: 220px;
  }

  .hero-control {
    display: none;
  }

  .lead-news {
    grid-template-columns: 1fr;
  }

  .lead-news img {
    width: 100%;
    height: auto;
    aspect-ratio: 181 / 119;
  }

  .text-list time {
    display: none;
  }

  .lecture-card {
    grid-template-columns: 58px 1fr;
  }

  .motto {
    height: auto;
    min-height: 68px;
    padding: 16px;
    text-align: center;
  }

  .motto span {
    font-size: 18px;
  }

  .service-grid,
  .scenery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
