/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    transition: transform 0.3s ease;
    position: relative;
    min-height: 100vh;
}
.nav-conk-img{padding-top: 40px;
    background: url(../images/wl.png) no-repeat top right;
    width: 76.2%;
    margin: 0 auto;
}
.nav-tops {
    display: flex;
    justify-content: space-between;
}
/* 导航栏样式 */
.top-nav-li {
    display: flex;
    background: #972839;
    width: 100%;
}

.top-nav-links {
    display: flex;
    justify-content: space-between;
    width: 76.2%;
    margin: 0 auto;
    line-height: 2.5rem;
}

.top-nav-link a {
    margin: 0 0.5rem;
    color: white;
    text-decoration: none;
}

.top-logo-nav {
    margin: 0 auto 40px;
}


.top-nav-conk {
    width: 100%;
    background: #a42c3e url(../images/header-bg.jpg);
    transition: all 300ms;
}

.top-navs {
    background: #972839;
    margin: 0 auto;
}

.top-navs-nav {
    display: flex;
    justify-content: space-around;
}

.top-navs-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
}

/* 二级菜单样式 */
.dropdown {
    position: relative;
    top: 9px;
}

.submenu {
    display: none;
    position: absolute;
    top: 77%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(151,41,58,0.5);
    min-width: 120px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
}

.submenu li a:hover {
    background-color: rgb(144, 14, 14);
}

.dropdown:hover .submenu {
    display: block;
}

/* 移动端菜单 */
.mobile-menu-button {
    display: none;
    position: absolute;
    top: 3%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 30;
}

/* 侧边栏导航 */
.sidebar {
    position: fixed;
    top: 0;
    left: -60%;
    width: 46%;
    height: 100vh;
    background: #972839;
    z-index: 20;
    transition: left 0.3s ease;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.sidebar * {
    pointer-events: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    font-size: 1rem;
    color: white;
    line-height: 1.2;
    text-decoration: none;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
}

.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

/* 移除CSS中对箭头旋转的静态定义，由JS动态控制 */

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    background: #972839;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease-out;
}

.sidebar-submenu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-submenu li a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.sidebar-overlay * {
    pointer-events: auto;
}

.sidebar.active + .sidebar-overlay {
    display: block;
}

/* 轮播图和内容整合区域 */
.carousel-and-content {
    width: 100%;
}

/* 轮播图容器 */
.uuu {
    width: 76.2%;
    margin: 2rem auto 0 auto;
    height: 55rem;
    background: url("../images/top.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
}

.caro {
    width: 26%;
    height: 5%;
    display: flex;
    flex-direction: column;
    background: url("../images/slteli.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
}

.caro span {
    font-size: 48px;
    margin-top: 18px;
    border-bottom: 0.625rem solid #b8283f;
}

.carousel-container {
    display: grid;
    grid-template-columns: 7fr 1fr;
    gap: 1rem;
    height: 46rem;
    position: absolute;
    top: 13%;
    right: 4%;
}

.main-carousel {
    position: relative;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.carousel-slides {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    -webkit-transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #1e293b;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 10;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-control:hover {
    background-color: white;
}

.control-prev {
    left: 1rem;
}

.control-next {
    right: 1rem;
}

/* 缩略图容器 */
.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.75rem;
    max-height: 738px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.thumbnails-wrapper {
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnails-wrapper::-webkit-scrollbar {
    display: none;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thumbnail {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    border: 2px solid transparent;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.thumbnail:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.thumbnail.active {
    border: 0.325rem solid #df9b00;
}

.thumbnail img {
    width: 100%;
    height: 105.67px;
    object-fit: cover;
    -o-object-fit: cover;
}

.thumbnail-scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
    -webkit-transition: background-color 0.3s;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.scroll-up {
    top: 0.5rem;
}

.scroll-down {
    bottom: 0.5rem;
}

/* 内容区域 */
.conk {
    width: 80%;
    margin: 0 auto;
    background: url(../images/back.png) no-repeat;
    background-size: 100% 100%;
}

.content-container {
    padding: 5rem 2rem 8rem 2rem;
    position: relative;
    left: 10%;
}

.cont-title-container {
    background: url("../images/lpl.png") no-repeat;
    background-size: 100% 100%;
    width: 30%;
    height: 1rem;
    margin-bottom: 2rem;
}

.content-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    position: relative;
    left: 13%;
    bottom: 70px;
}

.content-text {
    color: #4b5563;
    margin-top: 0.5rem;
    width: 80%;
    font-size: 20px;
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
}

/* 底部 */
.footer-container {
    display: flex;
    justify-content: space-around;
}

.row {
    display: flex;
    padding-top: 20px;
}

.col-md-6 {
    flex: 1;
}

.col-md-6 p {
    color: white;
    font-size: 1rem;
}

.rows {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
}

.rows span {
    display: flex;
    margin-left: 10px;
    color: white;
}

.rows img {
    display: flex;
    align-items: center;
    width: 100px;
    height: 100px;
}

.footer-containers {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-containers p {
    text-align: center;
    color: white;
    font-size: 1rem;
}

.footers {
    background: url("../images/footer-bg.jpg");
    padding: 1rem 0;
    width: 100%;
}

.footers1 {
    background: #9d1813;
    width: 100%;
    padding: 0.5rem 0
}

/* 响应式设计 */
@media screen and (max-width: 1600px) {
    .uuu {
        height: 600px;
    }
    .carousel-container {
        grid-template-columns: 4fr 1fr;
        height: 500px;
    }
    .caro span {
        font-size: 44px;
        margin-top: 3px;
    }
}

@media screen and (max-width: 1024px) {
    .nav-conk-img{
        padding-top: 0;
        background: none;
    }
    .logo-nav1{
        display: none;
    }
    .top-nav-conk {
        padding-top: 0;
        height: 4rem;
    }
    .top-logo-nav{
        margin: 0;
    }
    .logo-nav {
        height: 3rem;
    }

    .logo-nav img {
        height: 100%;
        margin-top: 3px;
    }
    .uuu {
        height: 500px;
        width: 82%;
    }
    .conk {
        width: 100%;
    }
    .caro span {
        font-size: 28px;
        margin-top: 8px;
        border-bottom: 0.325rem solid #b8283f;
    }
    .carousel-container {
        display: block;
        height: 400px;
        top: 15%;
        right: 0;
        left: 0;
        margin: 0 1rem;
    }
    .thumbnails-container {
        display: none !important;
    }
    .main-carousel {
        height: 100%;
    }
    .carousel-control {
        width: 2rem;
        height: 2rem;
    }
    .control-prev {
        left: 0.5rem;
    }
    .control-next {
        right: 0.5rem;
    }
    .content-container {
        padding: 3rem 6rem 5rem 6rem;
        left: 0;
    }
    .cont-title-container {
        width: 60%;
        height: 0.8rem;
        margin-bottom: 1rem;
    }
    .content-title {
        font-size: 1.5rem;
        left: 15% ;
        bottom: 40px ;
    }
    .content-text {
        width: 100%;
        font-size: 16px;
    }
    .top-nav-li {
        display: none !important;
    }
    .mobile-menu-button {
        display: block;
    }
    span.bot {
        position: relative;
        display: block;
        width: 1.5rem;
        height: .15rem;
        margin: .3rem auto;
        background-color: #fff;
        border-radius: .25rem;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -ms-transition: all 0.3s;
        transition: all 0.3s;
    }
    .top-navs {
        display: none;
    }
    .container {
        transition: transform 0s cubic-bezier(0.34, 1.56, 0.64, 1);
        width: 100%;
        position: relative;
        z-index: 10;
        will-change: transform;
    }
    .sidebar.active ~ .container {
        transform: translateX(60%);
    }
    .sidebar {
        transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    }
    .sidebar-overlay {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .sidebar.active + .sidebar-overlay {
        opacity: 1;
    }
    .footers {
        display: none !important;
    }
}

@media screen and (max-width: 900px) {
    .caro span {
        font-size: 25px ;
        margin-top: 10px ;
    }
}

@media screen and (max-width: 768px) {
    .uuu {
        height: 400px ;
        width: 98%;
    }
    .conk {
        background: #f3e2e5;
    }
    .carousel-container {
        height: 320px ;
    }
    .caro span {
        font-size: 20px ;
        margin-top: 8px ;
    }
    .content-title {
        font-size: 1.5rem ;
        left: 15% ;
        bottom: 34px ;
    }
}

@media (max-width: 568px) {
    .content-container {
        padding: 3rem 2rem 3rem 2rem;
        left: 0;
    }
}
