body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
hr,
dl,
dd,
ol,
ul,
figure {
    margin: 0;
    padding: 0
}

hr {
    display: block;
    -webkit-margin-before: 0.5em;
    -webkit-margin-after: 0.5em;
    -webkit-margin-start: auto;
    -webkit-margin-end: auto;
    border-style: inset;
    border-width: 1px
}

body,
html {
    height: 100%
}

body {
    z-index: initial;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #111;
    background-color: #f9f9f9;
    -webkit-text-size-adjust: 100%
}

body:after {
    display: none;
    content: url("images/background/background1.JPG") url("images/background/background2.jpg")
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
ul,
ol,
dl,
figure,
.highlight {
    margin-bottom: 15px
}

img {
    max-width: 100%;
    vertical-align: middle
}

figure>img {
    display: block
}

figcaption {
    font-size: 14px
}

ul,
ol {
    margin-left: 30px
}

li>ul,
li>ol {
    margin-bottom: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300
}

a {
    color: #2a7ae2;
    text-decoration: none
}

a:visited {
    color: #1756a9
}

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

blockquote {
    color: #828282;
    border-left: 4px solid #e8e8e8;
    padding-left: 15px;
    font-size: 18px;
    letter-spacing: -1px;
    font-style: italic
}

blockquote>:last-child {
    margin-bottom: 0
}

pre,
code {
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    background-color: #eef
}

code {
    padding: 1px 5px
}

pre {
    padding: 8px 12px;
    overflow-x: scroll
}

pre>code {
    border: 0;
    padding-right: 0;
    padding-left: 0
}

.wrapper {
    max-width: -webkit-calc(1024px - (30px * 2));
    max-width: calc(1024px - (30px * 2));
    margin-right: auto;
    margin-left: auto;
    padding-right: 30px;
    padding-left: 30px
}

@media screen and (max-width: 800px) {
    .wrapper {
        max-width: -webkit-calc(1024px - (30px));
        max-width: calc(1024px - (30px));
        padding-right: 15px;
        padding-left: 15px
    }
}

.wrapper:after,
.footer-col-wrapper:after,
.cover:after,
.profile-wrapper:after {
    content: "";
    display: table;
    clear: both
}

.text-grey-light {
    color: #e8e8e8
}

.text-grey-bright {
    color: #fff
}

.text-grey {
    color: #828282
}

.site-header {
    border-top: 3px solid #9b3022;
    border-bottom: 1px solid #9b3022;
    min-height: 56px;
    position: relative
}

.site-title {
    font-size: 26px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif, Helvetica;
    line-height: 56px;
    letter-spacing: -1px;
    margin-bottom: 0;
    float: left
}

.site-title,
.site-title:visited {
    color: #002336
}

.site-nav {
    display: flex;
    justify-content: center; /* This centers the links horizontally */
    align-items: center;      /* Aligns them vertically */
    line-height: 56px;
    z-index: 3;
}

/* .site-nav {
    float: right;
    line-height: 56px;
    z-index: 3
} */

.site-nav .menu-icon {
    display: none
}

.site-nav .page-link {
    font-weight: 400;
    color: #002336;
    line-height: 1.5
}

.site-nav .page-link:not(:first-child) {
    margin-left: 20px
}

@media screen and (max-width: 600px) {
    .site-nav {
        position: absolute;
        top: 9px;
        right: 30px;
        background-color: #f9f9f9;
        border: 1px solid #e8e8e8;
        border-radius: 5px;
        text-align: right
    }

    .site-nav .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center
    }

    .site-nav .menu-icon>svg {
        width: 18px;
        height: 15px
    }

    .site-nav .menu-icon>svg path {
        fill: #113f7c
    }

    .site-nav .trigger {
        clear: both;
        display: none
    }

    .site-nav:hover .trigger {
        display: block;
        padding-bottom: 5px
    }

    .site-nav .page-link {
        font-weight: 400;
        display: block;
        padding: 5px 10px
    }
}

.site-footer {
    border-top: 1px solid #9b3022;
    padding: 30px 0
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 15px
}



.contact-list,
.social-media-list {
    list-style: none;
    margin-left: 0
}

.footer-col-wrapper {
    font-size: 15px;
    color: #828282;
    margin-left: -15px
}

.footer-col {
    float: left;
    margin-bottom: 15px;
    padding-left: 15px
}

.footer-col-1 {
    width: -webkit-calc(25% - (30px / 2));
    width: calc(25% - (30px / 2))
}

.footer-col-2 {
    width: -webkit-calc(35% - (30px / 2));
    width: calc(35% - (30px / 2))
}

.footer-col-3 {
    width: -webkit-calc(40% - (30px / 2));
    width: calc(40% - (30px / 2))
}

@media screen and (max-width: 800px) {

    .footer-col-1,
    .footer-col-2 {
        width: -webkit-calc(50% - (30px / 2));
        width: calc(50% - (30px / 2))
    }

    .footer-col-3 {
        width: -webkit-calc(100% - (30px / 2));
        width: calc(100% - (30px / 2))
    }
}

@media screen and (max-width: 600px) {
    .footer-col {
        float: none;
        width: -webkit-calc(100% - (30px / 2));
        width: calc(100% - (30px / 2))
    }
}

.page-content {
    padding: 30px 0
}

.text-center {
    text-align: center
}

.sm-heading {
    font-size: 20px;
    font-color: #9b3022;
    font-weight: 300
}

.md-heading {
    font-size: 26px;
    font-color: #9b3022;
    font-weight: 400
}

.lg-heading {
    font-size: 30px;
    font-color: #9b3022;
    font-weight: 600
}

.custom-button {
    font-size: 20px; /* Larger font size */
    background-color: transparent; /* Transparent background */
    border: none; /* Remove border */
    cursor: pointer; /* Pointer cursor on hover */
    color: #0077B5; /* Text color */
    padding: 5px 5px; /* Add padding */
    outline: none; /* Remove focus outline */
}

.custom-button:hover {
    color: #0056b3; /* Darker color on hover */
    text-decoration: none; /* Remove underline on hover */
    transition: color 0.3s ease; /* Smooth hover effect */
}


.button {
    padding: 10px;
    margin-top: 25px
}

.button a {
    border: solid 1px #e0e0e0;
    border-radius: 0.2rem;
    color: #868686;
    display: inline-block;
    text-align: center;
    padding: 0.5rem 2.0rem;
    text-decoration: none
}

.button em {
    border: solid 1px #e0e0e0;
    border-radius: 0.2rem;
    color: #868686;
    display: inline-block;
    text-align: center;
    padding: 0.5rem 0.9rem
}

.button>.heading>a:hover {
    color: #fff;
    background-color: #292929;
    border: solid 1px #292929
}

.highlight {
    background: #fff
}

.highlight .c {
    color: #998;
    font-style: italic
}

.highlight .err {
    color: #a61717;
    background-color: #e3d2d2
}

.highlight .k {
    font-weight: bold
}

.highlight .o {
    font-weight: bold
}

.highlight .cm {
    color: #998;
    font-style: italic
}

.highlight .cp {
    color: #999;
    font-weight: bold
}

.highlight .c1 {
    color: #998;
    font-style: italic
}

.highlight .cs {
    color: #999;
    font-weight: bold;
    font-style: italic
}

.highlight .gd {
    color: #000;
    background-color: #fdd
}

.highlight .gd .x {
    color: #000;
    background-color: #faa
}

.highlight .ge {
    font-style: italic
}

.highlight .gr {
    color: #a00
}

.highlight .gh {
    color: #999
}

.highlight .gi {
    color: #000;
    background-color: #dfd
}

.highlight .gi .x {
    color: #000;
    background-color: #afa
}

.highlight .go {
    color: #888
}

.highlight .gp {
    color: #555
}

.highlight .gs {
    font-weight: bold
}

.highlight .gu {
    color: #aaa
}

.highlight .gt {
    color: #a00
}

.highlight .kc {
    font-weight: bold
}

.highlight .kd {
    font-weight: bold
}

.highlight .kp {
    font-weight: bold
}

.highlight .kr {
    font-weight: bold
}

.highlight .kt {
    color: #458;
    font-weight: bold
}

.highlight .m {
    color: #099
}

.highlight .s {
    color: #d14
}

.highlight .na {
    color: teal
}

.highlight .nb {
    color: #0086B3
}

.highlight .nc {
    color: #458;
    font-weight: bold
}

.highlight .no {
    color: teal
}

.highlight .ni {
    color: purple
}

.highlight .ne {
    color: #900;
    font-weight: bold
}

.highlight .nf {
    color: #900;
    font-weight: bold
}

.highlight .nn {
    color: #555
}

.highlight .nt {
    color: navy
}

.highlight .nv {
    color: teal
}

.highlight .ow {
    font-weight: bold
}

.highlight .w {
    color: #bbb
}

.highlight .mf {
    color: #099
}

.highlight .mh {
    color: #099
}

.highlight .mi {
    color: #099
}

.highlight .mo {
    color: #099
}

.highlight .sb {
    color: #d14
}

.highlight .sc {
    color: #d14
}

.highlight .sd {
    color: #d14
}

.highlight .s2 {
    color: #d14
}

.highlight .se {
    color: #d14
}

.highlight .sh {
    color: #d14
}

.highlight .si {
    color: #d14
}

.highlight .sx {
    color: #d14
}

.highlight .sr {
    color: #009926
}

.highlight .s1 {
    color: #d14
}

.highlight .ss {
    color: #990073
}

.highlight .bp {
    color: #999
}

.highlight .vc {
    color: teal
}

.highlight .vg {
    color: teal
}

.highlight .vi {
    color: teal
}

.highlight .il {
    color: #099
}

.cover {
    max-width: 100%;
    height: 320px;
    z-index: initial;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0px;
    padding-left: 0px
}

@media screen and (max-width: 800px) {
    .cover {
        max-width: -webkit-calc(1024px - (30px));
        max-width: calc(1024px - (30px));
        padding-right: 15px;
        padding-left: 15px
    }
}

@media screen and (max-width: 600px) {
    .cover {
        height: 400px
    }
}

.shallow-bg {
    /* background-image: url("images/background/background1.JPG"); */
    /* background-image: url("images/background/background_hkust_2.jpg"); */
    background-image: url("images/Yalu_River.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center
}

.deep-bg {
    background-image: url("images/background/background2.JPG");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center
}

.profile-wrapper {
    border-radius: 25px;
    position: relative;
    top: 20%;
    width: 600px;
    margin-left: auto;
    margin-right: auto
}

@media screen and (max-width: 600px) {
    .profile-wrapper {
        top: 5%;
        border-radius: 25px;
        position: relative;
        width: -webkit-calc(90% - (30px / 2));
        width: calc(90% - (30px / 2));
        margin-left: auto;
        margin-right: auto
    }
}

.wrapper-light {
    background-color: rgba(255, 255, 255, 0.8)
}

.wrapper-dark {
    background-color: rgba(150, 150, 150, 0.8)
}

.profile-col {
    float: left !important;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: center
}

.profile-col-1 {
    width: -webkit-calc(40% - (30px / 2));
    width: calc(40% - (30px / 2))
}

.profile-col-2 {
    width: -webkit-calc(60% - (30px / 2));
    width: calc(60% - (30px / 2))
}

@media screen and (max-width: 800px) {

    .profile-col-1,
    .profile-col-2 {
        width: -webkit-calc(50% - (30px / 2));
        width: calc(50% - (30px / 2))
    }
}

@media screen and (max-width: 600px) {
    .profile-col {
        position: relative;
        margin: 10px auto;
        float: none;
        width: -webkit-calc(100%);
        width: calc(100%)
    }
}

.circle-img {
    margin: 0px auto;
    width: 168px;
    border-width: 4px;
    border-style: solid;
    border-radius: 50%
}

.border-dark {
    border-color: #292929
}

.border-bright {
    border-color: #fff
}

.border-light {
    border-color: #e8e8e8
}

.circle-img-light {
    margin: 0px auto;
    width: 168px;
    border-width: 3px;
    border-style: solid;
    border-radius: 50%
}

#my-name {
    font-size: 32px;
    font-weight: bold;
    color: #292929
}

#my-title {
    font-size: 20px;
    color: #292929;
    font-weight: 200
}

#my-email {
    font-size: 16px;
    color: #292929;
    font-weight: 160
}

#my-desc-title {
    font-size: 28px;
    color: #fff;
    font-weight: bold
}

#my-desc-content {
    font-size: 18px;
    color: #e8e8e8;
    font-weight: 200
}

@media screen and (max-width: 600px) {
    #my-title {
        display: none
    }
}

.preview {
    text-overflow: ellipsis;
    overflow: hidden
}

.hide {
    display: none
}

.maxim {
    background-color: #e8e8e8;
    margin: 10px 10px 10px 10px;
    padding: 10px 10px 10px 20px;
    border-radius: 4px;
    color: #002336
}

@media screen and (max-width: 600px) {
    .maxim {
        padding: 2px;
        margin: 2px
    }
}

.maxim>div>strong,
.maxim>p>strong,
.maxim>strong {
    color: #9b3022
}

.maxim>div>b,
.maxim>p>b,
.maxim>b {
    color: #00a200
}

.maxim>div>s,
.maxim>s {
    color: #00a200
}

.maxim>div>em,
.maxim>em {
    color: #002336;
    font-weight: 400
}

.maxim>div>i,
.maxim>i {
    color: #0077B5;
    font-weight: 400
}

.maxim>div>u,
.maxim>u {
    color: #4d004d;
    font-weight: 400
}

.maxim>div {
    margin: 5px
}

.text-right {
    text-align: right
}

.text-left {
    text-align: left
}

.text-center {
    text-align: center
}

hr.soft {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, transparent, rgba(0, 0, 0, 0.75), transparent);
    background-image: -moz-linear-gradient(left, transparent, rgba(0, 0, 0, 0.75), transparent);
    background-image: -ms-linear-gradient(left, transparent, rgba(0, 0, 0, 0.75), transparent);
    background-image: -o-linear-gradient(left, transparent, rgba(0, 0, 0, 0.75), transparent);
    padding: 0;
    margin: 0
}

.back-to-top {
    position: fixed;
    bottom: 2em;
    right: 0px;
    text-decoration: none;
    color: #35DACA;
    background-color: rgba(235, 235, 235, 0.8);
    font-size: 16px;
    font-weight: bold;
    padding: 1em;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0)
}

.back-to-top:hover {
    background-color: rgba(135, 135, 135, 0.5)
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-block
}

.icon-button {
    background-color: white;
    border-radius: 3.6rem;
    cursor: pointer;
    display: inline-block;
    font-size: 2.0rem;
    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%;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    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: #3B5998
}

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

.github span {
    background-color: #000
}

.orcid span {
    background-color: #A6CE39
}

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

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

.icon-button .icon-facebook {
    color: #3B5998
}

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

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

/* 1锔忊儯 ORCID 榛樿鍥炬爣棰滆壊 */
.icon-button.orcid i.ai-orcid {
    color: #A6CE39;
}

/* 2锔忊儯 ORCID hover锛氬浘鏍囧弽鑹叉垚鐧?*/
.icon-button.orcid:hover i.ai-orcid {
    color: white;
}

/* 3锔忊儯 ORCID hover锛氳儗鏅彉缁?*/
.icon-button.orcid span {
    background-color: #A6CE39;
}


.icon-button:hover .icon-twitter,
.icon-button:hover .icon-facebook,
.icon-button:hover .icon-github,
.icon-button:hover .icon-linkedin {
    color: white
}
/* ===== Section wrapper ===== */
/* ===== timeline card override ===== */

.timeline-brief,
.timeline {
    font-family: 'Roboto', sans-serif, Helvetica;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 400;
}

.timeline-body {
    padding: 0;
}

.timeline-start {
    width: -webkit-calc(100% - 2 * (20px));
    width: calc(100% - 2 * (20px));
    text-align: center;
    padding: 20px;
}

.timeline-item {
    width: calc(100% - 40px); /* 璋冩暣瀹藉害锛岀Щ闄や负鏃堕棿杞撮鐣欑殑绌洪棿 */
    margin: 0 auto 20px auto; /* 灞呬腑鏄剧ず锛岀Щ闄ゅ乏杈硅窛 */
    padding: 20px;
    text-align: left;
    position: relative;
    /* 淇濈暀杈规鍜岄槾褰辨晥鏋?*/
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 鎮仠鏁堟灉 */
.timeline-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #bbb;
}

.timeline-item:before,
.timeline-item:nth-child(odd):before,
.timeline-item:nth-child(even):before,
.timeline-item:nth-child(odd):after,
.timeline-item:nth-child(even):after,
.timeline > .timeline-body > .timeline-item:last-child:after,
.timeline-start:after {
    display: none;
}

.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    margin: 0 auto 20px auto;
    padding: 20px;
    text-align: left;
    border-left: none; /* 绉婚櫎宸﹁竟妗?*/
    border-right: none;
}

/* 鏂板鏈烘瀯琛屾牱寮?*/
.timeline-org {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 600;
    color: #113f7c;
}

.timeline-org .social-icon {
    margin-right: 10px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.timeline-date {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #9b3022;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.title-note {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    text-align: right;
    margin-left: auto;
    margin-left: 10px;
    white-space: nowrap;
}

.timeline-desc {
    font-size: 18px;
    font-weight: 200;
}

.timeline-host {
    font-size: 16px;
    font-weight: 400;
}

/* 绉婚櫎鏈€鍚庝竴涓」鐩殑鐗规畩鏍峰紡 */
.timeline > .timeline-body > .timeline-item:last-child:nth-child(even),
.timeline > .timeline-body > .timeline-item:last-child:nth-child(odd) {
    vertical-align: middle;
    min-height: auto; /* 绉婚櫎鍥哄畾楂樺害 */
    border-left: none; /* 绉婚櫎铏氱嚎杈规 */
    border-right: none;
}

@media screen and (max-width: 600px) {
    .timeline-start {
        min-height: auto; /* 绉婚櫎鍥哄畾楂樺害 */
        padding: 20px;
        text-align: center;
        border-left: none; /* 绉婚櫎铏氱嚎杈规 */
        width: calc(100% - 40px);
        margin: 0 auto 20px auto;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        min-height: 0;
        text-align: left;
        border-left: none; /* 绉婚櫎宸﹁竟妗?*/
        border-right: none;
        width: calc(100% - 40px);
        padding: 15px;
        margin: 0 auto 20px auto;
    }

    .timeline > .timeline-body > .timeline-item:last-child:nth-child(odd),
    .timeline > .timeline-body > .timeline-item:last-child:nth-child(even) {
        min-height: 0;
        text-align: left;
        border-left: none; /* 绉婚櫎宸﹁竟妗?*/
        border-right: none;
        width: calc(100% - 40px);
        padding: 15px;
        margin: 0 auto 20px auto;
    }

    .timeline-org {
        font-size: 18px;
    }
    
    .timeline-org .social-icon {
        width: 28px;
        height: 28px;
    }

    .timeline-date {
        font-size: 14px;
    }

    .timeline-title {
        font-size: 18px;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
        width: 100%;
    }

    .title-note {
        font-size: 14px;
        text-align: right;
        margin-left: auto;
        margin-top: 2px;
        white-space: nowrap;
    }

    .timeline-desc {
        font-size: 14px;
    }

    .timeline-host {
        font-size: 12px;
    }
}

/* .timeline-brief,
.timeline {
    font-family: 'Roboto', sans-serif, Helvetica;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 400
}

.timeline-body {
    padding: 0
}

.timeline-start {
    width: -webkit-calc(100% - 2 * (20px));
    width: calc(100% - 2 * (20px));
    text-align: center;
    padding: 20px
}

.timeline-item:before {
    width: 11px;
    height: 11px;
    background: #333;
    content: "";
    display: block;
    position: absolute;
    border-radius: 5px
}

.timeline-item {
    width: -webkit-calc(50% - (20px));
    width: calc(50% - (20px));
    position: relative
}

.timeline-item:nth-child(odd):before {
    left: -8px
}

.timeline-item:nth-child(odd):after {
    left: -8px;
    bottom: 0
}

.timeline-item:nth-child(odd) {
    margin-left: 50%;
    padding-left: 20px;
    border-left: 5px solid #333;
    text-align: left
}

.timeline-item:nth-child(even) {
    margin-right: -webkit-calc(50% + (20px));
    margin-right: calc(50% + (20px));
    padding-right: 20px;
    border-right: 5px solid #333;
    text-align: right
}

.timeline-item:nth-child(even):before {
    right: -8px
}

.timeline-item:nth-child(even):after {
    right: -8px
}

.timeline-date {
    font-size: 16px;
    font-weight: 600;
    color: #113f7c
}

.timeline-title {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #9b3022
}

.timeline-desc {
    font-size: 16px;
    font-weight: 200
}

.timeline-host {
    font-size: 14px;
    font-weight: 400
}

.timeline>.timeline-body>.timeline-item:last-child:after {
    bottom: 0;
    width: 11px;
    height: 11px;
    background: #333;
    content: "";
    display: block;
    position: absolute;
    border-radius: 5px
}

.timeline>.timeline-body>.timeline-item:last-child:nth-child(even) {
    vertical-align: middle;
    min-height: 200px;
    border-right: 5px dashed #333
}

.timeline>.timeline-body>.timeline-item:last-child:nth-child(odd) {
    vertical-align: middle;
    min-height: 200px;
    border-left: 5px dashed #333
}

@media screen and (max-width: 600px) {
    .timeline-start {
        min-height: 50px;
        padding: 0 0 0 5px;
        text-align: left;
        border-left: 5px dashed #333;
        width: 100%;
        padding-left: 5px;
        margin-left: 5px
    }

    .timeline-start:after {
        left: 17px;
        width: 11px;
        height: 11px;
        background: #333;
        content: "";
        display: block;
        position: absolute;
        border-radius: 5px
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        min-height: 0;
        text-align: left;
        border-left: 5px solid #333;
        border-right: 0px;
        width: 100%;
        padding-left: 5px;
        margin-left: 5px;
        margin-right: 0px;
        padding-right: 0px
    }

    .timeline>.timeline-body>.timeline-item:last-child:nth-child(odd),
    .timeline>.timeline-body>.timeline-item:last-child:nth-child(even) {
        min-height: 0;
        text-align: left;
        border-left: 5px solid #333;
        border-right: 0px;
        width: 100%;
        padding-left: 5px;
        margin-left: 5px;
        margin-right: 0px;
        padding-right: 0px
    }

    .timeline-item:before {
        left: -8px
    }

    .timeline-item:after {
        left: -8px
    }

    .timeline-date {
        font-size: 14px
    }

    .timeline-title {
        font-size: 16px
    }

    .timeline-desc {
        font-size: 12px
    }

    .timeline-host {
        font-size: 10px
    }
} */

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

.toy-list>li {
    margin-bottom: 30px
}

.toy-heading {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.5;
    border-bottom: 2px solid #424242
}

.toy-item {
    border: thin solid #c0c0c0;
    text-align: center
}

.toy-meta {
    font-size: 14px;
    color: #828282
}

.toy-link {
    display: block;
    font-size: 24px
}

.toy-header {
    margin-bottom: 30px
}

.toy-title {
    font-size: 42px;
    letter-spacing: -1px;
    line-height: 1
}

@media screen and (max-width: 800px) {
    .toy-title {
        font-size: 36px
    }
}

.toy-content {
    margin-bottom: 30px
}

.toy-content h2 {
    font-size: 32px
}

@media screen and (max-width: 800px) {
    .toy-content h2 {
        font-size: 28px
    }
}

.toy-content h3 {
    font-size: 26px
}

@media screen and (max-width: 800px) {
    .toy-content h3 {
        font-size: 22px
    }
}

.toy-content h4 {
    font-size: 20px
}

@media screen and (max-width: 800px) {
    .toy-content h4 {
        font-size: 18px
    }
}

.count-down-digit {
    font-size: 28px
}

@media screen and (max-width: 800px) {
    .count-down-digit {
        font-size: 20px
    }
}

@media screen and (max-width: 600px) {
    .count-down-digit {
        font-size: 24px
    }
}

.count-down-heading {
    font-size: 50px
}

@media screen and (max-width: 800px) {
    .count-down-heading {
        font-size: 40px
    }
}

@media screen and (max-width: 600px) {
    .count-down-heading {
        font-size: 30px
    }
}

.count-down {
    width: 100%;
    height: 40%;
    text-align: center;
    font-size: 20px
}

.hidden {
    display: none
}

li.float-right {
    float: right
}

li.float-left {
    float: left
}

div.paginate-container {
    background: #f9f9f9;
    padding: 1rem;
    margin-top: 3rem;
    border-radius: 0.2rem;
    text-align: center;
    width: -webkit-calc(100% - 2rem);
    width: calc(100% - 2rem)
}

div.paginate-container ul {
    width: 100%;
    margin: 0px;
    padding-left: 0px
}

.pagination>ul,
.pagination>ul>li {
    list-style: none;
    display: inline-block;
    padding-left: 0px
}

.pagination>ul>li:hover a {
    color: #fff;
    background-color: #292929;
    border: solid 1px #292929
}

.pagination>ul>li.active a {
    color: #fff;
    background-color: #292929;
    border: solid 1px #292929
}

.pagination>ul>li.deactive a {
    background-color: #e8e8e8;
    border: solid 1px #f2f2f2
}

.pagination>ul>li a {
    border: solid 1px #e0e0e0;
    border-radius: 0.2rem;
    color: #868686;
    display: inline-block;
    text-align: center;
    padding: 0.5rem 0.9rem
}

.pagination>ul>li em {
    border: solid 1px #e0e0e0;
    border-radius: 0.2rem;
    color: #868686;
    display: inline-block;
    text-align: center;
    padding: 0.5rem 0.9rem
}

div.paginate-container li:first-child a {
    display: inline-block
}

div.paginate-container li:first-child a:after {
    content: "First page"
}

div.paginate-container li:nth-child(2) a {
    display: inline-block
}

div.paginate-container li:nth-child(3) a {
    display: inline-block
}

div.paginate-container li:nth-child(4) a {
    display: inline-block
}

div.paginate-container li:nth-child(5) a {
    display: inline-block
}

div.paginate-container li:nth-child(6) a {
    display: inline-block
}

div.paginate-container li:nth-child(7) a {
    display: inline-block
}

div.paginate-container li:nth-child(8) a {
    display: inline-block
}

div.paginate-container li:nth-child(9) a {
    display: inline-block
}

div.paginate-container li:nth-child(10) a {
    display: inline-block
}

div.paginate-container li:nth-child(11) a {
    display: inline-block
}

div.paginate-container li:nth-child(12) a {
    display: inline-block
}

div.paginate-container li:nth-child(2) a {
    display: inline-block
}

div.paginate-container li:nth-child(2) a:after {
    content: "<"
}

div.paginate-container li:last-child a {
    display: inline-block
}

div.paginate-container li:last-child a:after {
    content: ">"
}

div.paginate-container li:nth-last-child(2) a {
    display: inline-block
}

div.paginate-container li:nth-last-child(2) a:after {
    content: "Last page"
}

@media screen and (max-width: 800px) {
    div.paginate-container li:first-child {
        display: inline-block
    }

    div.paginate-container li:first-child a:after {
        content: "First"
    }

    div.paginate-container li:nth-child(2) {
        display: inline-block
    }

    div.paginate-container li:nth-child(2) a:after {
        content: "<"
    }

    div.paginate-container li:last-child {
        display: inline-block
    }

    div.paginate-container li:last-child a:after {
        content: ">"
    }

    div.paginate-container li:nth-last-child(2) {
        display: inline-block
    }

    div.paginate-container li:nth-last-child(2) a:after {
        content: "Last"
    }
}

@media screen and (max-width: 600px) {
    div.paginate-container li {
        display: none
    }

    div.paginate-container li:nth-child(2) a {
        display: inline-block
    }

    div.paginate-container li:nth-child(3) a {
        display: inline-block
    }

    div.paginate-container li:nth-child(4) a {
        display: inline-block
    }

    div.paginate-container li:nth-child(5) a {
        display: inline-block
    }

    div.paginate-container li.active {
        display: inline
    }

    div.paginate-container li:first-child {
        display: inline
    }

    div.paginate-container li:first-child a:after {
        content: "First"
    }

    div.paginate-container li:nth-last-child(2) {
        display: inline
    }

    div.paginate-container li:nth-last-child(2) a:after {
        content: "Last"
    }

    div.paginate-container li:nth-child(2) {
        display: inline
    }

    div.paginate-container li:nth-child(2) a:after {
        content: "<"
    }

    div.paginate-container li:last-child {
        display: inline
    }

    div.paginate-container li:last-child a:after {
        content: ">"
    }
}

.publications {
    max-width: -webkit-calc(100% - (30px / 2));
    max-width: calc(100% - (30px / 2));
    margin-top: 10px;
    font-family: 'Roboto', sans-serif, Helvetica
}

.pub-list {
    overflow: auto
}

.pub {
    /* border-top: thin solid #c0c0c0; */
    /* radius: 15px; */
    /* float: left !important; */
    margin-top: 5px;
    margin-bottom: 15px;
    /* padding-top: 15px; */
    overflow: auto
}

.pub-left {
    float: left;
    width: -webkit-calc(40% - (30px / 2));
    width: calc(40% - (30px / 2));
    text-align: center;
    margin-left: auto;
    margin-right: auto
}
.pub-left {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* .pub-left>.intro-img {
    width: 280px;
    border-style: solid;
    border-color: #9b3022
} */

/* .pub-left > .intro-img {
    width: 280px; /* Set your desired width */
    /* height: 130px; /* Set your desired height */
    /* border-style: solid;
    border-color: #9b3022;
    object-fit: contain; /* Ensures the image fills the container while maintaining aspect ratio */
    /* object-position: center; /* Centers the image inside the container */
/* } */
.pub-left > .intro-img {
    width: 280px;
    height: 130px;
    display: block;
    border: 2px solid #9b3022;
    background-color: #fff;
    object-fit: contain;
    object-position: center;
}

.pub-right {
    float: right;
    width: -webkit-calc(60% - (30px / 2));
    width: calc(60% - (30px / 2))
}

@media screen and (max-width: 800px) {

    .pub-left,
    .pub-right {
        float: none;
        margin: 10px auto;
        width: -webkit-calc(100% - (30px / 2));
        width: calc(100% - (30px / 2))
    }
}

@media screen and (max-width: 600px) {
    .pub {
        position: relative;
        margin: 10px auto;
        float: none;
        width: -webkit-calc(100% - (30px / 2));
        width: calc(100% - (30px / 2))
    }
}

.pub-right>.title {
    font-weight: 600
}

.pub-right>.authors>.author {
    color: #0077B5;
    font-weight: 400
}

.pub-right>.tags>.tag {
    color: #9b3022;
    font-weight: 500;
    font-size: 14px
}

.pub-right>.desc>p {
    margin: auto
}

.pub-right>.publish {
    float: right
}

.pub-right>.publish>.publisher {
    color: #002336;
    font-size: 16px
}

.pub-right>.publish>.status {
    color: #9b3022;
    font-weight: 800;
    font-size: 16px
}

@media screen and (max-width: 600px) {
    .pub-right>.publish>.status {
        display: none
    }
}

.pub-right>.publish>.place {
    color: #0077B5;
    font-weight: 500;
    font-size: 16px
}

@media screen and (max-width: 600px) {
    .pub-right>.publish>.place {
        display: none
    }
}

.bio {
    max-width: -webkit-calc(100% - (30px / 2));
    max-width: calc(100% - (30px / 2));
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto
}

@media screen and (max-width: 600px) {
    .bio {
        max-width: -webkit-calc(100% - (30px / 2));
        max-width: calc(100% - (30px / 2))
    }
}

.bio-body {
    margin: 5px;
    padding: 0px
}

.posts {
    max-width: -webkit-calc(96% - (30px / 2));
    max-width: calc(96% - (30px / 2));
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto
}

@media screen and (max-width: 600px) {
    .posts {
        max-width: -webkit-calc(100% - (30px / 2));
        max-width: calc(100% - (30px / 2))
    }
}

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

.post-list>li {
    margin-bottom: 30px
}

.post-item {
    border-top: thin solid #c0c0c0
}

.post-meta {
    font-size: 14px;
    color: #828282
}

.post-link {
    display: block;
    font-size: 24px
}

.post-header {
    margin-bottom: 30px
}

.post-title {
    font-size: 42px;
    letter-spacing: -1px;
    line-height: 1
}

@media screen and (max-width: 800px) {
    .post-title {
        font-size: 36px
    }
}

.post-content {
    margin-bottom: 30px
}

.post-content h2 {
    font-size: 32px
}

@media screen and (max-width: 800px) {
    .post-content h2 {
        font-size: 28px
    }
}

.post-content h3 {
    font-size: 26px
}

@media screen and (max-width: 800px) {
    .post-content h3 {
        font-size: 22px
    }
}

.post-content h4 {
    font-size: 20px
}

@media screen and (max-width: 800px) {
    .post-content h4 {
        font-size: 18px
    }
}

.project-header {
    max-width: -webkit-calc(96% - (30px / 2));
    max-width: calc(96% - (30px / 2))
}

@media screen and (max-width: 600px) {
    .project-header {
        max-width: -webkit-calc(100% - (30px / 2));
        max-width: calc(100% - (30px / 2))
    }
}

.project-header>h1 {
    font-size: 20pt;
    font-weight: 800;
    text-align: center
}

.project-header>.project-meta {
    font-size: 14px;
    color: #292929;
    float: right
}

.project-header>.project-contributors {
    margin-left: auto;
    margin-right: auto;
    width: -webkit-calc(96% - (30px / 4));
    width: -calc(96%-30px / 4)
}

.project-contributor {
    margin-left: 5pt;
    margin-right: 5pt;
    float: left;
    font-weight: 600;
    color: #0077B5
}

.footnote {
    font-size: 14px;
    color: #828282;
    float: left
}

.project-thumbnail,
.project-figure {
    margin-top: 10pt;
    margin-bottom: 10pt;
    margin: auto;
    width: -webkit-calc(96%);
    width: -calc(96%)
}

.project-figure>img {
    align: middle
}

.project-thumbnail>img {
    align: middle;
    border: solid
}

.project-desc {
    background-color: #e8e8e8;
    margin: 10px 10px 10px 10px;
    padding: 10px 10px 10px 20px;
    border-radius: 4px;
    color: #002336
}

@media screen and (max-width: 600px) {
    .project-desc {
        padding: 2px;
        margin: 2px
    }
}

.project-desc>div>strong,
.project-desc>p>strong,
.project-desc>strong {
    color: #9b3022
}

.project-desc>.tags {
    font-weight: 600
}

.project-desc>.tag,
.project-desc>.tags>.tag {
    color: #9b3022
}

.publisher {
    color: #00a200;
    font-size: 14px;
    font-weight: 600
}

.project-content {
    margin-bottom: 30px
}

.project-content h2 {
    font-size: 32px
}

@media screen and (max-width: 800px) {
    .project-content h2 {
        font-size: 28px
    }
}

.project-content h3 {
    font-size: 26px
}

@media screen and (max-width: 800px) {
    .project-content h3 {
        font-size: 22px
    }
}

.project-content h4 {
    font-size: 20px
}

@media screen and (max-width: 800px) {
    .project-content h4 {
        font-size: 18px
    }
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 4px 2px;  /* row gap 24px, column gap 32px */
    flex-wrap: wrap;
    width: 940px; /* 鎺у埗鏈€澶у搴︼紝2鍒楀竷灞€ */
    margin: 0 auto;
  }
  
  .github-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: white;
    margin-bottom: 2px;
    width: 430px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #333;
  }
  
  .github-card a {
    color: #1a1a1a;
    text-decoration: none;
  }
  
  .github-card a:hover {
    color: #2563eb;
    text-decoration: underline;
  }
  
  .github-card .repo-link {
    font-weight: 500;
    font-size: 14px;
  }
  
  .github-card .label {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 12px;
    color: #6b7280;
  }
  
  .github-card .description {
    margin-top: 8px;
    font-size: 11px;
    color: #6b7280;
  }
  
  .github-card .meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
  }
  
  .github-card .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #2563eb;
    border-radius: 50%;
    margin-right: 6px;
  }
  
  .github-card .meta a {
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    color: #6b7280;
  }
  
  .github-card .meta a:hover {
    color: #2563eb;
  }
  
  .github-card svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }
  .thesis-text {
    display: block;
    margin-left: 4.5em;
    margin-top: 0.2em;

    text-align: justify;      /* 涓ょ瀵归綈 */
    hyphens: auto;            /* 鉁?鑷姩鏂瘝 */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    line-height: 1.45;
}



.thesis-text a {
    color: inherit;              /* 缁ф壙鏂囧瓧棰滆壊 */
    text-decoration: none;
}

.thesis-text a:hover {
    text-decoration: underline;
}
/* ===== News (polished) ===== */
.news{
  --news-bg: #ffffff;
  --news-border: rgba(17, 24, 39, 0.08);
  --news-title: #111827;     /* 闈炵函榛?*/
  --news-text: #475569;      /* slate-600 */
  --news-muted: #64748b;     /* slate-500 */
  --news-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);

  --tag-paper-bg: rgba(99, 102, 241, 0.12);
  --tag-paper-fg: #4f46e5;

  --tag-research-bg: rgba(34, 197, 94, 0.12);
  --tag-research-fg: #16a34a;

  --tag-travel-bg: rgba(245, 158, 11, 0.16);
  --tag-travel-fg: #b45309;
}

.news-heading{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.news-subtitle{
  font-size: 0.62em;
  color: var(--news-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.news-icon{
  display: inline-flex;
  align-items: center;
  transform: translateY(5px);
}

.news-icon svg{
  width: 32px;   /* 浣犲珜灏忥細杩欓噷鎺у埗澶у皬 */
  height: 32px;
}

.news-feed{
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.news-item{
  background: var(--news-bg);
  border: 1px solid var(--news-border);
  border-radius: 16px;
  box-shadow: var(--news-shadow);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  font-size: 0.9em;
  flex-wrap: wrap;
}

.news-item .news-date,
.news-item .news-tag,
.news-item .news-title {
  display: inline;
}

.news-item .news-date {
  color: #666;
  font-weight: 500;
}

.news-item .news-tag {
  margin: 0 6px;
}

.news-item .news-title {
  color: var(--text-color);
}

.news-item .news-detail {
  color: #888;
  margin-left: 6px;
}

/* Remove left accent for single-line layout */
.news-item::before {
  display: none;
}

.news-meta{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 8px; /* leave space for accent bar */
}

.news-date{
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  color: #0f172a; /* slate-900 but not pure black */
  background: linear-gradient(135deg, rgba(15,23,42,0.06), rgba(15,23,42,0.02));
  border: 1px solid rgba(15,23,42,0.07);
}

.news-tag{
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag-paper{ background: var(--tag-paper-bg); color: var(--tag-paper-fg); }
.tag-research{ background: var(--tag-research-bg); color: var(--tag-research-fg); }
.tag-travel{ background: var(--tag-travel-bg); color: var(--tag-travel-fg); }

.news-content{
  display: grid;
  gap: 4px;
}

.news-title{
  color: var(--news-title);
  font-weight: 700;
  line-height: 1.25;
}

.news-detail{
  color: var(--news-text);
  line-height: 1.55;
}

/* responsive */
@media (max-width: 720px){
  .news-item{
    grid-template-columns: 1fr;
  }
  .news-meta{
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* optional: dark mode */
@media (prefers-color-scheme: dark){
  .news{
    --news-bg: rgba(17, 24, 39, 0.55);
    --news-border: rgba(148, 163, 184, 0.18);
    --news-title: #e5e7eb;
    --news-text: #cbd5e1;
    --news-muted: #94a3b8;
    --news-shadow: 0 10px 26px rgba(0,0,0,0.28);

    --tag-paper-bg: rgba(99, 102, 241, 0.18);
    --tag-paper-fg: #a5b4fc;

    --tag-research-bg: rgba(34, 197, 94, 0.18);
    --tag-research-fg: #86efac;

    --tag-travel-bg: rgba(245, 158, 11, 0.22);
    --tag-travel-fg: #fcd34d;
  }

  .news-date{
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(148,163,184,0.14), rgba(148,163,184,0.06));
    border: 1px solid rgba(148,163,184,0.18);
  }
}
#news{
  margin-bottom: 66px;   /* 浣犳兂鏇村ぇ灏辨敼鎴?32/40 */
}

/* 鍗曠嫭缁欐煇涓摼鎺ョ敤鐨勨€減aper tag鈥濋厤鑹?*/
.link-paper{
  color: #4f46e5;                 /* 瀵瑰簲 tag-paper 鐨勪富鑹?*/
  text-decoration-color: rgba(79,70,229,0.35);
  text-underline-offset: 2px;
}

.link-paper:hover{
  color: #4338ca;                 /* hover 鏇存繁涓€鐐癸紝涓嶅埡鐪?*/
  text-decoration-color: rgba(67,56,202,0.55);
}

.link-paper:visited{
  color: #4f46e5;                 /* 闃叉 visited 鍙樻垚鍒虹溂绱?*/
}

.link-research{
  color: #16a34a;  /* 瀵归綈 tag-research-fg */
  text-decoration-color: rgba(22,163,74,0.35);
  text-underline-offset: 2px;
}

.link-research:hover{
  color: #15803d;
  text-decoration-color: rgba(21,128,61,0.55);
}

.link-research:visited{
  color: #16a34a;  /* 閬垮厤 visited 鍙樼传 */
}


.link-paper-pill{
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;

  color: #4f46e5;
  background: rgba(99,102,241,0.12); /* 绫讳技 tag-paper-bg */
  border: 1px solid rgba(99,102,241,0.18);

  text-decoration: none;           /* 鑳跺泭閫氬父涓嶉渶瑕佷笅鍒掔嚎 */
}

.link-paper-pill:hover{
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.26);
  color: #4338ca;
}

.link-research-pill{
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;

  color: #16a34a;
  background: rgba(34,197,94,0.12); /* 瀵归綈 tag-research-bg */
  border: 1px solid rgba(34,197,94,0.18);

  text-decoration: none;
}

.link-research-pill:hover{
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.26);
  color: #15803d;
}

/* ===== 2026 Site Polish (cleaned) ===== */
:root{
  --ui-page-bg: #f7f9fc;
  --ui-page-overlay:
    radial-gradient(920px 420px at 8% -5%, rgba(37, 99, 235, 0.10), transparent 62%),
    radial-gradient(880px 420px at 96% 2%, rgba(14, 165, 233, 0.09), transparent 64%);
  --ui-header-bg: #f7f9fc;
  --ui-header-border: #9b3022;
  --ui-link: #1d4ed8;
  --ui-link-visited: #1e40af;
  --ui-text: #0f172a;
  --ui-muted: #475569;
  --ui-subtle: #64748b;

  --ui-section-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  --ui-section-border: rgba(15, 23, 42, 0.10);
  --ui-section-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --ui-section-shadow-hover: 0 24px 50px rgba(15, 23, 42, 0.12);

  --ui-card-bg: linear-gradient(180deg, #ffffff, #f9fbff);
  --ui-card-border: rgba(15, 23, 42, 0.10);
  --ui-card-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --ui-card-shadow-hover: 0 16px 30px rgba(15, 23, 42, 0.10);

  --ui-red: #8f2b22;
  --ui-red-hover: #6f1f18;

  --ui-tag-paper-bg: rgba(79, 70, 229, 0.20);
  --ui-tag-paper-border: rgba(79, 70, 229, 0.34);
  --ui-tag-paper-fg: #312e81;

  --ui-tag-research-bg: rgba(13, 148, 136, 0.14);
  --ui-tag-research-border: rgba(13, 148, 136, 0.30);
  --ui-tag-research-fg: #0f766e;

  --ui-tag-oral-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.10));
  --ui-tag-oral-border: rgba(251, 191, 36, 0.45);
  --ui-tag-oral-fg: #92400e;

  --ui-tag-highlight-bg: rgba(220, 38, 38, 0.14);
  --ui-tag-highlight-border: rgba(220, 38, 38, 0.30);
  --ui-tag-highlight-fg: #b91c1c;
}

html[data-theme="dark"]{
  --ui-page-bg: #0b1220;
  --ui-page-overlay:
    radial-gradient(940px 430px at 8% -5%, rgba(59, 130, 246, 0.18), transparent 62%),
    radial-gradient(900px 430px at 96% 2%, rgba(6, 182, 212, 0.13), transparent 64%);
  --ui-header-bg: #0b1220;
  --ui-header-border: #475569;
  --ui-link: #93c5fd;
  --ui-link-visited: #bfdbfe;
  --ui-text: #e6edf8;
  --ui-muted: #c8d3e6;
  --ui-subtle: #9fb0cb;

  --ui-section-bg: linear-gradient(180deg, rgba(19, 28, 49, 0.95), rgba(19, 28, 49, 0.86));
  --ui-section-border: rgba(148, 163, 184, 0.28);
  --ui-section-shadow: 0 20px 44px rgba(2, 6, 23, 0.52);
  --ui-section-shadow-hover: 0 28px 56px rgba(2, 6, 23, 0.64);

  --ui-card-bg: linear-gradient(180deg, rgba(24, 35, 61, 0.98), rgba(24, 35, 61, 0.90));
  --ui-card-border: rgba(148, 163, 184, 0.28);
  --ui-card-shadow: 0 12px 24px rgba(2, 6, 23, 0.44);
  --ui-card-shadow-hover: 0 18px 32px rgba(2, 6, 23, 0.55);

  --ui-red: #f2b8b2;
  --ui-red-hover: #ffd1cb;

  --ui-tag-paper-bg: rgba(99, 102, 241, 0.28);
  --ui-tag-paper-border: rgba(165, 180, 252, 0.46);
  --ui-tag-paper-fg: #c4b5fd;

  --ui-tag-research-bg: rgba(13, 148, 136, 0.28);
  --ui-tag-research-border: rgba(45, 212, 191, 0.45);
  --ui-tag-research-fg: #99f6e4;

  --ui-tag-oral-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
  --ui-tag-oral-border: rgba(251, 191, 36, 0.50);
  --ui-tag-oral-fg: #fcd34d;

  --ui-tag-highlight-bg: rgba(248, 113, 113, 0.22);
  --ui-tag-highlight-border: rgba(248, 113, 113, 0.40);
  --ui-tag-highlight-fg: #fca5a5;
}

body{
  background-color: var(--ui-page-bg);
  color: var(--ui-text);
}

a{
  color: var(--ui-link);
}

a:visited{
  color: var(--ui-link-visited);
}

a:hover{
  color: var(--ui-link);
}

.site-header{
  background-color: var(--ui-header-bg);
  border-top-color: var(--ui-header-border);
  border-bottom-color: var(--ui-header-border);
}

.site-nav .page-link,
.site-nav .page-link:visited{
  color: var(--ui-text);
}

.theme-toggle{
  margin-left: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.36);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.90));
  color: var(--ui-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  vertical-align: baseline;
  position: relative;
  top: 3px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.25s ease;
}

.theme-toggle:hover{
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.56);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.theme-toggle .theme-label{
  line-height: 1;
  font-weight: 700;
  color: #1e3a8a;
}

.theme-toggle .theme-icon{
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
}

.theme-toggle .theme-icon::before,
.theme-toggle .theme-icon::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

/* Sun core */
.theme-toggle .theme-icon::before{
  inset: 0;
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.1' fill='%23fbbf24'/%3E%3Cline x1='12' y1='2.2' x2='12' y2='5.2'/%3E%3Cline x1='12' y1='18.8' x2='12' y2='21.8'/%3E%3Cline x1='4.95' y1='4.95' x2='7.1' y2='7.1'/%3E%3Cline x1='16.9' y1='16.9' x2='19.05' y2='19.05'/%3E%3Cline x1='2.2' y1='12' x2='5.2' y2='12'/%3E%3Cline x1='18.8' y1='12' x2='21.8' y2='12'/%3E%3Cline x1='4.95' y1='19.05' x2='7.1' y2='16.9'/%3E%3Cline x1='16.9' y1='7.1' x2='19.05' y2='4.95'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 1px rgba(245, 158, 11, 0.35));
  opacity: 1;
  transform: scale(1);
}

/* Sun rays */
.theme-toggle .theme-icon::after{
  inset: 0;
  background: none;
  -webkit-mask: none;
  mask: none;
  box-shadow: none;
  opacity: 0;
  transform: none;
}

html[data-theme="dark"] .theme-toggle{
  border-color: rgba(147, 197, 253, 0.45);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.95));
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.5);
}

html[data-theme="dark"] .theme-toggle .theme-label{
  color: #dbeafe;
}

html[data-theme="dark"] .theme-toggle .theme-icon::before{
  inset: 2px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: inset -3px -1px 0 0 #cbd5e1;
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-toggle .theme-icon::after{
  inset: 2px 1px 2px 8px;
  transform: none;
  background: rgba(15, 23, 42, 0.96);
  -webkit-mask: none;
  mask: none;
  box-shadow: none;
  opacity: 1;
}

html[data-theme="dark"] .tag-oral::before{
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

html[data-theme="dark"] .tag-highlight::before{
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.page-content{
  background: var(--ui-page-overlay), var(--ui-page-bg);
}

.page-content .wrapper{
  max-width: calc(1240px - (24px * 2));
  padding-left: 24px;
  padding-right: 24px;
}

.page-content .wrapper > :is(#bio, #news, #publications, #timeline, #awards, #academicservices){
  box-sizing: border-box;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 24px 26px 26px;
  border: 1px solid var(--ui-section-border);
  border-radius: 22px;
  background: var(--ui-section-bg);
  box-shadow: var(--ui-section-shadow);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  color: var(--ui-text);
}

.page-content .wrapper > :is(#bio, #news, #publications, #timeline, #awards, #academicservices):hover{
  box-shadow: var(--ui-section-shadow-hover);
  transform: translateY(-1px);
}

.page-content .wrapper > :is(#bio, #news, #publications, #timeline, #awards, #academicservices) > .md-heading{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.28);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ui-text);
}

.page-content .wrapper > :is(#bio, #news, #publications, #timeline, #awards, #academicservices) > .md-heading > i{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.12));
  color: #1d4ed8;
  font-size: 14px;
}

#bio .bio-body,
#academicservices .bio-body,
.timeline-host,
.timeline-desc,
.news-detail,
#publications .pub-right > .authors,
#academicservices .reviewer-column{
  color: var(--ui-muted);
}

.timeline-date,
.title-note,
.news-subtitle{
  color: var(--ui-subtle);
}

#bio .bio-body p{
  line-height: 1.7;
}

#news{
  margin-bottom: 18px;
}

/* Publications */
#publications .custom-button{
  margin: 0;
  padding: 0 1px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ui-link);
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.3;
}

#publications .custom-button:hover{
  color: var(--ui-link);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#publications .pub-list{
  display: grid;
  gap: 14px;
}

#publications .pub{
  margin: 0;
  padding: 15px 16px 16px 16px;
  border: 1px solid var(--ui-card-border);
  border-radius: 18px;
  background: var(--ui-card-bg);
  box-shadow: var(--ui-card-shadow);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

#publications .pub:hover{
  box-shadow: var(--ui-card-shadow-hover);
  transform: translateY(-1px);
}

#publications .pub-left > .intro-img{
  border: 1.5px solid rgba(30, 41, 59, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

#publications .pub-right{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#publications .pub-right > .title{
  margin: 0;
  color: var(--ui-text);
  font-size: 1.06rem;
  line-height: 1.35;
}

#publications .pub-right > .title sup {
  vertical-align: super;
  font-size: 0.7em;
}

#publications .pub-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-bottom: 6px;
  gap: 20px;
}

#publications .pub-bottom .place {
  font-size: 0.9em;
  color: #666;
  text-align: right;
}

#publications .pub-bottom .tags {
  font-size: 0.85em;
}

#publications .pub-right > .authors{
  grid-area: authors;
  margin: 4px 0 0;
}

#publications .pub-right > .publish{
  grid-area: venue;
  float: none;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  margin-right: 0;
  line-height: 1.55;
  vertical-align: middle;
  white-space: nowrap;
}

#publications .pub-right > .publish > .place{
  color: var(--ui-link);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0;
  border: none;
  background: none;
  display: inline;
}

#publications .pub-right > .publish > .place:empty{
  display: none;
}

#publications .pub-right > .tags{
  grid-area: tags;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  vertical-align: middle;
}

#bio .bio-body p,
#news .news-detail,
#publications .pub-right > .title,
#publications .pub-right > .authors,
#timeline .timeline-org,
#timeline .timeline-title,
#awards .timeline-org,
#awards .timeline-title,
#academicservices .reviewer-column{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

#publications .pub-right > .tags > .tag{
  display: inline;
  margin: 0 2px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ui-red);
  font-weight: 600;
  text-decoration: none;
}

#publications .pub-right > .tags > .tag:hover{
  color: var(--ui-red-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Timeline */
#timeline .timeline-item,
#awards .timeline-item{
  border: 1px solid var(--ui-card-border);
  border-radius: 16px;
  background: var(--ui-card-bg);
  box-shadow: var(--ui-card-shadow);
}

#timeline .timeline-item:hover,
#awards .timeline-item:hover{
  box-shadow: var(--ui-card-shadow-hover);
}

#timeline .timeline-org{
  color: var(--ui-text);
}

#timeline .timeline-org a{
  color: var(--ui-link);
}

#timeline .timeline-org a:hover{
  text-decoration: none;
}

#timeline .timeline-title{
  color: var(--ui-red);
}

#awards .timeline-org{
  color: var(--ui-link);
}

#awards .timeline-title{
  color: var(--ui-red);
}

#awards .timeline-title .title-note{
  color: var(--ui-subtle);
}

/* News */
.news{
  --news-bg: var(--ui-card-bg);
  --news-border: var(--ui-card-border);
  --news-title: var(--ui-text);
  --news-text: var(--ui-muted);
  --news-muted: var(--ui-subtle);
  --news-shadow: var(--ui-card-shadow);
}

.news-date{
  color: var(--ui-text);
  background: rgba(100, 116, 139, 0.18);
  border-color: rgba(100, 116, 139, 0.30);
}

.tag-paper{
  background: var(--ui-tag-paper-bg);
  border: 1px solid var(--ui-tag-paper-border);
  color: var(--ui-tag-paper-fg);
}

.tag-research{
  background: var(--ui-tag-research-bg);
  border: 1px solid var(--ui-tag-research-border);
  color: var(--ui-tag-research-fg);
}

.tag-oral{
  background: var(--ui-tag-oral-bg);
  border: 1px solid var(--ui-tag-oral-border);
  color: var(--ui-tag-oral-fg);
  padding: 1px 6px;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

.tag-oral::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer{
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.tag-highlight{
  background: var(--ui-tag-highlight-bg);
  border: 1px solid var(--ui-tag-highlight-border);
  color: var(--ui-tag-highlight-fg);
  padding: 1px 6px;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.3);
}

.tag-highlight::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2.5s infinite;
}

.news-detail .link-paper-pill{
  color: var(--ui-tag-paper-fg);
  background: var(--ui-tag-paper-bg);
  border-color: var(--ui-tag-paper-border);
}

.news-detail .link-research-pill{
  color: var(--ui-tag-research-fg);
  background: var(--ui-tag-research-bg);
  border-color: var(--ui-tag-research-border);
}

/* News inline index links (non-pill, high-contrast editorial style) */
.news-detail .news-index-link{
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--ui-link);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(37, 99, 235, 0.36);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.news-detail .news-index-link:hover{
  color: var(--ui-link-visited);
  box-shadow: inset 0 -2px 0 rgba(30, 64, 175, 0.55);
}

/* Academic services */
#academicservices .bio-body{
  display: block;
}

#academicservices .service-block{
  margin-bottom: 14px;
  padding-bottom: 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--ui-card-border);
}

#academicservices .service-block:last-child{
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#academicservices .reviewer-title{
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ui-text);
  letter-spacing: 0.01em;
}

#academicservices .reviewer-section{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  margin-top: 0;
}

#academicservices .reviewer-column{
  position: relative;
  padding: 0 0 0 16px !important;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.94rem !important;
  font-weight: 500;
  color: var(--ui-muted);
  line-height: 1.6;
}

#academicservices .reviewer-column::before{
  content: "\2022" !important;
  position: absolute;
  left: 0 !important;
  top: 0 !important;
  color: var(--ui-link) !important;
  font-weight: 700;
}

/* Responsive */
@media screen and (max-width: 920px){
  .page-content .wrapper{
    max-width: calc(100% - 20px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-content .wrapper > :is(#bio, #news, #publications, #timeline, #awards, #academicservices){
    padding: 20px 18px 22px;
  }

  .page-content .wrapper > :is(#bio, #news, #publications, #timeline, #awards, #academicservices) > .md-heading{
    font-size: 24px;
  }
}

@media screen and (max-width: 900px){
  #publications .pub-right{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "authors"
      "venue"
      "tags";
    row-gap: 4px;
  }

  #publications .pub-right > .publish{
    justify-self: start;
    margin-top: 5px;
  }

  #publications .pub-right > .tags{
    margin-top: 0;
  }
}

@media screen and (max-width: 780px){
  #bio .bio-body > div[style*="width: 50%"]{
    width: 100% !important;
    float: none !important;
  }
}

@media screen and (max-width: 600px){
  .theme-toggle{
    margin-top: 6px;
    margin-left: 12px;
    padding: 5px 12px 5px 9px;
    gap: 6px;
    top: 0;
  }

  #academicservices .service-block{
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  #academicservices .reviewer-section{
    grid-template-columns: 1fr;
  }
}

.pub-toggle-group {
  float: right;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pub-toggle-btn {
  padding: 6px 16px;
  font-size: 0.8em;
  background: #f8f9fa;
  color: #6c757d;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.pub-toggle-btn:first-child {
  border-radius: 22px 0 0 22px;
}

.pub-toggle-btn:last-child {
  border-radius: 0 22px 22px 0;
}

.pub-toggle-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.pub-toggle-btn.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Fix sup tag display */
sup {
  vertical-align: super !important;
  font-size: smaller !important;
}

/* Rotating globe animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
