/* 视频容器样式 */

.fluid-width-video-wrapper {
    width: 100%;
    position: relative;
    padding: 0;
}
.menu {
    display: none !important;
    visibility: hidden !important; /* 双重保险，防止JS动态显示 */
    opacity: 0 !important;
    pointer-events: none !important; /* 禁止点击交互 */
}

.form-option--checkbox:has(.hide-controls) {
    display: none !important;
}

/* 导航栏优化 */
.masthead {
    background-color: var(--sidebar-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.masthead__menu {
    display: flex;
    justify-content: center; /* 水平居中 */
}
.masthead__menu ul.visible-links {
    display: flex;
    justify-content: center; /* 水平居中列表项 */
    padding: 0;
    margin: 0;
    list-style: none;
}
.masthead__menu-item a {
    color: #cf6a51;
    transition: var(--transition);
    padding: 0.8rem 1rem;
    text-align: center;
    display: block;
}
.masthead__menu li {
    margin: 0 1rem;
}
.masthead__menu-item a:hover,{
    color: black;
}
.masthead__inner-wrap {
    background-color: #fff;
}
html[data-theme="dark"] .masthead__inner-wrap,
html[data-theme="dark"] .masthead__menu,
html[data-theme="dark"] .visible-links {
    background-color: transparent !important;
}
#theme-toggle a {
    color: #cf6a51;
    cursor: pointer;
}

#theme-toggle a:hover i {
    transform: rotate(15deg);
    color: black;
}

body {
    margin-top: 10px !important;
    padding-top: 10px !important;
}
.fluid-width-video-wrapper iframe,
.fluid-width-video-wrapper object,
.fluid-width-video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 侧边栏优化 */
.sidebar {
    margin-bottom: 2rem;
    transition: var(--transition);
    padding-top: 2rem !important;
    margin-left: 60px; 
    overflow: hidden;
}

@media (min-width: 768px) {
    .sidebar {
        overflow: hidden;
        position: fixed;
        top: 63px;
        left: 20px;
        width: 280px;
        max-height: calc(100vh - 120px);
        /*overflow-y: auto;*/
        z-index: 1000;
    }
    .main-content {
        margin-left: 320px;
        padding-right: 20px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar {
        width: 240px; /* 适当缩小侧边栏宽度 */
        max-height: calc(100vh - 100px);
        margin-left: -20px;
    }
}

/* 小屏幕平板（接近手机的中等屏幕）额外适配 */
@media (min-width: 768px) and (max-width: 850px) {
    .sidebar {
        width: 220px; /* 进一步缩小侧边栏 */
        margin-left: 20px;
    }
}


.sidebar-inner {
    background: var(--sidebar-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color;
    overflow: hidden;
}

.sidebar-inner:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px) scale(1.03);
}

[data-theme="dark"] .sidebar-inner {
    background: var(--sidebar-bg-dark, #545353);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.05);
}

.sidebar .section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sidebar-border, #e2e8f0);
}

[data-theme="dark"] .sidebar .section {
    border-bottom: 1px solid transparent !important;
}

.sidebar .section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--sidebar-title, #2d3748);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

[data-theme="dark"] .sidebar-title {
    color: #e2e8f0;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: #3182ce;
}

.sidebar-image {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.sidebar-img:hover {
    transform: scale(1.04);
}

.sidebar-text {
    color: var(--sidebar-text, #4a5568);
    line-height: 1.65;
    font-size: 0.95rem;
}

[data-theme="dark"] .sidebar-text {
    color: #cbd5e0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: var(--sidebar-link, #4a5568);
    text-decoration: none;
    transition: all 0.25s ease;
    display: block;
    padding: 0.35rem 0;
}

[data-theme="dark"] .sidebar-nav a {
    color: #cbd5e0;
}

.sidebar-nav a:hover {
    color: #3182ce;
    padding-left: 6px;
}

.author-profile {
    text-align: center;
}

.author-profile .author__avatar {
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    width: 120px;
    height: 150px;
    object-fit: cover;
}

[data-theme="dark"] .author-profile .author__avatar {
    border-color: transparent;
}

.author-profile .author__avatar:hover {
    transform: scale(1.05);
}

.author-profile .author__name {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    font-weight: normal;
    color: var(--sidebar-title, #225aa3);
    font-family: "KaiTi", "STKaiti", "SimKai", "楷体", serif;
}

[data-theme="dark"] .author__urls.social-icons {
    color: #cbd5e0;
}

[data-theme="dark"] .author-profile .author__name {
    color: var(--primary-light);
}
[data-theme="dark"] .author-profile .author__bio {
    color: var(--primary-light);
}
.author-profile .author__bio {
    color: var(--sidebar-text, #4a5568);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

[data-theme="dark"] .author-profile .author__bio {
    color: var(--primary-light);
}
.author__urls.social-icons a:hover {
    background-color: transparent !important;
    color: #3182ce;
    padding-left: 0.8rem;
    transform: translateY(-2px);
}

[data-theme="dark"] .author__urls.social-icons a:hover {
    color: #ffb08a !important;
}

[data-theme="dark"] .author__urls.social-icons a {
    background-color: transparent !important;
}
/* CV内容样式 */
.cv-container .cv-section .cv-section-title {
    color: #cf6a51;
    border-bottom: 1px solid #cf6a51;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    display: block;
}

.cv-container .cv-section .cv-section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #cf6a51 !important;
    bottom: -1px;
    left: 0;
    z-index: 1000;
}

.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .cv-container {
        margin-left: 30px;
        padding-right: 1.5rem;
        padding-top: 20px !important;
        margin-top: 20px !important;
    }
}

@media (min-width: 1025px) {
    .cv-container {
        margin-left: auto;
        margin-right: auto;
        padding-top: 20px !important;
        margin-top: 20px !important;
    }
}

@media (max-width: 768px) {
    .cv-header h1 {
        font-size: 1.8rem;
    }

    .entry-header {
        flex-direction: column;
    }

    .entry-date {
        margin-top: 5px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
    .cv-container {
        padding-top: 20px !important;
        margin-top: 20px !important;
    }
}

.cv-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #cf6a51;
}

.cv-header h1 {
    color: #cf6a51;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.cv-header .contact-info {
    color: #555;
    font-size: 0.95rem;
    margin-top: 15px;
}

.cv-header .contact-info .orcid-link {
    color: #cf6a51;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #cf6a51;
}

.cv-header .contact-info .orcid-link:hover {
    color: #cf583a;
    border-bottom: 1px solid #cf6a51;
}

.entry {
    margin-bottom: 25px;
    padding-left: 20px;
    position: relative;
}

.entry::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cf6a51;
    left: 0;
    top: 8px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.entry-title {
    font-weight: 600;
    color: #222;
    margin: 0;
}
html[data-theme="dark"] .entry-title {
    color: #b5b5b5 !important; 
}

.entry-date {
    color: #000;
    font-style: italic;
    font-size: 0.9rem;
}
html[data-theme="dark"] .entry-date {
    color: #b5b5b5 !important; 
}

.entry-organization {
    color: #b36ee0;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-left: 10px;
}

.skills-column h4 {
    color: #cf6a51;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

.skills-column h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #cf6a51;
    bottom: 0;
    left: 0;
}

.skills-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-list li {
    position: relative;
    padding: 4px 12px 4px 24px;
    color: #444;
    font-size: 0.95rem;
    background-color: #f2eceb;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: default;
}

.skills-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #cf6a51;
    font-size: 1.2rem;
    line-height: 1;
}

.skills-list li:hover {
    background-color: #ebf4fa;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(207, 106, 81, 0.1);
}

html[data-theme="dark"] .skills-list li {
    background-color: #6a7580;
    color: #e0e0e0;
}

html[data-theme="dark"] .cv-container .skills-list li::before {
    color: #cf6a51 !important;
}


.talks-list li::marker {
    color: #cf6a51; /* marker 颜色 */
    font-size: 1.2em; /* marker 大小 */
    content: "• "; /* 可以自定义符号，比如箭头、圆点等 */
}
html[data-theme="dark"] .talks-list li::before {
    color: #cf6a51 !important;
}

.simple-publications {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-pub-item {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.simple-pub-item:last-child {
    border-bottom: none;
}

.pub-simple-title {
    font-size: 1.1rem;
    margin: 0;
    color: #222;
    font-weight: 600;
}
html[data-theme="dark"] .pub-simple-title {
    color: #ffb08a !important; 
}
html[data-theme="dark"] .archive__item-excerpt {
    color: #b5b5b5 !important; 
}

html[data-theme="dark"] .cv-section-title {
    background-color: transparent !important;
}
html[data-theme="dark"] .cv-section {
    background-color: transparent !important;
}
.pub-simple-authors {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}
html[data-theme="dark"] .pub-simple-authors {
    color: #b5b5b5 !important; 
}
html[data-theme="dark"] .pub-simple-journal {
    color: #b5b5b5 !important; 
}
html[data-theme="dark"] .if-badge {
    color: #b5b5b5 !important; 
}
html[data-theme="dark"] .pub-simple-authors {
    color: #b5b5b5 !important; 
}

.pub-self-author {
    font-weight: 600;
    color: #0f3c67;
}
html[data-theme="dark"] .pub-self-author {
    color: #0085de !important; 
}
.pub-simple-oa {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.8rem;
    padding: 1px 6px;
    border-radius: 3px;
}
.pulse-animate {
    animation: pulse 0.5s ease-in-out;
}
.pulse {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.archive__item-title:hover {
    transform: scale(0.94);
}

[data-theme="dark"] .author-profile .author__bio {
    color: #cf6a51;
}

html[data-theme="dark"] .masthead {
    background-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .visible-links {
    background-color: transparent !important;
}

html[data-theme="dark"] .cv-header {
    background-color: transparent !important;
}
html[data-theme="dark"] .cv-container {
    background-color: transparent !important;
}
html[data-theme="dark"] .masthead__menu-item {
    background-color: transparent !important;
}

html[data-theme="dark"] .sidebar-inner {
    background-color: transparent !important;
}

[data-theme="dark"] .cv-header h1 {
    color: var(--primary-light, #ffb08a);
}

[data-theme="dark"] .sidebar-nav a { /* 侧边栏链接文本 */
    color: #cbd5e0;
}
html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: transparent !important;
}
/* 页脚优化 */
.page__footer {
    margin-top: 3rem;
    padding: 0 0;
    background-color: var(--sidebar-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

[data-theme="dark"] .page__footer {
    background-color: transparent !important;
}
html[data-theme="dark"] .page__footer-copyright {
    color: #cbd5e0 !important;
}

html[data-theme="dark"] .dark-mode-active {
    background-color: transparent !important;
}
.page__footer-copyright {
    font-size: 0.95rem;
    color: #4a5568;
}

:root[data-theme="dark"] {
  --sidebar-bg: var(--sidebar-bg-dark); /* 统一使用变量 */
}

html[data-theme="light"] .masthead {
    background-color: #fff !important;
}
body {
    color: var(--text-color);
}