/* 文章详情页样式 */

/* 页面标题 */
.page-title {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border-bottom: 1px solid #e8ecff;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/letsvpn-banner.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin: 0;
}

/* 文章布局 */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* 文章详情 */
.article-details {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border: 1px solid #f0f4ff;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-details .article-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.article-details .article-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f4ff;
}

.article-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.article-image img {
    width: 100%;
    max-width: max-content;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

/* 文章内容样式 */
.article-body *{
    font-size: 1rem;
    line-height: 1.6rem;
}
.article-body {
    color: #4b5563;
}

.article-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 1.8rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #f0f4ff;
}
.article-body h2 *{
    font-size: 1.3rem;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 1.5rem 0 0.8rem;
}

.article-body p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.article-body ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1em;
}

.article-body ul ul{
    margin-top:.3rem;
    margin-bottom: .3rem;
    padding-left: 1rem;
}
.article-body ul ol{
    margin-top:.3rem;
    margin-bottom: .3rem;
    padding-left: 1rem;
}
.article-body ol{
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.article-body ol ul{
    margin-top:.3rem;
    margin-bottom: .3rem;
    padding-left: 1rem;
}
.article-body ol ol{
    margin-top:.3rem;
    margin-bottom: .3rem;
    padding-left: 1rem;
}
.article-body li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.article-body a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.article-body a:hover {
    color: #3a57d9;
    text-decoration: underline;
}
.article-body img{
    height: auto;
    max-width: 100%;
    text-align: left;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
}
/* 文章导航 */
.article-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid #f0f4ff;
    gap: 1.2rem;
}

.prev-article, .next-article {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.prev-article span, .next-article span {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.prev-article a, .next-article a {
    display: inline-block;
    color: #4a6cf7;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    line-height: 1.4;
    flex: 1;
    white-space: normal;
    word-break: break-word;
}

.prev-article a:hover, .next-article a:hover {
    color: #3a57d9;
    transform: translateX(3px);
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}





/* 响应式设计 */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: relative;
        top: 0;
    }
    
    .article-details {
        padding: 1.8rem;
    }
    
    .article-details .article-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 2.5rem 0;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .article-details {
        padding: 1.5rem;
    }
    
    .article-details .article-title {
        font-size: 1.4rem;
    }
    
    .article-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    
    .prev-article, .next-article {
        width: 100%;
    }
    
    .next-article {
        text-align: left;
    }
    
    .next-article a:hover {
        transform: translateX(3px);
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .article-details {
        padding: 1.2rem;
    }
    
    .article-details .article-title {
        font-size: 1.2rem;
    }
    
    .article-details .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

/* 动画效果 */
.article-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    margin-top: 80px;
}

.article-section.active {
    opacity: 1;
    transform: translateY(0);
}





/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}