@font-face {
  font-family: 'Raleway-R'; 
  src: url('./font/Raleway-Regular.ttf') format('ttf'), 
       url('./font/Raleway-Regular.woff') format('woff');  
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Raleway-B'; 
  src: url('./font/Raleway-Bold.ttf') format('ttf'), 
       url('./font/Raleway-Bold.woff') format('woff');  
  font-weight: bold;
  font-style: normal;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Raleway-R', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

strong {
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Raleway-R', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 25px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.papertitle {
  font-family: 'Raleway-R', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Raleway-R', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
  margin-bottom: 15px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

body {
  margin: 0;
  padding: 0;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 16px;
}

.header .navbar-nav {
  gap: 12px;
  align-items: center;
}

.header .nav-link {
  color: #1f2933;
  font-weight: 500;
  padding: 0.65rem 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header .nav-link:hover,
.header .nav-link:focus,
.header .nav-link.active {
  color: #1772d0;
}

.header .nav-item.dropdown {
  position: relative;
}

.header .dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.header .show > .dropdown-toggle::after {
  transform: rotate(-180deg);
}

.header .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  padding: 0.75rem 0;
  margin-top: 0.75rem;
  min-width: 220px;
}

.header .dropdown-item {
  font-weight: 500;
  color: #1f2933;
  padding: 0.55rem 1.25rem;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.header .dropdown-item:hover,
.header .dropdown-item:focus {
  color: #1772d0;
  background-color: rgba(23, 114, 208, 0.08);
  padding-left: 1.5rem;
}

.header .dropdown-item:active {
  color: #0b4a8f;
  background-color: rgba(23, 114, 208, 0.16);
}

.container-fluid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  font-family: 'Raleway-R', 'Lato', Verdana, Helvetica, sans-serif;
}

.navbar-brand {
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.background {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('images/huishen_bw.png'); 
  background-size: cover;
  background-position: center;
  opacity: 0.3; 
  z-index: -1; 
}

.scrollable-list {
  max-height: 200px;
  overflow-y: auto;
}

.container {
  margin-top: 70px;
}

.site-footer {
  margin-top: 60px;
  padding: 24px 16px 32px;
  background-color: rgba(15, 23, 42, 0.04);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-size: 14px;
}

.site-footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: 0.04em;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #484848; 
}

.back-to-top svg {
  stroke: white;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1050;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.contact-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 32px 28px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.contact-modal__close:hover {
  background: rgba(15, 23, 42, 0.12);
  transform: scale(1.05);
}

.contact-modal__title {
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 26px;
  margin: 0 48px 8px 0;
  color: #0f172a;
}

.contact-modal__subtitle {
  margin: 0 0 20px;
  color: #475569;
  line-height: 1.6;
}

.contact-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-modal__label {
  display: block;
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.contact-modal__value {
  color: #0f172a;
  font-size: 18px;
  word-break: break-word;
}

.contact-modal__value:hover {
  color: #2563eb;
}

.contact-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal--open .contact-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.contact-modal-open {
  overflow: hidden;
}

.active {
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
}

.a_hku {
  color: rgb(111, 170, 145);
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
}

.a_osu {
  color: rgb(201, 0, 22);
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
}

.a_umich {
  color: rgb(65, 134, 231);
  font-family: 'Raleway-B', 'Lato', Verdana, Helvetica, sans-serif;
}

@media only screen and (max-width: 768px) {
  body,
  td,
  th,
  tr,
  p,
  strong,
  a {
    font-size: 12px; 
  }

  .album_nav {
    width: 100%;
  }

  .background {
    position: fixed;
    top: 0;
    right: initial;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
