/* 站点基础样式 */
:root {
    --primary: #0d6efd;
    --body-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--body-bg);
}

a {
    transition: color 0.2s;
}

/* 导航栏样式 */
.navbar-brand {
    font-size: 1.25rem;
}

/* 文章内容样式补充 */
.article-content {
    word-wrap: break-word;
    word-break: break-word;
}

/* 卡片hover效果 */
.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
}

/* 页脚链接hover */
footer a:hover {
    color: #fff !important;
}

/* 广告位 */
.ad-slot img {
    max-width: 100%;
    border-radius: 0.375rem;
}

/* 自定义页头 */
.header-custom img {
    max-width: 100%;
    height: auto;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}

.back-to-top.show {
    display: flex;
}

/* 分页样式优化 */
.page-link {
    min-width: 2.5rem;
    text-align: center;
}

/* 搜索框 */
.input-group .form-control:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem !important;
    }

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