        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f5f5f5;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 顶部标题栏 */
        .header {
            background: #1d9bf0;
            color: #fff;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        .header-avatar {
            width: 44px;
            height: 44px;
            background: #1d9bf0;
            border: 2px solid rgba(255,255,255,0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .header-avatar svg {
            width: 24px;
            height: 24px;
        }
        .header-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }
        .header-info {
            flex: 1;
        }
        .header-title {
            font-size: 17px;
            font-weight: 600;
        }
        .header-subtitle {
            font-size: 12px;
            opacity: 0.9;
            margin-top: 2px;
        }
        .header-speaker {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .header-speaker svg {
            width: 22px;
            height: 22px;
        }

        /* 消息区域 */
        .messages {
            flex: 1;
            overflow-y: auto;
            padding: 12px 16px 16px;
            background: #f0f2f5;
        }
        .message-time {
            text-align: center;
            font-size: 12px;
            color: #8e8e93;
            margin-bottom: 12px;
        }
        .message-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 14px;
        }
        .message-row.user {
            flex-direction: row-reverse;
        }
        .message-avatar {
            width: 40px;
            height: 40px;
            background: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .message-row.user .message-avatar {
            background: #1d9bf0;
        }
        .message-avatar svg {
            width: 20px;
            height: 20px;
        }
        .message-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }
        .message-row .message-avatar svg {
            stroke: #000;
        }
        .message-row.user .message-avatar svg {
            stroke: #fff;
        }
        .message-bubble {
            max-width: 75%;
            padding: 10px 14px;
            border-radius: 18px;
            font-size: 15px;
            line-height: 1.4;
            background: #fff;
            border-top-left-radius: 4px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.06);
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .message-row.user .message-bubble {
            background: #1d9bf0;
            color: #fff;
            border-top-left-radius: 18px;
            border-top-right-radius: 4px;
            max-width: 100%;
        }
        .message-bubble a {
            color: #1d9bf0;
            text-decoration: none;
            display: block;
        }
        .message-bubble .install-link {
            font-size: 20px;
            font-weight: 600;
        }
        .message-bubble img {
            max-width: 200px;
            max-height: 200px;
            border-radius: 8px;
            display: block;
        }
        .message-row.user .message-bubble {
            color: #fff;
        }
        .message-row.user .message-bubble img {
            max-width: 200px;
            max-height: 200px;
        }
        .message-row.user .message-user-body {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            max-width: 75%;
            min-width: 0;
        }
        .message-item-time {
            font-size: 11px;
            color: #8e8e93;
            margin-top: 2px;
        }
        .message-actions {
            align-self: center;
            margin-left: 6px;
        }
        .message-row.user .message-actions {
            margin-left: 0;
            margin-right: 6px;
        }
        .btn-like {
            width: 32px;
            height: 32px;
            background: #1d9bf0;
            border: none;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
        }

        /* 底部输入栏 - 固定在视口底部 */
        .input-area {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 10;
            background: #fff;
            padding: 10px 16px 12px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
            border-top: 1px solid #e5e5ea;
            flex-shrink: 0;
        }
        .input-row {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #f0f2f5;
            border-radius: 20px;
            padding: 8px 12px 8px 16px;
        }
        .input-row input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 16px;
            outline: none;
        }
        .input-row input::placeholder {
            color: #8e8e93;
        }
        .input-icons {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .input-icons span {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 22px;
        }
        .input-area .footer-text {
            text-align: center;
            font-size: 12px;
            color: #8e8e93;
            margin-top: 8px;
        }

        /* 表情库面板 */
        .emoji-panel {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 16px;
            right: 16px;
            margin-bottom: 8px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
            padding: 12px;
            max-height: 200px;
            overflow-y: auto;
        }
        .emoji-panel.show {
            display: block;
        }
        .emoji-panel .emoji-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 6px;
        }
        .emoji-panel .emoji-item {
            width: 100%;
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.2s;
        }
        .emoji-panel .emoji-item:hover {
            background: #f0f2f5;
        }