/**
 * 现代化简洁主题样式
 * 纯色设计 - 简洁大气
 */

/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #409EFF;
    --success-color: #67C23A;
    --warning-color: #E6A23C;
    --danger-color: #F56C6C;
    --info-color: #909399;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.1);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* ==================== 全局优化 ==================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==================== 按钮样式 ==================== */
.layui-btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: none;
}

.layui-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.layui-btn:active {
    transform: translateY(0);
}

.layui-btn-primary {
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
}

.layui-btn-normal {
    background-color: var(--primary-color);
}

.layui-bg-blue {
    background-color: var(--primary-color) !important;
}

.layui-bg-orange {
    background-color: var(--warning-color) !important;
}

/* ==================== 卡片样式 ==================== */
.layui-card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    background: #fff;
    transition: all 0.3s ease;
}

.layui-card:hover {
    box-shadow: var(--shadow-md);
}

.layui-card-header {
    font-weight: 600;
    font-size: 15px;
    color: #303133;
    border-bottom: 1px solid #ebeef5;
    padding: 16px 20px;
    background: #fafbfc;
}

/* ==================== 表格样式 ==================== */
.layui-table-view {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: none;
    overflow: hidden;
}

.layui-table-header thead tr {
    background-color: #f5f7fa;
}

.layui-table-header thead tr th {
    font-weight: 600;
    color: #606266;
    border-bottom: 2px solid #ebeef5;
}

.layui-table-body tbody tr {
    transition: background-color 0.2s ease;
}

.layui-table-body tbody tr:hover {
    background-color: #f5f7fa;
}

.layui-table td,
.layui-table th {
    border-bottom: 1px solid #ebeef5;
}

/* ==================== 表单样式 ==================== */
.layui-input,
.layui-textarea,
.layui-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid #dcdfe6;
    transition: all 0.2s ease;
    padding: 9px 15px;
}

.layui-input:hover,
.layui-textarea:hover,
.layui-select:hover {
    border-color: #c0c4cc;
}

.layui-input:focus,
.layui-textarea:focus,
.layui-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.layui-form-label {
    font-weight: 500;
    color: #606266;
}

/* ==================== 弹窗样式 ==================== */
.layui-layer {
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: none !important;
}

.layui-layer-title {
    font-weight: 600;
    color: #303133;
    border-bottom: 1px solid #ebeef5 !important;
    background: #fafbfc !important;
}

/* ==================== 消息提示 ==================== */
.layui-layer-dialog .layui-layer-content {
    padding: 20px;
    font-size: 14px;
}

/* ==================== 标签样式 ==================== */
.layui-badge-rim {
    border-radius: var(--border-radius-sm);
    padding: 4px 10px;
    font-weight: 500;
}

/* ==================== 分页样式 ==================== */
.layui-laypage a,
.layui-laypage span {
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.layui-laypage a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

/* ==================== 选项卡样式 ==================== */
.layui-tab-brief > .layui-tab-title .layui-this {
    color: var(--primary-color);
}

.layui-tab-brief > .layui-tab-title .layui-this:after {
    border-bottom: 2px solid var(--primary-color);
}

/* ==================== 工具栏优化 ==================== */
.layui-btn-container .layui-btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ==================== 统计卡片 ==================== */
.stat-card {
    padding: 20px;
    border-radius: var(--border-radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .label {
    color: #909399;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-card .value {
    color: #303133;
    font-size: 28px;
    font-weight: 600;
}

/* ==================== 操作按钮组 ==================== */
.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-btns .layui-btn {
    margin: 0;
    padding: 0 12px;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #909399;
}

.empty-state i {
    font-size: 64px;
    color: #dcdfe6;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
    margin-top: 8px;
}

/* ==================== 加载动画 ==================== */
.layui-loading {
    color: var(--primary-color);
}

/* ==================== 响应式优化 ==================== */
@media screen and (max-width: 768px) {
    .layui-card {
        border-radius: var(--border-radius-md);
    }
    
    .layui-btn {
        padding: 0 12px;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==================== 辅助类 ==================== */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-white { background: #fff; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
