/* ==================== 全局与基础样式 ==================== */
html {
    background-color: #eeeeee;
}

body {
    font-family: Georgia, serif;
    color: #000;
    background-color: #ffffff;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 链接样式 ==================== */
a, a > tt {
    color: #224b8d;
    text-decoration: none;
}

a:hover {
    border-bottom: 1px #0156a3 dotted;
}

:focus-visible {
    outline: 2px solid #0156a3;
    outline-offset: 3px;
}

/* ==================== 标题区与顶部栏 ==================== */
div#toptitle {
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0;
    width: max-content;
    margin: 10px auto 20px;
    padding: 2px;
    border-radius: 17px;
    background-color: #e0e0e0;
}

.language-switch-group {
    margin-left: 0;
    margin-top: 0;
    display: inline-flex;
    background-color: transparent;
    padding: 0;
    border-radius: 13px;
    font-size: 12px;
    font-family: sans-serif;
}

.theme-toggle {
    min-width: 68px;
    padding: 5px 8px;
    border: 0;
    border-left: 1px solid #c4c4c4;
    border-radius: 0 13px 13px 0;
    background-color: transparent;
    color: #444444;
    font: 600 12px/1 sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.55);
    color: #0156a3;
}

.theme-toggle:focus-visible {
    outline: 2px solid #0156a3;
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: scale(0.96);
}

.language-switch-group .lang-btn {
    padding: 3px 10px;
    color: #666666 !important;
    border-radius: 13px;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.2s ease;
}

.language-switch-group .lang-btn:hover {
    color: #0156a3 !important;
    background-color: rgba(255, 255, 255, 0.5);
}

.language-switch-group .lang-btn.active {
    background-color: #ffffff;
    color: #0156a3 !important;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: default;
    pointer-events: none;
}





div#toptitle h1 {
    margin-bottom: 0.0em;
    padding-bottom: 0.1em;
    padding-top: 0;
    margin-top: 0.5em;
    border-bottom: none;
}

/* ==================== 标题样式（h1-h4） ==================== */
h1, h2, h3 {
    color: #0156a3;
    margin-top: 0.7em;
    margin-bottom: 0.5em;
    padding-bottom: 0.2em;
    line-height: 1.0;
    padding-top: 0.5em;
    border-bottom: 1px solid #aaaaaa;
}

h1 {
    font-size: 155%;
}

h2 {
    font-size: 125%;
    margin-top: 20px;
}

h2 + h3 {
    padding-top: 0.2em;
}

h3 {
    font-size: 110%;
    border-bottom: none;
}

h4 {
    color: #222222;
}

/* ==================== 文本与段落 ==================== */
em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

p {
    margin-top: 0.0em;
    margin-bottom: 0.8em;
    padding: 0;
    line-height: 1.3;
}

p + ul, p + ol {
    margin-top: -0.5em;
}

p + div.codeblock {
    margin-top: -0.6em;
}

/* ==================== 列表样式 ==================== */
ul, ol, dl {
    margin-top: 0.2em;
    padding-top: 0;
    margin-bottom: 0.8em;
}

ul {
    list-style-position: outside;
    list-style-type: square;
}

ul ul {
    padding-left: 10px;
}

ul ul li {
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 0;
}

ol {
    list-style-position: outside;
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

li {
    margin-top: 0.9em;
}

li p, dd p {
    margin-bottom: 0.3em;
}

/* ==================== 定义列表 ==================== */
dt {
    margin-top: 0.5em;
    margin-bottom: 0;
}

dl {
    margin-left: 20px;
}

dd {
    color: #222222;
}

dd > *:first-child {
    margin-top: 0;
}

/* ==================== 代码块与信息块 ==================== */
div.codeblock, div.infoblock {
    margin-right: 0%;
    margin-top: 1.2em;
    margin-bottom: 1.3em;
}

div.codeblock > div.blockcontent {
    background: #f6f6f6;
}

div.infoblock p {
    margin-bottom: 0em;
}

div.infoblock li p, div.infoblock dd p {
    margin-bottom: 0.5em;
}

div.infoblock p + p {
    margin-top: 0.8em;
}

.code-block {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
    white-space: pre-wrap;
    margin-left: 15px;
}

span.pycommand {
    color: #000070;
}

/* ==================== 表格 ==================== */
table + table {
    margin-top: 1em;
}

tr.heading {
    font-weight: bold;
    border-bottom: 2px solid black;
}

/* ==================== 图片 ==================== */
img {
    border: none;
}

/* ==================== 导航栏（navbar） ==================== */
.navbar {
    display: flex;
    align-items: center;
    background-color: #0156a3;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 45px;
    z-index: 1000;
    padding: 0 11%;
    box-sizing: border-box;
}

.navbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 4%;
    flex-shrink: 0;
    z-index: 9999;
}

.navbar-logo img {
    height: 80%;
    width: auto;
    display: block;
}

.navbar-links {
    display: flex;
    height: 100%;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    /* 隐藏 Firefox、IE 和 Edge 的滚动条 */
    -ms-overflow-style: none;  
    scrollbar-width: none;
}

/* 隐藏 Chrome、Safari 和新版 Edge 的滚动条 */
.navbar-links::-webkit-scrollbar {
    display: none;
}

.navbar-links a {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    color: white;
    padding: 0 15px;
    height: 100%;
    border-bottom: 0;
    text-decoration: none;
    font-size: 18px;
}

.navbar-links a.active {
    color: #ffffff;
    background-color: #002D72;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    background-color: transparent !important;
    padding: 0;
    border: none !important;
}

.navbar-logo a:hover {
    background-color: transparent !important;
    /* opacity: 0.85; */
    border-bottom: none !important;
    transform: none !important;
}

.navbar a:hover {
    background-color: #002D72;
    color: white;
    height: 100%;
    border-bottom: 0;
}

/* ==================== 主容器与侧边栏 ==================== */
.main-container {
    display: flex;
}

.sidebar {
    display: flex;
    width: 15%;
    top: 45px;
    position: fixed;
    background-color: #eeeeee;
    flex-direction: column;
    height: calc(100vh - 45px);
    min-height: 0;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

.content {
    margin-left: 21%;
    margin-right: 1.8%;
    flex: 1;
    padding: 20px;
    margin-top: 10px;
    overflow-y: auto;
}


/* ==================== 联系信息与图标 ==================== */
.contact-info {
    margin-bottom: 1em;
    font-size: 14px;
}

.contact-line {
    display: grid;
    grid-template-columns: 1.7em minmax(0, 1fr);
    column-gap: 0.55em;
    align-items: start;
    margin: 0 0 0.65em;
}

.icon-fixed {
    width: 1.7em;
    text-align: center;
    color: #0156a3;
    font-size: 1.2em;
    line-height: 1.3;
}

.icon-fixed.ai-google-scholar-square {
    font-size: 1.28em;
    line-height: 1.1;
}

.contact-text {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.email-protect {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

.contact-info.is-enhanced {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 10px 0;
    margin: 4px 0 16px;
}

.contact-info.is-enhanced .contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: var(--contact-color, #475569);
    /* background: #ffffff; */
    /* border: 1px solid #e2e8f0; */
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-info.is-enhanced .contact-line:hover,
.contact-info.is-enhanced .contact-line:focus-visible,
.contact-info.is-enhanced .contact-line[aria-expanded="true"] {
    color: #0156a3;
    /* background: green; */
    /* border-color: green; */
    /* box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1); */
}

.contact-line[data-contact="position"] { --contact-color: #0156a3; }
.contact-line[data-contact="affiliation"] { --contact-color: #0156a3; }
.contact-line[data-contact="address"] { --contact-color: #0156a3; }
.contact-line[data-contact="wechat"] { --contact-color: #0156a3; }
.contact-line[data-contact="homepage"] { --contact-color: #0156a3; }
.contact-line[data-contact="email"] { --contact-color: #0156a3; }
.contact-line[data-contact="github"] { --contact-color: #0156a3; }
.contact-line[data-contact="linkedin"] { --contact-color: #0156a3; }
.contact-line[data-contact="scholar"] { --contact-color: #0156a3; }
.contact-line[data-contact="orcid"] { --contact-color: #0156a3; }

.contact-info.is-enhanced .icon-fixed,
.contact-info.is-enhanced .icon-fixed.ai-google-scholar-square {
    width: auto;
    color: currentColor !important;
    font-size: 1.25rem;
    line-height: 1;
}

.contact-info.is-enhanced .icon-fixed.ai-google-scholar-square {
    font-size: 1.38rem;
}

.contact-info.is-enhanced .wechat-value-source {
    display: none;
}

.contact-popover {
    position: fixed;
    z-index: 2147483600;
    visibility: hidden;
    width: max-content;
    min-width: 160px;
    max-width: min(300px, calc(100vw - 20px));
    margin: 0;
    padding: 13px 15px;
    box-sizing: border-box;
    color: #000 !important;
    background: #fff !important;
    /* border: 1px solid #334155 !important; */
    border-radius: 9px;
    opacity: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
    overflow-wrap: anywhere;
    text-align: left;
    font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.contact-popover::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #000;
    font-weight: 700;
    text-align: center;
}

.contact-popover::after {
    content: "";
    position: absolute;
    left: var(--contact-arrow-left, 50%);
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: translateX(-50%) rotate(45deg);
}

.contact-popover.is-below::after {
    top: -6px;
    bottom: auto;
    border: 0;
    border-top: 1px solid #334155;
    border-left: 1px solid #334155;
}

.contact-popover.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-popover a,
.contact-popover.wechat-hover {
    color: #0156a3 !important;
}

.contact-popover a:hover {
    color: #0156a3 !important;
    border-bottom-color: #0156a3;
}

.recruitment-card {
    position: relative;
    width: 100%;
    margin: 30px 0 14px;
    box-sizing: border-box;
    color: #334155;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.09);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-align: left;
}

.recruitment-summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 28px 10px 12px;
    box-sizing: border-box;
    color: #0156a3;
    cursor: pointer;
    list-style: none;
}

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

.recruitment-summary::after {
    content: "+";
    position: absolute;
    right: 11px;
    color: #0156a3;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.recruitment-card[open] .recruitment-summary::after {
    content: "−";
}

.recruitment-summary > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.recruitment-summary strong {
    color: #0156a3;
    font-size: 13.5px;
    line-height: 1.25;
}

.recruitment-summary small {
    color: #000;
    font-size: 11px;
    line-height: 1.3;
}

.recruitment-pin {
    position: absolute;
    top: -5px;
    left: 2%;
    z-index: 2;
    width: 80%;
    height: auto;
    color: #e74c3c;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    transform: translateX(-50%) rotate(-22deg);
}

.recruitment-content {
    padding: 0 12px 12px;
    border-top: 2px dashed #eeeeee;
}

.recruitment-content p {
    margin: 10px 0 0;
    color: inherit;
    font-size: 13.5px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-ideograph;
    hyphens: auto;
}

.recruitment-card strong {
    color: #e74c3c;
    font-weight: 700;
}

.recruitment-content .email-protect {
    display: inline;
}

.recruitment-card a {
    font-weight: 700;
    overflow-wrap: anywhere;
}


.avatar-container {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0em;
}
.avatar-container img {
    width: 80%;
    height: auto;
    max-width: 175px;
    display: inline-block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}


/* ==================== 微信悬浮二维码 ==================== */
.wechat-hover:not(.contact-popover) {
    position: relative;
    display: inline-block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #224b8d;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.wechat-hover .qrcode {
    display: none;
}

.wechat-floating-qrcode {
    display: block;
    visibility: hidden;
    opacity: 0;
    z-index: 2147483647;
    position: fixed;
    left: 0;
    top: 0;
    width: 170px;
    height: auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    padding: 8px;
    pointer-events: none;
    isolation: isolate;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wechat-floating-qrcode::after {
    content: "";
    position: absolute;
    left: var(--wechat-arrow-left, 50%);
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 4px 4px 8px rgba(15, 23, 42, 0.08);
}

.wechat-floating-qrcode.is-below::after {
    top: -6px;
    bottom: auto;
    box-shadow: -4px -4px 8px rgba(15, 23, 42, 0.08);
}

.wechat-floating-qrcode.is-visible {
    visibility: visible;
    opacity: 1;
}

.qrcode img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

.qrcode-label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
}

.wechat-text {
    margin-left: 8px;
}

/* ==================== 页脚 ==================== */
#footer {
    font-size: 12px;
    color: #979797;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: auto;
    padding: 12px 0 8px;
    position: static;
    flex-shrink: 0;
}

#footer-text-block {
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start;
    width: 50%;  */
    /* justify-content: flex-end; */
    flex: 1;
    min-width: 0;
}

#footer-text-block a {
    color: #80a0b0;
}

#visitor-map {
    width: 150px;
    overflow: hidden;
}

/* ==================== 特殊按钮与交互元素 ==================== */
a.record-button {
    color: white;
    opacity: 0;
    height: 15px;
    background-color: #0156a3;
    position: absolute;
    right: 0px;
    padding: 1px 5px;
    text-align: center;
    border-radius: 0px;
    border-bottom-left-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}

a.record-button:hover {
    opacity: 1;
    background-color: #0156a3;
    text-decoration: none;
}

.copy-button {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #0156a3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-success { background-color: #1f7a3f !important; }
.copy-error { background-color: #b42318 !important; }

.h2-button {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 4px;
    border: 1px solid #0156a3;
    border-radius: 4px;
    line-height: 1.2;
    vertical-align: middle;
    text-decoration: none;
    cursor: pointer;
    margin-left: 5px;
}

.h2-button:hover {
    color: #ffffff;
    background-color: #0156a3;
    border-bottom: 1px solid #0156a3;
}

.h2-button img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.h2-button i {
    font-size: 16px;
}

#back-to-top {
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 15px;
    width: 100px;
    text-align: center;
    line-height: 30px;
    height: 30px;
}

.more-button {
    background: none;
    border: 1px solid #0156a3;
    color: #0156a3;
    padding: 5px 10px 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0px 0px 0px 0px;
}

.more-button:hover {
    background: #0156a3;
    color: white;
}

.more-button i {
    margin-left: 5px;
    transition: transform 0.3s;
}

/* ==================== 社交图标 ==================== */
.social-icons {
    text-align: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.social-icons a {
    background-color: transparent;
    margin: 3px 0px 0px 0px;
    display: inline-block;
    height: 2rem;
    width: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0156a3 !important;
    border-radius: 100%;
    text-align: center;
    font-size: 1.5rem;
    border: none;
}

.social-icons a:first-child {
    margin-left: calc(20%);
}

.social-icons a:last-child {
    margin-right: calc(20%);
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
    background-color: #eeeeee;
    color: black;
    transform: scale(1.2);
}

/* ==================== 新闻列表 ==================== */
.news-list {
    list-style-type: none;
    padding-left: 10px;
}

.news-list li {
    position: relative;
    padding-left: 4em;
    text-indent: -4.5em;
}

.news-list li.more-news {
    display: none;
    padding-left: 4em;
    text-indent: -4.5em;
}

.news-list.show-all li.more-news {
    display: list-item;
}

.text-accent {
    color: #e74c3c;
}

.text-meta {
    font-size: 0.85em;
}

.text-muted {
    color: #8a8f98;
}

.compact-list {
    line-height: 1.5;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 4px 2px 4px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 4px;
    background-color: #e74c3c;
    color: white;
}

/* ==================== 论文列表项（pub-item） ==================== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.publication-search {
    margin: 4px 0 12px;
}

.publication-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.publication-search-box:focus-within {
    background-color: #ffffff;
    border-color: #0156a3;
    box-shadow: 0 0 0 3px rgba(1, 86, 163, 0.13);
}

.publication-search-box > i {
    color: #667085;
    flex-shrink: 0;
}

.publication-search-box input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222222;
    font: 14px/1.5 Arial, "Helvetica Neue", sans-serif;
}

.publication-search-box input::placeholder {
    color: #7a828e;
}

.publication-search-count {
    color: #667085;
    font: 12px/1.3 Arial, "Helvetica Neue", sans-serif;
    white-space: nowrap;
}

.publication-search-empty {
    margin: 12px 0;
    padding: 18px;
    color: #667085;
    background-color: #f6f8fa;
    border: 1px dashed #d0d7de;
    border-radius: 8px;
    text-align: center;
}

.pub-item {
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #ececec;
    border-radius: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.pub-item:hover {
    background: #ececec;
    transform: translateY(0px);
}

.pub-title {
    font-weight: 600;
    font-size: 100%;
    color: #222222;
    margin-bottom: 1px;
    line-height: 1.4;
}

.pub-authors {
    color: #222222;
    font-size: 85%;
    margin-bottom: 5px;
}

.pub-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-venue {
    color: #222222;
    font-size: 100%;
}

.pub-venue em {
    font-style: italic;
    color: #222222;
    font-weight: 550;
    
}

.pub-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #0156a3;
    color: #0156a3 !important;
    font-size: 13px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}

.pub-btn i {
    margin-right: 5px;
    font-size: 14px;
}

.pub-btn:hover {
    background: #0156a3;
    color: #ffffff !important;
    text-decoration: none;
}

.pub-btn.active {
    color: #ffffff !important;
    background-color: #0156a3;
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    background-color: #e74c3c;
    color: white;
}

.pub-badge-cover {
    background-color: #e74c3c;
}

.pub-item .code-block {
    display: none;
    margin-top: 15px;
    margin-bottom: 0;
}

.pub-item .code-block.is-open {
    display: block;
}

.pub-note {
    font-size: 0.85em;
    color: #888888;
    margin-bottom: 10px;
    padding-left: 4px;
}

.pub-scroll-container {
    max-height: 550px;
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f9f9f9;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 20px;
    scroll-snap-type: y mandatory; 
    scroll-padding-top: 8px;
}

.pub-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.pub-scroll-container::-webkit-scrollbar-track {
    /* background: #f1f1f1;  */
    background: #f9f9f9;
    border-radius: 10px;
    margin: 10px 0;
}
.pub-scroll-container::-webkit-scrollbar-thumb {
    /* background: #c1c1c1;  */
    background: #cccccc; 
    border-radius: 10px;
}
.pub-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0156a3;
}

/* ==================== others ==================== */
.oth-note {
    font-size: 0.85em;
    color: #888888;
    margin-top: -5px;
    padding-left: 4px;
}

.list-ellipsis {
    color: #888888;
    list-style: none;
}

/* .alumni-item {
    /* list-style: none; */
/* } */ */

.alumni-details summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    cursor: pointer;
    list-style: none;
}

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

.alumni-details summary::before {
    content: "+";
    color: #0156a3;
    font-weight: bold;
}

.alumni-details[open] summary::before {
    content: "-";
}

.alumni-details ul {
    margin-top: 0.2em;
    margin-bottom: 0;
}

/* ==================== 404 页面 ==================== */
.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.error-card {
    max-width: 560px;
    padding: 36px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

.error-code {
    margin: 0;
    color: #0156a3;
    font: 700 72px/1 Arial, sans-serif;
}

/* ==================== 黑夜主题 ==================== */
html,
body,
.sidebar,
.pub-item,
.pub-scroll-container,
.code-block,
div.codeblock > div.blockcontent,
.wechat-floating-qrcode,
.sidebar-controls,
.language-switch-group,
.language-switch-group .lang-btn,
.theme-toggle,
#back-to-top {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html[data-theme="dark"] {
    background-color: #070b14;
}

html[data-theme="dark"] body {
    color: #e5e7eb;
    background-color: #111827;
}

html[data-theme="dark"] a,
html[data-theme="dark"] a > tt,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .icon-fixed,
html[data-theme="dark"] .social-icons a,
html[data-theme="dark"] .more-button,
html[data-theme="dark"] .pub-btn {
    color: #93c5fd !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    border-color: #334155;
}

html[data-theme="dark"] h4,
html[data-theme="dark"] dd,
html[data-theme="dark"] .pub-title,
html[data-theme="dark"] .pub-authors,
html[data-theme="dark"] .pub-venue,
html[data-theme="dark"] .pub-venue em {
    color: #e5e7eb;
}

html[data-theme="dark"] .navbar {
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .navbar-links a {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .navbar-links a:hover {
    color: #ffffff !important;
    background-color: #224b8d;
    border-bottom: 0;
}

html[data-theme="dark"] .navbar-links a.active {
    color: #ffffff !important;
    background-color: #224b8d;
}

html[data-theme="dark"] .sidebar {
    background-color: #0b1220;
}

html[data-theme="dark"] .contact-info.is-enhanced .contact-line {
    color: var(--contact-color, #cbd5e1);
    background: #111827;
    border-color: #334155;
}

html[data-theme="dark"] .contact-line[data-contact="position"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="affiliation"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="address"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="wechat"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="homepage"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="email"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="github"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="linkedin"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="scholar"] { --contact-color: #93c5fd; }
html[data-theme="dark"] .contact-line[data-contact="orcid"] { --contact-color: #93c5fd; }

html[data-theme="dark"] .contact-info.is-enhanced .contact-line:hover,
html[data-theme="dark"] .contact-info.is-enhanced .contact-line:focus-visible,
html[data-theme="dark"] .contact-info.is-enhanced .contact-line[aria-expanded="true"] {
    color: #93c5fd;
    /* background: #0156a3; */
    /* border-color: #475569; */
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); */
}

html[data-theme="dark"] .recruitment-card {
    color: #fff;
    background: #172033;
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .recruitment-summary strong {
    color: #93c5fd;
}

html[data-theme="dark"] .recruitment-summary small,
html[data-theme="dark"] .recruitment-summary::after {
    color: #fff;
}

html[data-theme="dark"] .recruitment-card strong {
    color: #e74c3c;
}

html[data-theme="dark"] .recruitment-summary strong {
    color: #e74c3c;
}

html[data-theme="dark"] .recruitment-content {
    border-top-color: #475569;
}

html[data-theme="dark"] .recruitment-pin {
    color: #e74c3c;
}

html[data-theme="dark"] .language-switch-group,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .sidebar-controls {
    background-color: #1e293b;
}

html[data-theme="dark"] .language-switch-group,
html[data-theme="dark"] .theme-toggle {
    background-color: transparent;
}

html[data-theme="dark"] .theme-toggle {
    border-left-color: #475569;
}

html[data-theme="dark"] .language-switch-group .lang-btn,
html[data-theme="dark"] .theme-toggle {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .language-switch-group .lang-btn:hover,
html[data-theme="dark"] .theme-toggle:hover {
    color: #bfdbfe !important;
    background-color: #334155;
}

html[data-theme="dark"] .language-switch-group .lang-btn.active {
    color: #bfdbfe !important;
    background-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .theme-toggle:focus-visible {
    outline-color: #93c5fd;
}

html[data-theme="dark"] div.codeblock > div.blockcontent,
html[data-theme="dark"] .code-block,
html[data-theme="dark"] .pub-scroll-container {
    background-color: #0b1220;
}

html[data-theme="dark"] span.pycommand {
    color: #bfdbfe;
}

html[data-theme="dark"] .pub-item {
    background-color: #172033;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .pub-item:hover {
    background-color: #1e293b;
}

html[data-theme="dark"] .pub-note,
html[data-theme="dark"] .oth-note,
html[data-theme="dark"] #footer {
    color: #94a3b8;
}

html[data-theme="dark"] .pub-scroll-container {
    scrollbar-color: #475569 #0b1220;
}

html[data-theme="dark"] .pub-scroll-container::-webkit-scrollbar-track {
    background: #0b1220;
}

html[data-theme="dark"] .pub-scroll-container::-webkit-scrollbar-thumb {
    background: #475569;
}

html[data-theme="dark"] .publication-search-box {
    background-color: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .publication-search-box:focus-within {
    background-color: #111827;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

html[data-theme="dark"] .publication-search-box > i,
html[data-theme="dark"] .publication-search-count,
html[data-theme="dark"] .publication-search-empty {
    color: #94a3b8;
}

html[data-theme="dark"] .publication-search-box input {
    color: #e5e7eb;
}

html[data-theme="dark"] .publication-search-box input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .publication-search-empty {
    background-color: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .wechat-floating-qrcode {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .wechat-hover { color: #0156a3; }

html[data-theme="dark"] .error-card {
    color: #e5e7eb;
    background: #111827;
    border-color: #475569;
}

html[data-theme="dark"] .error-code { color: #93c5fd; }

html[data-theme="dark"] :focus-visible { outline-color: #93c5fd; }

html[data-theme="dark"] #back-to-top {
    color: #e5e7eb !important;
    background-color: #1e293b !important;
    border-color: #475569;
}

@media (prefers-reduced-motion: reduce) {
    html,
    body,
    .sidebar,
    .pub-item,
    .pub-scroll-container,
    .code-block,
    .theme-toggle,
    .contact-line,
    .contact-popover {
        transition: none;
    }
}









/* ==================== 响应式布局 ==================== */
@media screen and (max-width: 1300px) {
    body {
        width: 90%;
    }

    .sidebar {
        width: 20%;
    }

    .content {
        margin-left: 25%;
    }

    .navbar {
        padding: 0 5%;
    }

    .navbar-links a {
        padding: 0 10px;
        font-size: 16px;
    }

    #footer {
        position: static;
        width: 100%;
    }
}


@media screen and (max-width: 768px) {
    body {
        width: 100%; 
        padding: 0;
    }
    
    .navbar {
        height: 55px; 
        padding: 0 10px;
    }
    
    .navbar-logo img {
        max-height: 28px;
    }
    
    .navbar-links {
        padding-bottom: 0; 
        overflow-x: auto;
    }
    .navbar-links::-webkit-scrollbar {
        display: none;
    }
    .navbar-links a {
        padding: 0 10px; 
        font-size: 14px;
    }
    
    .main-container {
        flex-direction: column; 
        margin-top: 0px;
    }
    
    .sidebar {
        position: static; 
        width: 100%; 
        order: 1;
        margin-top: 20pt;
        background-color: #f8f9fa; 
        text-align: center; 
        display: block; 
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .avatar-container img {
        width: 150px !important; 
        max-width: 100%;
    }
    
    .avatar-container {
        text-align: center;
    }

    div#toptitle {
        justify-content: center;
    }
    .contact-info {
        width: min(560px, 100%);
        margin: 15px auto 1em;
        text-align: left;
    }

    .contact-info.is-enhanced {
        width: min(560px, 100%);
    }

    .recruitment-card {
        width: min(560px, 100%);
        margin-right: auto;
        margin-left: auto;
    }

    .pub-scroll-container {
        max-height: none;
        overflow-y: visible;
        scroll-snap-type: none;
        padding: 12px;
    }

    .pub-item {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .content {
        order: 2; 
        margin-top: 20px;
        margin-left: 0;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .content p, .content li {
        text-align: left;
    }

    #footer {
        position: static;
        width: 100%;
        margin-top: 30px;
        flex-direction: column; 
        align-items: left;    
        gap: 15px;  
        background-color: transparent;
    }

    #footer-text-block {
        align-items: left;    
        text-align: left;
        width: 100%;
        padding-right: 0;       
    }

    .language-switch-group {
        margin: 0;
        display: inline-flex;
    }

    .sidebar-controls {
        justify-content: center;
        margin: 0 auto 15px;
    }

}


@media screen and (max-width: 576px) {
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    h1 { font-size: 135%; }
    h2 { font-size: 120%; }
    h3 { font-size: 110%; }

    .navbar {
        height: 50px;
    }

    .navbar-logo img {
        max-height: 24px;
    }

    .navbar-links a {
        padding: 0 8px;
        font-size: 14px;
    }

    .sidebar, .content {
        padding: 15px 10px;
    }

    .more-button {
        padding: 10px 15px;
    }

    .contact-line {
        margin-bottom: 1em;
    }

    .news-list li {
        padding-left: 3.5em;
        text-indent: -3.5em;
    }
}


@media screen and (max-width: 375px) {
    .navbar-links a {
        font-size: 13px;
        padding: 0 6px;
    }

    .news-list li {
        font-size: 14px;
        padding-left: 3em;
        text-indent: -3em;
    }

    .wechat-floating-qrcode {
        width: 130px;
    }

    .wechat-floating-qrcode img {
        width: 110px;
        height: 110px;
    }
}

