/* ========================================
   文章详情页专用样式
   ======================================== */



/* Banner 中的面包屑导航 */
.slide-content .breadcrumb {
    display: flex;
    align-items: right;
    justify-content: right;
    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 {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    z-index: 1;
}

.article-header::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 60px;
    background-image: url("/images/article-title-bg.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    z-index: -1;
    opacity: 0.85;
}

/* 文章头部 - 移动端清除背景图 */
@media (max-width: 768px) {
    .article-header::after {
        display: none;
    }
}

/* 文章主标题 */
.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: 20px;
    margin: 5px 0 5px;
    color: #333;
}

/* 正文三级标题 */
.article-body h3 {
    font-size: 16px;
    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:20px;
    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: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

/* FAQ回答内容（A部分） */
.faq-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 产品图片画廊 */
.product-gallery {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumb-item {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    opacity: 1;
    border-color: #f5a623;
}

/* 产品参数 */
.product-params {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.product-params h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5a623;
}

.params-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.params-table table {
    width: 100%;
    border-collapse: collapse;
}

.params-table th,
.params-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.params-table th {
    font-weight: 600;
    color: #666;
    width: 30%;
}

.params-table tr:last-child th,
.params-table tr:last-child td {
    border-bottom: none;
}

/* 相关产品推荐（带图片） */
.recommend-item {
    display: flex;
    gap: 15px;
}

.recommend-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.recommend-item h3 {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
}

/* 推荐阅读模块 */
.article-recommend {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.article-recommend h2 {
    font-size: 20px;
    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: 14px;
    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: 100%;
        margin: 20px 0;
        padding: 20px 8px;
    }

    /* 移动端标题缩小 */
    .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: 14px;
    }

    /* 移动端推荐阅读改为单列 */
    .recommend-list {
        grid-template-columns: 1fr;
    }
}