/* --- cv.css: Matching MUJI Minimalist Clean Style --- */

/* 1. 变量定义 (与 style.css 保持一致) */
:root {
    --bg-body: #FFFFFF;
    --bg-alt: #F7F8F9;
    --text-main: #2C2C2C;
    --text-sub: #666666;
    --accent: #5A7D7C; /* 莫兰迪绿/灰绿 */
    --accent-hover: #456362;
    --border: #E5E5E5;
    --container-width: 1000px;
    --radius: 4px;
}

/* 2. 基础和容器 */
body {
    font-family: 'Helvetica', 'Lato', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.cv-container {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 30px;
}

/* 3. 头部信息和排版 */
.cv-header-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    font-size: 0.95rem;
}

.info-block {
    padding: 15px;
    border-left: 3px solid var(--border);
}

.section-label {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    margin-right: 15px;
    color: var(--text-sub);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-hover);
}

.cta-button {
    /* ---------------------------------------------------- */
    /* *** 强调色填充按钮 (Primary/Accent Button) *** */
    /* ---------------------------------------------------- */
    display: inline-block;
    padding: 10px 20px; /* 增加内边距 */
    margin-top: 35px; /* 增加顶部间距 */
    border: 1px solid var(--accent); /* 使用强调色边框 */
    border-radius: var(--radius);
    background-color: var(--accent); /* 强调色填充 */
    color: #FFFFFF; /* 文本改为白色，形成高对比度 */
    font-size: 1rem; /* 略微增大字号 */
    font-weight: 500;
    text-decoration: none; /* 确保无下划线 */
    transition: all 0.3s;
}

.cta-button:hover {
    /* 鼠标悬停时：颜色略深，增加阴影以体现可点击性 */
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px); /* 轻微上浮效果 */
}

.mt-20 { margin-top: 20px; }
.section-divider { border: 0; border-top: 1px dashed var(--border); margin: 40px 0; }

/* 4. 快速导航 (Quick Navigation) */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-button {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--text-sub);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-button:hover {
    background-color: var(--text-main);
    color: #FFF;
}

/* 5. 主要内容区 */
.cv-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.cv-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-hover);
    margin-top: 20px;
    margin-bottom: 10px;
}

.cv-section {
    margin-bottom: 40px;
}

/* 6. 列表样式 (统一 Clean Style) */
.clean-list, .review-list, .teaching-list {
    list-style: none;
    padding-left: 0;
}
.clean-list li, .review-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}
/* 列表项前的圆点 (Muji Style) */
.clean-list li::before, .review-list li::before {
    content: '•'; 
    color: var(--accent);
    font-size: 1.2em;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* 审稿链接的颜色 */
.review-list a, .link-list a, .org-category a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.review-list a:hover, .link-list a:hover, .org-category a:hover {
    color: var(--accent);
}

/* 7. 软件 (Software) 列表 */
.software-list {
    list-style: none;
    padding: 0;
}
.software-list li {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid var(--bg-alt);
    border-radius: var(--radius);
    background-color: var(--bg-alt);
}
.software-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
}
.software-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 10px;
}
.software-links {
    display: flex;
    gap: 10px;
}

.link-button {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--text-sub);
    border-radius: 3px;
    color: var(--text-sub);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}
.link-button:hover {
    background-color: var(--text-sub);
    color: #FFF;
}
.link-secondary {
    border-color: var(--accent);
    color: var(--accent);
}
.link-secondary:hover {
    background-color: var(--accent);
    color: #FFF;
}

/* 8. 成果 (Publication) 列表 */
.pub-list {
    list-style: none;
    padding: 0;
}
.pub-list li {
    margin-bottom: 30px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}
.pub-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 3px;
}
.pub-authors, .pub-journal {
    font-size: 0.9rem;
    color: var(--text-sub);
    display: block;
    margin-bottom: 5px;
}
.pub-links {
    margin-top: 10px;
}

/* 9. 报告 (Talks) 列表 */
.talk-list {
    list-style: none;
    padding: 0;
}
.talk-list li {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}
.talk-list a {
    color: var(--text-main);
    font-weight: 500;
}
.talk-list a:hover {
    color: var(--accent);
}
.talk-type {
    font-size: 0.9rem;
    color: var(--text-sub);
    padding-top: 5px;
    padding-left: 10px;
}

/* 10. 教学 (Teaching) 列表 */
.teaching-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.course-code {
    font-weight: 700;
    color: var(--text-main);
}
.tutorial-links {
    margin-top: 5px;
    padding-left: 10px;
    display: flex;
    gap: 10px;
}
.note {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: 15px;
}

/* 11. 链接 (Links) 列表 */
.link-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 25px;
}
.link-list li {
    font-size: 0.9rem;
    width: calc(33% - 20px); /* 桌面端每行3个 */
    margin-bottom: 8px;
}
.link-list a {
    color: var(--text-sub);
}

/* ---  Footer --- */
.site-footer {
    /* 重点修正：增加顶部外部间距，将 Footer 推离上方内容 */
    **margin-top: 80px;** /* 建议使用 60px 或更大，提供清晰的分隔 */
    
    /* 保持您设置的 Footer 内部填充，使文本看起来宽松 */
    padding: 30px 0; 
    text-align: center;
    
    /* 保留分隔线和背景色 */
    border-top: 1px solid var(--border); 
    background-color: var(--bg-alt); 
}

/* 统一设置 Footer 文本样式 */
.site-footer p {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin: 5px 0; 
}
/* 针对您保留的版权文本 */
.site-footer .copyright-text {
    margin-top: 0; 
}

/* 12. 响应式设计 */
@media (max-width: 900px) {
    .cv-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    .contact-area {
        grid-template-columns: 1fr; /* 小屏幕堆叠 */
    }
    .quick-nav {
        justify-content: center;
        gap: 8px;
    }
    .link-list li {
        width: calc(50% - 15px); /* 平板每行2个 */
    }
}

@media (max-width: 500px) {
    .link-list li {
        width: 100%; /* 手机每行1个 */
    }
    .nav-button {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}
