/* ========== 文章详情页面专用样式 ========== */

/* 文章横幅 - 自定义背景 */
.article-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/fuimg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding-top: 72px;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 48, 107, 0.75), rgba(12, 79, 150, 0.55));
    z-index: 1;
}

.article-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 24px;
}

.article-hero .hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-meta span i {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 文章内容主体 */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章正文 */
.article-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-text p {
    margin-bottom: 20px;
}

.article-text h2,
.article-text h3 {
    color: var(--text);
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-text h2 { font-size: 1.6rem; }
.article-text h3 { font-size: 1.3rem; }

.article-text ul,
.article-text ol {
    margin: 16px 0 24px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.article-text li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-text ul li { list-style: disc; }
.article-text ol li { list-style: decimal; }

.article-text strong {
    color: var(--text);
    font-weight: 600;
}

.article-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--duration) var(--ease-out);
}

.article-text a:hover {
    color: var(--primary-light);
}

/* 引用块 */
.article-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-gradient);
    padding: 28px 32px;
    margin: 32px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
}

.article-quote blockquote {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 500;
}

.article-quote cite {
    display: block;
    text-align: right;
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.9rem;
}

/* 列表样式 */
.article-list h3 {
    margin-top: 20px;
    color: var(--text);
}

.article-list p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* 网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.grid-item {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease-out);
}

.grid-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-alpha);
    transform: translateY(-2px);
}

.grid-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.grid-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 标签区域 */
.article-tags {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-tags h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-right: 4px;
}

.article-tags .tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
}

.article-tags .tag:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(12, 79, 150, 0.2);
}

/* 分享按钮 */
.article-share {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-share h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.share-buttons {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--duration) var(--ease-out);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-btn.wechat { color: #07c160; border-color: #07c160; }
.share-btn.wechat:hover { background: #07c160; color: #fff; }

.share-btn.weibo { color: #e6162d; border-color: #e6162d; }
.share-btn.weibo:hover { background: #e6162d; color: #fff; }

.share-btn.linkedin { color: #0077b5; border-color: #0077b5; }
.share-btn.linkedin:hover { background: #0077b5; color: #fff; }

/* 文章导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 48px 0;
}

.prev-article a,
.next-article a {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease-out);
}

.prev-article a:hover,
.next-article a:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.prev-article span,
.next-article span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-size: 0.88rem;
    margin-bottom: 8px;
    transition: color var(--duration) var(--ease-out);
}

.prev-article a:hover span,
.next-article a:hover span {
    color: rgba(255, 255, 255, 0.8);
}

.prev-article h5,
.next-article h5 {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
    transition: color var(--duration) var(--ease-out);
}

.prev-article a:hover h5,
.next-article a:hover h5 {
    color: #fff;
}

.next-article {
    text-align: right;
}

.next-article span {
    justify-content: flex-end;
}

/* 相关文章 */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.related-articles .news-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease-out);
    text-decoration: none;
    display: block;
}

.related-articles .news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-alpha);
}

.related-articles .news-image {
    height: 190px;
    overflow: hidden;
}

.related-articles .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.related-articles .news-card:hover .news-image img {
    transform: scale(1.05);
}

.related-articles .news-content {
    padding: 20px;
}

.related-articles .news-date {
    display: inline-block;
    background: var(--primary-alpha);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-articles .news-content h4 {
    color: var(--text);
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--duration) var(--ease-out);
}

.related-articles .news-card:hover .news-content h4 {
    color: var(--primary);
}

.related-articles .news-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.related-articles .news-content .read-more {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--duration) var(--ease-out);
}

.related-articles .news-content .read-more:hover {
    color: var(--primary);
    gap: 10px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .article-hero {
        height: 360px;
        background-attachment: scroll;
    }

    .article-hero .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 320px;
    }

    .article-hero .hero-content h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        gap: 14px;
        flex-direction: column;
        align-items: center;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text h2 { font-size: 1.4rem; }
    .article-text h3 { font-size: 1.15rem; }

    .article-quote {
        padding: 20px 24px;
    }

    .article-quote blockquote {
        font-size: 1.05rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .next-article {
        text-align: left;
    }

    .next-article span {
        justify-content: flex-start;
    }

    .related-articles {
        grid-template-columns: 1fr;
    }

    .article-tags,
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .article-hero {
        height: 280px;
    }

    .article-hero .hero-content h1 {
        font-size: 1.5rem;
    }

    .article-meta span {
        font-size: 0.85rem;
    }

    .article-text {
        font-size: 0.95rem;
    }

    .article-image {
        margin-bottom: 28px;
    }

    .grid-item {
        padding: 20px;
    }

    .grid-item h4 {
        font-size: 1.05rem;
    }

    .share-btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .related-articles .news-content h4 {
        font-size: 1.05rem;
    }

    .prev-article a,
    .next-article a {
        padding: 18px;
    }

    .prev-article h5,
    .next-article h5 {
        font-size: 0.95rem;
    }
}
