@charset "UTF-8";
/* =========================================
   Base Styles & Desktop Layout
   ========================================= */
.pub-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

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

.bibliography li {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.bibliography li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-ticker-container {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

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

.news-ticker li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.news-ticker li strong {
  color: #8C0000;
  margin-right: 8px;
}

.social-icons a {
  display: inline-block;
  height: 2.4rem;
  width: 2.4rem;
  background-color: transparent;
  color: #8C0000 !important;
  border-radius: 100%;
  text-align: center;
  font-size: 1.15rem;
  line-height: 2.5rem;
  margin-right: 1rem;
}

.social-icons a:last-child {
  margin-right: 0;
}

.social-icons a:hover {
  background-color: white;
  color: black;
  transform: scale(1.2);
}

.icon-button {
  background-color: white;
  border-radius: 3.6rem;
  cursor: pointer;
  display: inline-block;
  font-size: 2rem;
  height: 3.6rem;
  line-height: 3.6rem;
  margin: 0 5px;
  position: relative;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 3.6rem;
}

.icon-button span {
  border-radius: 0;
  display: block;
  height: 0;
  left: 50%;
  margin: 0;
  position: absolute;
  top: 50%;
  transition: all 0.3s;
  width: 0;
}

.icon-button:hover span {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 3.6rem;
  margin: -1.8rem;
}

.twitter span {
  background-color: #4099ff;
}

.facebook span {
  background-color: #4286f4;
}

.linkedin span {
  background-color: #0077B5;
}

.github span {
  background-color: #000;
}

email {
  font-size: 14px;
  font-family: "Ubuntu Mono", monospace;
}

.icon-button i {
  background: none;
  color: white;
  height: 3.6rem;
  left: 0;
  line-height: 3.6rem;
  position: absolute;
  top: 0;
  transition: all 0.3s;
  width: 3.6rem;
  z-index: 10;
}

.icon-button .icon-twitter {
  color: #4099ff;
}

.icon-button .icon-facebook {
  color: #4286f4;
}

.icon-button .icon-github {
  color: #000;
}

.icon-button .icon-linkedin {
  color: #0077B5;
}

.icon-button:hover .icon-twitter,
.icon-button:hover .icon-facebook,
.icon-button:hover .icon-github,
.icon-button:hover .icon-linkedin {
  color: white;
}

autocolor {
  color: #595959;
}

lightonly {
  visibility: visible;
}

darkonly {
  visibility: hidden;
}

education {
  font-weight: 500;
  font-size: 115%;
}

papertitle {
  font-weight: 600;
  font-size: 100%;
}

body {
  background-color: #F9F8F4;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Apple-style Card */
.card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  /* Same transition contract as .hover-panel panels below:
     explicit properties only, one easing per level. */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.image {
  border-radius: 0.35em;
  border: 0;
  display: inline-block;
  position: relative;
}

.image:before {
  transition: opacity 0.2s ease-in-out;
  border-radius: 0.35em;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.5;
  position: absolute;
  top: 0;
  width: 100%;
}

.image.avatar {
  border-radius: 100%;
}

.image.avatar:before {
  display: none;
}

.image.avatar img {
  border-radius: 100%;
  width: 45%;
  padding: 5px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.image.avatar img:hover {
  transform: scale(1.05);
}

#header .image.avatar {
  margin: 0 0 1em 0;
  width: 8em;
}

h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #8C0000;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700;
  color: #8C0000;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-size: 28px;
  line-height: 1.1;
}

h2 {
  color: #8C0000;
  font-weight: 600;
  margin: 0 0 20px;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

p,
ul,
ol,
table,
pre,
dl {
  margin: 0 0 20px;
}

h3 {
  line-height: 1.1;
}

a {
  color: #8C0000;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #600000;
  text-decoration: none;
  opacity: 0.88;
}

.site-main p a,
.site-main li a:not(.btn):not(.news-item-link),
.site-main td a,
.site-main blockquote a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.2s ease, opacity 0.2s ease, background-size 0.24s ease;
}

.site-main p a:hover,
.site-main li a:not(.btn):not(.news-item-link):hover,
.site-main td a:hover,
.site-main blockquote a:hover {
  background-size: 100% 1px;
}

a small {
  font-size: 11px;
  color: #86868b;
  margin-top: -0.3em;
  display: block;
}

a:hover small {
  color: #86868b;
}

.wrapper {
  width: 1000px;
  margin: 0 auto;
}

blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code,
pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color: #333;
}

pre {
  max-width: 500px;
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 500;
}

th {
  color: #444;
}

img {
  max-width: 100%;
}

/* =========================================
   Desktop Sidebar Header
   ========================================= */
header {
  width: 260px;
  float: left;
  position: fixed;
  -webkit-font-smoothing: subpixel-antialiased;
  padding-top: 4em;
  text-align: center;
  z-index: 100;
}

header ul {
  list-style: none;
  padding: 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  width: 220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
}

header li {
  width: 100%;
  float: none;
  border-right: none;
  height: auto;
  padding: 0;
  box-sizing: border-box;
}

header ul a {
  line-height: 44px;
  font-size: 15px;
  color: #000000;
  display: block;
  text-align: left;
  padding: 0 24px;
  height: 44px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

header ul a:hover {
  color: #600000;
  background-color: rgba(140, 0, 0, 0.06);
  transform: scale(1.02);
}

header ul a:active {
  background-color: rgba(140, 0, 0, 0.12);
  transform: scale(0.98);
}

section {
  width: 700px;
  float: right;
  padding-top: 4em;
  padding-bottom: 50px;
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

footer {
  width: 232px;
  float: left;
  position: fixed;
  bottom: 30px;
  -webkit-font-smoothing: subpixel-antialiased;
  text-align: center;
}

.biblink {
  text-decoration: none;
  display: inline;
  margin-right: 0px;
}

.fakelink {
  text-decoration: none;
  cursor: pointer;
}

.bibref {
  font-size: 70%;
  margin-top: 10px;
  margin-left: 0px;
  display: none;
  font-family: monospace;
}

.publications .links a.btn {
  border: 1px solid #8C0000 !important;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px !important;
  transition: all 0.2s ease-in-out;
  margin-right: 5px;
  margin-bottom: 5px;
  color: #8C0000 !important;
  background-color: rgba(140, 0, 0, 0.05) !important;
}

.publications .links .publication-meta {
  border: 1px solid #8C0000;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
  color: #8C0000;
  background-color: rgba(140, 0, 0, 0.05);
}

.publications .links a.btn:hover {
  background-color: #8C0000 !important;
  border-color: #8C0000 !important;
  color: #ffffff !important;
}

.publications .links a.btn i {
  margin-right: 4px;
}

.publications .links .publication-meta {
  display: inline-block;
  cursor: default;
}

.publications .publication-notes {
  margin-top: 0.4rem;
  line-height: 1.5;
}

.publications .publication-notes i {
  color: #e74d3c;
}

#experience {
  margin-bottom: 20px;
}

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

.experience-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.experience-logo {
  margin-right: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.experience-logo .logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: white;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  display: block;
}

.experience-details .title {
  font-size: 1.1rem;
  font-weight: bold;
}

.experience-details ul {
  list-style-type: none;
  padding-left: 0;
  margin: 5px 0 0;
}

.experience-details li {
  font-size: 0.95rem;
  color: #828282;
}

.floating-action-button {
  display: inline-block;
  background-color: #8C0000;
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

#feedback-button {
  bottom: 92px;
  right: 30px;
}

#back-to-top {
  bottom: 30px;
  right: 30px;
}

#feedback-button::after {
  content: "\f0e0";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.1em;
  line-height: 50px;
  color: #fff;
}

#back-to-top::after {
  content: "\f077";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.2em;
  line-height: 50px;
  color: #fff;
}

.floating-action-button:hover {
  cursor: pointer;
  background-color: #337ab7;
}

.floating-action-button.show {
  opacity: 1;
  visibility: visible;
}

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

.feedback-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 12, 12, 0.46);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1100;
}

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

.feedback-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 244, 242, 0.98) 100%);
  border: 1px solid rgba(140, 0, 0, 0.12);
  box-shadow: 0 28px 50px -30px rgba(55, 16, 16, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feedback-modal__dialog h2 {
  margin: 0 0 0.45rem;
  color: #8C0000;
}

.feedback-modal__dialog p {
  margin: 0 0 1rem;
  color: #705858;
}

.feedback-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(140, 0, 0, 0.08);
  color: #8C0000;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.feedback-modal__close:hover {
  background: rgba(140, 0, 0, 0.16);
  transform: translateY(-1px);
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form__field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #4b2a2a;
  font-size: 0.95rem;
  font-weight: 600;
}

.feedback-form__field input,
.feedback-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(140, 0, 0, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.85rem 0.95rem;
  color: #2c1a1a;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.feedback-form__field textarea {
  min-height: 150px;
  resize: vertical;
}

.feedback-form__field input:focus,
.feedback-form__field textarea:focus {
  outline: none;
  border-color: rgba(140, 0, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(140, 0, 0, 0.1);
}

.feedback-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.feedback-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-form__status {
  margin: 0;
  min-height: 1.5rem;
  color: #705858;
  font-size: 0.95rem;
}

.feedback-form__status.is-pending {
  color: #8C0000;
}

.feedback-form__status.is-success {
  color: #1a7f37;
}

.feedback-form__status.is-error {
  color: #b42318;
}

.feedback-form__submit {
  border: 0;
  border-radius: 999px;
  background: #8C0000;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 24px -16px rgba(140, 0, 0, 0.65);
}

.feedback-form__submit:hover {
  background: #6f0000;
  transform: translateY(-1px);
}

.feedback-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* News Ticker Styles */
.news-ticker-container {
  height: 150px;
  overflow-y: auto;
  border-radius: 12px;
  padding: 16px;
  background-color: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-ticker-container::-webkit-scrollbar {
  width: 6px;
}

.news-ticker-container::-webkit-scrollbar-track {
  background: transparent;
}

.news-ticker-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Publication Card Hover Effect */
.pub-row .abbr {
  overflow: hidden;
  position: relative;
}

.pub-row .abbr .teaser {
  transition: transform 0.4s ease;
}

.pub-row:hover .abbr .teaser {
  transform: scale(1.1);
}

.pub-row .abbr::after {
  content: "View Details";
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pub-row:hover .abbr::after {
  opacity: 1;
}

.filters {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters .btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filters .btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #333;
  border-color: rgba(0, 0, 0, 0.2);
}

.filters .btn.active {
  background: #8C0000;
  color: white;
  border-color: #8C0000;
  box-shadow: 0 4px 12px rgba(140, 0, 0, 0.2);
}

.publication-pagination {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.publication-pagination .btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.publication-pagination .btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.03);
  color: #333;
  border-color: rgba(0, 0, 0, 0.2);
}

.publication-pagination .btn.active {
  background: #8C0000;
  color: white;
  border-color: #8C0000;
  box-shadow: 0 4px 12px rgba(140, 0, 0, 0.2);
}

.publication-pagination .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.award-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.award-date {
  color: #8C0000;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-top: 0.1rem;
}

.award-body {
  position: relative;
  padding-left: 1rem;
}

.award-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 3px;
  height: calc(100% - 0.25rem);
  background: linear-gradient(180deg, rgba(140, 0, 0, 0.75), rgba(140, 0, 0, 0.12));
  border-radius: 999px;
}

.award-title {
  font-weight: 600;
  color: #1d1d1f;
  font-size: 1.03rem;
  line-height: 1.45;
}

.award-issuer {
  margin-top: 0.28rem;
  color: #666;
  font-size: 0.95rem;
}

.award-note {
  margin-top: 0.4rem;
  color: #4a4a4a;
}

.award-empty {
  margin: 0;
  color: #666;
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}
/* =========================================
   Mobile Design: Card Style Info + Fixed Burger
   ========================================= */
/* 默认在桌面端隐藏汉堡菜单按钮 */
.mobile-menu-btn {
  display: none !important;
}

@media print, screen and (max-width: 960px) {
  .award-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .award-date {
    padding-top: 0;
  }
  .award-body {
    padding-left: 0.9rem;
  }
  /* 1. 全局布局修正 */
  body {
    background-color: #fafafa;
    /* 移动端背景更浅，突出卡片 */
  }
  div.wrapper {
    width: 100%;
    margin: 0;
    padding-bottom: 30px;
    box-sizing: border-box;
    /* 防止宽度溢出 */
  }
  /* 重置 Header, Section, Footer 布局 */
  header,
  section,
  footer {
    float: none;
    position: relative;
    /* 恢复文档流 */
    width: 100%;
    box-sizing: border-box;
    /* 关键：防止 padding 撑大宽度 */
  }
  /* 隐藏桌面端旧的悬浮元素 */
  .mobile-nav-toggle {
    display: none !important;
  }
  /* =========================================
   2. Header: 个人信息卡片 (美化版)
   ========================================= */
  header {
    /* 卡片尺寸与定位 */
    width: 92%;
    /* 宽度占比 */
    max-width: 400px;
    /* 限制最大宽度 */
    margin: 25px auto 20px;
    /* 上边距(避开按钮) + 水平居中 + 下边距 */
    padding: 40px 25px;
    /* 内部呼吸感 */
    /* 卡片视觉样式 */
    background: #ffffff;
    border-radius: 20px;
    /* 现代感的大圆角 */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* 柔和的高级阴影 */
    border: 1px solid rgba(0, 0, 0, 0.02);
    /* 内容布局：强制居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* 覆盖桌面端可能存在的背景滤镜 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* 2.1 头像美化 */
  .image.avatar {
    margin: 0 0 15px 0 !important;
    /* 覆盖 ID 选择器权重 */
    padding: 0;
    border: none;
    background: transparent;
    width: auto !important;
    /* 重置宽度 */
  }
  .image.avatar img {
    width: 110px;
    /* 适中的头像大小 */
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    /* 白边框 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* 头像立体感 */
  }
  /* 2.2 名字美化 */
  header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 5px 0 15px;
    letter-spacing: -0.5px;
    position: relative;
    line-height: 1.2;
  }
  /* 名字下方的小装饰线 */
  header h1::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #8C0000;
    /* 主题色 */
    margin: 10px auto 0;
    /* 居中 */
    border-radius: 2px;
    opacity: 0.8;
  }
  /* 2.3 文字信息美化 */
  header p,
  header email,
  header position,
  header autocolor {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
    display: block;
    /* 确保换行显示 */
  }
  /* 强调邮箱或特定链接 */
  header a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
  }
  /* 2.4 社交图标美化 */
  .social-icons {
    display: flex;
    justify-content: center;
    /* 居中排列 */
    gap: 15px;
    /* 图标间距 */
    margin-top: 20px;
    width: 100%;
  }
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    color: #8C0000 !important;
    background: rgba(140, 0, 0, 0.06);
    /* 浅色背景球 */
    border-radius: 50%;
    transition: all 0.2s;
    margin: 0;
    /* 重置 margin */
  }
  .social-icons a:hover {
    background: #8C0000;
    color: #fff !important;
    transform: translateY(-2px);
  }
  /* =========================================
   3. 汉堡菜单按钮 (固定在右上角)
   ========================================= */
  .mobile-menu-btn {
    display: flex !important;
    /* 强制显示 */
    position: fixed;
    /* 永远固定在屏幕可视区域 */
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 浮起效果 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .mobile-menu-btn:active {
    transform: scale(0.95);
  }
  .mobile-menu-btn .bar {
    width: 20px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  /* 按钮变形动画 */
  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  /* =========================================
   4. 导航菜单 (弹出层)
   ========================================= */
  header ul {
    position: fixed;
    /* 也是 Fixed，独立于 Header 卡片 */
    top: 75px;
    /* 在按钮下方 */
    right: 20px;
    width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    z-index: 9998;
    /* 默认隐藏状态 */
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* 移除旧样式影响 */
    margin: 0;
    border: none;
    backdrop-filter: none;
    /* 移除桌面端的毛玻璃 */
    height: auto;
  }
  /* 展开状态 */
  header.nav-open ul {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  header li {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    float: none;
  }
  header ul a {
    display: block;
    padding: 10px 20px;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    height: auto;
    transition: background 0.2s;
  }
  header ul a:hover {
    background: #f7f7f7;
    color: #8C0000;
    padding-left: 25px;
    /* hover 时稍微右移 */
    transform: none;
    /* 禁用桌面端的放大效果 */
  }
  /* =========================================
   5. 下方内容区域 (Card 风格一致性)
   ========================================= */
  section {
    padding: 0 20px 20px;
    /* 两侧留白 */
    width: 100%;
    max-width: 100%;
    /* 防止溢出 */
  }
  /* 让内容卡片也像 Header 一样有些圆角和阴影 */
  .card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    padding: 25px !important;
  }
  /* 标题样式微调 */
  section h1,
  section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    /* 标题也居中对齐，保持一致 */
  }
  /* 列表垂直排列优化 */
  .pub-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .pub-row .abbr {
    width: 100%;
    padding: 0 !important;
  }
  .pub-row .abbr .teaser {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  .pub-row .col-sm-9 {
    width: 100%;
    padding: 0 !important;
  }
  #head1o2,
  #head2o2 {
    display: none;
  }
}
/* 针对小屏幕手机 (iPhone SE等) 的微调 */
@media print, screen and (max-width: 380px) {
  header h1 {
    font-size: 1.5rem;
  }
  .mobile-menu-btn {
    top: 15px;
    right: 15px;
  }
  header ul {
    top: 70px;
    right: 15px;
  }
}
/* =========================================
   Layout Refresh Overrides
   ========================================= */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(140, 0, 0, 0.1), transparent 24%), radial-gradient(circle at bottom right, rgba(140, 0, 0, 0.05), transparent 28%), linear-gradient(180deg, #f7f3ec 0%, #f4efe7 100%);
}

#main-content {
  min-height: 100vh;
}

.wrapper.page-shell {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 42px 0 72px;
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.site-sidebar,
.site-main,
footer {
  float: none;
  width: auto;
}

.site-sidebar {
  position: sticky;
  top: 28px;
  padding-top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-main {
  width: auto;
  min-width: 0;
  padding-top: 0;
  padding-bottom: 0;
}

footer {
  position: static;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 24px 60px -32px rgba(64, 34, 16, 0.25);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.sidebar-profile {
  padding: 30px 28px 26px;
  text-align: center;
}

.sidebar-profile h1 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.sidebar-chinese-name {
  margin: -4px 0 12px;
  color: var(--global-theme-color);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.sidebar-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.sidebar-meta a {
  border-bottom: none;
  justify-self: center;
  transition: color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.sidebar-meta a autocolor {
  transition: color 0.2s ease;
}

.sidebar-meta a:hover,
.sidebar-meta a:focus-visible {
  text-decoration: underline;
}

.sidebar-meta a:hover autocolor,
.sidebar-meta a:focus-visible autocolor {
  color: #8C0000;
}

.social-icons a,
.sidebar-nav ul a {
  border-bottom: none;
}

.sidebar-meta email,
.sidebar-meta position,
.sidebar-meta autocolor {
  display: block;
}

.sidebar-nav {
  padding: 14px;
}

.sidebar-utility {
  padding: 12px 14px;
}

.sidebar-nav ul {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 6px;
}

.sidebar-nav li {
  width: 100%;
}

.sidebar-nav ul a {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
}

.sidebar-nav ul a:hover {
  transform: translateX(4px);
  background-color: rgba(140, 0, 0, 0.08);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  line-height: 42px;
  margin-right: 0;
  border: 1px solid rgba(140, 0, 0, 0.1);
  background: rgba(140, 0, 0, 0.04);
}

.social-icons a:hover {
  background: #8C0000;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.section-block,
h2[id] {
  scroll-margin-top: 32px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.95fr);
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.overview-grid .card {
  margin-bottom: 0;
}

.card {
  margin-bottom: 24px;
  padding: 32px 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px -34px rgba(50, 31, 18, 0.22);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px -38px rgba(50, 31, 18, 0.3);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.profile-lead {
  font-size: 1.04rem;
  line-height: 1.9;
  color: #4a4a4f;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
}

.research-inline-block {
  margin-top: 1.5rem;
  position: relative;
  padding: 1.15rem 1rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(140, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(252, 248, 242, 0.95) 0%, rgba(247, 241, 232, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 38px -34px rgba(50, 31, 18, 0.34);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.research-inline-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 0, 0, 0.88) 0%, rgba(140, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 3;
}

.research-inline-block::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 0, 0, 0.09) 0%, rgba(140, 0, 0, 0) 72%);
  pointer-events: none;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.research-inline-header {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  z-index: 2;
}

.research-inline-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8C0000;
}

.research-inline-kicker::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe1dc 0%, #8C0000 78%);
  box-shadow: 0 0 0 4px rgba(140, 0, 0, 0.08);
}

.research-inline-note {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #786e67;
  transition: color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.research-inline-list {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding-top: 6px;
  padding-bottom: 2px;
  margin-top: -2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
}

.research-inline-list::-webkit-scrollbar {
  display: none;
}

.research-inline-slider-wrap {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.research-inline-slider-wrap[hidden] {
  display: none;
}

.research-inline-slider {
  --scroll-progress: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 0, 0, 0.78) 0%, rgba(140, 0, 0, 0.78) var(--scroll-progress), rgba(140, 0, 0, 0.14) var(--scroll-progress), rgba(140, 0, 0, 0.14) 100%);
  cursor: pointer;
  transition: filter 0.24s ease, transform 0.24s ease;
}

.research-inline-slider:focus-visible {
  outline: 2px solid rgba(140, 0, 0, 0.22);
  outline-offset: 5px;
}

.research-inline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #8C0000;
  box-shadow: 0 8px 18px -12px rgba(140, 0, 0, 0.75);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.research-inline-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #8C0000;
  box-shadow: 0 8px 18px -12px rgba(140, 0, 0, 0.75);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.research-inline-slider::-moz-range-track {
  height: 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
}

.research-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  scroll-snap-align: start;
  position: relative;
  z-index: 0;
  white-space: nowrap;
  padding: 0.62rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 0, 0, 0.1);
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.98) 0%, rgba(248, 242, 234, 0.98) 100%);
  color: #6f1f1f;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 24px -24px rgba(50, 31, 18, 0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.research-pill:focus-visible {
  outline: 2px solid rgba(140, 0, 0, 0.32);
  outline-offset: 3px;
}

.section-heading {
  margin: 0 0 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-heading-meta {
  font-size: 0.84rem;
  font-weight: 400;
  color: #666;
}

.section-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.section-heading-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 1.8rem;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.48);
  color: #7a2323;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px -24px rgba(50, 31, 18, 0.24);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.section-heading-link span {
  white-space: nowrap;
}

.section-heading-link i {
  font-size: 0.82rem;
}

.section-heading-link.is-primary {
  border-color: rgba(140, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.section-heading-link.is-home {
  background: rgba(255, 255, 255, 0.48);
}

.section-heading-link.is-scholar {
  border-color: rgba(140, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.news-ticker-container {
  max-height: 188px;
  height: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 0, 0, 0.24) transparent;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #faf7f2 0%, #f4efe7 100%);
  border: 1px solid rgba(140, 0, 0, 0.06);
}

.news-ticker li {
  margin-bottom: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(140, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-ticker li + li {
  padding-top: 14px;
}

.news-ticker li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-item-main {
  min-width: 0;
  flex: 1 1 auto;
}

.news-item-text {
  color: #3f3f46;
}

.news-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 0, 0, 0.14);
  background: rgba(140, 0, 0, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-icons a:hover,
.sidebar-nav ul a:hover,
.publications .title a:hover {
  transform: translateY(-1px) scale(1.02);
}

.social-icons a,
.publications .links a.btn,
.news-item-link,
.section-heading-link,
.filters .btn,
.publication-pagination .btn {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
  box-shadow: 0 12px 24px -16px rgba(140, 0, 0, 0.65);
}

.section-heading-link:focus-visible {
  outline: 2px solid rgba(140, 0, 0, 0.2);
  outline-offset: 3px;
}

.experience-list {
  display: grid;
  gap: 16px;
}

.experience-item {
  margin-bottom: 0;
  padding: 18px;
  border-radius: 22px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fcfbf8 0%, #f8f4ee 100%);
  border: 1px solid rgba(140, 0, 0, 0.06);
}

.experience-logo {
  width: 60px;
  height: 60px;
  margin-right: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(140, 0, 0, 0.06);
}

.experience-logo .logo-img {
  width: 46px;
  height: 46px;
}

.experience-details .title {
  line-height: 1.4;
  margin-bottom: 4px;
}

.experience-details li {
  line-height: 1.7;
}

.pub-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.pub-media,
.pub-content {
  position: relative;
  padding: 0 !important;
}

.pub-row .abbr .teaser {
  width: 100%;
  height: 144px;
  margin: 0;
  border-radius: 18px;
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.45);
}

.pub-row .abbr::after {
  border-radius: 18px;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.publications {
  margin-top: 0;
}

.publications .title {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.publications .author {
  margin-bottom: 0.35rem;
  color: #4e4e55;
}

.publications .publication-year-inline {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  background: rgba(140, 0, 0, 0.07);
  color: #8C0000;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.publications .periodical {
  margin-bottom: 0.8rem;
  color: #6e6e73;
}

.publications .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publications .links a.btn,
.publications .links .publication-meta {
  margin: 0;
  border-radius: 999px;
  padding: 6px 12px;
}

.award-item {
  border-bottom-color: rgba(140, 0, 0, 0.08);
}

.hover-panel {
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
  will-change: transform;
}

.experience-item.hover-panel {
  border: 1px solid rgba(140, 0, 0, 0.08);
  box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.35);
}

.publications ol.bibliography li.publication-item.hover-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(140, 0, 0, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #fcfbf8 0%, #f7f3ec 100%);
  box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.28);
}

.publications ol.bibliography li.publication-item.hover-panel:last-child {
  margin-bottom: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(140, 0, 0, 0.08);
}

.news-ticker li.news-item.hover-panel {
  margin-bottom: 0;
  padding: 14px 16px;
  border: 1px solid rgba(140, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px -24px rgba(0, 0, 0, 0.3);
}

.news-ticker li.news-item.hover-panel:last-child {
  padding-bottom: 14px;
}

.award-item.hover-panel {
  margin-bottom: 0.9rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(140, 0, 0, 0.08);
  border-radius: 20px;
  border-bottom: 1px solid rgba(140, 0, 0, 0.08);
  background: linear-gradient(180deg, #fffdfa 0%, #f7f2ea 100%);
  box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.25);
}

.award-item.hover-panel:last-child {
  margin-bottom: 0;
  padding-bottom: 1.1rem;
}

@media (hover: hover) {
  .research-pill:hover,
  .news-item-link:hover,
  .section-heading-link:hover,
  .filters .btn:hover,
  .publication-pagination .btn:hover:not(:disabled),
  .publications .links a.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 24px -18px rgba(140, 0, 0, 0.36);
    background: rgba(140, 0, 0, 0.82);
    color: #ffffff;
  }
  .publications .links a.btn:hover {
    background: rgba(140, 0, 0, 0.82) !important;
    color: #ffffff !important;
  }
  .research-inline-block:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(253, 249, 244, 0.98) 0%, rgba(248, 242, 234, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 24px 42px -34px rgba(50, 31, 18, 0.38);
  }
  .research-inline-block:hover::after {
    transform: translate3d(-8px, -8px, 0) scale(1.04);
    opacity: 1;
  }
  .research-inline-block:hover .research-inline-note {
    color: #6f5a4e;
    transform: translateX(2px);
  }
  .research-inline-slider-wrap:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px -22px rgba(140, 0, 0, 0.18);
  }
  .research-inline-slider:hover {
    filter: saturate(1.08);
    transform: translateY(-1px);
  }
  .research-inline-slider:hover::-webkit-slider-thumb {
    transform: scale(1.08);
    box-shadow: 0 12px 24px -14px rgba(140, 0, 0, 0.82);
  }
  .research-inline-slider:hover::-moz-range-thumb {
    transform: scale(1.08);
    box-shadow: 0 12px 24px -14px rgba(140, 0, 0, 0.82);
  }
  .hover-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(140, 0, 0, 0.18);
    box-shadow: 0 18px 36px -24px rgba(140, 0, 0, 0.35);
  }
  .publication-item.hover-panel:hover .abbr .teaser,
  .publication-item.hover-panel:focus-within .abbr .teaser {
    transform: scale(1.05);
  }
  .publication-item.hover-panel:hover .abbr::after,
  .publication-item.hover-panel:focus-within .abbr::after {
    opacity: 1;
  }
}
.hover-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(140, 0, 0, 0.18);
  box-shadow: 0 18px 36px -24px rgba(140, 0, 0, 0.35);
}

#back-to-top {
  bottom: 24px;
  right: 24px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(140, 0, 0, 0.55);
}

#feedback-button {
  bottom: 88px;
  right: 24px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(140, 0, 0, 0.55);
}

.floating-action-button:hover {
  background-color: #600000;
}

@media print, screen and (max-width: 960px) {
  .wrapper.page-shell {
    width: min(100%, 760px);
    padding: 74px 16px 34px;
    grid-template-columns: 1fr;
    gap: 20px;
    box-sizing: border-box;
  }
  .site-sidebar {
    position: static;
    top: auto;
  }
  header {
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .sidebar-card {
    border-radius: 24px;
  }
  .sidebar-profile {
    padding: 26px 22px 24px;
  }
  .sidebar-profile h1 {
    font-size: 1.85rem;
    color: #8C0000;
    margin: 6px 0 10px;
  }
  .sidebar-chinese-name {
    margin-bottom: 12px;
    font-size: 1.1rem;
  }
  .sidebar-profile h1::after {
    margin-top: 12px;
  }
  .sidebar-nav {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .sidebar-nav ul {
    position: fixed;
    top: 74px;
    right: 16px;
    width: min(220px, 100vw - 32px);
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(140, 0, 0, 0.08);
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s ease;
  }
  .site-sidebar.nav-open .sidebar-nav ul {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .site-main {
    width: 100%;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .card {
    padding: 24px 22px !important;
    margin-bottom: 20px;
    border-radius: 22px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .news-ticker-container {
    max-height: 260px;
  }
  .pub-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pub-row .abbr .teaser {
    height: 200px;
  }
  .pub-row:hover .abbr .teaser {
    transform: none;
  }
  .pub-row .abbr::after {
    display: none;
  }
  #feedback-button {
    right: 18px;
    bottom: 74px;
    width: 44px;
    height: 44px;
  }
  #feedback-button::after {
    line-height: 44px;
    font-size: 0.95rem;
  }
  .feedback-modal {
    padding: 16px;
  }
  .feedback-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 32px);
    padding: 24px 18px 20px;
    border-radius: 22px;
  }
  .feedback-modal__close {
    top: 12px;
    right: 12px;
  }
  .feedback-form__actions {
    align-items: stretch;
  }
  .feedback-form__submit {
    width: 100%;
    text-align: center;
  }
  #back-to-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  #back-to-top::after {
    line-height: 44px;
    font-size: 1rem;
  }
}
@media print, screen and (max-width: 640px) {
  .profile-lead {
    text-align: left;
    hyphens: manual;
  }
  .research-inline-header {
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
  }
  .research-inline-note {
    width: 100%;
  }
  .research-inline-list {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    overflow-x: visible;
  }
  .research-inline-slider-wrap {
    display: none !important;
  }
  .research-inline-block {
    padding: 1rem 0.92rem 0.86rem;
  }
  .research-inline-block::before {
    left: 0.92rem;
  }
  .research-pill {
    padding: 0.66rem 0.88rem;
    font-size: 0.88rem;
  }
  .section-heading-meta {
    width: 100%;
  }
  .section-heading-actions {
    justify-content: flex-start;
    width: 100%;
    gap: 0.5rem;
  }
  .section-heading-link {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
  .news-ticker li {
    flex-direction: column;
    gap: 10px;
  }
  .news-item-link {
    align-self: flex-start;
  }
  .social-icons {
    gap: 8px;
  }
  .experience-item {
    flex-direction: column;
    gap: 14px;
  }
  .experience-logo {
    margin-right: 0;
  }
  .pub-row .abbr .teaser {
    height: 180px;
  }
}
/* =========================================
   Theme Toggle + Dark Theme
   ========================================= */
.theme-toggle-wrap {
  display: flex;
  justify-content: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(140, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(140, 0, 0, 0.06);
  color: #6f1f1f;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(140, 0, 0, 0.1);
  box-shadow: 0 10px 22px -18px rgba(140, 0, 0, 0.45);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(140, 0, 0, 0.24);
  outline-offset: 3px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
}

html[data-theme=light] {
  color-scheme: light;
}

html[data-theme=dark] {
  color-scheme: dark;
}

html[data-theme=dark] body {
  background: radial-gradient(circle at top left, rgba(140, 0, 0, 0.22), transparent 26%), radial-gradient(circle at bottom right, rgba(140, 0, 0, 0.12), transparent 30%), linear-gradient(180deg, #191413 0%, #100d0d 100%);
  color: #f3ece7;
}

html[data-theme=dark] h1,
html[data-theme=dark] h2,
html[data-theme=dark] h3,
html[data-theme=dark] h4,
html[data-theme=dark] h5,
html[data-theme=dark] h6,
html[data-theme=dark] a,
html[data-theme=dark] .research-inline-kicker,
html[data-theme=dark] .award-date,
html[data-theme=dark] .publication-year-inline,
html[data-theme=dark] .news-ticker li strong {
  color: #ffb7b1;
}

html[data-theme=dark] a:hover,
html[data-theme=dark] .section-heading-meta a:hover {
  color: #ffd1c7;
}

html[data-theme=dark] autocolor,
html[data-theme=dark] a small,
html[data-theme=dark] code,
html[data-theme=dark] dt,
html[data-theme=dark] th,
html[data-theme=dark] .profile-lead,
html[data-theme=dark] .research-inline-note,
html[data-theme=dark] .section-heading-meta,
html[data-theme=dark] .news-item-text,
html[data-theme=dark] .experience-details li,
html[data-theme=dark] .publications .author,
html[data-theme=dark] .publications .periodical,
html[data-theme=dark] .award-issuer,
html[data-theme=dark] .award-note,
html[data-theme=dark] .award-empty {
  color: #bdb6b0;
}

html[data-theme=dark] .section-heading-link {
  border-color: rgba(255, 183, 177, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: #ffd8d0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px -20px rgba(0, 0, 0, 0.56);
}

html[data-theme=dark] .section-heading-link.is-home {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme=dark] .section-heading-link.is-primary {
  border-color: rgba(255, 183, 177, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme=dark] .award-title {
  color: #f8ece8;
}

html[data-theme=dark] .award-body::before {
  background: linear-gradient(180deg, rgba(255, 183, 177, 0.82), rgba(255, 183, 177, 0.18));
}

html[data-theme=dark] .research-inline-block {
  border-color: rgba(255, 183, 177, 0.12);
  background: linear-gradient(180deg, rgba(39, 30, 30, 0.96) 0%, rgba(23, 19, 19, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 38px -30px rgba(0, 0, 0, 0.72);
}

html[data-theme=dark] .research-inline-block::before {
  background: linear-gradient(90deg, rgba(255, 183, 177, 0.95) 0%, rgba(255, 183, 177, 0.2) 100%);
}

html[data-theme=dark] .research-inline-block::after {
  background: radial-gradient(circle, rgba(255, 183, 177, 0.12) 0%, rgba(255, 183, 177, 0) 72%);
}

html[data-theme=dark] .research-inline-kicker::before {
  background: radial-gradient(circle at 30% 30%, #ffe8e2 0%, #ffb7b1 78%);
  box-shadow: 0 0 0 4px rgba(255, 183, 177, 0.12);
}

html[data-theme=dark] .research-inline-slider-wrap {
  border-color: rgba(255, 183, 177, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme=dark] blockquote,
html[data-theme=dark] pre {
  color: #e5dfda;
}

html[data-theme=dark] pre,
html[data-theme=dark] code {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme=dark] hr,
html[data-theme=dark] th,
html[data-theme=dark] td,
html[data-theme=dark] .bibliography li,
html[data-theme=dark] .award-item,
html[data-theme=dark] .news-ticker li,
html[data-theme=dark] .research-inline-block::before {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme=dark] #intro-page {
  background: #120f0f;
  color: #f8d7d3;
}

html[data-theme=dark] #intro-page .intro-title,
html[data-theme=dark] #intro-page .intro-hint {
  color: #f8d7d3;
}

html[data-theme=dark] .sidebar-card,
html[data-theme=dark] .card,
html[data-theme=dark] .experience-item,
html[data-theme=dark] .publications ol.bibliography li.publication-item.hover-panel,
html[data-theme=dark] .news-ticker li.news-item.hover-panel,
html[data-theme=dark] .award-item.hover-panel {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.65);
}

html[data-theme=dark] .sidebar-card {
  background: rgba(25, 21, 21, 0.82);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme=dark] .card {
  background: rgba(23, 19, 19, 0.92);
}

html[data-theme=dark] .experience-item,
html[data-theme=dark] .publications ol.bibliography li.publication-item.hover-panel,
html[data-theme=dark] .award-item.hover-panel,
html[data-theme=dark] .news-ticker li.news-item.hover-panel,
html[data-theme=dark] .news-ticker-container {
  background: linear-gradient(180deg, rgba(31, 26, 26, 0.98) 0%, rgba(18, 15, 15, 0.98) 100%);
}

html[data-theme=dark] .experience-logo {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme=dark] .sidebar-meta a:hover autocolor,
html[data-theme=dark] .sidebar-meta a:focus-visible autocolor {
  color: #ffd1c7;
}

html[data-theme=dark] .sidebar-nav ul a,
html[data-theme=dark] header ul a {
  color: #f5efea;
}

html[data-theme=dark] .sidebar-nav ul a:hover,
html[data-theme=dark] header ul a:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

html[data-theme=dark] .social-icons a,
html[data-theme=dark] .theme-toggle,
html[data-theme=dark] .news-item-link,
html[data-theme=dark] .filters .btn,
html[data-theme=dark] .publication-pagination .btn,
html[data-theme=dark] .publications .links a.btn,
html[data-theme=dark] .publications .links .publication-meta {
  border-color: rgba(255, 183, 177, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f9d8d4 !important;
}

html[data-theme=dark] .theme-toggle:hover,
html[data-theme=dark] .social-icons a:hover,
html[data-theme=dark] .news-item-link:hover,
html[data-theme=dark] .filters .btn:hover,
html[data-theme=dark] .publication-pagination .btn:hover:not(:disabled),
html[data-theme=dark] .publications .links a.btn:hover {
  background: rgba(140, 0, 0, 0.82) !important;
  border-color: rgba(255, 183, 177, 0.28) !important;
  color: #ffffff !important;
}

html[data-theme=dark] .publication-pagination .btn:disabled {
  color: rgba(249, 216, 212, 0.45) !important;
}

html[data-theme=dark] .research-pill {
  border-color: rgba(255, 183, 177, 0.14);
  background: linear-gradient(180deg, rgba(52, 33, 33, 0.95) 0%, rgba(31, 22, 22, 0.95) 100%);
  color: #ffd8d0;
  box-shadow: 0 10px 24px -24px rgba(0, 0, 0, 0.65);
}

html[data-theme=dark] .research-pill:focus-visible {
  outline-color: rgba(255, 183, 177, 0.4);
}

html[data-theme=dark] .research-inline-slider {
  background: linear-gradient(90deg, rgba(255, 183, 177, 0.88) 0%, rgba(255, 183, 177, 0.88) var(--scroll-progress), rgba(255, 255, 255, 0.12) var(--scroll-progress), rgba(255, 255, 255, 0.12) 100%);
}

html[data-theme=dark] .research-inline-slider:focus-visible {
  outline-color: rgba(255, 183, 177, 0.32);
}

html[data-theme=dark] .research-inline-slider::-webkit-slider-thumb {
  border-color: rgba(28, 22, 22, 0.95);
  background: #ffb7b1;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.85);
}

html[data-theme=dark] .research-inline-slider::-moz-range-thumb {
  border-color: rgba(28, 22, 22, 0.95);
  background: #ffb7b1;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.85);
}

html[data-theme=dark] .publication-year-inline {
  background: rgba(255, 183, 177, 0.12);
}

html[data-theme=dark] .mobile-menu-btn {
  background: rgba(24, 20, 20, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme=dark] .mobile-menu-btn .bar {
  background-color: #f5efea;
}

html[data-theme=dark] .sidebar-nav ul {
  background: rgba(24, 20, 20, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme=dark] #back-to-top {
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.65);
}

html[data-theme=dark] #feedback-button {
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.65);
}

html[data-theme=dark] .feedback-modal {
  background: rgba(8, 6, 6, 0.62);
}

html[data-theme=dark] .feedback-modal__dialog {
  background: linear-gradient(180deg, rgba(33, 25, 25, 0.98) 0%, rgba(22, 18, 18, 0.98) 100%);
  border-color: rgba(255, 183, 177, 0.12);
  box-shadow: 0 28px 50px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme=dark] .feedback-modal__dialog h2 {
  color: #ffb7b1;
}

html[data-theme=dark] .feedback-modal__dialog p,
html[data-theme=dark] .feedback-form__field label,
html[data-theme=dark] .feedback-form__status {
  color: #decfca;
}

html[data-theme=dark] .feedback-modal__close {
  background: rgba(255, 183, 177, 0.1);
  color: #ffb7b1;
}

html[data-theme=dark] .feedback-modal__close:hover {
  background: rgba(255, 183, 177, 0.18);
}

html[data-theme=dark] .feedback-form__field input,
html[data-theme=dark] .feedback-form__field textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 183, 177, 0.18);
  color: #f5efea;
}

html[data-theme=dark] .feedback-form__field input::placeholder,
html[data-theme=dark] .feedback-form__field textarea::placeholder {
  color: rgba(245, 239, 234, 0.46);
}

html[data-theme=dark] .feedback-form__field input:focus,
html[data-theme=dark] .feedback-form__field textarea:focus {
  border-color: rgba(255, 183, 177, 0.52);
  box-shadow: 0 0 0 4px rgba(255, 183, 177, 0.08);
}

html[data-theme=dark] .feedback-form__status.is-pending {
  color: #ffb7b1;
}

html[data-theme=dark] .feedback-form__status.is-success {
  color: #7ad9a1;
}

html[data-theme=dark] .feedback-form__status.is-error {
  color: #ff9b9b;
}

html[data-theme=dark] .news-ticker-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.24);
}

@media (hover: hover) {
  html[data-theme=dark] .research-pill:hover,
  html[data-theme=dark] .news-item-link:hover,
  html[data-theme=dark] .section-heading-link:hover,
  html[data-theme=dark] .filters .btn:hover,
  html[data-theme=dark] .publication-pagination .btn:hover:not(:disabled),
  html[data-theme=dark] .publications .links a.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 183, 177, 0.24);
    background: rgba(140, 0, 0, 0.82);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 24px -16px rgba(0, 0, 0, 0.72);
  }
  html[data-theme=dark] .publications .links a.btn:hover {
    background: rgba(140, 0, 0, 0.82) !important;
    color: #ffffff !important;
  }
  html[data-theme=dark] .research-inline-block:hover {
    border-color: rgba(255, 183, 177, 0.18);
    background: linear-gradient(180deg, rgba(44, 33, 33, 0.98) 0%, rgba(26, 20, 20, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 42px -28px rgba(0, 0, 0, 0.82);
  }
  html[data-theme=dark] .research-inline-block:hover .research-inline-note {
    color: #d9c7c1;
  }
  html[data-theme=dark] .research-inline-slider-wrap:hover {
    border-color: rgba(255, 183, 177, 0.18);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 24px -18px rgba(0, 0, 0, 0.72);
  }
  html[data-theme=dark] .research-inline-slider:hover::-webkit-slider-thumb,
  html[data-theme=dark] .research-inline-slider:hover::-moz-range-thumb {
    box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.88);
  }
  html[data-theme=dark] .hover-panel:hover,
  html[data-theme=dark] .hover-panel:focus-within {
    border-color: rgba(255, 183, 177, 0.16);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.72);
  }
}
@media print, screen and (max-width: 960px) {
  .theme-toggle {
    width: 100%;
  }
}
/* =========================================
   Interaction Polish: nav spy, email copy,
   news/venue badges, reveal animations
   ========================================= */
::selection {
  background: rgba(140, 0, 0, 0.16);
}

html[data-theme=dark] ::selection {
  background: rgba(255, 183, 177, 0.3);
}

a:focus-visible,
button:focus-visible,
[role=button]:focus-visible {
  outline: 2px solid rgba(140, 0, 0, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

html[data-theme=dark] a:focus-visible,
html[data-theme=dark] button:focus-visible,
html[data-theme=dark] [role=button]:focus-visible {
  outline-color: rgba(255, 183, 177, 0.55);
}

/* --- Sidebar nav: icons + scroll-spy active state --- */
.sidebar-nav ul a i {
  flex: 0 0 auto;
  width: 1.35rem;
  margin-right: 10px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.sidebar-nav ul a {
  position: relative;
}

.sidebar-nav ul a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 58%;
  border-radius: 999px;
  background: linear-gradient(180deg, #8C0000, rgba(140, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sidebar-nav ul a.active {
  background-color: rgba(140, 0, 0, 0.1);
  color: #8C0000;
}

.sidebar-nav ul a.active i {
  opacity: 1;
  color: #8C0000;
}

.sidebar-nav ul a.active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.sidebar-nav ul a.active:hover {
  transform: none;
  background-color: rgba(140, 0, 0, 0.13);
}

html[data-theme=dark] .sidebar-nav ul a.active {
  background-color: rgba(255, 183, 177, 0.13);
  color: #ffd1c7;
}

html[data-theme=dark] .sidebar-nav ul a.active i {
  color: #ffb7b1;
}

html[data-theme=dark] .sidebar-nav ul a.active::before {
  background: linear-gradient(180deg, #ffb7b1, rgba(255, 183, 177, 0.4));
}

/* --- Sidebar email: link + copy button --- */
.sidebar-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.sidebar-email-link {
  border-bottom: none !important;
  min-width: 0;
}

.sidebar-email-link email {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.sidebar-email-link:hover email {
  color: #8C0000;
}

html[data-theme=dark] .sidebar-email-link:hover email {
  color: #ffd1c7;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(140, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(140, 0, 0, 0.05);
  color: #8C0000;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.copy-email-btn:hover {
  background: #8C0000;
  border-color: #8C0000;
  color: #ffffff;
  transform: translateY(-1px);
}

.copy-email-btn.copied {
  background: #1a7f37;
  border-color: #1a7f37;
  color: #ffffff;
}

html[data-theme=dark] .copy-email-btn {
  border-color: rgba(255, 183, 177, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f9d8d4;
}

html[data-theme=dark] .copy-email-btn:hover {
  background: rgba(140, 0, 0, 0.82);
  border-color: rgba(255, 183, 177, 0.28);
  color: #ffffff;
}

html[data-theme=dark] .copy-email-btn.copied {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #ffffff;
}

/* --- News: date pill --- */
.news-item-date {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 10px;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  background: rgba(140, 0, 0, 0.08);
  color: #8C0000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 1px;
}

html[data-theme=dark] .news-item-date {
  background: rgba(255, 183, 177, 0.13);
  color: #ffb7b1;
}

.news-ticker li strong {
  color: inherit;
}

/* --- Publications: venue badge --- */
.publications .publication-notes {
  margin-top: 0.6rem;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 0, 0, 0.12);
  background: rgba(140, 0, 0, 0.05);
  color: #8C0000;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

.venue-badge i {
  font-size: 0.78rem;
  color: #8C0000;
}

html[data-theme=dark] .venue-badge {
  border-color: rgba(255, 183, 177, 0.18);
  background: rgba(255, 183, 177, 0.08);
  color: #ffb7b1;
}

html[data-theme=dark] .venue-badge i {
  color: #ffb7b1;
}

/* Journal badge with a homepage link: same pill, plus hover affordance. */
a.venue-badge.is-link {
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a.venue-badge.is-link:hover,
a.venue-badge.is-link:focus-visible {
  color: #ffffff;
  border-color: #8C0000;
  background: #8C0000;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -14px rgba(140, 0, 0, 0.6);
}

a.venue-badge.is-link:hover i {
  color: #ffffff;
}

html[data-theme=dark] a.venue-badge.is-link:hover,
html[data-theme=dark] a.venue-badge.is-link:focus-visible {
  color: #241817;
  border-color: #ffb7b1;
  background: #ffb7b1;
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.7);
}

html[data-theme=dark] a.venue-badge.is-link:hover i {
  color: #241817;
}

/* --- Section heading icon chips ---
   Headings come in two shapes (plain `.card h2` and the publications
   `.section-heading`); both must render identically: same chip, same
   icon-to-text gap, same title baseline. */
.section-heading {
  align-items: center;
}

.section-heading-text {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem; /* must match `.card h2` gap */
}

.card h2 > i,
.section-heading-text > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(140, 0, 0, 0.1), rgba(140, 0, 0, 0.045));
  box-shadow: inset 0 0 0 1px rgba(140, 0, 0, 0.1);
  font-size: 0.95rem;
  color: #8C0000;
}

html[data-theme=dark] .card h2 > i,
html[data-theme=dark] .section-heading-text > i {
  background: linear-gradient(145deg, rgba(255, 183, 177, 0.14), rgba(255, 183, 177, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 183, 177, 0.18);
  color: #ffb7b1;
}

/* --- Research interest list: fade edge --- */
.research-inline-list {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
}

@media print, screen and (max-width: 640px) {
  .research-inline-list {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* --- Footer --- */
.site-main p small {
  display: block;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(140, 0, 0, 0.08);
  text-align: center;
  color: #9b9188;
  letter-spacing: 0.01em;
}

html[data-theme=dark] .site-main p small {
  color: #8d817b;
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* --- Reveal-on-scroll cards ---
   One definition, one place: every top-level card (both homepage
   section blocks and the all-publications card) shares these. */
:root {
  --reveal-duration: 0.55s;
  --reveal-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal {
  opacity: 0;
}

.js-reveal.in-view {
  animation: card-reveal var(--reveal-duration) var(--reveal-easing) forwards;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
  }
  .js-reveal.in-view {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .js-reveal {
    opacity: 1 !important;
    animation: none !important;
  }
}
/* --- Intro page: interactive affordance --- */
#intro-page {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#intro-page:focus-visible {
  outline: 2px solid rgba(140, 0, 0, 0.45);
  outline-offset: -6px;
}

html[data-theme=dark] #intro-page:focus-visible {
  outline-color: rgba(255, 183, 177, 0.55);
}

/* --- Dark mode: heading rule line --- */
html[data-theme=dark] .card h2::after {
  background: linear-gradient(90deg, rgba(255, 183, 177, 0.28), transparent);
}

/* --- Mobile: nav icons + active state in dropdown --- */
@media print, screen and (max-width: 960px) {
  .sidebar-nav ul a {
    display: flex;
    align-items: center;
  }
  .sidebar-nav ul a i {
    margin-right: 10px;
  }
  .sidebar-nav ul a::before {
    display: none;
  }
  .sidebar-email {
    justify-content: center;
  }
}
/* =========================================
   Floating buttons + sidebar icon fix
   ========================================= */
/* Border-box so icon borders count inside their width — keeps all
   five sidebar icons on one row at every sidebar width. */
@media print, screen and (min-width: 961px) {
  .sidebar-profile .social-icons a {
    box-sizing: border-box;
  }
  .social-icons {
    gap: 8px;
  }
}
/* Floating buttons: same-level controls sit on one bottom line,
   feedback to the left of back-to-top. */
#back-to-top {
  bottom: 24px;
  right: 24px;
}

#feedback-button {
  bottom: 24px;
  right: 86px;
}

/* =========================================
   Device Adaptation: short desktops, small
   laptops, tablets, phones, safe areas
   ========================================= */
/* --- Desktop (≥961px): keep the sticky sidebar fully reachable on
       short viewports by letting it scroll internally --- */
@media print, screen and (min-width: 961px) {
  .site-sidebar {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 0, 0, 0.16) transparent;
  }
  .site-sidebar::-webkit-scrollbar {
    width: 5px;
  }
  .site-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  .site-sidebar::-webkit-scrollbar-thumb {
    background: rgba(140, 0, 0, 0.16);
    border-radius: 999px;
  }
  html[data-theme=dark] .site-sidebar {
    scrollbar-color: rgba(255, 183, 177, 0.22) transparent;
  }
  html[data-theme=dark] .site-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 183, 177, 0.22);
  }
}
/* --- Small laptops / tablet landscape (961–1180px): tighten the
       two-column grid so cards keep breathing room --- */
@media print, screen and (min-width: 961px) and (max-width: 1180px) {
  .wrapper.page-shell {
    grid-template-columns: minmax(248px, 280px) minmax(0, 1fr);
    gap: 26px;
  }
  .card {
    padding: 28px 26px;
  }
  .social-icons {
    gap: 7px;
  }
  .sidebar-profile .social-icons a {
    box-sizing: border-box;
    width: 37px;
    height: 37px;
    line-height: 35px;
  }
  .pub-row {
    grid-template-columns: minmax(160px, 190px) minmax(0, 1fr);
    gap: 18px;
  }
  .pub-row .abbr .teaser {
    height: 126px;
  }
}
/* --- Phones & tablets (≤960px): the theme toggle becomes a fixed
       icon button in the top-left corner, mirroring the menu button;
       floating buttons respect the device safe area --- */
@media print, screen and (max-width: 960px) {
  .sidebar-card.sidebar-utility {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .theme-toggle-wrap {
    display: block;
  }
  .theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(60, 30, 20, 0.16);
  }
  .theme-toggle:hover {
    transform: none;
  }
  .theme-toggle .theme-toggle-label {
    display: none;
  }
  html[data-theme=dark] .sidebar-card.sidebar-utility {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  html[data-theme=dark] .theme-toggle {
    background: rgba(30, 25, 25, 0.94) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
  #back-to-top {
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  #feedback-button {
    right: calc(72px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
/* --- Tablets & large phones landscape (701–960px): horizontal
       profile card and an always-visible chip navigation, so the
       hamburger menu is no longer needed --- */
@media print, screen and (min-width: 701px) and (max-width: 960px) {
  .mobile-menu-btn {
    display: none !important;
  }
  header.site-sidebar {
    width: auto;
    max-width: none;
  }
  .sidebar-card.sidebar-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "avatar name" "avatar cname" "avatar meta" "avatar social";
    column-gap: 24px;
    row-gap: 4px;
    align-items: center;
    text-align: left;
    padding: 26px 28px;
  }
  .sidebar-profile .image.avatar {
    grid-area: avatar;
    margin: 0 !important;
  }
  .sidebar-profile .image.avatar img {
    width: 112px;
    height: 112px;
  }
  .sidebar-profile h1 {
    grid-area: name;
    margin: 0;
    text-align: left;
    font-size: 1.65rem;
  }
  .sidebar-profile h1::after {
    display: none;
  }
  .sidebar-chinese-name {
    grid-area: cname;
    margin: 0;
    text-align: left;
  }
  .sidebar-meta {
    grid-area: meta;
    margin-top: 0;
    gap: 0.35rem;
    text-align: left;
    justify-items: start;
  }
  .sidebar-meta a {
    justify-self: start;
  }
  .sidebar-email {
    justify-content: flex-start;
  }
  .social-icons {
    grid-area: social;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .sidebar-card.sidebar-nav {
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 60px -32px rgba(64, 34, 16, 0.25);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }
  html[data-theme=dark] .sidebar-card.sidebar-nav {
    background: rgba(25, 21, 21, 0.82);
    border-color: rgba(255, 255, 255, 0.06);
  }
  .sidebar-nav ul {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
    height: auto;
  }
  .sidebar-nav li {
    width: auto;
  }
  .sidebar-nav ul a {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1;
  }
  .sidebar-nav ul a:hover {
    padding-left: 14px;
    transform: none;
    background: rgba(140, 0, 0, 0.08);
  }
  .sidebar-nav ul a.active {
    border-color: rgba(140, 0, 0, 0.4);
    background: rgba(140, 0, 0, 0.1);
  }
  html[data-theme=dark] .sidebar-nav ul a {
    border-color: rgba(255, 183, 177, 0.16);
    background: rgba(255, 255, 255, 0.05);
  }
  html[data-theme=dark] .sidebar-nav ul a:hover {
    background: rgba(255, 255, 255, 0.09);
  }
  html[data-theme=dark] .sidebar-nav ul a.active {
    border-color: rgba(255, 183, 177, 0.42);
    background: rgba(255, 183, 177, 0.13);
  }
}
/* --- Small phones (≤400px): tighter spacing and fixed corner
       buttons --- */
@media print, screen and (max-width: 400px) {
  .sidebar-card.sidebar-profile {
    padding: 22px 18px;
  }
  .social-icons {
    gap: 7px;
  }
  .social-icons a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .sidebar-profile .image.avatar img {
    width: 96px;
    height: 96px;
  }
  .sidebar-profile h1 {
    font-size: 1.55rem;
  }
  .card {
    padding: 22px 18px !important;
  }
  .pub-row .abbr .teaser {
    height: 160px;
  }
  .mobile-menu-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  .sidebar-card.sidebar-utility {
    top: 15px;
    left: 15px;
  }
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
  .sidebar-nav ul {
    top: 66px;
    right: 15px;
  }
}
/* =========================================
   Visual refinement: avatar ring, hero stripe,
   scrollbars, teaser borders
   ========================================= */
/* --- Avatar: brand-color ring on top of the existing white pad --- */
.sidebar-profile .image.avatar img {
  box-shadow: 0 0 0 2.5px rgba(140, 0, 0, 0.3), 0 14px 30px -18px rgba(58, 34, 20, 0.55);
}

@media print, screen and (max-width: 960px) {
  .sidebar-profile .image.avatar img {
    box-shadow: 0 0 0 2.5px rgba(140, 0, 0, 0.3), 0 10px 24px -14px rgba(58, 34, 20, 0.5);
  }
}
html[data-theme=dark] .sidebar-profile .image.avatar img {
  box-shadow: 0 0 0 2.5px rgba(255, 183, 177, 0.38), 0 14px 30px -18px rgba(0, 0, 0, 0.75);
}

/* --- Featured profile card: slim brand stripe along the top --- */
.card-feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #8C0000 0%, rgba(140, 0, 0, 0.35) 45%, rgba(140, 0, 0, 0.05) 100%);
  pointer-events: none;
}

html[data-theme=dark] .card-feature::after {
  background: linear-gradient(90deg, #ffb7b1 0%, rgba(255, 183, 177, 0.35) 45%, rgba(255, 183, 177, 0.05) 100%);
}

/* --- Profile intro paragraph: slightly larger for hero presence --- */
.card-feature > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* --- Global scrollbars match the theme --- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 0, 0, 0.22) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(140, 0, 0, 0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(140, 0, 0, 0.32);
}

html[data-theme=dark] {
  scrollbar-color: rgba(255, 183, 177, 0.26) transparent;
}

html[data-theme=dark] ::-webkit-scrollbar-thumb {
  background-color: rgba(255, 183, 177, 0.24);
}

html[data-theme=dark] ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 183, 177, 0.38);
}

/* --- Publication teasers: crisp hairline to match card borders --- */
.publications ol.bibliography li .teaser {
  border: 1px solid rgba(107, 82, 62, 0.1);
}

html[data-theme=dark] .publications ol.bibliography li .teaser {
  border-color: rgba(255, 255, 255, 0.09);
}

/* --- Experience logos: gentle grow on row hover --- */
.experience-logo .logo-img {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .experience-item:hover .logo-img {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .experience-logo .logo-img {
    transition: none;
  }
  .experience-item:hover .logo-img {
    transform: none;
  }
}
#intro-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F9F8F4;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #8C0000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: opacity 0.3s ease;
}
#intro-page .intro-title {
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 8px;
  color: #8C0000;
  font-weight: bold;
  text-align: center;
  letter-spacing: -0.02em;
  animation: intro-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
#intro-page .intro-chinese-name {
  margin: 0 0 20px;
  color: #8C0000;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  animation: intro-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s both;
}
#intro-page .intro-typewriter {
  max-width: calc(100vw - 48px);
  font-size: clamp(15px, 4.2vw, 24px);
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  animation: intro-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.16s both;
}
#intro-page .intro-typewriter #typewriter {
  font-weight: 600;
  letter-spacing: 0.01em;
}
#intro-page .intro-typewriter .cursor {
  animation: cursor-blink 1.05s steps(1) infinite;
}
#intro-page .intro-hint {
  max-width: calc(100vw - 48px);
  font-size: clamp(0.85rem, 2.6vw, 1rem);
  color: #8C0000;
  text-align: center;
  margin-top: 40px;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cursor-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #intro-page .intro-title,
  #intro-page .intro-chinese-name,
  #intro-page .intro-typewriter {
    animation: none;
  }
  #intro-page .intro-typewriter .cursor {
    animation: none;
  }
}
@keyframes pulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}
#main-content {
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Homepage polish: retains the original warm visual language while improving hierarchy. */
body {
  background: radial-gradient(circle at top left, rgba(140, 0, 0, 0.055), transparent 30rem), #F9F8F4;
}

.wrapper.page-shell {
  padding-top: 34px;
  padding-bottom: 64px;
}

.site-main {
  min-width: 0;
}

.section-block {
  margin-bottom: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 36px 40px;
  margin-bottom: 0;
  border: 1px solid rgba(107, 82, 62, 0.1);
  box-shadow: 0 14px 32px -26px rgba(58, 34, 20, 0.34);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #8C0000 0%, rgba(140, 0, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -28px rgba(58, 34, 20, 0.42);
}

.card:hover::before,
.card-feature::before {
  opacity: 1;
}

.card-feature {
  background: linear-gradient(145deg, #ffffff 0%, #fffdfb 100%);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.card h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(140, 0, 0, 0.2), transparent);
}

.profile-lead {
  max-width: 74ch;
  font-size: 1.04rem;
  line-height: 1.78;
  color: #3f3a36;
}

.sidebar-card {
  border: 1px solid rgba(107, 82, 62, 0.11);
  box-shadow: 0 12px 28px -24px rgba(58, 34, 20, 0.36);
}

.sidebar-profile {
  padding: 28px 26px 24px;
}

.sidebar-profile h1 {
  margin-bottom: 8px;
}

.sidebar-meta {
  line-height: 1.45;
}

.sidebar-nav ul a {
  border-radius: 10px;
}

.sidebar-nav ul a:hover,
.sidebar-nav ul a:focus-visible {
  background: rgba(140, 0, 0, 0.07);
}

.news-ticker-container {
  border: 1px solid rgba(140, 0, 0, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(250, 247, 243, 0.88));
}

.news-ticker li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(107, 82, 62, 0.09);
}

.news-ticker li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media print, screen and (max-width: 960px) {
  .wrapper.page-shell {
    padding-top: 74px;
  }
  .section-block {
    margin-bottom: 20px;
  }
  .card {
    padding: 28px 24px;
  }
}
/* Shared dark-mode treatment for every page. */
html[data-theme=dark] body {
  background: radial-gradient(circle at top left, rgba(255, 183, 177, 0.08), transparent 30rem), #161212;
}

html[data-theme=dark] .card,
html[data-theme=dark] .sidebar-card {
  background: rgba(31, 25, 24, 0.96);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 32px -26px rgba(0, 0, 0, 0.65);
}

html[data-theme=dark] .card-feature,
html[data-theme=dark] .news-ticker-container {
  background: linear-gradient(145deg, rgba(39, 30, 29, 0.98), rgba(28, 23, 22, 0.98));
}

html[data-theme=dark] .news-ticker li {
  border-color: rgba(255, 255, 255, 0.1);
}

/*# sourceMappingURL=style.css.map */