html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background-color: #0A0A12;
    cursor: default;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

body.live-mode {
    width: 100%;
    overflow: hidden;
    align-items: stretch;
    background-color: #05070b;
}

/*导航栏开始******************************/

.main-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #0A0A12;
}

/* 首页主体和二级页面容器，统一宽度 */
#home-main,
#page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 二级页面容器高度：占满剩余视口，让 iframe 能铺满 */
#page-container {
    flex: 1;
    min-height: 1100px;
}

body.live-mode .main-container,
body.live-mode #home-main {
    display: none !important;
}

body.live-mode #page-container {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    background-color: #05070b;
}

body.live-mode #page-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background-color: #05070b;
}


/*轮播图*****************************************/
.main-wrapper {
    width: 1440px;
    margin: 0 auto;
    /* 可选：加padding或box-sizing */
    box-sizing: border-box;
}

.main-content {
    position: relative;
    width: 100%;
    border-radius: 4px;
    min-height: 400px;
}

.lunbo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 轮播图文字左侧居中 */
.lunbo-text {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #F7931A;
    font-size: 2rem;
    text-align: left;
    max-width: 20%;
    line-height: 1.5;
    pointer-events: none;
}

.lunbo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.lunbo-img.active {
    display: block;
    animation: zoomIn 3s linear forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.32);
    }
}




.gundong {
    width: 100%;
    height: 300px;
    max-width: 1440px;
    margin: 10px auto;
    box-sizing: border-box;
    padding: 8px 12px;
    color: #4a3422;
    background: linear-gradient(180deg, #fff6dd 0%, #ffe7a8 100%);
    border: 1px solid #f1cf79;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(124, 90, 24, 0.12);
    overflow: hidden;
}

.gundong-item {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #5a3b18;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {

    .main-container,
    #home-main,
    #page-container {
        width: 100%;
        max-width: 100%;
    }

    #page-container {
        min-height: auto;
    }

    body.live-mode #page-container {
        min-height: 100dvh;
        height: 100dvh;
    }

    .main-wrapper {
        width: 100%;
    }

    .main-content {
        min-height: 0;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .lunbo-text {
        left: 12px;
        right: auto;
        top: auto;
        bottom: 12px;
        transform: none;
        max-width: 48%;
        font-size: 1rem;
        line-height: 1.35;
    }

    .gundong {
        height: 180px;
        min-height: 0;
        margin: 8px auto 0;
        padding: 2px 4px;
        border-radius: 10px;
    }

    .gundong-item {
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        font-size: clamp(9px, 2.5vw, 10px);
        line-height: 1.15;
        letter-spacing: 0;
        color: #5b3a12;
        white-space: nowrap;
        word-break: normal;
    }
}

@media (max-width: 380px) {
    .gundong {
        padding: 2px 3px;
    }

    .gundong-item {
        font-size: 9px;
    }
}