﻿.matter-banner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.matter-tabs-wrapper {
    position: relative;
}

/* 横线分隔 */
.matter-tab-divider {
    height: 1px;
    background-color: #ccc;
    width: 100%;
}

/* 按钮行 */
.matter-tabs {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
}

/* 单个按钮 */
.matter-tabs {
    display: flex;
    justify-content: center; /* 所有 tab 水平居中 */
}

.matter-tab {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center; /* 垂直居中图片和文字 */
    justify-content: center; /* 水平居中整个 tab 内容 */
    background: white;
    box-sizing: border-box;
}

    .matter-tab img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        margin-right: 0.75rem; /* 图片与文字之间的间距 */
    }

    .matter-tab span {
        font-size: 1rem;
        color: #333;
        white-space: nowrap;
    }

    .matter-tab.active {
        background-color: red;
        border-color: red;
        color: white;
    }

        .matter-tab.active span {
            color: white;
        }

/* 内容区域 */
.matter-content {
    padding: 1rem 1rem;
    max-width: 80%;
    margin: 0 auto;
}

/* 内容隐藏用 */
.matter-section {
    font-size: 1.1rem;
    line-height: 1.8;
}

.d-none {
    display: none;
}

/* 移动端 */
@media (max-width: 768px) {
    .matter-tabs {
        flex-direction: column;
        width: 100%;
    }

    .matter-tab {
        margin: 4px 0;
    }
}

/* 红色大标题 */
.section-red-title {
    font-size: 2rem;
    color: red;
}

/* 视频模块整体容器 */
.video-module {
    padding: 1rem 0;
}

/* 图标+标题一行 */
.video-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.video-title {
    font-size: 1.25rem;
    color: #000;
    margin: 0;
}

/* 内容区域：文字 + 图片 */
.video-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.video-text {
    flex: 1 1 0;
}

    .video-text p {
        line-height: 1.6;
        color: #555;
    }

.video-image {
    flex: 0 0 auto;
    text-align: right;
    max-width: 100%;
}

    .video-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        border-radius: 8px;
    }

/* 图片墙模块 */
.image-wall {
    display: flex;
    flex-wrap: wrap;
}

/* 图片墙标题 */
.image-wall-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

/* 图片墙主体布局 */
.big-image {
    flex: 1 1 40%;
    padding-right: 2%;
}

    .big-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        cursor: pointer;
    }

.small-images {
    flex: 1 1 52%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

    .small-images img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        object-fit: cover;
        cursor: pointer;
    }

.model-small-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.image-group.single {
    grid-column: span 1; /* 占据一列 */
}

.image-group.double {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-column: span 1;
    gap: 0.5rem;
}

.image-group img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

/* 响应式适配：移动端 */
@media (max-width: 768px) {
    .matter-content {
        max-width: 100%;
    }

    .video-content {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .video-image {
        text-align: left;
        margin-bottom: 4rem;
    }

        .video-image img {
            width: 100%;
        }

    .image-wall {
        flex-direction: column;
        align-items: stretch;
    }

    .big-image,
    .small-images {
        width: 100%;
    }

    .small-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .big-image img {
        margin-bottom: 4%;
    }
}

/* 模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明遮罩 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9; /* 可选：固定比例 */
}

.modal-player {
    width: 100%;
    height: auto;
    background-color: black;
}

.video-player,
.video {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}
