/* 主样式 */
body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

/* 所有面包屑样式 */
.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}
.breadcrumb-item a:visited {
    color: #6c757d;
}
.breadcrumb-item a:hover {
    color: #6c757d;
    font-weight: bold;
}

.card-header {
    background: #f05a28;
}

/* 产品卡片 */
.product-card {
    transition: transform 0.3s;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 购物车 */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

/* 购物车徽章样式 */
#cart-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    min-width: 1.5em;
    height: 1.5em;
}

/* 心愿清单徽章样式 */
#wishlist-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    min-width: 1.5em;
    height: 1.5em;
}

/* 购物车链接悬停效果 */
.nav-link[href*="cart"] {
    transition: all 0.3s ease;
}

.nav-link[href*="cart"]:hover {
    transform: translateY(-2px);
}

/* 全局通知样式 */
.global-toast {
    min-width: 250px;
    max-width: 400px;
}

/* 产品卡片按钮动画 */
.add-to-cart {
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 仪表盘 */
.dashboard-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-primary {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
}

.card-success {
    background: linear-gradient(45deg, #1cc88a, #13855c);
    color: white;
}

.card-warning {
    background: linear-gradient(45deg, #f6c23e, #dda20a);
    color: white;
}

/* 响应式表格 */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* 表单样式 */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 按钮样式 */
.btn-custom {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 评分输入样式 */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s;
    margin-right: 5px;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.rating-input input:checked + label:hover,
.rating-input input:checked ~ label:hover,
.rating-input label:hover ~ input:checked ~ label,
.rating-input input:checked ~ label:hover ~ label {
    color: #ffc107;
}

/* 评论项样式 */
.review-item {
    transition: all 0.3s;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 图片预览 */
.image-preview {
    position: relative;
}

.image-preview img {
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.image-preview img:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* 批量上传区域 */
.batch-upload-area {
    transition: all 0.3s;
}

.batch-upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.batch-upload-area.dragover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

/* 管理表格样式 */
.reviews-table tbody tr {
    transition: background-color 0.2s;
}

.reviews-table tbody tr:hover {
    background-color: #f8f9fa;
}

.review-images {
    object-fit: cover;
    border-radius: 4px;
}

.action-buttons .btn {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.action-buttons .btn:hover {
    opacity: 1;
}

/* 筛选卡片 */
.filter-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* blog响应式图片和预览样式 */
/* 响应式图片容器 */
.responsive-cover {
    position: relative;
    overflow: hidden;
}

.responsive-cover img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.responsive-cover:hover img {
    transform: scale(1.05);
}

/* 移动端预览模拟 */
.mobile-preview {
    width: 300px;
    height: 600px;
    border: 12px solid #333;
    border-radius: 30px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #000;
}

.mobile-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #666;
    border-radius: 2px;
    z-index: 10;
}

.mobile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PC端预览模拟 */
.pc-preview {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.pc-preview img {
    width: 100%;
    height: auto;
}

/* 清除按钮样式 */
.clear-checkbox .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.clear-checkbox .form-check-label {
    color: #dc3545;
    font-weight: 500;
}

/* 表单提示样式 */
.form-text.hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 设备标签样式 */
.device-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-preview {
        width: 250px;
        height: 500px;
        border-radius: 25px;
    }

    .pc-preview {
        border: none;
        border-radius: 0;
    }
    #cart-badge {
    left: 18% !important;
}
}