* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.chat-container {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.yzm {
    background-color: #ffd6e6;
    margin-left: auto;
}

.message.jy {
    background-color: #d6e6ff;
    margin-right: auto;
}

.message .role {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-container {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.role-btn {
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-btn.yzm {
    background-color: #ffd6e6;
    color: #ff4d8d;
}

.role-btn.jy {
    background-color: #d6e6ff;
    color: #4d8dff;
}

.role-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-btn.yzm.active {
    border-color: #ff4d8d;
    background-color: #ffc0d9;
}

.role-btn.jy.active {
    border-color: #4d8dff;
    background-color: #c0d9ff;
}

.role-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.role-btn:hover::after {
    transform: translateX(100%);
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    height: 60px;
    font-family: inherit;
}

button#sendButton {
    padding: 0 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button#sendButton:hover {
    background-color: #45a049;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 