/* 基础样式 */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
}

/* 解决底部空白问题 - 使用 Flexbox 布局 */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
}

/* 导航栏 */
.navbar {
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--dark-color) !important;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 个人介绍区域 */
.intro-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.intro-content h1 {
    color: var(--dark-color);
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 最近更新区域 */
.recent-section {
    min-height: 300px;
    padding: 3rem 0;
}

.recent-tools {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recent-tool-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    transition: background-color 0.2s ease;
}

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

.recent-tool-item:hover {
    background-color: #f8fafc;
}

.recent-tool-item a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.recent-tool-item a:hover {
    color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: #1f2937 !important;
    border-top: 1px solid #374151;
    margin-top: auto;
    flex-shrink: 0;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-light {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.btn-light:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-section {
        min-height: 300px;
        text-align: center;
    }

    .intro-section .col-lg-4 {
        margin-top: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .recent-section {
        padding: 2rem 0;
    }

    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .intro-section {
        padding: 2rem 0;
    }

    .recent-section {
        padding: 1.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 工具提示样式 */
.tooltip-inner {
    background-color: var(--dark-color);
    border-radius: 6px;
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.card-shadow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}