/* ============================================
   迅睿CMS网店插件 - 网店样式文件
   基于实际HTML结构重构
   ============================================ */

/* ==================== 0. CSS重置 ==================== */
* {
    box-sizing: border-box;
}

.xr-body *,
.xr-body *:before,
.xr-body *:after {
    box-sizing: border-box;
}

.xr-body ul,
.xr-body ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.xr-body h1,
.xr-body h2,
.xr-body h3,
.xr-body h4,
.xr-body h5,
.xr-body h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.xr-body a {
    text-decoration: none;
}

.xr-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.xr-body table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==================== 1. 基础样式 ==================== */
.xr-body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 14px;
}

.xr-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.xr-container {
   
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== 2. 顶部导航栏 ==================== */
.xr-topbar {
    background-color: #e3e4e5;
    border-bottom: 1px solid #ddd;
    min-height: 36px;
    line-height: 36px;
    font-size: 12px;
}

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

.xr-topbar-left {
    color: #666;
    flex-shrink: 0;
    white-space: nowrap;
}

.xr-topbar-right {
    flex: 1;
    min-width: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

/* 未登录 */
.xr-member--guest {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
    margin-left: auto;
}

.xr-member-link {
    color: #666;
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.25s;
}

.xr-member-link:hover {
    color: #e1251b;
}

.xr-member-link--reg {
    color: #e1251b;
    font-weight: 500;
}

.xr-member-link--reg:hover {
    color: #c81623;
}

.xr-member-sep {
    color: #ccc;
    user-select: none;
}

/* 已登录：横排右对齐 */
.xr-member--logged {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    gap: 0;
    line-height: 36px;
}

.xr-member--logged .ep-user-hd {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    margin-right: 4px;
    line-height: normal;
    flex-shrink: 0;
}

.xr-member--logged .ep-user-hd img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.xr-member--logged .ep-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
    max-width: 120px;
}

.xr-member--logged .ep-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xr-member--logged .ep-user-meta {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xr-member--logged .xr-member-link {
    padding: 0 8px;
    white-space: nowrap;
}

.xr-member--logged .xr-member-sep {
    padding: 0 2px;
    line-height: 36px;
}

.xr-member--logged .xr-member-link--out {
    color: #999;
}

.xr-member--logged .xr-member-link--out:hover {
    color: #e1251b;
}

/* ==================== 3. 主头部区域 ==================== */
.xr-header {
    background-color: #fff;
    padding: 20px 0;
}

.xr-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.xr-logo {
    flex-shrink: 0;
}

.xr-logo .logo-img {
    height: 60px;
    max-width: 200px;
    display: block;
}

.xr-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.xr-search-form {
    display: flex;
}

.xr-search-box {
    display: flex;
    width: 100%;
    border: 2px solid #e1251b;
    border-radius: 2px;
    overflow: hidden;
}

.xr-search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.xr-search-input::placeholder {
    color: #999;
}

.xr-search-btn {
    width: 80px;
    background-color: #e1251b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xr-search-btn:hover {
    background-color: #c81623;
}

.xr-cart {
    flex-shrink: 0;
}

.xr-cart-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.xr-cart-link:hover {
    color: #e1251b;
    border-color: #e1251b;
}

.xr-cart-text {
    margin: 0 5px;
}

.xr-cart-num {
    background-color: #e1251b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
}

/* ==================== 4. 主导航菜单 ==================== */
.xr-navbar {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 500;
    overflow: visible;
}

.xr-navbar .xr-container {
    overflow: visible;
}

.xr-navbar-content {
    display: flex;
    overflow: visible;
}

.xr-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 2px;
    overflow: visible;
}

.xr-nav-item {
    position: relative;
    flex-shrink: 0;
}

.xr-nav-item--dropdown:hover {
    z-index: 510;
}

.xr-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 50px;
    padding: 0 18px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    transition: color 0.2s ease;
}

.xr-nav-link::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: #e1251b;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.xr-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.xr-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.xr-nav-icon i {
    font-size: 15px;
    color: #888;
    transition: color 0.2s ease;
}

.xr-nav-text {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xr-nav-caret {
    font-size: 11px;
    color: #c0c0c0;
    margin-left: -2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.xr-nav-item:hover .xr-nav-link,
.xr-nav-item.xr-nav-active .xr-nav-link {
    color: #e1251b;
}

.xr-nav-item:hover .xr-nav-link::after,
.xr-nav-item.xr-nav-active .xr-nav-link::after {
    transform: scaleX(1);
}

.xr-nav-item:hover .xr-nav-icon i,
.xr-nav-item.xr-nav-active .xr-nav-icon i {
    color: #e1251b;
}

.xr-nav-item--dropdown:hover .xr-nav-caret {
    color: #e1251b;
    transform: rotate(180deg);
}

/* 折扣活动 */
.xr-nav-item--hot .xr-nav-link {
    color: #c81623;
}

.xr-nav-item--hot .xr-nav-icon i {
    color: #e1251b;
}

.xr-nav-tag {
    display: inline-block;
    padding: 1px 5px;
    margin-left: 2px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #e1251b);
    border-radius: 3px;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.xr-nav-item--hot:hover .xr-nav-link,
.xr-nav-item--hot.xr-nav-active .xr-nav-link {
    color: #e1251b;
}

/* 下拉面板 */
.xr-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    max-width: 360px;
    background-color: #fff;
    border: 1px solid #eee;
    border-top: 2px solid #e1251b;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    overflow: visible;
    pointer-events: auto;
}

/* 顶栏与下拉之间留桥，避免移入时 hover 断开 */
.xr-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 6px;
}

.xr-nav-item--dropdown:hover .xr-dropdown,
.xr-nav-item--dropdown .xr-dropdown:hover {
    display: block;
}

.xr-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(90deg, #fff8f8, #fff);
    border-bottom: 1px solid #f0f0f0;
}

.xr-dropdown-head-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.xr-dropdown-head-info {
    flex: 1;
    min-width: 0;
}

.xr-dropdown-head-info strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.xr-dropdown-head-info a {
    font-size: 12px;
    color: #e1251b;
    text-decoration: none;
}

.xr-dropdown-head-info a:hover {
    text-decoration: underline;
}

.xr-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 360px;
    overflow-y: auto;
}

.xr-dropdown-item {
    position: relative;
}

.xr-dropdown-item:hover {
    z-index: 2;
}

.xr-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.xr-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #f5f5f5;
    overflow: hidden;
}

.xr-dropdown-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-dropdown-icon i {
    font-size: 16px;
    color: #999;
}

.xr-dropdown-name {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
}

.xr-dropdown-more {
    font-size: 12px;
    color: #ccc;
    flex-shrink: 0;
}

.xr-dropdown-link:hover,
.xr-dropdown-active .xr-dropdown-link {
    background-color: #fff5f5;
    color: #e1251b;
}

.xr-dropdown-link:hover .xr-dropdown-icon,
.xr-dropdown-active .xr-dropdown-link .xr-dropdown-icon {
    background: #ffe8e8;
}

.xr-dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    z-index: 10;
}

.xr-dropdown-submenu::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 6px;
    height: 100%;
}

.xr-dropdown-item:hover .xr-dropdown-submenu,
.xr-dropdown-item .xr-dropdown-submenu:hover {
    display: block;
}

.xr-dropdown-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.xr-dropdown-subicon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.xr-dropdown-sublink:hover,
.xr-dropdown-active .xr-dropdown-sublink {
    background-color: #fff5f5;
    color: #e1251b;
}

/* ==================== 5. 主内容区域 ==================== */
.xr-main-content {
    flex: 1;
    padding: 0;
    background-color: #ffff;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

/* ==================== 6. 面包屑导航 ==================== */
.xr-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #999;
}

.xr-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.xr-breadcrumb a:hover {
    color: #e1251b;
}

.xr-breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

/* ==================== 7. 首页 Banner（左分类 + 右轮播）==================== */
.xr-banner-section {
    background-color: #fff;
    padding-top: 10px;
    margin-bottom: 0px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.xr-banner-section .xr-container {
    padding: 0 15px;
    max-width: 1200px;
}

/* 整体布局 */
.xr-banner-hero {
    display: flex;
    align-items: stretch;
    height: 400px;
    border-radius: 4px;
    overflow: visible;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 左侧分类导航 */
.xr-banner-cats {
    flex: 0 0 200px;
    width: 200px;
    background: linear-gradient(180deg, #4d5f70 0%, #3d4d5c 100%);
    position: static;
    z-index: 30;
    border-radius: 4px 0 0 4px;
    overflow: visible;
}

.xr-banner-cats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: visible;
}

.xr-banner-cat-item {
    position: static;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.xr-banner-cat-item--has-child {
    position: static;
}

.xr-banner-cat-item:last-child {
    border-bottom: none;
}

.xr-banner-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 10px;
    height: 44px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.xr-banner-cat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.xr-banner-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xr-banner-cat-icon i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.xr-banner-cat-item:hover .xr-banner-cat-icon {
    background: rgba(255, 255, 255, 0.25);
}

.xr-banner-cat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xr-banner-cat-arrow {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.xr-banner-cat-item:hover .xr-banner-cat-link,
.xr-banner-cat-item.xr-banner-cat-item--active .xr-banner-cat-link {
    background-color: #e1251b;
    color: #fff;
}

.xr-banner-cat-item:hover .xr-banner-cat-arrow {
    color: #fff;
}

/* 悬停展开二级分类面板（相对 xr-banner-hero 定位，浮在轮播之上） */
.xr-banner-cat-panel {
    display: none;
    position: absolute;
    left: 200px;
    top: 0;
    right: 0;
    width: auto;
    min-width: 400px;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-left: none;
    border-radius: 0 4px 4px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 50;
    box-sizing: border-box;
    pointer-events: auto;
}

.xr-banner-cat-item--has-child:hover .xr-banner-cat-panel,
.xr-banner-cat-item--has-child .xr-banner-cat-panel:hover {
    display: block;
}

/* 侧栏与浮层之间无缝衔接，避免移入时丢失 hover */
.xr-banner-cat-item--has-child:hover .xr-banner-cat-panel::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 8px;
    height: 100%;
}

.xr-banner-cat-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.xr-banner-cat-panel-hd strong {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.xr-banner-cat-panel-hd a {
    font-size: 12px;
    color: #e1251b;
    text-decoration: none;
}

.xr-banner-cat-panel-hd a:hover {
    text-decoration: underline;
}

.xr-banner-cat-panel-body {
    padding: 12px 16px 16px;
    height: calc(100% - 52px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px 12px;
    box-sizing: border-box;
}

.xr-banner-cat-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    background: #f5f5f5;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.xr-banner-cat-sub-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.xr-banner-cat-sub-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xr-banner-cat-sub-icon i {
    font-size: 11px;
    color: #999;
}

.xr-banner-cat-sub-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xr-banner-cat-sub:hover {
    background: #fff3f3;
    color: #e1251b;
}

.xr-banner-cat-sub:hover .xr-banner-cat-sub-icon {
    background: rgba(225, 37, 27, 0.1);
}

.xr-banner-cat-sub:hover .xr-banner-cat-sub-icon i {
    color: #e1251b;
}

/* 右侧轮播 */
.xr-banner-main {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    background: #f0f0f0;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    isolation: isolate;
}

/* Swiper 轮播图容器 */
.xr-banner-section .xr-banner-swiper,
.xr-banner-section .swiper-container.xr-banner-swiper {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    margin: 0;
}

.xr-banner-section .swiper-container.card {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.xr-banner-section .swiper-wrapper {
    height: 100%;
}

.xr-banner-section .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.xr-banner-section .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.xr-banner-section .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.xr-banner-section .swiper-slide:hover img {
    transform: scale(1.05);
}

/* Swiper 分页器样式 */
.xr-banner-section .swiper-pagination {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
}

.xr-banner-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5) !important;
    opacity: 1 !important;
    margin: 0 4px;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}

.xr-banner-section .swiper-pagination-bullet-active {
    background-color: #e1251b !important;
    width: 24px;
    border-radius: 6px;
    opacity: 1 !important;
}

/* 覆盖 Swiper 默认颜色 */
.xr-banner-section .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #e1251b !important;
    opacity: 1 !important;
}

/* Swiper 导航按钮样式 */
.xr-banner-section .swiper-button-next,
.xr-banner-section .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 50%;
    color: #666;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: -22px;
    opacity: 0;
}

.xr-banner-section:hover .swiper-button-next,
.xr-banner-section:hover .swiper-button-prev {
    opacity: 1;
}

.xr-banner-section .swiper-button-next:after,
.xr-banner-section .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 44px;
}

.xr-banner-section .swiper-button-next:hover,
.xr-banner-section .swiper-button-prev:hover {
    background-color: #e1251b;
    color: #fff;
    box-shadow: 0 2px 12px rgba(225,37,27,0.4);
}

.xr-banner-section .swiper-button-next:hover:after,
.xr-banner-section .swiper-button-prev:hover:after {
    color: #fff !important;
}

.xr-banner-section .swiper-button-next {
    right: 20px;
}

.xr-banner-section .swiper-button-prev {
    left: 20px;
}

.xr-banner-section .swiper-button-next.swiper-button-disabled,
.xr-banner-section .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* 覆盖 Swiper 默认主题色 */
.xr-banner-section .swiper-container .swiper-pagination-bullet-active {
    background: #e1251b !important;
    opacity: 1 !important;
}

.xr-banner-section .swiper-container .swiper-button-next,
.xr-banner-section .swiper-container .swiper-button-prev {
    color: #333 !important;
}

.xr-banner-section .swiper-container .swiper-button-next:hover,
.xr-banner-section .swiper-container .swiper-button-prev:hover {
    background-color: #e1251b !important;
    color: #fff !important;
}

.xr-banner-section .swiper-container .swiper-button-next:after,
.xr-banner-section .swiper-container .swiper-button-prev:after {
    color: #333 !important;
}

.xr-banner-section .swiper-container .swiper-button-next:hover:after,
.xr-banner-section .swiper-container .swiper-button-prev:hover:after {
    color: #fff !important;
}

/* 轮播图响应式 */
@media (max-width: 768px) {
    .xr-banner-section {
        padding: 10px 0;
    }
    
    .xr-banner-section .xr-container {
        padding: 0 10px;
    }

    .xr-banner-hero {
        flex-direction: column;
        height: auto;
    }

    .xr-banner-cats {
        flex: none;
        width: 100%;
        max-height: none;
    }

    .xr-banner-cats-list {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        height: auto;
    }

    .xr-banner-cat-item {
        flex: 0 0 50%;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-sizing: border-box;
    }

    .xr-banner-cat-link {
        height: 40px;
        font-size: 12px;
        padding: 0 10px;
    }

    .xr-banner-cat-panel {
        display: none !important;
    }

    .xr-banner-main {
        height: 220px;
    }
    
    .xr-banner-section .swiper-container,
    .xr-banner-section .xr-banner-swiper {
        height: 220px;
        border-radius: 0;
    }
    
    .xr-banner-section .swiper-button-next,
    .xr-banner-section .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        opacity: 0.8;
    }
    
    .xr-banner-section .swiper-button-next:after,
    .xr-banner-section .swiper-button-prev:after {
        font-size: 14px;
        line-height: 36px;
    }
    
    .xr-banner-section .swiper-button-next {
        right: 10px;
    }
    
    .xr-banner-section .swiper-button-prev {
        left: 10px;
    }
    
    .xr-banner-section .swiper-pagination {
        bottom: 10px !important;
    }
    
    .xr-banner-section .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .xr-banner-section .swiper-pagination-bullet-active {
        width: 16px;
    }
}

@media (max-width: 480px) {
    .xr-banner-section .swiper-container {
        height: 200px;
    }
    
    .xr-banner-section .swiper-button-next,
    .xr-banner-section .swiper-button-prev {
        display: none; /* 小屏幕隐藏导航按钮 */
    }
}

/* ==================== 8. 首页商品列表 ==================== */

.xr-product-section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px 0;
    clear: both;
    overflow: hidden;
}

.xr-product-section .xr-container {
    padding: 0 15px;
}

.xr-section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1251b;
}

.xr-section-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.5;
    width: 100%;
}

.xr-section-title h2 {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    font-size: 20px;
    font-weight: normal;
}

/* 如果h2直接是标题 */
h2.xr-section-title {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.5;
}

.xr-section-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #e1251b;
    color: #fff;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
}

.xr-section-link {
    color: #333;
    text-decoration: none;
    margin-right: auto;
    transition: color 0.3s;
}

.xr-section-link:hover {
    color: #e1251b;
}

.xr-section-more {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.xr-section-more:hover {
    color: #e1251b;
}

.xr-product-list {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    width: calc(100% + 20px);
}

.xr-product-item {
    width: calc(25% - 20px);
    margin: 10px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    float: none;
    display: block;
}

.xr-product-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border: 1px solid #e1251b;
}

.xr-product-box {
    position: relative;
}

.xr-product-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    display: block;
}

.xr-product-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.xr-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.xr-product-item:hover .xr-product-img img {
    transform: scale(1.05);
}

.xr-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.xr-product-item:hover .xr-product-overlay {
    opacity: 1;
}

.xr-product-rating {
    color: #ffa500;
    font-size: 12px;
}

/* 仅列表卡片悬停层内的操作按钮，勿与详情页 .xr-product-actions 混用 */
.xr-product-overlay .xr-product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.xr-action-btn {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: rgba(255,255,255,0.95);
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.xr-action-btn:hover {
    background-color: #e1251b;
    color: #fff;
    border-color: #e1251b;
    box-shadow: 0 2px 12px rgba(225,37,27,0.4);
}

.xr-product-info {
    padding: 15px;
    background-color: #fff;
}

.xr-product-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: normal;
    min-height: 40px;
    overflow: hidden;
    line-height: 1.4;
}

.xr-product-title h3 {
    margin: 0;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
}

.xr-product-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
    font-size: 16px;
}

.xr-product-title a:hover {
    color: #e1251b;
}

.xr-product-price {
    margin-bottom: 10px;
    line-height: 1.5;
}

.xr-price-current {
    color: #e1251b;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
}

.xr-product-price .xr-price-current {
    color: #e1251b;
    font-size: 18px;
    font-weight: bold;
}

.xr-product-action {
    margin-top: 10px;
}

.xr-add-cart-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background-color: #e1251b;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.xr-add-cart-btn:hover {
    background-color: #c81623;
}

/* ==================== 8. 购物车页面 ==================== */
.xr-cart-page {
    background-color: #fff;
    /*padding: 20px 0;*/
        width: 100%;
        margin-bottom: 50px;
    margin-top: 25px;
}

.xr-cart-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1251b;
}

.xr-cart-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

.xr-cart-form {
    margin-top: 20px;
    
}

.xr-cart-table {
    margin-bottom: 20px;
    overflow-x: auto;
}

/* 购物车商品列表（卡片/栅格） */
.xr-cart-list-wrap {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.xr-cart-list-hd {
    display: grid;
    grid-template-columns: 50px 96px minmax(0, 1fr) 110px 130px 96px 80px;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

.xr-cart-list {
    display: block;
}

.xr-cart-item {
    display: grid;
    grid-template-columns: 50px 96px minmax(0, 1fr) 110px 130px 96px 80px;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

.xr-cart-item:last-child {
    border-bottom: none;
}

.xr-cart-item.has-error {
    background: #fff8f8;
    box-shadow: inset 0 0 0 1px #e1251b;
}

.xr-cart-item-label {
    display: none;
    font-size: 12px;
    color: #999;
    margin-right: 8px;
    flex-shrink: 0;
}

.xr-cart-item-thumb {
    display: block;
    flex-shrink: 0;
}

.xr-cart-item-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    display: block;
}

.xr-cart-col-info {
    min-width: 0;
}

.xr-cart-col-price .xr-price-current {
    margin: 0;
}

.xr-cart-col-qty {
    position: relative;
}

.xr-cart-item-qty input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.xr-cart-col-action {
    text-align: center;
}

.xr-cart-col-action .xr-delete-btn em {
    font-style: normal;
}

/* TouchSpin：购物车数量 */
.xr-cart-item-qty .bootstrap-touchspin,
.xr-cart-item-qty .bootstrap-touchspin-wrapper,
.xr-cart-item-qty .bootstrap-touchspin .input-group {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    width: auto;
}

.xr-cart-item-qty .bootstrap-touchspin .input-group-btn {
    display: inline-block !important;
    width: auto;
    float: none;
    vertical-align: middle;
}

.xr-cart-item-qty .bootstrap-touchspin .input-group-btn-vertical {
    display: none !important;
}

.xr-cart-item-qty .bootstrap-touchspin .bootstrap-touchspin-down,
.xr-cart-item-qty .bootstrap-touchspin .bootstrap-touchspin-up {
    display: inline-block !important;
    width: 28px;
    height: 30px;
    min-width: 28px;
    line-height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.xr-cart-item-qty .bootstrap-touchspin .bootstrap-touchspin-down {
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-right: -1px;
}

.xr-cart-item-qty .bootstrap-touchspin .bootstrap-touchspin-up {
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-left: -1px;
}

.xr-cart-item-qty .bootstrap-touchspin .bootstrap-touchspin-down:hover,
.xr-cart-item-qty .bootstrap-touchspin .bootstrap-touchspin-up:hover {
    background-color: #e1251b;
    color: #fff;
    border-color: #e1251b;
    z-index: 1;
}

.xr-cart-item-qty .bootstrap-touchspin input.form-control,
.xr-cart-item-qty .bootstrap-touchspin input[type="text"] {
    display: inline-block !important;
    width: 60px !important;
    min-width: 60px;
    margin: 0;
    border-radius: 0 !important;
    text-align: center;
    padding: 6px !important;
}

.xr-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.xr-table thead {
    background-color: #f5f5f5;
}

.xr-table th {
    padding: 15px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    vertical-align: top;
}

.xr-table-checkbox {
    vertical-align: top;
    padding-top: 12px;
}

.xr-table-checkbox .xr-checkbox {
    vertical-align: top;
    margin-top: 0;
}

.xr-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.xr-table-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.xr-product-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: normal;
}

.xr-product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.xr-product-name a:hover {
    color: #e1251b;
}

.xr-product-sku {
    margin: 5px 0;
    font-size: 12px;
    color: #999;
}

.xr-price-original {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 5px;
}

.xr-price-info {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.xr-table-qty {
    position: relative;
}

.xr-table-qty input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* 购物车页面 Bootstrap TouchSpin 样式优化 - 确保按钮和输入框在同一行 */
.xr-table-qty .bootstrap-touchspin,
.xr-table-qty .bootstrap-touchspin-wrapper {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    flex-direction: row;
}

.xr-table-qty .bootstrap-touchspin .input-group {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    flex-direction: row;
}

.xr-table-qty .bootstrap-touchspin .input-group-btn {
    display: inline-block !important;
    width: auto;
    float: none;
    vertical-align: middle;
    position: relative;
}

.xr-table-qty .bootstrap-touchspin .input-group-btn-vertical {
    display: none !important; /* 隐藏垂直按钮布局 */
}

.xr-table-qty .bootstrap-touchspin .bootstrap-touchspin-down,
.xr-table-qty .bootstrap-touchspin .bootstrap-touchspin-up {
    display: inline-block !important;
    width: 28px;
    height: 30px;
    min-width: 28px;
    line-height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    text-align: center;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: bold;
}

.xr-table-qty .bootstrap-touchspin .bootstrap-touchspin-down {
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-right: -1px;
}

.xr-table-qty .bootstrap-touchspin .bootstrap-touchspin-up {
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-left: -1px;
}

.xr-table-qty .bootstrap-touchspin .bootstrap-touchspin-down:hover,
.xr-table-qty .bootstrap-touchspin .bootstrap-touchspin-up:hover {
    background-color: #e1251b;
    color: #fff;
    border-color: #e1251b;
    z-index: 1;
}

.xr-table-qty .bootstrap-touchspin input.form-control,
.xr-table-qty .bootstrap-touchspin input[type="text"] {
    display: inline-block !important;
    width: 60px !important;
    min-width: 60px;
    margin: 0;
    border-radius: 0 !important;
    text-align: center;
    vertical-align: middle;
    position: relative;
    z-index: 0;
    padding: 5px !important;
}

/* 确保输入框在按钮中间 */
.xr-table-qty .bootstrap-touchspin .input-group-btn:first-child {
    order: 1;
}

.xr-table-qty .bootstrap-touchspin input {
    order: 2;
}

.xr-table-qty .bootstrap-touchspin .input-group-btn:last-child {
    order: 3;
}

.xr-total-price {
    color: #e1251b;
    font-size: 16px;
    font-weight: bold;
}

.xr-delete-btn {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.xr-delete-btn:hover {
    color: #e1251b;
}

.xr-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 15px;
}

.xr-cart-footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.xr-select-all {
    margin-left: 5px;
    font-size: 14px;
    padding-top: 5px;
}

.xr-cart-footer-left .xr-checkbox {
    padding-top: 0;
    margin-top: -10px;
}

.xr-cart-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.xr-cart-summary {
    text-align: right;
}

.xr-summary-text {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.xr-summary-num {
    color: #e1251b;
    font-weight: bold;
}

.xr-summary-total {
    margin: 0;
    font-size: 18px;
}

.xr-total-amount {
    color: #e1251b;
    font-size: 24px;
    font-weight: bold;
}

/* 移动端购物车操作栏（默认隐藏） */
.xr-cart-mobile-bar {
    display: none;
}

.xr-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.xr-cart-mobile-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.xr-cart-mobile-check em {
    font-style: normal;
    font-size: 14px;
    color: #333;
}

/* ==================== 9. 按钮样式 ==================== */
.xr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.xr-btn-delete {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.xr-btn-delete:hover {
    border-color: #e1251b;
    color: #e1251b;
}

.xr-btn-refresh {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.xr-btn-refresh:hover {
    border-color: #e1251b;
    color: #e1251b;
}

.xr-btn-checkout {
    background-color: #e1251b;
    color: #fff;
    padding: 12px 40px;
    font-size: 16px;
}

.xr-btn-checkout:hover {
    background-color: #c81623;
}

.xr-btn-buy {
    padding: 10px 30px;
    background-color: #e1251b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
}

.xr-btn-buy:hover {
    background-color: #c81623;
}

/* ==================== 10. 复选框样式 ==================== */
.xr-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.xr-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    z-index: 1;
}

.xr-checkbox span {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 2px;
    pointer-events: none;
    background-color: #fff;
}

.xr-checkbox input[type="checkbox"]:checked + span {
    background-color: #e1251b;
    border-color: #e1251b;
}

.xr-checkbox input[type="checkbox"]:checked + span:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* ==================== 11. 搜索页面 ==================== */
.xr-search-page {
    background-color: #fff;
    padding: 20px 0;
}

.xr-filter-section {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.xr-filter-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.xr-filter-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.xr-filter-label {
    width: 100px;
    flex-shrink: 0;
    color: #666;
    font-size: 14px;
    padding-top: 5px;
}

.xr-filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xr-filter-tag {
    padding: 5px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.xr-filter-tag:hover,
.xr-filter-active {
    background-color: #e1251b;
    color: #fff;
    border-color: #e1251b;
}

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

.xr-price-input {
    width: 100px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.xr-price-sep {
    color: #999;
}

.xr-price-btn {
    padding: 5px 15px;
    background-color: #e1251b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.xr-price-btn:hover {
    background-color: #c81623;
}

.xr-search-input-box {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.xr-search-input-field {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.xr-search-submit {
    padding: 8px 20px;
    background-color: #e1251b;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.xr-search-submit:hover {
    background-color: #c81623;
}

.xr-sort-bar {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.xr-sort-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.xr-sort-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.xr-sort-item:hover,
.xr-sort-active {
    background-color: #e1251b;
    color: #fff;
}

.xr-product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

/* ==================== 12. 商品详情页 ==================== */
.xr-product-detail {
    background-color: #fff;
    padding: 20px 0;
}

.xr-product-main {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.xr-product-left {
    width: 400px;
    flex-shrink: 0;
    max-width: 400px;
}

.xr-product-images {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 20px;
}

.xr-product-main-img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.xr-product-main-img a {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
}

.xr-product-main-img img,
.xr-product-main-img #optima_zoom {
    width: 100%;
    max-width: 360px;
    max-height: 360px;
    height: auto;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background-color: #fff;
    display: block;
    margin: 0 auto;
}

/* 确保图片放大插件也受尺寸限制 */
.xr-product-main-img .zoomContainer,
.xr-product-main-img .zoomWrapper {
    max-width: 360px !important;
    max-height: 360px !important;
}

.xr-product-main-img .zoomWindow {
    max-width: 500px !important;
    max-height: 500px !important;
}

.xr-product-thumbs {
    overflow: hidden;
}

.xr-thumb-list {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.xr-thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.xr-thumb-item:hover,
.xr-thumb-item.active {
    border-color: #e1251b;
}

.xr-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-product-right {
    flex: 1;
    min-width: 300px;
}

.xr-product-info {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.xr-product-title {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.xr-product-rating-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.xr-rating-box {
    color: #ffa500;
    font-size: 14px;
}

.xr-product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.xr-meta-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.xr-meta-link:hover {
    color: #e1251b;
}

.xr-meta-sep {
    color: #ddd;
}

.xr-product-stats {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.xr-stat-item {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.xr-stat-value {
    color: #e1251b;
    font-weight: bold;
}

.xr-product-desc-short {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.xr-product-price-box {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff3f3;
    border-radius: 4px;
}

.xr-price-main {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.xr-price-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.xr-price-current {
    color: #e1251b;
    font-size: 28px;
    font-weight: bold;
    margin-right: 10px;
}

.xr-tag-free {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e1251b;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    vertical-align: middle;
    line-height: 1.5;
}

.xr-price-promotion {
    margin-top: 10px;
    width: 100%;
}

.xr-promotion-text {
    color: #e1251b;
    font-size: 14px;
}

/* 兼容旧的包邮标签位置（如果存在） */
.xr-shipping-tag {
    display: inline-block;
    margin-left: 10px;
}

.xr-product-sku {
    margin-bottom: 25px;
}

.xr-sku-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    min-height: 40px;
}

.xr-sku-label {
    width: 100px;
    flex-shrink: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 0;
}

.xr-sku-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.xr-sku-btn {
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    line-height: 1.5;
}

.xr-sku-btn:hover,
.xr-sku-active {
    border-color: #e1251b;
    color: #e1251b;
}

.xr-sku-value {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 0;
    display: inline-block;
}

.xr-sku-stock {
    color: #e1251b;
    font-weight: bold;
    line-height: 1.5;
    padding-top: 0;
    display: inline-block;
}

.xr-quantity-box {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.xr-quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Bootstrap TouchSpin 样式优化 - 确保按钮和输入框在同一行 */
.xr-quantity-box .bootstrap-touchspin,
.xr-quantity-box .bootstrap-touchspin-wrapper {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    flex-direction: row;
}

.xr-quantity-box .bootstrap-touchspin .input-group {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    flex-direction: row;
}

.xr-quantity-box .bootstrap-touchspin .input-group-btn {
    display: inline-block !important;
    width: auto;
    float: none;
    vertical-align: middle;
    position: relative;
}

.xr-quantity-box .bootstrap-touchspin .input-group-btn-vertical {
    display: none !important; /* 隐藏垂直按钮布局 */
}

.xr-quantity-box .bootstrap-touchspin .bootstrap-touchspin-down,
.xr-quantity-box .bootstrap-touchspin .bootstrap-touchspin-up {
    display: inline-block !important;
    width: 32px;
    height: 34px;
    min-width: 32px;
    line-height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    text-align: center;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: bold;
}

.xr-quantity-box .bootstrap-touchspin .bootstrap-touchspin-down {
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-right: -1px;
}

.xr-quantity-box .bootstrap-touchspin .bootstrap-touchspin-up {
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-left: -1px;
}

.xr-quantity-box .bootstrap-touchspin .bootstrap-touchspin-down:hover,
.xr-quantity-box .bootstrap-touchspin .bootstrap-touchspin-up:hover {
    background-color: #e1251b;
    color: #fff;
    border-color: #e1251b;
    z-index: 1;
}

.xr-quantity-box .bootstrap-touchspin input.form-control,
.xr-quantity-box .bootstrap-touchspin input[type="text"] {
    display: inline-block !important;
    width: 80px !important;
    min-width: 80px;
    margin: 0;
    border-radius: 0 !important;
    text-align: center;
    vertical-align: middle;
    position: relative;
    z-index: 0;
}

/* 确保输入框在按钮中间 */
.xr-quantity-box .bootstrap-touchspin .input-group-btn:first-child {
    order: 1;
}

.xr-quantity-box .bootstrap-touchspin input {
    order: 2;
}

.xr-quantity-box .bootstrap-touchspin .input-group-btn:last-child {
    order: 3;
}

.xr-product-detail .xr-product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.xr-product-detail .xr-product-actions .xr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.xr-btn-cart {
    flex: 1;
    padding: 15px;
    background-color: #ff9500;
    color: #fff;
    text-align: center;
    font-size: 16px;
    min-width: 150px;
}

.xr-btn-cart:hover {
    background-color: #ff8800;
}

.xr-btn-buy {
    flex: 1;
    padding: 15px;
    background-color: #e1251b;
    color: #fff;
    text-align: center;
    font-size: 16px;
    min-width: 150px;
}

.xr-btn-buy:hover {
    background-color: #c81623;
}

.xr-btn-favorite {
    padding: 15px 25px;
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.xr-btn-favorite:hover {
    border-color: #e1251b;
    color: #e1251b;
}

.xr-product-tabs {
    margin-top: 30px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.xr-tab-header {
    border-bottom: 1px solid #f0f0f0;
}

.xr-tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.xr-tab-item {
    margin-right: 30px;
    margin-left: 10px;
}

.xr-tab-item a {
    display: block;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.xr-tab-item.active a,
.xr-tab-item a:hover {
    color: #e1251b;
    border-bottom-color: #e1251b;
}

.xr-tab-content {
    padding: 20px;
}

.xr-tab-pane {
    display: none;
}

.xr-tab-pane.active {
    display: block;
}

.xr-attr-table {
    width: 100%;
    border-collapse: collapse;
}

.xr-attr-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.xr-attr-name {
    width: 200px;
    padding: 15px;
    background-color: #f5f5f5;
    color: #666;
    font-weight: normal;
}

.xr-attr-value {
    padding: 15px;
    color: #333;
}

/* ==================== 13. 促销页面 / 首页促销区块 ==================== */
.xr-promotion-section {
    background-color: #fff;
    padding: 30px 0;
    margin-bottom: 10px;
}

/* 首页限时折扣标题区 */
.xr-promo-header {
    position: relative;
    margin-bottom: 20px;
    padding: 16px 18px 16px 22px;
    background: linear-gradient(105deg, #fff8f6 0%, #fff 55%, #fffaf8 100%);
    border: 1px solid #ffe4e4;
    border-radius: 8px;
    overflow: hidden;
}

.xr-promo-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff6b35 0%, #e1251b 100%);
    border-radius: 8px 0 0 8px;
}

.xr-promo-header::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(225, 37, 27, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.xr-promo-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.xr-promo-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.xr-promo-header-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #ff7043 0%, #e1251b 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(225, 37, 27, 0.28);
}

.xr-promo-header-text {
    min-width: 0;
}

.xr-promo-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.xr-promo-header-desc {
    margin: 5px 0 0;
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.xr-promo-header-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 14px;
    font-size: 13px;
    color: #e1251b;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ffc9c9;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.xr-promo-header-more i {
    font-size: 12px;
    transition: transform 0.2s;
}

.xr-promo-header-more:hover {
    color: #fff;
    background: #e1251b;
    border-color: #e1251b;
    box-shadow: 0 4px 12px rgba(225, 37, 27, 0.25);
}

.xr-promo-header-more:hover i {
    transform: translateX(2px);
}

/* 首页促销：四列卡片，紧凑布局 */
.xr-promotion-list--home {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.xr-promotion-list--home .xr-promotion-item {
    width: calc(25% - 16px);
    margin: 8px;
}

.xr-promotion-list--home .xr-promotion-box {
    flex-direction: column;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
}

.xr-promotion-list--home .xr-promotion-info {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.xr-promotion-list--home .xr-promotion-badge {
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 11px;
}

.xr-promotion-list--home .xr-promotion-img {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
}

.xr-promotion-list--home .xr-promotion-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.xr-promotion-list--home .xr-promotion-title {
    font-size: 13px;
    line-height: 1.35;
    height: 36px;
    overflow: hidden;
    margin-bottom: 6px;
}

.xr-promotion-list--home .xr-promotion-price {
    margin-bottom: 8px;
}

.xr-promotion-list--home .xr-promotion-price .xr-price-current {
    font-size: 16px;
}

.xr-promotion-list--home .xr-promotion-timer {
    padding: 6px 8px;
    margin-bottom: 8px;
}

.xr-promotion-list--home .xr-timer-label {
    font-size: 12px;
    line-height: 28px;
}

.xr-promotion-list--home .xr-timer-box .cdown {
    min-width: 32px;
}

.xr-promotion-list--home .xr-timer-box .cdown .time-count {
    min-width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
}

.xr-promotion-list--home .xr-timer-box .cdown p {
    margin-top: 2px;
    font-size: 11px;
}

.xr-promotion-list--home .xr-promotion-action {
    margin-top: 8px;
}

.xr-promotion-list--home .xr-btn-buy {
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
    width: 100%;
    box-sizing: border-box;
}

.xr-promotion-page {
    background-color: #fff;
    padding: 20px 0;
}

.xr-promotion-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1251b;
}

.xr-promotion-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: normal;
    color: #e1251b;
}

.xr-promotion-desc {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.xr-promotion-list {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.xr-promotion-item {
    width: calc(50% - 20px);
    margin: 10px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.xr-promotion-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.xr-promotion-box {
    position: relative;
    display: flex;
    padding: 20px;
    flex-wrap: wrap;
}

.xr-promotion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    background-color: #e1251b;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

.xr-promotion-img {
    width: 200px;
    flex-shrink: 0;
    margin-right: 20px;
}

.xr-promotion-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.xr-promotion-info {
    flex: 1;
    min-width: 200px;
}

.xr-promotion-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: normal;
}

.xr-promotion-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.xr-promotion-title a:hover {
    color: #e1251b;
}

.xr-promotion-rating {
    margin-bottom: 10px;
    color: #ffa500;
}

.xr-promotion-price {
    margin-bottom: 15px;
    line-height: 1.6;
}

.xr-promotion-price .xr-price-current {
    font-size: 22px;
    font-weight: bold;
    color: #e1251b;
}

.xr-price-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #fff3f3;
    color: #e1251b;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.xr-promotion-timer {
    margin-bottom: 15px;
    padding: 12px 14px;
    background-color: #fff3f3;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.xr-timer-label {
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 36px;
}

.xr-timer-box {
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 6px;
    color: #e1251b;
    font-weight: bold;
    vertical-align: middle;
}

/* 倒计时：天 / 时 / 分 / 秒 */
.xr-timer-box .cdown {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    text-align: center;
    vertical-align: top;
}

.xr-timer-box .cdown .time-count {
    display: block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 4px;
    background-color: #e1251b;
    color: #fff;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box;
}

.xr-timer-box .cdown p {
    margin: 4px 0 0;
    padding: 0;
    font-size: 12px;
    font-weight: normal;
    color: #999;
    line-height: 1.2;
}

.xr-promotion-action {
    margin-top: 15px;
}

.xr-promotion-action .xr-btn-buy {
    min-width: 120px;
    text-align: center;
}

/* ==================== 14. 订单页面 ==================== */
.xr-order-page {
    background-color: #fff;
    padding: 20px 0;
}

.xr-order-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1251b;
}

.xr-order-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

.xr-order-section {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.xr-section-title {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #f0f0f0;
}

.xr-section-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.xr-section-content {
    padding: 20px;
}

.xr-address-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.xr-form-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.xr-form-label {
    width: 120px;
    flex-shrink: 0;
    color: #666;
    font-size: 14px;
}

.xr-form-input,
.xr-form-textarea {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    min-width: 200px;
}

.xr-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.xr-payment-methods {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.xr-payment-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.xr-payment-item:hover,
.xr-payment-item input:checked + .xr-payment-name {
    border-color: #e1251b;
    color: #e1251b;
}

.xr-payment-item input {
    margin-right: 8px;
}

.xr-order-summary {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.xr-summary-box {
    margin-bottom: 20px;
}

.xr-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.xr-summary-total {
    font-size: 18px;
    color: #333;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.xr-summary-value {
    color: #e1251b;
    font-weight: bold;
}

.xr-order-submit {
    text-align: right;
}

.xr-btn-submit {
    padding: 15px 50px;
    background-color: #e1251b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.xr-btn-submit:hover {
    background-color: #c81623;
}

.xr-order-row {
    transition: background-color 0.3s;
}

.xr-order-row:hover {
    background-color: #f9f9f9;
}

.xr-qty-display {
    font-size: 14px;
    color: #666;
}

/* ==================== 15. 分页 ==================== */
.xr-pagination {
    margin-top: 30px;
    text-align: center;
}

.xr-pagination .pagination {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.xr-pagination .pagination li {
    display: inline-block;
}

.xr-pagination .pagination a,
.xr-pagination .pagination span {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.xr-pagination .pagination a:hover,
.xr-pagination .pagination .active span {
    background-color: #e1251b;
    color: #fff;
    border-color: #e1251b;
}

/* ==================== 16. 底部区域 ==================== */
.xr-footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.xr-footer-content {
    display: flex;
    flex-direction: column;
}

.xr-footer-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 30px;
}

.xr-footer-section {
    min-width: 150px;
}

.xr-footer-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.xr-footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xr-footer-section li {
    margin-bottom: 8px;
}

.xr-footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.xr-footer-section a:hover {
    color: #e1251b;
}

.xr-footer-copyright {
    text-align: center;
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}

.xr-footer-copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.xr-footer-copyright a:hover {
    color: #e1251b;
}

/* ==================== 17. 返回顶部 ==================== */
.xr-scroll-top {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 52px;
    padding: 10px 0;
    text-align: center;
    background-color: #e1251b;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    opacity: 0.92;
    box-sizing: border-box;
}

.xr-scroll-top.xr-show {
    display: block;
}

.xr-scroll-top:hover {
    background-color: #c81623;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    opacity: 1;
}

.xr-scroll-top i {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.xr-scroll-top-text {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 4px;
}

/* ==================== 17b. 移动端头部 / 底栏 ==================== */
.xr-m-head,
.xr-m-tabbar,
.xr-m-drawer,
.xr-m-drawer-mask {
    display: none;
}

.xr-m-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600;
    padding: 8px 12px 0;
    padding-top: calc(8px + env(safe-area-inset-top, 0));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.xr-m-head > * {
    pointer-events: auto;
}

.xr-m-head--solid {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.xr-m-head-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.xr-m-logo {
    flex-shrink: 0;
    width: 72px;
}

.xr-m-logo img {
    height: 28px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    display: block;
}

.xr-page-home .xr-m-logo img {
    filter: brightness(0) invert(1);
}

.xr-m-head--solid .xr-m-logo img {
    filter: none;
}

.xr-m-search-form {
    flex: 1;
    min-width: 0;
}

.xr-m-search {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 4px 0 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.xr-m-head--solid .xr-m-search {
    background: #f5f5f5;
    box-shadow: none;
    border: 1px solid #eee;
}

.xr-m-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    height: 100%;
}

.xr-m-search-input::placeholder {
    color: #999;
}

.xr-m-search-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xr-m-head-btn,
.xr-m-nav-all {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.xr-m-head--solid .xr-m-head-btn,
.xr-m-head--solid .xr-m-nav-all {
    background: #f5f5f5;
    color: #666;
}

.xr-m-nav-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
}

.xr-m-nav-scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.xr-m-nav-scroll::-webkit-scrollbar {
    display: none;
}

.xr-m-nav-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.xr-m-head--solid .xr-m-nav-link {
    color: #666;
}

.xr-m-nav-link.is-active {
    color: #fff;
    font-weight: 600;
    position: relative;
}

.xr-m-head--solid .xr-m-nav-link.is-active {
    color: #e1251b;
}

.xr-m-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
}

.xr-m-head--solid .xr-m-nav-link.is-active::after {
    background: #e1251b;
}

/* 分类抽屉 */
.xr-m-drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.xr-m-drawer-mask.is-open {
    opacity: 1;
    visibility: visible;
}

.xr-m-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 320px);
    background: #fff;
    z-index: 810;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
}

.xr-m-drawer.is-open {
    transform: translateX(0);
}

.xr-m-drawer-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-top: calc(14px + env(safe-area-inset-top, 0));
}

.xr-m-drawer-hd strong {
    font-size: 16px;
    color: #333;
}

.xr-m-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

.xr-m-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 20px;
    -webkit-overflow-scrolling: touch;
}

.xr-m-drawer-group {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.xr-m-drawer-group:last-child {
    border-bottom: none;
}

.xr-m-drawer-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.xr-m-drawer-cat img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.xr-m-drawer-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 0 42px;
}

.xr-m-drawer-subitem {
    padding: 5px 10px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
}

.xr-m-drawer-subitem:hover {
    background: #fff3f3;
    color: #e1251b;
}

body.xr-m-drawer-open {
    overflow: hidden;
}

/* 底部 Tab（默认隐藏，仅 @media max-width:768px 显示） */
.xr-m-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 700;
    align-items: stretch;
    height: 50px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.xr-m-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    color: #666;
    text-decoration: none;
    font-size: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.xr-m-tabbar-item i {
    font-size: 20px;
    line-height: 1;
}

.xr-m-tabbar-item.is-active {
    color: #e1251b;
}

.xr-m-tabbar-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    margin-left: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #e1251b;
    border-radius: 8px;
    display: none;
}

.xr-m-tabbar-badge.is-show {
    display: block;
}

/* PC 端强制隐藏移动端组件 */
@media (min-width: 769px) {
    .xr-m-head,
    .xr-m-tabbar,
    .xr-m-drawer,
    .xr-m-drawer-mask {
        display: none !important;
    }

    .xr-wrapper {
        padding-bottom: 0 !important;
    }

    body:not(.xr-page-home) .xr-main-content {
        padding-top: 0 !important;
    }

    .xr-page-home .xr-banner-section .xr-container {
        padding-top: 0 !important;
    }
}

/* ==================== 18. 响应式设计 ==================== */
@media (max-width: 1200px) {
    .xr-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .xr-promotion-list--home .xr-promotion-item {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 992px) {
    .xr-promotion-list--home .xr-promotion-item {
        width: calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    /* 隐藏 PC 头部，显示移动端头部/底栏 */
    .xr-desktop-head {
        display: none !important;
    }

    .xr-m-head {
        display: block;
    }

    .xr-m-tabbar {
        display: flex;
    }

    .xr-m-drawer {
        display: flex;
    }

    .xr-m-drawer-mask {
        display: block;
    }

    .xr-wrapper {
        padding-bottom: calc(50px + env(safe-area-inset-bottom, 0));
        overflow-x: hidden;
    }

    .xr-main-content {
        padding-top: 0;
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 首页：头部浮在 Banner 上 */
    .xr-page-home .xr-main-content {
        padding-top: 0;
    }

    .xr-page-home .xr-banner-section {
        margin-top: 0;
        padding-top: 0;
    }

    .xr-page-home .xr-banner-section .xr-container {
        padding-top: 92px;
    }

    .xr-page-home .xr-banner-hero {
        border-radius: 8px;
        overflow: hidden;
    }

    /* 非首页：为固定头部留白 */
    body:not(.xr-page-home) .xr-main-content {
        padding-top: 92px;
    }

    /* 移动端隐藏 Banner 左侧分类（用顶栏导航代替） */
    .xr-banner-cats {
        display: none !important;
    }

    .xr-banner-main {
        border-radius: 8px;
    }

    .xr-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .xr-search {
        max-width: 100%;
        margin: 0;
    }

    .xr-footer-links {
        display: none;
    }

    .xr-footer {
        padding: 16px 0 12px;
        margin-bottom: 0;
    }

    .xr-footer-copyright {
        font-size: 11px;
        text-align: center;
    }
    
    .xr-product-section {
        overflow: visible;
        padding: 12px 0;
        margin-bottom: 10px;
    }

    .xr-product-section .xr-container {
        padding: 0 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .xr-product-list {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        width: 100%;
        max-width: 100%;
        gap: 10px;
        box-sizing: border-box;
    }

    .xr-product-item {
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        margin: 0;
        box-sizing: border-box;
    }

    .xr-product-box,
    .xr-product-img,
    .xr-product-img img {
        max-width: 100%;
    }

    .xr-product-info {
        padding: 8px 10px 10px;
    }

    .xr-product-title {
        min-height: auto;
        margin-bottom: 6px;
    }

    .xr-product-title a {
        font-size: 13px;
    }

    .xr-add-cart-btn {
        padding: 7px 4px;
        font-size: 12px;
    }

    .xr-product-main {
        flex-direction: column;
    }
    
    .xr-product-left {
        width: 100%;
        max-width: 100%;
    }
    
    .xr-product-main-img a {
        max-width: 100%;
    }
    
    .xr-product-main-img img,
    .xr-product-main-img #optima_zoom {
        max-width: 100%;
        max-height: 300px;
        width: auto;
        height: auto;
    }

    .xr-product-detail .xr-product-actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .xr-product-detail .xr-btn-cart,
    .xr-product-detail .xr-btn-buy,
    .xr-product-detail .xr-btn-favorite {
        width: 100%;
        min-width: 0;
        flex: none;
    }
    
    .xr-promotion-item {
        width: 100%;
    }

    .xr-promo-header {
        padding: 12px 14px 12px 18px;
        margin-bottom: 14px;
    }

    .xr-promo-header-main {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .xr-promo-header-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .xr-promo-header-title {
        font-size: 17px;
    }

    .xr-promo-header-desc {
        font-size: 12px;
    }

    .xr-promo-header-more {
        margin-left: auto;
        padding: 5px 12px;
        font-size: 12px;
    }

    .xr-promotion-section {
        padding: 12px 0;
    }

    .xr-promotion-section .xr-container {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .xr-promotion-list--home {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        width: 100%;
        max-width: 100%;
        gap: 10px;
        box-sizing: border-box;
    }

    .xr-promotion-list--home .xr-promotion-item {
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .xr-promotion-list--home .xr-promotion-box,
    .xr-promotion-box {
        flex-direction: column;
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .xr-promotion-list--home .xr-promotion-img,
    .xr-promotion-img {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .xr-promotion-list--home .xr-promotion-img img {
        height: 110px;
        width: 100%;
        object-fit: cover;
    }

    .xr-promotion-list--home .xr-promotion-info,
    .xr-promotion-info {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .xr-promotion-list--home .xr-promotion-title {
        height: auto;
        max-height: 2.8em;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .xr-promotion-list--home .xr-promotion-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
    }

    .xr-promotion-list--home .xr-promotion-price {
        margin-bottom: 6px;
    }

    .xr-promotion-list--home .xr-promotion-price .xr-price-current {
        font-size: 14px;
    }

    .xr-promotion-list--home .xr-price-tag {
        display: block;
        margin: 4px 0 0;
        margin-left: 0;
        font-size: 11px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .xr-promotion-list--home .xr-promotion-timer,
    .xr-promotion-timer {
        flex-direction: column;
        align-items: stretch;
        padding: 6px;
        margin-bottom: 6px;
        gap: 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .xr-promotion-list--home .xr-timer-label,
    .xr-timer-label {
        line-height: 1.3;
        font-size: 11px;
    }

    .xr-promotion-list--home .xr-timer-box,
    .xr-timer-box {
        justify-content: center;
        gap: 2px 4px;
        max-width: 100%;
    }

    .xr-promotion-list--home .xr-timer-box .cdown {
        min-width: 0;
        flex: 1;
        max-width: 25%;
    }

    .xr-promotion-list--home .xr-timer-box .cdown .time-count {
        min-width: 0;
        width: 100%;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
        padding: 0 2px;
    }

    .xr-promotion-list--home .xr-timer-box .cdown p {
        font-size: 10px;
        margin-top: 2px;
    }

    .xr-promotion-list--home .xr-promotion-action {
        margin-top: 4px;
    }

    .xr-promotion-list--home .xr-btn-buy {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* 购物车页移动端 */
    .xr-cart-page {
        padding: 10px 0 calc(130px + env(safe-area-inset-bottom, 0));
    }

    .xr-cart-page .xr-container {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .xr-cart-page .xr-breadcrumb {
        font-size: 12px;
        margin-bottom: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .xr-cart-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .xr-cart-header h2 {
        font-size: 18px;
    }

    .xr-cart-form {
        margin-top: 10px;
    }

    .xr-cart-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    .xr-cart-list-wrap {
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    .xr-cart-list-hd {
        display: none;
    }

    .xr-cart-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .xr-cart-item {
        display: block;
        position: relative;
        padding: 12px 12px 12px 40px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
    }

    .xr-cart-item.has-error {
        border-color: #e1251b;
        background: #fff8f8;
        box-shadow: 0 0 0 1px rgba(225, 37, 27, 0.2);
    }

    .xr-cart-col {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .xr-cart-col-check {
        position: absolute;
        left: 10px;
        top: 14px;
        width: auto;
        z-index: 2;
    }

    .xr-cart-col-thumb {
        float: left;
        width: 88px;
        margin: 0 10px 0 0;
    }

    .xr-cart-item-thumb img {
        width: 88px;
        height: 88px;
        border-radius: 6px;
    }

    .xr-cart-col-info {
        overflow: hidden;
        min-height: 88px;
        margin-bottom: 10px;
    }

    .xr-cart-col-info .xr-product-name {
        font-size: 14px;
        line-height: 1.45;
        margin: 0 0 4px;
    }

    .xr-cart-col-info .xr-product-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
    }

    .xr-cart-col-info .xr-product-sku {
        font-size: 11px;
        margin: 2px 0;
    }

    .xr-cart-col-price {
        clear: both;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 10px 0 6px;
        border-top: 1px solid #f5f5f5;
    }

    .xr-cart-col-price::before {
        content: "单价";
        font-size: 12px;
        color: #999;
        flex-shrink: 0;
    }

    .xr-cart-col-price .xr-price-current {
        font-size: 15px;
        font-weight: 600;
        color: #e1251b;
        text-align: right;
    }

    .xr-cart-col-price .xr-price-original,
    .xr-cart-col-price .xr-price-info {
        display: none;
    }

    .xr-cart-col-qty {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-top: 1px dashed #f0f0f0;
    }

    .xr-cart-item-label {
        display: inline-block;
    }

    .xr-cart-item-qty {
        margin-left: auto;
    }

    .xr-cart-item-qty .bootstrap-touchspin,
    .xr-cart-item-qty .bootstrap-touchspin .input-group {
        margin-left: 0;
    }

    .xr-cart-col-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-top: 1px dashed #f0f0f0;
    }

    .xr-cart-col-total .xr-total-price {
        font-size: 16px;
        font-weight: 700;
        color: #e1251b;
    }

    .xr-cart-col-action {
        position: absolute;
        top: 12px;
        right: 12px;
        width: auto;
        text-align: right;
    }

    .xr-cart-col-action .xr-delete-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.04);
        color: #999;
        font-size: 16px;
    }

    .xr-cart-col-action .xr-delete-btn em {
        display: none;
    }

    .xr-cart-col-action .xr-delete-btn:hover {
        background: #fff3f3;
        color: #e1251b;
    }

    .xr-cart-footer {
        /*position: fixed;*/
        left: 0;
        right: 0;
        bottom: calc(50px + env(safe-area-inset-bottom, 0));
        z-index: 550;
        margin: 0;
        padding: 10px 12px;
        border-radius: 0;
        border-top: 1px solid #eee;
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .xr-cart-footer-left {
        display: none;
    }

    .xr-cart-footer-right {
        width: 100%;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .xr-cart-summary {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .xr-summary-text {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .xr-summary-total {
        font-size: 14px;
        line-height: 1.3;
    }

    .xr-total-amount {
        font-size: 20px;
    }

    .xr-btn-checkout {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 15px;
        white-space: nowrap;
        min-width: 110px;
    }
    
    .xr-nav-list {
        flex-wrap: wrap;
        gap: 0;
        overflow: visible;
    }

    .xr-nav-link {
        height: 44px;
        padding: 0 12px;
        font-size: 13px;
        gap: 5px;
    }

    .xr-nav-link::after {
        left: 12px;
        right: 12px;
        height: 2px;
    }

    .xr-nav-icon {
        width: 18px;
        height: 18px;
    }

    .xr-nav-icon i {
        font-size: 13px;
    }

    .xr-nav-text {
        max-width: 5em;
    }

    .xr-nav-caret {
        display: none;
    }

    .xr-nav-tag {
        display: none;
    }

    .xr-dropdown {
        min-width: 240px;
        left: 0;
        right: auto;
    }

    .xr-member--logged .ep-user-info {
        max-width: 80px;
    }

    .xr-member--logged .xr-member-link {
        padding: 0 5px;
        font-size: 11px;
    }
    
    .xr-footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .xr-scroll-top,
    .xr-scroll-top.xr-show {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .xr-product-section .xr-container {
        padding: 0 8px;
    }

    .xr-product-list {
        gap: 8px;
    }

    .xr-product-item {
        width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        flex: 0 0 calc(50% - 4px);
        margin: 0;
    }

    .xr-cart-page {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0));
    }

    .xr-cart-col-thumb {
        width: 76px;
    }

    .xr-cart-item-thumb img {
        width: 76px;
        height: 76px;
    }

    .xr-cart-col-info {
        min-height: 76px;
    }

    .xr-btn-checkout {
        min-width: 96px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .xr-total-amount {
        font-size: 18px;
    }
}

/* ==================== 19. 工具类 ==================== */
.xr-text-center {
    text-align: center;
}

.xr-text-right {
    text-align: right;
}

.xr-text-left {
    text-align: left;
}

.xr-mt-10 {
    margin-top: 10px;
}

.xr-mt-20 {
    margin-top: 20px;
}

.xr-mb-10 {
    margin-bottom: 10px;
}

.xr-mb-20 {
    margin-bottom: 20px;
}

.xr-clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== 20. 兼容性修复 ==================== */
.xr-product-section:after {
    content: "";
    display: table;
    clear: both;
}

.xr-product-list:after {
    content: "";
    display: table;
    clear: both;
}

/* 确保商品项正确显示 */
.xr-product-item {
    box-sizing: border-box;
    vertical-align: top;
    position: relative;
}

/* 确保商品列表容器正确 */
.xr-product-list {
    box-sizing: border-box;
}

/* 修复标题显示 */
.xr-section-header h2 {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 确保图片容器正确 */
.xr-product-img a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* 修复价格显示 */
.xr-product-price span {
    display: inline-block;
}

/* 修复按钮显示 */
.xr-add-cart-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 确保容器正确清除浮动 */
.xr-container:after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== 21. Swiper 全局颜色覆盖 ==================== */
/* 覆盖 Swiper 默认颜色，统一使用红色主题 #e1251b */

/* 分页器颜色覆盖 */
.xr-banner-section .swiper-container .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5) !important;
    opacity: 1 !important;
}

.xr-banner-section .swiper-container .swiper-pagination-bullet-active {
    background: #e1251b !important;
    opacity: 1 !important;
}

/* 导航按钮颜色覆盖 - 覆盖 SVG 背景图片 */
.xr-banner-section .swiper-container .swiper-button-next,
.xr-banner-section .swiper-container .swiper-button-prev,
.swiper-container .swiper-button-next,
.swiper-container .swiper-button-prev {
    background-color: rgba(255,255,255,0.95) !important;
    color: #333 !important;
    background-image: none !important;
}

.xr-banner-section .swiper-container .swiper-button-next:after,
.xr-banner-section .swiper-container .swiper-button-prev:after,
.swiper-container .swiper-button-next:after,
.swiper-container .swiper-button-prev:after {
    color: #333 !important;
    font-family: 'swiper-icons';
    font-size: 18px;
    font-weight: bold;
}

.xr-banner-section .swiper-container .swiper-button-next:hover,
.xr-banner-section .swiper-container .swiper-button-prev:hover,
.swiper-container .swiper-button-next:hover,
.swiper-container .swiper-button-prev:hover {
    background-color: #e1251b !important;
    color: #fff !important;
    background-image: none !important;
}

.xr-banner-section .swiper-container .swiper-button-next:hover:after,
.xr-banner-section .swiper-container .swiper-button-prev:hover:after,
.swiper-container .swiper-button-next:hover:after,
.swiper-container .swiper-button-prev:hover:after {
    color: #fff !important;
}

/* 覆盖 Swiper 按钮 SVG 背景图片 - 使用红色主题 */
.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23333'%2F%3E%3C%2Fsvg%3E") !important;
    left: 10px;
    right: auto;
}

.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23333'%2F%3E%3C%2Fsvg%3E") !important;
    right: 10px;
    left: auto;
}

.swiper-button-prev:hover,
.swiper-container-rtl .swiper-button-next:hover {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-next:hover,
.swiper-container-rtl .swiper-button-prev:hover {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-prev.swiper-button-white,
.swiper-container-rtl .swiper-button-next.swiper-button-white {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-next.swiper-button-white,
.swiper-container-rtl .swiper-button-prev.swiper-button-white {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-prev.swiper-button-black,
.swiper-container-rtl .swiper-button-next.swiper-button-black {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23333'%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-next.swiper-button-black,
.swiper-container-rtl .swiper-button-prev.swiper-button-black {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23333'%2F%3E%3C%2Fsvg%3E") !important;
}

/* 进度条颜色覆盖 */
.xr-banner-section .swiper-container .swiper-pagination-progressbar {
    background: rgba(255,255,255,0.3) !important;
}

.xr-banner-section .swiper-container .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #e1251b !important;
}

/* 滚动条颜色覆盖 */
.xr-banner-section .swiper-container .swiper-scrollbar {
    background: rgba(255,255,255,0.3) !important;
}

.xr-banner-section .swiper-container .swiper-scrollbar-drag {
    background: #e1251b !important;
}

/* CSS 变量覆盖（Swiper 4.x 支持） */
.xr-banner-section .swiper-container,
.swiper-container {
    --swiper-theme-color: #e1251b;
    --swiper-navigation-color: #333;
}

.xr-banner-section .swiper-container:hover,
.swiper-container:hover {
    --swiper-navigation-color: #fff;
}

/* 全局 Swiper 颜色覆盖（适用于页面中所有 Swiper） */
.swiper-container .swiper-pagination-bullet-active {
    background: #e1251b !important;
    opacity: 1 !important;
}

.swiper-container .swiper-pagination-progressbar-fill {
    background: #e1251b !important;
}

.swiper-container .swiper-scrollbar-drag {
    background: #e1251b !important;
}

/* ==================== 购物车属性选择页面 ==================== */
/* cart_select.html 独立样式 */

/* 表单容器 */
.cart-select-page .form-option {
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}

/* 表单组 */
.cart-select-page .form-group.row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-select-page .form-group.row:last-child {
    border-bottom: none;
}

/* 标签样式 */
.cart-select-page .control-label {
    width: 100px;
    flex-shrink: 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

/* SKU选择区域 */
.cart-select-page .fc-sku-select-price {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* SKU选择按钮 */
.cart-select-page .fc-sku-value {
    padding: 8px 20px !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #666 !important;
    transition: all 0.3s !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    min-width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

.cart-select-page .fc-sku-value:hover {
    border-color: #e1251b !important;
    color: #e1251b !important;
    background-color: #fff !important;
}

/* 选中状态的SKU按钮 */
.cart-select-page .fc-sku-value.red,
.cart-select-page .fc-sku-value.btn.red {
    border-color: #e1251b !important;
    color: #e1251b !important;
    background-color: #fff3f3 !important;
    font-weight: 500 !important;
}

/* 价格显示 */
.cart-select-page .price.regular-price {
    color: #e1251b;
    font-size: 18px;
    font-weight: bold;
}

.cart-select-page .price.regular-price span {
    font-size: 20px;
}

/* 库存显示 */
.cart-select-page #dr_sku_quantity {
    color: #e1251b;
    font-weight: bold;
    font-size: 14px;
}

/* 隐藏输入框 */
.cart-select-page input[type="hidden"] {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cart-select-page .form-group.row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-select-page .control-label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cart-select-page .fc-sku-select-price {
        width: 100%;
    }
}

/* ==================== 订单结算页面 ==================== */
/* order_checkout.html 样式 */

/* 页面容器 */
.main-content-area {
    background-color: #fff;
    padding: 20px 0;
    min-height: 500px;
        width: 100%;
}

.main-content-area .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 面包屑导航 */
.greentect_bradcame {
    margin-bottom: 20px;
    padding: 15px 0;
}

.greentect_bradcame ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.greentect_bradcame li {
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

.greentect_bradcame li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.greentect_bradcame li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.greentect_bradcame li a:hover {
    color: #e1251b;
}

.greentect_bradcame li:last-child {
    color: #e1251b;
}

/* Portlet 样式（地址、付款方式、商品详情区域） */
.portlet {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.portlet.light.bordered {
    border: 1px solid #e8e8e8;
}

.portlet-title {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
    border-radius: 4px 4px 0 0;
}

.portlet-title .caption {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.portlet-title .caption-subject {
    color: #333;
}

.portlet-body {
    padding: 20px;
}

/* 地址选择区域 */
.box-border {
    padding: 15px;
}

.box-border ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-border li {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.3s;
}

.box-border li:hover {
    border-color: #e1251b;
    background-color: #fff3f3;
}

.box-border li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.box-border li input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.box-border li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.box-border li a:hover {
    color: #e1251b;
}

.box-border li a span {
    color: #666;
}

.box-border label a.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e1251b;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.box-border label a.btn:hover {
    background-color: #c81623;
}

/* 结算页商品列表 */
.xr-checkout-goods-wrap {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.xr-checkout-goods-hd {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 100px 100px 56px 100px;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

.xr-checkout-goods-list {
    display: block;
}

.xr-checkout-goods-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 100px 100px 56px 100px;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

.xr-checkout-goods-item:last-child {
    border-bottom: none;
}

.xr-checkout-col-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    display: block;
}

.xr-checkout-col-info {
    min-width: 0;
    text-align: left;
}

.xr-checkout-col-promo {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.xr-checkout-empty {
    color: #ccc;
}

.xr-checkout-col-price {
    text-align: center;
}

.xr-checkout-unit {
    margin: 0;
    color: #e1251b;
    font-weight: 600;
}

.xr-checkout-qty {
    display: inline-block;
    padding: 2px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.xr-checkout-line-total {
    color: #e1251b;
    font-weight: 700;
    font-size: 15px;
}

.xr-checkout-summary {
    background: #fafafa;
    border-top: 2px solid #e8e8e8;
    padding: 4px 0;
}

.xr-checkout-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.xr-checkout-summary-row:last-child {
    border-bottom: none;
}

.xr-checkout-summary-row--total {
    background: #fff3f3;
    font-size: 16px;
    font-weight: 700;
}

.xr-checkout-summary-row--total .xr-checkout-summary-label,
.xr-checkout-summary-row--total .xr-checkout-summary-val {
    color: #e1251b;
}

.xr-checkout-summary-row--total .regular-price {
    font-size: 20px;
}

.xr-checkout-summary-label {
    color: #666;
}

.xr-checkout-summary-val {
    color: #333;
    font-weight: 500;
}

.xr-checkout-summary-val .regular-price {
    color: #e1251b;
    font-weight: 600;
}

/* 商品详情表格（兼容旧结构） */
.portlet-body .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.portlet-body .table thead {
    background-color: #f5f5f5;
}

.portlet-body .table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid #e8e8e8;
    font-size: 14px;
}

.portlet-body .table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.portlet-body .table tbody tr:hover {
    background-color: #fafafa;
}

.portlet-body .table tfoot tr {
    background-color: #fafafa;
    font-weight: 500;
}

.portlet-body .table tfoot tr:last-child {
    background-color: #fff3f3;
    font-size: 16px;
    font-weight: bold;
    color: #e1251b;
}

.portlet-body .table tfoot td {
    padding: 15px 12px;
    border-top: 2px solid #e8e8e8;
}

/* 商品图片 */
.cart_product img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

/* 商品信息 */
.cart_description {
    text-align: left;
}

.cart_description .product-name {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.cart_description .product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.cart_description .product-name a:hover {
    color: #e1251b;
}

.cart_ref {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* 价格样式 */
.price {
    color: #e1251b;
    font-size: 14px;
    font-weight: 500;
}

.price .regular-price {
    color: #e1251b;
    font-weight: bold;
    font-size: 16px;
}

.pyuan {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 5px;
}

.promotion {
    color: #e1251b;
    font-size: 12px;
}

/* 买家留言 */
.order-gbook {
    margin: 20px 0;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 4px;
}

.order-gbook textarea.form-control {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.order-gbook textarea.form-control:focus {
    outline: none;
    border-color: #e1251b;
}

/* 提交按钮 */
.text-right {
    text-align: right;
    margin-top: 20px;
}

.text-right .button.btn {
    padding: 12px 40px;
    background-color: #e1251b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.text-right .button.btn:hover {
    background-color: #c81623;
}

.text-right .button.btn.green {
    background-color: #e1251b;
}

.text-right .button.btn.green:hover {
    background-color: #c81623;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content-area {
        padding: 10px 0 calc(80px + env(safe-area-inset-bottom, 0));
    }

    .main-content-area .container {
        padding: 0 10px;
        max-width: 100%;
    }

    .greentect_bradcame {
        padding: 8px 0;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .portlet {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .portlet-title {
        padding: 12px 14px;
    }

    .portlet-title .caption {
        font-size: 15px;
    }

    .portlet-body {
        padding: 12px;
    }

    .box-border li {
        padding: 12px;
        margin-bottom: 10px;
    }

    .box-border li a {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 13px;
    }

    .xr-checkout-goods-wrap {
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .xr-checkout-goods-hd {
        display: none;
    }

    .xr-checkout-goods-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .xr-checkout-goods-item {
        display: block;
        padding: 12px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    }

    .xr-checkout-col {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .xr-checkout-col-thumb {
        float: left;
        width: 80px;
        margin: 0 10px 8px 0;
    }

    .xr-checkout-col-thumb img {
        width: 80px;
        height: 80px;
        border-radius: 6px;
    }

    .xr-checkout-col-info {
        overflow: hidden;
        min-height: 80px;
        margin-bottom: 10px;
    }

    .xr-checkout-col-info .product-name {
        font-size: 14px;
        line-height: 1.45;
    }

    .xr-checkout-col-info .product-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .xr-checkout-col-promo {
        clear: both;
        text-align: left;
        padding: 8px 10px;
        margin-bottom: 6px;
        background: #fff8f0;
        border-radius: 4px;
        font-size: 12px;
    }

    .xr-checkout-col-promo:empty,
    .xr-checkout-col-promo .xr-checkout-empty:only-child {
        display: none;
    }

    .xr-checkout-col-price,
    .xr-checkout-col-qty,
    .xr-checkout-col-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-top: 1px dashed #f0f0f0;
        text-align: right;
    }

    .xr-checkout-col-price::before {
        content: "单价";
        font-size: 12px;
        color: #999;
        flex-shrink: 0;
    }

    .xr-checkout-col-qty::before {
        content: "数量";
        font-size: 12px;
        color: #999;
    }

    .xr-checkout-col-total::before {
        content: "小计";
        font-size: 12px;
        color: #999;
    }

    .xr-checkout-col-price .xr-checkout-unit {
        font-size: 15px;
    }

    .xr-checkout-line-total {
        font-size: 16px;
    }

    .xr-checkout-summary {
        margin-top: 12px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #eee;
    }

    .xr-checkout-summary-row {
        padding: 10px 12px;
        font-size: 13px;
    }

    .xr-checkout-summary-row--total {
        padding: 14px 12px;
    }

    .xr-checkout-summary-row--total .regular-price {
        font-size: 18px;
    }

    .order-gbook {
        margin: 12px 0;
        padding: 10px;
    }

    .order-gbook textarea.form-control {
        min-height: 80px;
        font-size: 14px;
    }

    .text-right {
        text-align: center;
        margin-top: 12px;
        padding-bottom: 8px;
    }

    .text-right .button.btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    .portlet-body .table {
        font-size: 12px;
    }

    .portlet-body .table th,
    .portlet-body .table td {
        padding: 8px;
    }

    .cart_product img {
        width: 50px;
        height: 50px;
    }
}

/* ==================== 订单地址页面 ==================== */
/* order_address.html 样式 */

/* 页面容器 */
.page-content-white {
    background-color: #f5f5f5;
    padding: 20px;
    min-height: 100vh;
}

/* Portlet 容器 */
.page-content-white .portlet {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 0;
}

.page-content-white .portlet.light {
    background-color: #fff;
}

.page-content-white .portlet-body {
    padding: 30px;
}

/* 表单容器 */
.page-content-white .form-body {
    max-width: 800px;
    margin: 0 auto;
}

/* 表单组 */
.page-content-white .form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 标签样式 */
.page-content-white .control-label {
    padding-top: 8px;
    margin-bottom: 0;
    text-align: right;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.page-content-white .control-label .required {
    color: #e1251b;
    margin-right: 3px;
}

/* 输入框容器 */
.page-content-white .col-xs-8,
.page-content-white .col-md-8 {
    padding-left: 15px;
    padding-right: 15px;
}

/* 输入框样式 */
.page-content-white .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s;
}

.page-content-white .form-control:focus {
    outline: none;
    border-color: #e1251b;
    box-shadow: 0 0 0 2px rgba(225, 37, 27, 0.1);
}

.page-content-white .form-control::placeholder {
    color: #999;
}

/* 复选框样式 */
.page-content-white input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
}

.page-content-white label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.page-content-white label input[type="checkbox"] {
    margin-right: 8px;
}

/* 城市选择区域 */
.page-content-white #dr_row_city .col-xs-8,
.page-content-white #dr_row_city .col-md-8 {
    padding-top: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-content-white {
        padding: 10px;
    }
    
    .page-content-white .portlet-body {
        padding: 20px 15px;
    }
    
    .page-content-white .form-group {
        flex-direction: column;
    }
    
    .page-content-white .control-label {
        text-align: left;
        margin-bottom: 8px;
        padding-top: 0;
        width: 100%;
    }
    
    .page-content-white .col-xs-8,
    .page-content-white .col-md-8 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-content-white .form-control {
        width: 100%;
    }
}

/* ==================== 商品评论页 & 评论列表 ==================== */
/* comment.html / comment_ajax.html / 详情页评论 Tab */

/* 评论独立页 - 商品摘要卡片 */
.xr-comment-page .single-product-page-area,
[id^="dr_module_comment_"] .fc-mall-comment-head {
    box-sizing: border-box;
}

.single-product-page-area {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.single-product-image {
    padding: 24px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    text-align: center;
}

.single-pro-main-image {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.single-pro-main-image img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
}

.single-product-description {
    padding: 24px 28px 28px;
}

.single-product-description .pro-desc h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 16px;
}

.review_forum {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 6px;
}

.review_forum .rating-box {
    display: flex;
    gap: 2px;
}

.review_forum .rating-box i {
    color: #ff9900;
    font-size: 16px;
}

.review_forum p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.review_forum a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.review_forum a:hover {
    color: #e1251b;
}

.info-orther {
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.info-orther p {
    margin: 0 0 8px;
}

.info-orther span {
    color: #333;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-price-group {
    margin-bottom: 8px;
}

.product-price-group .regular-price {
    font-size: 26px;
    font-weight: 700;
    color: #e1251b;
}

.single-product-description .form-action {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.single-product-description .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.single-product-description .button-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.single-product-description .button-group .btn.blue {
    background: #fff;
    color: #e1251b;
    border-color: #e1251b;
}

.single-product-description .button-group .btn.blue:hover {
    background: #fff3f3;
}

.single-product-description .button-group .btn.green {
    background: #e1251b;
    color: #fff;
    border-color: #e1251b;
}

.single-product-description .button-group .btn.green:hover {
    background: #c81623;
    border-color: #c81623;
}

/* 评论 Tab 区域 */
.product-more-info-tab {
    border-top: 1px solid #f0f0f0;
    padding: 0 20px 24px;
}

.product-more-info-tab .more-info-tab {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.product-more-info-tab .more-info-tab > li {
    margin-bottom: -1px;
}

.product-more-info-tab .more-info-tab > li > a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.product-more-info-tab .more-info-tab > li.active > a,
.product-more-info-tab .more-info-tab > li > a:hover {
    color: #e1251b;
    border-bottom-color: #e1251b;
}

.product-tab-content {
    padding-top: 8px;
}

/* comment_ajax：评分概览 */
.fc-mall-comment-head {
    padding: 20px 0 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.fc-mall-comment-fen {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #e1251b;
}

.fc-mall-comment-xin {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.fc-mall-comment-xin i {
    color: #ff9900;
    font-size: 16px;
}

.fc-mall-comment-head .ds-review {
    margin: 0;
}

.fc-mall-comment-head .ds-review ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-mall-comment-head .ds-review li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px dashed #f5f5f5;
}

.fc-mall-comment-head .ds-review li:last-child {
    border-bottom: none;
}

.fc-mall-comment-head .ds-review .opname {
    min-width: 72px;
    color: #333;
}

/* 排序筛选 */
.fc-mall-comment-list-params {
    margin-top: 16px;
    padding-top: 4px;
}

.fc-mall-comment-list-params .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    border: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fc-mall-comment-list-params .nav-tabs > li {
    float: none;
    margin: 0;
}

.fc-mall-comment-list-params .nav-tabs > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.fc-mall-comment-list-params .nav-tabs > li > a:hover {
    color: #e1251b;
    background: #fff8f7;
}

.fc-mall-comment-list-params .nav-tabs > li.active > a {
    color: #e1251b;
    background: #fff3f3;
    border-color: #ffd4d1;
    font-weight: 500;
}

/* 评论列表 */
.fc-mall-comments-list,
.product-comments-block-tab {
    margin-top: 8px;
}

.product-comments-block-tab .comment.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-comments-block-tab .comment.row:last-child {
    border-bottom: none;
}

.product-comments-block-tab .comment .author {
    flex: 0 0 auto;
    width: 120px;
    padding: 0 12px;
    box-sizing: border-box;
}

.product-comments-block-tab .comment .ds-avatar {
    margin-bottom: 10px;
}

.product-comments-block-tab .comment .ds-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
}

.product-comments-block-tab .ds-comment-header {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    word-break: break-all;
}

.product-comments-block-tab .grade {
    font-size: 12px;
    color: #999;
}

.product-comments-block-tab .grade .reviewRating {
    display: inline-flex;
    gap: 1px;
}

.product-comments-block-tab .grade .reviewRating i {
    color: #ff9900;
    font-size: 12px;
}

.product-comments-block-tab .grade p {
    margin: 4px 0 0;
}

.product-comments-block-tab .commnet-dettail {
    flex: 1;
    min-width: 0;
    padding: 0 12px 0 0;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    word-break: break-word;
}

.product-comments-block-tab .info-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.fc-mall-comment-image {
    margin-top: 14px;
}

.fc-mall-comment-image .thumbnail {
    margin: 0;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    overflow: hidden;
}

.fc-mall-comment-image .thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.fc-mall-comment-image .thumbnail a:hover img {
    opacity: 0.92;
}

.fc-comment-list-page {
    margin: 24px 0 8px;
    padding-top: 8px;
}

.fc-comment-list-page .pagination {
    margin: 0;
}

.fc-comment-list-page .pagination > li > a,
.fc-comment-list-page .pagination > li > span {
    color: #666;
    border-color: #eee;
}

.fc-comment-list-page .pagination > .active > a,
.fc-comment-list-page .pagination > .active > span {
    background-color: #e1251b;
    border-color: #e1251b;
    color: #fff;
}

/* 详情页 Tab 内评论 */
.xr-tab-content [id^="dr_module_comment_"],
.xr-comment-page [id^="dr_module_comment_"] {
    padding: 12px 0 0;
}

.xr-tab-content .fc-mall-comment-head,
.xr-tab-content .fc-mall-comments-list {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .single-product-image {
        padding: 16px;
    }

    .single-product-description {
        padding: 16px;
    }

    .single-product-description .pro-desc h2 {
        font-size: 18px;
    }

    .product-price-group .regular-price {
        font-size: 22px;
    }

    .single-product-description .button-group {
        flex-direction: column;
    }

    .single-product-description .button-group .btn {
        width: 100%;
        margin-top: 0 !important;
    }

    .product-more-info-tab {
        padding: 0 12px 16px;
    }

    .product-more-info-tab .more-info-tab > li > a {
        padding: 12px 14px;
        font-size: 14px;
    }

    .fc-mall-comment-head .row > [class*="col-"] {
        margin-bottom: 12px;
    }

    .fc-mall-comment-fen {
        font-size: 36px;
    }

    .fc-mall-comment-list-params .nav-tabs {
        justify-content: flex-start;
    }

    .fc-mall-comment-list-params .nav-tabs > li > a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .product-comments-block-tab .comment.row {
        flex-direction: column;
        padding: 16px 0;
    }

    .product-comments-block-tab .comment .author {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 0 0 12px;
        border-bottom: 1px dashed #f0f0f0;
        margin-bottom: 12px;
    }

    .product-comments-block-tab .comment .ds-avatar {
        margin: 0;
        flex-shrink: 0;
    }

    .product-comments-block-tab .comment .ds-avatar img {
        margin: 0;
        width: 44px;
        height: 44px;
    }

    .product-comments-block-tab .commnet-dettail {
        padding: 0;
    }

    .fc-mall-comment-image .col-md-2 {
        width: 33.333%;
        float: left;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .fc-mall-comment-image .row {
        margin-left: -4px;
        margin-right: -4px;
    }
}
