/* ===== Index Page Styles ===== */
/* 颜色变量 */
:root {
    --color-primary: #BA9F6F;
    --color-red: #B90804;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-dark: #121212;
    --color-dark-2: #242424;
    --color-dark-3: #262626;
    --color-gray: #3C3C3C;
    --color-gray-light: #F4F4F4;
    --color-text: #1E1A1A;
    --color-text-light: #727272;
    --color-text-gray: #8D8D8D;
    --color-border: #D3D3D3;
}

/* ===== 页面基础样式 ===== */

.page-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* ===== Banner 轮播区域 ===== */
.banner-section {
    width: 100%;
    height: 980px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-gray);
}

.banner-slide img{
    width: 100%;
    height: 980px;
    object-fit: cover;
    display: block;
}

.banner-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-list {
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    transition: margin-left 0.5s ease;
}

.banner-list li {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.banner-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner 左右切换按钮 */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.banner-nav-btn:hover {
    opacity: 0.9;
}

.banner-nav-btn.prev {
    left: 0;
    background-image: url('../images/index_collection_prev_btn.png');
}

.banner-nav-btn.next {
    right: 0;
    background-image: url('../images/banner_button_rigth.png');
}

/* Banner 缩略图预览 */
.banner-thumbnails {
    position: absolute;
    bottom: 82px;
    left: 240px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.banner-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s;
}

.banner-thumbnail.active {
    width: 149px;
    height: 149px;
    border: 2px solid var(--color-primary);
    opacity: 1;
}

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

/* Banner 搜索框 */
.banner-search {
    position: absolute;
    bottom: 82px;
    right: 247px;
    display: flex;
    gap: 26px;
    z-index: 10;
}

.search-box {
    width: 563px;
    height: 56px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(68, 68, 68, 0.77);
    border-radius: 72.5px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.search-box .search-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    background-image: url('../images/banner_search.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-box .search-icon svg {
    display: none;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.qr-code-btn {
    width: 56px;
    height: 56px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-image: url('../images/banner_qrcode.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.qr-code-btn svg {
    display: none;
}

/* ===== 区域标题通用样式 ===== */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 50px;
}

.section-title h2 {

    color: var(--color-dark-3);
    line-height: 1;

    font-family: PingFangSC;
    font-size: 34px;
    font-weight: normal;
    line-height: 67px;
    letter-spacing: 1.7px;
    color: #262626;
}

.section-title h2.white {
    color: var(--color-white);
}

.section-title .en {
    font-size: 36px;
    color: var(--color-primary);
    position: relative;
    padding-left: 15px;
}

.section-title .en::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 30px;
    background-color: var(--color-dark-3);
}

.section-title .en.white::before {
    background-color: var(--color-white);
}

.section-title.centered {
    justify-content: center;
}

/* ===== 展览区域 (column1) ===== */
.exhibition-section {

    padding-top: 94px;
    width: 1440px;
    background-color: var(--color-white);
    margin: 0 auto;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.exhibition-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.exhibition-card:hover {
    transform: translateY(-5px);
}

.exhibition-card .card-image {
    width: 100%;
    height: 388px;
    overflow: hidden;
    background-color: var(--color-dark-2);
    margin-bottom: 40px;
}

.exhibition-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.exhibition-card:hover .card-image img {
    transform: scale(1.05);
}

.exhibition-card .card-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--color-dark-3);
    line-height: 1.4;
    margin-bottom: 26px;
}

.exhibition-card .card-info {
    font-size: 17px;
    color: var(--color-primary);
    margin-bottom: 26px;
}

.exhibition-card .card-info span {
    margin-right: 3px;
}

.exhibition-card .card-info .time-label {
    margin-left: 20px;
}

.exhibition-card .card-desc {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 查看更多按钮 */
.view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 245px;
    height: 46px;
    margin: 60px auto 0;
    border: 1px solid var(--color-dark-3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background-color: var(--color-dark-3);
    color: var(--color-white);
}

.view-more-btn span {
    font-size: 15px;
    color: var(--color-dark-3);
}

.view-more-btn:hover span {
    color: var(--color-white);
}

.view-more-btn .arrow {
    width: 24px;
    height: 24px;
    background-image: url('../images/index_btn_more.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.view-more-btn:hover .arrow {
    filter: brightness(0) invert(1);
}

/* ===== 新闻公告区域 (column2) ===== */
.news-section {
    padding-top: 120px;
    width: 1440px;
    background-color: var(--color-white);
    margin: 0 auto;
}

/* 新闻滚动条 */
.news-ticker {
    width: 1440px;
    height: 93px;
    background-color: var(--color-red);
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.news-ticker-item {
    display: flex;
    align-items: center;
    margin-right: 40px;
    white-space: nowrap;
    margin-left: 53px;
}

.news-ticker-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    margin-right: 15px;
    flex-shrink: 0;
}

.news-ticker-item a {
    font-size: 18px;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.news-ticker-item a:hover {
    opacity: 0.8;
}

/* 新闻卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 36px;
    width: 1440px;
    margin: 0 auto;
}

.news-card {
    width: 100%;
    height: 176px;
    background-color: var(--color-gray-light);
    display: flex;
    cursor: pointer;
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-card .date-box {
    text-align: left;
    margin: 29px 59px 0 24px;
    /* width: 63px; */
    /* margin-right: 59px; */
    flex-shrink: 0;
}

.news-card .date-year {
    font-size: 12px;
    color: #363636;
    opacity: 0.4;
    text-align: left;
}

.news-card .date-day {
    font-size: 32px;
    color: #363636;
    opacity: 0.24;
    line-height: 1;
    margin: 2px 0;

    font-family: Impact;

}

.news-card .date-time {
    font-size: 12px;
    color: #363636;
    opacity: 0.4;
}

.news-card .news-content {
    flex: 1;
}

.news-card .news-title {
    margin-top: 29px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-black);
    line-height: 1.5;
    margin-bottom: 17px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-desc {
    font-size: 15px;
    color: #7A7A7A;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 开馆时间区域 (column3) ===== */
.hours-section {
    width: 1440px;
    padding-top: 80px;
    margin: 0 auto;
    overflow: hidden;
    margin-bottom: 120px;
}

.hours-container {
    border: 1px solid var(--color-primary);
    padding: 39px 280px;
}

.hours-header {
    text-align: center;
    margin-bottom: 40px;
}

.hours-header .free-text {
    font-size: 32px;
    color: var(--color-red);
    font-weight: bold;
    margin-bottom: 10px;
}

.hours-header .week-text {
    font-size: 22px;
    color: var(--color-text);
}

.hours-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 15px;
}

.hours-time {
    font-size: 48px;
    color: var(--color-primary);
    font-weight: bold;
}

.hours-label {
    font-size: 17px;
    color: var(--color-text);
    padding-bottom: 10px;
}

.hours-en {
    text-align: center;
    font-size: 16px;
    color: #5C5C5C;
    margin-top: 20px;
}

.hours-divider {
    display: none;
    width: 100%;
    height: 1px;
    background-color: #DEDEDE;
    margin: 40px 0;
}

.hours-weekend {
    display: none;
    text-align: center;
}

.hours-weekend .week-text {
    font-size: 22px;
    color: var(--color-text);
    margin-bottom: 25px;
}

/* ===== 昆明美术双年展区域 (column4) ===== */
.biennale-section {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 1025px;
    background-color: var(--color-red);
    padding: 120px 242px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.biennale-content {
    display: flex;
    gap: 100px;
}

.biennale-left {
    width: 500px;
    flex-shrink: 0;
}

.biennale-left .section-title {
    margin-bottom: 30px;
}

.year-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.year-tab {
    width: 120px;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.year-tab.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.year-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

.slideGroup {
    margin-top: 10px;

    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 1025px;
    background-color: var(--color-red);
    /* background-color: gray; */
    padding: 120px 242px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.slideGroup .parHd {
    position: absolute;
    top: 230px;
    z-index: 10
}

.slideGroup .section-title {
    position: absolute;
}

.slideGroup .parHd ul {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.slideGroup .parHd ul li {
    width: 120px;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
}
.slideGroup .parHd ul li a{
    color: var(--color-white);
 
}

.slideGroup .parHd ul .on {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* .year-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
} */


.slideGroup .parBd {
    position: absolute;
}

.slideGroup .parBd ul {
    /* margin-left: 80px; */
    display: flex;
    flex-direction: row;
    /* gap: 20px; */
    list-style: none;
    padding: 0;
    padding: 140px 0 0 100px;
 
    position: relative;
    width: fit-content;
}

.slideGroup .parBd ul li {
    flex-shrink: 0;
}

.slideGroup .parBd .slideBox {
    display: flex;
    flex-direction: row;
    position: relative;
}

.slideBox .biennale-desc {
    margin-top: 220px;
    width: 435px;
}

.btn-nav{
     display: flex;
    flex-direction: row;
    gap: 10px;
    position: relative;
    top: 600px;
    left: 80px;
    z-index: 10;
}

.slideGroup .sPrev,
.slideGroup .sNext {
    display: block;
    width: 76px;
    height: 76px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../images/index_collection_prev_btn.png);
    background-color: var(--color-primary);
}

.slideGroup .sNext {
        background-image: url(../images/index_exhibition_next_btn.png);
            background-color: #050505;
}

.slideGroup .sPrev:hover,
.slideGroup .sNext:hover {
}

.biennale-desc {
    font-size: 16px;
    color: var(--color-white);
    line-height: 1.9;
    text-align: justify;
}

/* 双年展导航按钮 */
.biennale-nav {
    z-index: 10;
    left: -86px;
    top: 480px;
    position: absolute;
    display: flex;
    gap: 9px;
}

.biennale-nav-btn {
    width: 76px;
    height: 76px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.biennale-nav-btn.prev {
    background-color: var(--color-primary);
    background-image: url('../images/index_collection_prev_btn.png');
}

.biennale-nav-btn.prev:hover {
    opacity: 0.8;
}

.biennale-nav-btn.next {
    background-color: #050505;
    background-image: url('../images/index_exhibition_next_btn.png');
}

.biennale-nav-btn.next:hover {
    opacity: 0.8;
}

/* 双年展图片展示 */
.biennale-right {
    margin-top: 110px;
    margin-left: 189px;
    position: relative;
    /* flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative; */
}


.biennale-images-list {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.biennale-image {
    width: 383px;
    height: 637px;
    overflow: hidden;
    margin-right: 40px;
    margin-top: 120px;
}

.biennale-image.active {
    display: block;
}

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

/* ===== 视频区域 (column5) ===== */
.video-section {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 1127px;
    background-color: var(--color-black);
    padding: 60px 240px 140px;
    box-sizing: border-box;
}

.video-container {
    width: 1440px;
    height: 810px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.74);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 86px;
    height: 86px;
    cursor: pointer;
    transition: transform 0.3s;
    background-image: url('../images/button_play.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn svg {
    display: none;
}

/* ===== 藏品区域 (column6) ===== */
.collection-section {
    width: 100%;
    height: 900px;
    display: flex;
    position: relative;
}

.collection-header {
    position: absolute;
    top: 60px;
    left: 240px;
    z-index: 10;
}

.collection-nav {
    position: absolute;
    top: 599px;
    right: 406px;
    display: flex;
    z-index: 10;
}

.collection-nav-btn {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.collection-nav-btn.prev {
    background-image: url('../images/index_collection_prev_btn.png');
}

.collection-nav-btn.next {
    background-image: url('../images/index_collection_next_btn.png');
}

.collection-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.collection-item {
    flex: 0 0 calc(100% / 4);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: flex 0.4s ease;
}

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

.collection-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.74);
    transition: background-color 0.3s;
}

.collection-item.active .overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 54%, #000000 100%);
}

.collection-item .info {
    position: absolute;
    bottom: 70px;
    left: 50px;
}

.collection-item .info .title {
    font-size: 16px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.collection-item.active .info .title {
    font-size: 20px;
    color: #BDA476;
}

.collection-item .info .meta {
    font-size: 13px;
    color: var(--color-text-gray);
    display: flex;
    gap: 28px;
}

.collection-item.active .info .meta {
    font-size: 14px;
    color: #BDA476;
}

.collection-item .info .divider {
    width: 157px;
    height: 4px;
    background-color: #BDA476;
    margin-top: 15px;
    display: none;
}

.collection-item.active .info .divider {
    display: block;
}

/* ===== 公教活动区域 (column7) ===== */
.education-section {
    width: 1440px;
    margin: 0 auto;
    padding: 80px 0;
    background-color: var(--color-white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
    margin-top: 40px;
}

.education-card {
    width: 345.6px;
    height: 345.6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.education-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.education-card:hover img {
    transform: scale(1.05);
}

.education-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s;
}

.education-card.featured .card-overlay {
    background-color: rgba(0, 0, 0, 0.68);
}

.education-card .card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.education-card.featured .card-content {
    opacity: 1;
}

.education-card .date-tag {
    display: inline-block;
    padding: 5px 8px;
    background-color: #050505;
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.education-card .card-title {
    font-size: 16px;
    color: var(--color-white);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 右侧固定导航 ===== */
.side-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    background-color: var(--color-dark-2);
    z-index: 999;
}

.side-nav ul {
    list-style: none;
    text-align: center;
    padding: 19px 0;
      position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    background-color: var(--color-dark-2);
    z-index: 999;
  
}

.side-nav li {
    margin-bottom: 0;
}

.side-nav li a {
    display: block;
    padding: 8px 0px;
    font-size: 14px;
    color: #FFF6DB;
    position: relative;
}

.side-nav li a::after {
    content: '—';
    display: block;
    color: rgba(255, 246, 219, 0.3);
    font-size: 12px;
}

.side-nav li.active a {
    background-color: var(--color-red);
}

.side-nav li a:hover {
    background-color: rgba(185, 8, 4, 0.5);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1600px) {
    .banner-section {
        height: 800px;
    }

    .exhibition-section,
    .news-section,
    .hours-section,
    .video-section,
    .education-section {
        padding-left: 120px;
        padding-right: 120px;
    }

    .biennale-section {
        padding-left: 120px;
        padding-right: 120px;
    }

    .collection-header {
        left: 120px;
    }

    .education-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .education-card {
        width: auto;
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .banner-section {
        height: 600px;
    }

    .banner-thumbnails {
        display: none;
    }

    .exhibition-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .hours-container {
        padding: 30px 40px;
    }

    .biennale-content {
        flex-direction: column;
    }

    .biennale-left {
        width: 100%;
    }

    .collection-section {
        flex-wrap: wrap;
        height: auto;
    }

    .collection-item {
        width: 50%;
        height: 450px;
        flex: none;
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}