/* 
 * 高级主题配色CSS文件
 * 现代无边框设计 + 高级配色方案
 */

/* ===== 高级配色变量定义 ===== */
:root {
    /* 主色调 - 灰色系 */
    --primary-100: #64748b;
    --primary-200: #475569;
    --primary-300: #334155;
    
    /* 强调色 - 灰色渐变 */
    --accent-100: #64748b;
    --accent-200: #475569;
    --accent-gradient: linear-gradient(135deg, #64748b 0%, #475569 100%);
    
    /* 文字颜色 */
    --text-50:#64787f;
    --text-100: #1a202c;
    --text-200: #4a5568;
    --text-300: #718096;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-100: #ffffff;
    --bg-200: #f7fafc;
    --bg-300: #edf2f7;
    --bg-dark: #2d3748;
    
    /* 阴影系统 */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 15px -3px rgba(100, 116, 139, 0.3), 0 4px 6px -2px rgba(100, 116, 139, 0.15);
    
    /* 辅助颜色 */
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    --info-color: var(--primary-100);
}

/* ===== 页面整体样式 ===== */
body {
    background: var(--bg-200);
    color: var(--text-100);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== 卡片组件样式 ===== */
.layui-card {
    background: var(--bg-100);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.layui-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.layui-card-header {
    background: var(--bg-100);
    border-bottom: none;
    padding: 24px 24px 0 24px;
}

.layui-card-header h3,
.layui-card-header h4 {
    color: var(--text-50);
    font-weight: 600;
    margin: 0;
}

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

/* ===== 按钮样式 ===== */
.layui-btn-normal {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-white);
    border-radius: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layui-btn-normal:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
    color: var(--text-white);
}

.layui-btn-primary {
    background: transparent;
    border: 2px solid var(--primary-100);
    color: var(--primary-100);
    border-radius: 12px;
    font-weight: 500;
}

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

/* ===== 徽章样式 ===== */
.layui-badge {
    background: var(--accent-gradient);
    color: var(--text-white);
    border-radius: 20px;
    font-weight: 500;
}

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

.layui-bg-green {
    background: var(--success-color) !important;
}

.layui-bg-orange {
    background: var(--warning-color) !important;
}

/* ===== 表单样式 ===== */
.layui-input,
.layui-textarea,
.layui-select {
    background: var(--bg-100);
    border: 1px solid var(--bg-300);
    color: var(--text-100);
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* ===== 文本颜色 ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-100);
    font-weight: 600;
}

p {
    color: #d1d2d5;
    line-height: 1.6;
}

/* ===== 产品卡片样式 ===== */
.product-card {
    background: var(--bg-100);
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.thumb-placeholder {
    color: var(--text-300);
    background: var(--bg-300);
}

.category-badge {
    background: var(--accent-gradient);
    color: var(--text-white);
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.product-title {
    color: var(--text-100);
    font-weight: 600;
}

.product-desc {
    color: var(--text-200);
}

.stats-info {
    color: var(--text-300);
}

.download-btn {
    background: var(--accent-gradient);
    color: var(--text-white);
    border: none;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.download-btn:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
    color: var(--text-white);
    text-decoration: none;
}

/* ===== 分页样式 ===== */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ===== 折叠面板样式 ===== */
.layui-colla-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.layui-colla-title {
    color: var(--text-100) !important;
    background: var(--bg-100) !important;
    font-weight: 600;
    padding: 20px 24px;
}

.layui-colla-content {
    background: var(--bg-100) !important;
    color: var(--text-200);
    padding: 0 24px 20px 24px;
}

.layui-colla-active .layui-colla-title {
    background: var(--bg-100) !important;
    color: var(--primary-100) !important;
}

/* ===== 代码样式 ===== */
code {
    background: var(--bg-300);
    color: var(--text-100);
    padding: 4px 8px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

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

.empty-state i {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    color: var(--warning-color);
}

.empty-state h3 {
    color: var(--text-200);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-300);
}

/* ===== 分类筛选样式 ===== */
.filter-tag {
    background: var(--bg-100);
    border: none;
    border-radius: 25px;
    color: var(--text-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.filter-tag:hover {
    background: var(--bg-100);
    color: var(--primary-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.filter-tag.active {
    background: var(--accent-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.tag-count {
    background: rgba(100, 116, 139, 0.1);
    color: var(--primary-100);
    border-radius: 12px;
}

.filter-tag.active .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* ===== 搜索样式 ===== */
.search-tips {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-200);
}

.search-tips i {
    font-size: 64px;
    color: var(--primary-100);
    display: block;
    margin-bottom: 20px;
}

.search-tips h3 {
    color: var(--text-100);
    margin: 0 0 20px 0;
    font-weight: 600;
}

.search-tips li {
    color: var(--text-200);
}

.search-tips li:before {
    color: var(--primary-100);
}

/* ===== 关键词高亮 ===== */
mark {
    background: linear-gradient(120deg, rgba(100, 116, 139, 0.2) 0%, rgba(71, 85, 105, 0.2) 100%);
    color: var(--primary-200);
    padding: 2px 4px;
    border-radius: 4px;
}

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

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

.bg-primary {
    background: var(--accent-gradient) !important;
}

.bg-secondary {
    background: var(--bg-200) !important;
}

.gradient-bg {
    background: var(--accent-gradient);
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .layui-card-body {
        padding: 16px;
    }
    
    .layui-card-header {
        padding: 16px 16px 0 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

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

/* ===== 动画效果 ===== */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { 
        transform: translateY(30px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--bg-300);
    border-radius: 50%;
    border-top-color: var(--primary-100);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 特殊效果 ===== */
.glow-effect {
    box-shadow: 0 0 20px rgba(100, 116, 139, 0.3);
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(100, 116, 139, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 116, 139, 0);
    }
} 