/* ========== AI互动区域 - 白色简约卡片样式 ========== */
.ai-interaction-section {
    margin: 60px 0 40px;
}
.ai-interaction-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}
.ai-interaction-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.ai-card {
    flex: 1;
    max-width: 400px;
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.ai-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #8b4513;
}
.ai-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}
.ai-action {
    display: inline-block;
    background: #8b4513;
    color: white;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.ai-action:hover {
    background: #a0522d;
}

/* ========== 简约模态框样式（弹窗） ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    padding: 20px 24px;
    background: #f5f0e6;
    border-bottom: 1px solid #e0d5c5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 1.5rem;
    color: #5a3921;
}
.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #8b7a66;
    transition: 0.2s;
}
.close-modal:hover {
    color: #000;
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
/* 聊天区域 */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    max-height: 50vh;
    overflow-y: auto;
}
.message {
    display: flex;
    gap: 12px;
}
.message.user {
    flex-direction: row-reverse;
}
.message-avatar {
    width: 36px;
    height: 36px;
    background: #e0d5c5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #5a3921;
    font-size: 0.9rem;
}
.message.user .message-avatar {
    background: #8b4513;
    color: white;
}
.message-bubble {
    max-width: 70%;
    background: #f1efea;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.message.user .message-bubble {
    background: #e0e8f0;
}
.chat-input-area {
    display: flex;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
}
.chat-send {
    background: #8b4513;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 30px;
    cursor: pointer;
}
/* 筑学挑战三态界面 */
.quiz-start, .quiz-playing, .quiz-result {
    text-align: center;
}
.quiz-start h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #8b4513;
}
.quiz-start p {
    margin-bottom: 30px;
    color: #555;
}
.quiz-btn {
    background: #8b4513;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
}
.quiz-btn-outline {
    background: transparent;
    border: 1px solid #8b4513;
    color: #8b4513;
}
.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 500;
}
.question-text {
    font-size: 1.2rem;
    margin-bottom: 24px;
    line-height: 1.4;
    text-align: left;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}
.option {
    background: #f5f3ef;
    border: 1px solid #e0d5c5;
    border-radius: 40px;
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.1s;
    text-align: left;
}
.option:hover {
    background: #e8e0d5;
}
.option.selected {
    background: #d4b483;
    color: white;
    border-color: #b28b5e;
}
.result-score {
    font-size: 2rem;
    margin: 20px 0;
}
.result-rating {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #8b4513;
}