/* --- 1. 变量定义 (Design Tokens) --- */
:root {
    /* 核心色板 */
    --color-primary: #2563eb;       /* 主色 (皇家蓝) */
    --color-primary-dark: #1e40af;  /* 深蓝 (Hover状态) */
    --color-primary-light: #eff6ff; /* 浅蓝 (背景点缀) */
    
    --color-text-main: #0f172a;     /* 深色文字 (Slate 900) */
    --color-text-muted: #64748b;    /* 次要文字 (Slate 500) */
    --color-text-light: #94a3b8;    /* 浅色文字 */
    
    --color-bg-body: #f8fafc;       /* 整体背景 (Slate 50) */
    --color-bg-card: #ffffff;       /* 卡片背景 */
    --color-border: #e2e8f0;        /* 边框颜色 */
    
    /* 间距与尺寸 */
    --container-width: 1100px;
    --radius-md: 12px;
    --radius-full: 9999px;
    
    /* 阴影效果 (让页面立体美观的关键) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- 2. 全局重置 (Reset) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* 让字体在 Mac 上更清晰 */
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
button { font-family: inherit; border: none; cursor: pointer; }

/* --- 3. 通用工具类 --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* --- 4. 导航栏 --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-main);
}
.logo .icon-brand { color: var(--color-primary); }

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.nav-item:hover, .nav-item.active { color: var(--color-primary); }

/* --- 5. 顶部 Banner --- */
.page-header {
    height: 220px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    color: white;
}

/* 点阵背景图案 */
.header-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
}

.header-content {
    position: relative;
    padding-top: 30px;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition:  0.2s;
}
.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- 6. 主布局 (Grid) --- */
.main-grid {
    display: grid;
    grid-template-columns: 300px 1fr; /* 左侧固定，右侧自适应 */
    gap: 30px;
    margin-top: -100px; /* 让卡片上浮到 Banner 上 */
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* 响应式：手机端变为单列 */
@media (max-width: 850px) {
    .main-grid {
        grid-template-columns: 1fr;
        margin-top: -60px;
    }
}

/* --- 7. 卡片通用样式 --- */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* --- 8. 左侧栏 (Sidebar) --- */
.profile-card {
    padding: 30px 20px;
    text-align: center;
}

.profile-image-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    padding: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-title {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.profile-socials a {
    width: 36px;
    height: 36px;
    background: var(--color-bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.profile-socials a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.profile-details {
    text-align: left;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.icon-detail { width: 18px; height: 18px; color: var(--color-text-light); }
.detail-row a:hover { color: var(--color-primary); text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
}
.btn-full { width: 100%; }

.info-card { padding: 24px; }

/* 标签 Tags */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 0.8rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* 时间轴 Timeline */
.timeline { position: relative; }
.timeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 24px;
    border-left: 2px solid var(--color-border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -6px; top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px white;
}
.school { font-size: 0.95rem; font-weight: 600; }
.degree { font-size: 0.85rem; color: var(--color-text-muted); }
.year { font-size: 0.75rem; color: var(--color-text-light); background: var(--color-bg-body); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }

/* --- 9. 右侧内容 (Content Area) --- */
.content-card { padding: 0; }
.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}
.card-body { padding: 24px; }

.section-title { font-size: 1.25rem; font-weight: 700; color: var(--color-text-main); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

.bio-text p { margin-bottom: 16px; color: var(--color-text-muted); font-size: 1.05rem; }
.bio-text p:last-child { margin-bottom: 0; }

.view-all-link { font-size: 0.9rem; color: var(--color-primary); display: flex; align-items: center; gap: 4px; font-weight: 500; }

/* 统计卡片 (Stats) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
}
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: 0.85rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* 论文列表 */

.pub-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    transition:  0.2s;
}
.pub-item:last-child { border-bottom: none; }
.pub-item:hover { background-color: #fcfeff; }

.pub-year {
    font-weight: 700;
    color: var(--color-text-light);
    font-size: 1.1rem;
    min-width: 50px;
}

.pub-title a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
}
.pub-title a:hover { color: var(--color-primary); }

.pub-authors {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pub-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.journal-tag {
    font-size: 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.link-group { display: flex; gap: 12px; }
.link-group a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.link-group a:hover { color: var(--color-text-main); }

/* --- 10. 页脚 --- */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}