/* article.css - 文章内容展示页面样式 */

/* Article Hero */
.article-hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35)), url('../images/hero-bg-index2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 80px;
    text-align: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 61, 173, 0.25);
    background-blend-mode: overlay;
    z-index: 0;
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-hero .article-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.article-hero .article-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Article Content */
.article-content {
    padding: 20px 0 60px;
    margin: 0;
    width: 100%;
}

/* Article Header */
.article-header {
    text-align: center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.article-category {
    background-color: rgba(0, 80, 158, 0.1);
    color: #0830a0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 80, 158, 0.2);
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--metal);
    font-size: 0.95rem;
    font-weight: 500;
}

.article-date i,
.article-read-time i {
    color: var(--accent);
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-subtitle {
    color: var(--secondary);
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 0;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 30px;
    overflow: hidden;
    border-radius: var(--radius);
}

.article-body img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    margin: 20px auto;
}

.article-body p {
    margin: 0 0 24px 0;
    padding: 0;
    text-indent: 0;
}

.article-intro {
    background-color: var(--light);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-intro p {
    margin-bottom: 0;
    font-size: 1.15rem;
    color: var(--dark);
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a3dad;
    margin: 60px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a3dad;
}

.article-body h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: #0a3dad;
    margin-bottom: 10px;
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin: 40px 0 15px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body ul li::before {
    content: '\2022';
    color: #0a3dad;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body ol li::before {
    display: none;
}

.article-body strong {
    color: var(--dark);
    font-weight: 700;
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.tag-label {
    font-weight: 600;
    color: var(--secondary);
    margin-right: 8px;
    font-size: 0.9rem;
}

.article-tag {
    background-color: rgba(10, 61, 173, 0.08);
    color: #0a3dad;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover {
    background-color: #0a3dad;
    color: #ffffff;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a3dad;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-to-news:hover {
    color: #0830a0;
}

.share-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a3dad;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.share-btn:hover {
    background-color: #0a3dad;
    color: #ffffff;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--gray);
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-item {
    background-color: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.related-date {
    color: var(--metal);
}

.related-category {
    color: #0a3dad;
    font-weight: 600;
}

.related-title-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-excerpt {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: #0a3dad;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
}

.read-more-link:hover {
    color: #0830a0;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-hero {
        padding: 70px 0 50px;
    }
    
    .article-hero .article-title {
        font-size: 1.8rem;
    }
    
    .article-hero .article-subtitle {
        font-size: 1rem;
    }
    

    .article-content {
        padding: 40px 0;
    }
    
    .article-header {
        margin-bottom: 40px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .article-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .article-subtitle {
        font-size: 1.15rem;
    }
    
    .article-intro {
        padding: 20px 25px;
    }
    
    .article-body {
        font-size: 1.05rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        margin: 50px 0 20px;
    }
    
    .article-body h2::before {
        width: 30px;
        height: 3px;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-body h2,
    .article-body h3,
    .article-body p,
    .article-body ul,
    .article-body ol {
        max-width: 100%;
    }
    
    .article-body h2::before {
        margin-bottom: 8px;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 20px;
    }
    
    .article-body li {
        margin-bottom: 8px;
    }
    
    .article-footer {
        margin-top: 40px;
    }
    
    .article-navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .related-item {
        padding: 20px;
    }
}
