body{
    background-color:var(--background-color);
    width: 100%;
}
.ai-contain{
    width:1200px;
    margin:auto;
}

/*================================导航栏 START==============================*/
.ht{
    display: flex;
    justify-content: space-between;
    line-height: 2rem;
    color: var(--secondary-color-medium);

    .h-login a{
        padding: 0 5px;
        color: var(--secondary-color-medium);
    }
    .h-login a:focus, a:hover{
        color: var(--main-color);
    }
}
.hi{
    background: url("../images/news/title.jpg");
    height:101px;
    background-size: cover;
}

.navbar{
    padding:0;
}
.navbar-nav{
    .nav-item{
        padding:10px;
        font-size: 1.1rem;

        .nav-link{
            color: var(--text-color-body);
        }
    }

    .active{
        background-color: var(--secondary-color-medium);
    }
}
/*================================导航栏 END==============================*/
.main{
    min-height:800px;
    height:auto;
    background-color: var(--text-color-title);
    display: flex;
    padding-bottom: 5rem;

    .left{
        padding:30px 30px 30px 15px;

        .l-content{

            margin-top:30px;

            p{
                margin-bottom: 16px;
            }
            .c-title{
                border-bottom: var(--line-light) 1px solid;
                display: flex;
                justify-content: space-between;

                .t-t{
                    line-height: 45px;
                    border-bottom: var(--main-color) 2px solid;
                    width:100px;
                    text-align: center;
                    font-size: 1.2rem;
                }

                .t-more{
                    line-height:45px;

                    a{
                        color: var(--text-color-body);
                    }
                }
            }
            .c-title-main{
                border-bottom: var(--main-color) 1px solid;
            }

            .c-content-flex{
                display: flex;
                flex-wrap: wrap;
                gap: 10px; /* 图片间距 */
                max-width: 850px; /* 容器最大宽度 */
                margin: 0 auto;
            }

            .c-content{
                padding: 30px 5px 0 5px;
                font-size: 16px;

                table {
                    margin: 10px 0;
                    text-align: center;

                    td,th{
                        border: 1px #e2e3e5 solid;
                        height: 36px;
                        padding: 0 10px;
                    }
                }

                .title-bg{
                    text-align: center;
                    padding: 30px 0;
                    /*background-image: url("../images/title-bg.png");*/
                    /*background-repeat: no-repeat;*/
                    /*background-size: cover;*/
                    /*background-position: center;*/
                    display: grid;
                    place-items: center;
                }

                .c-item{
                    padding:5px;

                    /*flex: 0 0 calc(33.33% - 7px); !* 计算宽度时考虑间隙 *!*/
                    aspect-ratio: 1/0.6; /* 强制宽高比1:1 */
                    box-sizing: border-box;

                    .i-c{
                        margin-top: 10px;
                        font-size: 1rem;
                        height: 2.8em;
                        line-height: 1.4em;
                    }

                    .c-img{
                        width:100%;
                        height:100%;
                        overflow: hidden;

                        img{
                            width: 100%;
                            height: 100%;
                            object-fit: cover; /* 让图片按比例填充容器，保持图片完整且填满空间 */
                            transition: transform 0.3s ease;
                        }
                    }
                }

                /* 大赛组委会*/
                .

                /* 新闻动态通知列表 */
                .news-list{

                    .l-group{
                        display: flex;
                        margin: 20px 0;

                        .l-item{
                            padding-left:20px;
                            display: grid;
                            max-width: 560px;

                            .i-title{
                                font-size: 1.4rem;
                                color: var(--secondary-color-dark);
                            }
                            .i-time{
                                color: var(--text-color-body);
                            }
                        }
                    }

                    .l-group-no{
                        margin: 20px 0;
                        display: flex;
                        justify-content: space-between;

                        .n-title{
                            font-size: 20px;
                            color: var(--secondary-color-dark);
                        }

                        .n-time{
                            line-height: 32px;
                            padding-right: 10px;
                            color: var(--text-color-body);
                        }
                    }

                    .l-line{
                        border-bottom: 1px var(--line-light) solid;
                    }
                }
            }
        }
    }


    .right{
        padding: 30px 15px 20px 0px;

        .r-box{

            margin-bottom: 20px;

            .box-line{
                display: block;
                border-width: 1px;
                border-color: var(--line-light);
                border-style: dashed;
                height: 1px;
                line-height: 1px;
            }

            .box-t{
                background-color: var(--main-color);
                color: var(--text-color-title);
                padding:5px 10px;
                line-height: 45px;
                border: none;

                .t-body{
                    color: var(--background-color);
                }
            }

            .box-c{
                padding: 0 10px;
                border: var(--line-light) 1px solid;
                .box-group{
                    display: flex;
                    justify-content: space-between;
                    line-height: 45px;
                    padding: 5px 0;
                }
            }

            .c-title{
                border-bottom: var(--line-light) 1px solid;
                margin-bottom: 10px;

                .t-t{
                    line-height: 45px;
                    border-bottom: var(--main-color) 2px solid;
                    width:100px;
                    text-align: center;
                    font-size: 18px;
                }

            }
        }
    }
}

.panel{
    width:100%;

    h5{
        margin: 30px 0;
    }

    .group{
        display: flex;
        flex-wrap: wrap;
        justify-content: normal;

        .group-item{
            min-height:60px;
            background: #f5f8ff;
            box-shadow: 0px 1px 10px 1px rgba(50, 105, 255, 0.1);
            border-radius: 8px;
            margin-right: 20px;
            margin-bottom: 20px;
            overflow: hidden;
            display: flex;
            transition: background-color 0.5s, color 0.5s;
            /*width: calc((100% - 60px)/3);*/

            .group-item-content{
                font-size: 14px;
                padding: 18px 24px;
                margin: 0;
            }
        }
        li:hover{
            background: #F2F2F2;
        }

        .item-card{
            margin-bottom: 20px;
            h5{
                margin: 20px 10px;
                color: #0067f4;
            }
            p{
                font-size: 14px;
                margin:10px 10px;
            }
        }
    }
}

/** 右侧栏推荐*/
.recommend{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--text-color-body);
}

/** 对外合作*/
.cooper{
    form{
        padding: 12px 12px;
    }
    .right-btn{
        color: #fff;
    }
    input{
        border-radius: 4px;
        margin-top: 20px;
        height: calc(1.5em + .75rem + 8px);
    }
    input::placeholder{
        color: #87CEFA;
    }
    select{
        border-radius: 4px;
        margin-top: 20px;
        height: calc(1.5em + .75rem + 8px);
        color: #87CEFA;

        option:first-child{
            color: #87CEFA;
        }

        option{
            color: #495057;
        }
    }
    textarea{
        border-radius: 4px;
        margin-top: 20px;
        height: calc((1.5em + .75rem + 8px)*3);
    }
    textarea::placeholder{
        color: #87CEFA;
    }
}

/** 按钮 */
.content-btn {
    margin-top:30px;
    color: #fff;
    background: var(--main-color);
    display: inline-block;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 2px solid transparent;
    padding: 0 32px;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    -webkit-transition: all 0.4s ease-out 0s;
    -moz-transition: all 0.4s ease-out 0s;
    -ms-transition: all 0.4s ease-out 0s;
    -o-transition: all 0.4s ease-out 0s;
    transition: all 0.4s ease-out 0s;
    position: relative;
    text-transform: uppercase;
    border-radius: 4px;
}

/**友情链接 */
.friend-link{
    padding: 10px;
    width: 200px;
    background: var(--secondary-color-medium);
    box-shadow: 0px 1px 10px 1px rgba(50, 105, 255, 0.1);
    border-radius: 8px;
    margin-right: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    display: list-item;
    transition: background-color 0.5s, color 0.5s;
}


/*===== BACK TO TOP =====*/
.back-to-top {
    font-size: 20px;
    color: #fff;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 5px;
    background-color: var(--main-color);
    text-align: center;
    z-index: 99;
    -webkit-transition: all 0.3s ease-out 0s;
    -moz-transition: all 0.3s ease-out 0s;
    -ms-transition: all 0.3s ease-out 0s;
    -o-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    display: none; }
.back-to-top:hover {
    color: #fff;
    background-color: var(--main-color); }


.footer{
    background-color: #222222;
    border-top:2px var(--main-color) solid;
    font-size: 1rem;

    .f-up{
        padding: 1rem;

        .f-item{
            line-height: 1.6rem;
        }
    }

    .f-down{
        padding: 0 0 1rem 1rem;
        .f-item{
            line-height: 2.4rem;
        }
        a {
            display: inline-flex;
            color:var(--text-color-body);
        }
    }

}

/*===================================登陆、注册==================================================*/
.login{
    margin:0 auto;
    padding:110px 20px;
    width:400px;
    .forget{
        margin-left:200px;
    }

    .l-btn{
        background-color: var(--main-color);
    }
    .r-btn{
        background-color: #FFFFFF;
        border: var(--main-color) 1px solid;
        color:var(--main-color);
    }
}

.art-content{
    line-height: 1.8;
}

/*===================================信息表格==================================================*/
.table-info {
    margin: 20px;
    background-color: #FFFFFF;

    tr{
        height:48px;
    }

    td{
        width:100px;
        color: #b2b2b2;
        border:1px solid #f2f2f2;
        text-align: center;
        overflow: hidden;
    }
    .title{
        color: #333333;
        font-size: 18px;
        font-weight: bold;
    }
    .content {
        width: 180px;
        color: #333333;
        text-align: left;
        padding-left: 10px;
    }
    .t-h{
        height:176px;
    }
}

/** 首页移动端适配单独样式 **/
@media (max-width: 768px) {
    /* 图片响应式适配 */
    .responsive-img {
        max-width: 100%;
        height: auto;
    }
    .full-width {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .ai-contain{
        width:100%;
        margin:auto;
    }
    .ht{
        font-size: 0.8rem;
    }

    .main{
        padding:0;
        .left{
            padding:0 0 4rem 0;

            .l-content{
                padding:0 1rem;
                margin-top:1rem;

                .c-content{
                    /* 新闻动态通知列表 */
                    .news-list{
                        .l-group{
                            .l-item{
                                .i-title{
                                    font-size: 1rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    .navbar-nav{
        .nav-item{
            font-size: 0.8rem;
        }
    }
    /* 防止菜单溢出屏幕 */
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dropdown-item {
        white-space: nowrap;
    }
    .dropdown-menu {
        position: fixed;
        top: auto !important;
        bottom: 100% !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1050;
        display: none;
    }

    /* 显示下拉菜单时 */
    .show > .dropdown-menu {
        display: block;
    }

    /* 遮罩层样式 */
    .dropdown-backdrop.show {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }

    /* 调整导航栏高度 */
    .navbar-collapse {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        width: 120px;
    }

    .navbar-brand img {
        margin-right: 5px;
        transition: transform 0.3s ease;
    }

    /* 点击反馈动画 */
    .navbar-brand:hover img {
        transform: scale(1.1);
    }

    /* 右侧操作区域样式 */
    .user-actions {
        flex-direction: column;
    }

    .user-actions .nav-link {
        display: flex;
        align-items: center;
        padding: 0.25rem 0.5rem;
    }

    .login{
        margin:0 auto;
        padding:110px 20px;
        width:360px;
        .forget{
            float:right;
            margin: 10px 0;
        }

        .l-btn{
            background-color: var(--main-color);
        }
        .r-btn{
            background-color: #FFFFFF;
            border: var(--main-color) 1px solid;
            color:var(--main-color);
        }

        .layui-form-label{
            width: 100px;
        }
        .layui-input-block{
            margin-left: 100px;
        }
    }

    .footer {
        border-top: 2px var(--main-color) solid;
        font-size: 0.9rem;
        padding: 0.5rem;
        .f-up{
            padding: 0;
        }
        .f-down{
            padding: 0 0 0.5rem 0;
        }
    }
}

/* 移动端侧滑菜单 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;

    .nav-link{
        font-size: 1.1rem;
        line-height: 2rem;
    }
    .dropdown-item{
        padding-left:1rem;
        font-size:1rem;
    }
}

.mobile-sidebar.show {
    left: 0;
}

/* 移动端顶部导航栏 */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #343a40;
    z-index: 1040;
    padding: 0 15px;
}

/* 图标优化 */
.nav-icon {
    font-size: 1.2rem;
    width: 1.2em;
    transition: transform 0.2s ease;
}

/* 二级菜单图标 */
.dropdown-menu .bi {
    font-size: 1rem;
    opacity: 0.8;
}


/* 菜单项延迟动画 */
.nav-item:nth-child(1) .nav-link { transition-delay: 0.1s; }
.nav-item:nth-child(2) .nav-link { transition-delay: 0.15s; }
.nav-item:nth-child(3) .nav-link { transition-delay: 0.2s; }
.nav-item:nth-child(4) .nav-link { transition-delay: 0.25s; }
.nav-item:nth-child(5) .nav-link { transition-delay: 0.3s; }

/* 响应式控制 */
@media (max-width: 767.98px) {
    .desktop-nav { display: none !important; }
    .mobile-header { display: flex; }
    .navbar-dark .navbar-toggler { display: none; }

    .body-top {
        padding-top: 56px; /* 移动端可能需要更大的间距 */
    }
    .fixed-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    /* 移除所有状态下的文本装饰和下划线 */
    #mobileToggle.btn-link,
    #mobileToggle.btn-link:hover,
    #mobileToggle.btn-link:focus,
    #mobileToggle.btn-link:active {
        text-decoration: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    /* 移动端菜单：添加点击反馈动画 */
    #mobileToggle.btn-link:active {
        transform: scale(0.95);
        transition: transform 0.15s ease;
    }
    #mobileToggle.btn {
        font-size: 1.25rem;
    }

    /* 统一图标间距 */
    .nav-link {
        display: flex !important;
        align-items: center;
        padding: 0.8rem 1rem !important;
    }

    /* 图标容器 */
    .nav-icon-wrapper {
        width: 24px;
        margin-right: 10px;
        display: flex;
        justify-content: center;
    }


    /* 二级菜单处理 */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        border: none !important;
        box-shadow: none !important;
        display: none;
        padding:0 1rem 0.8rem;
        transition:opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown-menu.show {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
    }
    .dropdown-menu:not(.show) {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

    /* 二级菜单调整 */
    .dropdown-menu {
        .dropdown-item{
            display: flex !important;
            align-items: center;
            padding: 0.8rem 1.5rem !important;
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }
        .nav-icon-wrapper {
            width: 24px;
            margin-right: 10px;
        }
    }

    /* 底部登录注册 */
    .sidebar-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        border-top: 1px solid #eee;
    }
}

/* 悬浮容器样式 */
.qrcode-float {
    position: fixed;
    bottom: 30px;
    right: 130px;
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 二维码主体 */
.qrcode-box {
    position: fixed;
    bottom: 85px; /* 按钮高度 + 间距 */
    right: 130px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: all 0.3s ease;
    display: none; /* 默认隐藏 */
}

.qrcode-box.active {
    display: block;
    transform: scale(1);
}

/* 修改触发按钮样式 */
.qrcode-trigger {
    position: fixed;
    bottom: 30px;
    right: 130px;
    z-index: 9998;
    background: var(--main-color);
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* 按钮内容容器 */
.trigger-content {
    display: flex;
    align-items: center;
    position: relative;
}

/* 文字样式 */
.trigger-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: system-ui, -apple-system, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 悬停动效 */
.qrcode-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.3);
}

/* 响应式处理 */
@media (max-width: 768px) {
    .qrcode-float {
        bottom: 20px;
        right: 20px;
    }
    .qrcode-trigger {
        padding: 10px 16px;
        border-radius: 25px;
    }
    .trigger-text {
        font-size: 14px;
    }
    svg {
        width: 20px;
        height: 20px;
    }
}

/* 关闭按钮 */
.qrcode-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-family: Arial;
    color: #666;
}



