:root {
  --cardinal: #a31f34;
  --cardinal-hover: #8c1929;
  --ink: #18181b;
  --text: #2f3440;
  --muted: #6b7280;
  --line: #e4e7ec;
  --line-soft: #eef0f3;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --media-bg: #f8f9fb;
  --very-light-gray: #f1f1f1;
  --light-gray: #c2c0bf;
  --dark-gray: #8a8b8c;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Lato", "Helvetica Neue", Ubuntu, Arial, PingFang, SimHei, sans-serif;
  font-size: 15px;
  line-height: 1.75em;
  color: var(--ink);
  font-weight: normal;
  background: var(--surface-soft);
}

body .container,
body .container-fluid {
  max-width: 900px;
  background: var(--surface);
  padding: 40px 30px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
}

body .row {
  margin-left: 0;
  margin-right: 0;
}

b.zh {
  font-weight: 900;
}

a {
  color: var(--cardinal);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #8c1929;
  text-decoration: underline;
}

abbr[title] {
  text-decoration: none;
  text-decoration-skip-ink: auto;
  transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

.section-item {
  padding: 22px 24px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-item:hover {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.section-head {
  padding-top: 16px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 600;
  font-size: 22px;
  display: inline-block;
  letter-spacing: 0;
  color: var(--ink);
}

.section-sub {
  padding-left: 6px;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .section-sub {
    padding-left: 0px;
  }
  
  body .container,
  body .container-fluid {
    padding: 20px 15px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  
  .section-item {
    padding: 16px;
  }
}

.col-wrapper {
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sec-wrapper {
  margin-top: 30px;
  margin-bottom: 20px;
}

/*-----------------
 * Home
 *-----------------*/

.home-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 0 !important;
  margin-bottom: 30px !important;
  padding-bottom: 30px !important;
}

.home-wrapper .picture img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.home-wrapper .picture img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.home-wrapper .picture .credit {
  font-size: 10px;
  color: var(--black);
  visibility: hidden;
}

/* .home-wrapper .picture .credit a {
  font-size: 10px;
  color: var(--black);
  visibility: hidden;
} */

/* .creditmain {
  font-size: 10px;
  color: var(--black);
  display: block;
}

.creditmain a {
  font-size: 10px;
  color: var(--black);
  display: block;
} */

/* 
.home-wrapper .picture {
  font-size: 10px;
  color: var(--blakc);
}

.home-wrapper .picture a {
  font-size: 10px;
  color: var(--black);
}

.credit {
  font-size: 10px;
  color: var(--black);
}

.credit a {
  font-size: 10px;
  color: var(--black);
} */

.home-wrapper .description {
  padding-top: 30px;
}

.home-wrapper .description .name {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2em;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

@media (min-width: 576px) {
  .home-wrapper .description {
    padding-top: 0;
    padding-left: calc(20px + 5%);
  }
}

.home-wrapper .social-icon {
  margin-top: 15px;
  margin-bottom: 0;
  padding: 0;
  display: block;
}

.home-wrapper .social-icon li {
  display: inline-block;
  margin: 0 2px;
}

.home-wrapper .social-icon li a {
  display: block;
  color: #1a1a1a;
  font-size: 16px;
  width: 36px;
  height: 36px;
  text-align: center;
  border-radius: 8px;
  border: 2px solid var(--very-light-gray);
  line-height: 32px;
  transition: all 0.2s ease;
  background: white;
}

.home-wrapper .social-icon li a:hover {
  border-color: var(--cardinal);
  color: var(--cardinal);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(163, 31, 52, 0.15);
}

.home-wrapper .interests {
  padding-top: 20px;
  margin-bottom: -20px;
}

@media (min-width: 992px) {
  .home-wrapper .interests {
    padding-top: 0;
    margin-bottom: 0;
  }
}

/*------------------
 * Bio
 *------------------*/

.bio-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 0 !important;
  margin-bottom: 10px !important;
}

.bio-wrapper .info,
.bio-wrapper .info:hover {
  color: black;
  text-decoration: none;
}

.bio-wrapper .zh-name:hover {
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.bio-wrapper .name-icon {
  font-size: 14px;
  margin-left: -4px;
  margin-right: -4px;
}

.bio-wrapper .section-item {
  padding-left: 32px;
  padding-right: 32px;
}

/*------------------
 * Name
 *------------------*/

.name-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 0 !important;
}

.name-wrapper .zh-a,
.name-wrapper .zh-a:hover {
  color: black;
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.name-wrapper .blockquote {
  font-size: 14px;
}

.name-wrapper .blockquote-footer {
  margin-top: 0px;
  font-size: 14px;
  padding-bottom: 0px;
}

.name-wrapper .blockquote-footer .zh-a,
.name-wrapper .blockquote-footer .zh-a:hover,
.name-wrapper .blockquote-footer .en-a,
.name-wrapper .blockquote-footer .en-a:hover {
  color: currentColor;
}

.name-wrapper .blockquote-footer .en-a,
.name-wrapper .blockquote-footer .en-a:hover {
  text-decoration: underline;
  border-bottom: none;
}

/*------------------
 * Publications
 *------------------*/

.pub-wrapper .title a {
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.pub-wrapper .title a:hover {
  color: var(--cardinal);
}

.pub-wrapper .title b {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.pub-wrapper abbr[title] {
  color: var(--light-gray);
  text-decoration: none;
}

.pub-wrapper abbr[title]:hover {
  color: var(--dark-gray);
  text-decoration: underline;
}

.pub-wrapper .link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px;
}

/* Venue (plain text, cardinal red, no pill) */
.pub-wrapper .link > .venue {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--cardinal);
  padding: 0 4px 0 0;
  transition: color 0.15s ease;
}

.pub-wrapper .link > .venue a {
  color: inherit;
  font-weight: inherit;
}

.pub-wrapper .link > .venue:hover,
.pub-wrapper .link > .venue a:hover {
  color: var(--cardinal-hover);
  text-decoration: none;
}

.pub-wrapper .link > .venue a:hover {
  color: inherit;
  text-decoration: none;
}

/* Action icon buttons (Homepage / Paper / Code / etc.) */
.pub-wrapper .link > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.pub-wrapper .link > a:hover {
  color: var(--cardinal);
  border-color: var(--cardinal);
  background: rgba(163, 31, 52, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.pub-wrapper .link i.bi {
  line-height: 1;
}

.pub-wrapper .highlight {
  color: var(--cardinal);
  font-weight: 600;
  margin-top: 4px;
}

.pub-wrapper .authors {
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 14.5px;
}

.pub-wrapper .authors a {
  color: var(--muted);
}

.pub-wrapper .authors a:hover {
  color: var(--ink);
}

.pub-wrapper .authors me {
  color: var(--ink);
  font-weight: 600;
}

.pub-wrapper em {
  color: var(--text);
}

.pub-wrapper .figure img,
.pub-wrapper .figure video {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.pub-wrapper .figure img:hover,
.pub-wrapper .figure video:hover {
  transform: scale(1.02);
}

.pub-wrapper .figure {
  padding-right: 20px;
}

@media (max-width: 767.98px) {
  .pub-wrapper .figure {
    display: none;
  }
}

/*------------------
 * Experience
 *------------------*/

.exp-wrapper .section-item {
  padding: 18px 22px;
}

.exp-wrapper .title {
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.5;
  word-wrap: break-word;
}

.exp-wrapper .title a {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
}

.exp-wrapper .title a:hover {
  color: var(--cardinal);
}

.exp-wrapper .info {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14.5px;
  margin-top: 2px;
  word-wrap: break-word;
}

.exp-wrapper .info a {
  color: var(--muted);
}

.exp-wrapper .info a:hover {
  color: var(--cardinal);
}

.exp-wrapper .time {
  color: var(--muted);
  font-size: 13.5px;
}

.exp-wrapper .time fix {
  display: inline-block;
  min-width: 62px;
  text-align: left;
}

.exp-wrapper .location {
  color: var(--light-gray);
  font-size: 13.5px;
}

@media (min-width: 768px) {
  .exp-wrapper .time {
    text-align: right;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .exp-wrapper .location {
    display: none;
  }

  .exp-wrapper .time {
    margin-top: 4px;
  }
}

/*------------------
 * Footer
 *------------------*/

footer {
  font-size: 12px;
  text-align: center;
  padding-bottom: 30px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

footer a {
  color: currentColor;
}

footer a:hover {
  color: currentColor;
}

footer .left {
  text-align: right;
  padding-right: 5px;
}

footer .icon {
  font-size: 10px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

footer .right {
  text-align: left;
  padding-left: 5px;
}

.news {
  color: red; /* Set text color to red */
  background-color: #f1f1f1; /* Light gray background */
  padding: 10px; /* Optional padding for better spacing */
  border-radius: 4px; /* Optional rounded corners */
}
