:root {
  --blue: #1d4f7a;
  --blue-2: #285f9a;
  --active: #2b63ad;
  --red: #951622;
  --paper: #ffffff;
  --bg: #eef1f6;
  --text: #1d2433;
  --muted: #667085;
  --line: #e7e9ef;
  --shadow: 0 18px 42px rgba(29, 45, 88, 0.1);
  --panel-shadow: 0 18px 42px rgba(21, 38, 69, 0.09);
  --hero-image: url("../img/ocean-hero.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #f4f6fa 0, var(--bg) 360px),
    var(--bg);
  font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  min-width: 1180px;
}

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

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

.wrap {
  width: 1400px;
  margin: 0 auto;
}

.top-line {
  height: 10px;
  background: var(--blue);
}

.site-header {
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -20px;
  width: 540px;
  height: 190px;
  background: var(--hero-image) right center / cover no-repeat;
  opacity: 0.17;
  filter: saturate(0.95);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(29, 80, 162, 0.04));
}

.header-inner {
  position: relative;
  z-index: 1;
  min-height: 218px;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 62px;
  padding: 0 38px;
}

.brand {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 14px;
  align-items: center;
}

.seal {
  width: 72px;
  height: 72px;
  border: 4px solid #2c4b9d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2c4b9d;
  font-weight: 900;
  font-size: 20px;
  box-shadow: inset 0 0 0 5px #f7fbff;
  overflow: hidden;
}

.seal.with-logo {
  border: 0;
  box-shadow: none;
}

.seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-name {
  color: #202b7a;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.school-en {
  color: #202b7a;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 8px;
}

.award-title {
  grid-column: 1 / -1;
  margin-top: 14px;
  font-size: 27px;
  font-weight: 900;
  color: #000;
}

.project-title {
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.subtitle {
  color: #374151;
  font-size: 18px;
  margin-top: 12px;
}

.main-nav {
  background: var(--blue);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 18%, rgba(255, 255, 255, 0.05) 50%, transparent 78%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0 3px, transparent 4px 22px);
  box-shadow: 0 10px 25px rgba(29, 80, 162, 0.12);
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 79px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.menu-item {
  position: relative;
}

.menu-item > a {
  height: 79px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
}

.menu-item.active > a,
.menu-item:hover > a {
  background: var(--active);
}

.sub-menu {
  position: absolute;
  z-index: 50;
  top: 79px;
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  background: #f2f2f2;
  box-shadow: 0 16px 28px rgba(29, 36, 51, 0.12);
}

.menu-item:hover .sub-menu {
  display: block;
}

.sub-menu a {
  display: block;
  min-width: 230px;
  padding: 18px 24px;
  text-align: center;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.sub-menu a:hover {
  background: var(--blue);
  color: #fff;
}

.home-main {
  padding: 50px 0 55px;
}

.home-grid {
  display: grid;
  grid-template-columns: 940px 430px;
  gap: 30px;
}

.section-title {
  height: 64px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, var(--section-color, #1d4f7a), var(--section-deep, #153b61));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 38px;
  color: #fff;
  border-bottom: 2px solid rgba(143, 122, 85, 0.82);
}

.section-title::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--section-accent, #b88a3a);
}

.section-title::after {
  content: none;
}

.section-title h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.section-title a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.section-title a:hover {
  color: #fff;
}

.intro-card,
.home-panel {
  background: #fff;
  border: 1px solid #e6eaf1;
  box-shadow: var(--panel-shadow);
}

.intro-body {
  display: grid;
  grid-template-columns: 377px 1fr;
  gap: 30px;
  padding: 41px 34px 48px 39px;
  min-height: 387px;
}

.intro-media {
  height: 295px;
  background: #dbe2ed;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(29, 45, 88, 0.1);
}

.intro-media img,
.intro-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #000;
  font-size: 17px;
  font-weight: 700;
  line-height: 42px;
  text-indent: 2em;
}

.side-links {
  padding: 16px 24px 34px;
}

.side-links a {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 0 4px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--section-border, #dfe6ef);
  background: #fff;
  color: var(--section-ink, var(--blue));
  font-size: 18px;
  font-weight: 900;
  transition: color 0.2s ease, background 0.2s ease;
}

.side-links a:hover {
  background: var(--section-soft, #f7f9fc);
  color: var(--blue);
}

.side-links b {
  width: 42px;
  height: 30px;
  border-left: 1px solid var(--section-border, #dfe6ef);
  background: transparent;
  display: grid;
  place-items: center;
  color: #6f7d8f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.home-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.panel-links {
  padding: 24px 25px 32px;
  min-height: 300px;
  max-height: 396px;
  overflow: auto;
}

.panel-links a {
  min-height: 64px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--section-border, #dfe6ef);
  background: #fff;
  color: var(--section-ink, var(--blue));
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.panel-links a:hover {
  background: var(--section-soft, #f7f9fc);
  color: var(--blue);
}

.link-icon {
  flex: 0 0 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--section-border, #dfe6ef);
  background: transparent;
  text-align: center;
  color: #6f7d8f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
}

.page-main {
  background: #fff;
  min-height: 680px;
  padding: 25px 10px 60px;
  box-shadow: var(--shadow);
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
}

.sidebar-title {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  background: #0f429b;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.sidebar-list {
  border: 1px solid #e4e4e4;
}

.sidebar-list a {
  display: block;
  min-height: 43px;
  padding: 13px 20px 13px 28px;
  border-bottom: 1px solid #f0e8e8;
  font-size: 15px;
  line-height: 1.35;
}

.sidebar-list a.active,
.sidebar-list a:hover {
  background: #eee;
  color: #0f429b;
  font-weight: 900;
}

.content-head {
  height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #dbdbdb;
}

.content-head h1 {
  margin: 0;
  color: #0f429b;
  font-size: 20px;
  font-weight: 600;
  line-height: 48px;
  border-bottom: 3px solid #cbcbcb;
}

.breadcrumb {
  color: #666;
  font-size: 14px;
  line-height: 46px;
  white-space: nowrap;
}

.list-content {
  padding: 24px 0 10px;
}

.resource-headline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.resource-headline h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 22px;
}

.resource-headline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.primary-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.viewer {
  width: 100%;
  margin: 12px 0 24px;
  background: #f4f6fb;
}

.pdf-viewer,
.video-viewer {
  height: 640px;
}

.pdf-viewer object,
.video-viewer video {
  width: 100%;
  height: 100%;
}

.image-viewer {
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-viewer img {
  max-height: 720px;
  object-fit: contain;
}

.resource-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.resource-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.resource-row.active,
.resource-row:hover {
  background: #f6f8fc;
  color: var(--blue);
  font-weight: 800;
}

.resource-row small {
  color: var(--muted);
  white-space: nowrap;
}

.detail-main {
  background: #fff;
  min-height: 680px;
  padding: 26px 60px 70px;
  box-shadow: var(--shadow);
}

.article {
  max-width: 1120px;
  margin: 0 auto;
}

.article h1 {
  margin: 18px 0 0;
  text-align: center;
  color: #1b1b1b;
  font-size: 22px;
  line-height: 48px;
}

.article-meta {
  margin: 0 0 28px;
  padding: 12px 0;
  border-top: 1px solid #ececec;
  text-align: center;
  color: #787878;
  font-size: 12px;
}

.article-meta span {
  margin: 0 8px;
}

.article-content {
  margin-top: 20px;
}

.article-content p {
  margin: 0 0 16px;
  color: #333;
  font-size: 19px;
  line-height: 1.8;
  text-indent: 2em;
  text-align: justify;
}

.article-action {
  margin: 22px 0;
  text-align: center;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed #d7dce7;
}

.site-footer {
  background: var(--blue);
  padding: 40px 0 43px;
  color: #bbc5dd;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 16px;
  line-height: 32px;
}

@media (max-width: 1180px) {
  body {
    min-width: 0;
  }

  .wrap {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 260px;
  }

  .project-title {
    white-space: normal;
    font-size: 28px;
  }

  .menu {
    height: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-item > a {
    height: 60px;
    font-size: 17px;
  }

  .sub-menu {
    top: 60px;
  }

  .home-grid,
  .home-board,
  .layout,
  .intro-body {
    grid-template-columns: 1fr;
  }
}
