/*
前台自定义样式 - 仿 ai-bot.cn 风格
*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafc;
}

.site-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}
.site-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 100, 200, 0.15) !important;
}
.site-icon img {
    object-fit: contain;
    border-radius: 12px;
    background: #f5f7fa;
    padding: 6px;
}
.category-section {
    scroll-margin-top: 120px;
}
.border-start {
    border-left-width: 5px !important;
}
.btn-primary {
    background-color: #1e6df2;
    border-color: #1e6df2;
}
.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}
.text-primary {
    color: #1e6df2 !important;
}
.bg-primary {
    background-color: #1e6df2 !important;
}

/* 顶部分类导航 - 优化高亮颜色 */
.nav-pills .nav-link {
    color: #495057;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    margin-right: 0.5rem;
    background-color: #f8f9fa;
}
.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}
.nav-pills .nav-link.active {
    background-color: #e9ecef;  /* 主色调蓝色 */
    color: white;
}
.nav.flex-nowrap {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f9fa;
}
.nav.flex-nowrap::-webkit-scrollbar {
    height: 5px;
}
.nav.flex-nowrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* 详情页卡片 */
.card.shadow-lg {
    border-radius: 24px;
}

/* 分页样式 */
.pagination .page-link {
    color: #1e6df2;
    border-radius: 8px;
    margin: 0 3px;
}
.pagination .page-item.active .page-link {
    background-color: #1e6df2;
    border-color: #1e6df2;
}

/* 手机适配 */
@media (max-width: 576px) {
    .site-card .card-title {
        font-size: 1rem;
    }
    .site-card .card-text {
        font-size: 0.8rem;
    }
    .category-section {
        scroll-margin-top: 100px;
    }
}
/* 手机适配优化导航菜单 */
@media (max-width: 576px) {
    .nav-pills .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }
}
/* 修复模态框错位问题 */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 1rem);
}
@media (min-width: 576px) {
    .modal-dialog {
        min-height: calc(100vh - 3.5rem);
    }
}