body {
    background-color: #f5f6fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
    width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.login-card h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}
.login-logo i {
    font-size: 48px;
    color: #667eea;
}

/* 统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s;
    border-left: 4px solid;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-card .stat-icon {
    font-size: 32px;
    opacity: 0.2;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}
.stat-card .stat-label {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}
.stat-card.primary { border-left-color: #667eea; }
.stat-card.success { border-left-color: #2ecc71; }
.stat-card.warning { border-left-color: #f39c12; }
.stat-card.info { border-left-color: #3498db; }

/* 快捷入口 */
.quick-entry {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.quick-entry .entry-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    display: block;
}
.quick-entry .entry-item:hover {
    background: #f0f3ff;
    transform: translateY(-2px);
}
.quick-entry .entry-item i {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 8px;
}
.quick-entry .entry-item span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

/* 内容面板 */
.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.content-card .card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    font-weight: 600;
}
.content-card .card-body {
    padding: 20px;
}

/* 表格操作栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* 模态框 */
.modal-custom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-custom-overlay.active {
    display: flex;
}
.modal-custom {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.2s;
}
.modal-custom-lg {
    max-width: 700px;
}
.modal-custom-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-custom-header h5 {
    margin: 0;
    font-weight: 600;
}
.modal-custom-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}
.modal-custom-header .close-btn:hover {
    color: #333;
}
.modal-custom-body {
    padding: 20px;
}
.modal-custom-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* POS 收银界面 */
.pos-container {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 80px);
}
.pos-left {
    flex: 1;
    max-width: 65%;
}
.pos-right {
    width: 35%;
    min-width: 350px;
}
.pos-member-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}
.pos-member-card .member-name {
    font-size: 20px;
    font-weight: 600;
}
.pos-member-card .member-phone {
    opacity: 0.8;
    font-size: 14px;
}
.pos-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.pos-service-item {
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.pos-service-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}
.pos-service-item.active {
    border-color: #667eea;
    background: #f0f3ff;
}
.pos-service-item .service-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}
.pos-service-item .service-price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: 700;
}
.pos-cart {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pos-cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 16px;
}
.pos-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    max-height: 350px;
}
.pos-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.pos-cart-item .item-info {
    flex: 1;
}
.pos-cart-item .item-name {
    font-weight: 500;
}
.pos-cart-item .item-employee {
    font-size: 12px;
    color: #999;
}
.pos-cart-item .item-price {
    font-weight: 600;
    color: #e74c3c;
}
.pos-cart-item .item-remove {
    color: #ccc;
    cursor: pointer;
    margin-left: 10px;
}
.pos-cart-item .item-remove:hover {
    color: #e74c3c;
}
.pos-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}
.pos-cart-footer .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pos-cart-footer .total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.inactive { background: #f8d7da; color: #721c24; }
.status-badge.normal { background: #d4edda; color: #155724; }
.status-badge.canceled { background: #f8d7da; color: #721c24; }

/* 分页 */
.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .pos-container {
        flex-direction: column;
    }
    .pos-left, .pos-right {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
    .pos-right {
        min-width: auto;
    }
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
    .stat-card .stat-value {
        font-size: 22px;
    }
}
