/* Zexiang Xu–style clean academic homepage */

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

a {
    color: #1772d0;
    text-decoration: none;
}

a:hover {
    color: #f09228;
}

h1 {
    font-size: 28px;
    font-weight: normal;
    margin: 0 0 8px 0;
}

.cn-name {
    font-size: 22px;
    color: #666;
}

h2 {
    font-size: 22px;
    font-weight: normal;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-top: 10px;
    margin-bottom: 14px;
}

h3 {
    font-size: 18px;
    font-weight: normal;
    margin-top: 18px;
    margin-bottom: 10px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Bio section */
.bio-table {
    border-collapse: collapse;
    width: 100%;
}

.bio-photo {
    width: 200px;
    vertical-align: top;
    padding-right: 30px;
}

.bio-photo img {
    width: 180px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.bio-info {
    vertical-align: top;
}

.bio-info p {
    margin: 0 0 10px 0;
    font-size: 15px;
}

/* Icon links */
.bio-icons {
    margin-top: 14px;
    display: flex;
    gap: 18px;
}

.bio-icons a {
    font-size: 22px;
    color: #555;
    transition: color 0.2s;
}

.bio-icons a:hover {
    color: #1772d0;
}

/* Navigation */
.nav {
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
}

.nav a {
    font-weight: bold;
}

/* Sections */
.section {
    margin-bottom: 10px;
}

/* News */
.new-tag {
    color: #e74c3c;
    font-weight: bold;
    font-size: 13px;
}

.section ul {
    padding-left: 20px;
}

.section ul li {
    margin-bottom: 6px;
    font-size: 15px;
}

/* Publications */
.note {
    font-size: 14px;
    color: #888;
    margin-bottom: 18px;
}

.paper {
    display: flex;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f0f0f0;
}

.paper:last-child {
    border-bottom: none;
}

.paper-media {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-media img,
.paper-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-media {
    background: #eee;
}

.paper-text {
    font-size: 14px;
    line-height: 1.55;
}

.paper-text b {
    font-size: 15px;
}

.paper-text em {
    color: #555;
}

.paper-text a {
    margin-right: 6px;
    font-size: 13px;
}

/* Experience */
.exp-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
}

.exp-table tr {
    vertical-align: top;
}

.exp-table td {
    padding: 5px 0;
}

.exp-date {
    width: 160px;
    color: #888;
    white-space: nowrap;
    padding-right: 20px;
}

.mentor {
    font-size: 14px;
    color: #666;
}

/* Footer */
.footer {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding-top: 10px;
}

.flag-counter {
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 640px) {
    .bio-table, .bio-table tbody, .bio-table tr, .bio-table td {
        display: block;
        width: 100%;
    }

    .bio-photo {
        text-align: center;
        padding: 0 0 20px 0;
        width: 100%;
    }

    .bio-photo img {
        width: 150px;
    }

    .paper {
        flex-direction: column;
    }

    .paper-media {
        width: 100%;
        height: 180px;
    }

    .exp-date {
        width: auto;
        display: block;
    }
}
