/* PC端辩论页面样式 */
.meeting-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 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, #e74c3c 0%, #c0392b 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(231, 76, 60, 0.1);
}

.meeting-info h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #e74c3c;
    font-weight: 600;
}

.meeting-status {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    color: #666;
}

.meeting-status span {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    font-weight: 500;
}

/* 辩论者容器 - 分左右两阵营 */
.participants-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin: 25px 0;
    padding: 25px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(231, 76, 60, 0.1);
    align-items: center;
}

.proponent-side, .opponent-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.side-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.proponent-side .side-title {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.opponent-side .side-title {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.side-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-size: 2rem;
    font-weight: 800;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.proponent-participant .participant-avatar {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.opponent-participant .participant-avatar {
    border-color: #e67e22;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.participant.active .participant-avatar {
    box-shadow: 0 0 25px rgba(231, 76, 60, 0.5);
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.proponent-participant .participant-badge {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.opponent-participant .participant-badge {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.participant-name {
    margin-top: 12px;
    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 {
    align-self: flex-start;
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proponent-participant .message-participant {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
}

.opponent-participant .message-participant {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(211, 84, 0, 0.1) 100%);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-left: 4px solid #e67e22;
}

.message-system {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 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(46, 204, 113, 0.15) 0%, rgba(39, 174, 96, 0.15) 100%);
    border: 1px solid rgba(46, 204, 113, 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;
    font-size: 1rem;
}

.proponent-participant .message-name {
    color: #3498db;
}

.opponent-participant .message-name {
    color: #e67e22;
}

/* 控制按钮区域 */
.meeting-controls-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 主要按钮样式 */
.primary-button {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.primary-button:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(189, 195, 199, 0.3);
}

/* 控制按钮样式 */
.control-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

.control-button:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(189, 195, 199, 0.3);
}

/* 危险按钮样式 */
.danger-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.danger-button:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(189, 195, 199, 0.3);
}

/* 设置面板样式 */
.settings-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.settings-panel.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.settings-content {
    padding: 30px;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.setting-item input, .setting-item select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.setting-item input:focus, .setting-item select:focus {
    outline: none;
    border-color: #e74c3c;
    background: white;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.1);
}

/* 角色按钮区域 */
.role-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.add-role-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.add-role-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.add-role-btn.opponent-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.add-role-btn.opponent-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #ba4a00 100%);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* 保存设置按钮 */
.save-settings-button {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    margin-top: 30px;
}

.save-settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* 已选角色显示 */
.selected-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 50px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

.selected-role {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.selected-role:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selected-role.proponent-role {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
}

.selected-role.opponent-role {
    border-color: #e67e22;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(211, 84, 0, 0.1) 100%);
}

.selected-role img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.selected-role span {
    font-size: 0.9rem;
    font-weight: 500;
}

.role-type-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.remove-role {
    background: #e74c3c;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.remove-role:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.role-card:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

.role-card.selected {
    border-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.role-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
}

.role-card.selected img {
    border-color: #e74c3c;
}

.role-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .meeting-controls-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px 15px;
    }
    
    .primary-button, .control-button, .danger-button {
        min-width: auto;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .role-buttons {
        flex-direction: column;
    }
}