/* 发卡商城系统自定义样式 */

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 导航栏样式 */
.layui-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.layui-logo {
    background: transparent !important;
}

/* 卡片样式 */
.layui-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
}

.layui-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

/* 按钮样式 */
.layui-btn {
    border-radius: 4px;
}

.layui-btn-lg {
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
    font-size: 16px;
}

/* 按钮样式 */
.layui-btn {
    font-size: 12px !important;
    height: 32px !important;
    line-height: 30px !important;
    padding: 0 15px !important;
}

.layui-btn-lg {
    height: 36px !important;
    line-height: 34px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
}

.layui-btn-normal {
    background-color: #1890ff !important;
    border-color: #1890ff !important;
}

.layui-btn-normal:hover {
    background-color: #40a9ff !important;
    border-color: #40a9ff !important;
}

.layui-btn-primary {
    border-color: #d9d9d9 !important;
    color: #666 !important;
}

.layui-btn-primary:hover {
    background-color: #f5f5f5 !important;
    border-color: #d9d9d9 !important;
    color: #666 !important;
}

/* 表单样式 */
.layui-input, .layui-textarea {
    border-radius: 4px;
    border: 1px solid #ddd;
}

.layui-input:focus, .layui-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 表格样式 */
.layui-table {
    border-radius: 8px;
    overflow: hidden;
}

.layui-table thead tr {
    background: #f8f9fa;
}

/* 分页样式 */
.layui-laypage {
    text-align: center;
    margin-top: 20px;
}

/* 侧边栏样式 */
.layui-side {
    background: #2f4050 !important;
}

.layui-nav-tree .layui-nav-item a {
    color: #a7b1c2;
}

.layui-nav-tree .layui-nav-item a:hover {
    background: #3e4e5c;
}

.layui-nav-tree .layui-this a {
    background: #007bff !important;
}

/* 统计卡片样式 */
.stats-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
}

/* 商品卡片样式 */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: bold;
}

.product-merchant {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* 商户卡片样式 */
.merchant-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.merchant-card:hover {
    transform: translateY(-5px);
}

.merchant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #007bff;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* 登录注册页面样式 */
.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.auth-body {
    padding: 40px;
}

.auth-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-container {
        padding: 0 15px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .merchant-card {
        margin-bottom: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 状态标签样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #e2e3e5;
    color: #383d41;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}
