/* ========== 主题变量（支持换肤） ========== */

:root {
    --theme-primary: #007fa3;
    --theme-primary-dark: #005f7a;
    --theme-primary-light: #e6f4f9;
    --theme-secondary: #1e2b3c;
    --theme-gradient-start: #007fa3;
    --theme-gradient-end: #005f7a;
    --body-bg: #f4f6f9;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
}

/* 暖色主题（示例） */
body.theme-warm {
    --theme-primary: #e67e22;
    --theme-primary-dark: #b85e0a;
    --theme-primary-light: #fef5e7;
    --theme-secondary: #2c3e50;
    --theme-gradient-start: #e67e22;
    --theme-gradient-end: #b85e0a;
}

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.5;
}
img, a { border: 0; }
ul, li { list-style: none; }
.flt { float: left; }
.frt { float: right; }

/* 内容区偏移（固定头部高度） */
#main-container {
    padding-top: 86px;
}

/* ========== 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', "Open Sans", sans-serif; font-size: 14px; color: #4d4d4d; background: var(--body-bg); min-width: 320px; overflow-x: hidden; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; position: relative; padding: 0 15px; }
.clear { clear: both; }
.clear:after, .clear:before { content: ''; clear: both; display: table; }

/* ========== 头部样式（固定导航） ========== */
.header {
    height: 100px;
    background: var(--theme-secondary, #292929);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}
.header .logo {
    position: absolute;
    margin-top: 0px;
    top: 0;
    left: 0;
    z-index: 1000;
}
.header a {text-decoration: none;}
.header .logo img { height: 80px; }
.header .text {
    text-align: right;
    color: #fff;
}
.header .text p {
    display: inline-block;
    line-height: 24px;
    margin-top: 20px;
    color: #a4a4a5;
}
.header .text p.p_tel {
    padding-left: 10px;
    border-left: 1px solid #4d4d4d;
    margin-left: 20px;
}
.header .text p.p_tel span {
    display: block;
    padding-left: 16px;
    background: url(../t.png) no-repeat left center;
    color: #ffea00;
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: bold;
}
.header .text p.p_login {
    padding-left: 10px;
    border-left: 1px solid #4d4d4d;
    margin-left: 20px;
}
.header .text p.p_login span { color: #a4a4a5; }
.head_menu ul { float: right; }
.head_menu ul li {
    float: left;
    margin-left: 25px;
    line-height: 25px;
    position: relative;
}
.head_menu ul li a {
    color: #fff;
    display: block;
    font-size: 16px;
}
.head_menu ul li a:hover,
.head_menu ul li.on a { color: #ffea00; text-decoration:underline;}

/* 下拉菜单 */
.head_menu ul li .nav_two {
    position: absolute;
    left: -15px;
    top: 98%;
    width: 120px;
    background: rgba(0,0,0,0.51);
    z-index: 100;
    display: none;
}
.head_menu ul li .nav_two p {
    width: 100%;
    margin-left: 0;
    line-height: 30px;
    margin-top: 0;
    display: block;
}
.head_menu ul li .nav_two p a {
    text-align: left;
    text-indent: 15px;
}
.head_menu ul li .nav_two.on { display: block; }

/* 主题切换按钮（头部） */
.theme-switch {
    display: inline-block;
    margin-left: 15px;
}
.theme-switch button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.theme-switch button:hover {
    background: rgba(255,255,255,0.3);
}

/* 移动端样式 */
@media only screen and (max-width: 750px) {
    .wrap { padding: 0 15px; }
    .header { height: 50px; }
    .header .text p:first-child { display: none; }
    .header .text p.p_tel {
        font-size: 14px;
        border-left: 0;
        margin-top: 15px;
        margin-right: 10px;
    }
    .header .text p.p_tel span {
        font-size: 18px;
        background-size: 20px;
        padding-left: 26px;
    }
    .header .text p.p_login { display: none; }
    .header .logo { width: 80px; padding-top: 5px; margin-left: 20px; }
    .wap_menu {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        background: url(../img/menu.jpg) no-repeat center center;
        background-size: 100% 100%;
        cursor: pointer;
        z-index: 1001;
    }
    .head_menu {
        position: fixed;
        top: 50px;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #5f5f5f;
        z-index: 999;
        display: none;
        overflow-y: auto;
        padding-bottom: 60px;
    }
    .head_menu ul { float: none; }
    .head_menu ul li {
        float: none;
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #777;
    }
    .head_menu ul li a { line-height: 44px; font-size: 15px; }
    .head_menu ul li .nav_two {
        position: static;
        width: 100%;
        background: #777;
        display: none;
    }
    .head_menu ul li .nav_two p a {
        text-align: center;
        text-indent: 0;
        font-size: 14px;
        color: #eee;
    }
    .head_menu ul li.open .nav_two { display: block; }
    .theme-switch {
        display: inline-block;
        margin-left: 0;
        margin-top: 15px;
    }
}

/* ========== 欢迎卡片 ========== */
.welcome-card {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}
.welcome-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}
.date-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* ========== 快速操作 ========== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.quick-action {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.quick-action:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-primary);
}
.quick-action i {
    font-size: 32px;
    color: var(--theme-primary);
    margin-bottom: 10px;
    display: block;
}
.quick-action span {
    font-size: 14px;
    font-weight: 500;
}

/* ========== 板块标题 ========== */
.section-title {
    font-size: 22px;
    color: var(--text-dark);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--theme-primary);
}

/* ========== 卡片网格（通用） ========== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 卡片样式（用于套题、网课辅导等） */
.paper-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-primary);
}
.paper-series {
    display: inline-block;
    padding: 4px 12px;
    background: var(--theme-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}
.paper-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.paper-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.paper-duration {

    color: #28a745;
    font-weight: 500;
}
.paper-btn {
    background: var(--theme-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.paper-btn:hover {
    background: var(--theme-primary-dark);
}

/* 进度卡片（仪表盘） */
.progress-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #ffc107;
}
.progress-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.progress-detail {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.progress-item {
    text-align: center;
    min-width: 100px;
}
.progress-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.progress-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--theme-primary);
}
.continue-btn {
    background: #ffc107;
    color: #333;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.continue-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* 成绩表格 */
.results-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.results-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}
.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: #666;
}
.results-table tr:hover td {
    background: #f8f9fa;
}
.band-score {
    font-weight: bold;
    color: #28a745;
}
.view-btn {
    background: transparent;
    border: 1px solid var(--theme-primary);
    color: var(--theme-primary);
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}
.view-btn:hover {
    background: var(--theme-primary);
    color: white;
}

/* 团队卡片 */
.team-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    height: 100%;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-primary);
}
.team-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* 学员卡片 */
.student-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.student-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-primary);
}
.student-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

/* 特色卡片（学校优势） */
.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.feature-card i {
    font-size: 48px;
    color: var(--theme-primary);
    margin-bottom: 15px;
}
.feature-card h5 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* 空状态 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
}
.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #adb5bd;
}

/* 响应式 */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    .papers-grid {
        grid-template-columns: 1fr;
    }
    .team-card img {
        width: 90px;
        height: 90px;
    }
    .student-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .progress-info {
        flex-direction: column;
        text-align: center;
    }
    .results-table {
        display: block;
        overflow-x: auto;
    }
}
@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ========== 移动端全局适配 (≤768px) ========== */
@media (max-width: 768px) {
    /* 隐藏侧边栏，主内容全宽 */
  .user-left-sidebar,
    .sidebar,
    [class*="user_left"],
    aside:has(.user-panel) {
        display: none !important;
    }
    
    /* 主内容区占满全宽 */
    .dashboard-wrapper .main-content {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 12px 70px 12px !important;
    }
  
    
    /* 底部导航显示 */
    .mobile-nav { display: block !important; z-index: 1050; }
    
    /* 头部Logo缩小 */
    .header { height: 56px !important; }
    .header .wrap { display: flex; align-items: center; height: 56px; padding: 0 12px; }
    .header .logo img { height: 36px !important; width: auto; }
    .head_tel p:first-child { display: none; }
    .head_tel p.p_tel span { font-size: 14px; }
    
    /* 卡片/表格溢出滚动 */
    .test-group, .table-custom, .options-grid, .papers-grid { overflow-x: auto; display: block; }
    
    /* 筛选按钮换行优化 */
    .filter-buttons { flex-wrap: wrap; gap: 6px; }
    .filter-btn { padding: 4px 12px; font-size: 12px; }
    
    /* 练习模式菜单横向滚动 */
    .sidebar-card:first-child { overflow-x: auto; white-space: nowrap; }
    .sidebar-card:first-child .sidebar-menu { display: flex; flex-wrap: nowrap; gap: 8px; }
    .sidebar-card:first-child .sidebar-menu-item { display: inline-flex; white-space: nowrap; }
    
    /* 分页紧凑 */
    .pagination { gap: 6px; }
    .page-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: 13px; }
}

/* 桌面端隐藏底部导航 */
@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
}