/* 全局样式和CSS变量 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* Tailwind CSS兼容样式 */
/* 确保自定义样式与Tailwind样式兼容 */
.bg-primary {
    background-color: #667eea !important;
}

.text-primary {
    color: #667eea !important;
}

.bg-secondary {
    background-color: #8b5cf6 !important;
}

.text-secondary {
    color: #8b5cf6 !important;
}

.bg-tertiary {
    background-color: #ec4899 !important;
}

.text-tertiary {
    color: #ec4899 !important;
}

.bg-success {
    background-color: #10b981 !important;
}

.text-success {
    color: #10b981 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.text-warning {
    color: #f59e0b !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.bg-info {
    background-color: #3b82f6 !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-text-primary {
    color: #1f2937 !important;
}

.text-text-secondary {
    color: #6b7280 !important;
}

.border-border-light {
    border-color: #e5e7eb !important;
}

/* 确保Font Awesome图标正确显示 */
.fas,
.far,
.fab {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* 阴影样式 */
.shadow-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shadow-login {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 开关组件样式 */
.peer:checked + div {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
}

.peer:focus + div {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

/* 卡片样式 */
.cardHover {
    transition: all 0.3s ease;
}

.cardHover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btnPrimaryHover {
    transition: all 0.2s ease;
}

.btnPrimaryHover:hover {
    background-color: #5a67d8;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btnPrimaryActive {
    transition: all 0.1s ease;
}

.btnPrimaryActive:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* 输入框样式 */
.formInputFocus {
    transition: all 0.2s ease;
}

.formInputFocus:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 表格行样式 */
.table-row {
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: #f9fafb;
}

/* 进度条样式 */
.progressBar {
    background-color: #667eea;
    transition: width 0.3s ease;
}

/* 页面包装器 */
.pageWrapper {
    background-color: #f9fafb;
    min-height: 100vh;
}

/* 淡入动画 */
.fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 侧边栏过渡效果 */
.sidebarTransition {
    transition: width 0.3s ease;
}

/* 导航项样式 */
.navItem {
    transition: all 0.2s ease;
}

.navItem:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.navItemActive {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 标签页样式 */
.tab-active {
    background-color: #667eea !important;
    color: white !important;
}

.tab-inactive {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    transition: all 0.2s ease;
}

.tab-inactive:hover {
    background-color: #e5e7eb !important;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .pageWrapper {
        padding: 0;
    }
}

/* 隐藏类 */
.hidden {
    display: none;
}
