* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --bg: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    --card-bg: #fff;
    --text: #333;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}
.header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.header h1 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.header p { font-size: 14px; opacity: 0.9; }
.services { padding: 15px 20px; max-width: 800px; margin: 0 auto; width: 100%; }
.services-title { text-align: center; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.service-card {
    background: var(--card-bg); border-radius: 12px; padding: 12px 8px;
    text-align: center; transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 2px solid transparent;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2); border-color: var(--primary); }
.service-icon { font-size: 24px; margin-bottom: 6px; }
.service-name { font-size: 12px; font-weight: 500; color: var(--text); }
.example-questions { padding: 5px 20px; max-width: 800px; margin: 0 auto; width: 100%; }
.example-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.question-list { display: flex; flex-direction: column; gap: 4px; }
.question-item {
    background: var(--card-bg); border-radius: 8px; padding: 6px 12px;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 2px solid transparent; display: flex; align-items: center; gap: 8px;
}
.question-item:hover { transform: translateX(2px); box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2); border-color: var(--primary); }
.question-icon { font-size: 16px; flex-shrink: 0; }
.question-text { font-size: 12px; color: var(--text); font-weight: 500; }
.chat-section { padding: 10px 20px; max-width: 800px; margin: 0 auto; width: 100%; flex: 1; display: flex; flex-direction: column; }
.chat-title { text-align: center; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.chat-messages {
    background: var(--card-bg); border-radius: 10px; min-height: 200px; max-height: 350px;
    overflow-y: auto; padding: 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1;
}
.message { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; max-width: 80%; word-wrap: break-word; }
.message.user { background: var(--primary); color: white; margin-left: auto; text-align: right; }
.message.bot { background: #f0f0f0; color: var(--text); }
.message.loading { background: #f0f0f0; color: #999; font-style: italic; }
.message.error { background: #ffebee; color: #c62828; font-size: 12px; border-left: 3px solid #c62828; }
.message.debug { background: #e3f2fd; color: #1565c0; font-size: 11px; }
.chat-input-wrapper { display: flex; gap: 8px; align-items: center; }
.chat-input { flex: 1; padding: 12px 16px; border: 1px solid #ddd; border-radius: 24px; font-size: 15px; outline: none; }
.chat-input:focus { border-color: var(--primary); }
.send-btn { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--primary); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.send-btn:hover { background: var(--primary-dark); }
.send-btn svg { width: 20px; height: 20px; }
footer { text-align: center; padding: 15px; margin-top: auto; color: #888; font-size: 12px; }
@media (max-width: 600px) {
    .header { padding: 15px 20px; }
    .header h1 { font-size: 18px; }
    .header-icon { width: 50px; height: 50px; }
    .service-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .service-card { padding: 10px 6px; }
    .service-icon { font-size: 20px; }
    .service-name { font-size: 11px; }
    .chat-messages { min-height: 150px; max-height: 250px; }
}
