html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 15px 20px;
    background-color: #007bff;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #0056b3;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 5px;
}

.message.assistant {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
}

#chat-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#send-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#send-button:hover {
    background-color: #0056b3;
}

.action-card {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    align-self: flex-start;
    max-width: 80%;
}

.action-card h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.action-card button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* 确认成为代理按钮 */
.btn-confirm {
    background-color: #e74c3c !important;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}
.btn-confirm:hover { background-color: #c0392b !important; }

.btn-decline {
    background-color: transparent !important;
    color: #888;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    margin-top: 6px;
}
.btn-decline:hover { background-color: #f5f5f5 !important; }

/* 报名表单 */
.signup-form {
    margin-top: 12px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-row label {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.form-row input {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}

.form-row input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.btn-submit {
    background-color: #007bff !important;
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    margin-top: 8px;
}
.btn-submit:hover { background-color: #0056b3 !important; }
.btn-submit:disabled { background-color: #aaa !important; cursor: not-allowed; }
