@charset "UTF-8";

/* 文章详情页面特有样式 */
.article-header {
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 样式1：居中 + 浏览量/日期 + 虚线深灰边框 */
.article-header--featured {
    text-align: center;
    border-bottom: 1px dashed #666;
}

/* 样式2：左对齐 + 无元信息 + 无边框（默认） */
.article-header--simple {
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.article-header--simple .article-title {
    margin-bottom: 0;
}

.article-meta {
    font-size: 13px;
    color: #999;
}

.article-header--simple .article-meta {
    display: none;
}

.article-meta span {
    margin-right: 20px;
}

.article-content {
    /*margin-top: 20px;*/
    padding: 30px;
}

/* 媒体模块：左轮播 + 右视频 */
.media-module {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: stretch;
}

.media-carousel {
    width: calc(50% - 5px);
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.media-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-swiper .swiper-slide {
    height: 100%;
}

.media-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-carousel-prev,
.media-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.media-carousel-prev {
    left: 10px;
}

.media-carousel-next {
    right: 10px;
}

.media-carousel-prev:hover,
.media-carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.media-video {
    width: calc(50% - 5px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.media-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 灰色背景修饰类 */
.article-content--gray {
    background-color: #EFEFEF;
}

.article-body {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

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

.article-body img {
    max-width: 100%;
    margin: 20px 0;
}

.article-body h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 30px 0 15px;
}

.article-body h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 25px 0 10px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-quote {
    padding: 20px;
    background-color: #fafafa;
    border-left: 4px solid #d7000f;
    margin: 20px 0;
    font-style: italic;
}

/* 分页样式1：上一篇/下一篇（灰色模块内） */
.article-nav {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 20px;
}

.article-nav .prev-article,
.article-nav .next-article {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.article-nav .prev-article:last-child,
.article-nav .next-article:last-child {
    margin-bottom: 0;
}

.article-nav .nav-label {
    color: #999;
    margin-right: 5px;
}

.article-nav a {
    color: #666;
}

.article-nav a:hover {
    color: #d7000f;
}

/* 分页样式2：数字分页（灰色模块外，居中） */
.page-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.page-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.page-pagination a:hover {
    color: #d7000f;
    border-color: #d7000f;
}

.page-pagination a.active {
    background-color: #d7000f;
    color: #fff;
    border-color: #d7000f;
}

.page-pagination .page-prev,
.page-pagination .page-next {
    padding: 0 12px;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .article-header {
        padding: 20px 0;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta span {
        margin-right: 15px;
    }

    .article-content {
        padding: 20px;
    }

    /* 媒体模块移动端上下排布 */
    .media-module {
        flex-direction: column;
        gap: 0;
    }

    .media-carousel {
        width: 100%;
        margin-bottom: 10px;
    }

    .media-video {
        width: 100%;
        margin-top: 10px;
    }

    .article-body {
        font-size: 14px;
    }

    .article-body p {
        margin-bottom: 15px;
    }

    .article-body h2 {
        font-size: 16px;
        margin: 25px 0 12px;
    }

    .article-body h3 {
        font-size: 15px;
        margin: 20px 0 8px;
    }

    .article-nav {
        width: 100%;
    }

    .page-pagination {
        font-size: 13px;
        gap: 5px;
    }

    .page-pagination a {
        min-width: 28px;
        height: 28px;
    }

    .page-pagination a:not(.page-prev):not(.page-next) {
        display: none;
    }
}
