:root {
  --blue: #1d50a2;
  --blue-hover: #2371f3;
  --red: #951622;
  --cyan: #3eabac;
  --green: #5dbb73;
  --sky: #4bacd3;
  --gold: #ddb93c;
  --bg: #e8e9ed;
  --text: #333;
  --muted: #666;
  --line: #eef0f6;
  --hero-image: url("../img/hb2h-hero.png");
  --page-bg: url("../img/hb2h-hero.png");
  --nav-bg: url("../img/hb2h-nav-bg.jpg");
  --title-bg: url("../img/hb2h-title-bg.png");
  --main-bg: url("../img/hb2h-main-bg.png");
}

* {
  box-sizing: border-box;
}

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

html {
  overflow-x: hidden;
}

body {
  min-width: 1400px;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, "Microsoft YaHei", "SimSun", Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1;
}

body.bg-campus {
  --page-bg: url("../img/hb2h-hero.png");
  --nav-bg: url("../img/hb2h-nav-bg.jpg");
}

body.bg-architecture {
  --page-bg: url("../img/hb2h-hero.png");
  --nav-bg: url("../img/hb2h-nav-bg.jpg");
}

a {
  color: #3b3b3b;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #cb4c4f;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  line-height: 1.75;
}

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

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

.site-header {
  position: relative;
  z-index: 1;
  min-height: 217px;
  background: #fff;
  overflow: hidden;
}

.site-header::after {
  content: none;
}

.site-header::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 510px;
  height: 213px;
  background:
    linear-gradient(135deg, rgba(29, 80, 162, 0.08), rgba(29, 80, 162, 0)),
    repeating-linear-gradient(90deg, rgba(29, 80, 162, 0.1) 0 1px, transparent 1px 22px);
  opacity: 0.55;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  min-height: 207px;
  padding: 46px 0 22px;
  display: grid;
  grid-template-columns: 390px 1fr;
  align-items: center;
}

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

.title-area {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.title-area::before {
  content: "";
  position: absolute;
  inset: 0 0 0 10px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 30%, rgba(255, 255, 255, 0.58) 64%, rgba(255, 255, 255, 0.26) 100%),
    linear-gradient(135deg, rgba(29, 80, 162, 0.14), rgba(255, 255, 255, 0)),
    var(--title-bg) right center / 720px auto no-repeat;
}

.title-area::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 0;
  width: 410px;
  height: 92px;
  background:
    repeating-linear-gradient(90deg, rgba(29, 80, 162, 0.11) 0 1px, transparent 1px 22px),
    linear-gradient(115deg, transparent 0 46%, rgba(29, 80, 162, 0.12) 46.5%, transparent 47.2%);
  opacity: 0.7;
}

.seal {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #234ca1;
  border-radius: 50%;
  color: #234ca1;
  font-size: 22px;
  font-weight: 900;
}

.seal.with-logo {
  border: 0;
  border-radius: 0;
}

.seal.with-logo:not(.wide-logo) {
  width: 76px;
  height: 76px;
}

.seal.wide-logo {
  grid-column: 1 / -1;
  width: 397px;
  height: 81px;
}

.seal.wide-logo + div {
  display: none;
}

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

.school-name {
  color: #1f2f8f;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.school-en {
  margin-top: 7px;
  color: #1f2f8f;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.award-title {
  grid-column: 1 / -1;
  margin-top: 12px;
  margin-left: 5px;
  color: #000;
  font-size: 24px;
  font-weight: 900;
  line-height: 35px;
}

.project-title {
  position: relative;
  z-index: 1;
  margin-left: 62px;
  width: 850px;
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
}

.subtitle {
  position: relative;
  z-index: 1;
  margin: 10px 0 0 62px;
  color: #263b5d;
  font-size: 17px;
  font-weight: 700;
}

.main-nav {
  position: relative;
  isolation: isolate;
  height: 79px;
  background: #0d3e8e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px rgba(14, 47, 103, 0.16);
}

.main-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13, 55, 130, 0.92) 0%, rgba(21, 84, 173, 0.72) 43%, rgba(19, 73, 151, 0.88) 100%),
    var(--nav-bg) center 48% / cover no-repeat;
}

.main-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 18.4%, transparent 19.2% 48%, rgba(255, 255, 255, 0.1) 48.4%, transparent 49.2%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 96px);
  opacity: 0.85;
}

.main-nav .wrap {
  position: relative;
  z-index: 2;
}

.menu {
  height: 79px;
  display: flex;
}

.menu-item {
  position: relative;
  float: left;
  padding: 20.5px 0;
}

.menu-item > a {
  display: inline-block;
  min-width: 157px;
  padding: 0 35px;
  border-right: 1px solid #fff;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 38px;
  text-align: center;
  white-space: nowrap;
}

.menu-item:last-child > a {
  border-right: 0;
}

.menu-item.active,
.menu-item:hover {
  background-color: rgba(35, 113, 243, 0.82);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.35);
}

.sub-menu {
  position: absolute;
  left: 0;
  top: 79px;
  z-index: 100;
  display: none;
  min-width: 100%;
  background: #f1f1f1;
}

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

.sub-menu a {
  display: block;
  height: 50px;
  padding: 0 17px;
  color: #000;
  font-size: 16px;
  line-height: 50px;
  text-align: center;
  white-space: nowrap;
}

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

.home-main {
  position: relative;
  isolation: isolate;
  padding: 50px 0 118px;
  background: var(--bg);
}

.home-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 528px;
  bottom: 0;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(232, 233, 237, 0.9) 0%, rgba(232, 233, 237, 0.68) 30%, rgba(232, 233, 237, 0.38) 100%),
    linear-gradient(90deg, rgba(18, 64, 132, 0.2), transparent 28%, transparent 72%, rgba(18, 64, 132, 0.2)),
    var(--main-bg) center top / cover no-repeat,
    var(--bg);
  pointer-events: none;
}

.home-main::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 528px;
  bottom: 0;
  z-index: 1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(29, 80, 162, 0.1)),
    repeating-linear-gradient(90deg, rgba(29, 80, 162, 0.065) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(29, 80, 162, 0.045) 0 1px, transparent 1px 42px);
  pointer-events: none;
}

.home-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 940px 430px;
  grid-template-rows: 448px;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 30px;
}

.intro-card,
[data-declaration],
[data-declaration] .home-panel {
  height: 100%;
}

.home-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 476px 440px 429px;
  gap: 26px;
}

.intro-card,
.home-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(29, 80, 162, 0.08);
  backdrop-filter: blur(1px);
}

.side-panel {
  display: flex;
  flex-direction: column;
}

.section-title {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--section-color, #3068c3);
}

.section-title h2 {
  margin-left: 39px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 64px;
}

.section-title a {
  margin-right: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 700;
  line-height: 64px;
}

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

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

.intro-media {
  position: relative;
  width: 377px;
  height: 295px;
  display: block;
  overflow: hidden;
  background: #d8dde8;
}

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

.intro-media.video-empty::after {
  content: "成果视频";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(29, 80, 162, 0.78), rgba(149, 22, 34, 0.72)),
    var(--hero-image) center / cover no-repeat;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 8px;
}

.intro-media.video-empty::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(90deg, #fff 0 0) 34px center / 0 0 no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.42;
}

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

.post-declaration .section-title {
  background: var(--cyan);
}

.side-links {
  flex: 1;
  margin: 13px 28px 0;
  min-height: 0;
}

.side-links a {
  position: relative;
  display: block;
  height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
  line-height: 54px;
}

.side-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 0;
  height: 2px;
  background: #cb4c4f;
  transition: width 0.45s ease;
}

.side-links a:hover::before {
  width: 100%;
}

.side-links a:last-child {
  border-bottom: 0;
}

.side-links span {
  display: block;
  margin-right: 53px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-links b {
  position: absolute;
  right: 0;
  top: 50%;
  width: 29px;
  height: 29px;
  margin-top: -14.5px;
  border-radius: 50%;
  background: #3068c3;
  color: #fff;
  font-family: "SimSun", serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 29px;
  text-align: center;
  transform-origin: center;
}

.side-links a:nth-child(2) b {
  background: #3f93ae;
}

.side-links a:nth-child(3) b {
  background: #3fae59;
}

.side-links a:nth-child(4) b {
  background: #ddb93c;
}

.side-links a:nth-child(5) b {
  background: #c257bc;
}

.side-links a:nth-child(6) b {
  background: #c95656;
}

.side-links a:hover b,
.panel-links a:hover .link-icon {
  animation: icon-bounce 0.5s alternate;
}

.home-board .home-panel:nth-child(1) .section-title {
  background: var(--green);
}

.home-board .home-panel:nth-child(2) .section-title {
  background: var(--sky);
}

.home-board .home-panel:nth-child(3) .section-title {
  background: var(--gold);
}

.panel-links {
  min-height: 332px;
  max-height: 332px;
  margin: 23px 27px;
  overflow-y: auto;
}

.panel-links a {
  display: flex;
  align-items: center;
  min-height: 65px;
  margin-bottom: 18px;
  padding-left: 27px;
  background: #f5f5f5;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.panel-links a:hover {
  color: #cb4c4f;
}

.link-icon {
  flex: 0 0 35px;
  width: 35px;
  height: 65px;
  margin-right: 34px;
  display: inline-block;
  background: url("../img/ouc-icons/icon1.png") no-repeat center;
  transform-origin: center;
}

.home-board .home-panel:nth-child(1) .panel-links a:nth-child(1) .link-icon {
  background-image: url("../img/ouc-icons/icon1.png");
}

.home-board .home-panel:nth-child(1) .panel-links a:nth-child(2) .link-icon {
  background-image: url("../img/ouc-icons/icon2.png");
}

.home-board .home-panel:nth-child(1) .panel-links a:nth-child(3) .link-icon {
  background-image: url("../img/ouc-icons/icon3.png");
}

.home-board .home-panel:nth-child(1) .panel-links a:nth-child(4) .link-icon {
  background-image: url("../img/ouc-icons/icon4.png");
}

.home-board .home-panel:nth-child(2) .panel-links a:nth-child(1) .link-icon {
  background-image: url("../img/ouc-icons/ico1.png");
}

.home-board .home-panel:nth-child(2) .panel-links a:nth-child(2) .link-icon {
  background-image: url("../img/ouc-icons/ico2.png");
}

.home-board .home-panel:nth-child(3) .panel-links a:nth-child(1) .link-icon {
  background-image: url("../img/ouc-icons/ico5.png");
}

.home-board .home-panel:nth-child(3) .panel-links a:nth-child(2) .link-icon {
  background-image: url("../img/ouc-icons/ico6.png");
}

.home-board .home-panel:nth-child(3) .panel-links a:nth-child(3) .link-icon {
  background-image: url("../img/ouc-icons/ico7.png");
}

.home-board .home-panel:nth-child(3) .panel-links a:nth-child(4) .link-icon {
  background-image: url("../img/ouc-icons/ico8.png");
}

.home-board .home-panel:nth-child(3) .panel-links a:nth-child(5) .link-icon {
  background-image: url("../img/ouc-icons/ico1.png");
}

.panel-links span:last-child {
  max-width: 310px;
  overflow: hidden;
  line-height: 65px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes icon-bounce {
  0%,
  100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(5deg);
  }

  85% {
    transform: rotate(-5deg);
  }
}

.page-main {
  min-height: 680px;
  margin-top: 25px;
  margin-bottom: 55px;
  padding: 25px 10px 60px;
  background: #fff;
}

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

.sidebar-title {
  height: 50px;
  padding: 0 5px 0 30px;
  background: #0f429b;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 50px;
}

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

.sidebar-list a {
  display: block;
  min-height: 43px;
  padding: 12px 10px 12px 28px;
  border-bottom: 1px solid #f6eaea;
  color: #333;
  font-size: 15px;
  line-height: 1.3;
}

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

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

.content-head h1 {
  height: 48px;
  border-bottom: 3px solid #cbcbcb;
  color: #0f429b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 48px;
}

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

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

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

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

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

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  padding: 0 18px;
  align-self: flex-start;
  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 #e7e9ef;
}

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

.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 {
  min-height: 680px;
  margin-top: 20px;
  margin-bottom: 55px;
  padding: 26px 60px 70px;
  background: #fff;
}

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

.article h1 {
  color: #1b1b1b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
}

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

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

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

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

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

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

.site-footer {
  background: var(--blue);
}

.site-footer .wrap {
  padding: 40px 0 43px;
}

.site-footer p {
  color: #bbc5dd;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

.site-footer span {
  margin: 0 3px;
}

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

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

  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-title,
  .subtitle {
    margin-left: 0;
    width: auto;
  }

  .main-nav {
    height: auto;
  }

  .menu {
    height: auto;
    flex-wrap: wrap;
  }

  .menu-item {
    padding: 12px 0;
  }

  .sub-menu {
    top: 62px;
  }

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

  .intro-media {
    width: 100%;
  }
}
