/* ===== Fluent Design 完整样式覆盖 ===== */
/* 确保 Fluent Design 风格贯彻到底 */

/* 全局字体强制替换为无衬线字体 */
* {
    font-family: 'Segoe UI', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
}

body {
    font-weight: 500 !important;
    font-family: 'Segoe UI', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-bottom: 24px !important;
}

h2 {
    font-size: 2rem !important;
    margin-bottom: 20px !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
}

p {
    font-weight: 500 !important;
    margin-bottom: 16px !important;
}

/* ===== 导航栏 - Fluent Design ===== */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid #edebe9;
    padding: 12px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.33, 0, 0.67, 1);
}

.nav-link:hover {
    background: #f3f2f1;
}

.nav-link.active {
    color: #0078d4;
    background: rgba(0, 120, 212, 0.1);
}

/* ===== Hero 区域 - Fluent Design ===== */
.hero {
    padding: 64px 0 !important;
}

.hero-content {
    gap: 48px !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #605e5c !important;
    margin-bottom: 24px !important;
}

.hero-description p {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
}

/* ===== 卡片 - Fluent Design ===== */
.card, .info-card, .stat-card, .publication-item, .portfolio-card, .project-card {
    background: #ffffff;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #edebe9 !important;
    transition: all 0.2s cubic-bezier(0.33, 0, 0.67, 1) !important;
    margin-bottom: 24px !important;
}

.card:hover, .info-card:hover, .stat-card:hover, .publication-item:hover, .portfolio-card:hover, .project-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 0 2px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
}

/* ===== 统计卡片网格 - 更大留白 ===== */
.stats-grid, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px !important;
    margin-bottom: 48px !important;
}

/* ===== 统计卡片优化 ===== */
.stats-summary, .github-stats {
    background: var(--card-background) !important;
    border: 1px solid rgba(0, 120, 212, 0.12) !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04) !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.stats-summary .stat-item, .github-stats .stat-item {
    padding: 8px 12px !important;
}

.stat-icon {
    font-size: 1.75rem !important;
    margin-bottom: 6px !important;
}

.stat-number {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.stat-label {
    font-size: 0.875rem !important;
    margin-top: 4px !important;
}

/* ===== 区域间距 - Fluent Design ===== */
.hero, .info-section, .stats-section, .research-interests-section, .find-me-section {
    padding: 64px 0 !important;
}

.page-content {
    padding: 24px 0 64px 0 !important;
}

.section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 32px !important;
    text-align: center;
}

/* ===== 按钮 - Fluent Design 统一圆角 ===== */
.btn {
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.33, 0, 0.67, 1) !important;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

/* 主按钮样式 */
.btn-primary {
    background: #0078d4 !important;
    color: #ffffff !important;
    border: 1px solid #0078d4 !important;
}

.btn-primary:hover {
    background: #106ebe !important;
    border-color: #106ebe !important;
}

/* 次要按钮样式 */
.btn-secondary {
    background: #f3f2f1 !important;
    color: #242424 !important;
    border: 1px solid #e1dfdd !important;
}

.btn-secondary:hover {
    background: #e1dfdd !important;
    border-color: #c8c6c4 !important;
}

/* ===== 标签/徽章 - 圆角设计 ===== */
.tag, .meta-tag {
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: #f3f2f1 !important;
    border: 1px solid #edebe9 !important;
    display: inline-block;
    margin: 4px 4px 4px 0;
}

.tag:hover {
    background: #e1dfdd !important;
}

/* 作品集元信息 */
.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 !important;
}

.meta-tag {
    background: rgba(0, 120, 212, 0.08) !important;
    color: #0078d4 !important;
    border-color: rgba(0, 120, 212, 0.2) !important;
}

/* 作品集操作按钮 */
.portfolio-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px !important;
    padding-top: 16px;
    border-top: 1px solid #edebe9;
}

.portfolio-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* ===== 筛选按钮 - Fluent Design 统一样式 ===== */
.filter-btn, .filter-buttons .btn, .category-btn {
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: #f3f2f1 !important;
    color: #242424 !important;
    border: 1px solid #e1dfdd !important;
    transition: all 0.2s cubic-bezier(0.33, 0, 0.67, 1) !important;
    cursor: pointer;
    font-family: 'Segoe UI', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
}

.filter-btn:hover, .filter-buttons .btn:hover, .category-btn:hover {
    background: #e1dfdd !important;
    border-color: #c8c6c4 !important;
    transform: translateY(-1px);
}

.filter-btn.active, .filter-buttons .btn.active, .category-btn.active {
    background: #0078d4 !important;
    color: #ffffff !important;
    border-color: #0078d4 !important;
}

.filter-btn.active:hover, .filter-buttons .btn.active:hover, .category-btn.active:hover {
    background: #106ebe !important;
    border-color: #106ebe !important;
}

/* ===== 社交链接 - 圆角卡片 ===== */
.social-link {
    padding: 16px 24px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #edebe9 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.33, 0, 0.67, 1);
}

.social-link:hover {
    background: #f3f2f1 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* ===== 头像 - 圆角设计 ===== */
.profile-image, .hero-image img {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* ===== Logo - 圆角设计 ===== */
.logo {
    border-radius: 8px !important;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

/* ===== 页面标题区域 ===== */
.page-header {
    padding: 48px 0 !important;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05) 0%, rgba(0, 120, 212, 0.02) 100%);
    border-bottom: 1px solid #edebe9;
    margin-bottom: 48px !important;
}

.page-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.page-subtitle {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: #605e5c !important;
}

/* ===== 网格布局 - 更大留白 ===== */
.grid {
    gap: 24px !important;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

/* ===== 出版物列表 - 更大间距 ===== */
.publications-list, .portfolio-grid, .projects-grid {
    display: grid;
    gap: 24px !important;
    margin-top: 32px !important;
}

/* ===== 年份标题 ===== */
.year-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 48px 0 24px 0 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #edebe9;
}

/* ===== 作者名称 ===== */
.authors {
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
}

/* ===== 期刊信息 ===== */
.journal-info {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #605e5c !important;
    margin-bottom: 16px !important;
}

/* ===== 特色标签 ===== */
.featured-label {
    display: inline-block;
    padding: 6px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
}

/* ===== 特殊标签（部长批示等）===== */
.special-tag {
    background: linear-gradient(135deg, #d13438 0%, #c239b3 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgba(209, 52, 56, 0.3) !important;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0 !important;
    margin-top: 64px !important;
    border-top: 1px solid #edebe9;
    background: #faf9f8;
}

.footer p {
    font-weight: 500 !important;
    color: #605e5c !important;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .hero-description p {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .page-title {
        font-size: 2rem !important;
    }
    
    .hero, .info-section, .stats-section {
        padding: 40px 0 !important;
    }
    
    .page-content {
        padding: 24px 0 40px 0 !important;
    }
}

/* ===== 暗色模式支持 ===== */
@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(27, 27, 27, 0.9);
        border-bottom-color: #3b3b3b;
    }
    
    .nav-link:hover {
        background: #2f2f2f;
    }
    
    .nav-link.active {
        color: #4a9eff;
        background: rgba(74, 158, 255, 0.15);
    }
    
    .card, .info-card, .stat-card, .publication-item, .portfolio-card, .project-card {
        background: #292929;
        border-color: #3b3b3b !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24), 0 0 2px rgba(0, 0, 0, 0.12) !important;
    }
    
    .card:hover, .info-card:hover, .stat-card:hover, .publication-item:hover, .portfolio-card:hover, .project-card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.36), 0 0 2px rgba(0, 0, 0, 0.18) !important;
    }
    
    .page-header {
        background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(74, 158, 255, 0.03) 100%);
        border-bottom-color: #3b3b3b;
    }
    
    .stats-summary, .github-stats {
        background: #292929 !important;
        border-color: rgba(74, 158, 255, 0.2) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24), 0 0 1px rgba(0, 0, 0, 0.12) !important;
    }
    
    .tag {
        background: #2f2f2f !important;
        border-color: #3b3b3b !important;
    }
    
    /* 暗黑模式按钮 */
    .filter-btn, .filter-buttons .btn, .category-btn {
        background: #2f2f2f !important;
        color: #ffffff !important;
        border-color: #3b3b3b !important;
    }
    
    .filter-btn:hover, .filter-buttons .btn:hover, .category-btn:hover {
        background: #3b3b3b !important;
        border-color: #4a4a4a !important;
    }
    
    .filter-btn.active, .filter-buttons .btn.active, .category-btn.active {
        background: #4a9eff !important;
        color: #ffffff !important;
        border-color: #4a9eff !important;
    }
    
    .btn-secondary {
        background: #2f2f2f !important;
        color: #ffffff !important;
        border-color: #3b3b3b !important;
    }
    
    .btn-secondary:hover {
        background: #3b3b3b !important;
        border-color: #4a4a4a !important;
    }
    
    .btn-primary {
        background: #4a9eff !important;
        border-color: #4a9eff !important;
    }
    
    .btn-primary:hover {
        background: #6cb0ff !important;
        border-color: #6cb0ff !important;
    }
    
    .social-link {
        background: #292929 !important;
        border-color: #3b3b3b !important;
    }
    
    .social-link:hover {
        background: #2f2f2f !important;
    }
    
    .footer {
        background: #1b1b1b;
        border-top-color: #3b3b3b;
    }
    
    .portfolio-actions {
        border-top-color: #3b3b3b;
    }
}

