#main {
  max-width: 1500px;
}

.page {
  max-width: 1220px;
}

.page__inner-wrap {
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(37, 64, 108, 0.08);
  padding: 1.25rem 1.4rem;
}

.page__title {
  color: #1b2a41;
  font-weight: 800;
  line-height: 1.25;
}

.page__title .page-title-cn {
  font-size: 0.56em;
  font-weight: 600;
  color: #5f7ea6;
  margin-left: 0.28rem;
  vertical-align: middle;
}

.page__content {
  color: #334155;
}

.page__content p {
  line-height: 1.6;
  margin: 0 0 0.65rem;
}

.home-intro p,
.home-block p {
  text-align: justify;
  line-height: 1.68;
}

.home-block ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.page__content h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
  font-size: 1.4rem;
  color: #102a43;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #dbe6f4;
}

.page__content a {
  color: #245f72;
  text-underline-offset: 2px;
}

.home-intro,
.home-block {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #e7eef6;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  margin: 0.55rem 0 0.75rem;
}

.home-highlight {
  margin-top: 0.5rem;
  padding: 0.5rem 0.72rem;
  border-radius: 10px;
  border: 1px solid #cddff7;
  border-left: 4px solid #1f4e8c;
  background: #edf5ff;
  color: #1f3c68;
  font-weight: 600;
}

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

.news-list li {
  margin: 0.35rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.55;
}

.news-list li strong {
  color: #1f2937 !important;
  font-weight: 700 !important;
}

.news-list li > strong {
  display: inline-block;
  min-width: 4.25rem;
  color: #1f4f84 !important;
  vertical-align: top;
}

.news-list li strong:not(:first-of-type) {
  color: #1f2937 !important;
}

/* Chinese news block: tighter date width to avoid awkward wrap */
.news-cn-block .news-list {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.news-cn-block .news-list li {
  text-indent: 0 !important;
}

.news-cn-block .news-list li > strong {
  display: inline !important;
  min-width: 0 !important;
  margin-right: 0.12rem;
}

/* English homepage typography */
.about-en-page p,
.about-en-page li {
  text-align: justify;
  text-justify: inter-word;
}

.news-list li a {
  vertical-align: baseline;
}

@media (max-width: 640px) {
  .news-list li > strong {
    min-width: 4.1rem;
  }
}

.news-more {
  margin-top: 0.6rem;
}

.news-more summary {
  cursor: pointer;
  color: #245f72;
  font-weight: 700;
  list-style: none;
  display: inline-block;
  border: 1px solid #d9e3f2;
  background: #f5f8ff;
  border-radius: 999px;
  padding: 0.25rem 0.72rem;
}

.news-more summary::-webkit-details-marker {
  display: none;
}

.news-more[open] summary {
  background: #edf3ff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.35rem;
}

.tag-list span {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #d9e3f2;
  background: #f5f8ff;
  color: #2c4a72;
  font-size: 0.92rem;
  padding: 0.2rem 0.55rem;
}

.student-list {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.62rem;
}

.student-list li {
  display: block;
  padding: 0.62rem 0.72rem;
  padding-left: 3rem;
  border: 1px solid #dce9f8;
  border-left: 4px solid #5f86c9;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(37, 64, 108, 0.06);
  position: relative;
}

.student-list li:last-child {
  border-bottom: 1px solid #dce9f8;
}

.student-list li strong {
  color: #1b2a41;
  font-size: 0.98rem;
}

.student-list li::before {
  content: "👨‍🎓";
  position: absolute;
  left: 0.72rem;
  top: 0.64rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a73be 0%, #6e96dc 100%);
  border: 1px solid #3f68af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 61, 110, 0.2);
  line-height: 1;
}

.student-list li span {
  display: block;
  margin-top: 0.16rem;
  color: #4f6685;
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .student-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page__inner-wrap {
    border-radius: 12px;
    padding: 1rem 0.9rem;
  }

  .page__content h2 {
    font-size: 1.25rem;
  }
}

/* Top navigation — solid bar (参考学术主页常见顶栏) */
.masthead {
  border-bottom: 1px solid #274c77;
  background: linear-gradient(180deg, #2f5f93 0%, #2a5686 55%, #234d7b 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 8px rgba(16, 34, 54, 0.22);
}

.greedy-nav {
  background: transparent;
}

.greedy-nav a {
  color: #f3f8ff;
  font-weight: 600;
}

.greedy-nav a:hover {
  color: #d6eaff;
}

.greedy-nav button {
  color: #ffffff;
  border: 1px solid rgba(226, 238, 255, 0.55);
  border-radius: 8px;
  background: rgba(21, 49, 82, 0.35);
}

.greedy-nav button:hover {
  background: rgba(21, 49, 82, 0.55);
}

.greedy-nav .hidden-links {
  border: 1px solid #2a588d;
  border-radius: 10px;
  background: #2b5a8f;
  box-shadow: 0 8px 18px rgba(16, 34, 54, 0.28);
  overflow: hidden;
}

.greedy-nav .hidden-links a {
  color: #f4f8ff;
}

.greedy-nav .hidden-links a:hover {
  background: #234d7a;
  color: #ffffff;
}

.masthead__menu-item--lg a {
  color: #ffffff;
}

.masthead__menu-item--lg a {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.masthead__menu-item--lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.masthead__menu-item--lg > a {
  display: inline-block;
}

.masthead__lang-switch {
  margin-left: 0.1rem;
  font-size: 0.78rem;
  color: #d7e7fb;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.masthead__lang-switch i {
  margin-right: 0.2rem;
  opacity: 0.9;
}

.masthead__lang-switch .lang-link {
  color: #e8f2ff;
  font-weight: 500;
  text-decoration: none;
}

.masthead__lang-switch .lang-link:hover {
  color: #ffffff;
}

.masthead__lang-switch .lang-current {
  color: #ffffff;
  font-weight: 700;
}

.masthead__lang-switch .lang-sep {
  margin: 0 0.3rem;
  opacity: 0.75;
}

/* Sidebar author card refinement */
.sidebar.sticky {
  top: 1.1rem;
}

.author__avatar img,
img.author__avatar {
  border-radius: 14px;
  border: 1px solid #e7eef6;
  box-shadow: 0 6px 18px rgba(37, 64, 108, 0.1);
}

.author__content,
.author__urls-wrapper {
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.author__content {
  margin-top: 0.8rem;
}

.author__name {
  color: #102a43;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.author__name-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.92em;
  color: #486581;
  font-weight: 700;
}

.author__bio {
  color: #4b5563;
}

.author__urls-wrapper .btn {
  display: none;
}

.author__urls {
  margin: 0;
  padding: 0;
}

.author__urls li {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  margin: 0;
  padding: 0.22rem 0;
  line-height: 1.35;
  color: #334e68;
}

.author__urls li a {
  color: #245f72;
  display: flex;
  align-items: center;
  gap: 0.26rem;
  line-height: 1.35;
  width: 100%;
}

.author__urls li a:hover {
  color: #4b5cc4;
}

.author__urls .icon-pad-right {
  width: 1.05rem;
  min-width: 1.05rem;
  text-align: center;
  margin-right: 0;
  line-height: 1;
}

/* Publication list cards on archive pages */
.layout--archive .page__content > ul {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.layout--archive .page__content > ul > li {
  margin: 0.75rem 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid #e7eef6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  box-shadow: 0 2px 10px rgba(37, 64, 108, 0.05);
}

.layout--archive .page__content > ul > li:hover {
  border-color: #d3e1f2;
  box-shadow: 0 6px 16px rgba(37, 64, 108, 0.09);
}

.layout--archive .page__content > ul > li strong {
  color: #1b2a41;
}

.layout--archive .page__content > p {
  margin-bottom: 0.65rem;
}

.layout--archive .page__content h2 {
  margin-top: 1.15rem;
  margin-bottom: 0.55rem;
}

.selected-pubs-list {
  list-style: none;
  margin: 0.6rem 0 1rem;
  padding: 0;
}

.pub-highlight-card {
  border: 1px solid #d9e5f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 2px 10px rgba(37, 64, 108, 0.06);
  margin: 0.6rem 0;
}

.pub-highlight-card:first-child {
  border: 1px solid #b9d1f1;
  background: linear-gradient(180deg, #ecf5ff 0%, #ffffff 100%);
  box-shadow: 0 4px 14px rgba(37, 64, 108, 0.1);
}

.pub-highlight-card .pub-badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #b8d0ef;
  background: #eaf3ff;
  color: #1c4f87;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.12rem 0.5rem;
  margin-bottom: 0.35rem;
}

.pub-highlight-card h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
  color: #12314f;
}

.pub-highlight-card p {
  margin: 0.2rem 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #415a77;
}

.pub-topics {
  margin: 0.1rem 0 0.25rem;
}

.pub-topics span {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #325d8f;
  border: 1px solid #c8dbf4;
  background: #eef5ff;
  border-radius: 999px;
  padding: 0.06rem 0.45rem;
  margin-right: 0.24rem;
}

.pub-year-group {
  margin: 0.5rem 0 0.8rem;
}

.pub-year-group summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f4f84;
  margin-bottom: 0.4rem;
}

.corr-icon {
  display: inline-block;
  margin-left: 0.12rem;
  vertical-align: super;
  line-height: 1;
  color: #4d6f95;
  font-size: 0.66em;
}

.layout--archive .page__content > ul > li {
  border-left: 4px solid #d0def0;
}

.layout--archive .page__content > ul > li:nth-child(odd) {
  border-left-color: #bcd3ee;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.layout--archive .page__content li a {
  display: inline-block;
  background: linear-gradient(135deg, #2d6fc7 0%, #3f83dc 100%) !important;
  border: 1px solid #2f70c4 !important;
  border-radius: 999px;
  padding: 0.05rem 0.54rem;
  margin-right: 0.24rem;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.81rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(28, 73, 134, 0.14);
}

.layout--archive .page__content li a:hover {
  background: linear-gradient(135deg, #245fac 0%, #3575c7 100%) !important;
  border-color: #235ea9 !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.layout--archive .page__content li p {
  margin: 0.12rem 0;
  line-height: 1.42;
}

.layout--archive .page__content li p + p {
  margin-top: 0.06rem;
}

/* Publications year-group consistency */
.pub-year-group {
  margin: 0.35rem 0 0.65rem;
  padding: 0;
}

.pub-year-group summary {
  margin: 0;
  padding: 0.12rem 0 0.22rem;
}

.pub-year-group ul {
  list-style: none;
  margin: 0.12rem 0 0.25rem;
  padding: 0;
}

.pub-year-group li {
  margin: 0.5rem 0;
}

/* Compact spacing specifically inside year-collapsed publication groups */
.pub-year-group li {
  margin: 0.26rem 0 !important;
  padding: 0.16rem 0.2rem !important;
}

.pub-year-group li p {
  margin: 0.03rem 0 !important;
  line-height: 1.35 !important;
}

.pub-year-group li p + p {
  margin-top: 0.03rem !important;
}

/* Force compact spacing for items inside details groups */
.layout--archive details.pub-year-group > ul {
  margin: 0.12rem 0 0.2rem !important;
  padding-left: 0 !important;
}

.layout--archive details.pub-year-group > ul > li {
  margin: 0.5rem 0 !important;
  padding: 0.1rem 0.16rem !important;
  line-height: 1.28 !important;
  border-bottom: 1px solid #edf2f8;
}

.layout--archive details.pub-year-group > ul > li > p {
  margin: 0 !important;
  line-height: 1.28 !important;
}

.layout--archive details.pub-year-group > ul > li > p + p {
  margin-top: 0.02rem !important;
}

.layout--archive details.pub-year-group > ul > li:last-child {
  border-bottom: 0;
}

/* Decorate venue tag at line beginning, e.g. NeurIPS'24 */
.layout--archive .page__content li .venue-tag,
.layout--archive .page__content li span[style*="#666699"] {
  display: inline-block;
  background: linear-gradient(135deg, #4f6fd8 0%, #6f8ef0 100%) !important;
  border: 1px solid #4d6dd4 !important;
  border-radius: 0.45rem;
  padding: 0.06rem 0.48rem;
  margin-right: 0.32rem;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(45, 79, 168, 0.2) !important;
}

/* Decorate resource links such as [arxiv] [project] */
.layout--archive .page__content li a[href*="arxiv"],
.layout--archive .page__content li a[href*="openreview"],
.layout--archive .page__content li a[href*="github"],
.layout--archive .page__content li a[href*="project"],
.layout--archive .page__content li a[href*="ieeexplore"] {
  background: linear-gradient(135deg, #1f62b5 0%, #2e79d1 100%) !important;
  border-color: #1f61b3 !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* CCF rank tags with different colors */
.layout--archive .page__content .ccf-tag {
  display: inline-block;
  border-radius: 0.42rem;
  padding: 0.03rem 0.46rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-right: 0.24rem;
  vertical-align: baseline;
  border: 1px solid transparent;
}

.layout--archive .page__content .ccf-tag.ccf-a {
  background: #ffe8e8;
  border-color: #ffb6b6;
  color: #9f2020;
}

.layout--archive .page__content .ccf-tag.ccf-b {
  background: #fff3df;
  border-color: #ffd397;
  color: #935b00;
}

.layout--archive .page__content .ccf-tag.ccf-c {
  background: #e7f6ea;
  border-color: #bce6c4;
  color: #1e6f35;
}

/* Publications page tag style - force apply without layout wrapper dependency */
.page__content .venue-tag {
  display: inline-block !important;
  background: linear-gradient(135deg, #4a67d6 0%, #6b87f0 100%) !important;
  color: #ffffff !important;
  border: 1px solid #4563d0 !important;
  border-radius: 0.42rem !important;
  padding: 0.05rem 0.46rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  margin-right: 0.32rem !important;
  vertical-align: baseline !important;
}

.page__content .ccf-tag {
  display: inline-block !important;
  border-radius: 0.42rem !important;
  padding: 0.03rem 0.44rem !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0.2rem !important;
  border: 1px solid transparent !important;
}

.page__content .ccf-tag.ccf-a {
  background: #ffe5e5 !important;
  border-color: #ffb7b7 !important;
  color: #9b1f1f !important;
}

.page__content .ccf-tag.ccf-b {
  background: #fff1dc !important;
  border-color: #ffd59b !important;
  color: #915900 !important;
}

.page__content .ccf-tag.ccf-c {
  background: #e8f6e9 !important;
  border-color: #bfe6c3 !important;
  color: #1f6f36 !important;
}

.page__content .pub-year-group a,
.page__content .selected-pubs-list a {
  display: inline-block !important;
  background: linear-gradient(135deg, #1f62b5 0%, #2f79d1 100%) !important;
  border: 1px solid #1e60b2 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 0.04rem 0.52rem !important;
  margin-right: 0.22rem !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.page__content .pub-year-group a:hover,
.page__content .selected-pubs-list a:hover {
  background: linear-gradient(135deg, #1a559f 0%, #2a6dbc 100%) !important;
  border-color: #1a549d !important;
  color: #ffffff !important;
}

/* Funds page */
.funds-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.funds-list li {
  margin: 0.62rem 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid #deebf8;
  border-left: 4px solid #5f86c9;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(37, 64, 108, 0.06);
}

.funds-list .fund-name {
  color: #294a75;
  font-weight: 700;
  margin-bottom: 0.22rem;
}

.funds-list .fund-topic {
  color: #3d4e63;
  line-height: 1.5;
}

.funds-list .fund-period {
  display: inline-block;
  margin-top: 0.36rem;
  padding: 0.04rem 0.5rem;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #c8dbf6;
  color: #315a8f;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Blog posts page */
.layout--archive .archive__subtitle {
  margin-top: 1rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.3rem;
  color: #1d3e66;
  border-bottom: 1px solid #dbe7f6;
}

.layout--archive .list__item .archive__item {
  border: 1px solid #deebf8;
  border-left: 4px solid #5f86c9;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(37, 64, 108, 0.06);
  padding: 0.72rem 0.86rem;
  margin-bottom: 0.62rem;
}

.layout--archive .list__item .archive__item-title {
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.layout--archive .list__item .archive__item-title a {
  color: #1f4f84;
  text-decoration: none;
  font-weight: 700;
}

.layout--archive .list__item .archive__item-title a:hover {
  color: #2f73bc;
  text-decoration: underline;
}

.layout--archive .list__item .page__meta {
  margin: 0.15rem 0 0.35rem;
  color: #4d6585;
  font-size: 0.84rem;
}

.layout--archive .list__item .archive__item-excerpt p {
  margin: 0;
  color: #3d4e63;
  line-height: 1.52;
}

.blog-card-list {
  list-style: none;
  margin: 0.5rem 0 0.8rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 260px);
  gap: 0.85rem;
  justify-content: start;
}

.blog-card {
  border: 1px solid #dce9f8;
  border-left: 4px solid #5f86c9;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 3px 10px rgba(37, 64, 108, 0.06);
  padding: 0.8rem 0.95rem;
  width: 260px;
  height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card__title {
  margin: 0;
  line-height: 1.32;
  font-size: 1.05rem;
}

.blog-card__title a {
  color: #1f4f84;
  text-decoration: none;
  font-weight: 700;
}

.blog-card__title a:hover {
  color: #2f73bc;
  text-decoration: underline;
}

.blog-card__meta {
  display: inline-block;
  margin-top: 0.32rem;
  padding: 0.02rem 0.46rem;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #c8dbf6;
  color: #315a8f;
  font-size: 0.78rem;
  font-weight: 600;
}

.blog-card__excerpt {
  margin: 0.5rem 0 0.55rem;
  color: #3d4e63;
  line-height: 1.52;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.blog-card__link {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f62b5 0%, #2f79d1 100%);
  border: 1px solid #1e60b2;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.05rem 0.56rem;
  margin-top: auto;
  align-self: flex-start;
}

.blog-card__link:hover {
  background: linear-gradient(135deg, #1a559f 0%, #2a6dbc 100%);
  border-color: #1a549d;
  color: #ffffff;
}

/* Contact page */
.contact-card {
  margin-top: 0.55rem;
  border: 1px solid #deebf8;
  border-left: 4px solid #5f86c9;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 3px 10px rgba(37, 64, 108, 0.06);
  padding: 0.8rem 0.95rem;
}

.contact-row {
  padding: 0.42rem 0;
  border-bottom: 1px dashed #d8e5f4;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-label {
  display: inline-block;
  min-width: 6.2rem;
  color: #1f4f84;
  font-weight: 700;
}

.contact-value {
  color: #3d4e63;
}

.contact-value a {
  color: #245f72;
  text-decoration: none;
}

.contact-value a:hover {
  color: #2f73bc;
  text-decoration: underline;
}

.contact-row--qr {
  align-items: flex-start;
}

.contact-qr-block {
  margin-top: 0.75rem;
  text-align: center;
}

.contact-qr-title {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #1f4f84;
  font-weight: 700;
}

.contact-qr {
  display: block;
  width: 200px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #d7e6f8;
  box-shadow: 0 2px 8px rgba(37, 64, 108, 0.08);
  margin: 0 auto;
}

/* Portfolio page */
.portfolio-single-card {
  margin-top: 0.65rem;
  border: 1px solid #dce9f8;
  border-left: 4px solid #5f86c9;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 3px 10px rgba(37, 64, 108, 0.06);
  padding: 0.9rem 1rem;
}

.portfolio-single-card h2 {
  margin: 0 0 0.32rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.portfolio-single-card h2 a {
  color: #1f4f84;
  text-decoration: none;
}

.portfolio-single-card h2 a:hover {
  color: #2f73bc;
  text-decoration: underline;
}

.portfolio-single-card p {
  margin: 0 0 0.65rem;
  color: #3d4e63;
  line-height: 1.6;
}

.portfolio-single-btn {
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f62b5 0%, #2f79d1 100%);
  border: 1px solid #1e60b2;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.08rem 0.62rem;
}

.portfolio-single-btn:hover {
  background: linear-gradient(135deg, #1a559f 0%, #2a6dbc 100%);
  border-color: #1a549d;
  color: #ffffff;
}

/* Postgraduate page */
.postgraduate-block {
  margin: 0.9rem 0 1rem;
  padding: 0.05rem 0 0.35rem;
  border: 0;
  border-bottom: 1px dashed #d7e4f5;
  background: transparent;
  box-shadow: none;
}

.postgraduate-block h2 {
  margin: 0 0 0.42rem;
  padding: 0 0 0.18rem;
  border-bottom: 1px solid #dbe7f6;
  color: #1f4f84;
  font-size: 1.16rem;
}

.postgraduate-block p {
  margin: 0;
  line-height: 1.62;
  color: #3d4e63;
  text-align: justify;
}

.postgraduate-block ol {
  margin: 0.08rem 0 0;
  padding-left: 1.25rem;
}

.postgraduate-block li {
  margin: 0.2rem 0;
  color: #3d4e63;
  line-height: 1.55;
}

.postgraduate-highlight {
  margin: 0.3rem 0 0.9rem;
  padding: 0.42rem 0.66rem;
  border-radius: 8px;
  border: 1px solid #d5e4f8;
  border-left: 4px solid #1f4e8c;
  background: #f3f8ff;
  color: #1f3c68;
  font-weight: 600;
}

.postgraduate-note {
  margin-top: 0.8rem;
  padding: 0.5rem 0.66rem;
  border-radius: 8px;
  border: 1px solid #f3d2d2;
  border-left: 4px solid #cb5e5e;
  background: #fff7f7;
  color: #9b1f1f;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 980px) {
  .blog-card-list {
    grid-template-columns: repeat(2, 260px);
  }
}

@media (max-width: 640px) {
  .blog-card-list {
    grid-template-columns: 1fr;
  }

  .blog-card {
    width: 100%;
    max-width: 360px;
  }
}
