/* public/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 850px;
    margin: 30px auto;
    padding: 20px;
    background: #f4f6f9;
    color: #333;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

#chatbox {
    border: 1px solid #e0e0e0;
    height: 380px;
    overflow-y: auto;
    padding: 15px;
    background: #fafafa;
    margin-bottom: 15px;
    border-radius: 8px;
}

.message {
    margin-bottom: 14px;
    line-height: 1.6;
    padding: 8px 12px;
    border-radius: 6px;
}

.user {
    background-color: #eef6ff;
    color: #004085;
    border-left: 4px solid #0056b3;
}

.ai {
    background-color: #f0fdf4;
    color: #155724;
    border-left: 4px solid #28a745;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

button:hover {
    background: #0056b3;
}

.hidden {
    display: none;
}

/* === 外教文本隐字 / 模糊切换核心样式 === */
.blur-text {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.3s ease, background 0.3s ease;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.revealed-text {
    filter: none;
    background: transparent;
    color: inherit;
}

.toggle-text-btn {
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 12px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-text-btn:hover {
    background: #138496;
}