:root {
  --bg-gradient-main: radial-gradient(circle at 8% 3%, #ffffff 0%, #eef4ff 36%, #e8eef9 100%);
  --bg-gradient-card: linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
  --bg-gradient-soft: linear-gradient(140deg, #f2f7ff 0%, #eef2fa 100%);
  --border-soft: #dce6f7;
  --border-strong: #cad9f2;
  --text-1: #111827;
  --text-2: #334155;
  --text-3: #607086;
  --accent: #2f68d8;
  --accent-2: #578df0;
  --shadow-1: 0 10px 28px rgba(21, 37, 69, 0.12);
  --shadow-2: 0 18px 44px rgba(21, 37, 69, 0.14);
  --transition-1: 0.25s ease;
  --transition-2: 0.45s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

html {
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-gradient-main);
  color: var(--text-1);
  min-height: 100vh;
}

.sidebar,
article {
  background: var(--bg-gradient-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

article {
  display: none;
}

article.active {
  display: block;
  animation: fade 0.45s ease backwards;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.h2 {
  color: var(--text-1);
  font-size: 1.45rem;
}

.article-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
}

main {
  margin: 14px 12px;
  margin-bottom: 78px;
  min-width: 259px;
  min-height: calc(100vh - 120px);
}

.sidebar {
  margin-bottom: 14px;
  max-height: 124px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active {
  max-height: 440px;
}

.sidebar-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-box {
  border-radius: 16px;
  flex-shrink: 0;
}

.avatar-photo {
  width: 76px;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #ccdcfa;
  box-shadow: 0 8px 18px rgba(38, 78, 156, 0.16);
}

.info-content .name {
  color: var(--text-1);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.name-en,
.name-cn {
  display: block;
}

.name-cn {
  margin-top: 2px;
  font-size: 0.8em;
}

.info-content .title {
  color: var(--text-2);
  background: #eaf1ff;
  font-size: 0.72rem;
  font-weight: 500;
  width: max-content;
  padding: 4px 11px;
  border-radius: 9px;
}

.courgette-head h1 {
  font-family: "Baskerville", "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.2;
}

.courgette-head .name-cn {
  font-family: "Kaiti SC", "Songti SC", "Noto Serif SC", serif;
  font-weight: 500;
}

.info_more-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  border-radius: 0 16px;
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-gradient-soft);
  border: 1px solid var(--border-soft);
  padding: 10px;
  box-shadow: var(--shadow-1);
  transition: var(--transition-1);
}

.info_more-btn:hover,
.info_more-btn:focus {
  background: #e4edff;
}

.info_more-btn span {
  display: none;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--border-soft);
  margin: 16px 0;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  border: 1px solid #d8e4fa;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-info {
  max-width: calc(100% - 44px);
}

.contact-title {
  color: var(--text-3);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, address) {
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.35;
}

.contact-info address {
  font-style: normal;
}

.main-content {
  position: relative;
}

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 22px rgba(20, 38, 69, 0.08);
  z-index: 5;
}

.navbar-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.navbar-link {
  color: var(--text-3);
  font-size: 0.8rem;
  padding: 15px 7px;
  border-radius: 999px;
  transition: color var(--transition-1), background var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--text-2);
}

.navbar-link.active {
  color: var(--accent);
  background: #eaf1ff;
}

.about-text {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.72;
}

.about-text p {
  margin-bottom: 14px;
}

.working-paper-details {
  margin-left: 32px;
}

.other-grid {
  display: grid;
  gap: 18px;
}

.other-panel {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #f9fbff;
}

.other-panel .section-subtitle {
  margin-top: 0;
}

.honor-list {
  display: grid;
  gap: 10px;
}

.honor-item {
  padding: 0;
}

.honor-name {
  margin-bottom: 7px;
  color: var(--text-1);
  font-weight: 600;
}

.honor-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.honor-source {
  color: var(--text-2);
}

.honor-year {
  color: var(--text-2);
  font-weight: 400;
}

.skill-list {
  display: grid;
  gap: 2px;
}

.skill-item {
  padding: 10px 0;
  border-bottom: 1px dashed #d6e2f6;
}

.skill-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.skill-label {
  color: var(--text-1);
  font-weight: 600;
}

.contact-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
  padding: 18px;
}

.contact-content {
  position: relative;
}

.contact-me-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-me-list li {
  line-height: 1.55;
}

.contact-me-label {
  color: var(--text-1);
  font-weight: 600;
  margin-right: 6px;
}

.about-text a {
  color: var(--accent);
}

.section-subtitle {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  color: var(--text-1);
}

.news-list {
  margin-left: 18px;
}

.news-list li {
  list-style: disc;
  margin-bottom: 12px;
}

.news-date {
  color: var(--text-1);
  font-weight: 600;
  margin-right: 6px;
}

.placeholder {
  min-height: 120px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  background: #fbfdff;
  font-weight: 500;
}

@media (min-width: 576px) {
  .sidebar,
  article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  main {
    margin-top: 42px;
    margin-bottom: 96px;
  }

  .sidebar {
    max-height: 184px;
    margin-bottom: 24px;
  }

  .sidebar.active {
    max-height: 592px;
  }

  .sidebar-info {
    gap: 22px;
  }

  .avatar-photo {
    width: 112px;
    border-radius: 20px;
  }

  .info-content .name {
    margin-bottom: 12px;
    font-size: 1.45rem;
  }

  .info-content .title {
    padding: 5px 14px;
    font-size: 0.78rem;
  }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 14px;
  }

  .info_more-btn span {
    display: block;
  }

  .separator {
    margin: 28px 0;
  }

  .contacts-list {
    gap: 18px;
  }

  .contact-info {
    max-width: calc(100% - 64px);
  }

  .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .navbar-list {
    gap: 20px;
  }

  .navbar-link {
    font-size: 0.9rem;
    padding: 14px 3px;
  }

  .h2 {
    font-size: 1.9rem;
  }
}

@media (min-width: 768px) {
  .sidebar,
  article {
    width: 700px;
  }

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 24px 14px;
  }

  .other-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .sidebar,
  article {
    width: 950px;
    box-shadow: var(--shadow-2);
  }

  main {
    margin-bottom: 48px;
  }

  .main-content {
    width: max-content;
    margin: auto;
  }

  .navbar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: max-content;
    border: 1px solid var(--border-soft);
    border-radius: 0 20px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.9);
  }

  .navbar-list {
    gap: 16px;
    padding: 0 10px;
  }

  .navbar-link {
    font-weight: 500;
  }
}

@media (min-width: 1250px) {
  .sidebar,
  article {
    width: auto;
  }

  article {
    min-height: 100%;
  }

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }

  .sidebar {
    position: sticky;
    top: 50px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 40px;
  }

  .sidebar-info {
    flex-direction: column;
  }

  .avatar-photo {
    width: 170px;
    border-radius: 24px;
  }

  .info-content .name {
    text-align: center;
  }

  .info-content .title {
    margin: auto;
  }

  .info_more-btn {
    display: none;
  }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list {
    grid-template-columns: 1fr;
  }
}
