/* 
 * 极简主题样式 - 专注内容，减少干扰
 * 设计理念：简约、清晰、舒适
 */

/* ===== 简化变量定义 ===== */
:root {
    /* 核心色彩 */
    --primary: #64748b;
    --primary-light: #94a3b8;
    --primary-dark: #475569;
    
    /* 文字层次 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 背景层次 */
    --bg-primary: #fdfdfd;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* 简化阴影 */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
    
    /* 状态色彩 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* ===== 基础样式 ===== */
body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    font-size: 14px;
}

/* ===== 简约卡片样式 ===== */
.layui-card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.layui-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: #e2e8f0;
}

.layui-card-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--bg-tertiary);
    padding: 20px;
}

.layui-card-header h3,
.layui-card-header h4 {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    font-size: 16px;
}

.layui-card-body {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 20px;
}

/* ===== 简约按钮样式 ===== */
.layui-btn-normal {
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 4px;
    font-weight: 400;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.layui-btn-normal:hover {
    background: var(--primary-dark);
    color: white;
}

.layui-btn-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 400;
    font-size: 13px;
}

.layui-btn-primary:hover {
    background: var(--primary);
    color: white;
}

/* ===== 简化徽章样式 ===== */
.layui-badge {
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 400;
    font-size: 11px;
}

.layui-badge-rim {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

/* ===== 表单样式 ===== */
.layui-input,
.layui-textarea,
.layui-select {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.layui-input:focus,
.layui-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.1);
}

/* ===== 文字样式 ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 产品卡片样式 ===== */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: #e2e8f0;
}

.product-thumb {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.category-badge {
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 400;
    font-size: 11px;
}

.stats-info {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== 分类卡片样式 ===== */
.category-card {
    transition: box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bg-tertiary);
}

.category-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: #e2e8f0;
    text-decoration: none;
}

/* ===== 最新产品样式 ===== */
.latest-item {
    box-shadow: var(--shadow-subtle);
    border-radius: 8px;
    border: 1px solid var(--bg-tertiary);
    transition: box-shadow 0.2s ease;
}

.latest-item:hover {
    box-shadow: var(--shadow-soft);
}

/* ===== 空状态样式 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== 工具类样式 ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .layui-card-body {
        padding: 16px;
    }
    
    .layui-card-header {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .layui-col-md3 {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .layui-col-md6 {
        width: 100% !important;
        margin-bottom: 10px;
    }
}

/* ===== 加载状态 ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}