/* PC端通用网站样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 锚点偏移，避免被固定导航栏遮挡 */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
    scroll-margin-top: 80px;
}

/* 顶部导航栏 */
.top-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    max-width: 60%;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 16px;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: #f8f9ff;
}

/* 前端用户名样式 */
.nav-item .nav-link[href="profile.php"] {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    font-weight: 600;
}

.nav-item .nav-link[href="profile.php"]:hover {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
    transform: translateY(-1px);
}

/* 后端管理员用户名样式 */
.admin-info .nav-link[href="profile.php"] {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.admin-info .nav-link[href="profile.php"]:hover {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 48, 49, 0.3);
}

/* 前端首页我的课程样式 */
.my-courses-section {
    width: 80%;
    max-width: none;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

.course-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.course-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.course-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: center;
}

.course-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
}

.grade-tag,
.type-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.grade-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.type-tag {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* 合班标识样式 */
.combined-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff7675 0%, #e84393 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(255, 118, 117, 0.3);
}

.teacher-count-tag {
    display: inline-block;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 184, 148, 0.3);
}

.course-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 110px;
    white-space: nowrap;
}

.action-btn .btn-icon {
    font-size: 16px;
    margin-right: 8px;
}

.action-btn .btn-text {
    font-size: 14px;
}

.upload-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    flex: 1;
    max-width: 110px;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    transform: translateY(-2px);
    color: white;
}

.records-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    flex: 1;
    max-width: 110px;
}

.records-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.summary-btn {
    background: #f8f9fa;
    color: #28a745;
    border: 1px solid #28a745;
    flex: 1;
    max-width: 110px;
}

.summary-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
    transform: translateY(-2px);
}

/* 无课程状态样式 */
.no-courses {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .my-courses-section {
        width: 80%;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .my-courses-section {
        width: 80%;
        padding: 20px;
    }

    .action-btn {
        padding: 11px 15px;
        min-width: 105px;
        max-width: 105px;
    }

    .action-btn .btn-text {
        font-size: 14px;
    }

    .action-btn .btn-icon {
        font-size: 15px;
        margin-right: 7px;
    }
}

@media (max-width: 768px) {
    .my-courses-section {
        width: 95%;
        /* 手机端使用95%宽度 */
        padding: 15px;
        min-height: calc(100vh - 120px);
    }

    .courses-grid {
        gap: 20px;
    }

    .course-card {
        padding: 25px 20px;
    }

    .course-header {
        margin-bottom: 20px;
    }

    .course-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .course-name {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .course-meta {
        margin-bottom: 20px;
    }

    .course-actions {
        gap: 12px;
    }

    .action-btn {
        padding: 10px 14px;
        min-width: 95px;
        max-width: 95px;
    }

    .action-btn .btn-text {
        font-size: 13px;
    }

    .action-btn .btn-icon {
        font-size: 14px;
        margin-right: 6px;
    }

    .no-courses {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .my-courses-section {
        width: 95%;
        /* 手机端使用95%宽度 */
        padding: 15px;
        min-height: calc(100vh - 100px);
    }

    .courses-grid {
        gap: 18px;
    }

    .course-card {
        padding: 20px 18px;
    }

    .course-icon {
        font-size: 45px;
        margin-bottom: 12px;
    }

    .course-name {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .course-meta {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .course-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        max-width: none;
        width: 100%;
    }

    .no-courses {
        padding: 30px 15px;
    }
}

/* 主要布局容器 */
.main-layout {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    overflow-y: auto;
    z-index: 999; /* 确保侧边栏在其他内容之上 */
}

.sidebar-menu {
    list-style: none;
    padding: 0 20px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #667eea;
    color: #fff;
    transform: translateX(5px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    max-width: calc(100% - 280px);
}

/* 无侧边栏的布局（前端页面） */
.container {
    width: 80%;
    max-width: none;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
}

.container.admin-container {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    margin-top: 0;
    min-height: auto;
}

/* PC端响应式适配 */
@media (max-width: 1400px) {
    .navbar-container {
        padding: 0 25px;
    }

    .main-content {
        padding: 25px;
    }

    .container {
        padding: 25px;
    }
}

@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 20px;
    }

    .navbar-brand {
        font-size: 20px;
        max-width: 55%;
    }

    .navbar-nav {
        gap: 18px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 15px;
    }

    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        max-width: calc(100% - 250px);
        padding: 20px;
    }

    .container {
        width: 80%;
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .navbar-container {
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 18px;
        max-width: 50%;
    }

    .navbar-nav {
        gap: 12px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        max-width: calc(100% - 220px);
        padding: 20px;
    }

    .container {
        width: 80%;
        padding: 20px;
    }
}

/* 小屏幕PC适配 - 侧边栏收缩 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 12px;
        flex-wrap: nowrap;
    }

    .navbar-brand {
        font-size: 16px;
        max-width: 45%;
    }

    .navbar-nav {
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 13px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001; /* 在手机端确保侧边栏在最上层 */
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3); /* 增强阴影效果 */
    }

    /* 移除背景遮罩层 - 背景完全透明可见 */

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 15px;
    }

    .container {
        width: 95%;
        /* 手机端使用95%宽度 */
        padding: 15px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 8px;
    }

    .navbar-brand {
        font-size: 14px;
        max-width: 40%;
    }

    .navbar-nav {
        gap: 6px;
    }

    .nav-link {
        padding: 4px 6px;
        font-size: 12px;
    }

    /* 用户名链接特殊处理 */
    .nav-item .nav-link[href="profile.php"] {
        padding: 4px 6px;
        font-size: 11px;
    }

    .container {
        width: 95%;
        /* 手机端使用95%宽度 */
        padding: 12px;
    }
}

/* 极小屏幕适配 */
@media (max-width: 360px) {
    .navbar-container {
        padding: 0 6px;
    }

    .navbar-brand {
        font-size: 13px;
        max-width: 45%;
    }

    .navbar-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 3px 4px;
        font-size: 11px;
    }

    /* 用户名链接特殊处理 */
    .nav-item .nav-link[href="profile.php"] {
        padding: 3px 4px;
        font-size: 10px;
    }

    /* 汉堡菜单按钮 */
    .menu-toggle {
        font-size: 16px;
        padding: 4px;
    }

    .container {
        width: 95%;
        /* 手机端使用95%宽度 */
        padding: 10px;
    }
}

/* 页面头部样式 */
.page-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 前端页面头部（登录页面等） */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.subtitle {
    font-size: 18px;
    color: #666;
}

/* 不同屏幕尺寸的标题适配 */
@media (max-width: 1199px) {
    .header h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 17px;
    }
}

@media (max-width: 991px) {
    .header h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
    }
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto 30px auto;
    max-width: 500px;
}

/* 登录表单PC端适配 */
@media (max-width: 1199px) {
    .login-form {
        padding: 35px;
        max-width: 450px;
    }
}

@media (max-width: 991px) {
    .login-form {
        padding: 30px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 25px;
        max-width: 350px;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b8c5f2;
}

/* 已上传周次的样式 */
.form-group select option:disabled {
    color: #999 !important;
    background-color: #f5f5f5 !important;
    font-style: italic;
}

.form-group select option:disabled::after {
    content: " (已上传)";
}

/* 表单元素响应式适配 */
@media (max-width: 1199px) {
    .form-group {
        margin-bottom: 22px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 120px;
}

/* PC端按钮尺寸适配 */
@media (max-width: 1199px) {
    .btn {
        font-size: 15px;
        padding: 12px 24px;
        min-width: 110px;
    }
}

@media (max-width: 991px) {
    .btn {
        font-size: 14px;
        padding: 11px 20px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .btn {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 90px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    color: #666;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #ccc;
}

.breadcrumb-item:last-child {
    color: #333;
    font-weight: 500;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1002; /* 确保菜单按钮在最上层 */
    position: relative;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.menu-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* 确保导航栏在侧边栏之上 */
    .top-navbar {
        z-index: 1003;
    }

    /* 防止页面内容覆盖侧边栏 */
    .main-content {
        position: relative;
        z-index: 1;
    }

    /* 移除主内容区域遮罩 - 背景完全透明可见 */
}

/* 课程列表样式 */
.course-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.course-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-item:last-child {
    border-bottom: none;
}

.course-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.course-info p {
    font-size: 14px;
    color: #666;
}

.course-actions .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}

/* PC端课程列表网格布局 */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.course-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-actions {
    margin-top: 20px;
    width: 100%;
}

.course-actions .btn {
    width: 100%;
}

/* 课程列表响应式适配 */
@media (max-width: 1199px) {
    .course-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 18px;
    }

    .course-item {
        padding: 22px;
    }
}

@media (max-width: 991px) {
    .course-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 15px;
    }

    .course-item {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .course-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .course-item {
        padding: 18px;
    }
}

/* 上传区域样式 */
.upload-area {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-zone.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

/* 文件列表样式 */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 2px;
}

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

.file-actions button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-actions button:hover {
    background: #c82333;
}

/* 文件数量提示样式 */
.file-count-info {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #1976d2;
    text-align: center;
}

.file-count-warning {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #f57c00;
}

.file-count-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #d32f2f;
}

/* 记录表格样式 */
.records-table {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 表格滚动容器样式 */
.records-table>div[style*="overflow-x"] {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    margin-top: 0 !important;
}

/* 表格滚动条样式 */
.records-table>div[style*="overflow-x"]::-webkit-scrollbar {
    height: 8px;
}

.records-table>div[style*="overflow-x"]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.records-table>div[style*="overflow-x"]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.records-table>div[style*="overflow-x"]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* 设置合理的最小宽度，确保所有列都能显示 */
}

.table th,
.table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    white-space: nowrap;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* PC端表格样式优化 */
@media (min-width: 769px) {

    .table th,
    .table td {
        padding: 16px 15px;
        font-size: 15px;
    }
}

/* 表格响应式适配 */
@media (max-width: 1199px) {

    .table th,
    .table td {
        padding: 14px 12px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {

    .table th,
    .table td {
        padding: 12px 10px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

.status-completed {
    color: #28a745;
    font-weight: 500;
}

.status-incomplete {
    color: #dc3545;
    font-weight: 500;
    cursor: pointer;
}

.status-incomplete:hover {
    text-decoration: underline;
}

/* PC端布局优化 */
.header {
    margin-bottom: 40px;
}

/* 表单网格布局 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: end;
}

.form-grid .form-group {
    margin-bottom: 0;
}

/* 操作按钮组 */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group .btn {
    flex: 1;
    min-width: 140px;
    width: auto;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 15px;
}

/* 响应式网格适配 */
@media (max-width: 1199px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .btn-group {
        gap: 12px;
    }

    .btn-group .btn {
        min-width: 120px;
    }
}

@media (max-width: 991px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }

    .btn-group {
        gap: 10px;
    }

    .btn-group .btn {
        min-width: 110px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .btn-group {
        gap: 8px;
    }

    .btn-group .btn {
        min-width: 100px;
    }
}

/* 确保菜单在所有屏幕尺寸下都不会溢出 */
.admin-nav {
    overflow: hidden;
}

.admin-nav .btn {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 消息提示 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 面板和卡片样式 */
.panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 操作面板样式 */
.operation-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.operation-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* PC端操作按钮优化 */
@media (min-width: 768px) {
    .operation-buttons {
        justify-content: flex-start;
    }

    .operation-buttons .btn {
        min-width: 120px;
    }
}

/* 表单样式优化 */
.form-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.form-section h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 数据展示优化 */
.data-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.data-count {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.data-label {
    color: #666;
    font-size: 14px;
}

/* 图表容器样式 */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* 筛选面板样式 */
.filter-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.filter-panel h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-completed .status-indicator {
    background: #28a745;
}

.status-incomplete .status-indicator {
    background: #dc3545;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 进度条样式 */
.progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 期末总结已提交标识 */
.action-btn {
    position: relative;
}

.submitted-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transform: rotate(15deg);
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: rotate(15deg) scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }

    50% {
        transform: rotate(15deg) scale(1.05);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
    }

    100% {
        transform: rotate(15deg) scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
}

/* 已完成状态的按钮样式调整 */
.action-btn.completed {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.action-btn.completed .btn-icon {
    filter: hue-rotate(120deg);
}

.action-btn.completed .btn-text {
    color: #28a745;
    font-weight: 600;
}