/* 剪映草稿分布式导出系统 - 自定义样式 */

:root {
    --apple-blue: #007AFF;
    --apple-green: #34C759;
    --apple-orange: #FF9500;
    --apple-red: #FF3B30;
    --apple-purple: #AF52DE;
    --apple-gray: #8E8E93;
    --apple-gray-light: #F2F2F7;
    --apple-gray-dark: #1C1C1E;
    --apple-background: #FAFAFA;
    --apple-card-bg: rgba(255, 255, 255, 0.8);
    --apple-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --apple-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.container-fluid {
    backdrop-filter: blur(10px);
}

.card {
    background: var(--apple-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--apple-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--apple-shadow-hover);
}

.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-purple));
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card .fs-2 {
    font-size: 2.5rem !important;
    opacity: 0.8;
}

.card-header {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #5856D6 100%);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--apple-blue);
    color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.1);
}

.btn-outline-primary:hover {
    background: var(--apple-blue);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--apple-orange) 0%, #FF6B35 100%);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.btn-outline-warning {
    border: 2px solid var(--apple-orange);
    color: var(--apple-orange);
    background: rgba(255, 149, 0, 0.1);
}

.form-select, .form-control {
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
}

.table {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.table thead th {
    background: rgba(255, 255, 255, 0.8) !important;
    border: none;
    font-weight: 600;
    color: var(--apple-gray-dark);
    padding: 1rem;
}

.table-responsive {
    overflow-x: hidden !important;
}

.task-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-row:hover {
    background: rgba(0, 122, 255, 0.1) !important;
    /* 移除缩放效果，避免产生横向滚动条 */
}

.task-row td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.badge {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.status-badge {
    font-size: 0.75rem;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
}

.consumer-online {
    color: var(--apple-green);
}

.consumer-offline {
    color: var(--apple-red);
}

.consumer-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.consumer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.auto-refresh {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: var(--apple-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: var(--apple-blue);
    border-color: var(--apple-blue);
}

.modal-content {
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    padding: 1.5rem;
}

.spinner-border {
    color: var(--apple-blue);
}

.text-primary {
    color: var(--apple-blue) !important;
}

.text-success {
    color: var(--apple-green) !important;
}

.text-warning {
    color: var(--apple-orange) !important;
}

.text-danger {
    color: var(--apple-red) !important;
}

.text-info {
    color: var(--apple-purple) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--apple-gray-dark);
}

.h4 {
    font-size: 2rem;
    font-weight: 300;
}

code {
    background: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue);
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

/* 毛玻璃效果增强 */
@supports (backdrop-filter: blur(20px)) {
    .card, .modal-content, .auto-refresh {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stats-card .card-body {
        padding: 1rem;
    }
    
    .auto-refresh {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }
.stats-card:nth-child(4) { animation-delay: 0.4s; }