        :root {
            --primary-color: #ff2e63;
            --secondary-color: #08d9d6;
            --dark-bg: #0f0f23;
            --card-bg: rgba(255, 255, 255, 0.08);
            --text-color: #ffffff;
            --text-secondary: #b8b8b8;
            --border-radius: 12px;
            --transition: all 0.3s ease;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
            color: var(--text-color);
            min-height: 100vh;
            padding: 15px;
        }
        .container {
            max-width: 100%;
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .header h1 {
            font-size: 1.5rem;
            color: var(--secondary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .chat-container {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .messages {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            min-height: 0;
        }
        .message {
            margin-bottom: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            border-left: 3px solid var(--secondary-color);
            font-size: 0.8rem;
        }
        .message-header {
            display: flex;
            align-items: center;
            margin-bottom: 3px;
        }
        .message-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
            margin-right: 6px;
            background-size: cover;
        }
        .message .user {
            font-weight: bold;
            color: var(--secondary-color);
            margin-right: 6px;
            font-size: 0.7rem;
        }
        .message .time {
            font-size: 0.6rem;
            color: var(--text-secondary);
            margin-left: auto;
        }
        .message-content {
            font-size: 0.8rem;
        }
        .chat-input-container {
            display: flex;
            gap: 8px;
        }
        #chat-message-input {
            flex: 1;
            padding: 8px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: var(--text-color);
            font-size: 0.8rem;
        }
        #chat-send-btn {
            padding: 8px 12px;
            background: var(--secondary-color);
            color: #000;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            transition: var(--transition);
            font-size: 0.8rem;
        }
        #chat-send-btn:hover {
            background: #06b6b3;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        .stat-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 15px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .stat-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--secondary-color);
            margin-bottom: 5px;
        }
        .stat-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        .control-panel {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .control-buttons {
            display: flex;
            gap: 10px;
            flex-direction: column;
        }
        .control-btn {
            padding: 12px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: bold;
        }
        #stop-stream-btn {
            background: rgba(255, 71, 87, 0.2);
            color: #ff4757;
            border: 1px solid rgba(255, 71, 87, 0.3);
        }
        #stop-stream-btn:hover {
            background: rgba(255, 71, 87, 0.3);
        }
        .copy-btn {
            background: rgba(8, 217, 214, 0.2);
            color: var(--secondary-color);
            border: 1px solid rgba(8, 217, 214, 0.3);
        }
        .copy-btn:hover {
            background: rgba(8, 217, 214, 0.3);
        }
        .stream-info {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .info-item {
            margin-bottom: 10px;
        }
        .info-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 5px;
        }
        .info-value {
            font-size: 0.9rem;
            word-break: break-all;
        }
        .chat-container {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 400px;
            display: flex;
            flex-direction: column;
        }
        .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .messages {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }
        .message {
            margin-bottom: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            border-left: 3px solid var(--secondary-color);
            font-size: 0.8rem;
        }
        .message-header {
            display: flex;
            align-items: center;
            margin-bottom: 3px;
        }
        .message-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
            margin-right: 6px;
            background-size: cover;
        }
        .message .user {
            font-weight: bold;
            color: var(--secondary-color);
            margin-right: 6px;
            font-size: 0.7rem;
        }
        .message .time {
            font-size: 0.6rem;
            color: var(--text-secondary);
            margin-left: auto;
        }
        .message-content {
            font-size: 0.8rem;
        }
        .hidden {
            display: none;
        }
        /* 滚动条样式 */
        .messages::-webkit-scrollbar {
            width: 4px;
        }
        .messages::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 2px;
        }
        .messages::-webkit-scrollbar-thumb {
            background: var(--secondary-color);
            border-radius: 2px;
        }