/* 
 * Agent17文章页面样式表
 * 创建日期: 2025-03-25
 * 版本: 1.0
 */

/* 文章英雄区域 */
.article-hero-section {
    position: relative;
    background: linear-gradient(rgba(18, 14, 8, 0.8), rgba(18, 14, 8, 0.9)), url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 3rem;
    margin-bottom: 0;
    text-align: center;
}

.article-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(246, 195, 4, 0.1) 0%, rgba(18, 14, 8, 0) 70%);
    z-index: 1;
    opacity: 0.5;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeDown 0.8s ease-out;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-nav {
    width: 100%;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    background-color: rgba(54, 42, 29, 0.4);
    border: 1px solid rgba(246, 195, 4, 0.15);
}

.back-to-home-btn:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
    background-color: rgba(54, 42, 29, 0.6);
    border-color: var(--primary-color);
}

.article-title {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--muted-text);
}

.article-date, .article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date i, .article-author i {
    color: var(--primary-color);
}

/* 文章内容区域 */
.article-content-section {
    background-color: var(--dark-bg);
    padding: 3rem 0 5rem;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--light-text);
    font-size: 1.05rem;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.content-heading {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin: 2rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.article-list {
    margin-bottom: 2rem;
    list-style: none;
}

.article-list .update-item {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.article-list .update-item:last-child {
    margin-bottom: 0;
}

/* 公告框样式 */
.notice-box {
    background-color: rgba(246, 195, 4, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.notice-box p {
    color: var(--light-text);
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 角色预览卡片 */
.character-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.character-card {
    background-color: rgba(54, 42, 29, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.character-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 2px);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.character-card:hover img {
    transform: scale(1.05);
}

.character-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.character-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 文章操作区域 */
.article-actions {
    margin-top: 3rem;
    text-align: center;
}

.download-article-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--gradient-primary);
    color: var(--button-text);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(246, 195, 4, 0.25);
}

.download-article-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(246, 195, 4, 0.45);
}

.download-article-btn i {
    margin-right: 0.5rem;
}

/* 相关文章 */
.related-articles {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.related-title {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.related-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.related-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(54, 42, 29, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
    color: var(--light-text);
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background-color: rgba(54, 42, 29, 0.6);
}

.related-content {
    flex: 1;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

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

.related-date {
    font-size: 0.85rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.related-card:hover .related-icon {
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .article-container {
        padding: 0 1rem;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-hero-section {
        padding: 6rem 0 2.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .character-preview {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb-nav {
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .back-to-home-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
    }
    
    .article-meta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .notice-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .article-hero-section {
        padding: 5.5rem 0 2rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .content-heading {
        font-size: 1.4rem;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .download-article-btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .notice-box {
        padding: 1rem;
    }
} 