/* ====== 文章独享样式 ====== */
.article-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 160, 233, 0.04) 100%);
    padding-top: 40px;
}

.article-header-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.article-header h1 {
    font-size: 3.8rem;
    margin-bottom: 30px;
}

.article-header p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 1rem;
}

.article-meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.article-main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 40px 0 60px;
    box-shadow: var(--box-shadow);
}

.article-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.article-main-image:hover img {
    transform: scale(1.03);
}

/* ====== 文章主体样式 ====== */
.article-body {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    padding: 70px;
    box-shadow: var(--box-shadow);
    margin-bottom: 80px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 40px 0;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-body h2 {
    margin-top: 60px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-body h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-body h5 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.article-body p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    line-height: 1.9;
}

.article-body ul, .article-body ol {
    margin-right: 30px;
    margin-bottom: 30px;
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-right: 5px solid var(--primary-color);
    padding: 25px 30px;
    margin: 40px 0;
    background: rgba(0, 102, 204, 0.03);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-info-box {
    background: rgba(0, 102, 204, 0.05);
    border-right: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: var(--border-radius-sm);
    margin: 40px 0;
}

.article-info-box h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* ====== 文章导航（上一篇/下一篇） ====== */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 80px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 45%;
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.article-nav-item:hover {
    background: rgba(0, 102, 204, 0.05);
}

.article-nav-item.prev {
    text-align: right;
}

.article-nav-item.next {
    text-align: left;
    flex-direction: row-reverse;
    margin-right: auto;
}

.article-nav-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.article-nav-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.article-nav-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--gray-color);
}

/* ====== 相关文章 ====== */
.related-articles {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

.related-articles-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.related-articles-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.related-articles-header p {
    font-size: 1.25rem;
    color: var(--gray-color);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.related-article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
}

.related-article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.1);
}

.related-article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-article-category {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.related-article-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.related-article-content h4 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.related-article-content h4 a:hover {
    color: var(--primary-color);
}

.related-article-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--gray-color);
    flex-grow: 1;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 102, 204, 0.05);
}

.related-article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ====== Newsletter Section ====== */
.newsletter {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
}

.newsletter h2:after {
    background: white;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.3rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1.05rem;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.newsletter .btn {
    background: white;
    color: var(--primary-color);
}

.newsletter .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ====== 文章页的响应式设计 ====== */
@media (max-width: 1200px) {
    .article-header h1 {
        font-size: 3.2rem;
    }
    
    .article-body {
        padding: 50px;
    }
}

@media (max-width: 992px) {
    .article-main-image {
        height: 400px;
    }
    
    .article-body {
        padding: 40px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 30px;
    }
    
    .article-nav-item {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2.5rem;
    }
    
    .article-header p {
        font-size: 1.1rem;
    }
    
    .article-main-image {
        height: 300px;
        margin: 30px 0 40px;
    }
    
    .article-body {
        padding: 30px 25px;
        margin-bottom: 50px;
    }
    
    .article-body h2 {
        font-size: 2rem;
    }
    
    .article-body h3 {
        font-size: 1.6rem;
    }
    
    .article-body p {
        font-size: 1.05rem;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-main-image {
        height: 250px;
    }
    
    .article-body {
        padding: 25px 20px;
    }
    
    .article-body h2 {
        font-size: 1.8rem;
    }
}