body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #d32f2f;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}

/* 用户认证区域 */
.user-auth {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.user-auth button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.user-auth button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.user-info {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #d32f2f;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-full {
    width: 100%;
    margin: 10px 0;
}

.main-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sidebar {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.nav-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-item.active {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.nav-item h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.nav-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.content {
    flex: 1;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    min-height: 400px;
}

.content-detail {
    width: 100%;
}

.welcome-message {
    text-align: center;
    width: 100%;
}

.welcome-message h2 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.instructions {
    margin-top: 30px;
    text-align: left;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
}

.radio-group input {
    margin-right: 5px;
}

select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

textarea {
    resize: vertical;
}

.navigation-buttons {
    margin-top: 30px;
    text-align: center;
}

.training-screen {
    width: 100%;
}

.training-header {
    display: flex;
    justify-content: space-between;
    background-color: #e3f2fd;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.timer {
    font-weight: bold;
    font-size: 18px;
    color: #d32f2f;
}

.progress {
    font-weight: bold;
    font-size: 18px;
    color: #1976d2;
}

.start-screen {
    text-align: center;
    padding: 40px 20px;
}

.start-screen h3 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.start-screen p {
    font-size: 16px;
    margin-bottom: 15px;
}

.start-screen ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
}

.start-screen li {
    margin-bottom: 10px;
}

.case-display {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

.case-image {
    width: 100%;
    height: 300px;
    background-color: #eee;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.case-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.case-description {
    text-align: left;
    margin-bottom: 20px;
}

.case-info {
    margin-bottom: 10px;
}

.case-info strong {
    display: inline-block;
    width: 80px;
}

.ai-assistance {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    margin-top: 15px;
}

.ai-assistance-standalone {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ai-assistance-standalone h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2e7d32;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 5px;
}

.ai-result {
    margin-bottom: 10px;
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.priority-badge.priority-1 { background-color: #d32f2f; }
.priority-badge.priority-2 { background-color: #ff8f00; }
.priority-badge.priority-3 { background-color: #388e3c; }
.priority-badge.priority-4 { background-color: #1976d2; }

.ai-explanation {
    margin-bottom: 15px;
}

.ai-explanation p {
    margin: 8px 0 0 0;
    font-style: italic;
}

.confidence-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background-color: #1976d2;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.confidence-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.priority-selection {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.priority-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.priority-option {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.priority-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.priority-option.selected {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.question-number {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.completion-screen {
    text-align: center;
    padding: 40px 20px;
}

.completion-screen h2 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.completion-screen p {
    font-size: 18px;
    margin-bottom: 30px;
}

.completion-screen ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
}

.completion-screen li {
    margin-bottom: 10px;
}

.completion-actions {
    margin-bottom: 30px;
}

.answers-review {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.answers-list {
    list-style-type: none;
    padding: 0;
}

.answers-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.priority-1 { border-color: #d32f2f; }
.priority-2 { border-color: #ff8f00; }
.priority-3 { border-color: #388e3c; }
.priority-4 { border-color: #1976d2; }

.priority-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.priority-desc {
    font-size: 14px;
    color: #666;
}

.controls {
    text-align: center;
    margin-top: 20px;
}

.team-selection-screen {
    text-align: center;
    padding: 40px 20px;
}

.team-selection-content {
    max-width: 800px;
    margin: 0 auto;
}

.team-display {
    margin-bottom: 40px;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d32f2f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
}

.current-user .member-avatar {
    background-color: #1976d2;
}

.member-name {
    font-weight: bold;
}

.member-role {
    font-size: 14px;
    color: #666;
}

.question-type-selection {
    margin-bottom: 30px;
}

.question-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.question-type-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.question-type-option:hover {
    border-color: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.question-type-option.selected {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.question-type-option.selected-by-team {
    border-color: #757575;
    background-color: #f5f5f5;
}

.type-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.type-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.type-desc {
    font-size: 14px;
    color: #666;
}

.selected-types-display {
    margin: 20px 0;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 5px;
}

.team-assignments {
    margin-top: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.assignment-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.assignment-item:last-child {
    border-bottom: none;
}

.assignment-user {
    font-weight: bold;
}

.assignment-region {
    color: #d32f2f;
}

#start-training-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#start-training-btn:enabled {
    background-color: #d32f2f;
}

.ai-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    clear: both;
}

.ai-section button {
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

.ai-suggestion-content {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #2196f3;
    clear: both;
    overflow: auto;
}

.ai-summary {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    clear: both;
    overflow: auto;
}

.ai-summary h5 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2e7d32;
}

.ai-summary p {
    margin: 5px 0;
}

.ai-detailed {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    clear: both;
    overflow: auto;
}

.ai-detailed h5 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1976d2;
}

.classification-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.classification-badge.red {
    background-color: #f44336;
    color: white;
}

.classification-badge.yellow {
    background-color: #ff9800;
    color: white;
}

.classification-badge.green {
    background-color: #4caf50;
    color: white;
}

.classification-badge.black {
    background-color: #212121;
    color: white;
}

.match-status {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-align: center;
}

.match-status.matching {
    background-color: #fff3cd;
    color: #856404;
}

.match-status.matched {
    background-color: #d4edda;
    color: #155724;
}

#match-team-btn {
    margin-top: 15px;
}

.layout-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.case-info-column {
    flex: 1;
    min-width: 300px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.priority-selection-column {
    flex: 1;
    min-width: 400px;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.ai-assistance-bottom {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ai-assistance-bottom h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2e7d32;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 5px;
}

@media (max-width: 1000px) {
    .layout-container {
        flex-direction: column;
    }
    
    .case-info-column,
    .priority-selection-column {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    /* 确保侧边栏可以点击 */
    .nav-item {
        cursor: pointer;
        pointer-events: auto;
    }
    
    .priority-options {
        grid-template-columns: 1fr;
    }
    
    .user-auth {
        position: static;
        margin-top: 10px;
        justify-content: center;
    }
}

/* 修复语法错误 */
