﻿/* 修改背景和整体样式 */
body {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* 博客列表页样式 */
.blog-main {
    padding: 6rem 0 4rem;
    min-height: calc(100vh - 200px);
    background: #1a1a1a;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #ff3d00, #ff6d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-description {
    color: #999;
    font-size: 1.2rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-item {
    background: #242424;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-3px);
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-item.featured {
    background: linear-gradient(45deg, #1a1a1a, #242424);
    border: 1px solid rgba(255, 61, 0, 0.3);
    position: relative;
}

.featured-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(120deg, #ff3d00, #ff6d00);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}

.blog-meta {
    margin-bottom: 1rem;
}

.blog-date, .blog-category {
    color: #888;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.blog-item h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-item h2 a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item h2 a:hover {
    color: #ff3d00;
}

.blog-excerpt {
    color: #999;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-views {
    color: #666;
    font-size: 0.9rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: #242424;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: #ff3d00;
    color: white;
}

/* 文章详情页样式 */
.article-main {
    padding: 6rem 0 4rem;
    background: #1a1a1a;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    margin-bottom: 1.5rem;
}

.article-date, .article-category, .article-views {
    color: #888;
    margin: 0 0.5rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    color: #e0e0e0;
}

.article-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #e0e0e0;
    line-height: 1.8;
}

.article-summary {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #242424;
    border-radius: 8px;
    border-left: 4px solid #ff3d00;
}


.article-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #ff3d00;
}

.config-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.config-table th, .config-table td {
    padding: 1rem;
    border: 1px solid #333;
    text-align: left;
}

.config-table th {
    background: #1a1a1a;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-tags .tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: #242424;
    color: #e0e0e0;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;/* 添加底部间距 */
}

.share-link {
    color: #888;
    text-decoration: none;
    margin-left: 1rem;
}

.share-link:hover {
    color: #ff3d00;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.related-articles h3 {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #242424;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #2a2a2a;
    transform: translateX(5px);
}

.related-title {
    color: #e0e0e0;
}

.related-date {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-item {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 0 1rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 导航栏样式覆盖 */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 150%;
    height: 150%;
}

/* 移动端导航栏 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

/* 添加当前页面激活状态样式 */
.nav-links a.active {
    background: rgba(255, 61, 0, 0.1);
    color: #ff3d00;
}

.nav-links a.active::before {
    width: 150%;
    height: 150%;
    background: rgba(255, 61, 0, 0.1);
} 
/* 修改面包屑导航样式 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 1rem 2rem;
    color: #e0e0e0;
    background: #292929;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #e0e0e0;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 0.3rem;
}