:root {
    --primary: #5b7fff;
    --secondary: #99b8ff;
    --text: #333;
    --bg: #f5f7fa;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片布局 */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* 聊天界面 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message .avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.message .content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
}

.message.ai .content {
    background: #f1f1f1;
}

.message.user {
    justify-content: flex-end;
}

.message.user .content {
    background: var(--primary);
    color: rgb(0, 0, 0);
}

.input-area {
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 16px;
}

.btn {
    padding: 15px 30px; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;    
    transition: all 0.2s;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: #4a6fe6;
    transform: translateY(-2px);
}

.btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}

.toast.success {
    background: #81e0ff;
}

.toast.error {
    background: #b7aff9;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

header {
    text-align: center;
    padding: 30px 0;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: #666;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px; 
    margin: 30px 0;
}

.training-container, .exam-container {
    text-align: center;
    padding: 40px 20px;
}

.training-container h2, .exam-container h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--primary);
}

.action-buttons.vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 350px;
    margin: 0 auto;
}

.btn.large {
    padding: 18px 36px;
    font-size: 20px;
}

.btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn.secondary.active {
    background: #b2d2ff;
    color: #333;
}

/* 新增表单样式 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: rgb(197, 210, 251);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* 客户端卡片样式 */
.client-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 81, 255, 0.1);
    transition: all 0.3s;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.client-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.delete-form {
    margin: 0;
}

/* WAI评分样式 */
.wai-scores {
    margin-top: 15px;
    padding: 12px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #4a6fe6;
}

.wai-scores p {
    margin: 5px 0;
}

.wai-scores strong {
    color: #2c5282;
}

.wai-scores p:last-child {
    font-size: 16px;
    font-weight: bold;
    color: #4a6fe6;
    margin-top: 8px;
}

/* 报告弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header .close {
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-header .close:hover {
    color: #333;
}

.report-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.report-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.report-section ul {
    padding-left: 20px;
}

.report-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #4a6fe6;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}