/* 全局样式 */
body {
    background-color: #f8f9fa;
    color: #343a40;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* 页脚样式 */
.footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #dee2e6;
}

/* 表格样式 */
.table {
    background-color: #fff;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
}

/* 商品卡片 */
.item-card {
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 加载动画 */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* 价格文本颜色 */
.price-up {
    color: #e74c3c;
}

.price-down {
    color: #2ecc71;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 按钮样式 */
.btn {
    border-radius: 0.25rem;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
}

/* 商品卡片 */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    padding: 10px;
    background-color: #f8f9fa;
}

/* 新上架标识 */
.badge.bg-danger {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 5px 8px;
    z-index: 10;
}