/**
 * 公共样式文件
 * 多用户多企业网店记账系统
 */

/* 登录页面样式 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.login-header p {
    color: #999;
    font-size: 14px;
}

.login-form .layui-form-item {
    margin-bottom: 20px;
}

.login-form .layui-input {
    height: 44px;
    line-height: 44px;
    padding-left: 40px;
}

.login-form .layui-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 18px;
    color: #999;
}

.login-form .layui-btn {
    height: 44px;
    line-height: 44px;
    font-size: 16px;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #666;
    font-size: 14px;
}

.login-links a:hover {
    color: #1E9FFF;
}

/* 卡片样式 */
.stat-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.stat-card .stat-icon.income {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.stat-card .stat-icon.expense {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.stat-card .stat-icon.profit {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.stat-card .stat-icon.order {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.stat-card .stat-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.stat-card .stat-value.income {
    color: #10B981;
}

.stat-card .stat-value.expense {
    color: #EF4444;
}

/* 页面标题 */
.page-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.page-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.page-header .breadcrumb {
    margin-top: 8px;
    font-size: 13px;
}

/* 搜索区域 */
.search-form {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 表格区域 */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

/* 表单区域 */
.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    max-width: 800px;
}

/* 图表容器 */
.chart-container {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.chart-container .chart-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 快捷入口 */
.quick-entry {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-entry:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.quick-entry i {
    font-size: 36px;
    color: #1E9FFF;
    margin-bottom: 10px;
}

.quick-entry p {
    color: #666;
    font-size: 14px;
}

/* 文字颜色 */
.text-success {
    color: #10B981 !important;
}

.text-danger {
    color: #EF4444 !important;
}

.text-warning {
    color: #F59E0B !important;
}

.text-primary {
    color: #1E9FFF !important;
}

/* 标签样式 */
.tag-income {
    background: #D1FAE5;
    color: #059669;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tag-expense {
    background: #FEE2E2;
    color: #DC2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 最近记录列表 */
.recent-list {
    background: #fff;
    border-radius: 4px;
}

.recent-list .list-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-list .list-header h4 {
    margin: 0;
    font-size: 16px;
}

.recent-list .list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-list .list-item:last-child {
    border-bottom: none;
}

.recent-list .item-info {
    flex: 1;
}

.recent-list .item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.recent-list .item-meta {
    font-size: 12px;
    color: #999;
}

.recent-list .item-amount {
    font-size: 16px;
    font-weight: bold;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state p {
    color: #999;
    font-size: 14px;
}
