        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
            background: #1e1e1e;
            color: #d4d4d4;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .container {
            background: #2d2d2d;
            padding: 28px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            width: 500px;
            max-width: 95vw;
        }
        h1 {
            font-size: 20px;
            text-align: center;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        h1 .badge {
            background: #0e639c;
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: normal;
        }
        .info {
            background: #1e1e1e;
            padding: 12px 14px;
            margin: 10px 0;
            border-left: 3px solid #7c3aed;
            font-size: 13px;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .info .id-value {
            color: #4caf50;
            font-size: 18px;
            font-weight: bold;
            font-family: monospace;
        }
        .peer-info {
            background: #1e1e1e;
            padding: 12px 14px;
            margin: 10px 0;
            border-left: 3px solid #4caf50;
            font-size: 13px;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .peer-info .peer-id-value {
            color: #7c3aed;
            font-size: 18px;
            font-weight: bold;
            font-family: monospace;
        }
        .room-id-info {
            background: #1e1e1e;
            padding: 12px 14px;
            margin: 10px 0;
            border-left: 3px solid #ffa500;
            font-size: 13px;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .room-id-info .room-id-value {
            color: #ffa500;
            font-size: 18px;
            font-weight: bold;
            font-family: monospace;
        }
        .status {
            background: #1e1e1e;
            padding: 14px;
            text-align: center;
            font-weight: bold;
            border-radius: 6px;
            font-size: 15px;
            margin: 12px 0;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .room-status-section {
            background: #1e1e1e;
            border-radius: 6px;
            padding: 12px 14px;
            margin: 10px 0;
            text-align: center;
        }
        .room-status-section h3 {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .room-status {
            font-size: 16px;
            font-weight: bold;
            padding: 8px 16px;
            border-radius: 8px;
            display: inline-block;
        }
        .room-status.waiting {
            color: #ffa500;
            background: rgba(255, 165, 0, 0.1);
        }
        .room-status.active {
            color: #4caf50;
            background: rgba(76, 175, 80, 0.1);
        }
        .room-status.full {
            color: #d16969;
            background: rgba(209, 105, 105, 0.1);
        }
        .peers-section {
            background: #1e1e1e;
            border-radius: 6px;
            padding: 12px 14px;
            margin: 10px 0;
        }
        .peers-section h3 {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .peers-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .peer-item {
            background: #3d3d3d;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .btn-group {
            display: flex;
            gap: 8px;
            margin-top: 14px;
        }
        button {
            flex: 1;
            background: #0e639c;
            color: white;
            border: none;
            padding: 14px 20px;
            cursor: pointer;
            border-radius: 6px;
            font-size: 16px;
            transition: all 0.2s;
            font-weight: 500;
        }
        button:hover:not(:disabled) {
            background: #1177bb;
            transform: translateY(-1px);
        }
        button:disabled {
            background: #555;
            cursor: not-allowed;
            opacity: 0.6;
        }
        #leaveBtn {
            background: #d16969;
        }
        #leaveBtn:hover:not(:disabled) {
            background: #e07b7b;
        }
        #debugPanel {
            background: #1a1a1a;
            padding: 12px 14px;
            margin-top: 14px;
            border-radius: 6px;
            font-size: 12px;
            display: none;
        }
        #debugPanel h3 {
            font-size: 11px;
            color: #888;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        #debugInfo {
            font-family: monospace;
            line-height: 1.8;
            color: #aaa;
        }
        .footer-note {
            text-align: center;
            font-size: 11px;
            color: #666;
            margin-top: 14px;
            border-top: 1px solid #3d3d3d;
            padding-top: 12px;
        }
        #coep-status {
            font-size: 12px;
            text-align: center;
            padding: 8px;
            background: #2d2d2d;
            border-radius: 6px;
            margin-top: 10px;
        }
        .coep-ok { color: #4caf50; }
        .coep-fail { color: #d16969; }

        /* 编解码配置面板 */
        .config-section {
            background: #1e1e1e;
            border-radius: 6px;
            padding: 12px 14px;
            margin: 10px 0;
        }
        .config-section h3 {
            font-size: 12px;
            color: #888;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .config-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }
        .config-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .config-item label {
            font-size: 11px;
            color: #888;
        }
        .config-item select {
            background: #3d3d3d;
            color: #d4d4d4;
            border: 1px solid #555;
            border-radius: 4px;
            padding: 6px 8px;
            font-size: 13px;
            font-family: monospace;
            cursor: pointer;
        }
        .config-item select:focus {
            outline: none;
            border-color: #0e639c;
        }
        .config-item select:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .config-presets {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .preset-label {
            font-size: 11px;
            color: #888;
        }
        .preset-btn {
            background: #3d3d3d;
            color: #d4d4d4;
            border: 1px solid #555;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            flex: none;
        }
        .preset-btn:hover {
            background: #0e639c;
            border-color: #0e639c;
        }
        .preset-btn.active {
            background: #0e639c;
            border-color: #0e639c;
        }
        .room-config-info {
            background: #1e1e1e;
            border-radius: 6px;
            padding: 12px 14px;
            margin: 10px 0;
            border-left: 3px solid #0e639c;
        }
        .room-config-info h3 {
            font-size: 12px;
            color: #888;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .room-config-detail {
            display: flex;
            justify-content: space-between;
            padding: 3px 0;
            font-size: 13px;
        }
        .room-config-detail .label {
            color: #888;
        }
        .room-config-detail .value {
            color: #4caf50;
            font-family: monospace;
        }
