/* ========================================================================
   课程目标达成度评价系统 - 样式文件
   ======================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5a3d;
    --primary-light: #3d7a52;
    --primary-dark: #1e3d2a;
    --secondary: #4a7c59;
    --accent: #6b9b7a;
    --bg-light: #e8f5e9;
    --bg-soft: #c8e6c9;
    --bg-medium: #a5d6a7;
    --text-dark: #1b3d2a;
    --text-medium: #2d5a3d;
    --text-light: #4a7c59;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.92);
}

body {
    font-family: 'Microsoft YaHei', 'SimSun', serif;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 50%, #c5e1a5 100%);
    min-height: 100vh;
    color: var(--text-dark);
    padding-bottom: 100px;
}

/* ===== 头部 ===== */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 3px solid var(--secondary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}
.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-title h1 {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.5);
}
.btn-success {
    background: linear-gradient(135deg, #40916c, #52b788);
    color: var(--white);
}
.btn-warning {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: var(--white);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-danger {
    background: linear-gradient(135deg, #e63946, #c62828);
    color: var(--white);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}
.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== 主内容 ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

/* ===== 验证状态栏 ===== */
.auth-bar {
    background: #f8f9fa;
    border-bottom: 2px solid var(--bg-soft);
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
}
.auth-bar .auth-status-ok {
    color: #2e7d32;
    font-weight: 600;
}
.auth-bar .auth-status-blocked {
    color: #c62828;
    font-weight: 600;
}
.auth-bar .auth-status-warn {
    color: #e65100;
    font-weight: 600;
}

/* ===== 验证状态横幅 ===== */
.verification-banner {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
}
.verification-banner.pass {
    background: #e8f5e9;
    border: 2px solid #2e7d32;
    color: #1b5e20;
}
.verification-banner.fail {
    background: #ffebee;
    border: 2px solid #c62828;
    color: #b71c1c;
}
.verification-banner.warn {
    background: #fff3e0;
    border: 2px solid #e65100;
    color: #bf360c;
}
.verification-banner.info {
    background: #e3f2fd;
    border: 2px solid #1565c0;
    color: #0d47a1;
}

/* ===== 课程管理器 ===== */
.course-manager {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border: 1px solid var(--bg-soft);
    box-shadow: 0 8px 32px rgba(45, 106, 79, 0.1);
}
.course-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.course-tag {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-light);
    border: 2px solid var(--bg-soft);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.course-tag:hover {
    border-color: var(--secondary);
}
.course-tag.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.course-tag .delete-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 0 2px;
}
.course-tag .delete-btn:hover {
    opacity: 1;
}
.course-list-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 4px 0;
}
.course-info-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid var(--bg-soft);
}

/* ===== 新建课程弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-overlay.show {
    display: flex;
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px 35px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.modal-box h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.modal-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.modal-box .radio-item {
    margin: 6px 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--bg-soft);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}
.modal-box .radio-item:hover {
    border-color: var(--secondary);
    background: var(--bg-light);
}
.modal-box .radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.modal-box .radio-item label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.modal-box .btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/* ===== 锁定覆盖层 ===== */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}
.lock-overlay.show {
    display: flex;
}
.lock-modal {
    background: #fff;
    border-radius: 20px;
    padding: 35px 40px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: lockSlideIn 0.3s ease;
}
@keyframes lockSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.lock-modal .lock-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}
.lock-modal h2 {
    color: #c62828;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.lock-modal p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.lock-modal .btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.lock-modal .btn-group .btn {
    min-width: 120px;
    justify-content: center;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--bg-soft);
    box-shadow: 0 8px 32px rgba(45, 106, 79, 0.1);
}
.card-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* ===== 表单 ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group.full-width {
    grid-column: span 4;
}
.form-group.half-width {
    grid-column: span 2;
}
.form-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}
.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--bg-soft);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}
.form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}
.form-input.valid {
    border-color: #2e7d32;
    background: #f1f8e9;
}
.form-input.invalid {
    border-color: #c62828;
    background: #ffebee;
}
.form-input.pending {
    border-color: #e65100;
    background: #fff3e0;
}

/* ===== 统计 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}
.stat-box {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--bg-soft);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.08);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
}
.stat-value.highlight {
    color: var(--primary);
}
.stat-value.warning {
    color: #e76f51;
}
.stat-value.danger {
    color: #e63946;
}

/* ===== 表格 ===== */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid var(--bg-soft);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--white);
}
.data-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 14px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--bg-soft);
}
.data-table td {
    padding: 12px 10px;
    border: 1px solid var(--bg-soft);
    text-align: center;
    color: var(--text-dark);
}
.data-table tr:nth-child(even) {
    background: var(--bg-light);
}
.data-table tr:hover {
    background: var(--bg-soft);
}

/* ===== 导航标签 ===== */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 15px;
    flex-wrap: wrap;
}
.nav-tab {
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid transparent;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-tab:hover {
    border-color: var(--secondary);
    color: var(--primary);
}
.nav-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-color: var(--primary);
}
.nav-tab:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.panel {
    display: none;
}
.panel.active {
    display: block;
}

/* ===== 单选框 ===== */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--bg-soft);
    border-radius: 8px;
    transition: all 0.3s;
}
.radio-item:hover {
    border-color: var(--secondary);
}
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== 评价表格 ===== */
.eval-table-wrap {
    overflow-x: auto;
    margin-bottom: 15px;
}
.eval-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--bg-soft);
}
.eval-table-wrap th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--bg-soft);
}
.eval-table-wrap td {
    padding: 8px 6px;
    border: 1px solid var(--bg-soft);
    text-align: center;
    vertical-align: middle;
}
.eval-table-wrap input[type="text"],
.eval-table-wrap input[type="number"] {
    width: 100%;
    padding: 6px 4px;
    border: 2px solid var(--bg-soft);
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s;
}
.eval-table-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.eval-row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}
.eval-row-actions .btn {
    padding: 2px 10px;
    font-size: 0.75rem;
}

/* ===== 成绩录入 ===== */
.score-input {
    width: 70px;
    padding: 8px;
    border: 2px solid var(--bg-soft);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.score-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.batch-import-area {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.1);
}
.batch-import-area h3 {
    color: var(--primary);
    margin-bottom: 10px;
}
.import-template-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}
.import-template-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ===== 封皮 ===== */
.cover-info {
    text-align: center;
    padding: 20px 0;
}
.cover-info .cover-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: 6px;
}
.cover-info .cover-sub {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: 4px;
}
.cover-info .cover-detail {
    display: inline-block;
    text-align: left;
    font-size: 1.1rem;
    line-height: 2.6;
    padding: 20px 50px;
    border: 2px solid var(--bg-soft);
    border-radius: 12px;
    background: var(--bg-light);
    min-width: 400px;
}
.cover-info .cover-detail span {
    display: inline-block;
    width: 100px;
    font-weight: 600;
    color: var(--primary-dark);
}
.cover-info .cover-detail .line {
    padding: 4px 0;
    border-bottom: 1px dashed var(--bg-soft);
}
.cover-info .cover-detail .line:last-child {
    border-bottom: none;
}

/* ===== 章节副标题 ===== */
.section-subtitle {
    font-size: 1rem;
    color: var(--primary);
    margin: 20px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
    font-weight: 600;
}

/* ===== 一致性结果 ===== */
.consistency-result {
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 12px;
    display: inline-block;
}
.consistency-result.consistent {
    color: #2d6a4f;
    background: #d8f0e0;
}
.consistency-result.partial {
    color: #e76f51;
    background: #fde8e0;
}
.consistency-result.inconsistent {
    color: #c62828;
    background: #fce4e4;
}

/* ===== 图表 ===== */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.chart-box {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid var(--bg-soft);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.08);
}
.chart-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* ===== Word预览 ===== */
.word-preview {
    background: #fff;
    color: #333;
    padding: 0;
    border-radius: 0;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'SimSun', '宋体', serif;
    font-size: 12pt;
    line-height: 1.8;
}
.word-preview .word-content {
    padding: 30px 20px;
}
.word-preview .word-content h2 {
    font-size: 16pt;
    margin: 35px 0 20px;
    font-family: 'SimHei', '黑体', sans-serif;
    line-height: 1.6;
}
.word-preview .word-content h3 {
    font-size: 14pt;
    margin: 25px 0 15px;
    font-family: 'SimHei', '黑体', sans-serif;
    line-height: 1.5;
}
.word-preview .word-content p {
   font-size: 12pt;  /* 从 10.5pt 改为 12pt（小四号） */
    text-indent: 2em;
    margin: 6px 0;
    line-height: 2.0;
}
.word-preview .word-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 10.5pt;
    table-layout: fixed;
}
.word-preview .word-content th,
.word-preview .word-content td {
    border: 1px solid #333;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
}

/* ===== 底部操作栏 ===== */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 3px solid var(--secondary);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(45, 106, 79, 0.3);
    flex-wrap: wrap;
}
.action-bar .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* ===== 模态框 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    overflow-y: auto;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}
.modal-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}
.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.modal-body {
    padding: 30px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 3000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .header-title h1 {
        font-size: 1.1rem;
    }
    .main-content {
        padding: 15px 15px;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group.full-width {
        grid-column: span 2;
    }
    .form-group.half-width {
        grid-column: span 1;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .chart-grid {
        grid-template-columns: 1fr;
    }
    .action-bar {
        padding: 15px 20px;
        gap: 10px;
    }
    .action-bar .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .auth-bar {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    .course-manager {
        padding: 15px;
    }
    .course-tag {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .course-manager-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cover-info .cover-detail {
        min-width: auto;
        width: 100%;
        padding: 15px 20px;
    }
    .cover-info .cover-title {
        font-size: 1.6rem;
    }
    .cover-info .cover-sub {
        font-size: 1.2rem;
    }
    .lock-modal {
        padding: 25px 20px;
        margin: 15px;
    }
    .modal-box {
        padding: 20px;
    }
}
/* ============================================================
   新建课程弹窗 - 多栏滚动优化
   ============================================================ */

/* 弹窗内容滚动区域 */
.modal-body {
    max-height: 55vh;
    overflow-y: auto;
    padding: 8px 4px;
    margin: 0 -4px;
}

/* 滚动条美化 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #b7c9c0;
    border-radius: 8px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #8da89b;
}

/* 课程列表 - 多栏网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 12px;
    padding: 4px 0;
}

/* 每个课程选项卡片 */
.course-grid .radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: 0.15s ease;
}

.course-grid .radio-item:hover {
    background: #e9f5ef;
    border-color: #52b788;
}

.course-grid .radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #2d6a4f;
    cursor: pointer;
}

.course-grid .radio-item label {
    flex: 1;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1e2a2c;
    word-break: break-word;
}

/* 空状态提示 */
.course-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0;
    color: #888;
    font-size: 1rem;
}
/* ============================================================
   AI分析区域样式
   ============================================================ */

/* AI分析结果滚动条美化 */
#aiResult::-webkit-scrollbar {
    width: 6px;
}
#aiResult::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}
#aiResult::-webkit-scrollbar-thumb {
    background: #a5d6a7;
    border-radius: 8px;
}
#aiResult::-webkit-scrollbar-thumb:hover {
    background: #81c784;
}

/* AI分析按钮状态 */
#aiAnalyzeBtn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* 分析结果中的章节标题 */
#aiResultContent {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #1b3d2a;
}

#aiResultContent strong {
    color: #1b4332;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-analysis-area {
        padding: 15px !important;
    }
    #aiResult {
        max-height: 300px !important;
    }
}