* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ededed; height: 100vh; overflow: hidden;
}

/* 信息填写弹窗 */
.info-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 1000;
}
.info-box {
    background: #fff; border-radius: 10px; padding: 25px; width: 100%; max-width: 320px;
}
.info-box h3 { font-size: 18px; text-align: center; margin-bottom: 8px; }
.info-tip { font-size: 13px; color: #888; text-align: center; margin-bottom: 20px; }
.info-box input[type="text"] {
    width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 6px;
    font-size: 15px; margin-bottom: 15px;
}
.avatar-select label { display: block; font-size: 14px; color: #555; margin-bottom: 10px; }
.avatar-options { display: flex; gap: 10px; margin-bottom: 20px; }
.avatar-option {
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; object-fit: cover;
}
.avatar-option.selected { border-color: #07c160; }
.info-box button {
    width: 100%; padding: 13px; background: #07c160; color: #fff; border: none;
    border-radius: 6px; font-size: 16px; cursor: pointer;
}
.wechat-login {
    display: block; text-align: center; margin-top: 12px;
    padding: 12px; background: #f2f2f2; color: #07c160; text-decoration: none;
    border-radius: 6px; font-size: 15px;
}

/* 聊天界面 */
.chat-wrapper {
    display: flex; flex-direction: column; height: 100vh; background: #ededed;
}
.chat-header {
    height: 48px; background: #ededed; border-bottom: 1px solid #d6d6d6;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; flex-shrink: 0;
}
.back-btn { font-size: 20px; color: #111; text-decoration: none; }
.chat-title { font-size: 17px; color: #111; font-weight: 500; }
.more-btn { font-size: 20px; color: #111; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 15px 12px; -webkit-overflow-scrolling: touch;
}
.msg-row { display: flex; margin-bottom: 18px; align-items: flex-start; }
.msg-row.self { flex-direction: row-reverse; }
.msg-avatar {
    width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0;
}
.msg-content { max-width: 70%; margin: 0 10px; }
.msg-bubble {
    padding: 10px 12px; border-radius: 4px; font-size: 15px; line-height: 1.45;
    word-break: break-word; position: relative;
}
.msg-row .msg-bubble { background: #fff; color: #111; }
.msg-row.self .msg-bubble { background: #95ec69; color: #111; }
.msg-bubble img { max-width: 100%; border-radius: 4px; display: block; }
.msg-time { font-size: 11px; color: #aaa; margin-top: 4px; text-align: center; }

/* 底部工具栏 */
.chat-toolbar {
    min-height: 50px; background: #f7f7f7; border-top: 1px solid #d6d6d6;
    display: flex; align-items: center; padding: 6px 10px; gap: 8px; flex-shrink: 0;
}
.tool-icon {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #555; cursor: pointer;
}
.input-wrap { flex: 1; }
.input-wrap input {
    width: 100%; height: 36px; border: none; border-radius: 4px;
    padding: 0 10px; font-size: 15px; outline: none;
}
.send-btn {
    background: #07c160; color: #fff; border: none; border-radius: 4px;
    padding: 7px 14px; font-size: 14px; cursor: pointer;
}
.send-btn:active { background: #06ad56; }

/* 后台聊天面板复用 */
.admin-chat-messages { height: calc(100% - 120px); overflow-y: auto; padding: 15px; background: #f5f5f5; }
