﻿:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --max-width: 1160px;
  --sidebar-width: 290px;
  --header-height: 64px;
  --anchor-offset: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e7ebf3;
  backdrop-filter: blur(10px) saturate(1.1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 26px -20px rgba(15, 23, 42, 0.48);
  border-bottom-color: #dfe6f2;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  min-width: 0;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.16s ease;
}

.brand:hover {
  text-decoration: none;
  background: #f8fafc;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  animation: brand-avatar-spin 8s linear infinite;
  animation-play-state: paused;
}

.brand-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-music-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.16s ease;
}

.brand-music-toggle::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.14);
  font-size: 11px;
  transform: translateX(0.5px);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.brand-music-toggle.is-playing::before {
  content: "❚❚";
  font-size: 10px;
  letter-spacing: -1px;
  transform: none;
  background: rgba(15, 23, 42, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
}

.brand-music-toggle:hover {
  transform: scale(1.04);
}

.brand-music-toggle:hover::before {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.brand-avatar-wrap.is-playing .brand-avatar {
  animation-play-state: running;
}

.brand-music-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.55);
}

@keyframes brand-avatar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-avatar-wrap.is-playing .brand-avatar {
    animation: none;
  }
}

#nav-name {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-left: 8px;
  width: 84px;
  height: 30px;
  padding: 2px;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
}

.lang-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c4b5fd;
  box-shadow: 0 4px 10px -8px rgba(76, 29, 149, 0.7);
  transition: transform 0.18s ease;
}

.lang-toggle[data-lang="zh"]::before {
  transform: translateX(100%);
}

.lang-toggle-option {
  position: relative;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}

.lang-toggle[data-lang="en"] .lang-toggle-en,
.lang-toggle[data-lang="zh"] .lang-toggle-zh {
  color: #4c1d95;
}

.lang-toggle:hover {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border-color: #a78bfa;
  transform: translateY(-1px);
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.55);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  gap: 8px;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.site-nav a:hover {
  text-decoration: none;
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #e9d5ff;
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #6d28d9;
  background: #f3e8ff;
  border-color: #e9d5ff;
  box-shadow: 0 8px 16px -12px rgba(139, 92, 246, 0.8);
}

.site-nav a.nav-overflow-hidden {
  display: none;
}

.site-header.nav-overflow .nav-toggle {
  display: inline-flex;
}

.nav-overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 20px;
  z-index: 130;
  width: min(280px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 30px -18px rgba(15, 23, 42, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.site-header.nav-overflow.nav-open .nav-overflow-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-overflow-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-overflow-menu a:hover {
  text-decoration: none;
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #e9d5ff;
}

.nav-overflow-menu a.active {
  color: #6d28d9;
  background: #f3e8ff;
  border-color: #e9d5ff;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 42px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.avatar {
  width: 256px;
  height: 256px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #f3f4f6;
}

.name {
  margin: 0;
  text-align: center;
  font-size: 1.72rem;
  line-height: 1.2;
}

.college {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.94rem;
  color: var(--muted);
}

.tagline {
  margin: 16px 0 12px;
  text-align: center;
  color: #374151;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #475569;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease,
    transform 0.16s ease;
}

.icon-link:hover {
  text-decoration: none;
  color: #7c3aed;
  border-color: #e9d5ff;
  background: #f5f3ff;
  transform: translateY(-1px);
}

.icon-link:focus-visible {
  outline: none;
  color: #7c3aed;
  border-color: #e9d5ff;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(233, 213, 255, 0.65);
}

.icon-link:active {
  color: #6d28d9;
  border-color: #dcc7ff;
  background: #f3e8ff;
}

.icon-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.main {
  min-width: 0;
}

.section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--anchor-offset));
}

h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.45;
}

p {
  margin: 0 0 12px;
}

.main p,
.main li {
  text-align: justify;
  text-justify: inter-word;
}

html[lang^="en"] .main p,
html[lang^="en"] .main li {
  hyphens: auto;
}

.muted {
  color: var(--muted);
}

.news-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.simple-list {
  margin: 0;
  padding-left: 20px;
}

.news-list li,
.simple-list li {
  margin-bottom: 8px;
}

.news-list li {
  display: block;
}

.news-list li::after {
  content: "";
  display: block;
  clear: both;
}

.news-list .news-main {
  display: inline;
}

.news-list .news-link {
  float: right;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid #dbe7f3;
  background: #f8fbff;
  color: #3b82f6;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.news-list .news-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(-45deg);
}

.news-list .news-link:hover {
  color: #0062ff;
  border-color: #cbd5e1;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.news-list .news-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.award-toggle-item {
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  margin-top: 8px;
}

.award-fold-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.awards-fold-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.awards-fold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe7f3;
  background: #f8fbff;
  color: #3b82f6;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.awards-fold-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.awards-fold-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.awards-fold-toggle:hover {
  color: #0062ff;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.awards-fold-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.award-item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.award-item:first-child {
  border-top: none;
  padding-top: 0;
}

.award-thumb {
  width: 136px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  background: #f8fafc;
}

.award-thumb-group {
  width: 136px;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(var(--thumb-cols, 2), minmax(0, 1fr));
  gap: 4px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.award-thumb-split-trigger {
  border-radius: 8px;
  overflow: hidden;
}

.award-thumb-split {
  border: 0;
  border-radius: 8px;
}

.award-thumb-group .award-thumb-trigger {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.award-thumb-group .award-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.award-thumb-trigger {
  width: 136px;
  height: 84px;
  display: block;
  border: none;
  padding: 0;
  background: none;
  border-radius: 10px;
  cursor: zoom-in;
}

.award-thumb-trigger:hover .award-thumb {
  border-color: #e9d5ff;
  box-shadow: 0 8px 20px -16px rgba(139, 92, 246, 0.9);
}

.award-thumb-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 213, 255, 0.7);
}

.award-thumb-placeholder {
  display: block;
}

.award-body {
  min-width: 0;
}

.award-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.award-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  box-shadow: 0 36px 56px -28px rgba(15, 23, 42, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 1rem;
  cursor: pointer;
}

.item {
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.item:first-child {
  border-top: none;
  padding-top: 0;
}

.edu-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.edu-item:first-child {
  border-top: none;
  padding-top: 0;
}

.edu-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 5px;
}

.edu-logo-placeholder {
  background: #f1f5f9;
}

.edu-content {
  min-width: 0;
}

.item-meta {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.edu-inline-tip-wrap {
  display: inline-flex;
  align-items: center;
}

.edu-inline-tip-content {
  display: none;
}

.edu-inline-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08em;
  height: 1.08em;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.66em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: 0 2px 6px -5px rgba(15, 23, 42, 0.35);
  position: relative;
  top: -0.22em;
  transform: none;
}

.edu-tip-float {
  position: fixed;
  left: var(--edu-tip-left, 8px);
  top: var(--edu-tip-top, 8px);
  width: min(360px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.46;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 24px -16px rgba(15, 23, 42, 0.5);
  transform: translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  z-index: 220;
}

.edu-tip-float.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.edu-tip-float::before {
  content: "";
  position: absolute;
  left: var(--edu-tip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  border-left: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  background: #ffffff;
}

.edu-tip-float[data-placement="top"]::before {
  top: 100%;
  transform: translate(-50%, -5px) rotate(-45deg);
}

.edu-tip-float[data-placement="bottom"]::before {
  bottom: 100%;
  transform: translate(-50%, 5px) rotate(135deg);
}

.edu-tip-float-content {
  overflow-wrap: break-word;
}

.edu-tip-link {
  color: #334155;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.5);
  text-underline-offset: 2px;
}

.edu-tip-link:hover {
  color: #0f172a;
  text-decoration-color: rgba(15, 23, 42, 0.62);
}

.edu-inline-tip:hover {
  color: #475569;
  border-color: #94a3b8;
  background: #f1f5f9;
}

.edu-inline-tip.open {
  color: #475569;
  border-color: #94a3b8;
  background: #f1f5f9;
}

.edu-inline-tip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35);
}

.badges {
  margin: 6px 0 4px;
}

.badge {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.project-link-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-link-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.project-link-icon-emoji {
  width: auto;
  height: auto;
  font-size: 0.9rem;
  line-height: 1;
}

.project-link-label {
  display: inline-block;
}

.project-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.project-link-arxiv {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff1f2;
}

.project-link-arxiv:hover {
  color: #991b1b;
  border-color: #fda4af;
  background: #ffe4e6;
}

.project-link-github {
  color: #111827;
  border-color: #d1d5db;
  background: #f8fafc;
}

.project-link-github:hover {
  color: #030712;
  border-color: #9ca3af;
  background: #f1f5f9;
}

.project-link-openreview {
  color: #be123c;
  border-color: #fda4af;
  background: #fff1f2;
}

.project-link-openreview:hover {
  color: #9f1239;
  border-color: #fb7185;
  background: #ffe4e6;
}

.project-link-huggingface {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.project-link-huggingface:hover {
  color: #78350f;
  border-color: #fcd34d;
  background: #fef3c7;
}

.project-link-paper,
.project-link-code,
.project-link-default {
  color: #6d28d9;
  border-color: #e9d5ff;
  background: #faf5ff;
}

.project-link-paper:hover,
.project-link-code:hover,
.project-link-default:hover {
  color: #5b21b6;
  border-color: #d8b4fe;
  background: #f5f3ff;
}

.project-link-disabled,
.project-link-disabled:hover,
.project-link-disabled:focus-visible {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
  text-decoration: none;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 16px 36px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {

  .nav-overflow-menu {
    right: 8px;
    width: min(260px, calc(100vw - 16px));
  }

  .name {
    font-size: 1.5rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .icon-link {
    width: 30px;
    height: 30px;
  }

  .edu-tip-float {
    width: min(320px, calc(100vw - 16px));
    font-size: 0.9rem;
  }

  .award-item {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }

  .edu-item {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }

  .edu-logo {
    width: 44px;
    height: 44px;
    padding: 4px;
  }

  .award-thumb {
    width: 100px;
    height: 66px;
  }

  .award-thumb-group {
    width: 100px;
    height: 66px;
  }

  .award-thumb-trigger {
    width: 100px;
    height: 66px;
  }

  .award-title {
    font-size: 0.93rem;
  }

  .award-desc {
    font-size: 0.83rem;
  }

  .image-lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  h2 {
    font-size: 1.22rem;
  }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-width: 960px) and (max-height: 560px) {
  :root {
    --header-height: 56px;
    --anchor-offset: 4px;
  }

  body {
    font-size: 14px;
    line-height: 1.58;
  }

  .site-header-inner {
    padding: 0 12px;
  }

  .brand {
    padding: 3px 6px;
    font-size: 0.84rem;
  }

  .brand-avatar {
    width: 32px;
    height: 32px;
  }

  .brand-music-toggle::before {
    width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .brand-music-toggle.is-playing::before {
    font-size: 7px;
  }

  .site-nav a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .nav-toggle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .lang-toggle {
    width: 74px;
    height: 27px;
    font-size: 0.68rem;
  }

  .page {
    grid-template-columns: minmax(180px, 32vw) minmax(0, 1fr);
    padding: 14px 14px 30px;
    gap: 18px;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-height) + 12px);
  }

  .avatar {
    width: 138px;
    height: 138px;
    margin-bottom: 10px;
  }

  .name {
    font-size: 1.34rem;
  }

  .college {
    font-size: 0.88rem;
  }

  .tagline {
    margin: 10px 0 8px;
    font-size: 0.86rem;
  }

  .section {
    padding: 16px 0;
  }

  .main p,
  .main li {
    font-size: 0.88em;
    line-height: 1.48;
  }

  .main h3 {
    font-size: 0.95em;
  }

  h2 {
    margin-bottom: 10px;
    font-size: 1.18rem;
  }
}

