/* 通用样式 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #fff;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 12px 20px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border-bottom: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 代码样式 */
code {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid #dee2e6;
    color: #e83e8c;
}

/* 表格样式 */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 14px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 24px;
}

.modal-body .alert {
    margin-top: 1rem;
    border-radius: 8px;
    border: none;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 24px;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* 表单样式 */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    padding: 10px 14px;
    transition: all 0.3s;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* 按钮样式增强 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* 用户中心（Dashboard） */
.uc-dashboard {
    --uc-accent-a: #0ea5e9;
    --uc-accent-b: #22c55e;
    --uc-card-radius: 14px;
}

.uc-dashboard .card {
    border-radius: var(--uc-card-radius);
}

.uc-dashboard .card-header {
    background: linear-gradient(135deg, var(--uc-accent-a) 0%, var(--uc-accent-b) 100%);
}

.uc-profile-card {
    background: radial-gradient(1200px circle at 20% 0%, rgba(14, 165, 233, 0.14), transparent 45%),
                radial-gradient(1200px circle at 80% 20%, rgba(34, 197, 94, 0.14), transparent 45%),
                #ffffff;
}

.uc-profile-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.uc-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    background: #f1f5f9;
    flex: 0 0 auto;
}

.uc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uc-profile-meta .uc-name {
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
    line-height: 1.2;
}

.uc-profile-meta .uc-sub {
    font-size: 13px;
    color: #475569;
}

.uc-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.uc-badge {
    border: 1px solid rgba(2, 6, 23, 0.08);
    font-weight: 600;
}

.uc-invite {
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.03);
}

.uc-invite-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.uc-invite-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.uc-invite-code {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.uc-side-links i {
    margin-right: 10px;
    color: rgba(2, 6, 23, 0.7);
}

.uc-hero-card {
    border: none;
    background: radial-gradient(900px circle at 10% 0%, rgba(14, 165, 233, 0.18), transparent 50%),
                radial-gradient(900px circle at 90% 30%, rgba(34, 197, 94, 0.18), transparent 55%),
                linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

.uc-hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.uc-hello {
    font-weight: 900;
    font-size: 20px;
    color: #0f172a;
}

.uc-hello-sub {
    font-size: 13px;
}

.uc-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.uc-metric-card {
    border: 1px solid rgba(2, 6, 23, 0.06);
}

.uc-metric-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uc-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 20px;
    flex: 0 0 auto;
}

.uc-icon-a {
    background: rgba(14, 165, 233, 0.18);
}

.uc-icon-b {
    background: rgba(34, 197, 94, 0.18);
}

.uc-icon-c {
    background: rgba(99, 102, 241, 0.18);
}

.uc-metric-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.uc-metric-value {
    font-weight: 900;
    font-size: 20px;
    color: #0f172a;
}

.uc-metric-foot {
    margin-top: 10px;
    font-size: 12px;
}

.uc-check-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.06);
    background: rgba(255, 255, 255, 0.6);
}

.uc-check-item i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.04);
    color: rgba(2, 6, 23, 0.8);
    font-size: 18px;
}

.uc-check-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 13px;
}

.uc-check-sub {
    color: #64748b;
    font-size: 12px;
}

.uc-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.uc-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, 0.06);
    text-decoration: none;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.uc-quick-btn i {
    font-size: 18px;
    color: rgba(2, 6, 23, 0.75);
}

.uc-quick-btn span {
    font-size: 12px;
    font-weight: 700;
}

.uc-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

@media (max-width: 576px) {
    .uc-hero-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .uc-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 账户充值页 */
.recharge-page .recharge-layout {
    --recharge-primary: #0d6efd;
}

.recharge-page .recharge-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(90deg, #1e90ff 0%, #0d6efd 100%);
    box-shadow: 0 10px 26px rgba(13, 110, 253, 0.20);
    margin-bottom: 12px;
}

.recharge-page .recharge-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.recharge-page .recharge-breadcrumb a:hover {
    text-decoration: underline;
}

.recharge-page .recharge-breadcrumb .sep {
    opacity: 0.85;
}

.recharge-page .recharge-side-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.recharge-page .recharge-side-avatar {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    flex: 0 0 auto;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.recharge-page .recharge-side-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recharge-page .recharge-side-vip {
    font-weight: 900;
    font-size: 16px;
    color: #0f172a;
    line-height: 1.2;
}

.recharge-page .recharge-side-sub {
    font-size: 12px;
    color: #64748b;
}

.recharge-page .recharge-side-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.03);
}

.recharge-page .recharge-side-stat .label {
    font-size: 12px;
    color: #64748b;
}

.recharge-page .recharge-side-stat .value {
    font-weight: 900;
    color: #0f172a;
    margin-top: 2px;
}

.recharge-page .recharge-side-menu .list-group-item i {
    margin-right: 10px;
    color: rgba(2, 6, 23, 0.7);
}

.recharge-page .recharge-card {
    border-radius: 14px;
}

.recharge-page .recharge-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.recharge-page .recharge-card-title {
    font-weight: 900;
    color: #0f172a;
    position: relative;
    padding-left: 12px;
}

.recharge-page .recharge-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--recharge-primary);
}

.recharge-page .recharge-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.recharge-page .recharge-method {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    min-width: 128px;
    transition: all 0.15s ease;
}

.recharge-page .recharge-method:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

.recharge-page .recharge-method.active {
    border-color: var(--recharge-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.recharge-page .recharge-method:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.recharge-page .recharge-method-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.recharge-page .recharge-method-icon.wechat { background: #22c55e; }
.recharge-page .recharge-method-icon.alipay { background: #0ea5e9; }
.recharge-page .recharge-method-icon.qq { background: #6366f1; }
.recharge-page .recharge-method-icon.bank { background: #ef4444; }
.recharge-page .recharge-method-icon.card { background: #f97316; }

.recharge-page .recharge-action {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.recharge-page .recharge-action .btn {
    min-width: 360px;
}

.recharge-page .recharge-record-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.recharge-page .recharge-record-keyword {
    width: min(260px, 100%);
}

.recharge-page .recharge-record-select {
    width: 150px;
}

.recharge-page .recharge-record-btn {
    white-space: nowrap;
}

.recharge-page .recharge-date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.recharge-page .recharge-date-range .sep {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 576px) {
    .recharge-page .recharge-action .btn {
        min-width: 100%;
    }
    .recharge-page .recharge-record-keyword,
    .recharge-page .recharge-record-select,
    .recharge-page .recharge-record-btn,
    .recharge-page .recharge-date-range {
        width: 100%;
    }
    .recharge-page .recharge-date-range {
        flex-wrap: wrap;
    }
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    transform: translateY(-2px);
}

/* 徽章样式 */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 12px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

/* 输入组样式 */
.input-group .form-control {
    border-radius: 8px 0 0 8px;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* 警告框样式 */
.alert {
    border-radius: 8px;
    border: none;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ============================================
   首页专用样式（参考qqkami设计）
   ============================================ */

/* 容器样式 */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* 区块标题样式 */
.section-header {
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 分类卡片样式优化 */
#categorySection .card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

#categorySection .card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

#categorySection .card-img-top {
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#categorySection .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

#categorySection .card-text {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

/* 轮播图样式 */
.banner-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-placeholder {
    min-height: 300px;
}

.banner-slide {
    padding: 80px 20px;
    border-radius: 12px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 用户状态区样式 */
.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 热门商品快捷入口样式 */
#hotProductsSection .card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 100px;
}

#hotProductsSection .card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

#hotProductsSection .card-body {
    padding: 15px 10px;
}

#hotProductsSection .card-body img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

#hotProductsSection .card-body .small {
    font-size: 12px;
    color: #495057;
    margin-top: 8px;
    font-weight: 500;
}

/* 分类标签样式 */
.category-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs-wrapper .btn-group {
    flex-wrap: nowrap;
    white-space: nowrap;
}

#categoryTabs .btn {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    margin: 0 3px;
    white-space: nowrap;
    border: 1.5px solid #dee2e6;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
}

#categoryTabs .btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

#categoryTabs .btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 推荐商品卡片样式 */
#recommendedProductsSection .card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

#recommendedProductsSection .card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

#recommendedProductsSection .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#recommendedProductsSection .card:hover .card-img-top {
    transform: scale(1.05);
}

#recommendedProductsSection .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

#recommendedProductsSection .card-text {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

/* 服务优势卡片样式 */
#serviceAdvantagesSection .card {
    border: none;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

#serviceAdvantagesSection .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

#serviceAdvantagesSection .card-body {
    padding: 30px 20px;
}

#serviceAdvantagesSection .card-body i {
    color: #667eea;
    margin-bottom: 20px;
    display: block;
}

#serviceAdvantagesSection .card-body h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

#serviceAdvantagesSection .card-body p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.8;
    margin: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
    }
    
    #categorySection .card-img-top {
        height: 150px;
    }
    
    #hotProductsSection .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #recommendedProductsSection .col-md-4 {
        margin-bottom: 20px;
    }
    
    .category-tabs-wrapper {
        margin-top: 15px;
        width: 100%;
    }
    
    #categoryTabs {
        width: 100%;
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ============================================
   商战网络首页（frontend/index.html）
   仅作用于 body.home-page
   ============================================ */

.home-page {
    background: #f3f6fb;
}

.home-page .btn::before {
    display: none;
}

.home-page .btn {
    border-radius: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
}

.home-page .btn-primary {
    background: #1677ff;
    border-color: #1677ff;
    box-shadow: none;
}

.home-page .btn-primary:hover {
    background: #0f6ae0;
    border-color: #0f6ae0;
    transform: none;
}

.sz-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.sz-topbar {
    background: #3a3a3a;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 34px;
}

.sz-topbar .sz-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sz-topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-right: 16px;
}

/* Bootstrap dropdown in topbar should use readable colors */
.sz-topbar .dropdown-menu {
    color: #212529;
}

.sz-topbar .dropdown-menu a {
    color: inherit;
    margin-right: 0;
}

.sz-topbar .dropdown-menu .dropdown-item {
    color: #212529;
}

.sz-topbar .dropdown-menu .dropdown-item:hover,
.sz-topbar .dropdown-menu .dropdown-item:focus {
    color: #212529;
}

.sz-topbar .dropdown-menu .dropdown-item.text-danger {
    color: #dc3545;
}

.sz-topbar a:hover {
    color: #fff;
}

.sz-topbar a.active {
    color: #fff;
}

.sz-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sz-topbar-sep {
    opacity: 0.5;
}

.sz-user {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.sz-user:hover {
    color: #fff;
}

.sz-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    font-weight: 700;
    margin-right: 8px;
    font-size: 12px;
}

.sz-header {
    background: #fff;
    border-bottom: 1px solid #e8eef5;
}

.sz-header-row {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

.sz-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sz-logo-mark {
    width: 44px;
    height: 44px;
    display: inline-block;
    flex: 0 0 auto;
    background: url('../images/site-icon.svg') no-repeat center / contain;
    font-size: 0;
    line-height: 0;
}

.sz-logo-text {
    font-size: 34px;
    font-weight: 900;
    color: #222;
}

.sz-nav {
    display: flex;
    gap: 48px;
    justify-content: flex-start;
    align-items: center;
}

.sz-nav a {
    color: #111;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
}

.sz-nav a:hover {
    color: #1677ff;
}

.sz-nav a.active {
    color: #1677ff;
    border-bottom-color: #1677ff;
}

.sz-search {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.sz-search input {
    flex: 1 1 0;
    min-width: 160px;
    width: auto;
    max-width: 280px;
    height: 38px;
    border: 2px solid #1677ff;
    border-radius: 8px;
    padding: 0 12px;
    outline: none;
    font-size: 13px;
}

.sz-search button {
    height: 38px;
    line-height: 38px;
    padding: 0 16px;
    min-width: 64px;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 8px;
    border: 0;
    background: #1677ff;
    color: #fff;
    font-weight: 700;
}

.sz-search button:hover {
    background: #0f6ae0;
}

.sz-main {
    padding: 16px 0 36px;
}

.sz-hero {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 16px;
    align-items: stretch;
    margin-top: 16px;
    --sz-hero-height: 360px;
}

.sz-hero-left,
.sz-hero-center,
.sz-hero-right {
    display: flex;
}

.sz-catmenu {
    background: linear-gradient(180deg, #1fa3ff 0%, #1677ff 100%);
    border-radius: 12px;
    padding: 10px 0;
    color: #fff;
    box-shadow: 0 6px 18px rgba(22, 119, 255, 0.18);
    height: var(--sz-hero-height);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.sz-cat-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.sz-cat-item:last-of-type {
    border-bottom: 0;
}

.sz-cat-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sz-cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 16px;
}

.sz-cat-title-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sz-cat-sub {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sz-cat-all {
    margin: auto 16px 12px;
    display: block;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.sz-cat-all:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.sz-banner {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: var(--sz-hero-height);
    flex: 1 1 auto;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
}

.sz-banner-carousel,
.sz-banner-carousel .carousel-inner,
.sz-banner-carousel .carousel-item {
    height: 100%;
}

.sz-banner-carousel .carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.sz-banner-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sz-banner-carousel .carousel-indicators {
    margin-bottom: 12px;
    gap: 8px;
}

.sz-banner-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #dbe6f3;
    opacity: 1;
    border: 0;
}

.sz-banner-carousel .carousel-indicators .active {
    width: 22px;
    background: #6b4eff;
}

.sz-banner-slide {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 16px;
    padding: 34px 30px;
    background: linear-gradient(135deg, #f7fbff 0%, #f3f6ff 45%, #faf5ff 100%);
}

.sz-banner-title {
    font-size: 38px;
    font-weight: 900;
    color: #142030;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.sz-banner-sub {
    font-size: 34px;
    font-weight: 900;
    color: #6b4eff;
    margin-bottom: 18px;
}

.sz-banner-desc {
    color: #6c7a8a;
    max-width: 520px;
    line-height: 1.9;
    font-size: 14px;
}

.sz-banner-visual {
    border-radius: 12px;
    background:
        radial-gradient(circle at 26% 35%, rgba(107, 78, 255, 0.18), transparent 62%),
        radial-gradient(circle at 74% 65%, rgba(68, 201, 178, 0.14), transparent 60%),
        repeating-linear-gradient(135deg, rgba(20, 40, 80, 0.03) 0px, rgba(20, 40, 80, 0.03) 8px, transparent 8px, transparent 16px),
        linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(20, 40, 80, 0.06);
}

.sz-banner-visual::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 52px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(107, 78, 255, 0.92), rgba(107, 78, 255, 0.12));
    box-shadow: 0 18px 44px rgba(107, 78, 255, 0.18);
}

.sz-banner-visual::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 250px;
    height: 92px;
    transform: rotate(-12deg);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(68, 201, 178, 0.86), rgba(68, 201, 178, 0.08));
}

.sz-banner-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 0 14px;
    background: #fff;
}

.sz-banner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #dbe6f3;
}

.sz-banner-dots span.active {
    width: 22px;
    background: #6b4eff;
}

.sz-login-card {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    padding: 16px 18px;
    height: var(--sz-hero-height);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.sz-login-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f2f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.sz-login-avatar-text {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.sz-login-hello {
    margin-top: 10px;
    font-weight: 800;
    color: #222;
}

.sz-login-actions {
    margin-top: 12px;
    width: 100%;
    display: grid;
    gap: 10px;
}

.sz-login-split {
    width: 100%;
    height: 1px;
    background: #e8eef5;
    margin: 12px 0;
}

.sz-perks-title {
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

.sz-perks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.sz-perk {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 8px 6px;
    min-height: 60px;
    background: #fff;
    display: grid;
    gap: 6px;
    place-items: center;
    color: #1e2a3a;
    cursor: default;
}

.sz-perk > div {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.sz-perk i {
    font-size: 20px;
    line-height: 1;
    color: #1677ff;
}

.sz-section {
    margin-top: 16px;
}

.sz-card {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
}

.sz-card-head {
    padding: 16px 16px 0;
}

.sz-card-title {
    font-weight: 900;
    color: #1d2b3a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sz-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffb020;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sz-hot-scroll {
    display: flex;
    gap: 16px;
    padding: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.sz-hot-item {
    width: 120px;
    min-width: 120px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #fff;
    padding: 14px 10px;
    display: grid;
    gap: 10px;
    justify-items: center;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sz-hot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 40, 80, 0.10);
    border-color: #cfe0ff;
}

.sz-hot-icon {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sz-hot-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-hot-fallback {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eaf2ff;
    color: #1677ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}

.sz-hot-name {
    font-size: 13px;
    color: #243246;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

.sz-recommend {
    margin-top: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
}

.sz-recommend-head {
    background: linear-gradient(90deg, #1e90ff 0%, #25b1ff 60%, #26d9ff 100%);
    padding: 16px 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #fff;
}

.sz-recommend-head-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.sz-recommend-head-sub {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 700;
}

.sz-recommend-tabs {
    display: flex;
    gap: 12px;
    padding: 14px 18px 10px;
    overflow-x: auto;
    border-bottom: 1px solid #e8eef5;
}

.sz-tab {
    border: 0;
    background: transparent;
    color: #1d2b3a;
    font-weight: 800;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.sz-tab:hover {
    background: #f2f6ff;
    color: #1677ff;
}

.sz-tab.active {
    background: #1677ff;
    color: #fff;
    box-shadow: 0 10px 18px rgba(22, 119, 255, 0.22);
}

.sz-recommend-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px 12px;
}

.sz-recommend-item {
    display: grid;
    gap: 10px;
    justify-items: center;
    cursor: pointer;
    padding: 8px 6px;
    border-radius: 12px;
    transition: background 0.18s ease;
}

.sz-recommend-item:hover {
    background: #f7fbff;
}

.sz-recommend-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #f2f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #eef2f7;
}

.sz-recommend-icon img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 18px;
}

.sz-recommend-icon i {
    font-size: 30px;
    color: #1677ff;
}

.sz-recommend-name {
    font-size: 13px;
    color: #243246;
    font-weight: 800;
}

.sz-recommend-more {
    padding: 12px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-top: 1px solid #f0f4f9;
}

.sz-recommend-tip {
    font-size: 13px;
    color: #7a8796;
}

.sz-recommend-link {
    color: #1677ff;
    text-decoration: none;
    font-weight: 800;
}

.sz-recommend-link:hover {
    text-decoration: underline;
}

.sz-advantages {
    margin-top: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    padding: 22px 18px 24px;
}

.sz-adv-head {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.sz-adv-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #1d2b3a;
    font-weight: 900;
    font-size: 20px;
}

.sz-adv-laurel {
    width: 72px;
    height: 20px;
    background: linear-gradient(90deg, rgba(22,119,255,0.0) 0%, rgba(22,119,255,0.7) 50%, rgba(22,119,255,0.0) 100%);
    border-radius: 999px;
    opacity: 0.8;
}

.sz-adv-laurel-right {
    transform: scaleX(-1);
}

.sz-adv-grid .card {
    box-shadow: none;
}

.sz-adv-item {
    border-radius: 14px;
    background: #f9fbff;
    border: 1px solid #eef2f7;
    padding: 22px 18px;
    text-align: center;
    height: 100%;
}

.sz-adv-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #1677ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.sz-adv-icon i {
    font-size: 28px;
}

.sz-adv-item-title {
    font-weight: 900;
    color: #1d2b3a;
    margin-bottom: 10px;
}

.sz-adv-item-desc {
    font-size: 13px;
    color: #7a8796;
    line-height: 1.7;
}

.sz-adv-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.sz-save-btn {
    border: 0;
    border-radius: 12px;
    padding: 14px 28px;
    background: #1677ff;
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
}

.sz-save-btn:hover {
    background: #0f6ae0;
}

.sz-floatbar {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 92px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(20, 40, 80, 0.18);
    overflow: hidden;
    z-index: 999;
}

.sz-float-item {
    display: grid;
    gap: 6px;
    place-items: center;
    padding: 14px 10px;
    text-decoration: none;
    color: #4a5563;
    font-weight: 800;
    font-size: 12px;
    border-bottom: 1px solid #eef2f7;
}

.sz-float-item i {
    font-size: 22px;
    color: #8aa0b7;
}

.sz-float-item small {
    font-weight: 700;
    color: #8aa0b7;
    margin-top: -4px;
}

.sz-float-primary {
    background: linear-gradient(180deg, #1e90ff 0%, #1677ff 100%);
    color: #fff;
}

.sz-float-primary i {
    color: #fff;
}

.sz-float-item:hover {
    background: #f7fbff;
}

.sz-float-primary:hover {
    background: linear-gradient(180deg, #0f6ae0 0%, #0b5fd1 100%);
}

.sz-footer {
    margin-top: 30px;
    background: #0f1113;
    color: rgba(255, 255, 255, 0.8);
}

.sz-footer-slogan {
    background: #0b0d0f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 0;
}

.sz-slogan-row {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sz-slogan-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.sz-slogan-item i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.55);
}

.sz-footer-main {
    padding: 26px 0 22px;
}

.sz-footer-title {
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px;
}

.sz-footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 13px;
}

.sz-footer-link:hover {
    color: #fff;
}

.sz-footer-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin-bottom: 8px;
}

.sz-footer-qr {
    margin-top: 10px;
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.sz-footer-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sz-footer-bottom {
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 1200px) {
    .sz-header-row {
        grid-template-columns: 300px 1fr 320px;
    }
    .sz-recommend-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .sz-header-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sz-nav {
        gap: 18px;
        flex-wrap: wrap;
    }
    .sz-search {
        justify-content: flex-start;
    }
    .sz-hero {
        grid-template-columns: 1fr;
    }
    .sz-banner-slide {
        grid-template-columns: 1fr;
    }
    .sz-floatbar {
        display: none;
    }
    .sz-recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .sz-logo-text {
        font-size: 28px;
    }
    .sz-logo-mark {
        width: 38px;
        height: 38px;
    }
    .sz-recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   下单页（order-confirm-enhanced.html）
   ============================================ */

.sz-breadcrumb-bar {
    background: linear-gradient(90deg, #1e90ff 0%, #1677ff 60%, #25b1ff 100%);
    padding: 12px 0;
    box-shadow: 0 6px 18px rgba(22, 119, 255, 0.18);
}

.sz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    flex-wrap: wrap;
}

.sz-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 800;
}

.sz-breadcrumb a:hover {
    text-decoration: underline;
    color: #fff;
}

.sz-breadcrumb .sep {
    opacity: 0.75;
}

.sz-breadcrumb i {
    font-size: 16px;
}

.sz-breadcrumb-tip {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   商品目录页（product-list.html）
   ============================================ */

.sz-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.sz-breadcrumb-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sz-sortbar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.sz-sort-item {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 10px;
    transition: background 0.16s ease, color 0.16s ease;
}

.sz-breadcrumb-bar .sz-sortbar .sz-sort-item {
    color: rgba(255, 255, 255, 0.92);
}

.sz-breadcrumb-bar .sz-sortbar .sz-sort-item:hover,
.sz-breadcrumb-bar .sz-sortbar .sz-sort-item:focus {
    color: #fff;
    text-decoration: none;
}

.sz-breadcrumb-bar .sz-sortbar .sz-sort-item.active {
    color: #fff;
}

.sz-sort-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    text-decoration: none;
}

.sz-sort-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.sz-sort-item i {
    margin-left: 4px;
    font-size: 12px;
}

.sz-viewbar {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.sz-view-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.sz-view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.sz-view-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.sz-view-btn i {
    font-size: 16px;
}

.sz-radio-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.sz-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.sz-radio input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #fff;
    cursor: pointer;
}

.sz-radio span {
    line-height: 1;
}

.taobao-theme .sz-breadcrumb-bar {
    background: linear-gradient(90deg, #ff6a00 0%, #ff5000 60%, #ff8a00 100%);
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.18);
}

.sz-catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px 4px;
    color: #5b6b7f;
    font-weight: 800;
    font-size: 13px;
}

.sz-catalog-count span {
    color: #1677ff;
    font-weight: 900;
}

.taobao-theme .sz-catalog-count span {
    color: #ff5000;
}

.sz-catalog-hint {
    color: #7a8796;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sz-catalog-section {
    margin-top: 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
}

.sz-catalog-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
}

.sz-catalog-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1d2b3a;
    font-weight: 900;
}

.sz-catalog-title .sz-title-bar {
    height: 16px;
}

.sz-catalog-more {
    color: #1677ff;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
}

.taobao-theme .sz-catalog-more {
    color: #ff5000;
}

.sz-catalog-more:hover {
    text-decoration: underline;
}

.sz-catalog-body {
    padding: 14px 16px 16px;
}

.sz-search-section {
    margin-top: 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
}

.sz-category-tabs {
    padding: 12px 16px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.sz-category-tabs::-webkit-scrollbar {
    height: 6px;
}

.sz-category-tabs::-webkit-scrollbar-thumb {
    background: rgba(20, 40, 80, 0.18);
    border-radius: 999px;
}

.sz-category-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e6eef8;
    background: #f6f9ff;
    color: #1d2b3a;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sz-category-tab:hover {
    text-decoration: none;
    border-color: #cfe0ff;
}

.sz-category-tab.active {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
}

.taobao-theme .sz-category-tab.active {
    background: #ff5000;
    border-color: #ff5000;
}

.sz-search-list {
    border-top: 1px solid #eef2f7;
}

.sz-search-grid-wrap {
    padding: 14px 16px 16px;
}

.sz-search-item {
    display: grid;
    grid-template-columns: 110px 1fr 360px;
    gap: 16px;
    padding: 16px;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
}

.sz-search-thumb {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    border: 1px solid #eef2f7;
    background: #f4f7fb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sz-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-search-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.sz-search-name {
    color: #08a045;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.35;
}

.sz-search-name:hover {
    text-decoration: underline;
    color: #05923d;
}

.sz-search-meta {
    display: grid;
    gap: 6px;
    color: #1d2b3a;
    font-weight: 800;
    font-size: 13px;
}

.sz-search-right {
    display: grid;
    grid-template-columns: 1fr 40px 140px;
    gap: 12px;
    align-items: center;
    justify-items: end;
}

.sz-price-block {
    display: grid;
    gap: 8px;
    justify-items: end;
    font-weight: 800;
    font-size: 13px;
    color: #1d2b3a;
}

.sz-price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.sz-price-label {
    opacity: 0.9;
}

.sz-price-value {
    font-weight: 900;
}

.sz-price-value.sale {
    color: #ff2d2d;
}

.taobao-theme .sz-price-value.sale {
    color: #ff5000;
}

.sz-type-value {
    color: #ff2d2d;
    font-weight: 900;
}

.taobao-theme .sz-type-value {
    color: #ff5000;
}

.sz-fav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e6eef8;
    background: #fff;
    color: #7a8796;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.sz-fav-btn:hover {
    border-color: #cfe0ff;
    color: #1677ff;
}

.sz-fav-btn.active {
    border-color: rgba(255, 45, 45, 0.32);
    color: #ff2d2d;
}

.sz-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 900;
    background: #1677ff;
    color: #fff;
    text-decoration: none;
    border: none;
}

.sz-buy-btn:hover {
    text-decoration: none;
    color: #fff;
    background: #0f66e6;
}

.taobao-theme .sz-buy-btn {
    background: #ff5000;
}

.taobao-theme .sz-buy-btn:hover {
    background: #f04600;
}

.sz-buy-btn.disabled,
.sz-buy-btn[aria-disabled="true"] {
    background: #a9a9a9;
    cursor: not-allowed;
    pointer-events: none;
}

.sz-product-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
}

.sz-product-tile {
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sz-product-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(20, 40, 80, 0.12);
    border-color: #cfe0ff;
    text-decoration: none;
}

.taobao-theme .sz-product-tile:hover {
    border-color: rgba(255, 80, 0, 0.35);
}

.sz-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sz-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-product-meta {
    padding: 10px 10px 12px;
    display: grid;
    gap: 6px;
}

.sz-product-name {
    font-size: 13px;
    font-weight: 800;
    color: #6b7788;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sz-product-price {
    font-size: 16px;
    font-weight: 900;
    color: #ff2d2d;
}

.taobao-theme .sz-product-price {
    color: #ff5000;
}

.sz-product-sub {
    font-size: 12px;
    color: #98a5b3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sz-empty {
    padding: 22px 10px;
    text-align: center;
    color: #7a8796;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .sz-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .sz-breadcrumb-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sz-breadcrumb-controls {
        justify-content: flex-start;
    }

    .sz-search-item {
        grid-template-columns: 100px 1fr;
    }

    .sz-search-right {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 40px 140px;
        justify-items: end;
    }

    .sz-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .sz-sortbar {
        gap: 10px;
        flex-wrap: wrap;
    }

    .sz-search-item {
        grid-template-columns: 90px 1fr;
        padding: 14px 12px;
    }

    .sz-search-thumb {
        width: 90px;
        height: 90px;
    }

    .sz-search-right {
        grid-template-columns: 1fr 40px 120px;
        gap: 10px;
    }

    .sz-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sz-order-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    padding: 16px 16px 18px;
    margin-top: 16px;
}

.sz-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #1d2b3a;
    padding: 4px 0 12px;
}

.sz-title-bar {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: #1677ff;
    display: inline-block;
}

.sz-order-product {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 18px;
    display: grid;
    grid-template-columns: 110px 1fr 240px;
    gap: 16px;
    align-items: center;
}

.sz-order-product-img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6edf6;
    background: #fff;
}

.sz-order-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-order-product-name {
    font-weight: 900;
    color: #1d2b3a;
    line-height: 1.35;
}

.sz-order-product-desc {
    margin-top: 8px;
    color: #7a8796;
    font-size: 13px;
    line-height: 1.6;
}

.sz-order-product-right {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.sz-mini-primary {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #1677ff;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.sz-mini-primary:hover {
    background: #0f6ae0;
}

.sz-stepper {
    display: grid;
    grid-template-columns: 44px 110px 44px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.sz-stepper-btn {
    border: 0;
    background: #f2f4f7;
    font-weight: 900;
    color: #3c4b5f;
    height: 38px;
}

.sz-stepper-btn:hover {
    background: #e8eef5;
}

.sz-stepper input {
    border: 0;
    text-align: center;
    height: 38px;
    font-weight: 900;
    outline: none;
    color: #1d2b3a;
}

.sz-form-row {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 14px 14px;
    display: grid;
    grid-template-columns: 90px 1fr 120px;
    gap: 12px;
    align-items: center;
}

.sz-form-label {
    font-weight: 900;
    color: #1d2b3a;
    font-size: 13px;
    text-align: right;
}

.sz-form-input {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d7e1ee;
    padding: 0 12px;
    outline: none;
    font-size: 13px;
}

.sz-form-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}

.sz-mini-outline {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #1677ff;
    background: #fff;
    color: #1677ff;
    font-weight: 900;
    font-size: 13px;
}

.sz-mini-outline:hover {
    background: #f2f6ff;
}

.sz-form-hint {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f6ff;
    border: 1px solid #e1ebff;
    color: #46627f;
    font-size: 13px;
}

.sz-form-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f0;
    border: 1px solid #ffd4d2;
    color: #cf1322;
    font-size: 13px;
}

.sz-price-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
    align-items: stretch;
}

.sz-remark {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 14px;
}

.sz-remark-label {
    font-weight: 900;
    color: #1d2b3a;
    font-size: 13px;
    margin-bottom: 10px;
}

.sz-remark textarea {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    border: 1px solid #d7e1ee;
    padding: 10px 12px;
    resize: none;
    outline: none;
    font-size: 13px;
}

.sz-remark textarea:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}

.sz-price-box {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px 14px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef2f7;
}

.sz-price-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4a5563;
    font-weight: 700;
}

.sz-price-total {
    padding-top: 8px;
    border-top: 1px dashed #e8eef5;
}

.sz-amount {
    color: #e3001b;
    font-weight: 900;
}

.sz-paybar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.sz-paybar-label {
    font-weight: 900;
    color: #1d2b3a;
}

.sz-pay-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sz-pay-item {
    height: 52px;
    min-width: 150px;
    border-radius: 12px;
    border: 1px solid #e8eef5;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    font-weight: 900;
    color: #1d2b3a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sz-pay-item i {
    font-size: 20px;
}

.sz-pay-item:hover {
    transform: translateY(-1px);
    border-color: #cfe0ff;
    box-shadow: 0 8px 18px rgba(20, 40, 80, 0.10);
}

.sz-pay-item.active {
    border-color: #1677ff;
    box-shadow: 0 10px 18px rgba(22, 119, 255, 0.18);
}

@media (max-width: 992px) {
    .sz-order-product {
        grid-template-columns: 90px 1fr;
    }
    .sz-order-product-right {
        justify-items: start;
        grid-column: 1 / -1;
    }
    .sz-price-grid {
        grid-template-columns: 1fr;
    }
}

/* 微信公众号扫码登录（登录弹窗左侧） */
.wechat-qr-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wechat-qr-wrapper img {
    width: 168px;
    height: 168px;
    object-fit: contain;
    display: block;
}

/* 登录弹窗：短信/密码 + 扫码切换 */
.sz-login-modal {
    border-radius: 14px;
    overflow: hidden;
}

.sz-login-modal .modal-body {
    padding: 20px 22px 22px;
}

.sz-login-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.sz-login-switch-btn {
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
}

.sz-login-switch-qr {
    background: #ff7a00;
}

.sz-login-switch-back {
    background: #1677ff;
}

.sz-login-brand {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    color: #1677ff;
}

.sz-login-tabs .nav-link {
    font-weight: 600;
    padding: 10px 8px;
}

.sz-login-tabs .nav-link.active {
    color: #1677ff;
}

.sz-login-modal .tab-content {
    min-height: 250px;
}

/* 账号密码登录：滑块验证码弹层（避免在登录框内被压缩） */
.sz-pwd-captcha-overlay {
    position: fixed;
    inset: 0;
    /* Must be above other custom overlays (e.g. 微信绑定弹层) so the slider can receive pointer events. */
    z-index: 20002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.sz-pwd-captcha-dialog {
    width: min(520px, 92vw);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: 16px 16px 18px;
}

.sz-pwd-captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sz-pwd-captcha-title {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.sz-pwd-captcha-body {
    width: 100%;
}

/* 微信扫码：绑定现有账号弹层 */
.sz-wechat-bind-overlay {
    position: fixed;
    inset: 0;
    z-index: 20001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.sz-wechat-bind-dialog {
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: 16px 16px 18px;
}

.sz-wechat-bind-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sz-wechat-bind-title {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

@media (max-width: 576px) {
    .sz-login-modal .modal-body {
        padding: 16px 16px 18px;
    }

    .sz-pwd-captcha-dialog {
        width: 100%;
        padding: 14px 14px 16px;
    }

    .sz-wechat-bind-dialog {
        width: 100%;
        padding: 14px 14px 16px;
    }
}

/* ============================================
   Mobile-friendly defaults (all pages)
   ============================================ */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

img,
video {
    max-width: 100%;
    height: auto;
}

pre {
    max-width: 100%;
    overflow: auto;
}

@media (max-width: 768px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 12px;
    }

    .table thead th {
        white-space: nowrap;
    }

    .card-body {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .sz-topbar-left {
        display: none;
    }

    .sz-topbar-sep,
    .sz-topbar-hotline {
        display: none;
    }

    .sz-topbar .sz-container {
        justify-content: flex-end;
    }

    .sz-topbar-right {
        gap: 8px;
    }

    .sz-topbar .dropdown-menu {
        max-width: calc(100vw - 16px);
    }

    .sz-header-row {
        padding: 12px 0;
    }

    .sz-nav {
        gap: 16px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .sz-nav::-webkit-scrollbar {
        display: none;
    }

    .sz-nav a {
        font-size: 16px;
        white-space: nowrap;
    }

    .sz-search {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .sz-search input {
        max-width: none;
        width: 100%;
        flex: 1 1 100%;
    }

    .sz-search button {
        width: 100%;
    }

    .sz-banner-slide {
        height: auto;
        padding: 18px 16px;
    }

    .sz-banner-title,
    .sz-banner-sub {
        font-size: 26px;
    }
}

/* ============================================
   调价信息页（pages/goods-price-change.html）
   ============================================ */

.pc-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.pc-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pc-page-head h3 {
    font-weight: 900;
    color: #142030;
}

.pc-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pc-shell .btn.btn-sm {
    padding: 6px 12px;
}

/* 恢复 outline 按钮边框（home-page 会覆盖为透明） */
body.home-page .pc-page-actions .btn.btn-outline-secondary {
    border-color: #ced4da;
}

.pc-table-card {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
}

.pc-table-card:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(20, 40, 80, 0.10);
}

.pc-table {
    margin-bottom: 0;
}

.pc-table td,
.pc-table th {
    vertical-align: middle;
}

.pc-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
}

.pc-table thead th.pc-th-name {
    text-align: left;
}

.pc-table td:last-child,
.pc-table th:last-child {
    text-align: center;
}

.pc-table tbody tr:hover {
    transform: none;
    background-color: #f5f9ff;
}

.pc-col-thumb {
    text-align: center;
}

.pc-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
    background: #f1f5f9;
}

.pc-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 900;
    font-size: 12px;
}

.pc-col-name {
    min-width: 260px;
}

.pc-product-link {
    text-decoration: none;
}

.pc-product-link:hover .pc-product-name {
    text-decoration: underline;
}

.pc-product-name {
    font-weight: 900;
    color: #142030;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.pc-col-time {
    white-space: nowrap;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.pc-col-money {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #334155;
    font-weight: 800;
}

.pc-money-strong {
    color: #111827;
    font-weight: 900;
}

.pc-change {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: center;
    font-weight: 900;
}

.pc-change-up {
    color: #ff4d4f;
}

.pc-change-down {
    color: #12b76a;
}

.pc-change-rate {
    font-weight: 800;
    font-size: 12px;
    opacity: 0.85;
}

.pc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    min-width: 74px;
}

.pc-status-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.pc-status-muted {
    background: #9ca3af;
    color: #fff;
}

.pc-shell .pagination .page-link {
    font-weight: 800;
}

@media (max-width: 576px) {
    .pc-col-name {
        min-width: 180px;
    }
}

/* ============================================
   订单列表页（pages/order-list.html）
   ============================================ */

.ol-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.ol-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ol-page-head h3 {
    font-weight: 900;
    color: #142030;
}

.ol-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ol-shell .btn.btn-sm {
    padding: 6px 12px;
}

.ol-order-no .btn.btn-sm {
    padding: 6px 10px;
}

.ol-toolbar {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
}

.ol-toolbar-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
}

.ol-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin: 0;
}

.ol-filter-nav .nav-link {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 900;
    color: #4b5563;
    background: #f1f5f9;
    border: 1px solid rgba(2, 6, 23, 0.08);
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ol-filter-nav .nav-link:hover {
    background: #e8f1ff;
    border-color: #cfe0ff;
    color: #1677ff;
}

.ol-filter-nav .nav-link.active {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
}

.ol-filter-nav::-webkit-scrollbar {
    height: 6px;
}

.ol-filter-nav::-webkit-scrollbar-thumb {
    background: rgba(2, 6, 23, 0.12);
    border-radius: 999px;
}

.ol-search {
    flex: 1 1 320px;
    min-width: 240px;
    max-width: 420px;
}

.ol-search .input-group-text {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.ol-search .form-control {
    border-color: #e5e7eb;
}

.ol-order-card {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ol-order-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 40, 80, 0.10);
    border-color: #cfe0ff;
}

.ol-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ol-order-no {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ol-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #f0f3f7;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ol-product {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ol-product-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid #e6edf6;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    overflow: hidden;
    flex: 0 0 auto;
}

.ol-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ol-product-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ol-product-name {
    font-weight: 900;
    color: #142030;
    line-height: 1.35;
}

.ol-product-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-all;
}

.ol-meta-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ol-meta-item {
    background: #f8fafc;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 12px;
}

.ol-meta-item .label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 800;
}

.ol-meta-item .value {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 900;
    color: #212529;
}

.ol-money {
    color: #dc3545;
}

.ol-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 订单记录：左侧信息栏 */
.ol-side-card {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
    overflow: hidden;
    background: radial-gradient(900px circle at 20% 0%, rgba(22, 119, 255, 0.16), transparent 55%),
                radial-gradient(900px circle at 80% 20%, rgba(37, 177, 255, 0.18), transparent 55%),
                #ffffff;
}

.ol-side-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ol-side-avatar {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
}

.ol-side-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ol-side-name {
    font-weight: 900;
    font-size: 16px;
    color: #0f172a;
    line-height: 1.2;
}

.ol-side-sub {
    font-size: 12px;
    font-weight: 700;
}

.ol-side-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ol-side-stat {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
}

.ol-side-stat .label {
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
}

.ol-side-stat .value {
    margin-top: 4px;
    font-weight: 900;
    color: #0f172a;
}

.ol-side-menu .list-group-item {
    border: 0;
    border-left: 3px solid transparent;
    padding: 12px 14px;
    font-weight: 800;
    color: #111827;
}

.ol-side-menu .list-group-item:hover {
    background: rgba(22, 119, 255, 0.06);
}

.ol-side-menu .list-group-item.active {
    background: rgba(22, 119, 255, 0.10);
    color: #1677ff;
    border-left-color: #1677ff;
}

/* 订单记录：主面板与筛选条 */
.ol-panel {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
}

.ol-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.ol-title-bar {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: #1677ff;
}

.ol-status-tabs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 6px 0 10px;
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
    margin-bottom: 12px;
}

.ol-status-tab {
    background: none;
    border: none;
    padding: 8px 10px;
    font-weight: 900;
    color: #334155;
    position: relative;
}

.ol-status-tab:hover {
    color: #1677ff;
}

.ol-status-tab.active {
    color: #1677ff;
}

.ol-status-tab.active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: #1677ff;
}

.ol-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ol-filter-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ol-filter-input {
    width: 200px;
}

.ol-filter-select {
    width: 140px;
}

.ol-filter-btn {
    padding: 6px 14px;
    font-weight: 900;
}

.ol-date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
}

.ol-date-range i {
    color: #64748b;
}

.ol-date-range .form-control {
    width: 178px;
}

.ol-date-range .sep {
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
}

/* 订单记录：表格 */
.ol-table-wrap {
    border: 1px solid rgba(2, 6, 23, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.ol-table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 900;
    font-size: 13px;
    border-bottom: 1px solid rgba(2, 6, 23, 0.06);
    white-space: nowrap;
}

.ol-table td {
    font-size: 13px;
}

.ol-col-check {
    width: 40px;
}

.ol-col-type,
.ol-col-qty,
.ol-col-price,
.ol-col-time,
.ol-col-status {
    white-space: nowrap;
}

.ol-col-qty,
.ol-col-price {
    text-align: center;
}

.ol-col-recharge {
    word-break: break-all;
}

.ol-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
}

.ol-product-link:hover {
    color: #1677ff;
}

.ol-prefix {
    color: #0f172a;
}

.ol-name {
    color: #334155;
    font-weight: 800;
}

.ol-status-pill {
    display: inline-block;
    min-width: 96px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 900;
    color: #fff;
}

.ol-status-success {
    background: #16a34a;
}

.ol-status-processing {
    background: #2563eb;
}

.ol-status-pending {
    background: #f59e0b;
    color: #1f2937;
}

.ol-status-cancel {
    background: #6b7280;
}

.ol-status-refund {
    background: #dc2626;
}

/* 恢复 outline 按钮边框（home-page 会覆盖为透明） */
body.home-page .ol-page-actions .btn.btn-outline-secondary,
body.home-page .ol-order-card .btn.btn-outline-secondary,
body.home-page .ol-actions .btn.btn-outline-primary,
body.home-page .ol-actions .btn.btn-outline-secondary {
    border-color: #ced4da;
}

@media (max-width: 576px) {
    .ol-meta-grid {
        grid-template-columns: 1fr;
    }

    .ol-actions {
        justify-content: flex-start;
    }
}

/* ============================================
   订单详情页（pages/order-detail.html）
   ============================================ */

.od-page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.od-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.od-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.od-kv {
    background: #f8fafc;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 14px;
}

.od-kv-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 800;
}

.od-kv-value {
    margin-top: 6px;
    color: #212529;
    font-weight: 800;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.od-money {
    color: #dc3545;
    font-weight: 900;
}

.od-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #f0f3f7;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.od-summary-amount {
    font-size: 28px;
    font-weight: 900;
    color: #dc3545;
    letter-spacing: 0.2px;
}

.od-summary-status {
    margin-top: 8px;
}

.od-summary-meta {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    font-size: 13px;
    color: #6c757d;
}

.od-summary-meta .label {
    display: inline-block;
    min-width: 52px;
    color: #8a95a3;
    font-weight: 800;
}

.od-summary-meta .value {
    color: #4b5563;
    font-weight: 800;
}

.od-product-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.od-product-name {
    font-size: 16px;
    font-weight: 900;
    color: #142030;
}

.od-product-meta {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.od-product-meta > div {
    background: #f8fafc;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 12px;
}

.od-product-meta .label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 800;
}

.od-product-meta .value {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 900;
    color: #212529;
}

.od-product-desc {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed #dee2e6;
    color: #6c757d;
    line-height: 1.8;
    font-size: 13px;
    background: #fff;
}

.od-recharge-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
}

.od-recharge-row:last-child {
    border-bottom: 0;
}

.od-recharge-row .label {
    width: 108px;
    color: #6c757d;
    font-weight: 900;
    font-size: 13px;
}

.od-recharge-row .value {
    flex: 1 1 auto;
    color: #212529;
    font-weight: 800;
}

/* 恢复 outline 按钮边框（home-page 会覆盖为透明） */
body.home-page .od-page-actions .btn.btn-outline-secondary,
body.home-page .od-kv .btn.btn-outline-secondary,
body.home-page .od-recharge .btn.btn-outline-secondary {
    border-color: #ced4da;
}

body.home-page #cardInfoCard .btn.btn-outline-light {
    border-color: #ced4da;
}

@media (max-width: 576px) {
    .od-kv-grid {
        grid-template-columns: 1fr;
    }

    .od-product-meta {
        grid-template-columns: 1fr;
    }

    .od-recharge-row {
        flex-direction: column;
        gap: 6px;
    }

    .od-recharge-row .label {
        width: auto;
    }
}
