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

body {
    font-family: 'Noto Sans SC', 'PingFang SC', Arial, sans-serif;
    background: #F5F5F5; /* 全局背景使用浅灰色 */
    min-height: 100vh;
    padding: 20px;
    color: #333333; /* 正文使用深灰色 */
    letter-spacing: 0.5px; /* 字间距0.5px */
    line-height: 1.7; /* 行高1.7倍 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #F9F9F7; /* 容器背景使用浅米色 */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 微妙的光影效果 */
    overflow: hidden;
}

.header {
    background: #8E2925; /* 校徽深红，仅用于导航栏 */
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 微妙的光影效果 */
}

/* 校徽树形装饰元素 */
.header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(
        50% 10%,
        35% 30%,
        40% 40%,
        30% 50%,
        35% 65%,
        50% 55%,
        65% 65%,
        70% 50%,
        60% 40%,
        65% 30%
    );
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Noto Sans SC', 'PingFang SC', Arial, sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

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

.main-content {
    padding: 40px;
}

.section {
    margin-bottom: 24px;
    padding: 30px;
    background: #F9F9F7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D9C5B4, transparent);
}

.section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #8E2925; /* 一级标题用深红 */
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.upload-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.upload-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px dashed #E8E8E8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    position: relative;
}

.upload-box::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #8E2925;
    border-radius: 50%;
    opacity: 0.8;
}

.upload-box:hover {
    border-color: #8E2925;
    box-shadow: 0 4px 12px rgba(142, 41, 37, 0.15);
}

.upload-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333333;
    font-weight: 500;
}

.upload-hint {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.drop-zone:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.drop-zone.dragover {
    border-color: #667eea;
    background: #e7f3ff;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.upload-icon {
    font-size: 48px;
}

.upload-text {
    font-size: 14px;
    color: #6c757d;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 6px;
    font-size: 14px;
    color: #0056b3;
    display: none;
}

.info-box {
    background: #8B0000;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.3);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 48px;
    line-height: 1;
}

.info-text h4 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-text p {
    margin: 0 0 12px 0;
    font-size: 16px;
    opacity: 1;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-text .info-hint {
    font-size: 15px;
    opacity: 1;
    font-style: italic;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

.file-info.show {
    display: block;
}

.config-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.config-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333333;
    font-weight: 500;
}

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

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.config-item select,
.config-item input[type="text"] {
    padding: 10px 15px;
    border: 2px solid #E5D8C5; /* 浅米色/暖灰色 */
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.config-item select:focus,
.config-item input[type="text"]:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary {
    background: #8E2925; /* 校徽深红，核心按钮使用 */
    color: white;
    border: 2px solid #8E2925;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: #7A2220; /* 红色加深5% */
    border-color: #7A2220;
    transform: scale(1.02); /* 轻微缩放效果 */
    box-shadow: 0 4px 12px rgba(142, 41, 37, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.btn-secondary {
    background: #F9F9F7;
    color: #3B7A7F;
    border: 2px solid #3B7A7F;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    background: #3B7A7F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 122, 127, 0.2);
}

.btn-success {
    background: #8E2925;
    color: white;
    border: 2px solid #8E2925;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-success:hover:not(:disabled) {
    background: #7A2220;
    border-color: #7A2220;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(142, 41, 37, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-icon {
    font-size: 18px;
}

.progress-container {
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #E8E8E8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: #8E2925;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #8E2925;
    font-weight: 500;
}

.generation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #D9C5B4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step.active {
    border-color: #8B0000;
    background: #f8fff8;
    box-shadow: 0 4px 8px rgba(44, 95, 45, 0.1);
}

.step.completed {
    border-color: #D9C5B4;
    background: #f5f0e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.step-icon {
    font-size: 32px;
}

.step-text {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.preview-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.tab-btn.active {
    background: #8B0000;
    color: white;
    border-color: transparent;
}

.preview-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.preview-header {
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-header h3 {
    font-size: 18px;
    color: #495057;
}

.exercise-config {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.exercise-config select {
    padding: 8px 12px;
    border: 2px solid #E5D8C5;
    border-radius: 6px;
    font-size: 14px;
}

.preview-body {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    background: #f8f9fa;
}

.preview-body::-webkit-scrollbar {
    width: 8px;
}

.preview-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.preview-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.preview-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.download-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 让完整资源包始终独占一行 */
.download-item:nth-child(4) {
    grid-column: 1 / -1;
    background: white;
    color: #495057;
    border-color: #e9ecef;
    border-top: 4px solid #D9C5B4;
}

.download-item:nth-child(4) .download-info h3,
.download-item:nth-child(4) .download-info p {
    color: inherit;
}

.download-item:nth-child(4) .btn-success {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
    font-weight: normal;
    font-size: 1em;
}

.download-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #D9C5B4;
}

/* 保持完整资源包的布局与其他下载项一致 */
.download-item:nth-child(4) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-radius: 12px;
}

.download-item:hover {
    border-color: #D9C5B4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* 完整资源包的悬停效果与其他下载项保持一致 */
.download-item:nth-child(4):hover {
    border-color: #D9C5B4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
}

.download-info p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* 让完整资源包的按钮与其他按钮尺寸一致 */
.download-item:nth-child(4) .btn {
    padding: 8px 20px;
    min-width: auto;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-item:nth-child(4) {
        flex-direction: column;
        text-align: center;
    }
    
    .download-info {
        margin-bottom: 15px;
    }
    
    .download-item .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .download-item:nth-child(4) .btn {
        min-width: auto;
        width: 100%;
        max-width: 250px;
    }
}

.history-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-history {
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

.history-item {
    padding: 15px;
    border-bottom: 1px solid #E5D8C5; /* 浅米色/暖灰色 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

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

.history-info {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    position: relative;
    padding-left: 25px;
}

/* 历史记录标题前的校徽元素衍生图标 */
.history-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #8B0000;
    clip-path: polygon(
        50% 0%,
        30% 30%,
        10% 20%,
        20% 50%,
        0% 40%,
        30% 60%,
        20% 90%,
        50% 70%,
        80% 90%,
        70% 60%,
        100% 40%,
        80% 50%,
        90% 20%,
        70% 30%
    );
    border-radius: 2px;
}

.history-date {
    font-size: 12px;
    color: #6c757d;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.history-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background: #f0f4ff;
    border-color: #667eea;
}

.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    border-top: 2px solid #e9ecef;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* 知识库样式 */
.knowledge-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #E5D8C5; /* 浅米色/暖灰色 */
}

.knowledge-header h3 {
    font-size: 22px;
    color: #333333;
    font-weight: 500;
    margin: 0;
}

.knowledge-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .knowledge-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.knowledge-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.knowledge-table thead {
    background: #8E2925; /* 校徽深红 */
    color: white;
}

.knowledge-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.knowledge-table th:last-child {
    text-align: right;
    padding-right: 105px; /* 调整这个值来与按钮中间对齐 */
}

.knowledge-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.knowledge-table tbody tr:hover {
    background: #FFF8F8;
    transform: translateX(5px);
}

.knowledge-table tbody td {
    padding: 15px;
    font-size: 15px;
    color: #495057;
}

.category-header {
    background: linear-gradient(135deg, #FFF8F8 0%, #FFF0F0 100%);
    font-weight: 700;
    border-bottom: 3px solid #8B0000;
}

.category-header td {
    padding: 18px 15px;
    font-size: 18px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header:first-child td {
    border-top: none;
}

/* 教材内容特殊样式 */
.category-header[data-category="教材内容"] td {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-bottom-color: #1976d2;
}

/* 文件条目样式 */
.knowledge-table tbody tr:not(.category-header) td:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.knowledge-table tbody tr:not(.category-header) td:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .knowledge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .knowledge-table {
        font-size: 14px;
    }
    
    .knowledge-table th,
    .knowledge-table td {
        padding: 12px 8px;
    }
    
    .category-header td {
        font-size: 16px;
    }
    
    .knowledge-table tbody tr:not(.category-header) td:last-child {
        flex-direction: column;
        gap: 5px;
    }
}

#loading-text {
    font-size: 16px;
    color: #495057;
}

@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .upload-container {
        grid-template-columns: 1fr;
    }
    
    .generation-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exercise-config {
        width: 100%;
    }
    
    .exercise-config select {
        flex: 1;
    }
    
    /* 板书设计预览响应式调整 */
    .board-design-preview {
        padding: 20px;
        min-height: 300px;
    }
    
    .board-image {
        border-width: 4px;
        padding: 5px;
        transform: rotate(0deg);
    }
}

.board-design-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #4A5D23;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 40px;
    border-radius: 12px;
    margin: 20px 0;
}

.board-image {
    max-width: 100%;
    height: auto;
    border: 8px solid #D4AF37;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(212, 175, 55, 0.3) inset;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
    background: white;
    padding: 10px;
}

.board-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.exercise-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.exercise-question {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.exercise-answer {
    padding: 10px;
    background: #f0f4ff;
    border-radius: 6px;
    font-size: 14px;
    color: #0056b3;
}

.exercise-answer-label {
    font-weight: 600;
    margin-right: 5px;
}

/* 重新生成模态框样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    font-size: 20px;
    color: #495057;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group select,
.form-group textarea,
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E8E8E8; /* 使用#E8E8E8作为卡片分隔色 */
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

/* 多选下拉框样式 */
select[multiple] {
    height: auto;
    min-height: 100px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px) !important;
        max-width: none !important;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}