@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

:root {
  zoom: 0.75;
  --page-bg: #fbfcf8;
  --surface: #ffffff;
  --text: #26343a;
  --link: #24799c;
  --link-hover: #a65a18;
  --accent-surface: #f2a65a;
  --heading: #245f63;
  --control-bg: #f2f8fa;
  --mint: #edf8f2;
  --line: #dceae6;
  --muted: #5e6b6f;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgb(36 95 99 / 10%), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgb(242 166 90 / 9%), transparent 26rem),
    var(--page-bg);
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
}

b,
strong {
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: inherit;
}

h2 {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-weight: normal;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 29px;
}

.papertitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.name {
  padding-top: 0;
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 38px;
}

.name-zh {
  margin-left: 8px;
  font-family: 'Songti TC', 'Noto Serif CJK TC', serif;
  font-size: 20px;
  vertical-align: middle;
  white-space: nowrap;
}

.intro-text {
  font-size: 19px;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgb(220 234 230 / 90%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(255 255 255 / 74%), rgb(242 248 250 / 42%));
  box-shadow: 0 6px 18px rgb(38 52 58 / 7%), inset 0 1px 0 rgb(255 255 255 / 90%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--link);
  background: rgb(255 255 255 / 84%);
  color: var(--link);
}

.contact-links a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.research-intro {
  margin: 8px 0;
}

.page-layout {
  width: calc(100% - 40px);
  max-width: 1280px;
  margin: 0 auto;
  border: 0;
  border-spacing: 0;
  table-layout: fixed;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
  padding: 32px;
  margin-top: 18px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 18px;
  background: rgb(255 255 255 / 64%);
  box-shadow: 0 10px 32px rgb(38 52 58 / 8%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
  backdrop-filter: blur(16px) saturate(112%);
}

.hero-intro,
.hero-profile {
  min-width: 0;
}

.hero-profile {
  padding-top: 8px;
}

.profile-carousel {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.profile-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--page-bg);
  box-shadow: 0 4px 18px rgba(38, 52, 58, 0.08);
}

#profile-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.profile-carousel-button {
  padding: 4px 8px;
  border: 1px solid var(--link);
  border-radius: 6px;
  color: var(--link);
  background: var(--control-bg);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.profile-carousel-button:hover,
.profile-carousel-button:focus {
  border-color: var(--accent-surface);
  color: var(--text);
  background: var(--accent-surface);
}

.profile-carousel-button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.profile-photo-counter {
  min-width: 32px;
  color: var(--muted);
  font-size: 17px;
}

.paper-list {
  width: 100%;
  border: 0;
  border-spacing: 0 10px;
  table-layout: fixed;
}

.paper-preview,
.paper-details {
  box-sizing: border-box;
  vertical-align: middle;
}

.paper-preview {
  width: 38%;
  padding: 16px;
}

.paper-details {
  width: 62%;
  padding: 20px;
}

.paper-details,
.paper-details p,
.paper-details a,
.paper-details strong {
  font-size: 19px;
  line-height: 1.6;
}

.paper-authors,
.paper-authors a {
  color: #000;
}

.paper-authors a:hover {
  text-decoration: underline;
}

.paper-details .papertitle {
  font-size: 22px;
}

.paper-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.paper-keywords li {
  padding: 3px 9px;
  white-space: nowrap;
  border: 1px solid #c7ddd5;
  border-radius: 999px;
  background: #f4faf7;
  color: var(--heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.paper-flip {
  width: 100%;
  aspect-ratio: 16 / 9;
  perspective: 1000px;
}

.paper-flip-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.paper-flip-trigger:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 8px;
}

.paper-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.paper-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  backface-visibility: hidden;
}

.paper-flip-face img,
.paper-flip-face video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-flip-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(24 36 42 / 42%);
  box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(10px) saturate(110%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
  transition: background 0.2s ease;
}

.paper-flip-trigger:hover .paper-flip-hint {
  background: rgb(24 36 42 / 58%);
}

.paper-flip-front {
  transform: rotateY(0deg);
}

.paper-flip-back {
  transform: rotateY(180deg);
}

.paper-flip-trigger.is-flipped .paper-flip-inner {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .paper-flip-inner {
    transition: none;
  }
}

.hero-intro .intro-text a,
.hero-intro .intro-text strong {
  font-size: inherit;
}

@media (max-width: 800px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    padding: 24px;
    align-items: center;
  }

  .hero-intro {
    display: contents;
  }

  .hero-intro > * {
    grid-column: 1 / -1;
    margin: 0;
  }

  .hero-intro > .name {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-profile {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }

  .profile-carousel-button,
  .profile-photo-counter {
    font-size: 12px;
  }

  .profile-carousel-button {
    padding: 4px;
  }

  .paper-list > tbody > tr {
    display: block;
  }

  .paper-preview,
  .paper-details {
    display: block;
    width: 100%;
  }
}

@media (max-width: 570px) {
  :root {
    zoom: 1;
  }

  body, td, th, tr, p, a, strong,
  .intro-text, .paper-details, .paper-details p,
  .paper-details a, .paper-details strong {
    font-size: 16px;
  }

  .page-layout {
    width: calc(100% - 24px);
  }

  .name {
    font-size: 30px;
  }

  .paper-details .papertitle {
    font-size: 20px;
  }

  .contact-links a {
    font-size: 16px;
  }

  .profile-carousel-button {
    min-height: 44px;
    min-width: 28px;
  }

  .hero-panel {
    padding: 18px;
  }

  .profile-carousel {
    max-width: 280px;
  }

  .paper-details {
    padding-top: 0;
  }

  .profile-carousel-controls {
    flex-wrap: wrap;
  }

  .paper-keywords li {
    font-size: 16px;
    padding: 3px 7px;
  }
}

.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: var(--mint);
}

.featured-paper {
  background-color: var(--mint);
}

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

.email-copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(38, 52, 58, 0.10);
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 100ms ease, visibility 100ms;
}

.email-copy-icon {
  flex-shrink: 0;
  color: #36856a;
}

#email-copy-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.email-copy-label {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.email-copy-address {
  display: block;
  margin-top: 6px;
  color: #788681;
  font-size: 17px;
}

.email-copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .email-copy-toast {
    transition: none;
  }
}

/* Popover styles */
.wechat-popover {
  display: none; /* Hidden by default */
  position: absolute;
  z-index: 10;
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(38, 52, 58, 0.14);
  padding: 10px;
  border-radius: 5px;
}

.wechat-popover img {
  display: block;
  width: 150px;
}
