/**
 * ============================================================
 * RiPro-V5 跨境电商 UI 主题
 * Cross-Border E-Commerce Visual Style
 * ============================================================
 *
 * 设计灵感：
 * - AliExpress (橙红主色 + 大促氛围)
 * - Amazon (深色导航 + 黄色CTA)
 * - Shopee (暖橙主色 + 圆角卡片)
 * - Mercado Libre (黄蓝对比 + 大图展示)
 *
 * 版本：2.0.0 (去重合并版)
 * 最后更新：2026-07-09
 * ============================================================ */

/* ============================================
   1. CSS 变量覆盖 — 跨境电商配色体系
   ============================================ */
:root,
[data-bs-theme="light"] {
    --ri-blue: #FF4747;
    --ri-primary: #FF4747;
    --ri-primary-rgb: 255, 71, 71;
    --ri-primary-text: #CC1F1F;
    --ri-primary-bg-subtle: #FFE0E0;
    --ri-primary-border-subtle: #FFB8B8;
    --ri-success: #00A650;
    --ri-success-rgb: 0, 166, 80;
    --ri-success-text: #008540;
    --ri-success-bg-subtle: #CCF0DD;
    --ri-success-border-subtle: #99E2BB;
    --ri-warning: #FF8C00;
    --ri-warning-rgb: 255, 140, 0;
    --ri-warning-text: #CC7000;
    --ri-warning-bg-subtle: #FFE8CC;
    --ri-warning-border-subtle: #FFD199;
    --ri-danger: #E63946;
    --ri-danger-rgb: 230, 57, 70;
    --ri-danger-text: #B82E38;
    --ri-danger-bg-subtle: #FAD7DA;
    --ri-danger-border-subtle: #F5B0B5;
    --ri-info: #3483FA;
    --ri-info-rgb: 52, 131, 250;
    --ri-info-text: #1E5FC9;
    --ri-info-bg-subtle: #D6E6FE;
    --ri-info-border-subtle: #AECEFC;
    --ri-dark: #1B1B2F;
    --ri-dark-rgb: 27, 27, 47;
    --ri-dark-text: #0F0F1A;
    --ri-dark-bg-subtle: #CFCFD6;
    --ri-dark-border-subtle: #A0A0AD;
    --ri-gray-dark: #1B1B2F;
    --ri-gray-900: #0F0F1A;
    --ri-gray-800: #1B1B2F;
    --ri-gray-700: #2D2D44;
    --ri-gray-600: #5A5A72;
    --ri-secondary: #5A5A72;
    --ri-secondary-rgb: 90, 90, 114;
    --ri-secondary-text: #3D3D52;
    --ri-secondary-bg-subtle: #F2F2F5;
    --ri-secondary-border-subtle: #E0E0E5;
    --ri-gray: #8E8EA0;
    --ri-gray-500: #8E8EA0;
    --ri-gray-400: #C0C0CC;
    --ri-gray-300: #DEDEE5;
    --ri-gray-200: #EDEDF0;
    --ri-gray-100: #F5F5F7;
    --ri-body-color-rgb: 45, 45, 68;
    --ri-body-bg-rgb: 242, 242, 247;
    --ri-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   2. 暗黑模式变量覆盖
   ============================================ */
[data-bs-theme="dark"] {
    --ri-body-bg-rgb: 18, 18, 24;
    --ri-body-color-rgb: 220, 220, 230;
    --ri-primary: #FF6B6B;
    --ri-primary-rgb: 255, 107, 107;
    --ri-primary-text: #FF8E8E;
    --ri-primary-bg-subtle: #3D1515;
    --ri-primary-border-subtle: #662222;
    --ri-dark: #F0F0F5;
    --ri-dark-rgb: 240, 240, 245;
    --ri-dark-text: #E0E0EB;
    --ri-dark-bg-subtle: #2A2A3A;
    --ri-dark-border-subtle: #4A4A5A;
    --ri-gray-100: #1E1E2A;
    --ri-gray-200: #2A2A38;
    --ri-gray-300: #3A3A4A;
    --ri-gray-400: #4A4A5C;
    --ri-gray-500: #6E6E82;
    --ri-gray-600: #9090A0;
    --ri-gray-700: #B0B0BE;
    --ri-gray-800: #D0D0DA;
    --ri-gray-900: #F0F0F5;
    --ri-gray-dark: #F0F0F5;
    --ri-secondary: #8E8EA0;
    --ri-secondary-rgb: 142, 142, 160;
    --ri-secondary-text: #A0A0B0;
    --ri-secondary-bg-subtle: #2A2A3A;
    --ri-secondary-border-subtle: #3A3A4A;
    --ri-success: #00D46A;
    --ri-warning: #FFA03A;
    --ri-danger: #FF5A5A;
    --ri-info: #5A9EFF;
}

/* ============================================
   3. 全局基础样式
   ============================================ */
body {
    background-color: #F2F2F7 !important;
    font-family: var(--ri-font-sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2D2D44;
    line-height: 1.6;
}
::selection {
    background-color: var(--ri-primary);
    color: #fff;
}
a {
    color: var(--ri-primary);
    transition: color 0.2s ease;
}
a:hover {
    color: #E63946;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F2F2F7; }
::-webkit-scrollbar-thumb { background: #C0C0CC; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8E8EA0; }

/* ============================================
   4. 页头导航栏 — 跨境电商风格 [合并 S4+S42+S50+S51]
   ============================================ */

/* 顶部工具条 */
.site-header .top-bar {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
    font-size: 12px;
}
.site-header .top-bar a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.site-header .top-bar a:hover { color: #fff; }
.site-header .top-bar .sep {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
}
.site-header .top-bar .promo-text {
    color: var(--ri-primary);
    font-weight: 600;
}
.site-header .top-bar .trust-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-header .top-bar .trust-icons i {
    color: var(--ri-primary);
    font-size: 11px;
}

/* 主导航容器 */
.site-header {
    background: linear-gradient(135deg, #1B1B2F 0%, #2D2D44 100%) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* 导航栏底部光晕 */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 71, 71, 0.4) 50%, transparent 100%);
    z-index: 1040;
}

.navbar {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 56px;
}

/* Logo 区域 */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-wrapper .logo {
    transition: transform 0.2s ease;
}
.logo-wrapper .logo:hover {
    transform: scale(1.03);
}
.logo-wrapper .brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(255, 71, 71, 0.2), rgba(255, 140, 0, 0.2));
    border: 1px solid rgba(255, 71, 71, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #FF8C8C;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 主导航菜单 */
.navbar .nav-list { gap: 4px; }
.navbar .nav-list > .menu-item > a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.01em;
}
.navbar .nav-list > .menu-item > a:hover,
.navbar .nav-list > .menu-item.current-menu-item > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}
.navbar .nav-list > .menu-item.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--ri-primary);
    border-radius: 1px;
}

/* 导航菜单角标 */
.navbar .nav-list > .menu-item > a .menu-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: top;
    line-height: 1.4;
}
.navbar .nav-list > .menu-item > a .menu-badge.hot {
    background: linear-gradient(135deg, #FF4747, #FF8C00);
    color: #fff;
}
.navbar .nav-list > .menu-item > a .menu-badge.new {
    background: linear-gradient(135deg, #00A650, #00C853);
    color: #fff;
}

/* 下拉菜单 */
.navbar .nav-list .sub-menu {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    min-width: 220px;
    margin-top: 8px;
}
.navbar .nav-list .sub-menu:before { border-bottom-color: #fff; }
.navbar .nav-list .sub-menu .menu-item a {
    color: #2D2D44;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.navbar .nav-list .sub-menu .menu-item a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #DEDEE5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.navbar .nav-list .sub-menu .menu-item a:hover {
    background: #F5F5F7;
    color: var(--ri-primary);
    padding-left: 24px;
}
.navbar .nav-list .sub-menu .menu-item a:hover::before {
    background: var(--ri-primary);
    transform: scale(1.3);
}

/* 分隔线 */
.navbar .sep { border-color: rgba(255, 255, 255, 0.15); }

/* 操作按钮 */
.navbar .actions .action-btn {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.navbar .actions .action-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* 购物车/操作按钮角标 */
.navbar .actions .cart-btn,
.navbar .actions .vip-btn { position: relative; }
.navbar .actions .cart-btn .cart-count,
.navbar .actions .vip-btn .vip-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: linear-gradient(135deg, #FF4747, #FF8C00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1B1B2F;
    box-shadow: 0 2px 4px rgba(255, 71, 71, 0.4);
}

/* 登录按钮 */
.navbar .actions .login-btn {
    background: linear-gradient(135deg, var(--ri-primary) 0%, #FF6B6B 100%);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
    transition: all 0.3s ease;
}
.navbar .actions .login-btn:hover {
    box-shadow: 0 4px 16px rgba(255, 71, 71, 0.5);
    transform: translateY(-1px);
}

/* 用户头像菜单 */
.navbar .action-hover-menu .avatar-warp .display-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}
.navbar .action-hover-menu .avatar-warp .display-name:hover { color: #fff; }
.navbar .hover-warp {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* 导航栏搜索 */
.navbar-search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
}
.navbar-search .search-form {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}
.navbar-search .search-form:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 71, 71, 0.15);
}
.navbar-search .search-form .search-select {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.navbar-search .search-form .search-select select {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.navbar-search .search-form .search-fields {
    flex: 1;
    display: flex;
    align-items: center;
}
.navbar-search .search-form .search-fields input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    width: 100%;
}
.navbar-search .search-form .search-fields input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.navbar-search .search-form button[type="submit"] {
    background: var(--ri-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 14px;
    transition: all 0.2s ease;
}
.navbar-search .search-form button[type="submit"]:hover { background: #FF6B6B; }
.navbar-search input[type="text"] { color: #fff; background: transparent; border: none; padding: 8px 16px; font-size: 14px; }
.navbar-search input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.navbar-search button { color: rgba(255, 255, 255, 0.7); background: transparent; border: none; transition: color 0.2s ease; }
.navbar-search button:hover { color: #fff; }

/* 搜索表单（旧版兼容） */
.navbar-search form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.navbar-search form:focus-within {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px rgba(255, 71, 71, 0.3);
}

/* 移动端汉堡菜单 */
.navbar .burger { color: rgba(255, 255, 255, 0.85); }

/* ============================================
   5. 移动端底部导航栏 [合并 S5+S56]
   ============================================ */
.m-navbar {
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #E8E8ED;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.m-navbar ul { gap: 0; }
.m-navbar li a {
    color: #8E8EA0;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.m-navbar li a.active {
    color: var(--ri-primary);
    background: rgba(255, 71, 71, 0.06);
}
.m-navbar li a i { font-size: 20px; margin-bottom: 3px; }

/* ============================================
   6. 侧滑菜单
   ============================================ */
.off-canvas {
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}
.off-canvas .canvas-close { color: #2D2D44; font-size: 20px; }
.off-canvas .mobile-menu a {
    color: #2D2D44;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 4px;
    border-bottom: 1px solid #EDEDF0;
    display: block;
    transition: all 0.2s ease;
}
.off-canvas .mobile-menu a:hover {
    color: var(--ri-primary);
    padding-left: 8px;
}
.dimmer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* ============================================
   7. 产品/文章卡片 — 电商风格 [合并 S7+S54]
   ============================================ */

/* 卡片容器 */
.post-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #EDEDF0;
    position: relative;
}
.post-item:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: #E0E0E5;
}

/* 卡片顶部促销渐变条 */
.item-grid { position: relative; }
.item-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ri-primary), #FF8C00, var(--ri-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border-radius: 2px 2px 0 0;
}
.item-grid:hover::before { transform: scaleX(1); }

/* 覆盖式网格卡片 */
.item-grid.grid-overlay { border-radius: 12px; }

/* 列表卡片 */
.item-list {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EDEDF0;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.item-list:hover {
    border-left-color: var(--ri-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

/* 媒体区域 */
.entry-media {
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F7;
}
.item-grid .entry-media {
    border-radius: 14px 14px 0 0;
    margin: -1px -1px 0 -1px;
    width: calc(100% + 2px);
    background: linear-gradient(135deg, #F5F5F7 0%, #ECECF0 50%, #F0F0F5 100%);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.item-grid .entry-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-grid:hover .entry-media img { transform: scale(1.05); }

/* 无图占位 */
.item-grid .entry-media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0C0CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

/* 角标/徽章 */
.tips-badge { z-index: 4; }
.tips-badge .badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.tips-badge .badge.bg-dark {
    background: linear-gradient(135deg, #1B1B2F, #2D2D44) !important;
    color: #fff;
}
.tips-badge .badge.bg-warning {
    background: linear-gradient(135deg, #FF8C00, #FF4747) !important;
    color: #fff;
}

/* 卡片内容区 */
.item-grid .entry-wrapper { padding: 16px; }
.item-grid .entry-title {
    font-size: 15px;
    font-weight: 600;
    color: #1B1B2F;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-grid .entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.item-grid .entry-title a:hover { color: var(--ri-primary); }

/* 价格区域 */
.item-grid .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.item-grid .price-row .current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ri-primary);
}
.item-grid .price-row .original-price {
    font-size: 13px;
    color: #A0A0B0;
    text-decoration: line-through;
}
.item-grid .price-row .discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--ri-primary), #FF8C00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

/* 商品标签 */
.item-grid .entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.item-grid .entry-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #F5F5F7;
    border-radius: 4px;
    font-size: 11px;
    color: #5A5A72;
    font-weight: 500;
}
.item-grid .entry-tags .tag.hot {
    background: rgba(255, 71, 71, 0.08);
    color: var(--ri-primary);
}
.item-grid .entry-tags .tag.vip {
    background: rgba(255, 140, 0, 0.08);
    color: #FF8C00;
}

/* 分类标签 */
.entry-cat-dot a {
    display: inline-block;
    padding: 4px 10px;
    background: #F5F5F7;
    color: #5A5A72;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.entry-cat-dot a:hover { background: var(--ri-primary); color: #fff; }

/* 列表卡片标题 */
.item-list .entry-title { font-size: 17px; }
.entry-title { font-weight: 600; line-height: 1.45; }
.item-grid .entry-title a { color: #2D2D44; transition: color 0.2s ease; }
.item-grid .entry-title a:hover { color: var(--ri-primary); }

/* 描述 */
.entry-desc { color: #8E8EA0; font-size: 13px; line-height: 1.5; }

/* 元信息 */
.entry-meta {
    color: #A0A0B0;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.entry-meta span { transition: color 0.2s ease; }
.entry-meta span:hover { color: var(--ri-primary); }
.entry-meta .meta-price {
    color: var(--ri-primary);
    font-weight: 700;
    font-size: 15px;
}

/* 内容包裹区 */
.entry-wrapper { padding: 14px 16px 16px; }

/* 进度条 */
.progress-bar .progress { background: linear-gradient(90deg, var(--ri-primary), #FF8C00); }

/* 格式图标 */
.post-format-icon {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    transition: all 0.3s ease;
}
.item-grid:hover .post-format-icon {
    background: var(--ri-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================
   8. Hero 搜索区 — 电商大促风格 [合并 S8+S41+S46+S52]
   ============================================ */
.search-bg {
    position: relative;
    padding: 60px 0;
    background-image: url('../images/A_premium_dark_cinematic_hero__2026-07-09T08-36-33.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

/* 隐藏 jarallax 生成的所有背景容器 */
.search-bg .jarallax-img,
.search-bg .jarallax-container,
.search-bg .jarallax-container > div,
.search-bg [style*="jarallax"],
.search-bg img[data-src] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 深色叠加层 */
.search-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 17, 32, 0.65) 0%,
        rgba(11, 17, 32, 0.45) 40%,
        rgba(11, 17, 32, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.search-bg .search-warp { position: relative; z-index: 2; }

/* Hero 标题 */
.search-bg .search-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.search-bg .search-title .highlight {
    color: var(--ri-primary);
    position: relative;
}
.search-bg .search-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 71, 71, 0.3);
    border-radius: 4px;
    z-index: -1;
}
.search-bg .search-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero 底部统计条 */
.search-warp .hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}
.search-warp .hero-stats .stat-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}
.search-warp .hero-stats .stat-item .stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
}
.search-warp .hero-stats .stat-item .stat-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 2px;
}

/* 搜索框容器 */
.search-bg .search-form {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 4px;
    transition: all 0.3s ease;
}
.search-bg .search-form:focus-within,
.search-bg .search-form:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 71, 71, 0.15);
}

/* 搜索选择器 */
.search-select .form-select,
.search-bg .search-form .search-select select {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}
.search-select .form-select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    padding: 10px 16px;
}
.search-select .form-select:focus {
    border-color: var(--ri-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 71, 0.2);
}
.search-bg .search-form .search-select select option { color: #2D2D44; background: #fff; }

/* 搜索输入 */
.search-bg .search-form .search-fields input[type="text"] {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: none;
}
.search-bg .search-form .search-fields input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

/* 搜索提交按钮 */
.search-bg .search-form button[type="submit"] {
    background: linear-gradient(135deg, var(--ri-primary) 0%, #FF6B6B 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    margin: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 71, 71, 0.4);
}
.search-bg .search-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8C8C 100%);
    box-shadow: 0 6px 24px rgba(255, 71, 71, 0.6);
    transform: translateY(-1px);
}

/* 旧版搜索框兼容 */
.home-search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.home-search-box input[type="text"] {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 30px;
}
.home-search-box input[type="text"]::placeholder { color: rgba(255, 255, 255, 0.45); }

/* 搜索热词 */
.search-hots {
    margin-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.search-hots span:first-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
}
.search-hots a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.search-hots a:hover {
    background: var(--ri-primary);
    border-color: var(--ri-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   9. 通用按钮样式 — 电商行动号召
   ============================================ */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--ri-primary) 0%, #FF6B6B 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4747 100%);
    box-shadow: 0 4px 20px rgba(255, 71, 71, 0.5);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(255, 71, 71, 0.3);
}
.btn-outline-primary {
    border: 1.5px solid var(--ri-primary);
    color: var(--ri-primary);
    background: transparent;
}
.btn-outline-primary:hover { background: var(--ri-primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-secondary { background: #F2F2F5; color: #5A5A72; }
.btn-secondary:hover { background: #E0E0E5; color: #2D2D44; }
.btn-success {
    background: linear-gradient(135deg, #00A650 0%, #00D46A 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 166, 80, 0.35);
}
.btn-danger {
    background: linear-gradient(135deg, #E63946 0%, #FF5A5A 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.35);
}

/* ============================================
   10. 分类导航/筛选栏 [合并 S10+S47]
   ============================================ */

/* 筛选栏容器 */
.filter-warp {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EDEDF0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    margin-bottom: 24px;
    position: sticky;
    top: 56px;
    z-index: 1020;
}
.filter-warp .filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-warp .filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #1B1B2F;
    white-space: nowrap;
}

/* 旧版筛选链接 */
.filter-name {
    color: #8E8EA0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
    min-width: 32px;
}
.filter-link a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: #5A5A72;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
}
.filter-link a:hover { background: #F5F5F7; color: var(--ri-primary); }
.filter-link.active a {
    background: #FFE8E8;
    color: var(--ri-primary);
    font-weight: 600;
}

/* 新版筛选标签 */
.filter-warp .filter-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #F5F5F7;
    border-radius: 8px;
    font-size: 13px;
    color: #5A5A72;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.filter-warp .filter-tags a:hover,
.filter-warp .filter-tags a.active {
    background: var(--ri-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
}

/* 分类按钮组（首页模块用） */
.section-cat-navbtn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.section-cat-navbtn .btn {
    background: #F2F2F5;
    color: #5A5A72;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
}
.section-cat-navbtn .btn.active {
    background: var(--ri-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
}
.section-cat-navbtn .btn:hover:not(.active) { background: #E0E0E5; }

/* 分类盒子轮播 */
.widget-catbox-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}
.widget-catbox-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.widget-catbox-item a {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.catbox-content { padding: 20px; color: #fff; }
.catbox-content .badge {
    background: var(--ri-primary) !important;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.catbox-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* 排行榜分类背景卡 */
.category-bg {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.category-bg:hover { transform: scale(1.02); }
.category-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
    border-radius: 12px;
}
.category-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.category-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    z-index: 1;
    margin-top: 4px;
}

/* ============================================
   11. 区块标题 [合并 S11+S53]
   ============================================ */
.section-title,
.block-title,
.widget-title {
    font-size: 22px;
    font-weight: 700;
    color: #1B1B2F;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    position: relative;
}
.section-title::before,
.block-title::before,
.widget-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--ri-primary), #FF8C00);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-title .title-badge,
.block-title .title-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--ri-primary), #FF8C00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* 区块头部 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EDEDF0;
}
.section-header .view-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ri-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
}
.section-header .view-more:hover {
    background: rgba(255, 71, 71, 0.08);
    gap: 8px;
}
.section-header .view-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}
.section-header .view-more:hover i { transform: translateX(3px); }

/* ============================================
   12. 分页导航
   ============================================ */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}
.page-nav a,
.page-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #5A5A72;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #EDEDF0;
}
.page-nav a:hover {
    background: #FFE8E8;
    color: var(--ri-primary);
    border-color: var(--ri-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 71, 0.15);
}
.page-nav .current {
    background: var(--ri-primary);
    color: #fff;
    border-color: var(--ri-primary);
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
}
.page-nav .prev,
.page-nav .next { font-weight: 600; }

/* ============================================
   13. 侧边栏
   ============================================ */
.sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #EDEDF0;
}
.sidebar .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1B1B2F;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F2F2F5;
    position: relative;
}
.sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--ri-primary);
}

/* ============================================
   14. 商店/购买模块
   ============================================ */
.entry-shop {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0E8 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #FFE0D0;
}
.entry-shop .price-area { color: var(--ri-primary); font-size: 28px; font-weight: 800; }
.entry-shop .buy-btn {
    background: linear-gradient(135deg, var(--ri-primary) 0%, #FF8C00 100%);
    color: #fff;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 71, 71, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}
.entry-shop .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 71, 71, 0.55);
}

/* ============================================
   15. 面包屑导航
   ============================================ */
.breadcrumb { background: transparent; padding: 12px 0; font-size: 13px; }
.breadcrumb-item a { color: #8E8EA0; transition: color 0.2s ease; }
.breadcrumb-item a:hover { color: var(--ri-primary); }
.breadcrumb-item.active { color: #5A5A72; font-weight: 500; }

/* ============================================
   16. 轮播图
   ============================================ */
.widget-slider .widget-slider-item { border-radius: 16px; overflow: hidden; position: relative; }
.widget-slider .slider-warp {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
}
.owl-theme .owl-dots .owl-dot span { background: rgba(255, 255, 255, 0.4); transition: all 0.3s ease; }
.owl-theme .owl-dots .owl-dot.active span { background: var(--ri-primary); width: 24px; border-radius: 3px; }
.owl-theme .owl-nav button {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #2D2D44 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.owl-theme .owl-nav button:hover {
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* ============================================
   17. 文章详情页
   ============================================ */
.article-header {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 32px;
    border-bottom: 1px solid #EDEDF0;
}
.post-title { font-size: 28px; font-weight: 800; color: #1B1B2F; line-height: 1.35; }
.article-meta {
    color: #8E8EA0;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.post-content { padding: 32px; font-size: 15px; line-height: 1.8; color: #2D2D44; }
.post-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1B1B2F;
    margin-top: 32px;
    padding-left: 12px;
    border-left: 4px solid var(--ri-primary);
}
.post-content h3 { font-size: 18px; font-weight: 600; color: #2D2D44; }
.post-content img { border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
.post-content a { color: var(--ri-primary); text-decoration: none; font-weight: 500; }
.post-content a:hover { text-decoration: underline; color: #E63946; }
.entry-tags a {
    display: inline-block;
    padding: 5px 14px;
    background: #F5F5F7;
    color: #5A5A72;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 3px;
}
.entry-tags a:hover { background: var(--ri-primary); color: #fff; }
.entry-related-posts .item-grid { height: 100%; }
.entry-copyright {
    background: #FFF8F0;
    border: 1px solid #FFE0C0;
    border-radius: 12px;
    padding: 16px 20px;
    color: #8B6914;
    font-size: 13px;
}

/* ============================================
   18. 页脚
   ============================================ */
.site-footer {
    background: #1B1B2F;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0 20px;
    margin-top: 40px;
}
.site-footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--ri-primary); }
.site-footer .widget-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.site-footer .small { color: rgba(255, 255, 255, 0.4); font-size: 12px; }

/* ============================================
   19. 右侧悬浮快捷栏 — 电商风格 [合并 S19+S55]
   ============================================ */
.rollbar {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 1030;
}
.rollbar .actions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rollbar .actions li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    padding: 10px 4px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #EDEDF0;
    color: #5A5A72;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    overflow: hidden;
    gap: 4px;
}
.rollbar .actions li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ri-primary), #FF6B6B);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rollbar .actions li a:hover::before { opacity: 1; }
.rollbar .actions li a:hover {
    color: #fff;
    border-color: var(--ri-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 71, 71, 0.35);
}
.rollbar .actions li a i,
.rollbar .actions li a span { position: relative; z-index: 1; }
.rollbar .actions li a i { font-size: 18px; transition: transform 0.2s ease; }
.rollbar .actions li a:hover i { transform: scale(1.15); }
.rollbar .actions li a span {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* 回到顶部按钮 */
.back-top {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #EDEDF0;
    color: var(--ri-primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    right: 16px;
    bottom: 24px;
    overflow: hidden;
    position: relative;
}
.back-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ri-primary), #FF6B6B);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.back-top:hover::before { opacity: 1; }
.back-top:hover {
    color: #fff;
    border-color: var(--ri-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 71, 71, 0.35);
}
.back-top i { position: relative; z-index: 1; }

/* ============================================
   20. 统计概览模块
   ============================================ */
.home-overview .bg-warp {
    background: linear-gradient(135deg, #1B1B2F 0%, #2D2D44 100%);
    border-radius: 12px;
    padding: 24px;
}
.home-overview .count-item { text-align: center; color: #fff; }
.home-overview .count-num { font-size: 32px; font-weight: 800; color: var(--ri-primary); display: block; }
.home-overview .count-item strong { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, 0.7); margin-top: 4px; display: block; }

/* ============================================
   21. 通知提示
   ============================================ */
.alert { border-radius: 12px; border: none; padding: 14px 20px; font-size: 14px; }
.alert-success { background: #CCF0DD; color: #008540; }
.alert-warning { background: #FFE8CC; color: #CC7000; }
.alert-danger { background: #FAD7DA; color: #B82E38; }
.alert-info { background: #D6E6FE; color: #1E5FC9; }

/* ============================================
   22. 模态框
   ============================================ */
.modal-content { border-radius: 16px; border: none; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2); overflow: hidden; }
.modal-header { border-bottom: 1px solid #EDEDF0; padding: 20px 24px; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid #EDEDF0; padding: 16px 24px; }

/* ============================================
   23. 弹窗提示 (Toast)
   ============================================ */
.toast { border-radius: 12px; border: none; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); }

/* ============================================
   24. 表单元素
   ============================================ */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1.5px solid #E0E0E5;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--ri-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 71, 0.12);
    outline: none;
}
.form-control::placeholder { color: #C0C0CC; }

/* ============================================
   25. 表格
   ============================================ */
.table { border-radius: 12px; overflow: hidden; }
.table thead th {
    background: #F5F5F7;
    color: #5A5A72;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #E0E0E5;
}

/* ============================================
   26. 用户中心
   ============================================ */
.user-center .card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EDEDF0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.user-center .nav-link {
    color: #5A5A72;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.user-center .nav-link:hover { background: #F5F5F7; color: var(--ri-primary); }
.user-center .nav-link.active { background: #FFE8E8; color: var(--ri-primary); font-weight: 600; }

/* ============================================
   27. VIP 会员卡
   ============================================ */
.vip-card {
    background: linear-gradient(135deg, #1B1B2F 0%, #2D2D44 100%);
    border-radius: 16px;
    padding: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.vip-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.vip-card .vip-badge {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #1B1B2F;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

/* ============================================
   28. CMS 布局
   ============================================ */
.cms-post-warp .cms-left-itme .item-grid { height: 100%; }
.cms-post-warp .cms-left-itme .entry-media { padding-bottom: 75%; }
.cms-post-warp .cms-right-itme .item-list { margin-bottom: 8px; }

/* ============================================
   29. 排名序号
   ============================================ */
.list-posts .post-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-right: 8px;
}
.list-posts .post-num.num-1 { background: linear-gradient(135deg, #FF4747, #FF6B6B); }
.list-posts .post-num.num-2 { background: linear-gradient(135deg, #FF8C00, #FFA03A); }
.list-posts .post-num.num-3 { background: linear-gradient(135deg, #FFD700, #FFE44D); color: #8B6914; }
.list-posts .post-num:not(.num-1):not(.num-2):not(.num-3) { background: #C0C0CC; }

/* ============================================
   30. 加载动画
   ============================================ */
@keyframes ecommerceFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.posts-warp .post-item { animation: ecommerceFadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.posts-warp .post-item:nth-child(1) { animation-delay: 0.05s; }
.posts-warp .post-item:nth-child(2) { animation-delay: 0.10s; }
.posts-warp .post-item:nth-child(3) { animation-delay: 0.15s; }
.posts-warp .post-item:nth-child(4) { animation-delay: 0.20s; }
.posts-warp .post-item:nth-child(5) { animation-delay: 0.25s; }
.posts-warp .post-item:nth-child(6) { animation-delay: 0.30s; }
.posts-warp .post-item:nth-child(7) { animation-delay: 0.35s; }
.posts-warp .post-item:nth-child(8) { animation-delay: 0.40s; }

/* ============================================
   31. 响应式断点适配 [合并 S31+S48+S58]
   ============================================ */

/* 平板及以下 (≤991px) */
@media (max-width: 991.98px) {
    .site-header { background: #1B1B2F; }
    .navbar-search { display: none; }
    .search-bg { padding: 40px 0; }
    .search-bg .search-title { font-size: 28px; }
    .search-bg .search-desc { font-size: 14px; }
    .post-title { font-size: 22px; }
    .section-title, .block-title, .widget-title { font-size: 18px; }
    .filter-warp { top: 48px; }
    .cms-left-itme, .cms-right-itme { margin-bottom: 12px; }
    .rollbar { right: 12px; bottom: 72px; }
    .rollbar .actions li a { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
    .rollbar .actions li a span { display: none; }
    .back-top { width: 44px; height: 44px; border-radius: 12px; right: 12px; bottom: 20px; }
}

/* 手机 (≤767px) */
@media (max-width: 767.98px) {
    .search-bg { padding: 40px 0 !important; }
    .search-bg .search-title { font-size: 24px; }
    .search-bg .search-form { border-radius: 14px; }
    .search-bg .search-form button[type="submit"] { padding: 10px 18px; border-radius: 10px; font-size: 13px; }
    .home-search-box { border-radius: 20px; }
    .home-search-box input[type="text"] { padding: 12px 18px; font-size: 14px; }
    .search-hots { gap: 6px; margin-top: 12px; }
    .search-hots a { padding: 3px 10px; font-size: 11px; }
    .section-title, .block-title, .widget-title { font-size: 18px; }
    .post-item.item-list { flex-direction: column; padding: 12px; }
    .post-item.item-list .entry-media { width: 100%; height: auto; padding-bottom: 56.25%; margin-bottom: 12px; }
    .post-content { padding: 20px 16px; font-size: 14px; }
    .article-header { padding: 20px 16px; }
    .entry-shop { padding: 16px; }
    .entry-shop .price-area { font-size: 22px; }
    .entry-shop .buy-btn { width: 100%; text-align: center; }
    .section-cat-navbtn .btn { padding: 5px 12px; font-size: 12px; }
    .filter-warp { top: 44px; padding: 8px 0; }
    .filter-link a { padding: 4px 10px; font-size: 12px; }
    .breadcrumb { font-size: 12px; }
    .site-footer { padding: 24px 0 16px; }
    .widget-catbox-item { height: 140px; }
    .item-grid .entry-media { min-height: 140px; }
    .trust-bar { padding: 16px; gap: 12px; }
    .trust-bar .trust-item { font-size: 12px; }
    .trust-bar .trust-item i { width: 32px; height: 32px; font-size: 14px; }
}

/* 小手机 (≤575px) */
@media (max-width: 575.98px) {
    .search-bg { padding: 32px 0 !important; }
    .search-bg .search-title { font-size: 20px; }
    .search-bg .search-desc { font-size: 13px; }
    .search-bg .search-form { border-radius: 12px; margin: 0 8px; }
    .search-bg .search-form button[type="submit"] { padding: 8px 14px; border-radius: 8px; }
    .home-search-box { margin: 0 8px; }
    .section-title, .block-title, .widget-title { font-size: 16px; }
    .navbar .actions .action-btn { width: 34px; height: 34px; font-size: 14px; }
    .navbar .actions .login-btn { padding: 6px 12px; font-size: 12px; }
    .entry-meta { gap: 8px; font-size: 11px; }
    .section-cat-navbtn { gap: 4px; }
    .section-cat-navbtn .btn { padding: 4px 10px; font-size: 11px; }
    .filter-item { gap: 2px; }
    .filter-link a { padding: 3px 8px; font-size: 11px; }
    .item-grid .entry-wrapper { padding: 12px; }
    .item-grid .entry-title { font-size: 14px; }
    .item-grid .price-row .current-price { font-size: 16px; }
}

/* ============================================
   32. 打印样式
   ============================================ */
@media print {
    .site-header, .m-navbar, .rollbar, .back-top, .dimmer, .off-canvas, .filter-warp, .search-bg { display: none !important; }
}

/* ============================================
   33. 无障碍优化
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
*:focus-visible { outline: 2px solid var(--ri-primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================
   34. 归档页 Hero 区 [合并 S34+S41 archive]
   ============================================ */
.archive-hero {
    position: relative;
    padding: 80px 0;
    margin-bottom: 40px;
    overflow: hidden;
    background-image: url('../images/A_premium_dark_cinematic_hero__2026-07-09T08-36-33.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.archive-hero-bg { display: none !important; }
.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.7) 0%, rgba(11, 17, 32, 0.5) 50%, rgba(11, 17, 32, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}
.archive-hero .container { position: relative; z-index: 2; }
.archive-title { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); letter-spacing: -0.02em; }
.archive-desc { font-size: 16px; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ============================================
   35. 登录注册页面
   ============================================ */
.login-form-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 440px;
    margin: 40px auto;
    border: 1px solid #EDEDF0;
}
.login-form-wrapper .form-title { text-align: center; font-size: 22px; font-weight: 700; color: #1B1B2F; margin-bottom: 8px; }
.login-form-wrapper .form-subtitle { text-align: center; color: #8E8EA0; font-size: 14px; margin-bottom: 24px; }
.login-form-wrapper .btn-submit { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; border-radius: 12px; }

/* ============================================
   36. 评论区
   ============================================ */
.comment-list .comment-body {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #EDEDF0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.comment-list .comment-author .fn { font-weight: 600; color: #1B1B2F; }
.comment-list .comment-metadata { color: #A0A0B0; font-size: 12px; }
.comment-reply-title { font-size: 18px; font-weight: 700; color: #1B1B2F; margin-bottom: 16px; }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] { border-radius: 10px; border: 1.5px solid #E0E0E5; padding: 10px 16px; font-size: 14px; transition: all 0.2s ease; }
.comment-form textarea:focus,
.comment-form input:focus { border-color: var(--ri-primary); box-shadow: 0 0 0 3px rgba(255, 71, 71, 0.12); }
.comment-form .submit {
    background: linear-gradient(135deg, var(--ri-primary) 0%, #FF6B6B 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
}
.comment-form .submit:hover { box-shadow: 0 4px 16px rgba(255, 71, 71, 0.5); transform: translateY(-1px); }

/* ============================================
   37. 促销/秒杀倒计时标签
   ============================================ */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FF4747, #FF8C00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    animation: promoPulse 2s ease-in-out infinite;
}
@keyframes promoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ============================================
   38. 缺省/空状态
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; color: #A0A0B0; }
.empty-state .empty-icon { font-size: 48px; color: #DEDEE5; margin-bottom: 16px; }
.empty-state .empty-title { font-size: 18px; font-weight: 600; color: #5A5A72; margin-bottom: 8px; }
.empty-state .empty-desc { font-size: 14px; color: #8E8EA0; margin-bottom: 20px; }

/* ============================================
   39. 付款/下单确认区
   ============================================ */
.order-summary { background: #FFF8F0; border: 1px solid #FFE0C0; border-radius: 12px; padding: 20px; }
.order-summary .order-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #FFE0C0; }
.order-summary .order-item:last-child { border-bottom: none; }
.order-summary .order-total { font-size: 18px; font-weight: 800; color: var(--ri-primary); }

/* ============================================
   40. 自定义滚动条（暗黑模式适配）
   ============================================ */
[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: #1E1E2A; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #3A3A4A; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4A4A5C; }

/* ============================================
   41. 无图商品占位图 — 电商风格
   ============================================ */
.entry-media.no-thumb,
.media-img[data-bg=""],
.media-img:not([data-bg]),
.item-grid .entry-media:empty,
.item-grid .entry-media:has(img[src*="default"]) {
    background: linear-gradient(135deg, #F0F0F5 0%, #E8E8F0 100%);
    position: relative;
    overflow: hidden;
}
.entry-media.no-thumb::before,
.media-img[data-bg=""]::before,
.media-img:not([data-bg])::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0C0CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}
@keyframes cardShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.item-grid.loading .entry-media,
.entry-media.loading {
    background: linear-gradient(90deg, #F0F0F5 25%, #E8E8F0 50%, #F0F0F5 75%);
    background-size: 200% 100%;
    animation: cardShimmer 1.5s ease-in-out infinite;
}

/* ============================================
   42. 信任标识区 — 跨境电商信任元素
   ============================================ */
.trust-bar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EDEDF0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.trust-bar .trust-item { display: flex; align-items: center; gap: 10px; color: #5A5A72; font-size: 13px; font-weight: 500; }
.trust-bar .trust-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 71, 71, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ri-primary);
    font-size: 16px;
}

/* ============================================
   43. 暗黑模式 Hero 背景适配
   ============================================ */
[data-bs-theme="dark"] .search-bg {
    background-image: url('../images/A_premium_dark_cinematic_hero__2026-07-09T08-36-33.png') !important;
}
[data-bs-theme="dark"] .search-bg::after {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.75) 0%, rgba(11, 17, 32, 0.55) 40%, rgba(11, 17, 32, 0.75) 100%);
}
[data-bs-theme="dark"] .archive-hero {
    background-image: url('../images/A_premium_dark_cinematic_hero__2026-07-09T08-36-33.png') !important;
}
[data-bs-theme="dark"] .archive-hero::before {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.8) 0%, rgba(11, 17, 32, 0.6) 50%, rgba(11, 17, 32, 0.8) 100%);
}

/* ============================================================
   44. 购物车模块
   ============================================================ */

/* ── 购物车图标角标 ── */
.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: var(--ri-primary, #FF4747);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    text-align: center;
    font-weight: 600;
    padding: 0 4px;
}

/* ── 购物车侧滑 ── */
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.cart-offcanvas.active { pointer-events: auto; }

.cart-offcanvas-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-offcanvas.active .cart-offcanvas-overlay { opacity: 1; }

.cart-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--ri-white, #fff);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}
.cart-offcanvas.active .cart-offcanvas-panel { transform: translateX(0); }

body.cart-open { overflow: hidden; }

/* ── 侧滑头部 ── */
.cart-offcanvas-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ri-border-color, #eee);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.cart-offcanvas-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ri-heading, #222);
}
.cart-offcanvas-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.cart-offcanvas-close:hover { color: var(--ri-primary, #FF4747); background: rgba(255, 71, 71, 0.08); }

/* ── 侧滑商品列表 ── */
.cart-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.cart-items {
    padding: 12px 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ri-border-light, #f5f5f5);
    position: relative;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ri-bg-light, #f8f9fa);
}
.cart-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ri-heading, #222);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
}
.cart-item-title:hover { color: var(--ri-primary, #FF4747); }
.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--ri-primary, #FF4747);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--ri-primary, #FF4747); background: rgba(255, 71, 71, 0.08); }

/* ── 侧滑底部 ── */
.cart-offcanvas-footer {
    border-top: 1px solid var(--ri-border-color, #eee);
    padding: 12px 0 0;
    background: var(--ri-white, #fff);
    flex-shrink: 0;
}
.cart-total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ri-primary, #FF4747);
}
.cart-actions {
    display: flex;
    gap: 10px;
}
.cart-actions .btn { flex: 1; border-radius: 8px; padding: 10px; font-weight: 600; }
.cart-checkout-btn {
    background: linear-gradient(135deg, var(--ri-primary, #FF4747), var(--ri-primary-dark, #e63636));
    border: none;
    color: #fff;
}

/* ── 结算弹窗 ── */
#cartCheckoutModal .modal-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}
#cartCheckoutModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
}
#cartCheckoutModal .modal-body { padding: 20px; }
#cartCheckoutModal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
}

/* ── 购物车空状态 ── */
.cart-empty {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 20px;
}

/* ── 暗色模式购物车 ── */
[data-bs-theme="dark"] .cart-offcanvas-panel {
    background: #1a1d2e;
}
[data-bs-theme="dark"] .cart-offcanvas-header {
    border-color: #2a2d3e;
}
[data-bs-theme="dark"] .cart-offcanvas-footer {
    background: #1a1d2e;
    border-color: #2a2d3e;
}
[data-bs-theme="dark"] .cart-item {
    border-color: #2a2d3e;
}
[data-bs-theme="dark"] .cart-item-thumb {
    background: #2a2d3e;
}
[data-bs-theme="dark"] .cart-item-title { color: #e0e0e0; }

/* ── 响应式购物车 ── */
@media (max-width: 575px) {
    .cart-offcanvas-panel {
        width: 100vw;
        max-width: 100vw;
    }
}

/* ============================================================
   45. 商品徽章系统
   ============================================================ */

.product-badges { margin-bottom: 4px; }
.product-badges .badge {
    font-size: 10px;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    line-height: 1.3;
}

/* ── 详情页徽章更大 ── */
.article-header .product-badges .badge {
    font-size: 12px;
    padding: 4px 12px;
}

/* ── 卡片徽章排版优化 ── */
.tips-badge .product-badges .badge { margin-bottom: 2px; }
.tips-badge .product-badges { display: flex; flex-direction: column; }

/* ── 徽章悬停微动 ── */
.product-badges .badge {
    transition: transform 0.2s ease;
    cursor: default;
}
.product-badges .badge:hover { transform: scale(1.05); }

/* ============================================================
   46. 库存进度条
   ============================================================ */

.stock-bar {
    max-width: 400px;
}
.stock-bar .stock-info {
    color: var(--ri-body-color, #5a5a72);
}
.stock-bar .progress {
    background: var(--ri-gray-200, #eee);
    border-radius: 10px;
    overflow: hidden;
}
.stock-bar .progress-bar {
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ============================================================
   47. 限时倒计时
   ============================================================ */

.countdown-warp {
    max-width: 400px;
}
.countdown-timer .countdown-item {
    display: inline-block;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}
.countdown-warp.bg-danger-subtle {
    animation: countdown-pulse 2s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ============================================================
   48. 心愿单
   ============================================================ */

/* ── 切换按钮 ── */
.wishlist-toggle-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
}
.wishlist-toggle-btn.btn-danger-soft {
    background: rgba(255, 71, 71, 0.1);
    border: 1px solid rgba(255, 71, 71, 0.2);
    color: #FF4747;
}
.wishlist-toggle-btn.btn-outline-danger {
    border: 1px solid rgba(255, 71, 71, 0.3);
    color: #FF4747;
}
.wishlist-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 71, 0.2);
}
.wishlist-toggle-btn:active { transform: translateY(0); }

/* ── 心愿单卡片 ── */
.wishlist-card {
    transition: all 0.25s ease;
    overflow: visible;
}
.wishlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.wishlist-remove-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.wishlist-card:hover .wishlist-remove-btn { opacity: 1; }
.wishlist-remove-btn:hover {
    background: #FF4747 !important;
    color: #fff !important;
    opacity: 1;
}

/* ── stretched-link 兼容 ── */
.wishlist-card .stretched-link-none {
    position: relative;
    z-index: 1;
}

/* ============================================================
   49. 浏览历史 Widget
   ============================================================ */

.browse-item {
    transition: all 0.25s ease;
    overflow: hidden;
}
.browse-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.browse-item .card-body {
    position: relative;
}

/* ── 暗色模式适配 ── */
[data-bs-theme="dark"] .browse-item {
    background: #1e2130 !important;
}
[data-bs-theme="dark"] .browse-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}
[data-bs-theme="dark"] .wishlist-card {
    background: #1e2130 !important;
}
[data-bs-theme="dark"] .countdown-warp.bg-danger-subtle {
    background: rgba(255, 71, 71, 0.12) !important;
    border-color: rgba(255, 71, 71, 0.2) !important;
}
