/* ========================================
   基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #0066cc;
    text-decoration: underline;
}

a:hover {
    color: #004499;
}

/* ========================================
   布局容器
   ======================================== */
.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 2em;
    padding: 2em 1em;
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.author-profile {
    position: sticky;
    top: 2em;
    background: #fff;
    padding: 1em;
    border: 1px solid #f2f3f3;
    border-radius: 4px;
}

.author-avatar {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1em;
}

.author-content {
    text-align: center;
    margin-bottom: 1em;
}

.author-name {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.author-bio {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.author-email {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em;
    margin-bottom: 0.5em;
    border: 1px solid #f2f3f3;
    border-radius: 4px;
    color: #333;
    font-size: 0.85em;
    word-break: break-all;
}

.author-urls {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.author-urls li {
    margin-bottom: 0.5em;
    width: 100%;
}

.author-urls a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
    padding: 0.5em;
    border: 1px solid #f2f3f3;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.author-urls a:hover {
    background-color: #f9f9f9;
}

.svg-icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

/* ========================================
   主内容区域
   ======================================== */
.page-content {
    flex: 1;
    min-width: 0;
    padding-left: 1em;
}

#about-me {
    margin-top: 2em;
    margin-bottom: 2em;
}

#about-me p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
}

/* ========================================
   求职通知框
   ======================================== */
.job-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1.5em;
    margin: 2em 0;
    text-align: center;
}

.job-notice h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #856404;
}

.job-notice p {
    margin-bottom: 0;
    color: #856404;
}

/* ========================================
   标题样式
   ======================================== */
h1 {
    font-size: 1.75em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #f2f3f3;
    font-weight: bold;
}

h1:first-of-type {
    margin-top: 1em;
}

/* ========================================
   新闻列表
   ======================================== */
.news-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}

.news-list li {
    margin-bottom: 0.75em;
    padding-left: 1em;
    position: relative;
}

.news-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

/* ========================================
   论文展示框 (paper-box)
   ======================================== */
.paper-box {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #efefef;
    padding: 2em 0;
}

.paper-box-image {
    position: relative;
    width: 100%;
    margin-bottom: 1.5em;
}

.paper-box-image > div {
    position: relative;
    display: inline-block;
    width: 100%;
}

.paper-box-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;  /* 设置统一的宽高比 16:9 */
    object-fit: contain;   /* 完整显示图片，不裁剪，填充白边 */
    object-position: center; /* 居中显示 */
    background-color: white; /* 白色背景填充 */
    box-shadow: 3px 3px 6px #888;
    border-radius: 4px;
}

.badge {
    position: absolute;
    top: 0.5em;
    left: -0.5em;
    padding: 0.3em 1em;
    background-color: #00369f;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 2px;
    z-index: 10;
}

.paper-box-text {
    width: 100%;
}

.paper-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.paper-title a {
    color: #333;
    text-decoration: none;
}

.paper-title a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.paper-authors {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0.5em;
}

.paper-venue {
    font-size: 0.9em;
    margin-bottom: 0.75em;
}

.paper-links {
    font-size: 0.9em;
}

.paper-links a {
    margin-right: 0.75em;
    text-decoration: none;
    color: #0066cc;
}

.paper-links a:hover {
    text-decoration: underline;
}

/* ========================================
   响应式设计 - 平板和桌面
   ======================================== */
@media (min-width: 768px) {
    .paper-box {
        flex-direction: row;
        align-items: flex-start;
    }

    .paper-box-image {
        width: 30%;
        max-width: 400px;
        margin-bottom: 0;
        margin-right: 2em;
        flex-shrink: 0;
    }

    .paper-box-text {
        flex: 1;
    }
}

/* ========================================
   响应式设计 - 移动设备
   ======================================== */
@media (max-width: 767px) {
    .wrapper {
        flex-direction: column;
        padding: 1em;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 2em;
    }

    .author-profile {
        position: static;
    }

    .page-content {
        padding-left: 0;
    }

    h1 {
        font-size: 1.5em;
    }

    .paper-box {
        padding: 1.5em 0;
    }

    .paper-box-image img {
        max-width: 80%;
        display: block;
        margin: 0 auto;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .sidebar {
        display: none;
    }

    .wrapper {
        display: block;
    }

    .page-content {
        padding-left: 0;
    }

    .paper-box-image {
        page-break-inside: avoid;
    }
}
