/* 全局样式 */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #4582ec;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #868e96;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9fb;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: #555 !important;
    font-weight: 500;
    margin: 0 10px;
}

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

.search-form input {
    border-radius: 20px;
    padding-left: 15px;
    border: 1px solid #eee;
}

.search-form button {
    border-radius: 20px;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-form button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 主内容区 */
.content-section {
    margin-top: 30px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-header {
    font-weight: 700;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.card-title a {
    color: #333;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-text {
    color: #666;
    line-height: 1.7;
}

.post-meta {
    margin-bottom: 15px;
    color: var(--gray-color);
}

.post-meta i {
    margin-right: 4px;
}

.post-meta span {
    margin-right: 15px;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 侧边栏 */
.sidebar-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
}

.sidebar-card .card-header {
    font-size: 1.1rem;
}

.sidebar-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f3f3;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: block;
    color: #555;
    transition: all 0.2s ease;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 博客内容 */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.blog-header {
    margin-bottom: 30px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 评论区 */
.comment-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.comment-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* 页脚 */
footer {
    background-color: #343a40;
    padding: 50px 0;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.7);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    border: none;
    color: #666;
    margin: 0 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
}

/* 首页横幅 */
.main-banner {
    /* background: linear-gradient(135deg, #6f42c1 0%, #4582ec 100%); */
    padding-top: 50px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    color: white;
    border-radius: 0 0 50% 50% / 15%;
}

.main-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.main-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}