/* index.css - 江苏省档案远程教育平台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

.jsda_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner区域 */
.jsda_banner {
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
}

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

/* 主导航栏（banner下方） */
.jsda_main-nav {
    background-color: #1a6da0;
    height: 50px;
    margin-bottom: 25px;
}

.jsda_nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.jsda_nav-menu li {
    flex: 1;
    text-align: center;
}

.jsda_nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.jsda_nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.jsda_nav-menu .jsda_active a {
    background-color: white;
    color: #1a6da0;
    font-weight: bold;
}

.jsda_nav-menu i {
    margin-right: 8px;
    font-size: 14px;
}

/* 主内容区 */
.jsda_main-content {
    display: flex;
    margin-bottom: 50px;
}

/* 左侧功能区 */
.jsda_left-sidebar {
    width: 25%;
    margin-right: 25px;
}

.jsda_login-module, .jsda_function-module, .jsda_category-module {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    padding: 20px;
}

.jsda_module-title {
    color: #0a2942;
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.jsda_module-title i {
    margin-right: 8px;
    color: #E50012;
}

.jsda_login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.jsda_login-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.jsda_btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.jsda_btn-login {
    background-color: #E50012;
    color: white;
    flex-grow: 1;
    margin-right: 10px;
}

.jsda_btn-register, .jsda_btn-forgot {
    background-color: #f0f4f8;
    color: #0a2942;
}

.jsda_btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.jsda_function-list, .jsda_category-list {
    list-style: none;
}

.jsda_function-list li, .jsda_category-list li {
    padding: 0;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: center;
}

.jsda_function-list li:last-child, .jsda_category-list li:last-child {
    border-bottom: none;
}

.jsda_function-list li:hover, .jsda_category-list li:hover {
    background-color: transparent;
}

.jsda_function-list i, .jsda_category-list i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #E50012;
}

/* 功能服务链接样式 */
.jsda_function-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    padding: 12px 10px;
    line-height: normal;
}

.jsda_function-link:hover {
    color: #E50012;
    background-color: #f8fafc;
}

/* 分类导航链接样式 */
.jsda_category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    padding: 12px 10px;
    line-height: normal;
}

.jsda_category-link:hover {
    color: #E50012;
    background-color: #f8fafc;
}

/* 右侧内容区 */
.jsda_content-area {
    width: 75%;
}

.jsda_content-row {
    display: flex;
    margin-bottom: 25px;
}

/* 修改通知公告和学习排名的宽度比例 */
.jsda_notice-module {
    flex: 0 0 65%;
    margin-right: 25px;
}

.jsda_ranking-module {
    flex: 0 0 35%;
}

.jsda_content-module {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    height: 100%;
}

.jsda_module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.jsda_module-header h2 {
    color: #0a2942;
    font-size: 20px;
    font-weight: bold;
}

/* 更多链接样式 */
.jsda_more-btn {
    color: #E50012;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.jsda_more-btn:hover {
    background-color: #E50012;
    color: white;
    border-color: #E50012;
}

.jsda_more-btn i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.jsda_more-btn:hover i {
    transform: translateX(3px);
}

.jsda_notice-list li, .jsda_ranking-list li, .jsda_course-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.jsda_notice-list li:last-child, .jsda_ranking-list li:last-child, .jsda_course-list li:last-child {
    border-bottom: none;
}

.jsda_notice-list li:hover, .jsda_ranking-list li:hover {
    color: #E50012;
    cursor: pointer;
}

/* 学习排名列表样式调整 */
.jsda_ranking-list li {
    justify-content: flex-start;
    align-items: center;
}

.jsda_ranking-list li span:first-child {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 10px;
    font-weight: bold;
}

.jsda_ranking-list li span:nth-child(2) {
    flex: 1;
    margin-right: 10px;
    text-align: center;
}

.jsda_ranking-list li span:last-child {
    color: #0a2942;
    font-weight: normal;
}

.jsda_ranking-list li:nth-child(1) span:first-child {
    color: #E50012;
}

.jsda_ranking-list li:nth-child(2) span:first-child, .jsda_ranking-list li:nth-child(3) span:first-child {
    color: #0a2942;
}

/* 轮播图模块 */
.jsda_carousel-module {
    width: 100%;
    margin-bottom: 25px;
}

.jsda_carousel-container {
    position: relative;
    width: 100%;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f4f8;
}

.jsda_carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.jsda_carousel-link {
    display: block;
    flex: 0 0 230px;
    height: 70px;
    margin-right: 10px;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.jsda_carousel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.jsda_carousel-link:last-child {
    margin-right: 0;
}

.jsda_carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
}

.jsda_carousel-link:nth-child(1) .jsda_carousel-item {
    background: linear-gradient(to right, #0a2942, #1a3a5f);
}

.jsda_carousel-link:nth-child(2) .jsda_carousel-item {
    background: linear-gradient(to right, #8B0000, #B22222);
}

.jsda_carousel-link:nth-child(3) .jsda_carousel-item {
    background: linear-gradient(to right, #006400, #228B22);
}

.jsda_carousel-link:nth-child(4) .jsda_carousel-item {
    background: linear-gradient(to right, #8B4513, #A0522D);
}

.jsda_carousel-link:nth-child(5) .jsda_carousel-item {
    background: linear-gradient(to right, #4B0082, #6A5ACD);
}

.jsda_carousel-link:nth-child(6) .jsda_carousel-item {
    background: linear-gradient(to right, #008080, #20B2AA);
}

.jsda_carousel-link:nth-child(7) .jsda_carousel-item {
    background: linear-gradient(to right, #2E8B57, #3CB371);
}

.jsda_carousel-link:nth-child(8) .jsda_carousel-item {
    background: linear-gradient(to right, #4682B4, #5F9EA0);
}

.jsda_carousel-link:nth-child(9) .jsda_carousel-item {
    background: linear-gradient(to right, #8A2BE2, #9370DB);
}

.jsda_carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0a2942;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.jsda_carousel-control:hover {
    background-color: white;
}

.jsda_carousel-control.prev {
    left: 10px;
}

.jsda_carousel-control.next {
    right: 10px;
}

.jsda_carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.jsda_carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.jsda_carousel-indicator.jsda_active {
    background-color: white;
}

/* 课程模块 - 一行4个 */
.jsda_course-module {
    width: 100%;
    margin-bottom: 25px;
}

/* 课程卡片网格布局 - 一行4个 */
.jsda_course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* 课程卡片样式 */
.jsda_course-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.jsda_course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #E50012;
}

.jsda_course-card-img {
    width: 100%;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f8fa;
}

.jsda_course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jsda_course-card:hover .jsda_course-card-img img {
    transform: scale(1.08);
}

.jsda_course-card-content {
    padding: 16px;
}

.jsda_course-card-title {
    color: #0a2942;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.jsda_course-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jsda_course-type {
    color: #666;
    font-size: 12px;
}

.jsda_course-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.jsda_tag-required {
    background-color: #FFE6E6;
    color: #E50012;
}

.jsda_tag-elective {
    background-color: #E6F2FF;
    color: #0066CC;
}

.jsda_tag-continuing {
    background-color: #F0F8FF;
    color: #006699;
}

/* 底部 - 重新设计，去掉border-top */
.jsda_footer {
    background-color: #0a4a75;
    color: #E0F4FF;
    padding: 30px 0 25px;
    margin-top: 40px;
}

.jsda_footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jsda_footer-logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.jsda_footer-logo i {
    color: #E50012;
    margin-right: 10px;
    font-size: 24px;
}

.jsda_footer-info {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #B0C4DE;
}

.jsda_footer-info p {
    margin: 5px 0;
}

.jsda_footer-icp {
    font-size: 13px;
    color: #8FA3C7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    width: 100%;
    max-width: 600px;
    margin-top: 5px;
}

.jsda_footer-divider {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .jsda_course-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .jsda_course-card-img {
        height: 90px;
    }
}

@media (max-width: 992px) {
    .jsda_main-content {
        flex-direction: column;
    }

    .jsda_left-sidebar, .jsda_content-area {
        width: 100%;
    }

    .jsda_left-sidebar {
        margin-right: 0;
        margin-bottom: 25px;
    }

    .jsda_content-row {
        flex-direction: column;
    }

    .jsda_notice-module {
        flex: 1;
        margin-right: 0;
        margin-bottom: 25px;
    }

    .jsda_ranking-module {
        flex: 1;
    }

    .jsda_course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .jsda_course-card-img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .jsda_nav-menu {
        flex-wrap: wrap;
    }

    .jsda_nav-menu li {
        flex: 0 0 50%;
    }

    .jsda_nav-menu a {
        padding: 10px 5px;
        font-size: 14px;
    }

    .jsda_banner {
        height: 200px;
    }

    .jsda_course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .jsda_course-card-img {
        height: 90px;
    }

    .jsda_course-card-content {
        padding: 14px;
    }

    .jsda_course-card-title {
        font-size: 14px;
        height: 40px;
    }

    /* 轮播图响应式调整 */
    .jsda_carousel-link {
        flex: 0 0 200px;
    }

    .jsda_carousel-control {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .jsda_footer {
        padding: 25px 0 20px;
    }

    .jsda_footer-logo {
        font-size: 20px;
    }

    .jsda_footer-info {
        font-size: 13px;
        line-height: 1.6;
    }

    .jsda_footer-icp {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .jsda_nav-menu li {
        flex: 0 0 100%;
    }

    .jsda_banner {
        height: 150px;
    }

    .jsda_course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jsda_course-card-img {
        height: 80px;
    }

    .jsda_course-card-content {
        padding: 12px;
    }

    .jsda_course-card-title {
        font-size: 13px;
        height: 38px;
    }

    /* 轮播图响应式调整 */
    .jsda_carousel-link {
        flex: 0 0 150px;
    }

    .jsda_carousel-item {
        font-size: 14px;
    }

    .jsda_carousel-control {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .jsda_carousel-control.prev {
        left: 5px;
    }

    .jsda_carousel-control.next {
        right: 5px;
    }

    .jsda_footer-info {
        font-size: 12px;
    }

    .jsda_footer-divider {
        margin: 0 10px;
    }
}

@media (max-width: 360px) {
    .jsda_course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jsda_course-card-img {
        height: 100px;
    }

    /* 轮播图响应式调整 */
    .jsda_carousel-link {
        flex: 0 0 120px;
    }

    .jsda_carousel-item {
        font-size: 12px;
    }
}


.jsda_module-header h2 {
    color: #0a2942;
    font-size: 20px;
    font-weight: bold;
    padding-left: 12px;
    border-left: 4px solid #E50012;
}


/* 调整图标与边框的间距 */
.jsda_module-header h2 i {
    color: #E50012;
    margin-right: 8px;
    font-size: 18px;
}


.jsda_module-header h2 {
    color: #0a2942;
    font-size: 20px;
    font-weight: bold;
    padding: 4px 12px;
    border-left: 4px solid #E50012;
    border-radius: 6px;
    background-color: #f8fafc;
}



.jsda_module-header h2 i {
    color: #E50012;
    margin-right: 8px;
    font-size: 18px;
}
