:root {
    --primary-color: #1a5276;
    --secondary-color: #2e86c1;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 顶部Banner */
.main-banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 25%;
    left: 0px;
    top: 0px; 
    z-index: 0;
    background: url(/dfiles/feature/images/banner.png) center/contain no-repeat;
}
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}


/* 导航栏 */
.nav-section {
    background-image: linear-gradient(-90deg, #68f4ce 0%, #1bc3df 51%, #0182f8 100%);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: #ecf0f1 !important;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: #3498db;
    border-radius: 5px;
    color: white !important;
}

.nav-link i {
    margin-right: 8px;
}



/* 移动端导航样式 */
@media (max-width: 991.98px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        text-align: left;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link i {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 0;
    }
}


/* section-title */

.section-title {
    color: #2c3e50;
    margin-bottom: 20px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 700;
}


/* 新闻轮播 */
.news-carousel {
    margin: 2rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item {
    height: 320px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 4px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

/* 内容区块 */
.content-section {
    padding: 2rem 0;
}


.article-card {
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding:15px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 视频区块 */
.video-section {
    padding: 1.5rem 0;
}

.video-carousel {
    margin-top: 1.5rem;
}

.video-item {
    padding: 0 15px;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 竞答Banner */
.quiz-banner {
    width: 100%;
    position: sticky;
    z-index: 3;
    padding: 0;
    color: black;
    padding: 2.5rem 0;
    text-align: center;
    margin: 2rem 0;
}

.quiz-banner h3 {
    margin-bottom: 1rem;
}

.btn-quiz {
    background-color: white;
    color: var(--primary-color);
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid white;
}

.btn-quiz:hover {
    background-color: transparent;
    color: white;
}

/* 页脚 */
footer {
    background-image: linear-gradient(-90deg, #68f4ce 0%, #1bc3df 51%, #0182f8 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.slogan-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem;
    display: block;
    height: auto;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .main-banner {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .carousel-item {
        height: 280px;
    }

    .content-section .row > div {
        padding-left: 10px;
        padding-right: 10px;}
}

@media (max-width: 768px) {
    .main-banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 0.5rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
    }

    .content-section .container{
        padding-left: 10px;
        padding-right: 10px;}

    .content-section .row > div {
        padding-left: 5px;
        padding-right: 5px;}

.article-card {
margin-left: 0;
margin-right:0;
margin-bottom: lrem;
padding: 12px;}
    
}

@media (max-width: 576px) {

    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 200px;
    }
    
    .carousel-caption {
        bottom: 80px;
        width: 100%;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .carousel-caption p {
        display: none;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .quiz-banner h3 {
        font-size: 1.3rem;
    }
    
    .quiz-banner p {
        font-size: 0.9rem;
    }

    .content-section .container {
            padding-left: 5px;
            padding-right: 5px;
        }

    .content-section .row > div {
            padding-left: 2px;
            padding-right: 2px;
        }
        
        .article-card {
            padding: 50px;
            margin-bottom: 0.8rem;
        }
}

/* 移动菜单样式 */
.navbar-toggler {
    border: none;
    color: white;
}

/* 卡片响应式调整 */
.card-title {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* 视频区域响应式 */
.video-card .card-title {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .video-item {
        margin-bottom: 20px;
    }
}

/* 实用工具类 */
.text-justify {
    text-align: justify;
}



        /* 主内容板块*/
        .indexMain {
            width: 100%;
            background: #f6f9ff url(/dfiles/feature/images/bg.jpg) center bottom no-repeat;
            background-size: cover;
            overflow: hidden;
        }
        
        /* 面包屑导航 */
        .breadcrumb-nav {
            padding: 10px 0;
            margin-bottom: 30px;
        }
        
        /* 视频卡片样式 */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .video-card {
            border: none;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s, box-shadow 0.3s;
            background: white;
        }
        
        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        .video-thumbnail {
            position: relative;
            overflow: hidden;
            height: 180px;
        }
        
        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }
        
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 0 15px rgba(0,0,0,0.2);
        }
        
        .play-button:hover {
            background: white;
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .play-button i {
            color: #2c3e50;
            font-size: 24px;
            margin-left: 3px;
        }
        
        .video-info {
            padding: 15px;
        }
        
        .video-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: #2c3e50;
            line-height: 1.4;
        }
        
        .video-desc {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 10px;
        }
        
        .video-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: #8a8a8a;
        }
        
        .video-duration {
            display: flex;
            align-items: center;
        }
        
        .video-duration i {
            margin-right: 5px;
        }
        
        .level-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        /* 视频弹窗样式 */
        .video-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            width: 90%;
            max-width: 900px;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .modal-header {
            padding: 15px 20px;
            background: #2c3e50;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
        }
        
        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-body {
            padding: 0;
        }
        
        .video-player {
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            position: relative;
        }
        
        .video-player iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .modal-footer {
            padding: 15px 20px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
        }
        
        .video-description {
            color: #495057;
            line-height: 1.5;
        }
             
        /* 响应式调整 */
        @media (max-width: 768px) {
            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 20px;
            }
            
            .video-thumbnail {
                height: 150px;
            }
        }
        
        @media (max-width: 576px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            .main-banner {
                padding-top: 35%;
            }
        }