/* 融合了你提供的基础样式与现代聊天界面样式 */
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .container {
            width: 100%;
            max-width: 500px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            height: 90vh;
            overflow: hidden;
        }

        header {
            padding: 15px;
            background: #075e54;
            color: white;
            text-align: center;
        }

        header h2 { margin: 0 0 10px 0; font-size: 1.2em; }

        header input {
            width: 80%;
            padding: 8px 15px;
            border-radius: 20px;
            border: none;
            outline: none;
            text-align: center;
            background: rgba(255,255,255,0.2);
            color: white;
        }

        header input::placeholder { color: rgba(255,255,255,0.7); }

        #chat-box {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background-color: #e5ddd5;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .msg-wrapper {
            display: flex;
            flex-direction: column;
            align-self: flex-start;
            max-width: 85%;
        }

        .msg {
            padding: 8px 12px;
            border-radius: 8px;
            background: white;
            box-shadow: 0 1px 1px rgba(0,0,0,0.1);
            font-size: 14px;
            word-wrap: break-word;
        }

        .time {
            font-size: 10px;
            color: #888;
            margin-top: 4px;
            align-self: flex-end;
        }

        .input-area {
            padding: 10px 15px;
            background: #f0f0f0;
            display: flex;
            gap: 10px;
        }

        #msgInput {
            flex: 1;
            padding: 10px 15px;
            border-radius: 25px;
            border: 1px solid #ddd;
            outline: none;
        }

        button {
            background: #075e54;
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
        }

        button:hover { background: #128c7e; }