/* PC端会议页面样式 */
.meeting-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 会议头部样式 */
.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 70px;
}

.meeting-header h1 {
    margin: 0;
    font-size: 1.8rem;
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.back-button, .settings-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.settings-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.back-button:hover, .settings-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 会议舞台区域 */
.meeting-stage {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.meeting-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(106, 17, 203, 0.1);
}

.meeting-info h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #6a11cb;
    font-weight: 600;
}

.meeting-status {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    color: #666;
}

.meeting-status span {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(106, 17, 203, 0.2);
    font-weight: 500;
}

/* 参会者容器 */
.participants-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(106, 17, 203, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(106, 17, 203, 0.1);
}

.participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.participant:hover {
    transform: translateY(-5px);
}

.participant.active {
    transform: scale(1.15) translateY(-5px);
}

.participant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(106, 17, 203, 0.3);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.participant.active .participant-avatar {
    border-color: #6a11cb;
    box-shadow: 0 0 20px rgba(106, 17, 203, 0.4);
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-name {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 500;
    color: #333;
}

/* 会议消息区域 */
.meeting-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    max-height: 400px;
    backdrop-filter: blur(10px);
}

.message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeInUp 0.4s ease;
    position: relative;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.message-participant {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    border: 1px solid rgba(106, 17, 203, 0.2);
    color: #333;
    align-self: flex-start;
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.1);
}

.message-system {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
    border: 1px solid rgba(255, 152, 0, 0.2);
    color: #666;
    align-self: center;
    text-align: center;
    width: 70%;
    margin: 15px auto;
    font-style: italic;
    font-weight: 500;
}

.message-user {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(139, 195, 74, 0.15) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #333;
    align-self: flex-end;
    margin-right: 20px;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: absolute;
    left: -18px;
    top: 15px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content {
    line-height: 1.6;
    font-size: 1rem;
}

.message-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #6a11cb;
    font-size: 1rem;
}

/* 会议控制栏 */
.meeting-controls-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button, .control-button, .danger-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 120px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.primary-button {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

.control-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    color: #333;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.control-button:hover {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.control-button:disabled {
    background: rgba(0, 0, 0, 0.1);
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.danger-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.danger-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.danger-button:disabled {
    background: rgba(220, 53, 69, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 会议设置面板样式 */
.settings-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1c2d 0%, #2d1f3d 100%);
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.settings-panel.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
}

.close-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.settings-content {
    padding: 25px;
    color: white;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
}

.setting-item input[type="text"],
.setting-item input[type="number"],
.setting-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus {
    outline: none;
    border-color: rgba(106, 17, 203, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #6a11cb;
}

.checkbox-group label {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.save-settings-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.save-settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

/* 角色选择样式 */
.selected-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-role {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.3);
}

.selected-role img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.selected-role .remove-role {
    background: none;
    border: none;
    color: white;
    margin-left: 8px;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.selected-role .remove-role:hover {
    background: rgba(255, 255, 255, 0.2);
}

.add-role-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.add-role-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(106, 17, 203, 0.1);
    background: rgba(106, 17, 203, 0.02);
}

.role-card:hover {
    background: rgba(106, 17, 203, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.2);
}

.role-card.selected {
    border-color: #6a11cb;
    background: rgba(106, 17, 203, 0.15);
    transform: translateY(-3px);
}

.role-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid rgba(106, 17, 203, 0.3);
}

.role-card span {
    font-size: 1rem;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* 声波动画样式 */
.sound-wave-container {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 25px;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sound-wave-container.active {
    display: flex;
}

.sound-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.sound-wave span {
    display: block;
    width: 4px;
    height: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 3px;
    animation: sound-wave 1s infinite ease-in-out;
}

.sound-wave span:nth-child(1) { animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { animation-delay: 0.4s; }
.sound-wave span:nth-child(5) { animation-delay: 0.5s; }

@keyframes sound-wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .meeting-stage {
        margin: 15px;
        padding: 25px;
    }
    
    .meeting-controls-bar {
        margin: 15px;
        padding: 15px 25px;
    }
    
    .settings-panel {
        width: 400px;
        right: -400px;
    }
}

@media (max-width: 768px) {
    .meeting-container {
        background: #f0f4f8;
    }
    
    .meeting-header {
        padding: 12px 20px;
        min-height: 60px;
    }
    
    .meeting-header h1 {
        font-size: 1.3rem;
    }
    
    .back-button, .settings-button {
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .meeting-stage {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .meeting-controls-bar {
        flex-wrap: wrap;
        margin: 10px;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .primary-button, .control-button, .danger-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .meeting-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meeting-status {
        margin-top: 15px;
        gap: 15px;
    }
    
    .participants-container {
        gap: 15px;
    }
    
    .participant {
        width: 80px;
    }
    
    .participant-avatar {
        width: 60px;
        height: 60px;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .role-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}