/* Vuexy Pro - 高级增强样式 */

/* ====== 高级卡片系统 ====== */
.card-elevated {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card-elevated:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.card-glass:hover::before {
    left: 100%;
}

.card-gradient {
    background: linear-gradient(135deg, var(--theme-gradient));
    color: white;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.card-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card-gradient:hover::after {
    opacity: 1;
}

/* ====== 高级按钮系统 ====== */
.btn-primary {
    background: var(--theme-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 144, 255, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--theme-color);
    color: white;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ====== 高级进度指示器 ====== */
.progress-container {
    background: rgba(26, 144, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 8px;
    position: relative;
}

.progress-bar-gradient {
    height: 100%;
    background: linear-gradient(90deg, #1a90ff, #6a11cb);
    border-radius: var(--radius-lg);
    position: relative;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-bar-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    border-radius: var(--radius-lg);
}

/* ====== 高级表格样式 ====== */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-modern th {
    background: linear-gradient(135deg, rgba(26, 144, 255, 0.1), rgba(106, 17, 203, 0.1));
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table-modern td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.table-modern tbody tr:hover td {
    background: rgba(26, 144, 255, 0.05);
}

/* ====== 高级输入框样式 ====== */
.input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.input-modern:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(26, 144, 255, 0.1);
}

.input-modern::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ====== 高级标签样式 ====== */
.tag-gradient {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--theme-gradient);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
}

.tag-outline {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: transparent;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ====== 高级徽章样式 ====== */
.badge-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--theme-gradient);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--theme-gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* ====== 高级分割线 ====== */
.divider-gradient {
    height: 2px;
    background: var(--theme-gradient);
    border: none;
    margin: 24px 0;
    opacity: 0.5;
}

.divider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.divider-dots::before,
.divider-dots::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-dots span {
    margin: 0 12px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ====== 高级图标容器 ====== */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(26, 144, 255, 0.1), rgba(106, 17, 203, 0.1));
    border-radius: var(--radius-md);
    color: var(--theme-color);
    transition: all var(--transition-normal);
}

.icon-wrapper:hover {
    background: var(--theme-gradient);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

/* ====== 高级折叠面板 ====== */
.accordion-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background: rgba(26, 144, 255, 0.05);
}

.accordion-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.accordion-modern.active .accordion-content {
    padding: 16px;
    max-height: 500px;
}

/* ====== 高级提示框 ====== */
.toast-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9));
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 160, 0, 0.9));
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9));
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ====== 高级空状态 ====== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state-description {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ====== 响应式断点 ====== */
@media (max-width: 768px) {
    .card-elevated,
    .card-glass,
    .card-gradient {
        border-radius: var(--radius-md);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-glass {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 12px;
    }
}

/* ====== 暗黑模式变量 ====== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

[data-theme="glass"] {
    --bg-primary: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* ====== 自定义滚动条 ====== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a90ff, #6a11cb);
}

/* ====== 文本渐变效果 ====== */
.text-gradient {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== 边框渐变效果 ====== */
.border-gradient {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--theme-gradient);
    border-radius: var(--radius-lg);
    z-index: -1;
}