/* ========================================
   文章详情页专用样式
   ======================================== */

/* 幻灯片容器 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 75vw;
    width: 75%;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner 中的面包屑导航 */
.slide-content .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    flex-wrap: wrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content .breadcrumb-icon {
    display: flex;
    align-items: center;
}

.slide-content .breadcrumb-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.slide-content .breadcrumb-text {
    color: rgba(255, 255, 255, 0.9);
}

.slide-content .breadcrumb-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.9;
}

.slide-content .breadcrumb-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.slide-content .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 4px;
}

.slide-content .breadcrumb-current {
    color: white;
    font-weight: 600;
    opacity: 1;
}

.slide-content .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 文章详情容器 - 控制整体宽度和布局 */
.article-detail {
    max-width: 75vw;
    width: 75%;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 文章头部区域 - 标题和元信息 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

/* 文章主标题 */
.article-header h1 {
    font-size: 30px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 文章元信息（作者、时间、阅读量） */
.article-info {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

/* 文章标签区域 */
.article-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f2ff;
    color: #667eea;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #667eea;
    color: #fff;
}

/* 文章正文内容区 */
.article-body {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* 正文段落 */
.article-body p {
    margin-bottom: 5px;
}

/* 正文二级标题 */
.article-body h2 {
    font-size: 24px;
    margin: 5px 0 5px;
    color: #333;
}

/* 正文三级标题 */
.article-body h3 {
    font-size: 30px;
    margin: 5px 0 5px;
    color: #333;
}

/* 无序列表和有序列表 */
.article-body ul,
.article-body ol {
    margin: 5px 0;
    padding-left: 30px;
}

/* 列表项 */
.article-body li {
    margin-bottom: 6px;
}

/* FAQ常见问题解答区域 */
.article-faq {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* FAQ区域标题 */
.article-faq h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 5px;
    padding-bottom:5px;
    border-bottom: 2px solid #667eea;
}

/* FAQ列表容器 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 单个FAQ卡片 */
.faq-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px 5px;
    border-left: 3px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* FAQ卡片悬停效果 */
.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

/* FAQ问题标题（Q部分） */
.faq-item h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

/* FAQ回答内容（A部分） */
.faq-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 推荐阅读模块 */
.article-recommend {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.article-recommend h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.recommend-item {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.recommend-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.recommend-item h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.recommend-date {
    font-size: 12px;
    color: #999;
}

/* 文章底部区域 */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* 导航行（上一篇、下一篇） */
.article-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-link {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    border-left: 3px solid #667eea;
}

.nav-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.nav-link.disabled {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    opacity: 0.5;
    cursor: not-allowed;
    border-left: 3px solid #ccc;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #667eea;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-link.disabled .nav-label {
    color: #999;
}

.nav-title {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AI免责声明 */
.ai-disclaimer {
    font-size: 10px;
    color: #999;
    margin: 0 0 15px 0;
    text-align: center;
    line-height: 1.5;
}

/* 返回链接 */
.back-link {
    display: inline-block;
    padding: 10px 20px;
    color: #667eea;
    text-decoration: none;
    border: 1px solid #667eea;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
}

.back-link:hover {
    background: #667eea;
    color: #fff;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .article-nav-row {
        flex-direction: column;
    }
    
    .nav-link,
    .nav-link.disabled {
        width: 100%;
    }

    /* 移动端 banner 高度 */
    .hero-slider {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .slide-content .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ========================================
   移动端响应式样式（屏幕宽度≤768px）
   ======================================== */
@media (max-width: 768px) {
    /* 移动端文章容器 - 全宽显示 */
    .article-detail {
        max-width: none;
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }

    /* 移动端标题缩小 */
    .article-header h1 {
        font-size: 24px;
    }

    /* 移动端元信息改为纵向排列 */
    .article-info {
        flex-direction: column;
        gap: 8px;
    }

    /* 移动端正文字体缩小 */
    .article-body {
        font-size: 15px;
    }

    /* 移动端二级标题缩小 */
    .article-body h2 {
        font-size: 20px;
    }

    /* 移动端三级标题缩小 */
    .article-body h3 {
        font-size: 18px;
    }

    /* 移动端推荐阅读改为单列 */
    .recommend-list {
        grid-template-columns: 1fr;
    }
}