/* ==================== SRM详情页样式 ==================== */

/* Banner区域 */
.detail-banner {
    background-image: url('../images/srm-detail-banner-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0;
    position: relative;
}

.detail-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.detail-banner .banner-left {
    flex: 1;
    max-width: 500px;
}

.detail-banner .banner-title {
    font-size: 40px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.detail-banner .banner-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 32px 0;
}

.detail-banner .btn-banner {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1E6FFF 0%, #4A8FFF 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 111, 255, 0.3);
}

.detail-banner .btn-banner:hover {
    background: linear-gradient(135deg, #0D5FEF 0%, #3A7FEF 100%);
    box-shadow: 0 6px 16px rgba(30, 111, 255, 0.4);
    transform: translateY(-2px);
}

.detail-banner .banner-right {
    flex: 1;
    max-width: 520px;
}

.detail-banner .banner-right img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    max-width: 520px;
}

/* 文章内容区域 */
.article-section {
    background-color: #FAFBFC;
    padding: 21px 0;
}

.article-layout {
    display: flex;
    gap: 21px;
    align-items: flex-start;
}

/* 左侧文章列表 */
.article-main {
    flex: 1;
    max-width: 895px;
    background-color: #fff;
    padding: 0 21px;
    border-radius: 10px;
}

/* 文章列表容器 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 文章项 */
.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #FAFBFC;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
}

/* 文章图片 */
.article-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F3F4F6;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文章内容 */
.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 12px 0 12px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.article-source {
    color: #666;
}

.article-date {
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.pagination-prev,
.pagination-next,
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-number:hover {
    border-color: #1E6FFF;
    color: #1E6FFF;
    background-color: #F5F8FF;
}

.pagination-number.active {
    background-color: #1E6FFF;
    border-color: #1E6FFF;
    color: #fff;
}

.pagination-number.active:hover {
    background-color: #0D5FEF;
    border-color: #0D5FEF;
    color: #fff;
}

/* 右侧边栏 */
.article-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 146px; /* 70px (主导航) + 56px (二级导航) + 20px (间距) */
    align-self: flex-start;
}

.sidebar-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 广告卡片 */
.ad-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    position: relative;
}

.ad-content {
    text-align: left;
    padding: 40px 32px;
    width: 100%;
}

.ad-title {
    font-size: 22px;
    font-weight: 600;
    color: #4A8FFF;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.ad-desc {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin: 0 0 32px 0;
}

.btn-ad {
    background: linear-gradient(135deg, #1E6FFF 0%, #4A8FFF 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 111, 255, 0.3);
    padding: 14px 30px;
}

.btn-ad:hover {
    background: linear-gradient(135deg, #0D5FEF 0%, #3A7FEF 100%);
    box-shadow: 0 6px 16px rgba(30, 111, 255, 0.4);
    transform: translateY(-2px);
}

/* 下载卡片 */
.download-card {
    background-color: #fff;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #1E6FFF;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #1E6FFF;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

/* 相关阅读 */
.related-section {
    padding-bottom: 40px;
    padding-top: 40px;
}

.related-section .container {
    max-width: 1200px;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    margin: 0 0 20px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 780px;
}

.related-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.related-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.related-content {
    flex: 1;
}

.related-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.related-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.related-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA区域 */
.cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 111, 255, 0.85) 0%, rgba(74, 143, 255, 0.85) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0 0 32px 0;
}

.btn-cta {
    display: inline-block;
    padding: 14px 48px;
    background: #fff;
    color: #1E6FFF;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background: #F5F8FF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== 响应式设计 ==================== */
@media screen and (max-width: 1024px) {
    .article-layout {
        gap: 40px;
    }

    .article-sidebar {
        width: 280px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    /* Banner */
    .detail-banner {
        padding: 40px 0;
    }

    .detail-banner .banner-content {
        flex-direction: column;
        gap: 32px;
    }

    .detail-banner .banner-left {
        max-width: 100%;
        text-align: center;
    }

    .detail-banner .banner-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .detail-banner .banner-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .detail-banner .btn-banner {
        width: 100%;
        padding: 12px 24px;
    }

    .detail-banner .banner-right {
        max-width: 100%;
    }

    /* 文章布局 */
    .article-section {
        padding: 20px 0;
    }

    .article-layout {
        flex-direction: column;
        gap: 32px;
    }

    .article-main {
        max-width: 100%;
    }

    /* 文章列表响应式 */
    .article-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
    }

    .article-item:hover {
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .article-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }

    .article-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .pagination {
        margin-top: 30px;
        padding-top: 20px;
    }

    .pagination-prev,
    .pagination-next,
    .pagination-number {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    /* 边栏 */
    .article-sidebar {
        width: 100%;
    }

    .sidebar-card {
        padding: 20px;
    }

   

    .section-title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-item {
        padding: 24px 20px;
    }

    .related-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .related-title {
        font-size: 16px;
    }

    .related-desc {
        font-size: 13px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .cta-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn-cta {
        width: 100%;
        padding: 12px 32px;
    }
}
