:root {
    --primary-color: #8b4513;
    --secondary-color: #d2b48c;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-bg: #f9f7f1;
    --correct-color: #4caf50;
    --wrong-color: #f44336;
    --hint-color: #2196f3;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'STXingkai', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* AI容器 */
.ai-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
}

.ai-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.ai-header h2 {
    margin: 0;
    font-size: 24px;
}

.ai-header p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.8;
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.user-bubble {
    background-color: var(--secondary-color);
    color: var(--text-color);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-bubble {
    background-color: #e5e5ea;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

#userInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

#sendBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sendBtn:hover {
    background-color: var(--accent-color);
}

/* AI入口 */
.ai-entry {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-entry img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.ai-entry img:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-container {
        margin: 20px auto;
    }
    
    .chat-box {
        height: 300px;
    }
    
    #userInput {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #sendBtn {
        width: 36px;
        height: 36px;
    }
}