:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.container {
    max-width: 800px;
    margin: 50px auto;
    background: var(--card-bg);
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 5px;
}
h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    margin-top: 40px;
}
h3 {
    color: #7f8c8d;
    font-weight: normal;
    margin-top: 0;
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #2980b9;
    text-decoration: underline;
}
.intro {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* .pub-list {
    list-style: none;
    padding: 0;
}
.pub-list li {
    background: var(--bg-color);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pub-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
} */
.footer-section {
    margin-top: 40px;
}

/* -------------------------------------
   Publications & Preprints 极简学术列表样式
   ------------------------------------- */
.pub-list {
    list-style: none; /* 移除默认的列表黑点 */
    padding: 0;
    margin: 0;
}

.pub-list li {
    position: relative;
    padding-left: 1.5em; /* 为左侧符号留出空间，并实现多行文本的悬挂对齐 */
    margin-bottom: 18px; /* 增加条目之间的间距，提升呼吸感 */
    line-height: 1.6;
    color: var(--text-color);
}

/* 使用 CSS 伪元素绘制一个低调精致的列表前缀 */
.pub-list li::before {
    content: "▪"; /* 也可以换成 "•" 或 "—" */
    position: absolute;
    left: 0.2em;
    top: 0.1em; /* 微调垂直位置，使其与首行文字视觉居中 */
    color: #95a5a6; /* 使用低调的灰蓝色，而不是亮色 */
    font-size: 0.9em;
}

/* 仅在鼠标悬停时对链接颜色做极其轻微的反馈，取消所有的方块位移和阴影动画 */
.pub-list li:hover a {
    text-decoration: underline;
}


/* 名言引用区块样式 */
.quote-block {
    background-color: var(--bg-color);
    margin: 30px 0;
    padding: 15px 25px;
    border-left: 4px solid #7f8c8d; /* 使用低调的灰色作为引用的边框 */
    border-radius: 0 8px 8px 0;
    font-style: italic; /* 斜体字增强引用感 */
    color: #555555;
    font-size: 1.1em;
}

.quote-author {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right; /* 作者名字靠右对齐 */
    font-style: normal; /* 作者名字恢复正体 */
}

/* -------------------------------------
   深色模式 (Dark Mode) 样式
   ------------------------------------- */
/* 当 body 被添加了 dark-mode 类时，覆盖原有的颜色变量 */
body.dark-mode {
    --primary-color: #ecf0f1;   /* 浅灰色标题 */
    --accent-color: #5dade2;    /* 稍微亮一点的蓝色，在深色背景上更易读 */
    --bg-color: #121212;        /* 整体深色背景 */
    --card-bg: #1e1e1e;         /* 卡片深灰背景 */
    --text-color: #e0e0e0;      /* 浅灰色正文文字 */
}

/* 针对深色模式优化名言引用的边框颜色 */
body.dark-mode .quote-block {
    border-left-color: #555555;
}

/* 深色/浅色切换按钮样式 */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}
