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

:root {
    --primary-color: #2563eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero 区域 */
.hero-section {
    padding: 6rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    text-align: center;
}

.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 10px;
    object-fit: cover;
    border: 5px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.profile-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* 新闻部分 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.news-content {
    color: var(--text-secondary);
}

.news-content strong {
    color: var(--text-primary);
}

/* 论文发表部分 */
.note {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pub-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pub-authors {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pub-venue {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-link {
    padding: 0.375rem 1rem;
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pub-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 学术服务部分 */
.services-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.services-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-item {
    padding: 0.5rem 1rem;
    background-color: var(--bg-primary);
    border-radius: 0.375rem;
    box-shadow: var(--shadow);
    color: var(--text-primary);
    font-weight: 500;
}

/* 页脚 */
.footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

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

    .publication-item {
        grid-template-columns: 1fr;
    }

    .pub-image {
        text-align: center;
    }

    .pub-image img {
        max-width: 300px;
    }

    .news-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .profile-img {
        width: 260px;
        height: 260px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 特殊文本高亮效果 */
.highlight-keyword {
    color: var(--primary-color);
    font-weight: 600;
    padding: 2px 6px;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.highlight-keyword:hover {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    transform: translateY(-1px);
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.highlight-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.highlight-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.highlight-link:hover::after {
    width: 100%;
}

.highlight-link:hover {
    color: #1d4ed8;
}

/* 作者名字特殊样式 */
.author-me {
    color: var(--primary-color);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.author-me:hover {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
    transform: scale(1.05);
    display: inline-block;
}

/* 会议名称特殊美化 */
.conference-name {
    color: #dc2626;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.05) 100%);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.conference-name:hover {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}
/* 求职信息样式 */
.looking-for-positions {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

.positions-text {
    color: white;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.positions-text strong {
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.positions-text br {
    margin-bottom: 0.3rem;
}

.positions-text em {
    display: block;
    margin-top: 0.8rem;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 600;
    opacity: 0.95;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .looking-for-positions {
        padding: 1.2rem;
    }
    
    .positions-text {
        font-size: 0.95rem;
    }
    
    .positions-text strong {
        font-size: 1.1rem;
    }
}

/* Visitor Map */
.visitor-map {
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
}

.visitor-map h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .visitor-map {
        padding: 1rem;
        margin: 1rem;
    }
    
    .visitor-map h3 {
        font-size: 1.2rem;
    }
}
