/* exhibitions页面专用样式 */

/* 响应式调整：宽度小于1100px时 */
@media screen and (max-width: 1100px) {
    #pre-exhibition {
        flex-direction: column !important;
        overflow-x: visible !important;
        align-items: center;
    }

    #pre-exhibition .text-container {
        width: 100% !important;
        padding: 40px !important;
        box-sizing: border-box;
    }

    #pre-exhibition .text-container h2 {
        font-size: 50px !important;
        line-height: 60px !important;
    }

    #pre-exhibition>div:first-child {
        width: 100% !important;
        text-align: center;
    }

    #pre-exhibition img {
        max-width: 100%;
        height: auto;
    }
}

/* 响应式调整：宽度小于1000px时 - 表格列布局转行为布局 */
@media screen and (max-width: 1000px) {
    .exhibitions-history table {
        width: 100% !important;
        margin-left: 0 !important;
        display: block;
        border: none;
        padding-left: 20px;
        font-size: 28px !important;
    }

    .exhibitions-history colgroup {
        display: none;
    }

    .exhibitions-history tbody {
        display: block;
        width: 100%;
    }

    .exhibitions-history tr.hover-row {
        display: block;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        overflow: hidden;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .exhibitions-history td {
        display: block;
        width: 100%;
        padding: 5px 20px !important;
        border: none;
        position: relative;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
    }

    /* 设置第二个td的字体大小和颜色 */
    .exhibitions-history tr td:nth-child(2) {
        font-size: 36px;
        color: white;
    }

    .exhibitions-history h2 {
        margin-left: 40px !important;
        font-size: 36px !important;
    }

    /* 调整悬停图片容器位置 */
    .hoverImageContainer {
        left: 20px !important;
    }

    .footer-area {
        height: atuo !important;
    }
}

/* 响应式调整：宽度小于731px时 */
@media screen and (max-width: 731px) {

    /* 全局样式确保不出现水平滚动 */
    * {
        box-sizing: border-box;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }

    /* 修复语言切换下拉框被覆盖问题 */
    .language-dropdown {
        z-index: 99999 !important;
        right: 10px !important;
        min-width: 100px !important;
    }

    /* 修复pre-exhibition部分 */
    #pre-exhibition {
        overflow-x: hidden !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* 修复exhibitions-plan部分 */
    #exhibitions-plan {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    #exhibitions-plan img {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* 修复exhibitions-history部分 */
    .exhibitions-history {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    /* 第一部分和第二部分都应用相同的修复 */
    .exhibitions-history>div {
        margin-left: 0 !important;
        margin-bottom: 40px !important;
        padding: 0 15px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .exhibitions-history h2 {
        margin-left: 0 !important;
        font-size: 24px !important;
        padding-left: 0 !important;
    }

    /* 继承1000px断点的行布局样式，并进行微调 */
    .exhibitions-history table {
        width: 100% !important;
        margin-left: 0 !important;
        font-size: 14px !important;
        display: block;
        border: none;
    }

    .exhibitions-history colgroup {
        display: none;
    }

    .exhibitions-history tbody {
        display: block;
        width: 100%;
    }

    .exhibitions-history tr.hover-row {
        display: block;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        overflow: hidden;
    }

    .exhibitions-history td {
        display: block;
        width: 100%;
        padding: 10px 15px !important;
        border: none;
        position: relative;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
        font-size: 14px !important;
    }

    /* 修复悬停图片容器 */
    .hoverImageContainer {
        display: none !important;
    }

    /* 修复footer-area部分 */
    #footer-area {
        width: 100% !important;
        padding: 0 !important;
    }

    #footer-area .container {
        width: 100% !important;
        padding: 0 !important;
    }

    /* 确保所有section和div都不超出宽度 */
    section,
    div {
        max-width: 100% !important;
        font-size: 24px !important;
        /* overflow-x: hidden !important; */
    }
}

@media screen and (max-width: 500px) {
    .series-name {
        font-size: 36px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        margin-left: 0 !important;
    }
    #pre-exhibition>div:first-child {
        padding: 30px !important;
    }
    #exhibition-image-current {
        height: auto !important;
    }
    #pre-exhibition .text-container h2 {
        font-size: 36px !important;
        line-height: 40px !important;
    }
    #pre-exhibition .text-container>div:nth-of-type(n+2) {
        font-size: 16px !important;
        line-height: 26px !important;
    }
        #pre-exhibition .text-container{
        padding: 0 30px 30px !important;
    }
}

/* 英雄区域样式 */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slider-container>div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider-container>div>div:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-slider-container>div>div:last-child {
    position: absolute;
    bottom: 0px;
    left: 30px;
    z-index: 3;
    color: white;
}

/* 预展览区域样式 */
#pre-exhibition {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    background-color: #212121;
    overflow-x: auto;
}

#pre-exhibition>div:first-child {
    padding: 60px;
    flex-shrink: 0;
    width: 32%;
}

#pre-exhibition>div:first-child img {
    height: 500px;
    object-fit: contain;
    width: 100%;
}

#pre-exhibition .text-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

#pre-exhibition .text-container>div:first-of-type {
    font-size: 40px;
    color: #FFFFFF;
}

#pre-exhibition .text-container h2 {
    font-size: 70px;
    line-height: 80px;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 20px;
}

#pre-exhibition .text-container>div:nth-of-type(n+2) {
    font-size: 24px;
    line-height: 36px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05px;
}

/* 展览计划区域样式 */
#exhibitions-plan {
    background-color: #000;
}

#exhibition-plan-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 2560px;
    margin: 0 auto;
    display: block;
}

/* 展览历史区域样式 */
.exhibitions-history>div {
    margin-bottom: 60px;
    position: relative;
}

.exhibitions-history h2 {
    color: red;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 40px;
    margin-left: 60px;
}

.hoverImageContainer {
    position: absolute;
    display: none;
    z-index: 10;
}

.hoverImageContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibitions-history table {
    width: 90%;
    border-collapse: collapse;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    font-weight: regular;
    margin-left: 60px;
}

.exhibitions-history colgroup col:first-child {
    width: 15%;
}

.exhibitions-history colgroup col:nth-child(2) {
    width: 40%;
}

.exhibitions-history colgroup col:nth-child(3) {
    width: 15%;
}

.exhibitions-history colgroup col:last-child {
    width: 30%;
}

/* 对于第二个表格的特殊处理 */
.exhibitions-history>div:last-child colgroup col:nth-child(3) {
    width: 16%;
}

.exhibitions-history tr.hover-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.exhibitions-history tr.hover-row:last-child {
    border-bottom: none;
}

.exhibitions-history td {
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

/* 修复最后一个tr没有下边框的问题 */
.exhibitions-history tbody tr:last-child {
    border-bottom: none;
}