/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

a:hover {
    color: #e60012;
}

ul, ol {
    list-style: none;
}

img {
    border: none;
    vertical-align: middle;
}

input, button, select {
    outline: none;
    border: none;
    font-family: inherit;
}

.container {
    width: 1190px;
    margin: 0 auto;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.fl { float: left; }
.fr { float: right; }

/* ==================== Top Bar ==================== */
.top-bar {
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    color: #666;
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left .icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.top-bar-left .location-text {
    color: #e60012;
    font-weight: bold;
    cursor: pointer;
}

.top-bar-left .location-dropdown {
    position: relative;
    display: inline-block;
}

.top-bar-left .location-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 8px 0;
    max-height: 360px;
    overflow-y: auto;
}

.top-bar-left .location-dropdown:hover .dropdown-list {
    display: block;
}

.top-bar-left .location-dropdown .dropdown-list li {
    padding: 4px 16px;
    cursor: pointer;
    line-height: 28px;
}

.top-bar-left .location-dropdown .dropdown-list li:hover {
    background: #f5f5f5;
    color: #e60012;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-right > a, .top-bar-right > .dropdown {
    padding: 0 12px;
    border-right: 1px solid #ddd;
    color: #666;
}

.top-bar-right > a.jw-link {
    color: #e60012;
    font-weight: bold;
    background: linear-gradient(180deg, #fff5f5, #ffe9eb);
    border-right: 1px solid #f3c4cb;
    padding: 4px 12px;
    margin-left: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.top-bar-right > a.jw-link::before {
    content: "●";
    font-size: 10px;
    color: #e60012;
}
.top-bar-right > a.jw-link:hover {
    background: linear-gradient(180deg, #ffe9eb, #ffd1d6);
    color: #c5000f;
}

.top-bar-right > a:last-child, .top-bar-right > .dropdown:last-child {
    border-right: none;
}

.top-bar-right .dropdown {
    position: relative;
    cursor: pointer;
}

.top-bar-right .dropdown .dropdown-trigger {
    display: inline-block;
    color: #666;
    text-decoration: none;
    line-height: inherit;
}

.top-bar-right .dropdown .dropdown-trigger:hover {
    color: #e60012;
    text-decoration: none;
}

.top-bar-right .dropdown .dropdown-trigger:focus {
    color: #e60012;
    outline: none;
    text-decoration: none;
}

.top-bar-right .dropdown .arrow {
    display: inline-block;
    border: 4px solid transparent;
    border-top-color: #999;
    margin-left: 4px;
    margin-bottom: 2px;
    vertical-align: middle;
}

.top-bar-right .dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 8px 0;
}

.top-bar-right .dropdown:hover .dropdown-content {
    display: block;
}

.top-bar-right .dropdown .dropdown-content a {
    display: block;
    padding: 4px 20px;
    color: #666;
    white-space: nowrap;
    border-right: none;
}

.top-bar-right .dropdown .dropdown-content a:hover {
    color: #e60012;
    background: #f5f5f5;
}

.top-bar-right .app-dropdown .dropdown-content {
    width: 180px;
    padding: 12px;
    text-align: center;
}

.top-bar-right .app-dropdown .dropdown-content .qr-item {
    display: inline-block;
    margin: 4px;
    text-align: center;
}

.top-bar-right .app-dropdown .dropdown-content .qr-item img {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 4px;
}

.top-bar-right .app-dropdown .dropdown-content .qr-item p {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* ==================== Header ==================== */
.header {
    background: #fff;
    padding: 24px 0;
}

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

.header .logo {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header .logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.header .logo img {
    width: clamp(260px, 27vw, 440px);
    height: auto;
    max-width: 100%;
    display: block;
}

.header .logo .logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #e60012;
    letter-spacing: 2px;
}

.header .logo .logo-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    letter-spacing: 1px;
}

.header .search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.header .search-form {
    display: flex;
    border: 2px solid #e60012;
    border-radius: 2px;
    overflow: hidden;
}

.header .search-form input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border: none;
    background: #fff;
}

.header .search-form .search-btn {
    width: 80px;
    height: 36px;
    background: #e60012;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.header .search-form .search-btn:hover {
    background: #c5000f;
}

.header .search-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
}

.header .search-extra a {
    color: #0066cc;
    margin-left: 12px;
}

.header .hot-search {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
    overflow: visible;
    white-space: normal;
}

.header .hot-search strong {
    color: #999;
}

.header .hot-search a {
    color: #666;
    margin-right: 10px;
}

.header .hot-search a:hover {
    color: #e60012;
}

/* 热门搜索标签（数据驱动 + 排名徽标 + 品牌计数） */
.hot-search a.hs-tag {
    display: inline-block;
    color: #666;
    margin: 0 8px 4px 0;
    padding: 2px 10px;
    border: 1px solid #eee;
    border-radius: 13px;
    font-size: 12px;
    line-height: 18px;
    transition: all .15s;
}
.hot-search a.hs-tag:hover {
    color: #fff;
    background: #e60012;
    border-color: #e60012;
}
.hot-search a.hs-tag.hs-top1 { color: #e60012; border-color: #f3b6b6; font-weight: 600; }
.hot-search a.hs-tag.hs-top2 { color: #ff6a00; border-color: #ffd2ad; }
.hot-search a.hs-tag.hs-top3 { color: #c2185b; border-color: #f3c0d6; }
.hot-search a.hs-tag .hs-count {
    color: #bbb;
    font-size: 11px;
    margin-left: 3px;
}
.hot-search a.hs-tag:hover .hs-count { color: #ffe2e2; }

/* ===== Smart Search Suggestions (联想 + 历史) ===== */
.header .search-box {
    position: relative;
}
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e60012;
    border-top: none;
    z-index: 9999;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    display: none;
    max-height: 430px;
    overflow-y: auto;
}
.search-suggest.show {
    display: block;
}
.search-suggest .ss-group-label {
    padding: 7px 12px 3px;
    font-size: 12px;
    color: #999;
    background: #fff;
}
.search-suggest .ss-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-top: 1px solid #f3f3f3;
}
.search-suggest .ss-item:hover,
.search-suggest .ss-item.active {
    background: #fff2f2;
}
.search-suggest .ss-item .ss-tag {
    font-size: 11px;
    color: #e60012;
    border: 1px solid #f3b6b6;
    border-radius: 2px;
    padding: 0 5px;
    margin-right: 8px;
    flex: none;
    line-height: 16px;
}
.search-suggest .ss-item .ss-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggest .ss-item .ss-name em {
    color: #e60012;
    font-style: normal;
}
.search-suggest .ss-item .ss-tag-prod {
    color: #f60;
    border-color: #fcd2ad;
    background: #fff7ef;
}
.search-suggest .ss-item .ss-brand {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
    flex: none;
}
.search-suggest .ss-item .ss-clear {
    color: #bbb;
    font-size: 12px;
    margin-left: 8px;
    flex: none;
}
.search-suggest .ss-item .ss-clear:hover {
    color: #e60012;
}
.search-suggest .ss-empty {
    padding: 18px 12px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* 热门搜索在联想下拉中的排名圆标与计数 */
.search-suggest .ss-item.ss-hot .ss-rank {
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
    margin-right: 8px;
    flex: none;
    background: #bbb;
}
.search-suggest .ss-item.ss-hot .ss-rank-1 { background: #e60012; }
.search-suggest .ss-item.ss-hot .ss-rank-2 { background: #ff6a00; }
.search-suggest .ss-item.ss-hot .ss-rank-3 { background: #c2185b; }
.search-suggest .ss-item.ss-hot .ss-count {
    color: #bbb;
    font-size: 12px;
    margin-left: 8px;
    flex: none;
}

/* ===== Related Search (你是不是想找) ===== */
.related-search {
    margin-top: 30px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}
.related-search .rs-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 12px;
}
.related-search .rs-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #e60012;
    margin-right: 8px;
    vertical-align: -2px;
    border-radius: 2px;
}
.related-search .rs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.related-search .rs-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f6f6f6;
    border: 1px solid #eee;
    border-radius: 14px;
    font-size: 13px;
    color: #555;
    transition: all .15s;
}
.related-search .rs-tag:hover {
    background: #fff0f0;
    border-color: #e60012;
    color: #e60012;
}

.header .cart-box {
    width: 140px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #fff;
    border: 1px solid #e60012;
    color: #e60012;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.header .cart-box:hover {
    background: #fff5f5;
}

.header .cart-box .cart-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60012'><path d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM17 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM7.16 14.26l.04-.12.96-1.74h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C5.16 14.37 5 14.83 5 15.33 5 16.43 5.9 17.33 7 17.33h12v-2H7.42c-.14 0-.25-.11-.25-.25z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
}

.header .cart-box .cart-count {
    color: #fff;
    background: #e60012;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

/* ==================== Main Nav ==================== */
.main-nav {
    background: #fff;
    border-bottom: 2px solid #e60012;
    height: 40px;
}

.main-nav .container {
    display: flex;
    align-items: center;
    height: 40px;
}

.main-nav .all-categories {
    width: 210px;
    height: 40px;
    line-height: 40px;
    background: #e60012;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.main-nav .all-categories .menu-icon {
    display: inline-block;
    width: 16px;
    height: 14px;
    vertical-align: middle;
    margin-right: 8px;
    background: linear-gradient(to bottom, transparent 2px, #fff 2px, #fff 4px, transparent 4px, transparent 7px, #fff 7px, #fff 9px, transparent 9px, transparent 12px, #fff 12px, #fff 14px);
}

.main-nav .nav-list {
    display: flex;
    height: 40px;
}

.main-nav .nav-list li {
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: bold;
    position: relative;
}

.main-nav .nav-list li a {
    color: #333;
    display: block;
    height: 40px;
}

.main-nav .nav-list li:hover a {
    color: #e60012;
}

.main-nav .nav-list li .badge {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 10px;
    color: #fff;
    padding: 0 4px;
    border-radius: 2px;
    line-height: 14px;
    font-weight: normal;
}

.main-nav .nav-list li .badge.hot {
    background: #e60012;
}

.main-nav .nav-list li .badge.boom {
    background: #ff6600;
}

.main-nav .nav-list li .badge.new {
    background: #00aa00;
}

.main-nav .nav-list li .knowledge-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 999;
    min-width: 120px;
}

.main-nav .nav-list li:hover .knowledge-dropdown {
    display: block;
}

.main-nav .nav-list li .knowledge-dropdown a {
    display: block;
    padding: 6px 16px;
    height: auto;
    line-height: 1.5;
    font-size: 12px;
    font-weight: normal;
    color: #666;
    white-space: nowrap;
}

.main-nav .nav-list li .knowledge-dropdown a:hover {
    color: #e60012;
    background: #f5f5f5;
}

/* ==================== Category Sidebar ==================== */
.category-sidebar {
    width: 210px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 998;
    display: none;
}

.main-nav .all-categories:hover .category-sidebar {
    display: block;
}

.category-sidebar .cat-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 12px;
    position: relative;
}

.category-sidebar .cat-item:last-child {
    border-bottom: none;
}

.category-sidebar .cat-item:hover {
    background: #fff5f5;
}

.category-sidebar .cat-item .cat-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.category-sidebar .cat-item .cat-title a {
    color: #333;
}

.category-sidebar .cat-item .cat-title a:hover {
    color: #e60012;
}

.category-sidebar .cat-item .cat-sub {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.category-sidebar .cat-item .cat-sub a {
    color: #777;
    margin-right: 8px;
    display: inline-block;
}

.category-sidebar .cat-item .cat-sub a:hover {
    color: #e60012;
}

.category-sidebar .cat-item .arrow-right {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
}

/* Category flyout panel */
.category-flyout {
    display: none;
    position: absolute;
    left: 210px;
    top: 0;
    width: 600px;
    min-height: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    padding: 16px 20px;
    z-index: 999;
}

.category-sidebar .cat-item:hover .category-flyout {
    display: block;
}

.category-flyout .flyout-section {
    margin-bottom: 12px;
}

.category-flyout .flyout-section h4 {
    font-size: 13px;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 6px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 4px;
}

.category-flyout .flyout-section h4 a {
    color: #e60012;
    text-decoration: none;
}

.category-flyout .flyout-section h4 a:hover {
    text-decoration: underline;
}

.category-flyout .flyout-section .flyout-links a {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    color: #666;
    margin-right: 4px;
    margin-bottom: 4px;
}

.category-flyout .flyout-section .flyout-links a:hover {
    color: #e60012;
    text-decoration: underline;
}

/* ==================== Banner Section ==================== */
.banner-section {
    width: 100%;
    background: #fff;
    padding: 10px 0;
}

.banner-section .container {
    display: flex;
    gap: 10px;
    position: relative;
}

.banner-section .banner-left {
    width: 210px;
    flex-shrink: 0;
}

.banner-section .banner-center {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* 首页 Banner：2 页横向滑动轮播（品牌中心 + 积分商城） */
.banner-section .banner-slider {
    width: 200%;            /* 2 页，每页 = 100% 父容器宽 */
    height: 400px;          /* 原 banner 高度 */
    display: flex;
    transition: transform 0.5s ease;
}
.banner-section .banner-slide {
    width: 50%;             /* 单页 = 100% banner-center */
    height: 400px;
    display: block;
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}
.banner-section .banner-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
}
.banner-section .banner-slide:hover img {
    transform: scale(1.03);
}
/* 左右切换箭头 */
.banner-section .banner-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 56px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    z-index: 3;
}
.banner-section .banner-center:hover .banner-slider-arrow { opacity: 1; }
.banner-section .banner-slider-arrow:hover { background: rgba(0,0,0,0.45); }
.banner-section .banner-slider-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.banner-section .banner-slider-arrow.next { right: 0; border-radius: 4px 0 0 4px; }
/* 底部圆点 */
.banner-section .banner-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.banner-section .banner-slider-dots .bdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.banner-section .banner-slider-dots .bdot.active {
    background: #fff;
    transform: scale(1.15);
}

.banner-section .carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.banner-section .carousel .slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-section .carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.banner-section .carousel .slide.active {
    opacity: 1;
}

.banner-section .carousel .slide-1 {
    background: linear-gradient(135deg, #1a3a5c, #2980b9);
}

.banner-section .carousel .slide-2 {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.banner-section .carousel .slide-3 {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.banner-section .carousel .slide .slide-content {
    text-align: center;
}

.banner-section .carousel .slide .slide-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-section .carousel .slide .slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.banner-section .carousel .slide .slide-content .slide-btn {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255,255,255,0.2);
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: normal;
}

.banner-section .carousel .carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-section .carousel .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-section .carousel .carousel-dots .dot.active {
    background: #fff;
}

.banner-section .carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.banner-section .carousel:hover .carousel-arrow {
    opacity: 1;
}

.banner-section .carousel .carousel-arrow.prev {
    left: 0;
}

.banner-section .carousel .carousel-arrow.next {
    right: 0;
}

.banner-section .banner-right {
    width: 230px;
    flex-shrink: 0;
}

/* User panel on right side of banner */
.user-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}

.user-panel .user-greeting {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.user-panel .user-greeting .login-btn, .user-panel .user-greeting .register-btn {
    display: inline-block;
    padding: 4px 16px;
    margin: 0 4px;
    border-radius: 2px;
    font-size: 13px;
}

.user-panel .user-greeting .login-btn {
    background: #e60012;
    color: #fff;
}

.user-panel .user-greeting .register-btn {
    background: #fff;
    color: #e60012;
    border: 1px solid #e60012;
}

.user-panel .quick-links {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.user-panel .quick-links a {
    width: 33.33%;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    color: #666;
}

.user-panel .quick-links a:hover {
    color: #e60012;
}

.user-panel .quick-links a .quick-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

/* News panel */
.news-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 12px;
}

.news-panel .news-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-panel .news-title .more {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.news-panel .news-list li {
    font-size: 12px;
    line-height: 22px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-panel .news-list li a {
    color: #666;
}

.news-panel .news-list li a:hover {
    color: #e60012;
}

.news-panel .news-list li .news-tag {
    display: inline-block;
    background: #e60012;
    color: #fff;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 2px;
    margin-right: 4px;
}

/* ==================== Service Icons ==================== */
.service-icons {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.service-icons .container {
    display: flex;
    justify-content: space-around;
}

.service-icons .service-item {
    text-align: center;
    padding: 8px 16px;
}

.service-icons .service-item .service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #e60012;
}

.service-icons .service-item .service-name {
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

.service-icons .service-item .service-desc {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ==================== Product Floor ==================== */
.product-floor {
    background: #fff;
    margin-top: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.product-floor .floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 44px;
    border-bottom: 2px solid #e60012;
}

.product-floor .floor-header .floor-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.product-floor .floor-header .floor-title .floor-num {
    color: #e60012;
    margin-right: 8px;
}

.product-floor .floor-header .floor-tabs {
    flex: 1;
    display: flex;
    margin-left: 30px;
}

.product-floor .floor-header .floor-tabs a {
    padding: 0 16px;
    font-size: 13px;
    color: #666;
    line-height: 44px;
    border-right: 1px solid #f0f0f0;
}

.product-floor .floor-header .floor-tabs a:last-child {
    border-right: none;
}

.product-floor .floor-header .floor-tabs a:hover,
.product-floor .floor-header .floor-tabs a.active {
    color: #e60012;
    font-weight: bold;
}

.product-floor .floor-header .floor-more {
    font-size: 12px;
    color: #999;
}

.product-floor .floor-header .floor-more:hover {
    color: #e60012;
}

.product-floor .floor-body {
    display: flex;
    padding: 16px;
    gap: 12px;
}

.product-floor .floor-banner {
    width: 210px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

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

.product-floor .floor-banner .banner-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.product-floor .product-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.product-floor .product-card {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}

.product-floor .product-card:hover {
    border-color: #e60012;
    box-shadow: 0 4px 12px rgba(230,0,18,0.1);
    transform: translateY(-2px);
}

.product-floor .product-card .product-img {
    width: 100%;
    height: 130px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.product-floor .product-card .product-img .img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.product-floor .product-card .product-name {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    margin-bottom: 6px;
    text-align: left;
}

.product-floor .product-card .product-name a {
    color: #333;
}

.product-floor .product-card .product-name a:hover {
    color: #e60012;
}

.product-floor .product-card .product-brand {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    text-align: left;
}

.product-floor .product-card .product-price {
    font-size: 14px;
    color: #e60012;
    font-weight: bold;
    text-align: left;
    margin-bottom: 4px;
}

.product-floor .product-card .product-price .unit {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.product-floor .product-card .product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.product-floor .product-card .product-actions .add-cart-btn {
    background: #e60012;
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
}

.product-floor .product-card .product-actions .add-cart-btn:hover {
    background: #c5000f;
}

.product-floor .product-card .product-actions .fav-btn {
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

.product-floor .product-card .product-actions .fav-btn:hover {
    color: #e60012;
}

/* ==================== Brand Zone ==================== */
.brand-zone {
    background: #fff;
    margin-top: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.brand-zone .zone-header {
    padding: 0 16px;
    height: 44px;
    line-height: 44px;
    border-bottom: 2px solid #e60012;
    font-size: 18px;
    font-weight: bold;
}

.brand-zone .zone-header .zone-num {
    color: #e60012;
    margin-right: 8px;
}

.brand-zone .brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: #f0f0f0;
    padding: 1px;
}

.brand-zone .brand-grid .brand-item {
    background: #fff;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.brand-zone .brand-grid .brand-item:hover {
    background: #fff5f5;
    color: #e60012;
}

/* ==================== Activity Zone ==================== */
.activity-zone {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.activity-zone .activity-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.activity-zone .activity-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.activity-zone .activity-card .activity-img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.activity-zone .activity-card .activity-info {
    padding: 10px 14px;
}

.activity-zone .activity-card .activity-info h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.activity-zone .activity-card .activity-info p {
    font-size: 12px;
    color: #999;
}

/* ==================== Fixed Sidebar ==================== */
.fixed-sidebar {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 50px;
}

.fixed-sidebar .sidebar-item {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.fixed-sidebar .sidebar-item:hover {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
}

.fixed-sidebar .sidebar-item .sidebar-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.fixed-sidebar .sidebar-item .sidebar-label {
    font-size: 10px;
    color: inherit;
}

.fixed-sidebar .sidebar-item .sidebar-tooltip {
    display: none;
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.fixed-sidebar .sidebar-item:hover .sidebar-tooltip {
    display: block;
}

.fixed-sidebar .sidebar-item .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e60012;
    color: #fff;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 8px;
    line-height: 14px;
}

/* ==================== WeChat KF Popup ==================== */
.wechat-kf-popup {
    position: fixed;
    right: 72px;
    top: 50%;
    transform: translateY(calc(-50% - 70px));
    width: 320px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    z-index: 998;
    border-radius: 4px;
    overflow: hidden;
}

.wechat-kf-popup .wk-header {
    background: linear-gradient(180deg, #1583e6 0%, #1574d4 100%);
    color: #fff;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    text-align: center;
}

.wechat-kf-popup .wk-header .wk-close {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    font-weight: normal;
}

.wechat-kf-popup .wk-header .wk-close:hover {
    opacity: 0.8;
}

.wechat-kf-popup .wk-body {
    display: flex;
    justify-content: space-around;
    padding: 18px 14px;
    gap: 16px;
    background: #fff;
}

.wechat-kf-popup .wk-card {
    width: 130px;
    text-align: center;
    cursor: pointer;
}

.wechat-kf-popup .wk-qr-placeholder {
    width: 110px;
    height: 110px;
    margin: 0 auto 8px;
    background: #f4f6f8;
    border: 1px solid #e8eaec;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.wechat-kf-popup .wk-qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wechat-kf-popup .wk-card-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 2px;
}

.wechat-kf-popup .wk-card-status {
    font-size: 12px;
    color: #07c160;
}

/* WeChat icon variant in sidebar */
.fixed-sidebar .sidebar-item .sidebar-icon-wechat svg {
    display: block;
}

/* ==================== Footer ==================== */
.footer {
    background: #fff;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer .footer-service {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.footer .footer-service .service-link {
    text-align: center;
}

.footer .footer-service .service-link img {
    height: 50px;
}

.footer .footer-partners {
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.footer .footer-partners .partner-logo {
    display: inline-block;
    margin: 0 8px;
    width: 100px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    vertical-align: middle;
}

.footer .footer-links {
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #f0f0f0;
}

.footer .footer-links .link-column {
    flex: 1;
    min-width: 0;
}

.footer .footer-links .link-column h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer .footer-links .link-column ul li {
    margin-bottom: 6px;
}

.footer .footer-links .link-column ul li a {
    font-size: 12px;
    color: #666;
}

.footer .footer-links .link-column ul li a:hover {
    color: #e60012;
}

.footer .footer-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.footer .footer-bottom a {
    color: #999;
}

.footer .footer-bottom a:hover {
    color: #e60012;
}

.footer .footer-bottom .footer-cert {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.footer .footer-bottom .footer-cert .cert-item {
    width: 80px;
    height: 30px;
    background: #f5f5f5;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaa;
}

/* ==================== Floor Colors ==================== */
.floor-1 .floor-header { border-bottom-color: #e60012; }
.floor-1 .floor-header .floor-num { color: #e60012; }
.floor-1 .product-card:hover { border-color: #e60012; }

.floor-2 .floor-header { border-bottom-color: #1a73e8; }
.floor-2 .floor-header .floor-num { color: #1a73e8; }
.floor-2 .product-card:hover { border-color: #1a73e8; }
.floor-2 .product-card .product-price { color: #1a73e8; }
.floor-2 .product-card .product-actions .add-cart-btn { background: #1a73e8; }

.floor-3 .floor-header { border-bottom-color: #00aa00; }
.floor-3 .floor-header .floor-num { color: #00aa00; }
.floor-3 .product-card:hover { border-color: #00aa00; }
.floor-3 .product-card .product-price { color: #00aa00; }
.floor-3 .product-card .product-actions .add-cart-btn { background: #00aa00; }

.floor-4 .floor-header { border-bottom-color: #ff6600; }
.floor-4 .floor-header .floor-num { color: #ff6600; }
.floor-4 .product-card:hover { border-color: #ff6600; }
.floor-4 .product-card .product-price { color: #ff6600; }
.floor-4 .product-card .product-actions .add-cart-btn { background: #ff6600; }

.floor-5 .floor-header { border-bottom-color: #8e44ad; }
.floor-5 .floor-header .floor-num { color: #8e44ad; }
.floor-5 .product-card:hover { border-color: #8e44ad; }
.floor-5 .product-card .product-price { color: #8e44ad; }
.floor-5 .product-card .product-actions .add-cart-btn { background: #8e44ad; }

.floor-6 .floor-header { border-bottom-color: #16a085; }
.floor-6 .floor-header .floor-num { color: #16a085; }
.floor-6 .product-card:hover { border-color: #16a085; }
.floor-6 .product-card .product-price { color: #16a085; }
.floor-6 .product-card .product-actions .add-cart-btn { background: #16a085; }

/* ==================== Back to Top ==================== */
#back-to-top {
    display: none;
}

/* ==================== Sub-Floor Section (1F-01 etc) ==================== */
.sub-floor {
    background: #fff;
    margin-top: 16px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.sub-floor .sub-floor-header {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 40px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.sub-floor .sub-floor-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    margin-right: 20px;
}

.sub-floor .sub-floor-title a {
    color: #333;
    text-decoration: none;
}

.sub-floor .sub-floor-title a:hover {
    color: #e60012;
}

.sub-floor .sub-floor-title .sub-floor-num {
    color: #e60012;
    margin-right: 6px;
}

.sub-floor .sub-floor-links {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sub-floor .sub-floor-links a {
    font-size: 12px;
    color: #666;
    padding: 2px 8px;
    border-right: 1px solid #e0e0e0;
    white-space: nowrap;
}

.sub-floor .sub-floor-links a:last-child {
    border-right: none;
}

.sub-floor .sub-floor-links a:hover {
    color: #e60012;
}

.sub-floor .sub-floor-body {
    padding: 12px;
}

/* Category card grid (like original site shows category images) */
.cat-card-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.cat-card-grid .cat-card {
    display: block;
    text-decoration: none;
    color: #333;
    text-align: center;
    padding: 10px 4px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s;
    background: #fff;
    cursor: pointer;
}

.cat-card-grid .cat-card:hover {
    border-color: #e60012;
    box-shadow: 0 2px 8px rgba(230,0,18,0.1);
}

.cat-card-grid .cat-card .cat-card-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #f9f9f9;
    overflow: hidden;
}

.cat-card-grid .cat-card .cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AI 生成的商品图标：白底方形线稿，用 contain 不裁剪 */
.cat-card-grid .cat-card .cat-card-img img.cat-icon-ai {
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
}

.cat-card-grid .cat-card .cat-card-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.cat-card-grid .cat-card .cat-card-name {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-card-grid .cat-card:hover .cat-card-name {
    color: #e60012;
}

/* ==================== Floor Nav Links (left banner) ==================== */
#floor-nav-links .floor-nav-item {
    display: block;
    padding: 5px 0;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    text-decoration: none;
}

#floor-nav-links .floor-nav-item:hover {
    color: #e60012;
}

#floor-nav-links .floor-nav-item .floor-nav-num {
    display: inline-block;
    width: 36px;
    color: #e60012;
    font-weight: bold;
}

#floor-nav-links .floor-nav-section {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

#floor-nav-links .floor-nav-section:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* ==================== Additional Floor Colors ==================== */
.floor-7 .floor-header, .sub-floor.floor-7 .sub-floor-header { border-bottom-color: #c0392b; }
.floor-7 .floor-header .floor-num, .sub-floor.floor-7 .sub-floor-title .sub-floor-num { color: #c0392b; }
.floor-7 .product-card:hover, .sub-floor.floor-7 .cat-card:hover { border-color: #c0392b; }
.sub-floor.floor-7 .sub-floor-title .sub-floor-num { color: #c0392b; }
.sub-floor.floor-7 .cat-card:hover .cat-card-name { color: #c0392b; }

.floor-8 .floor-header, .sub-floor.floor-8 .sub-floor-header { border-bottom-color: #2c3e50; }
.floor-8 .floor-header .floor-num, .sub-floor.floor-8 .sub-floor-title .sub-floor-num { color: #2c3e50; }
.floor-8 .product-card:hover, .sub-floor.floor-8 .cat-card:hover { border-color: #2c3e50; }
.sub-floor.floor-8 .cat-card:hover .cat-card-name { color: #2c3e50; }

.floor-9 .floor-header, .sub-floor.floor-9 .sub-floor-header { border-bottom-color: #d35400; }
.floor-9 .floor-header .floor-num, .sub-floor.floor-9 .sub-floor-title .sub-floor-num { color: #d35400; }
.floor-9 .product-card:hover, .sub-floor.floor-9 .cat-card:hover { border-color: #d35400; }
.sub-floor.floor-9 .cat-card:hover .cat-card-name { color: #d35400; }

.floor-10 .floor-header, .sub-floor.floor-10 .sub-floor-header { border-bottom-color: #1a5276; }
.floor-10 .floor-header .floor-num, .sub-floor.floor-10 .sub-floor-title .sub-floor-num { color: #1a5276; }
.floor-10 .product-card:hover, .sub-floor.floor-10 .cat-card:hover { border-color: #1a5276; }
.sub-floor.floor-10 .cat-card:hover .cat-card-name { color: #1a5276; }

/* Sub-floor color variants per main floor */
.sub-floor.floor-1 .sub-floor-title .sub-floor-num { color: #e60012; }
.sub-floor.floor-1 .cat-card:hover { border-color: #e60012; }
.sub-floor.floor-1 .cat-card:hover .cat-card-name { color: #e60012; }
.sub-floor.floor-1 .sub-floor-links a:hover { color: #e60012; }

.sub-floor.floor-2 .sub-floor-title .sub-floor-num { color: #1a73e8; }
.sub-floor.floor-2 .cat-card:hover { border-color: #1a73e8; }
.sub-floor.floor-2 .cat-card:hover .cat-card-name { color: #1a73e8; }
.sub-floor.floor-2 .sub-floor-links a:hover { color: #1a73e8; }

.sub-floor.floor-3 .sub-floor-title .sub-floor-num { color: #00aa00; }
.sub-floor.floor-3 .cat-card:hover { border-color: #00aa00; }
.sub-floor.floor-3 .cat-card:hover .cat-card-name { color: #00aa00; }
.sub-floor.floor-3 .sub-floor-links a:hover { color: #00aa00; }

.sub-floor.floor-4 .sub-floor-title .sub-floor-num { color: #ff6600; }
.sub-floor.floor-4 .cat-card:hover { border-color: #ff6600; }
.sub-floor.floor-4 .cat-card:hover .cat-card-name { color: #ff6600; }
.sub-floor.floor-4 .sub-floor-links a:hover { color: #ff6600; }

.sub-floor.floor-5 .sub-floor-title .sub-floor-num { color: #8e44ad; }
.sub-floor.floor-5 .cat-card:hover { border-color: #8e44ad; }
.sub-floor.floor-5 .cat-card:hover .cat-card-name { color: #8e44ad; }
.sub-floor.floor-5 .sub-floor-links a:hover { color: #8e44ad; }

.sub-floor.floor-6 .sub-floor-title .sub-floor-num { color: #16a085; }
.sub-floor.floor-6 .cat-card:hover { border-color: #16a085; }
.sub-floor.floor-6 .cat-card:hover .cat-card-name { color: #16a085; }
.sub-floor.floor-6 .sub-floor-links a:hover { color: #16a085; }

.sub-floor.floor-7 .sub-floor-title .sub-floor-num { color: #c0392b; }
.sub-floor.floor-7 .cat-card:hover { border-color: #c0392b; }
.sub-floor.floor-7 .cat-card:hover .cat-card-name { color: #c0392b; }
.sub-floor.floor-7 .sub-floor-links a:hover { color: #c0392b; }

.sub-floor.floor-8 .sub-floor-title .sub-floor-num { color: #2c3e50; }
.sub-floor.floor-8 .cat-card:hover { border-color: #2c3e50; }
.sub-floor.floor-8 .cat-card:hover .cat-card-name { color: #2c3e50; }
.sub-floor.floor-8 .sub-floor-links a:hover { color: #2c3e50; }

.sub-floor.floor-9 .sub-floor-title .sub-floor-num { color: #d35400; }
.sub-floor.floor-9 .cat-card:hover { border-color: #d35400; }
.sub-floor.floor-9 .cat-card:hover .cat-card-name { color: #d35400; }
.sub-floor.floor-9 .sub-floor-links a:hover { color: #d35400; }

.sub-floor.floor-10 .sub-floor-title .sub-floor-num { color: #1a5276; }
.sub-floor.floor-10 .cat-card:hover { border-color: #1a5276; }
.sub-floor.floor-10 .cat-card:hover .cat-card-name { color: #1a5276; }
.sub-floor.floor-10 .sub-floor-links a:hover { color: #1a5276; }

/* ==================== Search Page ==================== */
.search-page {
    background: #f5f5f5;
    padding-bottom: 20px;
}

.breadcrumb {
    padding: 10px 0;
    font-size: 12px;
    color: #999;
}
.breadcrumb a {
    color: #666;
}
.breadcrumb a:hover {
    color: #e60012;
}
.crumb-current {
    color: #e60012;
}

/* Promo badge (耗材促销/清仓大促) */
.promo-badge {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}
.promo-badge .promo-count {
    font-weight: normal;
    font-size: 12px;
    margin-left: 4px;
}

/* .search-main 内部为默认块级流: filter-table 整行在上, sort-bar/product-list/pagination 依次在下 (上下结构) */

/* ===== Filter Table (匹配原网站表格行筛选) ===== */
.filter-table {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 4px 4px;
    margin-bottom: 0;
    overflow: hidden;
}
.filter-tbody {
    width: 100%;
}
.filter-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    min-height: 44px;
    align-items: stretch;
}
.filter-row:last-child {
    border-bottom: none;
}
.filter-row-name {
    width: 80px;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    font-weight: bold;
    border-right: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.filter-row-values {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    min-height: 44px;
}
.filter-chip {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    padding: 4px 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
    line-height: 1.6;
}
.filter-chip:hover {
    color: #e60012;
    text-decoration: underline;
}
.filter-chip.active {
    color: #e60012;
    font-weight: bold;
}
.filter-more {
    font-size: 12px;
    color: #0073a9;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 6px;
}
.filter-more:hover {
    color: #e60012;
    text-decoration: underline;
}

/* 细分目录 row 缩略图 */
.filter-row-thumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 2px;
    border: 1px solid #eee;
    border-radius: 2px;
    background: #fafafa;
}
.filter-row-thumb img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
}
.filter-row-thumb-name {
    font-size: 12px;
    color: #333;
}

/* ===== Sort Bar (匹配原网站) ===== */
.sort-bar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    min-height: 36px;
}
.sort-bar .sort-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.sort-bar .sort-label {
    font-size: 12px;
    color: #999;
    margin-right: 8px;
}
.sort-bar .view-item,
.sort-bar .sort-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    margin-right: 4px;
    line-height: 1.4;
}
.sort-bar .view-item:hover,
.sort-bar .sort-item:hover {
    color: #e60012;
}
.sort-bar .sort-item.active,
.sort-bar .view-item.active {
    color: #e60012;
    font-weight: bold;
}
.sort-bar .view-grid {
    letter-spacing: -2px;
    font-size: 14px;
    color: #999;
}
.sort-bar .view-item.active .view-grid,
.sort-bar .view-item.active .view-threecol {
    color: #e60012;
}
.sort-bar .sort-arrow {
    font-size: 10px;
    margin-left: 1px;
}
.sort-bar .new-badge {
    background: #e60012;
    color: #fff;
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 2px;
    margin-left: 1px;
    vertical-align: top;
    line-height: 1.2;
}
.sort-divider {
    width: 1px;
    height: 18px;
    background: #ddd;
    margin: 0 12px;
}

/* ===== Product List (5列大图网格) ===== */
.product-list {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    display: grid;
    gap: 1px;
    background-color: #f0f0f0; /* 网格分割线色 */
    padding: 0;
}
.product-list-grid {
    grid-template-columns: repeat(5, 1fr);
}
.product-list-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* ==================== 列表视图(表格布局, 对齐原站) ==================== */
.product-list-table {
    display: block;
    background: #fff;
}
.lv-table {
    width: 100%;
    border: 1px solid #e8e8e8;
    font-size: 12px;
}
.lv-head, .lv-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}
.lv-head {
    background: #f7f7f7;
    color: #666;
    font-weight: 600;
    height: 34px;
    padding: 0 8px;
}
.lv-row {
    min-height: 64px;
    padding: 6px 8px;
    transition: background 0.15s;
}
.lv-row:hover {
    background: #fff8f0;
}
.lv-row:last-child {
    border-bottom: none;
}
.lv-c {
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    color: #333;
}
.lv-num { width: 92px; color: #888; }
.lv-orig { width: 110px; color: #888; }
.lv-img { width: 54px; flex-shrink: 0; }
.lv-img img {
    width: 48px; height: 48px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    display: block;
    margin: 0 auto;
}
.lv-name {
    flex: 2.2;
    min-width: 180px;
    text-align: left;
    white-space: normal;
    line-height: 1.5;
    max-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.lv-name a { color: #333; text-decoration: none; }
.lv-name a:hover { color: #e60012; }
.lv-brand { width: 110px; }
.lv-spec { width: 150px; color: #666; }
.lv-model { width: 90px; color: #666; }
.lv-price-m { width: 80px; color: #999; text-decoration: line-through; }
.lv-price { width: 90px; color: #e60012; font-size: 13px; }
.lv-tag { width: 60px; color: #e60012; }
.lv-stock { width: 70px; color: #666; }
.lv-stock-yes { color: #1a9c2e; }
.lv-op { width: 96px; }
.lv-buy-btn {
    display: inline-block;
    background: #e60012;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 6px;
}
.lv-buy-btn:hover { background: #c40010; }
.lv-compare { color: #3b7dc4; text-decoration: none; }
.lv-compare:hover { text-decoration: underline; }

/* 试剂列表视图(4F 化学合成, 对齐原站试剂列表): 无图片/名称列, 规格/参数列自适应 */
.lv-table-re .lv-head, .lv-table-re .lv-row { display: flex; flex-wrap: nowrap; align-items: center; }
.lv-table-re .lv-c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.lv-table-re .lv-num { width: 104px; }
.lv-table-re .lv-num a { color: #3b7dc4; text-decoration: none; }
.lv-table-re .lv-num a:hover { color: #e60012; }
.lv-table-re .lv-orig { width: 110px; }
.lv-table-re .lv-brand { width: 110px; }
.lv-table-re .lv-spec { flex: 1; min-width: 110px; text-align: left; }
.lv-table-re .lv-model { flex: 1.2; min-width: 120px; text-align: left; }
.lv-table-re .lv-grade { width: 64px; color: #666; }
.lv-table-re .lv-price-m { width: 90px; }
.lv-table-re .lv-price { width: 100px; }
.lv-table-re .lv-row { min-height: 42px; }
.lv-table-re .lv-op { width: 110px; }

/* 试剂产品信息头(4F, 对齐原站 list-reagent-info): 结构图 + 中文名/英文名 + CAS/MDL/分子式/分子量 */
.re-head {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-top: 2px solid #e60012;
    margin: 18px 0 0;
    padding: 12px 14px;
}
.re-img {
    display: block;
    width: 92px;
    height: 92px;
    border: 1px solid #eee;
    background: #fafafa;
    flex: none;
    margin-right: 14px;
    text-align: center;
}
.re-img img { max-width: 88px; max-height: 88px; margin: 2px auto; }
.re-info { flex: 1; min-width: 0; }
.re-info ul { list-style: none; margin: 0; padding: 0; }
.re-info li { line-height: 22px; font-size: 13px; color: #555; }
.re-name a { font-size: 15px; font-weight: 700; color: #3b7dc4; text-decoration: none; }
.re-name a:hover { color: #e60012; }
.re-en { color: #666; }
.re-mes span { margin-right: 22px; color: #777; }

/* 大包装询价入口(4F 试剂产品头右侧, 对齐原站 .large-package) */
.re-large-package {
    flex: none;
    margin-left: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #f5c882;
    border-radius: 4px;
    background: #fff9ef;
    color: #d9820b;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}
.re-large-package:hover { background: #fdeecb; border-color: #e6a23c; color: #c56a00; }
.re-large-package svg { display: block; }

.product-card {
    background: #fff;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
}
.product-card:hover {
    box-shadow: 0 2px 12px rgba(230, 0, 18, 0.12);
    z-index: 1;
}
.product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    margin-bottom: 8px;
    overflow: hidden;
}
.product-image-wrap .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.product-tag-self {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e60012;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 2;
    line-height: 1.3;
}
.product-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}
.product-fav:hover {
    color: #e60012;
    border-color: #e60012;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-name {
    font-size: 12px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-name:hover {
    color: #e60012;
    text-decoration: underline;
}
/* 危化品标记：商品名后红色加粗【危化品】 */
.hz-tag {
    color: #e02e2e;
    font-weight: 700;
    font-size: 12px;
    margin-left: 2px;
    white-space: nowrap;
}
.hz-cas {
    color: #c0392b;
    font-size: 12px;
    margin-left: 4px;
}
.product-spec {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.product-price {
    color: #e60012;
    font-size: 13px;
}
.product-price b {
    font-size: 18px;
    font-weight: bold;
    margin: 0 1px;
}
.product-orig-price {
    color: #999;
    font-size: 11px;
    text-decoration: line-through;
}
.product-stock {
    color: #5cb85c;
    font-size: 10px;
    border: 1px solid #5cb85c;
    padding: 0 4px;
    border-radius: 2px;
    line-height: 1.4;
    margin-left: auto;
}

.product-buy-btn {
    margin-top: 8px;
    width: 100%;
    height: 32px;
    background: #ff6e16;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 4px;
    text-indent: 4px;
}
.product-buy-btn:hover {
    background: #e55a00;
}

/* ===== Empty State ===== */
.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    color: #999;
    font-size: 14px;
}
.empty-state img {
    display: block;
    margin: 0 auto 12px;
}

/* ===== Pagination (匹配原网站) ===== */
.pagination {
    padding: 24px 0;
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
}
.pagination-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pagination-info {
    font-size: 12px;
    color: #666;
}
.pagination-info .p-num {
    color: #0073a9;
    margin: 0 3px;
    font-weight: bold;
}
.pagination-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.pg-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    background: #f9f9f9;
    border: 1px solid #dce0e0;
    color: #666;
    font-size: 13px;
    line-height: 26px;
    cursor: pointer;
    border-radius: 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
}
.pg-btn:hover:not(:disabled):not(.active) {
    border-color: #0073a9;
    color: #0073a9;
}
.pg-btn.active {
    background: #0073a9;
    border-color: #0073a9;
    color: #fff;
}
.pg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pg-btn.pg-nav {
    color: #0073a9;
    border-color: #0073a9;
    width: auto;
}
.pg-btn.pg-nav:hover:not(:disabled) {
    background: #0073a9;
    color: #fff;
}
.pg-jump {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pg-jump input {
    width: 50px;
    height: 28px;
    border: 1px solid #dce0e0;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    font-family: inherit;
    outline: none;
}
.pg-jump input:focus {
    border-color: #0073a9;
}
.pg-btn.pg-go {
    color: #0073a9;
    border-color: #0073a9;
    background: #fff;
    width: auto;
    line-height: 26px;
    cursor: pointer;
}
.pg-btn.pg-go:hover {
    background: #0073a9;
    color: #fff;
}

/* ===== Toast ===== */
.toast-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.toast-msg.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.sub-floor.floor-4 .cat-card:hover { border-color: #ff6600; }
.sub-floor.floor-4 .cat-card:hover .cat-card-name { color: #ff6600; }
.sub-floor.floor-4 .sub-floor-links a:hover { color: #ff6600; }

.sub-floor.floor-5 .sub-floor-title .sub-floor-num { color: #8e44ad; }
.sub-floor.floor-5 .cat-card:hover { border-color: #8e44ad; }
.sub-floor.floor-5 .cat-card:hover .cat-card-name { color: #8e44ad; }
.sub-floor.floor-5 .sub-floor-links a:hover { color: #8e44ad; }

.sub-floor.floor-6 .sub-floor-title .sub-floor-num { color: #16a085; }
.sub-floor.floor-6 .cat-card:hover { border-color: #16a085; }
.sub-floor.floor-6 .cat-card:hover .cat-card-name { color: #16a085; }
.sub-floor.floor-6 .sub-floor-links a:hover { color: #16a085; }

/* ============ 左侧分类导航树 ============ */
.search-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.cat-tree {
    flex: 0 0 210px;
    width: 210px;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 0;
}
.cat-tree-inner { font-size: 13px; }
.cat-tree-title {
    font-weight: bold;
    color: #222;
    padding: 6px 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}
.ct-floor { padding: 4px 0; }
.ct-floor-head {
    color: #e60012;
    font-weight: bold;
    padding: 4px 14px;
    font-size: 12px;
}
.ct-subs { list-style: none; margin: 0; padding: 0; }
.ct-sub a {
    display: block;
    padding: 5px 14px 5px 22px;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
    border-left: 2px solid transparent;
}
.ct-sub a:hover { background: #fafafa; color: #e60012; }
.ct-sub.active a {
    background: #fff5f5;
    color: #e60012;
    border-left-color: #e60012;
    font-weight: bold;
}
/* 拼音命中提示 */
.ss-py {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}
@media (max-width: 900px) {
    .search-layout { flex-direction: column; }
    .cat-tree { position: static; width: 100%; flex-basis: auto; max-height: 240px; }
}

/* ==================== 登录 / 注册 / 用户中心 / 购物车 / 订单 通用 ==================== */
.btn-primary {
    display: inline-block; background: #e60012; color: #fff; border: none;
    border-radius: 3px; padding: 10px 26px; font-size: 15px; cursor: pointer;
    transition: background .15s; letter-spacing: 1px;
}
.btn-primary:hover { background: #c5000f; }
.btn-primary:disabled { background: #f0a; opacity: .6; cursor: default; }
.btn-line {
    display: inline-block; border: 1px solid #ddd; color: #666; border-radius: 3px;
    padding: 9px 22px; font-size: 15px; text-decoration: none;
}
.btn-line:hover { border-color: #e60012; color: #e60012; }
.btn-danger { display: inline-block; border: 1px solid #e60012; background: #e60012; color: #fff; border-radius: 3px; padding: 9px 22px; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-danger:hover { background: #c70010; border-color: #c70010; }
.remember { font-size: 13px; color: #666; cursor: pointer; }

/* 登录 / 注册 */
.auth-wrap { display: flex; gap: 30px; padding: 36px 0 50px; align-items: flex-start; }
.auth-card {
    width: 380px; background: #fff; border: 1px solid #eee; border-radius: 6px;
    padding: 30px 32px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.auth-card.wide { width: 560px; }
.auth-title { font-size: 20px; color: #222; margin-bottom: 22px; border-left: 4px solid #e60012; padding-left: 10px; }
.form-row { display: flex; align-items: center; margin-bottom: 16px; }
.form-row > label { width: 96px; color: #555; font-size: 14px; flex: none; }
.form-row > label i { color: #e60012; font-style: normal; }
.form-row input[type=text], .form-row input[type=password], .form-row textarea, .form-row select {
    flex: 1; height: 38px; border: 1px solid #d9d9d9; border-radius: 3px; padding: 0 10px; font-size: 14px; outline: none;
}
.form-row textarea { height: 64px; padding: 8px 10px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: #e60012; }
.form-row.region-row select { margin-right: 8px; min-width: 96px; }
.form-err { color: #e60012; font-size: 13px; min-height: 18px; margin: 0 0 8px 96px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #888; margin-top: 6px; }
.form-foot a { color: #e60012; text-decoration: none; }
.btn-primary { margin-left: 96px; margin-top: 4px; }
.auth-side {
    flex: 1; background: linear-gradient(135deg,#fff5f5,#fff); border: 1px solid #ffd9d9;
    border-radius: 6px; padding: 28px; align-self: stretch;
}
.auth-side-h { font-size: 17px; color: #e60012; font-weight: bold; margin-bottom: 16px; }
.auth-side-list { list-style: none; padding: 0; }
.auth-side-list li { font-size: 14px; color: #555; padding: 9px 0; border-bottom: 1px dashed #eee; }
.as-ico { color: #e60012; margin-right: 8px; }
.auth-side-tip { margin-top: 18px; font-size: 12px; color: #999; line-height: 1.6; }

/* 用户中心 */
.uc-wrap { display: flex; gap: 22px; padding: 26px 0 50px; align-items: flex-start; }
.uc-side { width: 200px; flex: none; background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.uc-user { display: flex; align-items: center; gap: 10px; padding: 18px 16px; background: #fafafa; border-bottom: 1px solid #eee; }
.uc-avatar { width: 42px; height: 42px; border-radius: 50%; background: #e60012; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.uc-uname { font-size: 14px; color: #333; font-weight: bold; }
.uc-uphone { font-size: 12px; color: #999; }
.uc-nav { list-style: none; padding: 6px 0; margin: 0; }
.uc-nav li { }
.uc-nav li a { display: block; padding: 12px 18px; color: #555; text-decoration: none; border-left: 3px solid transparent; font-size: 14px; }
.uc-nav li a:hover { background: #fff5f5; color: #e60012; }
.uc-nav li.active a { background: #fff0f0; color: #e60012; border-left-color: #e60012; font-weight: bold; }
.uc-main { flex: 1; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 22px 26px; min-height: 420px; }
.uc-h3 { font-size: 18px; color: #222; margin: 0 0 18px; border-left: 4px solid #e60012; padding-left: 10px; }
.uc-h4 { font-size: 15px; color: #444; margin: 26px 0 12px; }
.uc-count { color: #e60012; font-size: 14px; }
.loading, .empty-box { color: #999; font-size: 14px; padding: 40px 10px; text-align: center; }
.empty-box a { color: #e60012; text-decoration: none; }

/* 订单卡片 */
.order-card { border: 1px solid #eee; border-radius: 5px; margin-bottom: 16px; overflow: hidden; }
.order-head { display: flex; gap: 18px; align-items: center; padding: 10px 14px; background: #fafafa; font-size: 13px; color: #666; flex-wrap: wrap; }
.order-no { font-weight: bold; color: #333; }
.order-status { margin-left: auto; padding: 2px 10px; border-radius: 10px; font-size: 12px; background: #fff0f0; color: #e60012; }
.order-status.st-待审核 { background: #fff7e6; color: #d48806; }
.order-status.st-已审核, .order-status.st-已发货 { background: #e6fffb; color: #08979c; }
.order-status.st-待报价 { background: #f9f0ff; color: #722ed1; }
.order-items { width: 100%; border-collapse: collapse; }
.order-items td { padding: 10px 12px; border-top: 1px solid #f2f2f2; font-size: 13px; vertical-align: middle; }
.oc-img img { width: 54px; height: 54px; object-fit: contain; border: 1px solid #f0f0f0; }
.oc-name a { color: #333; text-decoration: none; }
.oc-name a:hover { color: #e60012; }
.oc-sub { color: #999; font-size: 12px; margin-top: 3px; }
.oc-price, .oc-qty, .oc-sub2 { color: #333; }
.oc-sub2 { color: #e60012; font-weight: bold; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid #f2f2f2; font-size: 13px; color: #666; background: #fff; }
.order-addr { max-width: 70%; }
.order-total { color: #e60012; font-size: 15px; }
.order-total b { font-size: 18px; }

/* 我的信息 / 地址表单 */
.profile-box { max-width: 520px; }
.addr-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.addr-card { border: 1px solid #eee; border-radius: 5px; padding: 12px 14px; font-size: 13px; color: #555; }
.addr-card.is-default { border-color: #ffccc7; background: #fff8f8; }
.addr-top { margin-bottom: 4px; }
.addr-tag { background: #e60012; color: #fff; border-radius: 3px; padding: 1px 6px; font-size: 11px; margin-left: 6px; }
.addr-line { color: #777; }
.addr-ops { margin-top: 8px; }
.addr-ops a { color: #1890ff; margin-right: 14px; text-decoration: none; font-size: 12px; }
.addr-ops a:hover { text-decoration: underline; }

/* 关注商品 */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; }
.fav-card { border: 1px solid #eee; border-radius: 5px; padding: 12px; text-align: center; }
.fav-img img { width: 100%; height: 120px; object-fit: contain; }
.fav-name { font-size: 13px; color: #333; height: 36px; overflow: hidden; margin: 6px 0; }
.fav-price { color: #e60012; font-weight: bold; }
.fav-del { display: block; margin-top: 8px; font-size: 12px; color: #999; cursor: pointer; }
.fav-del:hover { color: #e60012; }

/* ==================== 三步指示器（购物车/结算/成功页 顶部） ==================== */
.checkout-steps { display: flex; align-items: center; padding: 18px 0 6px; }
.checkout-steps .cs-step {
    flex: 1; display: flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 24px; border-radius: 0;
    background: #e5e7eb; color: #6b7280; font-size: 16px; font-weight: 500;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
    margin: 0 -6px;
}
.checkout-steps .cs-step:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); margin-left: 0; }
.checkout-steps .cs-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); margin-right: 0; }
.checkout-steps .cs-step .cs-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25);
    color: inherit; font-size: 13px; font-weight: bold; margin-right: 8px;
}
.checkout-steps .cs-step.active { background: #f59e0b; color: #fff; }
.checkout-steps .cs-step.active .cs-num { background: #fff; color: #f59e0b; }
.checkout-steps .cs-step.done { background: #9ca3af; color: #fff; }
.checkout-steps .cs-step.done .cs-num { background: rgba(255,255,255,.3); color: #fff; }
.checkout-steps.all-done .cs-step { background: #f59e0b; color: #fff; }
.checkout-steps.all-done .cs-step .cs-num { background: #fff; color: #f59e0b; }
.checkout-steps .cs-arrow { display: none; }

/* ==================== 购物车（新版表格式） ==================== */
.cart-wrap, .checkout-wrap, .success-wrap { padding: 6px 0 50px; }
.cart-title-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: #fff; border: 1px solid #eee; border-bottom: none;
    color: #333; font-size: 14px;
}
.cart-title-bar b { color: #e60012; font-size: 16px; margin-right: 4px; }
.cart-title-bar .ctb-right { display: flex; align-items: center; gap: 8px; }
.ctb-select { height: 30px; border: 1px solid #ddd; padding: 0 6px; border-radius: 3px; font-size: 13px; min-width: 220px; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #eee; border-bottom: none; }
.cart-table thead th { background: #f7f8fa; color: #6b7280; font-size: 13px; padding: 12px 8px; border-bottom: 1px solid #eee; text-align: center; font-weight: normal; }
.cart-table tbody td { padding: 14px 8px; border-bottom: 1px solid #f0f0f0; text-align: center; font-size: 13px; color: #333; vertical-align: top; }
.cart-table tbody tr.sel { background: #fffaf3; }
.cart-table .cr-chk { width: 60px; }
.cart-table .cr-no, .cart-table .cr-orig { font-family: Consolas, Monaco, monospace; font-size: 12px; color: #444; }
.cart-table .cr-prod { min-width: 280px; text-align: left; padding: 14px 12px; }
.cr-img { display: inline-block; vertical-align: middle; }
.cr-img img { width: 56px; height: 56px; object-fit: contain; border: 1px solid #f0f0f0; margin-right: 10px; vertical-align: top; }
.cr-pinfo { display: inline-block; vertical-align: middle; max-width: 220px; }
.cr-name { color: #333; font-size: 13px; line-height: 1.5; }
.cr-name:hover { color: #e60012; }
.cr-sub { color: #999; font-size: 12px; margin-top: 4px; }
.cr-pack { color: #1890ff; font-size: 12px; text-decoration: none; display: inline-block; margin-top: 6px; }
.cr-pack:hover { text-decoration: underline; }
.cr-pack b { color: #e60012; }
.cr-price b { color: #e60012; font-size: 15px; }
.cr-qty .q-minus, .cr-qty .q-plus { width: 22px; height: 24px; border: 1px solid #ddd; background: #fafafa; cursor: pointer; vertical-align: middle; font-size: 14px; }
.cr-qty .q-input { width: 38px; height: 24px; text-align: center; border: 1px solid #ddd; border-left: none; border-right: none; vertical-align: middle; font-size: 13px; }
.cr-op a { color: #1890ff; }
.cr-op a:hover { color: #e60012; text-decoration: underline; }
.cr-all { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; }

.cart-foot {
    display: flex; align-items: center; flex-wrap: wrap;
    padding: 18px 16px; background: #fafafa; border: 1px solid #eee; border-top: none; gap: 18px;
}
.cart-foot .c-link { color: #4b5563; font-size: 13px; text-decoration: none; padding: 0 6px; }
.cart-foot .c-link:hover { color: #e60012; }
.cart-foot-rt { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.cf-line { color: #555; font-size: 14px; line-height: 1.7; }
.cf-line b { color: #333; font-size: 16px; font-weight: normal; }
.cf-line .ct-money { color: #e60012; font-size: 22px; font-weight: bold; }
.cart-go {
    height: 44px; padding: 0 32px; background: #f59e0b; color: #fff; border: 0; border-radius: 4px;
    font-size: 16px; font-weight: bold; cursor: pointer; letter-spacing: 2px; transition: background .15s;
}
.cart-go:hover { background: #d97706; }

/* 运费计算器模态 */
.modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
    display: none; align-items: center; justify-content: center;
}
.modal-mask.on { display: flex; }
.modal-card { background: #fff; border-radius: 8px; width: 480px; max-width: 95vw; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.mc-title { padding: 18px 22px; border-bottom: 1px solid #eee; margin: 0; font-size: 16px; color: #222; }
.mc-body { padding: 18px 22px; max-height: 60vh; overflow-y: auto; }
.mc-actions { padding: 14px 22px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 10px; }
.mc-actions .btn-line { background: #fff; border: 1px solid #ddd; color: #555; }
.mc-list label { display: block; padding: 10px 12px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 8px; cursor: pointer; }
.mc-list label.on { border-color: #f59e0b; background: #fff8ef; }
.mc-list label b { color: #222; }
.mc-rules { list-style: none; padding: 0; margin: 14px 0; border: 1px dashed #ddd; border-radius: 4px; }
.mc-rules li { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px dashed #f0f0f0; }
.mc-rules li.on { background: #fff8ef; }
.mc-rules li:last-child { border-bottom: 0; }
.mc-rules li b { color: #555; font-size: 13px; flex: 1; }
.mc-rules li span { color: #f59e0b; margin-right: 12px; }
.mc-rules li em { color: #999; font-style: normal; font-size: 12px; }
.mc-final { font-size: 15px; color: #333; padding-top: 10px; text-align: right; }
.mc-money { color: #e60012; font-size: 18px; font-weight: bold; }
.mc-radio-group label { display: block; padding: 8px 0; cursor: pointer; }
.mc-radio-group input { margin-right: 6px; }
.mc-toggle { color: #e60012; cursor: pointer; margin: 12px 0 8px; font-size: 13px; }
/* 收货地址弹窗卡片列表（参考 tansoole 原站风格） */
.addr-cards { display: flex; flex-direction: column; gap: 8px; }
.addr-card {
    display: block; padding: 10px 12px; border: 1px solid #e5e5e5; border-radius: 4px;
    cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
    position: relative;
}
.addr-card:hover { border-color: #bbb; }
.addr-card.on { border: 1px solid #e60012; background: #fff; }
.addr-card .ac-line1 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; line-height: 1.7; }
.addr-card .ac-name { font-weight: bold; color: #222; }
.addr-card .ac-phone { color: #555; }
.addr-card .ac-default { display: inline-block; padding: 0 6px; border: 1px solid #e60012; color: #e60012; border-radius: 2px; font-size: 11px; line-height: 16px; }
.addr-card .ac-line2 { font-size: 12px; color: #666; line-height: 1.6; margin-top: 2px; }
.addr-card .ac-radio { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 50%; background: #fff; }
.addr-card.on .ac-radio { border-color: #e60012; }
.addr-card.on .ac-radio::after { content: ''; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; background: #e60012; border-radius: 50%; }
.addr-empty { padding: 22px; text-align: center; color: #999; font-size: 13px; border: 1px dashed #ddd; border-radius: 4px; }

.radio-row { display: block; padding: 8px 0; cursor: pointer; font-size: 13px; }
.radio-row input { margin-right: 6px; }

/* ==================== 结算页（确认订单信息） ==================== */
.co-section { border: 1px solid #eee; border-radius: 6px; padding: 0; margin-bottom: 16px; background: #fff; overflow: hidden; }
.co-h { font-size: 16px; color: #333; margin: 0 0 12px; padding: 16px 20px 0; }
.cis { padding: 0; }
.cis-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #eee; background: #fafafa; }
.cis-h { margin: 0; font-size: 15px; color: #333; }
.cis-edit { color: #1890ff; font-size: 13px; text-decoration: none; padding: 2px 14px; border: 1px solid #1890ff; border-radius: 3px; }
.cis-edit:hover { background: #e6f4ff; }
.cis-body { padding: 16px 20px; font-size: 13px; color: #333; line-height: 1.9; }
.cis-body.warn { color: #e67e22; }
.cis-row b { font-weight: bold; }
.ii-row { display: flex; padding: 4px 0; }
.ii-k { width: 100px; color: #555; flex: none; }
.ii-v { flex: 1; color: #222; }
.ii-ph { color: #bbb; font-style: italic; font-size: 13px; }

.co-tip { padding: 14px 20px; font-size: 13px; line-height: 1.8; }
.co-tip.red { color: #e60012; }
.co-tip.red b { color: #e60012; font-weight: bold; }
.co-tip.gray { color: #999; padding-top: 0; }

.co-ship-info { padding: 0 20px 12px; font-size: 13px; color: #555; }
.co-ship-info b { color: #e60012; }
.co-ship-info .muted { color: #999; }

/* 结算商品表 */
.co-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-table thead th { background: #f7f8fa; color: #555; padding: 12px 8px; text-align: center; font-weight: normal; border-bottom: 1px solid #eee; }
.co-table tbody td { padding: 12px 8px; text-align: center; border-bottom: 1px solid #f0f0f0; color: #333; vertical-align: middle; }
.co-table .ci-name { text-align: left; min-width: 200px; }
.co-table .ci-img img { width: 48px; height: 48px; object-fit: contain; border: 1px solid #f0f0f0; vertical-align: middle; margin-right: 8px; }
.co-table .ci-nm { color: #333; }
.co-table .ci-nm:hover { color: #e60012; }
.co-table .ci-sub { color: #999; font-size: 12px; margin-top: 4px; }
.co-table .ci-price { color: #333; }
.co-table .ci-sub { color: #e60012; font-weight: bold; }
.ci-input { width: 110px; height: 28px; border: 1px solid #ddd; border-radius: 3px; padding: 0 6px; font-size: 12px; }
.ci-ref { width: 130px; }

.co-calc-row { padding: 12px 20px; font-size: 13px; color: #555; border-top: 1px dashed #eee; display: flex; align-items: center; gap: 12px; }
.co-calc-row .muted { color: #999; }
.co-calc-row input { width: 100px; height: 28px; border: 1px solid #ddd; padding: 0 6px; font-size: 13px; }
.co-calc-row b { color: #e60012; }

.co-msg-row { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 12px; }
.co-msg-row label { color: #555; font-size: 13px; flex: none; }
.co-msg-row input { flex: 1; height: 32px; border: 1px solid #ddd; padding: 0 10px; font-size: 13px; border-radius: 3px; }

.co-summary { padding: 20px; background: #fafafa; }
.cs-line { display: flex; justify-content: flex-end; padding: 4px 0; font-size: 14px; color: #555; }
.cs-line span { display: inline-block; min-width: 110px; text-align: right; }
.cs-line b { min-width: 110px; text-align: right; color: #333; }
.cs-line.big { font-size: 15px; color: #333; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 8px 0; margin: 6px 0; }
.cs-line.big b { color: #e60012; font-size: 22px; }
.cs-sub { padding: 4px 0 12px; border-bottom: 1px solid #eee; }
.cs-row { display: flex; justify-content: flex-end; font-size: 13px; padding: 3px 0; color: #666; }
.cs-row span { min-width: 160px; text-align: right; }
.cs-row b { min-width: 100px; text-align: right; font-weight: normal; color: #333; }
.cs-final { text-align: right; padding: 14px 0 6px; }
.cs-final-l { color: #555; font-size: 14px; margin-right: 12px; }
.cs-final-b { color: #e60012; font-size: 28px; font-weight: bold; }
.co-submit { display: block; margin: 12px 0 0 auto; min-width: 180px; height: 44px; background: #f59e0b; color: #fff; border: 0; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; }
.co-submit:hover { background: #d97706; }
.co-submit:disabled { background: #d1d5db; cursor: not-allowed; }

/* ==================== 订单成功页 ==================== */
.success-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 10px;
    padding: 40px 48px; display: flex; align-items: flex-start;
    gap: 36px; margin-top: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.sc-icon {
    flex: none;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: #fff5e6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(230, 0, 18, .06);
}
.sc-icon svg { display: block; }
.sc-body { flex: 1; min-width: 0; }
.sc-line { font-size: 16px; color: #555; margin-bottom: 6px; line-height: 1.6; }
.sc-line b { color: #333; font-weight: 600; }
.sc-money { color: #e60012; font-size: 24px; font-weight: 700; margin-left: 6px; }
.sc-tip { font-size: 13px; color: #999; margin-bottom: 22px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.sc-go {
    height: 38px; padding: 0 26px; background: #f59e0b; color: #fff; border: 0; border-radius: 4px;
    font-size: 14px; cursor: pointer; transition: background .15s;
    box-sizing: border-box;
    line-height: 36px;
}
.sc-go:hover { background: #d97706; }
.sc-line-btn {
    height: 38px; padding: 0 26px; background: #fff; color: #555; border: 1px solid #d0d0d0; border-radius: 4px;
    font-size: 14px; cursor: pointer; transition: all .15s;
    box-sizing: border-box;
    line-height: 36px;
}
.sc-line-btn:hover { border-color: #f59e0b; color: #f59e0b; }
.sc-other { padding-top: 6px; border-top: 1px dashed #eee; }
.sc-other a { color: #1890ff; font-size: 13px; text-decoration: none; margin-right: 24px; }
.sc-other a:hover { text-decoration: underline; }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; box-sizing: border-box; }
    .cart-table tbody td { padding: 8px 14px; text-align: left; }
    .cart-table tbody td.cr-prod { min-width: 0; }
    .cart-table tbody tr { border-bottom: 1px solid #eee; padding: 8px 0; }
    .cart-table .cr-chk { display: flex; align-items: center; gap: 12px; padding-bottom: 0; }
    .cart-table .cr-chk::before { content: '选择'; color: #999; font-size: 13px; }
    .cart-table .cr-no::before { content: '商品编号：'; color: #999; }
    .cart-table .cr-no { font-size: 13px; }
    .cart-table .cr-orig::before { content: '原始编号：'; color: #999; }
    .cart-table .cr-pack::before { content: '规格：'; color: #999; }
    .cart-table .cr-pack { padding-left: 0; }
    .cart-table .cr-dlv::before { content: '交货期：'; color: #999; }
    .cart-table .cr-price::before { content: '购买价：'; color: #999; }
    .cart-table .cr-price b { color: #e60012; }
    .cart-table .cr-pts::before { content: '积分：'; color: #999; }
    .cart-table .cr-shp::before { content: '运费基数：'; color: #999; }
    .cart-table .cr-qty::before { content: '数量：'; color: #999; }
    .cart-table .cr-op::before { content: '操作：'; color: #999; }
    .cart-foot-rt { width: 100%; margin-top: 10px; justify-content: space-between; }
    .cart-go { width: 100%; margin-top: 12px; }
    .co-table thead { display: none; }
    .co-table, .co-table tbody, .co-table tr, .co-table td { display: block; width: 100%; box-sizing: border-box; }
    .co-table tbody td { padding: 6px 16px; text-align: left; border: 0; }
    .co-table tbody tr { padding: 8px 0; border-bottom: 1px solid #eee; }
    .ci-img, .ci-nm, .ci-sub { display: inline-block; }
    .success-card { flex-direction: column; padding: 24px 16px; text-align: center; }
    .sc-line { font-size: 15px; }
    .sc-actions { justify-content: center; }
    .sc-other { text-align: center; }
}

/* ==================== 订单状态徽标（用户中心 / 管理后台共用） ==================== */
.order-status { font-weight: bold; }
.st-待审核 { color: #e67e22; }
.st-已审核 { color: #2980b9; }
.st-待发货 { color: #8e44ad; }
.st-已发货 { color: #16a085; }
.st-已完成 { color: #27ae60; }
.st-已取消 { color: #999; }
.st-待报价 { color: #e67e22; }
.st-已报价 { color: #2980b9; }

/* ==================== 选择支付平台弹窗 ==================== */
.pay-modal-card { width: 460px; }
.pay-mc-body { padding: 18px 24px; }
.pay-info-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.pay-info-table th, .pay-info-table td { padding: 6px 0; font-size: 13px; color: #444; }
.pay-info-table th { text-align: left; width: 80px; color: #666; font-weight: normal; }
.pay-info-money { color: #e60012; font-size: 16px; font-weight: bold; }
.pay-info-h { font-size: 14px; color: #333; padding: 8px 12px; margin: 8px 0 6px; background: #f0f6ff; border-left: 3px solid #1a73e8; font-weight: bold; }
.pay-info-list { padding: 4px 0 8px; }
.pay-method-row { display: flex; align-items: center; padding: 12px 10px; border: 1px solid #e5e7eb; border-radius: 4px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-method-row:hover { border-color: #f59e0b; background: #fffaf2; }
.pay-method-row input[type=radio] { margin-right: 14px; transform: scale(1.15); cursor: pointer; accent-color: #f59e0b; }
.pmi { display: inline-block; min-width: 80px; padding: 6px 14px; border-radius: 4px; color: #fff; font-weight: bold; text-align: center; margin-right: 14px; font-size: 13px; letter-spacing: 0.5px; }
.pmi-alipay { background: #1677ff; }
.pmi-wechat { background: #07c160; }
.pmi-bank   { background: #475569; }
.pmn { color: #555; font-size: 13px; }

/* ==================== 付款弹窗 · 动态详情（三选一） ==================== */
.pay-detail { padding: 14px 8px 4px; text-align: center; }

/* 二维码展示 */
.pay-qr { display: inline-block; padding: 10px; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pay-qr img { display: block; width: 240px; height: 240px; border-radius: 4px; object-fit: contain; background: #fff; image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; }
.pay-qr-brand { margin-top: 8px; padding: 6px 0; color: #fff; font-weight: bold; font-size: 14px; border-radius: 4px; letter-spacing: 1px; }
.pay-qr-tip { margin: 10px 0 0; color: #666; font-size: 12px; }

/* 对公转账账户 */
.pay-bank-card { border: 1px dashed #cbd5e1; background: #f8fafc; border-radius: 6px; padding: 14px 18px; text-align: left; }
.pay-bank-row { display: flex; align-items: center; padding: 6px 0; font-size: 13px; color: #333; border-bottom: 1px dashed #e2e8f0; }
.pay-bank-row:last-child { border-bottom: 0; }
.pay-bank-row .k { width: 90px; color: #64748b; flex: none; }
.pay-bank-row .v { flex: 1; color: #0f172a; word-break: break-all; }
.pay-bank-row .mono { font-family: Menlo, Consolas, "Courier New", monospace; letter-spacing: 1px; color: #1e293b; }
.pay-copy { margin-left: 8px; padding: 1px 8px; font-size: 12px; color: #1a73e8; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 3px; cursor: pointer; }
.pay-copy:hover { background: #dbeafe; }
.pay-bank-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pay-bank-title { font-size: 13px; font-weight: 600; color: #334155; }
.pay-copy-all { padding: 4px 14px; font-size: 13px; font-weight: 600; color: #fff; background: #e60012; border: 0; border-radius: 4px; cursor: pointer; }
.pay-copy-all:hover { background: #c5000f; }
.pay-bank-tip { margin: 10px 0 0; color: #64748b; font-size: 12px; text-align: left; }
.pay-bank-tip b { color: #e60012; font-family: Menlo, Consolas, monospace; }

/* 收银台（.modal-overlay.pay-modal）内嵌三选一 列表 */
.pay-info-list-inline { display: block; padding: 0 22px; margin: 4px 0 8px; }
.pay-info-list-inline .pay-method-row { margin-bottom: 8px; }
.pay-info-list-inline .pay-method-row:last-child { margin-bottom: 0; }
.modal .pay-detail { padding: 4px 18px 6px; }
.modal .pay-bank-card { background: #f8fafc; }
.modal .pay-qr { padding: 8px; }
.modal .pay-qr img { width: 220px; height: 220px; object-fit: contain; background: #fff; }
.pay-actions { padding: 12px 22px 18px; text-align: center; }
.pay-actions .btn-primary { display: inline-block; min-width: 140px; padding: 0 32px; height: 36px; font-size: 14px; border-radius: 4px; }

.pay-mc-actions { padding: 12px 24px 18px; }
.pay-mc-actions .uc-btn-orange, .pay-mc-actions .uc-btn-blue { padding: 8px 22px; font-size: 14px; border-radius: 4px; border: 0; cursor: pointer; }
.pay-mc-actions .uc-btn-orange { background: #f59e0b; color: #fff; }
.pay-mc-actions .uc-btn-orange:hover { background: #d97706; }
.pay-mc-actions .uc-btn-orange:disabled { background: #d1d5db; cursor: not-allowed; }
.pay-mc-actions .uc-btn-blue { background: #1a73e8; color: #fff; }
.pay-mc-actions .uc-btn-blue:hover { background: #1565c0; }

/* ==================== 生成销售合同弹窗 ==================== */
.ct-mask { align-items: flex-start; padding: 24px 0; overflow-y: auto; }
.ct-card { background: #fafafa; border-radius: 8px; width: 920px; max-width: 96vw; max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 12px 48px rgba(0,0,0,.22); overflow: hidden; }
.ct-ct-title { margin: 0; padding: 16px 22px; border-bottom: 1px solid #eee; font-size: 16px; color: #222; background: #fff; display: flex; align-items: center; justify-content: space-between; }
.ct-ct-close { background: transparent; border: 0; font-size: 26px; color: #888; cursor: pointer; line-height: 1; padding: 0 4px; }
.ct-ct-close:hover { color: #e60012; }
.ct-ct-toolbar { padding: 12px 22px; background: #fff; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; }
.ct-pdf-btn { padding: 6px 18px; background: #1a73e8; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; }
.ct-pdf-btn:hover { background: #1565c0; }
.ct-pdf-btn:disabled { background: #93c5fd; cursor: not-allowed; }
.ct-tool-tip { color: #888; font-size: 12px; }
.ct-ct-body { padding: 18px 22px; overflow-y: auto; background: #ececec; flex: 1; }

/* 合同纸张（A4 比例） */
.ct-sheet { background: #fff; width: 794px; max-width: 100%; margin: 0 auto; padding: 36px 44px 56px; font-family: "Microsoft YaHei", "微软雅黑", SimSun, serif; color: #222; font-size: 13px; line-height: 1.75; box-shadow: 0 2px 8px rgba(0,0,0,.1); position: relative; }
.ct-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid #1a73e8; margin-bottom: 18px; }
.ct-head-left { display: flex; align-items: center; gap: 14px; }
.ct-logo { width: 80px; height: 80px; }
.ct-title-cn { font-size: 30px; font-weight: bold; color: #1a73e8; letter-spacing: 4px; }
.ct-title-en { font-size: 18px; color: #555; font-family: Arial, sans-serif; margin-top: 6px; display: block; }
.ct-head-right { text-align: right; font-size: 13px; color: #555; line-height: 1.9; }
.ct-info table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.ct-info th, .ct-info td { padding: 4px 8px; font-size: 13px; vertical-align: top; }
.ct-info th { color: #555; font-weight: normal; text-align: left; width: 110px; white-space: nowrap; }
.ct-info td { color: #222; }
.ct-msg { margin: 8px 0 6px; }
.ct-msg b { font-weight: bold; font-size: 13px; }
.ct-msg-body { text-indent: 2em; font-size: 13px; color: #222; margin-bottom: 14px; line-height: 1.85; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
.ct-table thead th { background: #f0f4f8; color: #333; padding: 8px 6px; border: 1px solid #d0d8e2; font-weight: bold; text-align: center; }
.ct-table tbody td { padding: 8px 6px; border: 1px solid #e0e6ee; vertical-align: middle; }
.ct-table tbody td.ct-name { text-align: left; min-width: 180px; }
.ct-table tbody td.ct-num { text-align: right; font-family: Consolas, monospace; }
.ct-table tbody td.ct-ref { color: #888; font-size: 11px; margin-top: 4px; display: inline-block; }
.ct-table .ct-empty { text-align: center; color: #999; padding: 24px; }
.ct-ref { color: #888; font-size: 11px; }
.ct-red { color: #e60012; }
.ct-sum { display: flex; justify-content: flex-end; gap: 30px; padding: 10px 0; border-bottom: 1px solid #d0d8e2; font-size: 13px; color: #333; }
.ct-sum span { display: inline-flex; align-items: baseline; gap: 4px; }
.ct-sum b { color: #222; font-weight: bold; }
.ct-addr { margin: 16px 0 8px; }
.ct-addr table { width: 100%; border-collapse: collapse; }
.ct-addr th, .ct-addr td { padding: 8px 10px; border: 1px solid #d0d8e2; vertical-align: top; font-size: 12px; }
.ct-addr th { background: #f0f4f8; color: #333; font-weight: bold; text-align: left; width: 33.33%; }
.ct-addr td { color: #222; }
.ct-receiver { margin: 8px 0 16px; }
.ct-receiver table { width: 100%; border-collapse: collapse; }
.ct-receiver th, .ct-receiver td { padding: 4px 10px; font-size: 12px; vertical-align: top; }
.ct-receiver th { color: #555; font-weight: normal; text-align: left; width: 90px; }
.ct-receiver td { color: #222; }
.ct-terms { margin: 12px 0 20px; padding: 0; list-style: none; counter-reset: ctterm; }
.ct-terms li { padding: 4px 0 4px 22px; position: relative; font-size: 12px; line-height: 1.85; color: #222; }
.ct-terms .ct-tnum { position: absolute; left: 0; top: 4px; color: #222; font-weight: bold; }
.ct-terms .ct-ttext { display: block; text-indent: 0; }
.ct-sign { display: flex; justify-content: space-between; padding: 18px 0 10px; font-size: 13px; color: #222; }
.ct-sign b { font-weight: bold; }
.ct-stamp { position: absolute; right: 80px; bottom: 130px; width: 130px; height: 130px; border: 2px solid #e60012; border-radius: 50%; color: #e60012; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; text-align: center; line-height: 1.4; transform: rotate(-12deg); opacity: 0.7; font-weight: bold; pointer-events: none; }
.ct-page { text-align: right; color: #888; font-size: 12px; padding-top: 6px; }

@media (max-width: 900px) {
    .ct-card { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; }
    .ct-sheet { padding: 18px 14px 30px; }
    .ct-head { flex-direction: column; gap: 12px; }
    .ct-head-right { text-align: left; }
    .ct-sum { flex-wrap: wrap; gap: 12px; }
    .ct-addr table, .ct-addr th, .ct-addr td { display: block; width: 100%; }
    .ct-info th { width: 90px; }
    .ct-table { font-size: 11px; }
    .ct-table thead { display: none; }
    .ct-table, .ct-table tbody, .ct-table tr, .ct-table td { display: block; width: 100%; box-sizing: border-box; }
    .ct-table tbody td { text-align: left; padding: 4px 8px; border: 0; border-bottom: 1px dashed #eee; }
    .ct-stamp { right: 14px; bottom: 60px; width: 90px; height: 90px; font-size: 10px; }
}

/* ==================== 管理后台 ==================== */
/* 管理后台：全屏独立后台，无前台页首/页尾 */
.admin-wrap { padding: 0; }
/* 后台登录（全屏居中卡片） */
.admin-login { display: flex; justify-content: center; align-items: flex-start; padding: 88px 0 60px; }
.admin-login-card { width: 380px; background: #fff; border: 1px solid #e9edf4; border-radius: 14px; padding: 36px 34px 28px; box-shadow: 0 12px 40px rgba(15, 23, 42, .10); text-align: center; }
.admin-login-logo {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
    background: linear-gradient(135deg, #1b4f8a, #2a6fb0);
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(27, 79, 138, .28);
}
.admin-login-card h2 { font-size: 19px; margin: 0 0 6px; color: #0f172a; font-weight: 600; }
.admin-login-desc { font-size: 13px; color: #94a3b8; margin: 0 0 24px; }
.admin-login-card .form-row { text-align: left; margin-bottom: 16px; }
.admin-login-card .form-row label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; }
.admin-login-card .form-row input {
    width: 100%; height: 42px; padding: 0 13px; box-sizing: border-box;
    border: 1px solid #d8e0ea; border-radius: 8px; font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.admin-login-card .form-row input:focus { outline: none; border-color: #1b4f8a; box-shadow: 0 0 0 3px rgba(27, 79, 138, .10); }
.admin-login-card .btn-primary {
    width: 100%; height: 42px; margin-top: 4px;
    border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(135deg, #1b4f8a, #2a6fb0);
    color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(27, 79, 138, .25);
    transition: transform .12s, box-shadow .15s;
}
.admin-login-card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 79, 138, .32); }
.admin-login-card .form-err { min-height: 18px; margin-bottom: 8px; }
.admin-login-tip { margin-top: 18px; font-size: 12px; color: #94a3b8; text-align: center; }
/* ===== 后台外壳：白色顶栏 + 深蓝分组侧边栏 + 浅灰内容区 ===== */
.admin-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 24px; height: 60px;
    background: #fff; border-bottom: 1px solid #e6ecf3;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    position: sticky; top: 0; z-index: 50;
}
.admin-brand { display: flex; align-items: center; gap: 11px; }
.admin-brand-logo {
    width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
    background: linear-gradient(135deg, #1b4f8a, #2a6fb0);
    color: #fff; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(27, 79, 138, .28);
}
.admin-title { font-size: 16px; font-weight: 600; color: #0f172a; letter-spacing: .3px; }
.admin-sub { font-size: 12px; font-weight: normal; color: #94a3b8; margin-left: 8px; }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.admin-user-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f1f5f9; border-radius: 20px; padding: 4px 13px 4px 4px;
    color: #334155; font-size: 13px;
}
.admin-user-pill i {
    width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px;
    background: linear-gradient(135deg, #1b4f8a, #2a6fb0); color: #fff;
    font-style: normal; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.admin-user-pill b { color: #0f172a; font-weight: 600; }
.admin-user a { color: #64748b; text-decoration: none; transition: color .15s; }
.admin-user a:hover { color: #1b4f8a; }
.admin-user a.admin-back { color: #1b4f8a; }
.admin-user a.admin-logout { color: #dc2626; }

/* 左侧分组导航 */
.admin-body { display: flex; align-items: stretch; min-height: calc(100vh - 60px); }
.admin-tabs {
    flex: 0 0 212px; width: 212px;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #1b4f8a 0%, #16406f 55%, #12294a 100%);
    padding: 8px 0 28px; overflow-y: auto;
}
.admin-nav-group {
    padding: 16px 20px 7px;
    font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
    color: rgba(255, 255, 255, .42); text-transform: uppercase;
}
.admin-nav-group:first-child { padding-top: 10px; }
.admin-tab {
    display: flex; align-items: center; gap: 10px;
    margin: 2px 10px; padding: 10px 14px;
    border-radius: 7px; cursor: pointer;
    font-size: 14px; color: rgba(255, 255, 255, .8);
    border-left: 3px solid transparent;
    transition: background .18s, color .18s;
    user-select: none; white-space: nowrap;
}
.admin-tab .ani { width: 17px; height: 17px; flex: 0 0 17px; opacity: .8; }
.admin-tab .ant { flex: 1 1 auto; }
.admin-tab:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.admin-tab.active {
    background: rgba(255, 255, 255, .17);
    color: #fff; font-weight: 600;
    border-left-color: #ffc53d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.admin-tab.active .ani { opacity: 1; }

.admin-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #f5f7fa; }
.admin-tab-pane {
    flex: 1 1 auto; background: #fff;
    border: 1px solid #e9edf4; border-left: none;
    padding: 20px 24px 32px;
}

/* 窄屏回退为横排可滚动导航 */
@media (max-width: 900px) {
    .admin-body { flex-direction: column; }
    .admin-tabs {
        flex: 0 0 auto; width: auto; flex-direction: row; overflow-x: auto;
        padding: 8px; background: #12294a;
    }
    .admin-nav-group { display: none; }
    .admin-tab { margin: 0 4px 0 0; border-left: none; border-bottom: 3px solid transparent; border-radius: 6px; }
    .admin-tab.active { border-left: none; border-bottom-color: #ffc53d; }
    .admin-tab-pane { border-left: 1px solid #e9edf4; }
}
.admin-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-filters select, .admin-filters input { height: 34px; border: 1px solid #d4d9e0; border-radius: 4px; padding: 0 10px; font-size: 13px; }
.admin-filters input { width: 220px; }
.admin-count { color: #888; font-size: 13px; margin-left: auto; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border: 1px solid #ecf0f4; padding: 9px 10px; text-align: left; vertical-align: middle; }
.admin-table th { background: #f5f8fc; color: #444; font-weight: bold; white-space: nowrap; }
.admin-table tr:hover { background: #fafcff; }
.admin-table .ar-detail td { background: #fbfcfe; padding: 0; }
.lnk-detail { color: #1b4f8a; cursor: pointer; }
.mini-btn { display: inline-block; margin: 0 3px; padding: 4px 10px; font-size: 12px; border: 1px solid #1b4f8a; background: #1b4f8a; color: #fff; border-radius: 4px; cursor: pointer; }
.mini-btn:hover { background: #163f6e; }
.mini-btn.ghost { background: #fff; color: #c0392b; border-color: #e0a0a0; }
.mini-btn.ghost:hover { background: #fdecea; }
.mini-btn.danger { background: #c0392b; border-color: #c0392b; }
.mini-btn.danger:hover { background: #a93226; }
.hz-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.hz-actions .btn-danger { padding: 6px 14px; font-size: 13px; }
.hz-actions .btn-line { padding: 6px 14px; font-size: 13px; }
#hz-offline-count { color: #c0392b; font-size: 13px; }
.reg-summary { margin-bottom: 14px; font-size: 13px; color: #555; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reg-chip { display: inline-block; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.reg-chip.off { background: #c0392b; }
.reg-chip.on { background: #27852f; }
.reg-badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.reg-badge.off { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.reg-badge.on { background: #eaf7ec; color: #27852f; border: 1px solid #b7e0bd; }
.admin-pager { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.admin-pager .pg-btn { padding: 5px 12px; border: 1px solid #d4d9e0; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.admin-pager .pg-btn:disabled { color: #bbb; cursor: default; }
.admin-pager .pg-info { color: #666; font-size: 13px; }
.admin-sub-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.admin-sub-table td { border: 1px solid #eee; padding: 6px 8px; }
.od-box { padding: 14px 18px; }
.od-sec { margin: 8px 0; font-size: 13px; color: #444; }
.oc-img img { width: 44px; height: 44px; object-fit: contain; border: 1px solid #eee; }
.oc-sub { color: #999; font-size: 11px; }
.empty-box { padding: 40px; text-align: center; color: #999; background: #fafbfc; border: 1px dashed #e0e4ea; border-radius: 6px; }
.loading { padding: 40px; text-align: center; color: #aaa; }

/* ==================== 差异功能：售后/发票/积分/常购 ==================== */
.content-card { background: #fff; border: 1px solid #eceff3; border-radius: 8px; padding: 20px 22px; margin-bottom: 18px; }
.content-card h2 { font-size: 17px; color: #222; margin-bottom: 14px; }
.content-card h4 { font-size: 15px; color: #333; margin: 6px 0; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card { background: #f7f9fc; border: 1px solid #eef1f5; border-radius: 8px; padding: 16px; text-align: center; }
.contact-card .contact-ico { font-size: 26px; }
.contact-card h4 { margin: 8px 0 4px; color: #1a73e8; }
.contact-card p { font-size: 13px; color: #666; line-height: 1.5; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { border: 1px solid #e7eaf0; padding: 9px 12px; text-align: left; }
.info-table th { background: #f5f7fa; color: #444; font-weight: 600; width: 140px; }
.info-table td { color: #555; }

.warn-box { background: #fff8e6; border: 1px solid #ffe2a8; color: #8a6d00; border-radius: 6px; padding: 10px 12px; margin-top: 12px; font-size: 13px; line-height: 1.6; }

.steps { display: flex; gap: 12px; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 160px; background: #f7f9fc; border-radius: 8px; padding: 14px; position: relative; }
.step-num { width: 26px; height: 26px; line-height: 26px; text-align: center; background: #1a73e8; color: #fff; border-radius: 50%; font-weight: bold; margin-bottom: 8px; }
.step-item h4 { margin: 0 0 4px; color: #222; font-size: 14px; }
.step-item p { font-size: 13px; color: #777; line-height: 1.5; }

/* 订单操作区（去支付） */
.order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 8px; }
.order-paid { font-size: 12px; color: #2e7d32; background: #e8f5e9; border-radius: 10px; padding: 2px 10px; }
.btn-pay { margin-left: 0; }
.btn-line.btn-pay { color: #e60012; border-color: #e60012; }

/* 积分 */
.pts-balance { background: linear-gradient(135deg, #1a73e8, #00b8d4); color: #fff; border-radius: 10px; padding: 18px 22px; margin-bottom: 16px; font-size: 15px; }
.pts-balance b { font-size: 26px; margin: 0 4px; }
.pts-tip { font-size: 12px; opacity: .85; }
.pts-mall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pts-item { background: #fff; border: 1px solid #eceff3; border-radius: 10px; padding: 18px; text-align: center; }
.pts-item-ico { font-size: 34px; }
.pts-item-name { font-weight: 600; color: #222; margin: 8px 0 2px; }
.pts-item-desc { font-size: 12px; color: #888; min-height: 32px; }
.pts-item-cost { color: #e60012; font-weight: bold; margin: 8px 0; }
.pts-item .btn-line[disabled] { opacity: .5; cursor: not-allowed; }
.pts-log { background: #fff; border: 1px solid #eceff3; border-radius: 8px; padding: 6px 14px; }
.pts-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eef1f5; font-size: 14px; }
.pts-row:last-child { border-bottom: none; }
.pts-reason { color: #444; flex: 1; }
.pts-amt { font-weight: bold; width: 70px; text-align: right; }
.pts-amt.pos { color: #2e7d32; }
.pts-amt.neg { color: #e60012; }
.pts-time { color: #aaa; font-size: 12px; width: 130px; text-align: right; }

/* 常购/收藏卡片补充 */
.fav-meta { font-size: 12px; color: #888; margin: 2px 0; }
.fav-card .btn-line { width: 100%; margin-top: 8px; }

/* 支付弹窗 */
.pay-modal { max-width: 360px; text-align: center; }
.pay-amount { font-size: 28px; font-weight: 800; color: #e60012; margin: 10px 0 4px; }
.pay-order-no { font-size: 13px; color: #888; margin-bottom: 14px; }
.pay-methods { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.pay-methods-center { justify-content: center; }
.pay-method { border: 1px solid #d8dde6; border-radius: 8px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pay-method.active { border-color: #1a73e8; background: #f0f7ff; }
.pay-tip { font-size: 12px; color: #999; margin: 8px 0 16px; }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .pts-mall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .contact-grid, .pts-mall { grid-template-columns: 1fr; }
}

/* ==================== 用户中心 v2（分组侧边栏+表格） ==================== */
.uc-side { width: 220px; }
.uc-side-group { border-bottom: 1px solid #f0f2f5; }
.uc-side-h4 { margin: 0; padding: 10px 16px; font-size: 14px; color: #1a73e8; background: #f5f9ff; border-left: 3px solid #1a73e8; font-weight: bold; }
.uc-side-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.uc-side-list li { }
.uc-side-list li a { display: block; padding: 8px 18px; color: #555; text-decoration: none; border-left: 3px solid transparent; font-size: 13px; line-height: 1.5; }
.uc-side-list li a:hover { background: #fff5f5; color: #e60012; }
.uc-side-list li.active a { background: #fff0f0; color: #e60012; border-left-color: #e60012; font-weight: bold; }
.uc-side-count { color: #888; font-size: 12px; margin-left: 2px; }

/* 面包屑 */
.uc-crumb { font-size: 13px; color: #888; padding: 0 0 14px; border-bottom: 1px dashed #eee; margin-bottom: 16px; }
.uc-crumb a { color: #1a73e8; text-decoration: none; }
.uc-crumb a:hover { text-decoration: underline; }
.uc-crumb #uc-crumb-tab { color: #e60012; font-weight: bold; }
.uc-tip { font-size: 13px; color: #888; margin: 0 0 12px; padding: 8px 12px; background: #f5f9ff; border-left: 3px solid #1a73e8; border-radius: 4px; }

/* 状态 Tab */
.uc-tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.uc-tab { padding: 10px 18px; font-size: 14px; color: #555; text-decoration: none; border: 1px solid transparent; border-bottom: 0; cursor: pointer; }
.uc-tab:hover { color: #e60012; }
.uc-tab.active { color: #e60012; background: #fff; border-color: #e60012; border-bottom-color: #fff; font-weight: bold; position: relative; top: 1px; }
.uc-tab b { color: #e60012; margin: 0 2px; }
.uc-tab.active b { color: #e60012; }

/* 搜索表单 */
.uc-filter { background: #f7f9fc; border: 1px solid #e8edf3; border-radius: 5px; padding: 14px 16px; margin-bottom: 16px; }
.uc-filter-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 10px; }
.uc-filter-row:last-child { margin-bottom: 0; }
.uc-filter-row > label { font-size: 13px; color: #555; display: inline-flex; align-items: center; gap: 4px; }
.uc-filter-row input[type=text],
.uc-filter-row input[type=date],
.uc-filter-row select { padding: 5px 8px; border: 1px solid #d8dde6; border-radius: 4px; font-size: 13px; min-width: 110px; }
.uc-filter-row input[type=number] { width: 70px; }
.uc-time-chips { display: inline-flex; flex-wrap: wrap; gap: 0; }
.uc-time-chips a { display: inline-block; padding: 5px 10px; font-size: 12px; color: #555; background: #fff; border: 1px solid #d8dde6; text-decoration: none; margin-left: -1px; }
.uc-time-chips a:first-child { margin-left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.uc-time-chips a:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.uc-time-chips a:hover { background: #fff0f0; color: #e60012; z-index: 1; position: relative; }
.uc-filter-btns { display: inline-flex; gap: 8px; margin-left: auto; }
.uc-btn-blue { background: #1a73e8; color: #fff !important; border-color: #1a73e8 !important; padding: 5px 16px; }
.uc-btn-blue:hover { background: #1565c0; border-color: #1565c0 !important; color: #fff !important; }

/* 订单表格 */
.uc-table-wrap { overflow-x: auto; }
.uc-orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uc-orders-table thead th { background: #eef4fc; color: #1a73e8; padding: 10px 8px; text-align: left; border: 1px solid #d8e3f0; font-weight: bold; white-space: nowrap; }
.uc-orders-table tbody td { padding: 8px; border: 1px solid #eee; color: #555; vertical-align: middle; }
.uc-orders-table tbody tr:hover { background: #fafbfc; }
.uc-orders-table .uc-t-check { width: 36px; text-align: center; }
.uc-orders-table .uc-oid { color: #1a73e8; text-decoration: none; }
.uc-orders-table .uc-oid:hover { text-decoration: underline; }
.uc-orders-table .uc-price { color: #e60012; font-weight: bold; }
.uc-orders-table .uc-ops a { color: #1a73e8; text-decoration: none; margin: 0 2px; }
.uc-orders-table .uc-ops a:hover { text-decoration: underline; }
.uc-orders-table .uc-ops .uc-revoked { color: #999; font-size: 12px; }
.uc-orders-table .uc-ops { white-space: nowrap; }

/* 分页 */
.uc-pager { display: flex; align-items: center; gap: 6px; padding: 16px 0 4px; font-size: 13px; color: #555; }
.uc-pager .uc-pg { display: inline-block; padding: 4px 10px; border: 1px solid #d8dde6; background: #fff; color: #555; text-decoration: none; border-radius: 3px; cursor: pointer; }
.uc-pager .uc-pg:hover:not(.disabled) { color: #e60012; border-color: #e60012; }
.uc-pager .uc-pg.disabled { color: #ccc; cursor: not-allowed; }
.uc-pager .uc-pg-info { color: #888; margin-left: 10px; display: inline-flex; align-items: center; gap: 4px; }
.uc-pager select, .uc-pager input[type=number] { padding: 3px 6px; border: 1px solid #d8dde6; border-radius: 3px; font-size: 12px; }

/* 信息行 */
.content-card { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 18px 22px; }
.info-row { display: flex; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-key { width: 120px; color: #888; }
.info-val { color: #333; flex: 1; }

/* ==================== 用户中心扩展（预付款/发票信息簿/地址簿） ==================== */
.uc-modal-btns { display: flex; gap: 10px; padding: 12px 0 4px; }
.uc-modal-btns .uc-btn-blue, .uc-modal-btns .uc-btn-line { min-width: 96px; }
.req { color: #e3342f; margin-right: 2px; font-weight: 700; }
.uc-btn-blue, .uc-btn-orange, .uc-btn-line, .uc-btn-danger {
    display: inline-block; padding: 6px 18px; border-radius: 3px; cursor: pointer;
    font-size: 14px; line-height: 22px; border: 1px solid transparent; transition: all .15s ease;
}
.uc-btn-blue { background: #1a8cd2; color: #fff; border-color: #1777b8; }
.uc-btn-blue:hover { background: #1777b8; }
.uc-btn-orange { background: #ff6600; color: #fff; border-color: #f25800; }
.uc-btn-orange:hover { background: #f25800; }
.uc-btn-line { background: #fff; color: #555; border-color: #ddd; }
.uc-btn-line:hover { background: #f5f5f5; }
.uc-btn-danger { background: #e3342f; color: #fff; border-color: #c92a26; }
.uc-btn-danger:hover { background: #c92a26; }
.uc-btn-sm { padding: 3px 12px; font-size: 13px; }

/* 我的预付款 */
.uc-advance-card { padding: 18px 22px; }
.uc-advance-tip { color: #888; font-size: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
.uc-advance-table { font-size: 14px; color: #333; }
.uc-advance-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; }
.uc-advance-row:last-child { border-bottom: 0; }
.uc-advance-label { flex: 0 0 220px; color: #555; }
.uc-advance-val { color: #e3342f; font-weight: 700; font-size: 16px; margin-right: auto; }
.uc-advance-row .uc-btn-pay { margin-left: auto; }

/* 发票信息簿 */
.uc-inv-list-tip { font-size: 14px; color: #333; margin: 4px 0 10px; }
.uc-inv-card { background: #f8fbfd; border: 1px solid #e1eff7; border-radius: 4px; padding: 12px 16px; margin-bottom: 12px; }
.uc-inv-card .uc-inv-line { font-size: 13px; color: #555; line-height: 1.9; }
.uc-inv-card .uc-inv-num { color: #1a8cd2; font-weight: 700; margin-right: 4px; }
.uc-inv-tag { display: inline-block; padding: 1px 8px; font-size: 12px; color: #1a8cd2; border: 1px solid #1a8cd2; border-radius: 10px; margin-left: 4px; }
.uc-inv-default-tag { color: #e3342f; font-size: 13px; margin-right: 6px; }
.uc-inv-ops { margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.uc-inv-form .form-row { display: flex; align-items: center; padding: 8px 0; }
.uc-inv-form .form-row label { flex: 0 0 110px; color: #555; font-size: 14px; }
.uc-inv-form .form-row input, .uc-inv-form .form-row select, .uc-inv-form .form-row textarea {
    flex: 1; padding: 6px 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; outline: none;
}
.uc-inv-form .form-row textarea { resize: vertical; font-family: inherit; }
.uc-inv-form .form-row input:focus, .uc-inv-form .form-row select:focus, .uc-inv-form .form-row textarea:focus { border-color: #1a8cd2; }
.uc-inv-radio { padding: 8px 0 4px 110px; font-size: 14px; }
.uc-inv-radio label { color: #1a8cd2; }

/* 收货地址簿 */
.uc-addr-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #f8fbfd; border: 1px solid #e1eff7; border-radius: 3px; margin-bottom: 14px; }
.uc-addr-stat { color: #555; font-size: 13px; }
.uc-addr-stat b { color: #e3342f; font-weight: 700; }
.uc-addr-card { display: flex; align-items: flex-start; padding: 16px 18px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 12px; background: #fff; gap: 14px; }
.uc-addr-card.is-default { border-color: #1a8cd2; background: #f0f7fd; }
.uc-addr-num { font-size: 16px; font-weight: 700; color: #333; flex: 0 0 24px; line-height: 1.6; }
.uc-addr-main { flex: 1; min-width: 0; }
.uc-addr-line1 { font-size: 15px; color: #333; margin-bottom: 4px; }
.uc-addr-line1 b { font-weight: 700; }
.uc-addr-line2 { font-size: 13px; color: #666; line-height: 1.5; }
.uc-addr-ops { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; text-align: right; }
.uc-addr-ops a { color: #1a8cd2; font-size: 13px; text-decoration: none; }
.uc-addr-ops a:hover { text-decoration: underline; }
.uc-addr-tag { color: #e3342f; font-size: 13px; }

@media (max-width: 700px) {
    .uc-advance-label { flex: 0 0 140px; font-size: 13px; }
    .uc-advance-val { font-size: 14px; }
    .uc-addr-card { flex-direction: column; }
    .uc-addr-ops { flex-direction: row; }
    .uc-inv-form .form-row label, .uc-inv-radio { flex: 0 0 86px; padding-left: 0; }
}

/* ==================== 智能解析框 ==================== */
.uc-parse {
    background: #f7faff;
    border: 1px solid #d6e4ff;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 4px 0 18px;
}
.uc-parse-head {
    font-size: 14px;
    font-weight: 600;
    color: #1a4fb4;
    margin-bottom: 8px;
}
.uc-parse-tip {
    font-weight: 400;
    color: #8a96a8;
    font-size: 12px;
    margin-left: 6px;
}
.uc-parse-area {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cdd9e8;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    background: #fff;
}
.uc-parse-area:focus { outline: none; border-color: #2b7fff; box-shadow: 0 0 0 2px rgba(43,127,255,.12); }
.uc-parse-btns {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.uc-parse-msg { font-size: 12px; color: #2a8a3e; }
.uc-form-divider {
    border-top: 1px dashed #e2e8f0;
    margin: 14px 0 18px;
}
@media (max-width: 600px) {
    .uc-parse-tip { display: block; margin: 4px 0 0; }
}

/* ==================== 我的报价单（tansoole 表格风格） ==================== */
.uc-quote-title {
    position: relative;
    padding: 10px 12px 10px 16px;
    margin: 0 0 14px;
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #fcdcdc;
    border-left: 4px solid #e60012;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.uc-quote-title-bar { display: none; }
.uc-quote-title-text { font-weight: bold; color: #e60012; font-size: 16px; }
.uc-quote-title-aside { color: #888; font-size: 13px; font-weight: normal; }
.uc-quote-rule-link { color: #1a73e8; text-decoration: none; }
.uc-quote-rule-link:hover { text-decoration: underline; }

/* 状态 badge：等待报价 / 报价处理中 */
.order-status.st-等待报价 { background: #fff7e6; color: #d48806; }
.order-status.st-报价处理中 { background: #e6f7ff; color: #1890ff; }

.qbox-wrap { background: #fff; border-radius: 4px; }
.uc-quotes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}
.uc-quotes-table thead th {
    background: #eef4fc;
    color: #1a73e8;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #d8e3f0;
    font-weight: bold;
    white-space: nowrap;
}
.uc-quotes-table tbody td {
    padding: 10px 8px;
    border: 1px solid #e8edf3;
    color: #444;
    vertical-align: middle;
    background: #fff;
}
.uc-quotes-table tbody .uc-t-check { width: 36px; text-align: center; background: #fff; }
.uc-quotes-table .uc-oid { color: #1a73e8; text-decoration: none; }
.uc-quotes-table .uc-oid:hover { text-decoration: underline; }
.uc-quotes-table .uc-quote-ops a { color: #1a73e8; text-decoration: none; margin: 0 2px; }
.uc-quotes-table .uc-quote-ops a:hover { text-decoration: underline; }
.uc-quotes-table .uc-quote-ops { white-space: nowrap; }

.uc-quote-subrow > .uc-quote-subcell {
    padding: 0 !important;
    background: #fafbfc;
    border-left: 1px solid #e8edf3;
    border-right: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
}
.uc-quotes-subtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 0;
}
.uc-quotes-subtable thead th {
    background: #f6f8fa;
    color: #666;
    padding: 8px;
    text-align: left;
    border: 1px solid #e0e5ec;
    font-weight: 500;
}
.uc-quotes-subtable tbody td {
    padding: 8px;
    border: 1px solid #ececec;
    color: #555;
    vertical-align: middle;
}
.uc-quotes-subtable .uc-quote-inquiry { color: #888; font-style: italic; }
.uc-quotes-subtable .uc-quote-spec { color: #888; font-size: 11px; margin-top: 4px; line-height: 1.4; }
.uc-quotes-subtable .uc-quote-act { color: #1a73e8; text-decoration: none; }
.uc-quotes-subtable .uc-quote-act:hover { text-decoration: underline; }

/* 分页与订单相同，复用 .uc-pager .uc-qpg */
.uc-pager .uc-qpg { display: inline-block; padding: 4px 10px; border: 1px solid #d8dde6; background: #fff; color: #555; text-decoration: none; border-radius: 3px; cursor: pointer; }
.uc-pager .uc-qpg:hover:not(.disabled) { color: #e60012; border-color: #e60012; }
.uc-pager .uc-qpg.disabled { color: #ccc; cursor: not-allowed; }

/* 修改弹窗 */
.qm-modal { max-width: 760px; width: 90vw; }
.qm-modal .uc-qm-qty { width: 70px; padding: 4px 6px; border: 1px solid #d8dde6; border-radius: 3px; font-size: 13px; text-align: center; }
.qm-modal .uc-quote-actions a { color: #1a73e8; text-decoration: none; margin: 0 4px; }
.qm-modal .uc-quote-actions a:hover { text-decoration: underline; }

/* 状态 badge（继承 order-status .st-*） */
.uc-quotes-table .order-status.st-已取消 { color: #999; }

/* 响应式：报价单表横向滚动 */
@media (max-width: 900px) {
    .uc-quotes-table { min-width: 720px; }
    .qbox-wrap { overflow-x: auto; }
}

/* ==================== 弹窗通用（运费规则 / 修改 / 预付款 / 收银台） ==================== */
/* JS 使用 .modal-overlay > .modal（含 .modal-close / .modal-title），对齐既有 .modal-mask/.modal-card 视觉 */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    position: relative;
    background: #fff; border-radius: 8px; width: 480px; max-width: 95vw;
    max-height: 90vh; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.18);
    display: flex; flex-direction: column;
}
.modal-close {
    position: absolute; top: 10px; right: 12px; width: 28px; height: 28px;
    border: 0; background: transparent; color: #999; font-size: 22px; line-height: 1;
    cursor: pointer; border-radius: 4px; z-index: 2;
}
.modal-close:hover { background: #f2f2f2; color: #666; }
.modal-title {
    margin: 0; padding: 18px 22px; border-bottom: 1px solid #eee;
    font-size: 16px; color: #222; font-weight: bold;
}
/* 弹窗主体（规则列表 / 修改表单 / 收银台内容） */
.modal .qrm-rules { list-style: none; padding: 18px 22px; margin: 0; max-height: 60vh; overflow-y: auto; }
.modal .qrm-rules li { padding: 9px 0; border-bottom: 1px dashed #f0f0f0; line-height: 1.7; color: #555; font-size: 13px; }
.modal .qrm-rules li:last-child { border-bottom: 0; }
.modal .qrm-rules b { color: #222; }
/* 修改弹窗内商品行 */
.modal .uc-qm-list { padding: 16px 22px; max-height: 60vh; overflow-y: auto; }
.modal .uc-qm-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.modal .uc-qm-item:last-child { border-bottom: 0; }
.modal .uc-qm-info { flex: 1; min-width: 0; }
.modal .uc-qm-name { font-size: 13px; color: #333; }
.modal .uc-qm-meta { font-size: 12px; color: #999; margin-top: 2px; }
.modal .uc-qm-del { color: #e60012; text-decoration: none; font-size: 13px; }
.modal .uc-qm-del:hover { text-decoration: underline; }
/* 弹窗底部按钮条（uc-modal-btns 为 JS 内联使用） */
.uc-modal-btns { padding: 14px 22px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 10px; }
.uc-modal-btns .btn-primary { background: #e60012; color: #fff; border: 0; border-radius: 4px; padding: 7px 20px; font-size: 14px; cursor: pointer; }
.uc-modal-btns .btn-primary:hover { background: #c8000f; }
.uc-modal-btns .btn-line { background: #fff; border: 1px solid #ddd; color: #555; border-radius: 4px; padding: 7px 20px; font-size: 14px; cursor: pointer; }
.uc-modal-btns .btn-line:hover { border-color: #bbb; }

/* ==================== 报价篮（tansoole 表格风格） ==================== */
.qb-wrap { padding: 6px 0 50px; }
.qb-wrap .checkout-steps { padding: 0 0 14px; }

/* 配送至地址条 */
.qb-addr {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #fff;
    border: 1px solid #eee; border-bottom: none; border-radius: 4px 4px 0 0;
    font-size: 14px; color: #333;
}
.qb-addr .qb-addr-label { color: #333; flex: none; }
.qb-addr .qb-addr-select { flex: 1; max-width: 480px; }
.qb-addr .qb-addr-empty { color: #999; font-size: 13px; padding: 0 4px; }
.qb-addr .qb-addr-edit { color: #1890ff; font-size: 13px; text-decoration: none; }
.qb-addr .qb-addr-edit:hover { text-decoration: underline; }

/* 商品表 8 列：编号 | 名称 | 数量 | 交货期 | 购买价 | 金额小计 | 询价备注 | 操作 */
.qb-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #eee; border-bottom: none; table-layout: fixed; }
.qb-table thead th { background: #f7f8fa; color: #555; font-size: 13px; padding: 12px 8px; border-bottom: 1px solid #eee; text-align: center; font-weight: normal; }
.qb-table tbody td { padding: 14px 8px; border-bottom: 1px solid #f0f0f0; text-align: center; font-size: 13px; color: #333; vertical-align: top; }
.qb-table .qb-col-no { width: 100px; font-family: Consolas, Monaco, monospace; color: #444; }
.qb-table .qb-col-qty { width: 92px; }
.qb-table .qb-col-delivery { width: 110px; color: #555; }
.qb-table .qb-col-price { width: 100px; }
.qb-table .qb-col-price b { color: #e60012; font-size: 15px; font-weight: bold; }
.qb-table .qb-col-op { width: 70px; }
.qb-col-prod { text-align: left; padding: 14px 12px; min-width: 280px; }
.qb-col-prod .qb-img { display: inline-block; vertical-align: middle; }
.qb-col-prod .qb-img img { width: 56px; height: 56px; object-fit: contain; border: 1px solid #f0f0f0; margin-right: 12px; vertical-align: top; }
.qb-col-prod .qb-pinfo { display: inline-block; vertical-align: middle; max-width: 240px; }
.qb-col-prod .qb-name { color: #333; font-size: 13px; line-height: 1.5; }
.qb-col-prod .qb-name:hover { color: #e60012; }
.qb-col-prod .qb-sub { color: #999; font-size: 12px; margin-top: 4px; }
.qb-col-remark { width: 220px; padding: 14px 12px !important; text-align: left !important; }
.qb-remark-line { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.qb-remark-line .qb-remark-label { width: 64px; flex: none; color: #555; font-size: 12px; }
.qb-remark-line .qb-remark-txt { flex: 1; width: 100%; min-height: 26px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 3px; font-size: 12px; resize: vertical; box-sizing: border-box; }
.qb-remark-line .qb-remark-txt:focus { border-color: #f59e0b; outline: none; }
/* 数量步进器 */
.qb-stepper { display: inline-flex; align-items: stretch; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; }
.qb-stepper .qb-sp-btn { width: 26px; height: 28px; border: 0; background: #fafafa; cursor: pointer; font-size: 14px; color: #555; }
.qb-stepper .qb-sp-btn:hover { background: #f0f0f0; color: #e60012; }
.qb-stepper .qb-sp-inp { width: 40px; height: 28px; border: 0; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; font-size: 13px; outline: none; }
.qb-col-op a { color: #1890ff; font-size: 13px; text-decoration: none; }
.qb-col-op a:hover { color: #e60012; text-decoration: underline; }

/* 底部操作条 */
.qb-foot {
    display: flex; align-items: center; flex-wrap: wrap;
    padding: 16px 16px; background: #fafafa;
    border: 1px solid #eee; border-top: none; border-radius: 0 0 4px 4px;
    gap: 16px;
}
.qb-foot-left { display: flex; align-items: center; gap: 18px; }
.qb-foot-left .qb-fee-link { color: #1890ff; font-size: 13px; text-decoration: none; }
.qb-foot-left .qb-fee-link:hover { text-decoration: underline; }
.qb-foot-left .qb-fee-text { color: #555; font-size: 13px; }
.qb-foot-left .qb-fee-text b { color: #e60012; font-size: 16px; margin-left: 4px; }
.qb-foot-right { margin-left: auto; display: flex; gap: 12px; }
.qb-btn-blue { height: 40px; padding: 0 28px; background: #2563eb; color: #fff; border: 0; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.qb-btn-blue:hover { background: #1d4ed8; }
.qb-btn-orange { height: 40px; padding: 0 28px; background: #f59e0b; color: #fff; border: 0; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; }
.qb-btn-orange:hover { background: #d97706; }
.qb-btn-orange:disabled { background: #c4c4c4; cursor: not-allowed; }

/* 成功页 */
.qb-success { padding: 60px 20px; text-align: center; }
.qb-success .qb-succ-ico {
    display: inline-block; width: 88px; height: 88px; line-height: 88px;
    background: #f0f9ff; color: #2563eb; font-size: 48px;
    border-radius: 50%; margin-bottom: 18px;
}
.qb-success .qb-succ-title { font-size: 18px; color: #333; margin: 0 0 10px; font-weight: 500; }
.qb-success .qb-succ-title b { color: #2563eb; font-weight: 600; }
.qb-success .qb-succ-sub { color: #555; font-size: 14px; line-height: 1.7; margin: 0 0 6px; }
.qb-success .qb-succ-sub a { color: #2563eb; text-decoration: none; }
.qb-success .qb-succ-sub a:hover { text-decoration: underline; }
.qb-success .qb-succ-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; }

/* 响应式 */
@media (max-width: 900px) {
    .qb-table { min-width: 760px; }
    .qb-wrap { overflow-x: auto; }
}

/* 订单详情弹窗（user-center.js viewOrderModal） */
.orderView-modal { max-width: 780px; max-height: 86vh; overflow-y: auto; padding: 20px 28px 26px; }
.orderView-modal h3 { margin: 0 0 10px; font-size: 18px; color: #003a8c; }
.orderView-meta { width: 100%; font-size: 13px; border-collapse: collapse; margin-bottom: 14px; }
.orderView-meta td { padding: 6px; border-bottom: 1px dashed #f0f0f0; }
.orderView-meta td:first-child { color: #888; width: 100px; }
.orderView-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orderView-table th, .orderView-table td { padding: 8px; border: 1px solid #e5e5e5; }
.orderView-table th { background: #f4f8ff; font-weight: 600; color: #003a8c; text-align: center; }
.orderView-table td:nth-child(1), .orderView-table td:nth-child(3),
.orderView-table td:nth-child(4) { text-align: center; }
.orderView-table tfoot td { background: #fafbfd; }
.orderView-actions { margin-top: 18px; text-align: right; }
.orderView-actions .btn-primary, .orderView-actions .btn-line { padding: 6px 16px; border-radius: 4px; }
.orderView-actions .btn-primary { background: #003a8c; color: #fff; border: 0; cursor: pointer; }
.orderView-actions .btn-primary:hover { background: #002766; }
.orderView-actions .btn-primary:disabled { background: #999; cursor: not-allowed; }
.orderView-actions .btn-line { background: #fff; color: #555; border: 1px solid #ddd; cursor: pointer; }
.orderView-actions .btn-line:hover { background: #f7f7f7; }

/* ==========================================================================
 * 订单信息详情独立页 order.html
 * ========================================================================== */
.od-wrap { background: #fff; padding: 18px 24px 36px; margin: 12px auto; border: 1px solid #eee; min-height: 600px; }
.od-crumb { color: #888; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.od-crumb a { color: #888; text-decoration: none; }
.od-crumb a:hover { color: #003a8c; }
.od-crumb-cur { color: #003a8c; }

.od-loading { text-align: center; padding: 80px 0; color: #888; font-size: 14px; }

/* Header */
.od-head { margin-bottom: 14px; }
.od-head-line { font-size: 14px; padding: 6px 0; }
.od-head-line .od-oid { color: #003a8c; font-weight: bold; font-size: 15px; }
.od-head-status { margin-left: 22px; }
.od-head-line-sub { color: #888; font-size: 12px; }

/* 4-cell shipment */
.od-ship { display: flex; flex-wrap: wrap; border: 1px solid #f0f0f0; background: #fafbfd; padding: 10px 0; margin-bottom: 14px; }
.od-ship-cell { width: 25%; padding: 6px 14px; font-size: 13px; }
.od-ship-l { color: #888; }
.od-ship-v { color: #333; margin-left: 4px; }

/* simple key-value row */
.od-row { padding: 4px 0; font-size: 13px; }
.od-row .od-k { color: #888; }
.od-row .od-v { color: #333; }
.od-mute { color: #aaa; }
.od-link-blue { color: #1890ff; text-decoration: none; font-size: 13px; }
.od-link-blue:hover { text-decoration: underline; }

/* block panels (收货人 / 配送方式 / 付款方式 / 发票信息) */
.od-block { margin-bottom: 14px; }
.od-block-title { font-weight: bold; font-size: 14px; color: #333; padding: 6px 0; margin-top: 6px; }
.od-block-body { font-size: 13px; color: #333; padding: 6px 0 6px 4px; }
.od-block-sub { color: #888; font-size: 12px; margin-top: 4px; }
.od-inv-row { padding: 4px 0; }
.od-row-source { padding: 4px 0 14px; border-bottom: 1px dashed #eee; margin-bottom: 14px; }

/* 商品清单 9 列 */
.od-row-title { display: flex; align-items: center; gap: 14px; padding: 12px 0 8px; }
.od-row-title-txt { font-weight: bold; font-size: 15px; color: #003a8c; }

.od-items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.od-items-table th, .od-items-table td { padding: 10px 8px; border: 1px solid #e5e5e5; text-align: center; vertical-align: middle; }
.od-items-table thead th { background: #f4f8ff; font-weight: 600; color: #003a8c; }
.od-td-no { width: 110px; font-family: Consolas, Monaco, monospace; color: #444; }
.od-th-no { width: 110px; }
.od-td-prod { text-align: left; padding: 8px 10px !important; }
.od-prod-link { color: #333; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.od-prod-link:hover .od-prod-name { color: #003a8c; }
.od-prod-img { width: 56px; height: 56px; object-fit: contain; border: 1px solid #f0f0f0; flex: none; }
.od-prod-body { flex: 1; min-width: 0; }
.od-prod-name { color: #333; font-size: 13px; line-height: 1.4; }
.od-prod-sub { color: #888; font-size: 12px; margin-top: 4px; }
.od-td-ref { color: #555; font-size: 12px; line-height: 1.4; padding: 10px 8px; }
.od-td-deliv .od-pill { display: inline-block; padding: 2px 10px; background: #e60012; color: #fff; border-radius: 12px; font-size: 12px; }
.od-td-price { color: #333; }
.od-td-qty { color: #333; }
.od-td-subtotal { color: #333; font-weight: bold; }
.od-empty { text-align: center; color: #999; padding: 32px 0 !important; }

/* 底部摘要（左右双列） */
.od-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 12px; border: 1px solid #eee; border-top: none; background: #fff; }
.od-foot-left { font-size: 13px; color: #333; max-width: 50%; }
.od-foot-msg { color: #333; word-break: break-word; }
.od-foot-right { text-align: right; font-size: 13px; color: #333; min-width: 280px; }
.od-foot-line { padding: 3px 0; }
.od-foot-line b { color: #333; font-weight: 600; }
.od-foot-pay { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eee; text-align: right; font-size: 14px; color: #333; }
.od-pay-big { color: #e60012; font-size: 18px; font-weight: bold; margin-left: 6px; }

/* 底部操作按钮 */
.od-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 0 0; margin-top: 14px; border-top: 1px solid #eee; }
.od-actions button { height: 34px; min-width: 110px; padding: 0 22px; border-radius: 4px; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.od-btn-line { background: #fff; color: #555; border-color: #ddd !important; }
.od-btn-line:hover { background: #f7f7f7; }
.od-btn-blue { background: #003a8c; color: #fff; border-color: #003a8c !important; }
.od-btn-blue:hover { background: #002766; }
.od-btn-blue:disabled { background: #999; border-color: #999 !important; cursor: not-allowed; }
.od-btn-orange { background: #f59e0b; color: #fff; border-color: #f59e0b !important; }
.od-btn-orange:hover { background: #d97706; }
.od-btn-orange:disabled { background: #c4c4c4; border-color: #c4c4c4 !important; cursor: not-allowed; }
.od-btn-warn { background: #fff; color: #c00; border-color: #c00 !important; }
.od-btn-warn:hover { background: #fef0f0; }
.od-btn-warn:disabled { color: #999; border-color: #ddd !important; cursor: not-allowed; }

@media (max-width: 900px) {
    .od-items-table { min-width: 880px; }
    .od-wrap { overflow-x: auto; }
    .od-ship-cell { width: 50%; }
    .od-foot { flex-direction: column; }
    .od-foot-right { min-width: 0; width: 100%; }
}


/* ==================== 发票信息簿 · 智能解析 ==================== */
.ib-smart-row { align-items: flex-start; }
.ib-smart-box { flex: 1; min-width: 0; }
.ib-smart-box textarea {
    width: 100%; height: 96px; padding: 8px 10px; resize: vertical;
    border: 1px solid #ccc; border-radius: 3px; font-family: inherit;
    font-size: 13px; line-height: 1.7; color: #333; box-sizing: border-box;
    background: #fafafa;
}
.ib-smart-box textarea:focus { border-color: #e60012; outline: none; background: #fff; }
.ib-smart-ops { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.ib-smart-btn { padding: 6px 18px; }
.ib-smart-tip { font-size: 12px; color: #999; }
.ib-smart-tip.ok { color: #1a7f37; }
.ib-smart-tip.err { color: #e60012; }

/* ==================== 结算页 · 发票形式（电子发票 · 横排简洁风格） ==================== */
.cb-row { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #333; cursor: pointer; }
.cb-row input[type=checkbox] { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #e60012; }
.cb-row .muted { color: #999; font-size: 12px; }
.cis-extras { padding: 4px 0; }
.cis-extras .form-row { display: flex; align-items: center; margin: 10px 0; }
.cis-extras .form-row > .lbl {
    width: 140px;
    flex: none;
    text-align: right;
    padding-right: 14px;
    color: #555;
    font-size: 14px;
    line-height: 32px;
}
.cis-extras .form-row > .ctl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.cis-extras .form-row > .ctl input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #e60012;
}
.cis-extras .form-row > .ctl .name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.cis-extras .form-row > .ctl .muted {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}
.cis-extras .form-row > input[type=text] {
    flex: 1;
    max-width: 420px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    transition: border-color .15s;
}
.cis-extras .form-row > input[type=text]:focus {
    border-color: #e60012;
    outline: none;
}



.uc-quote-card { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:0; margin-bottom:14px; box-shadow:0 1px 3px rgba(15,23,42,0.04); transition:box-shadow .2s; overflow:hidden; }
.uc-quote-card:hover { box-shadow:0 4px 14px rgba(15,23,42,0.08); }
.uc-quote-card.is-quoted { border-left:4px solid #10b981; }
.uc-quote-card.is-pending { border-left:4px solid #f59e0b; }
.ucq-head { display:flex; align-items:center; gap:10px; padding:14px 18px; background:#fafbfc; border-bottom:1px solid #e2e8f0; flex-wrap:wrap; }
.ucq-check input { cursor:pointer; }
.ucq-id a { font-size:15px; font-weight:700; color:#1b4f8a; text-decoration:none; }
.ucq-id a:hover { text-decoration:underline; }
.ucq-time { font-size:12px; color:#64748b; flex:1; min-width:160px; }
.ucq-ops { display:flex; gap:14px; }
.ucq-op { font-size:13px; color:#1b4f8a; cursor:pointer; text-decoration:none; }
.ucq-op:hover { text-decoration:underline; }
.ucq-op-danger { color:#dc2626; }
.uc-quote-card.is-quoted .order-status { background:#d1fae5 !important; color:#065f46 !important; }
.uc-quote-card.is-pending .order-status { background:#fef3c7 !important; color:#92400e !important; }
.ucq-quote { background:linear-gradient(135deg,#ecfdf5 0%,#f0fdf4 100%); padding:14px 18px; border-bottom:1px solid #d1fae5; }
.ucq-quote-amount { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.ucq-quote-label { font-size:12px; color:#065f46; }
.ucq-amount-num { font-size:24px; font-weight:800; color:#dc2626; }
.ucq-valid { font-size:12px; color:#94a3b8; }
.ucq-admin-note { margin-top:8px; padding:8px 12px; background:#fffbeb; border:1px solid #fde68a; border-radius:6px; font-size:13px; color:#92400e; }
.ucq-converted { margin-top:8px; font-size:13px; color:#1b4f8a; }
.ucq-converted a { color:#1b4f8a; font-weight:600; }
.ucq-items { width:100%; border-collapse:collapse; font-size:13px; }
.ucq-items th { padding:10px 14px; background:#f8fafc; color:#475569; font-weight:600; text-align:left; border-bottom:1px solid #e2e8f0; }
.ucq-items th.ucq-th-gid { width:120px; }
.ucq-items th.ucq-th-num { width:80px; text-align:center; }
.ucq-items th.ucq-th-price, .ucq-items th.ucq-th-sub { width:120px; text-align:right; }
.ucq-items th.ucq-th-inq { text-align:center; }
.ucq-items td { padding:12px 14px; border-bottom:1px solid #f1f5f9; vertical-align:top; }
.ucq-items tr:last-child td { border-bottom:none; }
.ucq-gid { color:#64748b; font-family:Consolas,monospace; font-size:12px; }
.ucq-name a { color:#1b4f8a; text-decoration:none; font-weight:600; }
.ucq-name a:hover { text-decoration:underline; }
.ucq-spec { color:#94a3b8; font-size:11px; margin-top:3px; }
.ucq-remark { color:#dc2626; font-size:11px; margin-top:3px; font-style:italic; }
.ucq-num { text-align:center; color:#475569; }
.ucq-price { text-align:right; color:#dc2626; font-weight:600; }
.ucq-sub { text-align:right; color:#dc2626; font-weight:700; }
.ucq-inq { text-align:center; color:#94a3b8; font-style:italic; }
.ucq-empty { text-align:center; color:#94a3b8; padding:20px !important; }
