/* 公共样式 */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.positive {
    color: #EF4444 !important;
}

.negative {
    color: #22C55E !important;
}

/* 为电梯导航添加滚动监听高亮效果 */
.elevator-nav a.active {
    color: #2A67E7 !important;
}

.container {
    width: 1200px;
    margin: 0 auto;
    /* height: 100px; */
    position: relative;
    /* 添加相对定位 */
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    background-color: #F9FAFB;
    padding-bottom: 70px;
}

.mr-25 {
    margin-right: 25px;
}

.title2 {
    font-size: 18px;
    font-weight: 600;
}

.logo .light-logo {
    display: block;
}

.logo .dark-logo {
    display: none;
}

/* 公共样式 */

/* 下拉框样式 */
.time-xiala {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 32px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 修改下拉框样式，使用自定义类名 */
.time-xiala.open {
    /* 下拉菜单展开时的样式 */
}

.time-xiala.open ul {
    display: block;
}

/* 确保选项的active状态仍然正常工作 */
.time-xiala ul li.selected {
    background-color: #dbeafe;
    color: #2A67E7;
    font-weight: 500;
}

/* 下拉框悬停效果 */
/* .time-xiala:hover {
    border-color: #2A67E7;
    box-shadow: 0 0 0 1px #2A67E7;
} */

/* 下拉箭头图标 */
.time-xiala::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #6B7280;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

/* 下拉菜单展开时箭头旋转 */
.time-xiala.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 下拉列表容器 */
.time-xiala ul {
    position: absolute;
    top: 98%;
    left: -1px;
    width: 100%;
    max-height: 200px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 下拉菜单展开状态 */
.time-xiala.active ul {
    display: block;
}

/* 下拉选项样式 */
.time-xiala ul li {
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

/* 下拉选项悬停效果 */
.time-xiala ul li:hover {
    background-color: #f3f4f6;
}

/* 下拉选项选中状态 */
.time-xiala ul li.active {
    background-color: #dbeafe;
    color: #2A67E7;
    font-weight: 500;
}

/* 下拉选项中的链接样式 */
.time-xiala ul li a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* 下拉框当前选中值显示区域 */
.time-xiala .selected-value {
    padding: 6px 12px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧电梯导航样式 */
.elevator-nav {
    position: fixed;
    right: calc((100vw - 1200px) / 2 - 150px);
    top: 65%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0px 15px;
    z-index: 999;
    /* width: 180px; */
}

.elevator-nav ul {
    list-style: none;
}

.elevator-nav li {
    margin: 10px 0;
}

.elevator-nav a {
    font-size: 18px;
    color: #3D3D3D;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.elevator-nav a:hover {
    color: #2A67E7;
}

/* 电梯导航二级菜单样式 */
.elevator-nav ul ul {
    padding-left: 10px;
    margin: 5px 0;
}

.elevator-nav ul ul li {
    margin: 5px 0;
}

.elevator-nav ul ul a {
    font-size: 14px;
    color: #666666;
    font-weight: normal;
}

.elevator-nav ul ul a:hover,
.elevator-nav ul ul a.active {
    color: #2A67E7;
}

/* 右侧电梯导航样式 */

/* 头部 */
.top {
    height: 100px;
    background-color: #fff;
}

.logo {
    padding-top: 23px;
}

/* 头部 */

/* 内容部分 */

/* 学习总览 */

/* 统计值部分 */

.time ul li a {
    display: block;
    width: 72px;
    height: 27px;
}

.xxzl {
    margin-top: 30px;
    margin-bottom: 25px;
    /* height: auto; */
}

.title-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title1 {
    font-size: 26px;
    font-weight: 600;
}

.time ul li {
    float: left;
    width: 70px;
    height: 25px;
    line-height: 21px;
    border: 1px solid #E1E3E4;
    text-align: center;
}

.time ul li a {
    font-size: 12px;
    color: #323437;
}

.active {
    background-color: #2A67E7;
}

.time ul .active a {
    color: #fff;
}

.zonglan-top,
.zonglan-bottom {
    display: flex;
}

.zonglan-top-item {
    width: 220px;
    height: 190px;
    margin-top: 25px;
    background-color: #fff;
    border-radius: 5px;
    /* border: 1px solid #E5E7EB; */
}

.zonglan-bottom-item {
    width: 281px;
    height: 180px;
    margin-top: 25px;
    background-color: #fff;
    border-radius: 5px;
}

.zonglan-item-title {
    font-size: 18px;
    color: #000;
    font-weight: 500;
    padding-left: 20px;
    padding-top: 15px;
}

.zonglan-item-num {
    padding-left: 20px;
    padding-top: 5px;
}

.zonglan-item-num span {
    font-size: 30px;
    font-weight: 600;
}

.zonglan-item-num .danwei {
    font-size: 18px;
}

.tongbi {
    padding-top: 8px;
    padding-left: 20px;
    padding-bottom: 10px;
    font-size: 14px;
}

.zhou {
    color: #EF4444;
    margin-right: 3px;
}

.ri {
    color: #22C55E;
}

.zhou-bottom {
    color: #EF4444;
    margin-right: 10px;
}

.ri-bottom {
    color: #22C55E;
}

.total {
    width: 180px;
    height: 29px;
    line-height: 39px;
    margin-left: 20px;
    border-top: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 14px;
}

.total-boottom {
    width: 241px;
    height: 29px;
    line-height: 39px;
    margin-left: 20px;
    border-top: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 14px;
}

/* 统计值部分 */

/* 持续学习情况 */
.cxxx {
    height: 490px;
    margin-top: 25px;
    background-color: #fff;
}

.title-time2 {
    padding-top: 25px;
    margin-left: 25px;
    padding-right: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* 持续学习情况 */
/* 学习总览 */

/* 内容分析 */

/* 学习课程排行 */
.xxkcph {
    height: 455px;
    margin-top: 25px;
    background-color: #fff;
    border-radius: 5px;
}

/* 网站地址链接样式 */
.xxkcph-table a.url-link {
    color: #323437;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xxkcph-table a.url-link:hover {
    color: #2A67E7;
}

.xxkcph-table tbody td {
    font-size: 14px;
}

.xxkcph-table tbody tr {
    height: 40px;
    color: #111827;
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
}

/* 学习课程排行 */

/* 热门学习内容和热门学习资源 */
.rmxxnr-rmxxzy {
    display: flex;
    margin-top: 25px;
}

.rmxxnr {
    width: 615px;
    margin-right: 20px;
    background-color: #fff;
    border-radius: 5px;
    padding-bottom: 10px;
}

.rmxxzy {
    width: 565px;
    background-color: #fff;
    border-radius: 5px;
}

/* 热门学习内容 */
.no-border-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 25px auto 0 auto;

}

.no-border-table thead tr {
    color: #6B7280;
    height: 40px;
}

.no-border-table tbody tr {
    color: #111827;
    height: 40px;
}

.no-border-table a.name-link {
    color: #111827;
    text-decoration: none;
}

.no-border-table a.name-link:hover {
    color: #2A67E7;
}

/* 热门学习内容表格中的名称列超出隐藏 */
.no-border-table {
    table-layout: fixed;
    width: 100%;
}

.no-border-table th:nth-child(1),
.no-border-table td:nth-child(1) {
    width: 265px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-border-table .name-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门学习资源 */
.hot-resource-table {
    width: 515px;
    border-collapse: collapse;
    font-size: 14px;
    margin: 25px auto 0 auto;
}

.hot-resource-table thead tr {
    color: #6B7280;
    height: 40px;
}

.hot-resource-table tbody tr {
    color: #111827;
    height: 40px;
}

.hot-resource-table a.resource-link {
    color: #111827;
    text-decoration: none;
}

.hot-resource-table a.resource-link:hover {
    color: #2A67E7;
}

.hot-resource-table th,
.hot-resource-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-resource-table th:nth-child(1),
.hot-resource-table td:nth-child(1) {
    width: 315px;
}

.hot-resource-table th:nth-child(2),
.hot-resource-table td:nth-child(2) {
    width: 100px;
    text-align: center;
}

.hot-resource-table th:nth-child(3),
.hot-resource-table td:nth-child(3) {
    width: 100px;
    text-align: center;
}

.resource-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    text-decoration: none;
}

.resource-link:hover {
    color: #2A67E7;
    text-decoration: underline;
}

/* 资源类型分布 */
.zylxfb {
    margin-top: 25px;
    height: 435px;
    background-color: #fff;
    border-radius: 5px;
}

.zylxfb-box {
    display: flex;
    margin-top: 20px;
}

/* 资源类型分布 */
/* 内容分析 */

/* 行为分析 */
.xwfx {
    margin-top: 30px;
}

/* 每天学习时间和每周学习时间 */
.day-week-box {
    display: flex;
    margin-top: 25px;
}

.studyDay,
.studyWeek {
    width: 585px;
    height: 365px;
    background-color: #fff;
    border-radius: 5px;
}

/* 每天学习时间 */
.studyDay {
    margin-right: 30px;
}

#studyDay-barChart {
    margin: 0 auto;
}

/*每周学习时间 */
#studyWeek-bubbleChart {
    margin: 0 auto;
}

/* 每年学习时间 */
.studyYear {
    margin-top: 25px;
    background-color: #fff;
    border-radius: 5px;
}

#studyYear-calendarChart {
    margin: 0 auto;
}

/* 学习设备偏好 */
.xxsbph {
    background-color: #fff;
    margin-top: 25px;
    border-radius: 5px;
}

.xxsbph-box {
    display: flex;
    margin: 20px auto 0 auto;
}

/* 校内外分布 */
.xnwfb {
    background-color: #fff;
    margin-top: 25px;
    border-radius: 5px;
}

.xnwfb-box {
    display: flex;
    margin: 20px auto 0 auto;
}

/* 城市分布 */
.csfb {
    background-color: #fff;
    border-radius: 5px;
    margin-top: 25px;
}

.csfb-box {
    display: flex;
    margin-top: 20px;
    padding-bottom: 25px;
    justify-content: center
}

/* 国家分布 */
.gjfb {
    background-color: #fff;
    border-radius: 5px;
    margin: 25px auto 0 auto;
}

#gjfb-mapChart {
    margin-top: 20px;
}

/* 行为分析 */

/* 学习报表 */
.xxbb {
    margin-top: 30px;
}

/* 课程学习报表 */
.kcxxbb {
    background-color: #fff;
    border-radius: 5px;
    margin: 25px auto 0 auto;
}

/* 学习报表表格样式 */
.xxbb-table a.url-link {
    color: #323437;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xxbb-table a.url-link:hover {
    color: #2A67E7;
}

.xxbb-table tbody td {
    font-size: 14px;
}

.xxbb-table tbody tr {
    height: 40px;
    color: #111827;
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
}

/* 课程学习报表 */

/* 年度学习报表 */
.ndxxbb {
    background-color: #fff;
    border-radius: 5px;
    margin: 25px auto 0 auto;
}

/* 学习报表 */

/* 服务质量 */
.ffzl {
    margin: 25px auto 0 auto;
}

.ycqq-404-box {
    display: flex;
    margin-top: 25px;
}

/* 异常请求地址 */
.ycqq {
    width: 590px;
    background-color: #fff;
    border-radius: 5px;
    margin: 0 auto;
}

/* 异常请求地址表格容器样式 - 添加滚动条 */
.abnormal-table-container {
    max-height: 400px;
    overflow-y: auto;
    width: 543px;
    margin: 25px auto 0 25px;
    padding-bottom: 25px;
}

/* 冻结表头样式 */
.abnormal-table-container thead tr {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f9fafb;
}

/* 为确保表头在滚动时显示清晰，添加底部边框 */
.abnormal-table-container thead tr th {
    background-color: #f9fafb;
    position: sticky;
    top: 0;
}

/* 异常请求地址 */

/* 404页面统计 */
.ymtj404 {
    width: 590px;
    background-color: #fff;
    border-radius: 5px;
    margin: 0 auto;
}

/* 404页面统计表格容器样式 - 添加滚动条 */
.page404-table-container {
    max-height: 400px;
    overflow-y: auto;
    width: 543px;
    margin: 25px auto 0 25px;
    padding-bottom: 25px;
}

/* 冻结表头样式 */
.page404-table-container thead tr {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f9fafb;
}

/* 为确保表头在滚动时显示清晰，添加底部边框 */
.page404-table-container thead tr th {
    background-color: #f9fafb;
    position: sticky;
    top: 0;
}

/* 其余课程 */

.other {
    margin-top: 25px;
}

.other-box {
    margin-top: 25px;
}

.course-items-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.course-item {
    width: 150.86px;
    height: 130px;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 33px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.course-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-item img {
    margin-bottom: 20px;
}

.course-text {
    color: #374151;
    font-size: 14px;
    text-align: center;
}

.other-box .course8 span {
    margin-top: 8px;

}

/* 移动端适配（576px以下） */
@media (max-width: 576px) {

    /* 容器宽度调整 */
    .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 隐藏右侧电梯导航 */
    .elevator-nav {
        display: none;
    }

    /* 头部调整 */
    .top {
        height: 70px;
    }

    .logo {
        padding-top: 20px;
    }

    .logo img {
        max-width: 90%;
        height: auto;
    }

    /* 标题和时间选择器调整 */
    .title1 {
        font-size: 20px;
    }

    .title2 {
        font-size: 16px;
    }

    .title-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .title-time2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
    }

    /* 时间选择按钮组调整 */
    .time ul {
        display: flex;
        flex-wrap: wrap;
        /* gap: 5px; */
    }

    .time ul li {
        width: 45px;
        height: 28px;
        line-height: 26px;
        font-size: 11px;
    }

    .time ul li a {
        width: 45px;
        height: 28px;
        font-size: 11px;
    }

    /* 下拉框调整 */
    .time-xiala {
        width: 100px;
        height: 30px;
    }

    .time-xiala .selected-value {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* 学习总览 - 统计卡片 */
    .zonglan-top,
    .zonglan-bottom {
        flex-direction: column;
    }

    .zonglan-top-item {
        width: 100%;
        /* height: auto; */
        height: 150px;
        margin-top: 10px;
        margin-right: 0;
    }

    .zonglan-top-item .tongbi {
        display: flex;
        flex-wrap: wrap;
        /* gap: 10px; */
        align-items: center;
    }

    .zonglan-bottom-item {
        width: 100%;
        /* height: auto; */
        height: 150px;
        margin-top: 10px;
    }

    .zonglan-item-title {
        font-size: 16px;
        padding-left: 15px;
        padding-top: 12px;
    }

    .zonglan-item-num {
        padding-left: 15px;
    }

    .zonglan-item-num span {
        font-size: 24px;
    }

    .zonglan-item-num .danwei {
        font-size: 16px;
    }

    .tongbi {
        padding-left: 15px;
        padding-top: 6px;
        padding-bottom: 8px;
        font-size: 12px;
    }

    .total {
        width: calc(100% - 30px);
        margin-left: 15px;
        font-size: 12px;
    }

    .total-boottom {
        width: calc(100% - 30px);
        margin-left: 15px;
        font-size: 12px;
    }

    .mr-25 {
        margin-right: 0;
    }

    /* 持续学习情况 */
    .cxxx {
        height: auto;
        min-height: 350px;
        margin-top: 15px;
        /* padding: 15px; */
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #timeChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        box-sizing: border-box;
    }

    /* 学习课程排行 */
    .xxkcph {
        height: auto;
        min-height: 400px;
        margin-top: 15px;
        overflow-x: auto;
    }

    .xxkcph-table {
        min-width: 500px;
    }

    /* 热门学习内容和热门学习资源 */
    .rmxxnr-rmxxzy {
        flex-direction: column;
        margin-top: 15px;
    }

    .rmxxnr,
    .rmxxzy {
        width: 100%;
        margin-right: 0;
        margin-top: 15px;
        overflow-x: auto;
    }

    .no-border-table {
        font-size: 12px;
        margin: 15px auto 0 15px;
        min-width: 100%;
    }

    .no-border-table th:nth-child(1),
    .no-border-table td:nth-child(1) {
        width: 40%;
    }

    .hot-resource-table {
        font-size: 12px;
        margin: 15px auto 0 15px;
        min-width: 100%;
    }

    .hot-resource-table th:nth-child(1),
    .hot-resource-table td:nth-child(1) {
        width: 40%;
    }

    /* 资源类型分布 */
    .zylxfb {
        height: auto;
        min-height: 350px;
        margin-top: 15px;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .zylxfb-box {
        flex-direction: column;
        margin-top: 15px;
    }

    #zylxfb-roseChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        box-sizing: border-box;
    }

    #zylxfb-lineChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        box-sizing: border-box;
    }

    /* 行为分析 */
    .xwfx {
        margin-top: 20px;
    }

    /* 每天学习时间和每周学习时间 */
    .day-week-box {
        flex-direction: column;
        margin-top: 15px;
    }

    .studyDay,
    .studyWeek {
        width: 100%;
        height: auto;
        min-height: 320px;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #studyDay-barChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        box-sizing: border-box;
    }

    #studyWeek-bubbleChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 320px !important;
        box-sizing: border-box;
    }

    /* 每年学习时间 */
    .studyYear {
        margin-top: 15px;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #studyYear-calendarChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
        box-sizing: border-box;
    }

    /* 学习设备偏好 */
    .xxsbph {
        margin-top: 15px;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .xxsbph-box {
        flex-direction: column;
        margin: 15px auto 0 auto;
    }

    #xxsbph-roseChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        box-sizing: border-box;
    }

    #xxsbph-lineChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        box-sizing: border-box;
    }

    /* 校内外分布 */
    .xnwfb {
        margin-top: 15px;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .xnwfb-box {
        flex-direction: column;
        margin: 15px auto 0 auto;
    }

    #xnwfb-roseChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        box-sizing: border-box;
    }

    #xnwfb-lineChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        box-sizing: border-box;
    }

    /* 城市分布 */
    .csfb {
        margin-top: 15px;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .csfb-box {
        flex-direction: column;
        margin-top: 15px;
        padding-bottom: 15px;
    }

    #csfb-mapChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 350px !important;
        box-sizing: border-box;
    }

    #csfb-wordCloud {
        width: 100% !important;
        max-width: 100% !important;
        height: 350px !important;
        box-sizing: border-box;
    }

    /* 国家分布 */
    .gjfb {
        margin: 15px auto 0 auto;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #gjfb-mapChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 400px !important;
        box-sizing: border-box;
    }

    /* 确保所有图表容器在移动端都能正确显示 */
    [id*="Chart"] {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 学习报表 */
    .xxbb {
        margin-top: 20px;
    }

    .kcxxbb,
    .ndxxbb {
        margin: 15px auto 0 auto;
        overflow-x: auto;
    }

    .xxbb-table {
        min-width: 600px;
        font-size: 12px;
    }

    /* 服务质量 */
    .ffzl {
        margin: 15px auto 0 auto;
    }

    .ycqq-404-box {
        flex-direction: column;
        margin-top: 15px;
    }

    .ycqq,
    .ymtj404 {
        width: 100%;
        margin: 0 auto 15px auto;
    }

    .abnormal-table-container,
    .page404-table-container {
        width: calc(100% - 30px);
        margin: 15px auto 0 15px;
        padding-bottom: 15px;
    }

    /* 其余课程 */
    .other {
        margin-top: 15px;
    }

    .other-box {
        margin-top: 15px;
    }

    .course-items-container {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
    }

    .course-item {
        width: calc(50% - 5px);
        min-width: 140px;
        height: 120px;
        padding-top: 25px;
    }

    .course-item img {
        max-width: 60px;
        margin-bottom: 15px;
    }

    .course-text {
        font-size: 12px;
    }

    /* 通用间距调整 */
    .xxzl {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    body {
        padding-bottom: 40px;
    }
}

/* 暗黑模式样式 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-card: #3d3d3d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-muted: #999999;
        --border-color: #555555;
        --accent-color: #2A67E7;
        --positive-color: #EF4444;
        --negative-color: #22C55E;
    }
}

[data-theme="dark"] {
    scrollbar-color: #3d3d3d #666666;
    scrollbar-width: thin;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #555555;
    --accent-color: #2A67E7;
    --positive-color: #EF4444;
    --negative-color: #22C55E;
}

[data-theme="light"] {
    --bg-primary: #F9FAFB;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --accent-color: #2A67E7;
    --positive-color: #EF4444;
    --negative-color: #22C55E;
}

/* 应用CSS变量到现有样式 */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.top {
    background-color: var(--bg-secondary);
}

.zonglan-top-item,
.zonglan-bottom-item,
.cxxx,
.xxkcph,
.rmxxnr,
.rmxxzy,
.zylxfb,
.studyDay,
.studyWeek,
.studyYear,
.xxsbph,
.xnwfb,
.csfb,
.gjfb,
.kcxxbb,
.ndxxbb,
.ycqq,
.ymtj404,
.course-item {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.zonglan-item-title,
.title1,
.title2 {
    color: var(--text-primary);
}

.zonglan-item-num span,
.total,
.total-boottom {
    color: var(--text-primary);
}

.tongbi,
.time ul li a {
    color: var(--text-secondary);
}

.time ul li {
    border-color: var(--border-color);
}

.time ul li.active {
    background-color: var(--accent-color);
}

.time ul li.active a {
    color: #ffffff;
}

.elevator-nav {
    background-color: var(--bg-card);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.elevator-nav a {
    color: var(--text-primary);
}

.elevator-nav a:hover,
.elevator-nav a.active {
    color: var(--accent-color);
}

.elevator-nav ul ul a {
    color: var(--text-secondary);
}

.course-text {
    color: var(--text-primary);
}

/* 表格样式调整 */
.xxkcph-table thead tr,
.xxbb-table thead tr,
.no-border-table thead tr,
.hot-resource-table thead tr,
.xxbb-table thead tr th {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

.xxkcph-table tbody tr,
.xxbb-table tbody tr,
.no-border-table tbody tr,
.hot-resource-table tbody tr {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}

.xxkcph-table a.url-link,
.xxbb-table a.url-link,
.no-border-table a.name-link,
.hot-resource-table a.resource-link {
    color: var(--text-primary);
}

.xxkcph-table a.url-link:hover,
.xxbb-table a.url-link:hover,
.no-border-table a.name-link:hover,
.hot-resource-table a.resource-link:hover {
    color: var(--accent-color);
}

/* 下拉框暗黑模式 */
.time-xiala {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.time-xiala ul {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.time-xiala ul li {
    color: var(--text-primary);
}

.time-xiala ul li:hover {
    background-color: var(--bg-secondary);
}

.time-xiala ul li.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

.time-xiala .selected-value {
    color: var(--text-primary);
}

/* 无障碍焦点样式 */
/* a:focus,
button:focus,
.time-xiala:focus,
.time ul li:focus,
.sort-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
} */

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .logo .light-logo {
    display: none;
}

[data-theme="dark"] .logo .dark-logo {
    display: block;
}

/* 移动端主题切换按钮调整 */
@media (max-width: 576px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* 提示框样式 */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tooltip-icon:hover {
    background-color: #d0d0d0;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 暗黑模式下的提示框样式 */
[data-theme="dark"] .tooltip-icon {
    background-color: #555;
    color: #ccc;
}

[data-theme="dark"] .tooltip-icon:hover {
    background-color: #666;
}

[data-theme="dark"] .tooltip-text {
    background-color: rgba(50, 50, 50, 0.95);
    color: #fff;
}

[data-theme="dark"] .tooltip-text::after {
    border-color: rgba(50, 50, 50, 0.95) transparent transparent transparent;
}

/* 移动端提示框适配 */
@media (max-width: 576px) {
    .tooltip-container {
        margin-left: 6px;
    }

    .tooltip-icon {
        width: 16px;
        height: 16px;
        font-size: 11px;
    }

    .tooltip-text {
        width: 240px;
        bottom: auto;
        top: 100%;
        left: 0;
        transform: none;
        margin-top: 5px;
        margin-left: 0;
    }

    .tooltip-text::after {
        top: -10px;
        left: 10px;
        border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    }
}