:root {
  --homepage-accent: #0f766e;
  --homepage-accent-soft: #e0f2f1;
  --homepage-ink: #263238;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--homepage-ink);
}

a:not(.icon-button),
a:not(.icon-button):visited {
  color: #0969da;
}

a:not(.icon-button):hover {
  color: #064f9e;
}

.site-header {
  backdrop-filter: blur(10px);
}

.cover:after {
  background: rgba(255, 255, 255, 0.1);
}

#profile-namecard {
  min-height: 270px;
}

#profile-avatar {
  background: #fff;
  object-fit: cover;
}

.avatar-hint {
  background: #f7efd9;
  border: 1px solid rgba(120, 90, 42, .22);
  box-shadow: 0 8px 16px rgba(52, 42, 24, .16);
  color: #7c5a24;
  display: block;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1;
  padding: 8px 12px;
  position: absolute;
  right: 8px;
  top: 2px;
  transform: rotate(-12deg);
  z-index: 3;
}

.avatar-hint::after {
  border-color: #f7efd9 transparent transparent transparent;
  border-style: solid;
  border-width: 8px 6px 0 6px;
  bottom: -8px;
  content: "";
  left: 18px;
  position: absolute;
}

#my-title {
  line-height: 1.35;
}

#my-email {
  line-height: 1.35;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
  overflow: visible !important;
}

.about-layout {
  display: block;
  overflow: visible !important;
}

.about-intro {
  margin-bottom: 20px;
}

.about-detail-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-main p:first-child {
  margin-top: 0;
}

.profile-side h3:first-child {
  margin-top: 0;
}

.profile-side a,
.timeline-title a,
.timeline-host a {
  color: #0969da;
  text-decoration: none;
}

.profile-side a:hover,
.timeline-title a:hover,
.timeline-host a:hover {
  color: var(--homepage-accent);
  text-decoration: underline;
}

.profile-side li {
  line-height: 1.42;
}

.card-container {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.github-card {
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
}

.timeline-body {
  padding-bottom: 280px;
}

.timeline-item {
  padding-bottom: 26px;
}

.timeline-date {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  line-height: 1.25;
}

.timeline-logo {
  background: #fff;
  border: 1px solid #c7d9e7;
  border-radius: 999px;
  display: inline-flex;
  height: 34px;
  object-fit: contain;
  padding: 4px;
  vertical-align: middle;
  width: 34px;
}

.iu-logo-mark {
  background: #990000;
  border-color: #990000;
  padding: 0;
}

.scu-logo-mark,
.swpu-logo-mark,
.activity-logo-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.swpu-logo-mark {
  object-fit: cover;
  object-position: left center;
}

.timeline-title {
  line-height: 1.35;
  margin-top: 5px;
}

.timeline-desc {
  line-height: 1.45;
  margin-top: 4px;
}

.timeline-host + .timeline-host {
  margin-top: 3px;
}

.publications {
  margin-bottom: 18px;
}

.pub-filter-bar {
  flex-wrap: wrap;
}

.custom-button {
  cursor: pointer;
}

.pub-topic-hint {
  line-height: 1.5;
}

.pub,
.pub-grouped-view .pub {
  clear: both;
  min-height: 150px;
  overflow: hidden;
  padding: 10px 0 12px;
}

.pub-left > .intro-img {
  background: #fff;
  border-radius: 0;
  box-sizing: border-box;
  object-fit: cover;
}

.pub-right > .title {
  color: #2d3338;
  margin-top: 2px;
}

.pub-right > .publish {
  margin-top: 8px;
}

.pub-group-title {
  clear: both;
  border-bottom: 1px solid #d7e1e8;
  padding-bottom: 4px;
}

.visitor-map-section {
  text-align: left;
}

.visitor-map-widget {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 290px;
}

.visitor-map-placeholder {
  align-items: center;
  color: #4b5b62;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  text-align: center;
}

.visitor-map-globe {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.95) 0 10%, transparent 11%),
    radial-gradient(circle at 64% 60%, rgba(255,255,255,.42) 0 6%, transparent 7%),
    linear-gradient(30deg, transparent 0 36%, rgba(255,255,255,.64) 37% 40%, transparent 41%),
    radial-gradient(circle at 52% 48%, #8ee3ff 0 24%, #38bdf8 25% 58%, #0f9ed5 59% 100%);
  border-radius: 50%;
  box-shadow: inset -24px -28px 38px rgba(0, 43, 72, .18), inset 18px 18px 35px rgba(255,255,255,.65), 0 30px 32px rgba(15, 118, 110, .18);
  height: 230px;
  overflow: hidden;
  position: relative;
  width: 230px;
}

.visitor-map-globe::before {
  background:
    radial-gradient(ellipse at 35% 30%, #caeadc 0 16%, transparent 17%),
    radial-gradient(ellipse at 60% 38%, #a4dbc8 0 19%, transparent 20%),
    radial-gradient(ellipse at 48% 66%, #b2e4d1 0 18%, transparent 19%),
    radial-gradient(circle at 32% 42%, #26a269 0 3px, transparent 4px),
    radial-gradient(circle at 68% 50%, #26a269 0 3px, transparent 4px),
    radial-gradient(circle at 54% 72%, #26a269 0 3px, transparent 4px);
  content: "";
  inset: 0;
  position: absolute;
}

.visitor-map-placeholder p {
  font-size: 15px;
  margin: 0;
}

.visual-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.visual-card {
  background: #fff;
  border: 1px solid #d8e1e6;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 51, 60, .06);
  overflow: hidden;
}

.visual-card img {
  aspect-ratio: 16 / 10;
  background: #f7fbfa;
  display: block;
  object-fit: contain;
  width: 100%;
}

.visual-card div {
  padding: 14px 16px 16px;
}

.visual-card h3 {
  color: #2d3338;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.visual-card p {
  color: #4b5b62;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.label {
  border-radius: 999px;
  background: var(--homepage-accent-soft);
  color: var(--homepage-accent);
}

.pub-year-box {
  width: 130px;
  min-height: 92px;
  border: 1px solid #d8e2e0;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--homepage-accent);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top {
  border: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.footer-quote {
  color: #58666d;
  font-style: italic;
  text-align: center;
}

.site-footer .footer-col-3 {
  text-align: right;
}

@media screen and (max-width: 800px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .pub-year-box {
    width: 100%;
  }

  .about-detail-grid {
    grid-template-columns: 1fr;
  }

  .timeline-body {
    padding-bottom: 220px;
  }
}

@media screen and (max-width: 600px) {
  .cover {
    height: 500px;
  }

  #profile-namecard {
    min-height: 430px;
  }

  .circle-img {
    width: 150px;
    height: 150px;
  }

  .avatar-hint {
    display: block;
    font-size: 12px;
    right: 32px;
    top: 8px;
  }

  #my-name {
    font-size: 28px;
    line-height: 1.12;
  }

  #my-title {
    display: block;
    font-size: 14px;
    line-height: 1.32;
    margin-top: 8px;
  }

  #my-email {
    font-size: 14px;
    margin-top: 8px;
  }

  .social-media {
    clear: both;
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 8px;
    width: 100%;
  }

  .icon-button {
    font-size: 1.55rem;
    height: 2.85rem;
    line-height: 2.85rem;
    margin: 0;
    width: 2.85rem;
  }

  .icon-button i {
    height: 2.85rem;
    line-height: 2.85rem;
    width: 2.85rem;
  }

  .pub-filter-bar {
    gap: 5px;
  }

  .custom-button {
    font-size: 13px;
    padding: 6px 9px;
  }

  .pub-topic-hint {
    font-size: 14px;
  }

  .pub,
  .pub-grouped-view .pub {
    min-height: 0;
    padding: 12px 0 18px;
  }

  .pub-left > .intro-img {
    height: auto;
    max-width: 280px;
    width: 100%;
  }

  .pub-right > .title {
    font-size: 17px;
  }

  .pub-right > .authors,
  .pub-right > .publish > .place,
  .pub-right > .tags > .tag {
    font-size: 14px;
  }

  .timeline-logo {
    height: 30px;
    width: 30px;
  }

  .timeline-title {
    font-size: 16px;
    line-height: 1.35;
  }

  .timeline-desc,
  .timeline-host {
    font-size: 13px;
    line-height: 1.45;
  }

  .visitor-map-widget {
    min-height: 240px;
  }

  .visitor-map-globe {
    height: 190px;
    width: 190px;
  }
}
