/* ==========================================================================
   麦克风权限请求弹窗
   ========================================================================== */
.mic-permission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.mic-permission-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

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

.mic-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.mic-permission-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
}

.mic-permission-card p {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Crisis Intervention Modal Styles
   ========================================================================== */

.crisis-modal {
    background: rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(12px);
}

.crisis-content {
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
}

.crisis-header {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(239, 68, 68, 0.05));
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.crisis-header h2 {
    color: #DC2626;
    font-weight: 700;
}

.crisis-body {
    padding: 24px;
}

.crisis-message {
    background: rgba(254, 242, 242, 0.8);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.crisis-message p {
    margin: 0;
    color: #7F1D1D;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

.crisis-resources h3 {
    color: #DC2626;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.hotline-item {
    background: #FFFFFF;
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.hotline-info {
    flex: 1;
}

.hotline-info h4 {
    margin: 0 0 8px 0;
    color: #1F2937;
    font-size: 1rem;
    font-weight: 600;
}

.hotline-number {
    margin: 4px 0;
    color: #DC2626;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.hotline-time {
    margin: 4px 0 0 0;
    color: #6B7280;
    font-size: 0.9rem;
}

.hotline-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-call, .btn-copy {
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-call:hover, .btn-copy:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-copy {
    background: #6B7280;
}

.btn-copy:hover {
    background: #4B5563;
}

.online-resources {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
}

.online-resources h4 {
    color: #1F2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-link {
    color: #6366F1;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.05);
    transition: all 0.2s ease;
}

.resource-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #4F46E5;
    transform: translateX(4px);
}

.crisis-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
    text-align: center;
}

.crisis-note {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 20px 0;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.5;
}

.crisis-footer .btn-primary {
    background: #059669;
    min-width: 120px;
}

.crisis-footer .btn-primary:hover {
    background: #047857;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .hotline-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .hotline-actions {
        justify-content: center;
        margin-top: 12px;
    }
    
    .btn-call, .btn-copy {
        flex: 1;
    }
}

/* ==========================================================================
   麦克风静音按钮
   ========================================================================== */
.btn-icon.muted {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #EF4444 !important;
}

.btn-icon.muted:hover {
    background: rgba(239, 68, 68, 0.25) !important;
}

/* 视频开启状态 */
.btn-icon.active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10B981 !important;
}

.btn-icon.active:hover {
    background: rgba(16, 185, 129, 0.25) !important;
}
