/* style.css - 完整的加密聊天室样式 */

/* 全局变量 */
:root {
    --primary: #0084ff;
    --primary-dark: #0073e6;
    --success: #31a24c;
    --error: #fa383e;
    --warning: #ff9800;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e0e4e8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    width: 100%;
    max-width: 480px;
    margin: 16px;
}

/* 卡片容器 */
.card {
    background: var(--card);
    border-radius: 32px;
    padding: 24px;
    box-shadow: var(--shadow);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题 */
.title {
    text-align: center;
    margin-bottom: 28px;
}

.title h1 {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-weight: 700;
}

.title p {
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* 用户卡片 */
.user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.user-id-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.user-id-display {
    font-size: 42px;
    font-weight: 800;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

/* 输入组 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
    cursor: pointer;
    padding-left: 4px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 4px;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.1);
}

.input-icon {
    padding: 0 12px;
    font-size: 20px;
    color: var(--text-light);
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 14px 14px 0;
    font-size: 16px;
    color: var(--text);
    outline: none;
}

.input-wrapper input::placeholder {
    color: #bdc3c7;
}

/* 迷你状态指示器 */
.connection-status-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: 30px;
    margin: 16px 0 20px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.dot.connected {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
}

.dot.connected::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.3;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.dot.disconnected {
    background: var(--error);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 132, 255, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #e03131);
    color: white;
    box-shadow: 0 4px 12px rgba(250, 56, 62, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(250, 56, 62, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.btn:disabled::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 房间头部 */
.room-header {
    margin-bottom: 24px;
}

.room-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.room-badge {
    background: linear-gradient(135deg, var(--primary), #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.connection-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 8px;
    background: var(--bg);
    padding: 4px;
    border-radius: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 26px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 在线用户列表 */
.online-users {
    background: var(--bg);
    border-radius: 24px;
    padding: 20px;
    margin: 16px 0;
}

.online-users h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 16px;
}

.user-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.user-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.user-list::-webkit-scrollbar {
    width: 4px;
}

.user-list::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.user-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 20px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.user-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-item.leave {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-right: 14px;
    box-shadow: 0 4px 8px rgba(0, 132, 255, 0.2);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 14px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* 消息区域 */
.messages {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg);
    border-radius: 24px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messages::-webkit-scrollbar {
    width: 4px;
}

.messages::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 20px;
    animation: messageIn 0.3s ease;
    word-wrap: break-word;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.self {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.message.other {
    align-self: flex-start;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
}

.message.self .message-header {
    color: rgba(255, 255, 255, 0.8);
}

.message.other .message-header {
    color: var(--text-light);
}

.message-sender {
    font-weight: 600;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
}

/* 图片消息 */
.message-image {
    max-width: 200px;
}

.message-image img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-image img:hover {
    transform: scale(1.05);
}

.image-name {
    font-size: 11px;
    margin-top: 6px;
    color: var(--text-light);
    word-break: break-all;
}

.message.self .image-name {
    color: rgba(255, 255, 255, 0.7);
}

.message-image-preview {
    padding: 8px 12px;
    background: rgba(0, 132, 255, 0.1);
    border-radius: 12px;
    font-size: 13px;
    color: var(--primary);
}

/* 消息输入区域 */
.message-input-area {
    margin-top: 16px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.1);
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
    color: var(--text);
}

.emoji-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: var(--bg);
    transform: scale(1.1);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: white;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(0, 132, 255, 0.3);
}

/* 语音控制区域 */
.voice-controls {
    background: var(--bg);
    border-radius: 24px;
    padding: 20px;
    margin-top: 16px;
}

.voice-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.voice-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: var(--success);
    box-shadow: 0 0 16px var(--success);
    animation: pulse 1.5s infinite;
}

.indicator-dot.inactive {
    background: var(--text-light);
}

.voice-timer {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.voice-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.voice-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.voice-btn.mic-on {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.voice-btn.speaker {
    background: white;
    border: 2px solid var(--border);
    color: var(--text);
}

.voice-btn.speaker.muted {
    background: linear-gradient(135deg, var(--error), #e03131);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(250, 56, 62, 0.3);
}

.voice-btn:active {
    transform: scale(0.98);
}

/* 音量可视化 */
.volume-visualization {
    margin-top: 16px;
}

.volume-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #764ba2);
    border-radius: 3px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* 连接状态详细 */
.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--bg);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 13px;
    border: 1px solid var(--border);
}

.connection-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.connection-dot.connected {
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
}

.connection-dot.disconnected {
    background: var(--error);
}

.ping-badge {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
}

.ping-badge.good {
    background: rgba(49, 162, 76, 0.15);
    color: var(--success);
    border: 1px solid rgba(49, 162, 76, 0.3);
}

.ping-badge.normal {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.ping-badge.poor {
    background: rgba(250, 56, 62, 0.15);
    color: var(--error);
    border: 1px solid rgba(250, 56, 62, 0.3);
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading h1 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.6s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin: 24px auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 24px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid transparent;
    backdrop-filter: blur(10px);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.success span:first-child {
    color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.error span:first-child {
    color: var(--error);
}

.notification.info {
    border-left-color: var(--primary);
}

.notification.info span:first-child {
    color: var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片预览模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 重连提示 */
.reconnect-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--error), #e03131);
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(250, 56, 62, 0.4);
    z-index: 1000;
    animation: slideUp 0.4s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    #app {
        margin: 8px;
    }
    
    .card {
        padding: 20px;
        border-radius: 24px;
    }
    
    .user-id-display {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .messages {
        height: 250px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-image {
        max-width: 150px;
    }
    
    .voice-buttons {
        flex-direction: column;
    }
    
    .voice-timer {
        font-size: 16px;
        padding: 4px 12px;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 13px;
    }
    
    .room-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .connection-badge {
        align-self: flex-start;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --card: #2d2d2d;
        --text: #e4e6eb;
        --text-light: #b0b3b8;
        --border: #3e4042;
    }
    
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .input-wrapper {
        background: #3a3b3c;
    }
    
    .input-wrapper input {
        color: var(--text);
    }
    
    .online-users, .voice-controls, .connection-status, .connection-status-mini {
        background: #242526;
    }
    
    .user-item {
        background: #3a3b3c;
    }
    
    .message.other {
        background: #3a3b3c;
        border-color: #4e4f50;
    }
    
    .action-btn {
        background: #3a3b3c;
        border-color: #4e4f50;
        color: var(--text);
    }
    
    .emoji-btn:hover {
        background: #4e4f50;
    }
    
    .notification {
        background: #2d2d2d;
        color: var(--text);
    }
    
    .voice-btn.speaker {
        background: #3a3b3c;
        border-color: #4e4f50;
        color: var(--text);
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}