/* static/css/custom.css */

/* 使用更现代的字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* 卡片悬浮效果 */
.card-hover {
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 自定义滚动条样式 (适用于 Webkit 内核浏览器如 Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 适配暗黑模式的滚动条 */
[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #2b3035;
}
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #555;
}
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 简单的页脚样式 */
.footer {
    padding: 2rem 0;
    margin-top: 3rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e7e7e7;
}

[data-bs-theme="dark"] .footer {
    background-color: #212529;
    border-top: 1px solid #343a40;
}