* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.header h1 {
    font-size: 20px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.4;
}

.music-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
}

.chat-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-bubble {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-bubble {
    background-color: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

/* 头像样式 */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 8px;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.bot-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.avatar-icon {
    font-size: 16px;
}

/* 输入区域样式 */
.input-area {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid #e0e0e0;
    align-items: center;
    flex-shrink: 0;
}

.input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    min-height: 44px;
}

.input-area input:focus {
    border-color: #6a11cb;
}

.input-area button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 60px;
}

.input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.quick-questions {
    padding: 12px 15px;
    background-color: #f0f2f5;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.quick-questions h3 {
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
    text-align: center;
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.question-btn {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    flex: 1;
    min-width: calc(50% - 10px);
    text-align: center;
    line-height: 1.3;
}

.question-btn:hover {
    background-color: #f0f0f0;
}

.typing-indicator {
    display: none;
    padding: 10px 14px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: 85%;
    margin-bottom: 12px;
    align-items: center;
}

.typing-dots {
    display: flex;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    margin-right: 4px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 直达链接按钮样式 */
.direct-link-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    margin: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.direct-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* 手机端优化 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        height: 95vh;
        border-radius: 12px;
    }
    
    .header {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 18px;
        padding-right: 30px;
    }
    
    .header p {
        font-size: 13px;
    }
    
    .music-icon {
        top: 12px;
        right: 12px;
        font-size: 18px;
    }
    
    .chat-container {
        padding: 12px;
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
        margin: 0 6px;
    }
    
    .avatar-icon {
        font-size: 14px;
    }
    
    .input-area {
        padding: 12px;
    }
    
    .input-area input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .input-area button {
        padding: 8px 16px;
        margin-left: 6px;
        font-size: 14px;
        min-width: 55px;
    }
    
    .quick-questions {
        padding: 10px 12px;
    }
    
    .quick-questions h3 {
        font-size: 14px;
    }
    
    .question-btn {
        font-size: 12px;
        padding: 7px 12px;
        min-height: 34px;
        min-width: calc(50% - 8px);
    }
    
    .question-buttons {
        gap: 6px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .question-btn {
        min-width: 100%;
        font-size: 11px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header p {
        font-size: 12px;
    }
}