/* ===== Warm Academic Theme — Single Column Layout ===== */

:root {
    --bg: #f9f7f2;
    --bg-card: #ffffff;
    --accent: #2b6777;
    --accent-lt: #52ab98;
    --accent-bg: rgba(43, 103, 119, 0.05);
    --accent-border: rgba(43, 103, 119, 0.12);
    --text: #2d3436;
    --text-sec: #555e63;
    --text-tert: #8a9199;
    --border: #e8e4dd;
    --radius: 6px;
    --transition: 0.2s ease;
    --page-width: 920px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-lt); }

img { max-width: 100%; height: auto; }

/* ===== Page Container ===== */
.page {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 48px 24px 60px;
}

/* ===== Header / Bio ===== */
.bio {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.bio-photo {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 5px rgba(43, 103, 119, 0.08);
}

.bio-info {
    flex: 1;
    min-width: 0;
}

.bio-name {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.bio-title {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
}

.bio-desc {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.75;
    margin-bottom: 16px;
}

.bio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
}

.bio-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-sec);
    font-weight: 500;
}

.bio-links a:hover {
    color: var(--accent);
}

.bio-links a i {
    font-size: 14px;
    color: var(--accent);
}

/* Language switch in header */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-tert) !important;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    float: right;
    margin-top: 4px;
}

.lang-switch:hover {
    color: var(--accent) !important;
    border-color: var(--accent-border);
    background: var(--accent-bg);
}

/* ===== Section ===== */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent);
    font-size: 17px;
}

/* ===== News ===== */
.news-list {
    list-style: none;
    font-size: 14px;
    color: var(--text-sec);
}

.news-list li {
    padding: 6px 0;
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.news-date {
    color: var(--text-tert);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
    font-size: 13px;
}

.news-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    vertical-align: 1px;
}

/* ===== Publication Item — Left-Right Layout ===== */
.pub-item {
    display: flex;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background var(--transition);
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-item:hover {
    background: var(--accent-bg);
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--radius);
}

.pub-thumb {
    width: 240px;
    max-width: 240px;
    flex-shrink: 0;
    overflow: hidden;
}

.pub-thumb img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    transition: transform 0.3s ease;
}

.pub-item:hover .pub-thumb img {
    transform: scale(1.02);
}

.pub-info {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.45;
}

.pub-venue {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.pub-authors {
    font-size: 13px;
    color: var(--text-sec);
    margin-bottom: 6px;
    line-height: 1.5;
}

.pub-authors strong {
    color: var(--accent);
    font-weight: 600;
}

.pub-desc {
    font-size: 13px;
    color: var(--text-tert);
    line-height: 1.65;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pub-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 14px;
    border: 1px solid var(--accent-border);
    background: var(--accent-bg);
    transition: all var(--transition);
}

.pub-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pub-links a i {
    font-size: 11px;
}

/* ===== Experience ===== */
.exp-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.exp-item:last-child { border-bottom: none; }

.exp-role {
    color: var(--text);
    font-weight: 500;
}

.exp-role span {
    color: var(--text-sec);
    font-weight: 400;
}

.exp-date {
    color: var(--text-tert);
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 16px;
}

/* ===== Education ===== */
.edu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.edu-item:last-child { border-bottom: none; }

.edu-degree {
    color: var(--text);
    font-weight: 500;
}

.edu-degree span {
    color: var(--text-sec);
    font-weight: 400;
}

.edu-date {
    color: var(--text-tert);
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 16px;
}

/* ===== Projects ===== */
.proj-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.proj-item:last-child { border-bottom: none; }

.proj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.proj-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.proj-desc {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.6;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.proj-tags span {
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== Honors ===== */
.honor-list {
    list-style: none;
    font-size: 14px;
    color: var(--text-sec);
}

.honor-list li {
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.honor-list li:last-child { border-bottom: none; }

.honor-list li i {
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-tert);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page { padding: 24px 16px 40px; }

    .bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .bio-photo { width: 140px; height: 140px; }

    .bio-links { justify-content: center; }

    .lang-switch { float: none; margin-bottom: 12px; }

    .pub-item {
        flex-direction: column;
        gap: 12px;
    }

    .pub-thumb { width: 100%; }

    .exp-item, .edu-item {
        flex-direction: column;
        gap: 2px;
    }

    .exp-date, .edu-date {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .bio-name { font-size: 24px; }
    .section-title { font-size: 18px; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.bio {
    animation: fadeUp 0.4s ease forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

.section {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

.section:nth-of-type(1) { animation-delay: 0.1s; }
.section:nth-of-type(2) { animation-delay: 0.15s; }
.section:nth-of-type(3) { animation-delay: 0.2s; }
.section:nth-of-type(4) { animation-delay: 0.25s; }
.section:nth-of-type(5) { animation-delay: 0.3s; }
.section:nth-of-type(6) { animation-delay: 0.35s; }
.section:nth-of-type(7) { animation-delay: 0.4s; }
.section:nth-of-type(8) { animation-delay: 0.45s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tert); }

/* ===== Selection ===== */
::selection { background: rgba(43, 103, 119, 0.15); color: var(--text); }
