/* ========================================
   iOS 高级精致主题 - Premium iOS Style
   专为卡密交易系统设计，追求精致细腻的视觉体验
   ======================================== */

/* CSS 变量定义 */
:root {
    --ios-bg-primary: #f5f7fa;
    --ios-bg-card: rgba(255, 255, 255, 0.92);
    --ios-bg-sidebar: rgba(249, 250, 251, 0.95);
    --ios-text-primary: #1d1d1f;
    --ios-text-secondary: #6e6e73;
    --ios-accent-blue: #007aff;
    --ios-accent-deep: #0051d5;
    --ios-price-color: #ff9500;
    --ios-border: rgba(0, 0, 0, 0.06);
    --ios-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --ios-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03), 0 0 1px rgba(0, 0, 0, 0.02);
    --ios-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.02);
    --ios-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.02);
    --ios-hover-bg: rgba(0, 122, 255, 0.08);
}

/* 全局背景 - iOS 风格轻微色调叠加 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 247, 250, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

body {
    color: var(--ios-text-primary) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header iOS 风格 */
header {
    background: rgba(255, 255, 255, 0.70) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.08), var(--ios-shadow-sm) !important;
    border-bottom: none;
    border-radius: 0;
    position: relative;
    z-index: 1000;
}

header .container ul li a {
    color: var(--ios-text-primary) !important;
    text-shadow: none !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

header .container ul li a:hover {
    color: var(--ios-accent-blue) !important;
    background: var(--ios-hover-bg);
}

header .container .active a {
    color: var(--ios-accent-blue) !important;
    font-weight: 600;
    background: rgba(0, 122, 255, 0.12);
}

header .input-search,
header .input-search:focus {
    background: rgba(142, 142, 147, 0.12) !important;
    border: 1px solid transparent !important;
    color: var(--ios-text-primary) !important;
    border-radius: 10px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}

header .input-search:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--ios-accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), var(--ios-shadow-md) !important;
}

header .input-search::placeholder {
    color: var(--ios-text-secondary) !important;
}

/* 公告卡片 iOS 风格 */
main .site-notice {
    background: rgba(255, 255, 255, 0.70) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    box-shadow: var(--ios-shadow-md) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: var(--ios-text-primary) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

main .site-notice.rounded {
    border-radius: 16px !important;
}

main .site-notice:hover {
    box-shadow: var(--ios-shadow-lg) !important;
    transform: translateY(-2px);
    border-color: rgba(0, 122, 255, 0.12) !important;
}

/* 分类卡片 iOS 风格 */
main .category {
    background: rgba(255, 255, 255, 0.68) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    box-shadow: var(--ios-shadow-md) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

main .category:hover {
    box-shadow: var(--ios-shadow-lg) !important;
    border-color: rgba(0, 122, 255, 0.12) !important;
}

main .category .category-name {
    color: var(--ios-accent-blue) !important;
    text-shadow: none !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 登录/注册按钮 iOS 风格 */
.btn-ios-login,
.btn-ios-register {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-ios-login {
    background: transparent;
    color: var(--ios-accent-blue) !important;
    border: 1.5px solid var(--ios-accent-blue);
}

.btn-ios-login:hover {
    background: var(--ios-hover-bg);
    transform: translateY(-1px);
}

.btn-ios-register {
    background: var(--ios-accent-blue);
    color: white !important;
    border: 1.5px solid var(--ios-accent-blue);
    margin-left: 6px;
}

.btn-ios-register:hover {
    background: var(--ios-accent-deep);
    border-color: var(--ios-accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

/* 侧边栏 iOS 风格 */
.category-sidebar-tree {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    background: rgba(249, 250, 251, 0.72) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    box-shadow: inset -1px 0 0 0 rgba(0, 0, 0, 0.06), var(--ios-shadow-md) !important;
    border-right: none !important;
    border-radius: 16px !important;
}

/* 侧边栏滚动条 iOS 风格 */
.category-sidebar-tree::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar-tree::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 3px;
}

.category-sidebar-tree::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.category-sidebar-tree::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

.category-link-tree,
.category-label-tree {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: var(--ios-text-primary) !important;
    border-bottom: none !important;
    font-weight: 500;
    border-radius: 10px;
    margin: 3px 8px;
    padding: 10px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    font-size: 15px;
    text-decoration: none;
}

/* 有子分类的条目，为展开箭头留出右侧空间 */
.category-label-tree {
    padding-right: 36px !important;
}

.category-link-tree:hover,
.category-label-tree:hover {
    background: var(--ios-hover-bg) !important;
    color: var(--ios-accent-blue) !important;
}

.category-link-tree.active,
.category-label-tree.active {
    background: rgba(0, 122, 255, 0.15) !important;
    color: var(--ios-accent-blue) !important;
    border-left: none !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.2);
}

/* 二级分类 iOS 风格 */
.category-children-tree {
    background: rgba(0, 0, 0, 0.03) !important;
    border-top: none;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-toggle-tree:checked ~ .category-children-tree {
    max-height: 1000px;
    opacity: 1;
    margin: 0 8px 6px 8px;
    padding: 4px 0;
}

.category-child-link-tree {
    display: flex;
    align-items: center;
    color: var(--ios-text-secondary) !important;
    background: transparent;
    border-bottom: none !important;
    border-radius: 0;
    margin: 0;
    padding: 8px 12px 8px 28px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    text-decoration: none;
    position: relative;
}

.category-child-link-tree i {
    margin-right: 6px;
    font-size: 12px;
}

.category-child-link-tree:hover {
    background: var(--ios-hover-bg) !important;
    color: var(--ios-accent-blue) !important;
}

.category-child-link-tree.active {
    background: rgba(0, 122, 255, 0.15) !important;
    color: var(--ios-accent-blue) !important;
    border-left: none !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.2);
}

/* 商品卡片清爽主题 */
.article-items .shop-item {
    background: var(--fresh-bg-card) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--fresh-border) !important;
    border-radius: 12px !important;
}

.article-items .shop-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--fresh-accent-blue) !important;
}

.article-items .shop-item .shop-item-name {
    color: var(--fresh-text-primary) !important;
    font-weight: 500;
}

.article-items .shop-item .shop-item-price {
    color: var(--fresh-price-color) !important;
    text-shadow: none !important;
    font-weight: 700;
    font-size: 20px !important;
}

.article-items .shop-item .shop-stock-info {
    color: var(--fresh-text-secondary) !important;
}

/* 商品数量徽章清爽主题 */
.item-badge-tree {
    background: #dbeafe !important;
    color: var(--fresh-accent-deep) !important;
    font-weight: 600;
}

/* Footer 清爽主题 */
footer {
    color: var(--fresh-text-secondary) !important;
}

footer a {
    color: var(--fresh-accent-blue) !important;
}

/* 滚动条清爽主题 */
.category-sidebar-tree::-webkit-scrollbar {
    width: 8px;
}

.category-sidebar-tree::-webkit-scrollbar-track {
    background: transparent;
}

.category-sidebar-tree::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-sidebar-tree::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #94a3b8, #64748b);
}

.sidebar-title {
    color: var(--fresh-accent-blue);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    font-size: 18px;
}

/* 按钮 iOS 风格 */
.btn-primary {
    background: var(--ios-accent-blue) !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 122, 255, 0.25) !important;
    font-weight: 600;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--ios-accent-deep) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 122, 255, 0.3) !important;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

.btn-outline-primary {
    border-color: var(--ios-accent-blue) !important;
    color: var(--ios-accent-blue) !important;
    font-weight: 600;
    border-radius: 12px !important;
    border-width: 1.5px !important;
    padding: 10px 20px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.btn-outline-primary:hover {
    background: var(--ios-accent-blue) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 122, 255, 0.3);
}

/* 下拉菜单 iOS 风格 */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: var(--ios-shadow-xl) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    z-index: 1050 !important;
}

.dropdown-item {
    color: var(--ios-text-primary) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    margin: 2px 0 !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.dropdown-item:hover {
    background: var(--ios-hover-bg) !important;
    color: var(--ios-accent-blue) !important;
}

.dropdown-divider {
    border-color: rgba(0, 0, 0, 0.06) !important;
    margin: 6px 8px !important;
}

/* 表格 iOS 风格 */
.table {
    color: var(--ios-text-primary) !important;
}

.table th {
    color: var(--ios-accent-blue) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.table tr {
    border-color: rgba(0, 0, 0, 0.04) !important;
}

/* 卡片标题 iOS 风格 */
.card-header {
    background: rgba(0, 0, 0, 0.02) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 14px 18px !important;
}

.card-title {
    color: var(--ios-accent-blue) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 半透明卡片 iOS 风格 */
.translucent {
    background: var(--ios-bg-card) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
}

/* 悬停效果优化 */
.lev-animation:hover {
    box-shadow: var(--ios-shadow-lg) !important;
}

/* 价格和重点信息突出 */
.item-price {
    color: var(--ios-price-color) !important;
    font-weight: 700 !important;
}

/* 成功/库存状态颜色 */
.text-success {
    color: #34c759 !important;
}

/* 信任标记 iOS 风格 */
.trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 122, 255, 0.1);
    color: var(--ios-accent-blue);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 122, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.01em;
}

/* 商品数量徽章 iOS 风格 */
.item-count-badge-tree {
    background: rgba(0, 122, 255, 0.12) !important;
    color: var(--ios-accent-blue) !important;
    font-weight: 600;
    border-radius: 10px !important;
    padding: 3px 9px !important;
    font-size: 13px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: -0.01em;
}

/* ========================================
   商品列表图标优化样式
   ======================================== */

/* 表头图标样式 */
.table thead th i {
    margin-right: 6px;
    color: var(--fresh-accent-blue);
    font-size: 16px;
}

/* 商品名称文本 */
.item-name-text {
    font-weight: 500;
}

/* 价格数值（移除图标，只保留样式） */
.price-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--fresh-price-color);
}

/* 库存单元格 */
.stock-cell {
    color: #10b981 !important;
}

.stock-value {
    font-weight: 600;
    font-size: 15px;
    color: #10b981;
}

/* 批发图标 */
.wholesale-icon {
    margin-left: 6px;
    color: #f59e0b !important;
    font-size: 16px;
    animation: bounce-icon 1.5s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 购买按钮 iOS 风格 */
.btn-buy-it {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--ios-accent-blue);
    color: white !important;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 122, 255, 0.2);
    letter-spacing: -0.01em;
}

.btn-buy-it:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 122, 255, 0.3);
    background: var(--ios-accent-deep);
}

.btn-buy-it:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-buy-it i {
    font-size: 11px;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* 表格行悬停效果 iOS 风格 */
.item-content {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-content:hover {
    background: rgba(0, 122, 255, 0.04) !important;
}

.item-content:hover .item-icon {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.item-icon {
    width: 36px;
    height: 36px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 表格垂直对齐修复 */
.table td {
    vertical-align: middle !important;
    padding: 14px 12px !important;
}

.table thead th {
    padding: 12px 12px !important;
    background: rgba(0, 0, 0, 0.015);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    font-size: 14px;
}

/* ======================================== */

/* Logo 和图标圆润优化 */
header .shop-logo {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

header .shop-logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* ======================================== */

* {
    font-family: "微软雅黑", serif;
}

.site-notice img {
    max-width: 100%;
    border-radius: 4px;
}

.site-notice video {
    max-width: 100%;
}

.site-notice iframe {
    max-width: 100%;
}

header .input-search, header .input-search:focus {
    background-color: #ffffff1c;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

header .container ul li a {
    font-size: 16px;
    text-shadow: 2px 2px 4px #a9c9fd;
}

.text-shadow {
    color: whitesmoke; /* 深灰色字体 */
    text-shadow: 2px 2px 4px #aaa, /* 第一层阴影，浅灰 */ -2px -2px 6px #555, /* 第二层阴影，深灰 */ 2px -2px 6px #333, /* 第三层阴影，更深灰 */ -2px 2px 8px #111; /* 第四层阴影，几乎黑色 */
}

header .shop-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 2.1rem !important;
    display: flex !important;
    align-items: center !important;
    /* justify-content: center !important;*/
    padding: 0 2.25rem 0 .75rem;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}


.select2-container .select2-selection--single {
    height: auto !important;
    padding: 0 2.25rem 0 .75rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.05rem !important;
}

header .container .active a {
    color: #538ce9 !important;
}

main .site-notice p {
    margin-bottom: 0;
}

main .category .card-body {
    padding-bottom: 0;
}

main .category .category-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

main .category .category-name {
    text-shadow: 2px 2px 4px rgb(218 163 0 / 60%);
    color: #d7af24;
    font-size: 15px;
}

main .category .item-icon {
    width: 22px;
    height: 22px;
}

.nowrap {
    white-space: nowrap;
}


.lev-animation {
    transition: transform 0.2s ease-in-out;
}

.lev-animation:hover {
    transform: translateY(-5px);
    box-shadow: #57e3edba 0px 0px 20px 1px;
}


.font-animation {
    transition: transform 0.2s ease-in-out;
}

.font-animation:hover {
    transform: translateY(-2px);
}

main .category .item-content a {
    text-decoration: none;
}

main .category .item-content .item-price {
    color: #ff5000;
}


main .item-table {
    border-collapse: separate;
    border-spacing: 0 3px;
}

/* 商品条目单元格 iOS 风格 */
.item-content td {
    padding: 10px 12px !important;
}

main .category table tr:last-child td {
    border-bottom: none;
}

main .category table tr {
    border-bottom: 1px solid rgba(214, 212, 230, 0.23);
    background: transparent !important;
}

.table > :not(caption) > * > * {
    background: transparent !important;
}


/**
订单查询
 */

.flex-container {
    display: flex;
    align-items: center;
}

.item-info .item-logo {
    margin-right: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    width: 50px; /* 容器宽度 */
    height: 50px; /* 容器高度 */
    overflow: hidden; /* 隐藏溢出容器的部分 */
    display: flex; /* 使用Flexbox来居中图片 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    border-radius: 10px;
}

.item-info .item-logo img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* 裁剪图片以保持宽高比，覆盖容器 */
    object-position: center; /* 图片居中 */
}

.item-info .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* 确保有足够的高度进行对齐 */
}

.item-info .item-content .item-name {
    font-weight: bold;
    font-size: 18px;
    color: #5077c0;
    margin-bottom: 4px;
}

.item-info .item-content .item-sku-name {
    color: #2ab875;
}


.order-card {
    background-color: rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background-color: #6c96f9;
    color: #ffffff;
    padding: 12px;
}

.order-header h2 {
    margin: 0;
}

.order-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-info span {
    display: block;
    margin-bottom: 5px;
}

.order-pay-type pay {
    color: #0dc8ff;
}


.order-pay-type img {
    width: 16px;
    height: 16px;
    position: relative;
    top: -0.095rem;
}

.order-pay-type .pay-name {
    font-weight: bold;
    color: #5f8bf3;
}

@media (max-width: 768px) {
    .order-body {
        flex-direction: column;
    }
}

.search-order-btn {
    cursor: pointer;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.32);
    border: none;
}

.search-order-keyword, .search-order-keyword:focus {
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.32);
    border: none;
    color: #ffffff;
}

.table-vcenter td, .table-vcenter th {
    vertical-align: middle;
}

.category table th {
    color: #859cfa;
    font-size: 15px;
    font-weight: normal;
}


/**
购物车
 */
.table-cart tbody tr:not(:last-child) {
    border-bottom: 20px solid transparent;
}

.quantity-change {
    display: flex;
    align-items: stretch; /* 确保按钮和输入框高度一致 */
    border: 1px solid #e9ddf7; /* 整体边框 */
    width: 88px;
    border-radius: 10px;
}

.quantity-change button,
.quantity-change input[type="text"] {
    display: block;
    flex: 0 0 auto; /* 确保按钮和输入框平分空间 */
    text-align: center;
    line-height: 30px; /* 调整行高以垂直居中文本 */
    font-size: 14px;
}

.quantity-change .change-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.quantity-change .change-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.quantity-change button {
    background-color: #fff5fd63;
    border: none;
    cursor: pointer;
    color: #333;
    width: 24px;
}

/* 移除输入框的外观，使其看起来与按钮融为一体 */
.quantity-change input[type="text"] {
    border: none;
    outline: none;
    margin: 0; /* 移除默认的外边距 */
    width: 38px;
    color: #31a2d6;
}

/* 添加分隔线来区分按钮和输入框 */
.quantity-change button:first-child,
.quantity-change input[type="text"] {
    border-right: 1px solid #e9ddf7;
}

.quantity-change button:last-child {
    border-left: 1px solid #e9ddf7;
}

/* 鼠标悬停效果 */
.quantity-change button:hover {
    background-color: #e0e0e0;
}

.cart-widgets {
    /* 基础样式 */
    padding: 10px;
    position: relative; /* 为了定位修改按钮 */
    border: 2px solid transparent; /* 设置一个透明边框以防止内容跳动 */
}

.cart-widget-edit {
    /* 修改按钮的初始样式 */
    position: absolute;
    top: -12px;
    right: -12px;
    padding: 2px 5px;
    background-color: #f40;
    border: none;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    font-size: 12px;
    color: white;
    visibility: hidden; /* 初始隐藏 */
    margin: 10px; /* 根据容器的padding值调整，确保显示在虚线内 */
    cursor: pointer;
}

.cart-widgets:hover {
    /* 鼠标悬停时的虚线边框 */
    border: 2px dashed #ccc;
}

.cart-widgets:hover .cart-widget-edit {
    /* 鼠标悬停时显示修改按钮 */
    visibility: visible; /* 显示修改按钮 */
}

.cart-widget:not(:last-child) {
    /* 商品信息的基础样式 */
    margin-bottom: 8px; /* 商品信息之间的间距 */
}

.block-cart-btn {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 两个按钮分别对齐到容器的两侧 */
    width: 100%; /* 容器宽度设置为 100%，确保充满父容器 */
}

.btn-cart-bill, .btn-cart-clear {
    border: 1px solid transparent; /* 设置透明边框 */
    color: white; /* 设置文字颜色 */
    text-align: center; /* 文字居中 */
    padding: 8px 16px; /* 设置内边距 */
    font-size: 14px; /* 设置字体大小 */
    transition: background-color 0.3s, color 0.3s; /* 添加过渡动画 */
    cursor: pointer; /* 设置鼠标指针为手型 */
    width: auto; /* 宽度自动，根据内容调整 */
    border-radius: 5px;
}

.btn-cart-bill {
    background-color: #007bff7a; /* 结账按钮的背景颜色 */
    margin-left: auto; /* 推到右边 */

}

.btn-cart-clear {
    background-color: #e93344b8; /* 清空购物车按钮的背景颜色 */
    margin-right: auto; /* 推到左边 */
}

.btn-cart-bill:hover, .btn-cart-clear:hover {
    opacity: 0.8; /* 鼠标悬停时的透明度变化，添加视觉反馈 */
}

.sku-quantity-wrapper {
    display: flex;
    align-items: center; /* 确保内容在垂直方向上居中对齐 */
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-bottom-width: 0 !important;
}

.sku-quantity-wrapper .quantity-input {
    width: 100px;
    border-radius: 4px 0 0 4px; /* 只对输入框的左侧和上下设置圆角 */
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
    background-color: #fff;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #dfe3ea;
    border-right: none; /* 移除输入框右侧的边框，使其和库存数量看起来更连贯 */
}

@media (max-width: 767.98px) {
    .sku-quantity-wrapper .quantity-input {
        width: 50px;
    }
}

.sku-stock {
    padding: .53rem .75rem; /* 添加一些内边距 */
    border: 1px solid #ccc; /* 设置边框颜色保持一致性 */
    border-radius: 0 4px 4px 0; /* 只对库存数量的右侧和上下设置圆角 */
    font-size: 0.9rem; /* 调整字体大小以匹配输入框 */
    font-weight: 400;
    color: white;
    border-left: none;
}

.sku-wholesale {
    padding: .53rem .75rem; /* 添加一些内边距 */
    border: 1px solid #ccc; /* 设置边框颜色保持一致性 */
    font-size: 0.9rem; /* 调整字体大小以匹配输入框 */
    font-weight: 400;
    color: white;
    border-left: none;
    border-right: none;
    background: #ee6969;
    cursor: pointer;
}


/**
商品页面
 */

.item-title-content {
    background: #ebeef2;
    background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));
    border-radius: 10px;
    padding: 15px;
}

.item-controls {
    margin-top: 5px;
    /*   background: #ebeef2;*/
    /*background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));*/
    border-radius: 10px;
    padding: 15px;
}

.item-controls .table tr {
    border-style: hidden !important;
}

.sku-wrapper {
    display: flex; /* 启用Flexbox */
    flex-wrap: wrap; /* 允许子元素换行 */
}

.sku-item {
    flex: 0 1 auto;
    display: inline-block;
    margin-right: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #ffffffa6;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background: linear-gradient(to right, rgb(211, 204, 227), rgb(233, 228, 240));
    align-items: center;
    display: flex;
    margin-top: 4px;
    margin-bottom: 4px;
    transition: transform 0.5s ease-in-out; /* 应用于位置变化 */
    animation: fadeIn 0.5s ease-out; /* 使用fadeIn动画，持续时间1秒，缓动函数ease-out */
}

.sku-current {
    border: 1px solid #87cbd485;
    background: linear-gradient(to right, rgb(185 241 215), rgb(243 255 246)) !important;
}

.sku-wrapper .sku-item .sku-icon {
    display: flex;
    align-items: center; /* 确保图片在.sku-icon内垂直居中 */
    justify-content: center; /* 如果你还想要图片水平居中 */
    margin-right: 5px;
}

.sku-wrapper .sku-item .sku-icon img {
    height: 24px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 4px;
}

.sku-cate-td {
    vertical-align: middle;
    padding: 0 0 0 10px !important;
}

.sku-cate-td .cate-name {
    font-size: 16px;
    color: #7f7f7f;
    font-weight: revert;
}

.table .sku-attr-value {
    word-break: break-word; /* 对于较长的单词进行断行 */
    overflow-wrap: break-word; /* 确保内容被适当地包裹 */
}

.item-controls .form-check {
    min-height: inherit !important;
    margin-bottom: inherit !important;
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .sku-item:active {
        transform: scale(1.01);
    }

    .introduce-content img {
        height: auto !important;
    }

    .introduce-content video {
        height: auto !important;
    }

    .introduce-content iframe {
        height: auto !important;
    }
}

@media (min-width: 992px) {
    .sku-item:not(article) {
        transition: all 0.4s;
    }

    .sku-item:not(article):hover {
        transform: translateY(-4px);
        box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    }
}

.introduce-content img {
    max-width: 100%;
}

.introduce-content video {
    max-width: 100%;
}

.introduce-content iframe {
    max-width: 100%;
}

.shop-checkout-btn {
    display: flex; /* 按钮并排显示 */
}

.checkout-btn {
    flex: 0 1 auto; /* 确保按钮平均分配空间 */
    border: none; /* 移除边框 */
    color: white; /* 文字颜色设置为白色 */
    padding: 10px 20px; /* 按钮内边距 */
    cursor: pointer; /* 鼠标悬停时显示指针 */
    outline: none; /* 移除焦点时的边框 */
    box-shadow: rgba(255, 203, 0, 0.2) 0px 9px 13px 0px;
    width: 160px;
}


.btn-buy-now {
    background: linear-gradient(90deg, rgb(255, 119, 0), rgb(255, 73, 0)); /* 左按钮背景渐变 */
    border-right: none; /* 移除右边框以避免中间出现间隔 */
}

.btn-add-cart {
    background: linear-gradient(90deg, rgb(255, 203, 0), rgb(255, 148, 2)); /* 右按钮背景渐变 */
}

.btn-no-stock {
    background: linear-gradient(90deg, #d9dfe8, #999);
    border-radius: 34px;
}

/* 为了更好的视觉效果，可能需要调整按钮的圆角 */
.shop-checkout-btn .btn-buy-now {
    border-top-left-radius: 34px; /* 左上角圆角 */
    border-bottom-left-radius: 34px; /* 左下角圆角 */
}

.shop-checkout-btn .btn-add-cart, .shop-checkout-btn .btn-add-stock {
    border-top-right-radius: 34px; /* 右上角圆角 */
    border-bottom-right-radius: 34px; /* 右下角圆角 */
}

.bg-gradient-blue {
    background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));
}

.bg-lime-green {
    background: #44ca6d;
}

.bg-light-gray {
    background: #d2d2d2;
}


.item-image-main {
    background: linear-gradient(to right, rgb(156 119 255 / 33%), rgb(244 255 249));
    padding: 2px !important;
    height: 236px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
}

.item-image-main .img-link {
    display: revert !important;
}

.item-image-show {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    cursor: pointer;
}

.item-image-list {
    margin-top: 5px;
    text-align: center;
    background: linear-gradient(to right, rgb(106 151 181 / 7%), rgb(233 213 252 / 27%));
    border-radius: 10px;
    padding: 5px 0px;
    display: flex; /* 使用 flex 布局使图片横向排列 */
    overflow-x: hidden; /* 隐藏水平滚动条但允许滚动 */
    overflow-y: hidden;
    white-space: nowrap; /* 防止图片换行 */
    position: relative; /* 定位，以便于控制滚动 */
}

.item-image-list .item-image-sku-mini.image-active {
    border: 1px solid #ff87c4;
}

.item-image-list .item-image-sku-mini:hover {
    transform: scale(1.1);
}

.item-image-list .item-image-sku-mini:first-child {
    margin-left: 2px;
}

.item-image-list .item-image-sku-mini {
    cursor: pointer;
    border-radius: 4px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    display: inline-block;
    transition: transform 0.1s ease;
    transform: scale(1);
    flex: 0 0 auto;
    margin-right: 5px;
}

.item-image-list img {
    height: 64px;
    width: 64px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}


.transparency {
    background: #ffffff00;
}

.translucent {
    background-color: #ffffffc4 !important;
}

.border-bottom {
    border-bottom: 1px solid rgba(128, 128, 128, 0.06) !important;
}

.shadow-block {
    box-shadow: rgb(214 220 255 / 73%) 4px 4px 20px 4px;
    border-radius: 0 !important;
}


/**
  checkout
 */


.shop-checkout-pay-btn {
    display: flex;
    justify-content: center; /* 将子元素居中对齐 */
    align-items: center; /* 垂直居中 */
    gap: 20px; /* 设置按钮之间的间距，可以根据需要调整 */
    margin-bottom: 40px;
}

.btn-pay-now, .btn-cancel-order {
    padding: 10px 20px; /* 按钮内边距，可以根据需要调整 */
    border: 1px solid transparent; /* 去除边框，或根据需要调整 */
    background-color: #5aabf645; /* 设置支付按钮的背景颜色，可以根据需要调整 */
    color: white; /* 文字颜色 */
    cursor: pointer; /* 鼠标悬停时显示手指指针 */
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

.btn-cancel-order {
    background-color: rgba(204, 204, 204, 0.51); /* 设置取消按钮的背景颜色，可以根据需要调整 */
}


.render-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2), 0 0 20px 5px rgb(253, 224, 244);
}

.render-pay .pay-icon {
    display: flex; /* 启用Flexbox布局 */
    align-items: center; /* 垂直居中所有子元素 */
    justify-content: center; /* 水平居中所有子元素（如果需要） */
    margin: 10px auto 25px auto;
    font-weight: bold;
    font-size: 26px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), /* 添加阴影效果 */ -2px -2px 4px rgba(255, 255, 255, 0.5); /* 可选：添加更多层次的阴影以增强立体感 */
}

.render-pay .pay-icon svg {
    vertical-align: middle;
    width: 1.1em;
    height: 1.1em;
}

.pay-icon-alipay {
    color: #1578ff;
}

.pay-icon-wxpay {
    color: #26b240;
}

.pay-icon-qqpay {
    color: #0099fe;
}

.pay-title span {
    margin-left: 1px;
    margin-right: 1px;;
}

.hour {
    color: #c8a531;
}

.minute {
    color: #28a745; /* 绿色背景 */
}

.second {
    color: #dc3545; /* 红色背景 */
}

.time-title {
    color: #5d75a0;
}

@media (max-width: 767.98px) {
    .pay-item:active {
        transform: scale(1.01);
    }
}

@media (min-width: 992px) {
    .pay-item:not(article) {
        transition: all 0.4s;
    }

    .pay-item:not(article):hover {
        transform: translateY(-4px);
    }
}

.shop-checkout table tbody,
.shop-checkout table td,
.shop-checkout table tfoot,
.shop-checkout table th,
.shop-checkout table thead,
.shop-checkout table tr
.shop-cart table tbody,
.shop-cart table td,
.shop-cart table tfoot,
.shop-cart table th,
.shop-cart table thead,
.shop-cart table tr {
    border-color: inherit;
    border-style: none;
    border-width: 0;
}


/**
支付功能
 */

.pay-container .layout-box {
    margin-bottom: 16px;
    margin-top: 10px;
}

.pay-container .layout-box .title {
    margin-bottom: 8px;
    color: #9e9c9c;
}

.pay-container .pay-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; /* 确保列表项靠左对齐 */
    margin: 0 -10px;
}

.pay-container .pay-list .pay-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    margin: 6px 10px 6px 10px;
    border: none;
    border-radius: 0;
    background-color: #f9f9f96b !important;
    transition: all 0.3s ease;
    background-image: none;
    color: #4d7c83;
}

.pay-container .pay-list .pay-item img {
    width: 26px;
    height: 26px;
    margin-right: 6px;
}

.pay-container .pay-list .pay-item:hover, .pay-container .pay-list .pay-item:focus {
    border-color: #aca8ff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
    background-color: #eef4fe;
}

.pay-container .pay-list .pay-current {
    background-color: #accdf1c2 !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pay-container button {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: 8px;
}

.pay-container button:hover {
    background-color: #0056b3;
}

.btn-pay-now[disabled="disabled"] {
    background-color: rgba(204, 204, 204, 0.51);
    cursor: not-allowed;
}


.shop-name {
    display: inline-flex; /* 使用flex布局让图标和名称在同一行显示 */
    align-items: center; /* 垂直居中对齐 */
    padding: 5px 8px; /* 添加一些内边距让它看起来不那么拥挤 */
    border-radius: 8px; /* 给元素添加圆角边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加一些阴影效果让它立体一些 */
    transition: all 0.3s ease; /* 添加一个过渡效果让鼠标悬停时有一个小动画 */
    cursor: pointer;
}


.shop-name .shop-logo {
    width: 26px; /* 图标的大小，根据需要调整 */
    height: 26px; /* 图标的大小，根据需要调整 */
    border-radius: 50%; /* 使图标变成圆形 */
    margin-right: 6px; /* 在图标和名称之间添加一些间隔 */
}

.shop-name .shop-title {
    font-size: 20px; /* 名称的字体大小，根据需要调整 */

    font-weight: bolder;
    white-space: nowrap;
}

.block-notice img {
    max-width: 100%;
}

.block-notice video {
    max-width: 100%;
}

.block-notice iframe {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .block-notice img, .block-notice video, .block-notice iframe {
        height: auto !important;
    }
}


/* 语言切换按钮 iOS 风格 */
.language-select-theme {
    width: auto !important;
    position: relative;
    z-index: 1050;
}

.language-select-theme.select2-container {
    z-index: 1050 !important;
}

.language-select-theme.select2-container--open {
    z-index: 1060 !important;
}

.language-select-theme .select2-dropdown {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: var(--ios-shadow-xl) !important;
    border-radius: 12px !important;
    padding: 6px !important;
    margin-top: 4px !important;
    z-index: 9999 !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

.language-select-theme .select2-dropdown .select2-results__options:not(.select2-results__options--nested) {
    max-height: initial !important;
    overflow: hidden;
}

.language-select-theme .select2-results__option {
    color: var(--ios-text-primary) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    letter-spacing: -0.01em;
}

.language-select-theme .select2-results__option:hover,
.language-select-theme .select2-results__option--highlighted {
    background: var(--ios-hover-bg) !important;
    color: var(--ios-accent-blue) !important;
}

.language-select-theme .select2-results__option[aria-selected=true] {
    background: rgba(0, 122, 255, 0.12) !important;
    color: var(--ios-accent-blue) !important;
    font-weight: 600;
}

.language-select-theme.select2-container--open {
    width: 150px !important;
}

.language-select-theme.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--ios-accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1) !important;
}

.language-select-theme .select2-selection {
    background: rgba(142, 142, 147, 0.12) !important;
    border: 1px solid transparent !important;
    color: var(--ios-text-primary) !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.language-select-theme .select2-selection:hover {
    background: rgba(142, 142, 147, 0.18) !important;
}

.language-select-theme .select2-selection--single {
    background-image: none !important;
    display: flex !important;
    align-items: center !important;
}

.language-select-theme .select2-selection__arrow {
    position: relative !important;
    height: auto !important;
    right: 0 !important;
    top: 0 !important;
    width: 20px !important;
    margin-left: 8px !important;
    flex-shrink: 0 !important;
}

.language-select-theme .select2-selection__arrow b {
    border-color: var(--ios-text-secondary) transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    height: 0 !important;
    left: 50% !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

.language-select-theme .select2-selection__rendered {
    color: var(--ios-text-primary) !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0 !important;
    line-height: 20px !important;
    flex: 1 !important;
    display: block !important;
}

.language-select-theme .select2-selection__rendered .table-item-name {
    color: var(--ios-text-primary) !important;
}


@media (min-width: 768px) {
    .w-pc {
        min-width: 100px;
    }
}

.fenlei .cccccc {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* 商品分类整体容器优化 */
.fenlei {
    padding: 20px !important;
    border-radius: 15px !important;
}

/* 分类标题样式 */
.fenlei .card-title {
    margin-bottom: 16px !important;
    font-size: 15px;
    font-weight: 500;
}

.fenlei .card-title .category-name {
    color: #5a7fc4;
    text-shadow: 2px 2px 5px rgba(90, 127, 196, 0.3);
    font-weight: 600;
    margin-left: 8px;
}

.fenlei .card-title i {
    color: #5a7fc4;
    font-size: 20px;
}

/* 分类链接容器 */
.fenlei-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
}

/* 分类链接项样式 */
.fenlei a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    border: 2px solid transparent;
    text-decoration: none;
    /*color: #5a7fc4;*/
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(90, 127, 196, 0.1);
    position: relative;
    overflow: hidden;
}

.fenlei a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 127, 196, 0.25);
    background: linear-gradient(135deg, #e8f2ff 0%, #d1e7ff 100%);
    color: #4a6ba3;
    text-decoration: none;
}

.fenlei a:hover .cccccc {
    transform: scale(1.1);
}

/* 选中状态样式 */
.fenlei a.active,
.fenlei a.selected {
    background: linear-gradient(135deg, rgba(214, 220, 255, 0.9) 0%, rgba(214, 220, 255, 0.7) 100%);
    color: #4a6ba3;
    border: 2px solid rgba(214, 220, 255, 0.8);
    box-shadow: rgba(214, 220, 255, 0.73) 2px 2px 12px 2px;
    font-weight: 600;
}

.fenlei a.active:hover,
.fenlei a.selected:hover {
    background: linear-gradient(135deg, rgba(214, 220, 255, 1) 0%, rgba(214, 220, 255, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: rgba(214, 220, 255, 0.73) 4px 4px 20px 4px;
    color: #3a5a93;
}

/* 分类图标样式 */
.fenlei a .cccccc {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

/* 分类文字样式 */
.fenlei a span {
    font-family: "微软雅黑", sans-serif;
    letter-spacing: 0.5px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .fenlei {
        padding: 15px !important;
    }
    
    .fenlei a {
        padding: 8px 12px;
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .fenlei .card-title {
        font-size: 16px;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 576px) {
    .fenlei-links {
        gap: 8px;
    }
    
    .fenlei a {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .fenlei a .cccccc {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
}


/* ========================================
   树形菜单布局样式 - ShuishangyouqiTree
   ======================================== */

/* 主布局容器 - 左右两列 */
.main-layout-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 分类菜单容器 */
.category-menu-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
}

/* 分类项容器 */
.category-item-tree {
    position: relative;
}

/* 隐藏的 checkbox（用于控制折叠） */
.cat-toggle-tree {
    display: none;
}

/* 分类文字 */
.category-text-tree {
    flex: 1;
    font-family: "微软雅黑", sans-serif;
    letter-spacing: 0.5px;
}

/* 商品数量徽章 */
.item-count-badge-tree {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(90, 127, 196, 0.15);
    border-radius: 12px;
    font-size: 11px;
    color: #5a7fc4;
    font-weight: 600;
}

.category-link-tree.active .item-count-badge-tree,
.category-label-tree.active .item-count-badge-tree,
.category-child-link-tree.active .item-count-badge-tree {
    background: rgba(90, 127, 196, 0.3);
}

/* 推荐商品特殊样式 */
.recommend-item .category-link-tree {
    background: rgba(255, 245, 230, 0.5);
    color: #c99a1f;
    font-weight: 600;
}

.recommend-item .category-link-tree:hover {
    background: rgba(255, 237, 210, 0.8);
    color: #b88a1b;
}

.recommend-item .category-link-tree.active {
    background: rgba(255, 220, 180, 0.9);
    color: #a67a16;
}

/* 右侧商品区域 */
.product-area-tree {
    flex: 1;
    min-width: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .main-layout-container {
        flex-direction: column;
    }

    .category-sidebar-tree {
        position: static;
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        max-height: 400px;
    }

    .product-area-tree {
        width: 100%;
    }

    /* 移动端商品列表优化 - 精美卡片式布局 */
    .item-table {
        display: block;
    }

    .item-table thead,
    .item-table tbody,
    .item-table tr {
        display: block;
    }

    /* 表头在移动端隐藏 */
    .item-table thead {
        display: none;
    }

    /* 每个商品变成精美卡片 */
    .item-table tbody tr {
        display: block;
        padding: 14px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 14px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .item-table tbody tr:hover {
        background: rgba(0, 122, 255, 0.05);
        border-color: rgba(0, 122, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 122, 255, 0.12);
        transform: translateY(-2px);
    }

    .item-table tbody tr td {
        display: block;
        padding: 0 !important;
        border: none !important;
    }

    /* 商品信息区域（图片+名称） */
    .item-table tbody tr td:first-child {
        margin-bottom: 12px;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    }

    .item-link-simple {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    .item-icon {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }

    .item-name-text {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.4;
    }

    /* 底部信息区域 - 使用固定宽度确保对齐 */
    .item-table tbody tr td:not(:first-child) {
        display: inline-block;
        vertical-align: top;
        padding: 0 !important;
    }

    /* 价格区域 - 固定宽度 */
    .item-table tbody tr td:nth-child(2) {
        width: 35%;
    }

    /* 价格样式 - 左侧 */
    .item-table .item-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 8px 0;
    }

    .item-table .item-price::before {
        content: '价格';
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--ios-text-secondary);
        margin-bottom: 4px;
    }

    .price-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--ios-price-color);
        letter-spacing: -0.5px;
        font-variant-numeric: tabular-nums;
    }

    /* 库存区域 - 固定宽度 */
    .item-table tbody tr td:nth-child(3) {
        width: 28%;
    }

    /* 库存样式 - 中间 */
    .item-table .stock-cell {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 8px 0;
        margin: 0;
    }

    .item-table .stock-cell::before {
        content: '库存';
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--ios-text-secondary);
        margin-bottom: 4px;
    }

    .stock-value {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.5px;
        font-variant-numeric: tabular-nums;
    }

    /* 购买按钮区域 - 自适应剩余宽度 */
    .item-table tbody tr td:last-child {
        width: auto;
        float: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        padding-top: 8px !important;
    }

    .btn-buy-it {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        min-width: 85px;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
    }

    .btn-buy-it i {
        font-size: 11px;
    }

    .btn-buy-it:active {
        transform: scale(0.95);
    }

    /* 隐藏PC端的最小宽度限制 */
    .item-table .w-pc {
        min-width: auto !important;
    }

    .item-table .nowrap {
        white-space: normal;
    }

    /* 底部信息容器 - 使用flexbox居中对齐 */
    .item-table tbody tr::after {
        content: '';
        display: table;
        clear: both;
    }
}

@media (max-width: 576px) {
    .category-sidebar-tree {
        padding: 15px 0;
        max-height: 350px;
    }

    .sidebar-header {
        padding: 0 10px 12px 10px;
    }

    .sidebar-title {
        font-size: 14px;
    }

    .category-link-tree,
    .category-label-tree {
        padding: 10px;
        font-size: 13px;
    }

    .category-icon-tree {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .category-child-link-tree {
        padding: 8px 10px 8px 25px;
        font-size: 12px;
    }
}

@media print {
    .category-sidebar-tree {
        display: none;
    }

    .product-area-tree {
        width: 100%;
    }
}

/* ========================================
   iOS 风格细节优化
   ======================================== */

/* 滚动条 iOS 风格 */
.category-sidebar-tree::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar-tree::-webkit-scrollbar-track {
    background: transparent;
}

.category-sidebar-tree::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    transition: all 0.2s;
}

.category-sidebar-tree::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 侧边栏头部 iOS 风格 */
.sidebar-header {
    padding: 14px 16px 12px 16px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    color: var(--ios-text-primary);
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.sidebar-title i {
    font-size: 15px;
    color: var(--ios-accent-blue);
}

/* Logo 和图标 iOS 风格 */
header .shop-logo {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 122, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

header .shop-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 122, 255, 0.2);
}

/* 用户头像 iOS 风格 */
.user-dropdown {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown img {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown:hover img {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Header 用户下拉按钮 iOS 风格 */
header .dropdown {
    position: relative;
    z-index: 1050;
}

header .dropdown-toggle {
    border-radius: 20px;
    padding: 4px 10px 4px 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

header .dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

header .dropdown-toggle span {
    font-size: 14px;
    margin-left: 6px;
}

/* 分类图标 iOS 风格 */
.category-icon-tree {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-link-tree:hover .category-icon-tree,
.category-label-tree:hover .category-icon-tree {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2);
}

/* 展开图标旋转动画 */
.expand-icon-tree {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    color: var(--ios-text-secondary);
}

.cat-toggle-tree:checked ~ .category-label-tree .expand-icon-tree {
    transform: translateY(-50%) rotate(90deg);
    color: var(--ios-accent-blue);
}

/* Footer iOS 风格 */
footer {
    background: rgba(255, 255, 255, 0.70) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: var(--ios-text-secondary) !important;
    border-radius: 0;
    margin-top: 32px;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.04);
}

footer a {
    color: var(--ios-accent-blue) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

footer a:hover {
    color: var(--ios-accent-deep) !important;
}

/* 价格数值 iOS 风格 */
.price-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--ios-price-color);
    letter-spacing: -0.02em;
}

/* 库存单元格 iOS 风格 */
.stock-cell {
    color: #34c759 !important;
}

.stock-value {
    font-weight: 600;
    font-size: 15px;
    color: #34c759;
    letter-spacing: -0.01em;
}

/* 批发图标 */
.wholesale-icon {
    margin-left: 5px;
    color: var(--ios-price-color) !important;
    font-size: 15px;
    animation: bounce-icon 1.5s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* 商品名称链接 iOS 风格 */
.item-link-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ios-text-primary) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.item-link-simple:hover {
    color: var(--ios-accent-blue) !important;
}

/* 商品名称文本 */
.item-name-text {
    font-weight: 500;
    font-size: 15px;
}

/* 表头图标样式 */
.table thead th i {
    margin-right: 5px;
    color: var(--ios-accent-blue);
    font-size: 15px;
}

/* 修复 Base.css 中缺少 .d-show 定义的问题 */
/* Base.css 只定义了 .d-hide{display:none}，但没有 .d-show，导致两个按钮同时显示 */

/* 通用的显示/隐藏类定义 */
.d-show {
    display: block !important;
}

.d-hide {
    display: none !important;
}

/* 针对 shop-checkout-btn 的特殊处理（需要 flex 布局） */
.shop-checkout-btn.d-show {
    display: flex !important;
}

.shop-checkout-btn.d-hide {
    display: none !important;
}