/*
 * AiCart OS v6.11
 * Copyright (c) AiCart OS team. All rights reserved.
 */
/* ===================================================================
   CMS 3.0 现代设计系统（app.css）
   - 设计令牌：颜色由后台「模板管理」生成内联 :root 覆盖
   - 全新页头/页脚/抽屉/底部 Tab（ux- 前缀，不与旧主题冲突）
   - 旧主题组件现代化重映射（按钮/标题/卡片/表单/分页/标签页）
   - 移动端 APP 化：底部导航、悬浮询盘、安全区、卡片化
   =================================================================== */

/* ==================== 1. 设计令牌 ==================== */

/* 页面级滚动条隐藏：不影响滚动与键盘/触控操作，仅去掉视觉滚动条 */
html,body{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:0 !important;height:0 !important;display:none}
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-rgb: 37, 99, 235;
    --primary-soft: #eaf1fe;
    --dark: #0f172a;
    --dark-soft: #f1f5f9;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --ink: #101828;
    --muted: #667085;
    --line: #e8ecf3;
    --bg: #f7f8fb;
    --card: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .09);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, .16);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ==================== 2. 基础与排版 ==================== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: #475467;
    background: #fff;
    overflow-x: hidden;
}
a, button { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); transition: color .2s ease; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.25;
}
p { line-height: 1.7; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(var(--primary-rgb), .22); }
.preloader { display: none !important; }

/* 旧主题金色链接/标题字体的系统性现代化 */
.sec-title h2, .title-box h2, .group-title h4, .related-box .group-title h4 {
    font-family: var(--font);
    font-weight: 800;
    color: var(--ink);
}
.sec-title h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.sec-title .text, .title-box .text { color: var(--muted); }
.sec-title h2 span, .title-box h2 span { color: var(--primary) !important; }

/* ==================== 3. 按钮（现代胶囊风） ==================== */
.theme-btn,
.btn-style-one, .btn-style-two, .btn-style-three {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 30px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
}
.btn-style-one, .shop-section .theme-btn, .other-options .theme-btn {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .32);
}
/* 旧主题白色滑层动画保留：hover 时白色层滑入，文字同步变主题色保证可读 */
.btn-style-one:hover, .shop-section .theme-btn:hover, .other-options .theme-btn:hover {
    background: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), .4);
}
.btn-style-one:hover { color: var(--primary) !important; }
/* 白色文字 hover 仅作用于无滑层的纯 theme-btn，带 btn-style 的按钮走各自的滑层配色 */
.shop-section .theme-btn:not(.btn-style-one):not(.btn-style-two):not(.btn-style-three):not(.btn-style-four):hover,
.other-options .theme-btn:not(.btn-style-one):not(.btn-style-two):not(.btn-style-three):not(.btn-style-four):hover {
    color: #fff !important;
}
.btn-style-two {
    background: var(--dark) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
}
/* 恢复旧主题双侧滑入动画，滑层颜色统一为主题色，文字保持白色可读 */
.btn-style-two::before { border-bottom-color: var(--primary) !important; }
.btn-style-two::after { border-top-color: var(--primary) !important; }
.btn-style-two:hover {
    background: var(--dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-style-three {
    background: transparent !important;
    color: var(--primary) !important;
    border-color: rgba(var(--primary-rgb), .45);
}
/* 恢复旧主题双侧滑入动画，滑层主题色，hover 文字转白 */
.btn-style-three::before { border-bottom-color: var(--primary) !important; }
.btn-style-three::after { border-top-color: var(--primary) !important; }
.btn-style-three:hover {
    background: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
}
/* btn-style-four：旧主题金底+深色滑层+白字本身可读，仅把滑层统一为主题深色 */
.btn-style-four::before { border-bottom-color: var(--dark) !important; }
.btn-style-four::after { border-top-color: var(--dark) !important; }
.btn-style-four:hover { color: #fff !important; }
/* shop-section / other-options 内的 btn-style-two/three：hover 保持原底色，让滑层动画可见 */
.shop-section .theme-btn.btn-style-two:hover, .other-options .theme-btn.btn-style-two:hover { background: var(--dark) !important; }
.shop-section .theme-btn.btn-style-three:hover, .other-options .theme-btn.btn-style-three:hover { background: transparent !important; }
.theme-btn.btn-sm {
    padding: 6px 18px;
    font-size: 13px;
}
/* 旧主题侧栏联系挂件：hover 白底会把白字淹没，恢复主题色 */
.sidebar-page-container .contact-widget .widget-content .theme-btn:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ==================== 4. 页头 ux-header ==================== */
.ux-header {
    position: relative;
    z-index: 1080;
    background: #fff;
}
.ux-header.ux-sticky { position: sticky; top: 0; }
.ux-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 22px;
}

/* --- 顶栏 --- */
.ux-topbar {
    background: var(--dark);
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}
.ux-topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}
.ux-topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ux-topbar-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ux-topbar-note i { color: #fbbf24; font-size: 13px; }
.ux-topbar-phone { color: rgba(255, 255, 255, .92); font-weight: 600; }
.ux-topbar-phone:hover { color: #fff; }
.ux-topbar-logout { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ux-topbar-logout:hover { color: #fff; }
.ux-topbar-logout i { font-size: 13px; }
.ux-header.uxh-bg-light .ux-topbar-logout { color: #344054; }
.ux-header.uxh-bg-light .ux-topbar-logout:hover { color: #101828; }
@media (max-width: 767px) {
    .ux-topbar-logout span { display: none; }
    .ux-topbar-logout { gap: 0; font-size: 14px; }
}
.ux-topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* --- 顶栏中间滚动告示：固定占 2/5 宽度，多条循环滚动 --- */
.ux-topbar-ticker {
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.ux-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ux-ticker-scroll 30s linear infinite;
    will-change: transform;
}
.ux-topbar-ticker:hover .ux-ticker-track { animation-play-state: paused; }
.ux-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-inline-end: 44px;
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
}
.ux-ticker-item i { color: #fbbf24; font-size: 12px; }
.ux-header.uxh-bg-light .ux-ticker-item { color: #344054; }
.ux-header.uxh-bg-light .ux-ticker-item i { color: var(--primary); }
@keyframes ux-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ux-switch { display: flex; align-items: center; }
.ux-switch a {
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ux-switch a:hover { color: #fff; }
.ux-switch a.on { color: #fff; background: rgba(255, 255, 255, .14); }
.ux-topbar .ux-switch + .ux-switch { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .16); }

/* --- 顶栏下拉（语言国旗/货币）：点击展开，节约顶栏空间 --- */
.ux-dd { position: relative; }
.ux-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, .9);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 5px 9px;
    border-radius: 8px;
    transition: all .2s ease;
}
.ux-dd-btn:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.ux-dd-flag { font-size: 14px; line-height: 1; display: inline-flex; align-items: center; }
.ux-dd-flag img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; display: block; }
.ux-flag-emoji { font-size: 14px; line-height: 1; }
.ux-dd-caret { font-size: 9px; opacity: .7; transition: transform .2s ease; }
.ux-dd.open .ux-dd-caret { transform: rotate(180deg); }
.ux-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 172px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
}
.ux-dd.open .ux-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ux-dd-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    white-space: nowrap;
}
.ux-dd-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.ux-dd-menu a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* --- 主导航栏 --- */
.ux-navbar {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.ux-navbar-in {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 74px;
}
.ux-logo { display: flex; align-items: center; flex-shrink: 0; }
.ux-logo img { max-height: 52px; width: auto; }

.ux-nav { flex: 1; min-width: 0; }
.ux-menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ux-menu-item { position: relative; }
.ux-menu-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 600;
    color: #344054;
    border-radius: 10px;
    transition: all .2s ease;
}
.ux-menu-item > a:hover { color: var(--primary); background: var(--primary-soft); }
.ux-menu-item.active > a { color: var(--primary); }
.ux-menu-item.active > a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--primary);
}
.ux-sub {
    position: absolute;
    top: 100%;
    left: 8px;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .22s ease;
    z-index: 60;
}
.ux-menu-item.has-sub:hover > .ux-sub,
.ux-menu-item.has-sub:focus-within > .ux-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.ux-sub ul { display: block; }
.ux-sub a {
    display: block;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 500;
    color: #475467;
    border-radius: var(--radius-sm);
}
.ux-sub a:hover { background: var(--primary-soft); color: var(--primary); }
/* 多级飞出子菜单（第三级起向右侧展开） */
.ux-sub li { position: relative; }
.ux-sub .ux-sub { top: -9px; left: 100%; margin-left: 4px; }
.ux-sub li.has-sub:hover > .ux-sub,
.ux-sub li.has-sub:focus-within > .ux-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ux-sub-arrow { float: right; margin: 4px 0 0 14px; font-size: 11px; color: #98a2b3; }

/* --- 右侧操作区 --- */
.ux-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.ux-act {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #344054;
    font-size: 19px;
    cursor: pointer;
    transition: all .2s ease;
}
.ux-act:hover { color: var(--primary); background: var(--primary-soft); }
.ux-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.ux-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 11px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .32);
    transition: all .25s ease;
}
.ux-cta:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.ux-cta-full { width: 100%; justify-content: center; }
.ux-burger { display: none; }

/* ==================== 5. 搜索浮层 ==================== */
.ux-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}
.ux-search.open { display: block; }
.ux-search-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.ux-search-panel {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 12vh auto 0;
    padding: 0 18px;
}
.ux-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 18px;
    padding: 10px 12px 10px 20px;
    box-shadow: var(--shadow-lg);
}
.ux-search-form > i { color: var(--muted); }
.ux-search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 16px;
    font-family: var(--font);
    color: var(--ink);
    min-width: 0;
}
.ux-search-form button {
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    cursor: pointer;
    transition: background .2s ease;
}
.ux-search-form button:hover { background: var(--primary-hover); }
.ux-search-close {
    display: flex;
    margin: 18px auto 0;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* ==================== 6. 移动端抽屉菜单 ==================== */
.ux-drawer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    visibility: hidden;
    pointer-events: none;
}
.ux-drawer.open { visibility: visible; pointer-events: auto; }
.ux-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    transition: opacity .28s ease;
}
.ux-drawer.open .ux-drawer-mask { opacity: 1; }
.ux-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
}
[dir="rtl"] .ux-drawer-panel { right: auto; left: 0; transform: translateX(-100%); }
.ux-drawer.open .ux-drawer-panel { transform: translateX(0); }
[dir="rtl"] .ux-drawer.open .ux-drawer-panel { transform: translateX(0); }
.ux-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.ux-drawer-head img { max-height: 44px; }
.ux-drawer-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
}
.ux-drawer-nav { flex: 1; padding: 12px; }
.ux-drawer-menu > li { margin-bottom: 2px; }
.ux-drawer-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #344054;
}
.ux-drawer-menu > li > a i:first-child { width: 22px; text-align: center; color: var(--muted); font-size: 16px; }
.ux-drawer-menu > li > a span { flex: 1; }
.ux-drawer-menu > li > a.active { background: var(--primary-soft); color: var(--primary); }
.ux-drawer-menu > li > a.active i:first-child { color: var(--primary); }
.ux-arrow { transition: transform .25s ease; font-size: 12px; color: #98a2b3; }
li.expanded > a .ux-arrow { transform: rotate(180deg); }
.ux-drawer-sub { display: none; padding: 2px 0 6px 34px; }
li.expanded > .ux-drawer-sub { display: block; }
.ux-drawer-sub .ux-drawer-sub { padding-left: 14px; }
.ux-drawer-sub a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #667085;
    border-left: 2px solid var(--line);
}
.ux-drawer-sub a:hover { color: var(--primary); border-left-color: var(--primary); }
.ux-drawer-switch {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ux-drawer-switch .ux-switch { flex-wrap: wrap; gap: 4px; }
.ux-drawer-switch .ux-switch a { color: #667085; background: var(--bg); }
.ux-drawer-switch .ux-switch a.on { color: #fff; background: var(--primary); }
.ux-drawer-switch .ux-switch + .ux-switch { border-left: 0; padding-left: 0; }
.ux-drawer-cta { padding: 0 18px 24px; }

/* ==================== 7. 移动端底部 Tab（APP 式） ==================== */
.ux-tabbar { display: none; }

/* ==================== 8. 悬浮询盘（移动端详情页） ==================== */
.ux-float { display: none; }

/* ==================== 9. 页脚 ux-footer ==================== */
.ux-footer { margin-top: 0; }
.ux-footer-dark { background: var(--dark); color: rgba(255, 255, 255, .72); }
.ux-footer-light { background: var(--dark-soft); color: #475467; border-top: 1px solid var(--line); }
.ux-footer .ux-container { padding-top: 56px; }
.ux-footer-grid {
    display: grid;
    /* 品牌区（简介+订阅）占 2/5，其余两列平分 3/5 */
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 32px;
    margin-bottom: 24px;
}
/* 栏目数量自适应（后台各栏目开关 + 我的账号 + DIY 决定实际列数） */
/* 4/5 栏：品牌列靠左，右侧各栏目保持内容宽度，剩余空间均分到各列之间（不压缩列宽，避免地址/图标换行） */
.ux-footer-grid-c2 { grid-template-columns: 2fr 1.5fr; }
.ux-footer-grid-c4 { grid-template-columns: minmax(260px, 420px) repeat(3, max-content); column-gap: 40px; justify-content: space-between; }
.ux-footer-grid-c5 { grid-template-columns: minmax(260px, 420px) repeat(4, max-content); column-gap: 40px; justify-content: space-between; }
.ux-footer-logo { display: inline-block; margin-bottom: 16px; }
.ux-footer-logo img { max-height: 52px; }
.ux-footer-dark .ux-footer-logo img { filter: brightness(0) invert(1); }
/* 品牌区 Logo 与「快速链接」标题顶部对齐：内联 SVG 图形距容器顶部约 15px，
   负边距抵消后可见图案顶部与相邻栏目标题顶部齐平 */
.ux-footer-brand .ux-footer-logo { display: block; margin-top: -15px; }
.ux-footer-about {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .66);
    /* 简介最多显示 6 行，超出部分以省略号收尾 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}
/* 简介下方的「了解更多」指引（跳转关于我们页面） */
.ux-footer-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.ux-footer-more i { font-size: 11px; transition: transform .2s ease; }
.ux-footer-more:hover { color: #fff; text-decoration: underline; }
.ux-footer-more:hover i { transform: translateX(3px); }
.ux-footer-light .ux-footer-more { color: var(--primary); }
.ux-footer-light .ux-footer-more:hover { color: var(--primary-hover); }
.ux-footer-light .ux-footer-about { color: #475467; }
.ux-footer h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: .02em;
}
.ux-footer-light h4 { color: var(--ink); }
.ux-footer-col ul { display: grid; gap: 11px; }
.ux-footer-col a { color: rgba(255, 255, 255, .66); font-size: 16px; transition: all .2s ease; }
.ux-footer-light .ux-footer-col a { color: #475467; }
.ux-footer-col a:hover { color: #fff; padding-left: 4px; }
.ux-footer-light .ux-footer-col a:hover { color: var(--primary); }
.ux-footer-contact li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
/* 联系方式图标：圆形描边徽标（深色 / 浅色页尾分别配色，悬停填充主题色） */
.ux-footer-contact i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), .38);
    background: rgba(var(--primary-rgb), .14);
    color: #9db9ff;
    color: color-mix(in srgb, var(--primary) 55%, #fff);
    font-size: 12px;
    line-height: 1;
    transition: background .22s ease, border-color .22s ease, color .22s ease;
}
/* 电话链接 / 邮箱防爬容器与徽标垂直对齐 */
.ux-footer-contact li > a,
.ux-footer-contact li > span.email-guard { display: inline-flex; align-items: center; gap: 12px; }
.ux-footer-contact li > a:hover i,
.ux-footer-contact li > .email-guard:hover i { background: var(--primary); border-color: var(--primary); color: #fff; }
.ux-footer-light .ux-footer-contact i {
    border-color: rgba(var(--primary-rgb), .28);
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary);
}
/* App 下载入口（iOS / Android）：联系方式栏下方的小徽标按钮 */
.ux-footer-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ux-footer-apps a,
.ux-footer-apps .ux-fapp-off {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1;
    transition: background .22s ease, border-color .22s ease, color .22s ease;
}
.ux-footer-apps a i,
.ux-footer-apps .ux-fapp-off i { font-size: 18px; line-height: 1; }
.ux-footer-apps a:hover { padding-left: 14px; background: var(--primary); border-color: var(--primary); color: #fff; }
/* 未填写下载地址时的静态徽标：只展示图标与名称，不可点击 */
.ux-footer-apps .ux-fapp-off { opacity: .6; }
.ux-footer-light .ux-footer-apps a,
.ux-footer-light .ux-footer-apps .ux-fapp-off { border-color: #d7dee9; background: #fff; color: #475467; }
.ux-footer-light .ux-footer-apps a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 支付方式图标：App 下载入口下方的小徽标（后台「页尾」可开关与自定义通道）
   白底徽标 + 官方品牌色 logo，深色/浅色页尾都清晰；max-width 让图标在窄列内自动换行 */
.ux-footer-pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; max-width: 244px; }
.ux-footer-pay .ux-footer-pay-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 26px;
    padding: 0 3px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 6px;
    background: #fff;
    color: #101828;
    font-size: 16px;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.ux-footer-pay .ux-footer-pay-i img { display: block; max-width: 100%; max-height: 15px; width: auto; height: auto; }
.ux-footer-pay .ux-footer-pay-i i { color: #101828; }
.ux-footer-pay .ux-footer-pay-i:hover {
    border-color: rgba(var(--primary-rgb), .75);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    transform: scale(1.15);
    z-index: 1;
}
.ux-footer-light .ux-footer-pay .ux-footer-pay-i { border-color: #d7dee9; background: #fff; }
.ux-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.ux-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    transition: all .25s ease;
}
.ux-footer-light .ux-footer-social a { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.ux-footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.ux-footer-custom {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}
.ux-footer-light .ux-footer-custom { border-top-color: var(--line); }
.ux-footer-custom h1, .ux-footer-custom h2, .ux-footer-custom h3, .ux-footer-custom h4 { color: #fff; }
.ux-footer-light .ux-footer-custom h1,
.ux-footer-light .ux-footer-custom h2,
.ux-footer-light .ux-footer-custom h3,
.ux-footer-light .ux-footer-custom h4 { color: var(--ink); }
.ux-footer-custom a { color: rgba(255, 255, 255, .66); }
.ux-footer-light .ux-footer-custom a { color: var(--primary); }
.ux-footer-custom img { border-radius: var(--radius-sm); }
.ux-footer-bottom {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0;
    font-size: 13px;
}
.ux-footer-light .ux-footer-bottom { border-top-color: var(--line); }
.ux-footer-bottom-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ux-footer-bottom a { color: rgba(255, 255, 255, .55); }
.ux-footer-light .ux-footer-bottom a { color: var(--muted); }

/* 版权信息（与页尾整体一致：同宽容器、顶部分界线、桌面端左右分布） */
.ux-footer-copy {
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .5);
}
.ux-footer-light .ux-footer-copy { border-top-color: var(--line); color: var(--muted); }
/* 权重需高于 .ux-footer .ux-container（否则 padding-top:56px 会串到版权条） */
.ux-footer .ux-container.ux-footer-copy-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
}
.ux-footer-copy a { color: inherit; transition: color .2s ease; }
.ux-footer-copy a:hover { color: #fff; }
.ux-footer-light .ux-footer-copy a:hover { color: var(--primary); }
/* 版权块左列：版权文字 + 技术支持品牌行（同列上下两行，不再独立成行） */
.ux-footer-legal { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ux-footer-legal .ux-footer-brand-line { font-size: 12px; opacity: .68; }
.ux-footer-legal .ux-footer-brand-line b { font-weight: 600; }

/* 品牌信息行（版权条与品牌行之间的分界线，上下留白对称）
   权重需高于 .ux-footer .ux-container（否则 padding-top:56px 会串到品牌行） */
.ux-footer .ux-container.ux-footer-brand-line {
    margin-top: 0;
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(128, 128, 128, .18);
    font-size: 12px;
    opacity: .8;
}

/* ==================== 10. 回顶按钮 ==================== */
.scroll-to-top {
    width: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    font-size: 16px !important;
    border-radius: 50% !important;
    background: var(--primary) !important;
    color: var(--primaryTx, #fff) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: all .25s ease;
    right: 8px !important;
    bottom: 20px !important;
}
.scroll-to-top:hover { background: var(--primary-hover, #1d4ed8) !important; transform: translateY(-3px); }
/* 主题样式默认 display:none，编译器脚本只切换 .show 类，需显式恢复显示 */
.scroll-to-top.show { display: block !important; }

/* ==================== 11. 内页组件现代化 ==================== */
/* 页头横幅 */
.page-title {
    background: var(--dark);
    background-image:
        radial-gradient(80% 140% at 100% 0%, rgba(var(--primary-rgb), .35), transparent 55%),
        radial-gradient(60% 120% at 0% 100%, rgba(var(--primary-rgb), .18), transparent 60%);
    padding: 64px 0 58px !important;
}
.page-title h2 { color: #fff !important; font-size: clamp(24px, 3vw, 34px) !important; }
.page-title .page-breadcrumb, .page-title .page-breadcrumb li a { color: rgba(255, 255, 255, .65) !important; }
.page-title .page-breadcrumb li { color: #fff !important; }
.page-title .page-breadcrumb li a:hover { color: #fff !important; }

/* 卡片化：产品/新闻/服务 */
.shop-item .inner-box,
.news-block .inner-box,
.blog-news .inner-box,
.single-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
}
.shop-item .inner-box:hover,
.blog-news .inner-box:hover,
.single-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
/* 服务列表卡片：圆角跟随后台外观「圆角风格」（与产品/新闻卡片共用同一令牌） */
.service-block-three .inner-box {
    border-radius: var(--radius);
    overflow: hidden;
}
/* 服务详情：封面图与询盘横幅同样跟随外观圆角；横幅使用主题色渐变 */
.services-detail .inner-box .detail-cover,
.services-detail .inner-box .service-contact-box {
    border-radius: var(--radius);
    overflow: hidden;
}
.services-detail .inner-box .service-contact-box {
    background-color: transparent;
    /* 主色到深色令牌的斜向渐变（两端明暗差异明显，避免同色系渐变看不出效果） */
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover, #1d4ed8) 28%, var(--dark) 65%, #000 100%);
}
.services-detail .inner-box .service-contact-box a,
.services-detail .inner-box .service-contact-box button {
    color: #fff !important;
}
.shop-item .lower-content { padding: 16px 18px 18px; }
.shop-item .lower-content h3 { font-size: 16px; margin-bottom: 6px; }
.shop-item .lower-content h3 a { color: var(--ink); }
.shop-item .lower-content h3 a:hover { color: var(--primary); }
.shop-item .lower-content .price { color: var(--primary) !important; font-weight: 800 !important; }
.shop-item .image img { transition: transform .5s ease; }
.shop-item .inner-box:hover .image img { transform: scale(1.05); opacity: .85; }

/* 分页 */
.styled-pagination li a {
    border-radius: 12px !important;
    font-weight: 600;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    transition: all .2s ease;
}
.styled-pagination li a:hover { background: var(--primary-soft); border-color: transparent; }
.styled-pagination li .current, .styled-pagination li.active a {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), .3);
}

/* 产品详情标签页 */
.product-info-tabs .tab-btns { border-bottom: 2px solid var(--line); gap: 6px; }
.product-info-tabs .tab-btn {
    font-family: var(--font) !important;
    font-weight: 700 !important;
    color: var(--muted) !important;
    border-bottom: 2.5px solid transparent !important;
    margin-bottom: -2px;
    transition: all .2s ease;
}
.product-info-tabs .tab-btn.active-btn {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

/* 表单 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}

/* CTA 区块 */
.call-to-action-section {
    background: var(--dark) !important;
    background-image: radial-gradient(90% 160% at 100% 0%, rgba(var(--primary-rgb), .4), transparent 55%) !important;
}
.call-to-action-section h2 { color: #fff !important; }
.call-to-action-section .text { color: rgba(255, 255, 255, .72) !important; }

/* 侧栏小件 */
.sidebar .sidebar-widget,
.sidebar .search-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.sidebar .sidebar-blog-category .cat-list a {
    border-radius: 999px;
    transition: all .2s ease;
}
.sidebar .cat-list a.active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* 结果页 */
.result-box .result-icon {
    background: var(--primary-soft);
    color: var(--primary) !important;
}

/* 富文本引用 */
.rich blockquote {
    border-left: 3px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 表格 */
.shop-table, .rich table { border-radius: var(--radius-sm); overflow: hidden; }

/* 空状态 */
.empty-tip, .account-empty { color: var(--muted); }

/* ==================== 12. 平板适配 ==================== */
@media only screen and (max-width: 1024px) {
    .ux-menu-item > a { padding: 10px 8px; font-size: 16px; }
    .ux-cta { padding: 10px 18px; }
}

/* ==================== 12.5 列表卡片图片自适应修正 ====================
   旧主题卡片容器为固定背景色（#dfb162 经主题替换层变成高饱和主题色），
   且图片走 img_style() 固定 px 尺寸 + object-fit:contain —— 屏宽变化时
   图片留空处露出大色块（截图中的上下蓝条）。统一改为中性占位色 +
   固定比例裁切填充，任何屏宽下卡片整齐自适应。 */
.shop-item .inner-box .image,
.news-block .inner-box .image,
.service-block .inner-box .image {
    background: #eef1f5;
}
.shop-item .inner-box .image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.news-block .inner-box .image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
/* 产品详情主图：小屏下固定 500px 高会纵向溢出，统一方形裁切 */
.image-box .image > img,
.image-box img#mainImage {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
}

/* 中屏（平板/小窗笔记本 ≤1199px）：横向菜单 + 图标区放不下会折行，切换为抽屉菜单 */
@media only screen and (max-width: 1199px) {
    .ux-nav { display: none; }
    .ux-burger { display: inline-flex; }
    /* 顶栏精简：隐藏通告文字（语言/货币已改为下拉，可保留显示） */
    .ux-topbar-note { display: none; }
    /* 小屏下拉只显示国旗/符号 + 箭头，进一步节约空间 */
    .ux-dd-label { display: none; }
}

/* ==================== 14. FA6 → FA5 图标兼容层 ====================
   主题字体为 Font Awesome 5，模板/脚本中出现的 FA6 命名在此映射到
   FA5 同形图标（fontawesome-all.css 单冒号 :before 定义，此处用双冒号
   覆盖 content 无冲突）。新写模板可继续使用 FA6 名称。 */
/* FA6 字重类不在 FA5 的 .fa/.fas/.far/.fab 组合规则内（缺 font-style:normal 等，
   <i> 默认斜体会导致图标向右歪扭），此处对齐 FA5 基础属性 */
.fa-solid, .fa-regular, .fa-brands {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.fa-solid { font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.fa-regular { font-family: 'Font Awesome 5 Free'; font-weight: 400; }
.fa-brands { font-family: 'Font Awesome 5 Brands'; }
.fa-magnifying-glass::before { content: "\f002"; }   /* search */
.fa-scale-balanced::before { content: "\f24e"; }     /* balance-scale */
.fa-cart-shopping::before { content: "\f07a"; }      /* shopping-cart */
.fa-xmark::before { content: "\f00d"; }              /* times */
.fa-house::before { content: "\f015"; }              /* home */
.fa-circle-info::before { content: "\f05a"; }        /* info-circle */
.fa-bag-shopping::before { content: "\f290"; }       /* shopping-bag */
.fa-gears::before { content: "\f085"; }              /* cogs */
.fa-location-dot::before { content: "\f3c5"; }       /* map-marker-alt */
.fa-circle-exclamation::before { content: "\f06a"; } /* exclamation-circle */
.fa-circle-check::before { content: "\f058"; }       /* check-circle */
.fa-file-lines::before { content: "\f15c"; }         /* file-alt */
.fa-file-arrow-down::before { content: "\f56d"; }    /* file-download */
.fa-shield-halved::before { content: "\f3ed"; }      /* shield-alt */
.fa-ticket::before { content: "\f3ff"; }             /* ticket-alt */
.fa-truck-fast::before { content: "\f0d1"; }         /* truck */
.fa-rotate::before { content: "\f2f1"; }             /* sync-alt */
.fa-rotate-left::before { content: "\f0e2"; }        /* undo */

/* ==================== 13. 移动端 APP 模式 ==================== */
@media only screen and (max-width: 767px) {

    body, .page-wrapper { -webkit-tap-highlight-color: transparent; }

    /* --- 页头精简 --- */
    .ux-topbar { font-size: 13px; }
    .ux-topbar-in { min-height: 36px; }
    .ux-topbar-note { max-width: 52vw; }
    .ux-navbar-in { min-height: 58px; gap: 10px; }
    .ux-logo img { max-height: 40px; }
    .ux-hide-sm { display: none !important; }
    .ux-cta { display: none; }
    .ux-act { width: 40px; height: 40px; font-size: 16px; }
    .ux-actions { gap: 0; }

    /* --- 底部 Tab Bar --- */
    .ux-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, .06);
        max-width: 100%;
    }
    .ux-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 600;
        color: #98a2b3;
        text-decoration: none;
        position: relative;
        transition: color .2s ease;
    }
    .ux-tab i { font-size: 22px; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
    .ux-tab.active { color: var(--primary); }
    .ux-tab.active i { transform: translateY(-2px) scale(1.08); }
    .ux-tab.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 34px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--primary);
    }
    .ux-tab.tapped i { transform: scale(.82); }
    /* 底部 Tab Bar 让位空间留在页尾外部（页面背景色，与页尾深色拉出层次） */
    .page-wrapper { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }

    /* --- 悬浮询盘按钮 --- */
    .ux-float.show {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        z-index: 1090;
        gap: 10px;
        align-items: center;
        max-width: 480px;
        margin: 0 auto;
    }
    .ux-float-call {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #16a34a;
        color: #fff;
        font-size: 22px;
        box-shadow: 0 6px 18px rgba(22, 163, 74, .4);
    }
    .ux-float-inquiry {
        flex: 1;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--primary), var(--primary-hover));
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 8px 22px rgba(var(--primary-rgb), .45);
    }

    /* --- 版式压缩 --- */
    .ux-container { padding: 0 14px; }
    .auto-container { padding-left: 14px !important; padding-right: 14px !important; }
    .page-title { padding: 42px 0 38px !important; }
    .ux-footer { margin-top: 0; }
    .ux-footer .ux-container { padding-top: 18px; padding-bottom: 0; }
    .ux-footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .ux-footer-bottom-in { justify-content: center; text-align: center; }
    .ux-footer-bottom { margin-top: 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
    .ux-footer .ux-container.ux-footer-copy-in { justify-content: center; text-align: center; padding-top: 12px; padding-bottom: 12px; }
    .ux-footer .ux-container.ux-footer-brand-line { padding-top: 12px; padding-bottom: 12px; }
    /* 手机端回顶按钮：略小于桌面端，并上移到 Tab 栏之上 */
    .scroll-to-top {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 14px !important;
        right: 10px !important;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        touch-action: none;   /* 可上下拖动：手势不触发页面滚动（与客服图标一致） */
    }
    /* 产品详情等带吸底购买栏的页面：回顶按钮上移，避免压住右侧分享按钮 */
    body:has(.shop-single .info-fixed-bottom) .scroll-to-top {
        bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .shop-item .lower-content { padding: 12px 13px 14px; }
    .shop-item .lower-content h3 { font-size: 14px; }
    .sidebar-page-container .content-side,
    .sidebar-page-container .sidebar-side { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .sidebar .sidebar-widget, .sidebar .search-box { padding: 16px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
    .other-options .theme-btn, .contact-form .theme-btn { width: 100%; }

    /* 搜索浮层贴顶 */
    .ux-search-panel { margin-top: 8vh; }
}

/* 超小屏 */
@media only screen and (max-width: 380px) {
    .ux-topbar-note { display: none; }
    .ux-tab { font-size: 11px; }
    .ux-tab i { font-size: 18px; }
}

/* ==================== 14. 动效偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ==================== 15. 首页营销区块现代化 ==================== */

/* --- 15.1 Banner：渐变遮罩 + 排版 + 节奏提速 --- */
.main-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 13, 26, .66) 0%, rgba(8, 13, 26, .34) 46%, rgba(8, 13, 26, .04) 78%);
    z-index: 1;
}
.main-slider .auto-container { position: relative; z-index: 2; }
/* 固定画幅：所有幻灯片等高（原先由内容撑高，无副标题的那几张比有副标题的矮，轮播到它会露出下方空白）。
   图片层统一 absolute 铺满 + cover，任何规格图片都自适应裁切；上传建议 1920×800（约 2.4:1）。 */
.main-slider .slide {
    padding: 0 !important;
    height: clamp(520px, 48vw, 760px);
    display: flex;
    align-items: center;
}
.main-slider .slide .auto-container { width: 100%; }
.main-slider .slide .image-layer {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.main-slider .content h2 {
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 56px);
    letter-spacing: -.02em;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
    transform: translateY(40px);
}
.main-slider .content .text {
    font-family: var(--font);
    font-size: clamp(15px, 1.6vw, 17.5px);
    color: rgba(255, 255, 255, .88);
    transform: translateY(40px);
    margin-top: 22px;
    margin-bottom: 30px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}
.main-slider .content .theme-btn { transform: translateY(40px); }
.main-slider .active .content h2 { transition-delay: .15s; }
.main-slider .active .content .text { transition-delay: .3s; }
.main-slider .active .content .theme-btn { transition-delay: .45s; }
.main-slider .btns-box { display: flex; flex-wrap: wrap; gap: 12px; }
.main-slider .btns-box .theme-btn { margin: 0; }
/* 轮播控件：胶囊指示点 + 圆形悬浮箭头 */
.main-slider .owl-dots { bottom: 24px; }
.main-slider .owl-dots .owl-dot { width: auto; height: auto; margin: 0 3px; }
.main-slider .owl-dots .owl-dot span {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: all .25s ease;
}
.main-slider .owl-dots .owl-dot.active span { width: 32px; background: #fff; }
.main-slider .owl-next,
.main-slider .owl-prev {
    top: 50%;
    margin-top: -23px;
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-md);
}
.main-slider .owl-next { right: 22px; }
.main-slider .owl-prev { left: 22px; }
.main-slider .owl-next:hover,
.main-slider .owl-prev:hover { background: var(--primary); color: #fff; opacity: 1; }

/* --- 15.2 幽灵/亮色按钮（深色底上的次/主按钮） --- */
.btn-style-ghost {
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .55) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.btn-style-ghost:hover {
    background: rgba(255, 255, 255, .26) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-style-light {
    background: #fff !important;
    color: var(--dark) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.btn-style-light:hover {
    background: #eef2f7 !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
}

/* --- 15.3 信任保障条 --- */
.ux-trust {
    padding: 28px 0 24px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.ux-trust-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
}
.ux-trust-item { display: flex; align-items: center; gap: 14px; padding: 4px 8px; }
.ux-trust-item > i {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
    transition: transform .3s ease;
}
.ux-trust-item:hover > i { transform: translateY(-3px) scale(1.05); }
.ux-trust-txt h4 { font-size: 16px; font-weight: 700; margin: 0 0 3px; color: var(--ink); }
.ux-trust-txt p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* --- 15.4 统一区块标题（标题 + 副题 + 右侧查看全部） --- */
.ux-home-sec { padding: 40px 0 24px; }
.ux-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
}
.ux-sec-title h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin: 0 0 8px;
    letter-spacing: -.02em;
    color: var(--ink);
}
.ux-sec-title p { margin: 0; color: var(--muted); font-size: 16px; }
.ux-sec-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    padding: 10px 20px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    white-space: nowrap;
    transition: all .25s ease;
}
.ux-sec-more i { font-size: 12px; transition: transform .25s ease; }
.ux-sec-more:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), .45);
    background: var(--primary-soft);
}
.ux-sec-more:hover i { transform: translateX(3px); }

/* --- 15.5 服务现代卡片 --- */
.ux-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ux-svc-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
}
.ux-svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ux-svc-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef1f5;
}
.ux-svc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.ux-svc-card:hover .ux-svc-img img { transform: scale(1.06); }
.ux-svc-body { padding: 20px 22px 22px; }
.ux-svc-body h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--ink);
    transition: color .2s ease;
}
.ux-svc-card:hover .ux-svc-body h3 { color: var(--primary); }
.ux-svc-body p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.ux-svc-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.ux-svc-more i { font-size: 11px; transition: transform .25s ease; }
.ux-svc-card:hover .ux-svc-more i { transform: translateX(4px); }

/* --- 15.6 产品卡悬停现代化（首页 + 列表页共用 .shop-item） --- */
.shop-item .inner-box .overlay-box {
    background: linear-gradient(180deg, rgba(8, 13, 26, 0) 30%, rgba(8, 13, 26, .62) 100%);
    border-radius: 0;
}
.shop-item .option-box { margin-top: -24px; }
.shop-item .option-box li a,
.shop-item .option-box li button {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.shop-item .option-box li button {
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.shop-item .option-box li a:hover,
.shop-item .option-box li button:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-3px);
}
.shop-item .lower-content .price { font-size: 16px; margin-top: 4px; }
/* 价格链接：桌面端视觉与行为和纯文本完全一致（不可点）；仅手机端开放点击进入详情页 */
.shop-item .lower-content .price .price-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}
.shop-item .lower-content .price .old-price {
    color: var(--muted) !important;
    font-weight: 500;
    text-decoration: line-through;
    margin-left: 6px;
    font-size: 13px;
}

/* --- 15.7 新闻卡：元信息徽章 + 统一留白 --- */
.news-block .inner-box .lower-content { padding: 18px 20px 20px; }
.news-block .inner-box .lower-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.news-block .inner-box .lower-content .post-meta li {
    display: inline-flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 11px;
    border-radius: 999px;
    margin: 0;
}
/* 旧主题 li:last-child 会把最后一个胶囊（日期）的右内边距和右边框清零，导致日期胶囊被截短 */
.news-block .inner-box .lower-content .post-meta li:last-child {
    padding: 6px 11px;
    margin: 0;
    border-right: 1px solid var(--line);
}
.news-block .inner-box .lower-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 2.9em; /* 始终占满两行高度（2 × line-height） */
}
.news-block .inner-box .lower-content h3 a { color: var(--ink); }
.news-block .inner-box .lower-content h3 a:hover { color: var(--primary); }
.news-block .inner-box .lower-content .read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}
.news-block .inner-box .lower-content .read-more .icon { font-size: 11px; }
.news-block .inner-box .lower-content .read-more:hover { color: var(--primary-hover); }

/* --- 15.8 CTA 区块：渐变 + 装饰环 + 双按钮 --- */
.call-to-action-section {
    overflow: hidden;
    padding: 72px 0 76px !important;
    background-attachment: scroll !important;
    background-color: var(--dark) !important;
    background-image:
        radial-gradient(90% 170% at 100% 0%, rgba(var(--primary-rgb), .48), transparent 55%),
        radial-gradient(60% 130% at 0% 100%, rgba(var(--primary-rgb), .22), transparent 60%) !important;
    text-align: center;
}
.call-to-action-section::before { display: none; }
.call-to-action-section::after {
    content: '';
    position: absolute;
    left: -70px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .14);
}
.call-to-action-section h2 {
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.02em;
    margin: 0 auto;
    max-width: 820px;
}
.call-to-action-section .text {
    font-family: var(--font);
    font-size: 16px;
    color: rgba(255, 255, 255, .75);
    max-width: 640px;
    margin: 12px auto 0;
}
.call-to-action-section .theme-btn { margin: 0; }
/* 内页 CTA（未用按钮组包裹）：按钮与副标题/标题的间距对齐首页的按钮组（30px / 移动端 22px） */
.call-to-action-section .auto-container > .theme-btn { margin-top: 30px; }
.ux-cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* --- 15.9 营销区块响应式 --- */
@media (max-width: 991px) {
    .ux-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 767px) {
    /* Trust Bar：移动端横向滑动 */
    .ux-trust { padding: 18px 0; border-bottom: none; }
    .ux-trust-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 0 10px;
    }
    .ux-trust-grid::-webkit-scrollbar { display: none; }
    .ux-trust-item {
        flex: 0 0 72%;
        scroll-snap-align: start;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 12px 14px;
        gap: 11px;
    }
    .ux-trust-item > i {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 13px;
        flex-shrink: 0;
    }
    .ux-trust-txt h4 { font-size: 14px; }
    .ux-trust-txt p { display: none; }
    .ux-home-sec { padding: 40px 0 22px; }
    .ux-sec-head { margin-bottom: 22px; }
    .ux-sec-title p { display: none; }
    .ux-sec-more { padding: 8px 15px; font-size: 13px; }
    .ux-svc-grid { grid-template-columns: 1fr; gap: 18px; }
    .ux-svc-body { padding: 16px 16px 18px; }
    .call-to-action-section { padding: 50px 0 54px !important; }
    .ux-cta-btns { margin-top: 22px; gap: 10px; }
    .ux-cta-btns .theme-btn { padding: 12px 22px; font-size: 13px; }
    .call-to-action-section .auto-container > .theme-btn { margin-top: 22px; }
}

/* ==================== 16. 深色模式 ====================
   html[data-theme="dark"] 特异性高于内联 :root（theme_css_vars 仅输出主题色，
   中性色/组件色在此统一接管；主题色保持不变保证品牌一致） */
html[data-theme="dark"] {
    --ink: #eaf0fa;
    --muted: #aab6cb;
    --line: #2a3550;
    --bg: #0b101c;
    --card: #141b2e;
    --dark-soft: #0b101c;
    --primary-soft: rgba(var(--primary-rgb), .17);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .5);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
html[data-theme="dark"] body {
    background: var(--bg);
    color: #c9d3e4;
}
/* 页头 */
html[data-theme="dark"] .ux-header { background: var(--card); }
html[data-theme="dark"] .ux-navbar {
    background: rgba(19, 26, 43, .92);
    border-bottom-color: var(--line);
}
html[data-theme="dark"] .ux-menu-item > a,
html[data-theme="dark"] .ux-act,
html[data-theme="dark"] .ux-search-form input { color: #d6dfee; }
html[data-theme="dark"] .ux-badge { box-shadow: 0 0 0 2px var(--card); }
html[data-theme="dark"] .ux-sub,
html[data-theme="dark"] .ux-dd-menu { background: var(--card); }
html[data-theme="dark"] .ux-sub a,
html[data-theme="dark"] .ux-dd-menu a { color: #d6dfee; }
/* 搜索浮层 / 抽屉 */
html[data-theme="dark"] .ux-search-form { background: var(--card); }
html[data-theme="dark"] .ux-search-form button { color: #fff; }
html[data-theme="dark"] .ux-search-close { background: rgba(255, 255, 255, .14); color: #fff; }
html[data-theme="dark"] .ux-drawer-panel { background: var(--card); }
html[data-theme="dark"] .ux-drawer-close { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .ux-drawer-menu > li > a,
html[data-theme="dark"] .ux-drawer-sub a { color: #d6dfee; }
html[data-theme="dark"] .ux-drawer-switch .ux-switch a { background: var(--bg); color: #97a3b8; }
/* 底部 Tab / 悬浮 */
html[data-theme="dark"] .ux-tabbar {
    background: rgba(19, 26, 43, .96);
    border-top-color: var(--line);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .ux-tab { color: #6f7d94; }
/* 卡片 / 侧栏 / 表单（引用 --card 的组件自动适配） */
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background: var(--card);
    color: var(--ink);
}
/* 联系页表单（旧主题 .contact-form 前缀特异性更高，需对等覆盖）+ 信息栏文字 */
html[data-theme="dark"] .contact-form .form-group input,
html[data-theme="dark"] .contact-form .form-group select {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
}
html[data-theme="dark"] .contact-form-section .contact-info-list,
html[data-theme="dark"] .contact-form-section .contact-info-list li,
html[data-theme="dark"] .contact-form-section .contact-info-list li strong,
html[data-theme="dark"] .contact-form-section .contact-info-list a,
html[data-theme="dark"] .contact-form-section .inner-column { color: #c9d3e4; }
html[data-theme="dark"] .styled-pagination li a { color: #d6dfee; }
html[data-theme="dark"] .styled-pagination li .current,
html[data-theme="dark"] .styled-pagination li.active a { color: #fff !important; }
/* 侧栏（分类/搜索/标题） */
html[data-theme="dark"] .sidebar .sidebar-title h2,
html[data-theme="dark"] .sidebar .sidebar-widget h3 { color: var(--ink); }
html[data-theme="dark"] .sidebar .cat-list li a { color: #97a3b8; }
html[data-theme="dark"] .sidebar .cat-list li a:hover,
html[data-theme="dark"] .sidebar .cat-list li a.active { color: var(--primary); }
html[data-theme="dark"] .sidebar .search-box .form-group input,
html[data-theme="dark"] .sidebar .search-box input {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
}
/* 旧主题杂项 */
html[data-theme="dark"] .ux-trust,
html[data-theme="dark"] .ux-sec-more,
html[data-theme="dark"] .news-block .inner-box .lower-content .post-meta li {
    background: var(--card);
}
html[data-theme="dark"] .news-block .inner-box .lower-content .post-meta li { border-color: var(--line); }
html[data-theme="dark"] .ux-svc-img,
html[data-theme="dark"] .shop-item .inner-box .image,
html[data-theme="dark"] .news-block .inner-box .image,
html[data-theme="dark"] .service-block .inner-box .image { background: #1a2236; }
html[data-theme="dark"] .ux-footer-light {
    background: var(--card);
    border-top-color: var(--line);
}
html[data-theme="dark"] .ux-footer-light h4,
html[data-theme="dark"] .ux-footer-light .ux-footer-custom h1,
html[data-theme="dark"] .ux-footer-light .ux-footer-custom h2,
html[data-theme="dark"] .ux-footer-light .ux-footer-custom h3,
html[data-theme="dark"] .ux-footer-light .ux-footer-custom h4 { color: var(--ink); }
html[data-theme="dark"] .ux-footer-light .ux-footer-col a,
html[data-theme="dark"] .ux-footer-light .ux-footer-about,
html[data-theme="dark"] .ux-footer-light .ux-footer-contact li { color: #c9d3e4; }
html[data-theme="dark"] .ux-footer-light .ux-footer-social a { background: var(--bg); color: #d6dfee; box-shadow: none; }
html[data-theme="dark"] .ux-footer-light .ux-footer-bottom a,
html[data-theme="dark"] .ux-footer-light .ux-footer-custom a { color: #97a3b8; }
html[data-theme="dark"] .call-to-action-section { background-color: #0d1322 !important; }
/* Banner 遮罩在暗色下加强 */
html[data-theme="dark"] .main-slider .slide::before {
    background: linear-gradient(90deg, rgba(4, 8, 18, .78) 0%, rgba(4, 8, 18, .42) 46%, rgba(4, 8, 18, .08) 78%);
}
/* 图片占位与懒加载底色 */
html[data-theme="dark"] .shop-item .inner-box .image img,
html[data-theme="dark"] .news-block .inner-box .image img,
html[data-theme="dark"] .ux-svc-img img { background: #1a2236; }
/* 深色补漏（2026-10-20 深色模式检查发现）：旧主题与页面级白底未接管 */
html[data-theme="dark"] .news-block .inner-box .lower-content { background: var(--card); }
html[data-theme="dark"] .uxb-wrap.uxb-bg-gray { background: var(--card); }
html[data-theme="dark"] .m-gal-slide { background: #1a2236; }
html[data-theme="dark"] .ux-kk-item .ux-kk-cover { background: #1a2236; }
/* 产品名称：旧主题硬编码深色文字（#242424 / #101828），深底下不可读。
   加 !important：移动端吸底标题等处存在 color !important 规则，需对等压制 */
html[data-theme="dark"] .shop-item .inner-box .lower-content h3 a,
html[data-theme="dark"] .shop-item-two .inner-box .lower-content h3 a { color: var(--ink) !important; }
html[data-theme="dark"] .shop-item .inner-box .lower-content h3 a:hover,
html[data-theme="dark"] .shop-item-two .inner-box .lower-content h3 a:hover { color: var(--primary) !important; }
/* 产品卡图片上的四个快捷图标：浅底 + 浅色图标（var(--ink)）在深色模式下看不见，改为深底浅图标 */
html[data-theme="dark"] .shop-item .option-box li a,
html[data-theme="dark"] .shop-item .option-box li button {
    color: var(--ink);
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .product-details .basic-details h4,
html[data-theme="dark"] .shop-single .info-fixed-top h4 { color: var(--ink) !important; }
/* 关于我们（story 区块）：旧主题硬编码深色文字（#0e1322/#242424/#797979），深底不可读 */
html[data-theme="dark"] .story-section .content-column .inner-column h2,
html[data-theme="dark"] .story-section .content-column .inner-column .bold-text { color: var(--ink) !important; }
html[data-theme="dark"] .story-section .content-column .inner-column .text p,
html[data-theme="dark"] .story-section .content-column .inner-column .text li { color: #b6c1d4; }
html[data-theme="dark"] .story-section .content-column .inner-column .text.rich :is(h1,h2,h3,h4,h5,h6) { color: var(--ink); }
html[data-theme="dark"] .story-section .content-column .inner-column .text.rich a { color: var(--primary); }
/* 面包屑当前页（page-title 内 #101828 !important） */
html[data-theme="dark"] .page-title .page-breadcrumb li:last-child { color: #aab6cb !important; }

/* 新闻网格排版：2 列响应式 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.blog-grid .news-block-three { margin-bottom: 0; }
.blog-grid .news-block-three .image-box .image img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 767px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* 新闻图文卡片排版：3 列卡片，图片 + 标题/摘要 */
.blog-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card .news-block-three { margin-bottom: 0; }
.blog-card .news-block-three .inner-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.blog-card .news-block-three .inner-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, .12);
}
.blog-card .news-block-three .image-box .image img { aspect-ratio: 4 / 3; object-fit: cover; }
.blog-card .news-block-three .image-box .date { left: 14px; bottom: 14px; padding: 5px 12px; font-size: 12px; }
.blog-card .news-block-three .lower-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 24px;
}
.blog-card .news-block-three .lower-content h3 { font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
.blog-card .news-block-three .lower-content .text { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.blog-card .news-block-three .link-box { margin-top: auto; }
@media (max-width: 991px) {
    .blog-card { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .blog-card { grid-template-columns: 1fr; }
}

/* 新闻瀑布流排版：CSS 多列，图片保持原始比例形成高低错落 */
.blog-masonry {
    column-count: 3;
    column-gap: 24px;
}
.blog-masonry .news-block-three {
    display: inline-block;
    width: 100%;
    margin-bottom: 24px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.blog-masonry .news-block-three .inner-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.blog-masonry .news-block-three .image-box .image img { height: auto; }
.blog-masonry .news-block-three .image-box .date { left: 14px; bottom: 14px; padding: 5px 12px; font-size: 12px; }
.blog-masonry .news-block-three .lower-content { padding: 18px 20px 22px; }
.blog-masonry .news-block-three .lower-content h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.blog-masonry .news-block-three .lower-content .text { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
@media (max-width: 991px) {
    .blog-masonry { column-count: 2; }
}
@media (max-width: 575px) {
    .blog-masonry { column-count: 1; }
}
html[data-theme="dark"] .blog-card .news-block-three .lower-content h3 a,
html[data-theme="dark"] .blog-masonry .news-block-three .lower-content h3 a { color: var(--ink); }
html[data-theme="dark"] .blog-card .news-block-three .lower-content .text,
html[data-theme="dark"] .blog-masonry .news-block-three .lower-content .text { color: #b6c1d4; }

/* 新闻画廊排版：正方形图墙 + 悬浮标题 + 灯箱大图 */
.blog-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.blog-gallery .gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
}
.blog-gallery .gallery-link { display: block; position: relative; }
.blog-gallery .gallery-link img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-gallery .gallery-item:hover .gallery-link img { transform: scale(1.06); }
.blog-gallery .gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 12px;
    color: #fff;
    background: linear-gradient(180deg, rgba(4, 8, 18, 0) 0%, rgba(4, 8, 18, .8) 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.blog-gallery .gallery-item:hover .gallery-caption { opacity: 1; transform: none; }
.blog-gallery .gallery-title { display: block; font-size: 14px; line-height: 1.45; font-weight: 600; }
.blog-gallery .gallery-date { display: block; margin-top: 3px; font-size: 12px; opacity: .82; }
.blog-gallery .gallery-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #101828;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s ease, transform .3s ease;
}
.blog-gallery .gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }
@media (max-width: 991px) {
    .blog-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .blog-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .blog-gallery { grid-template-columns: 1fr; }
}
/* 触屏无悬浮：标题与放大按钮常显 */
@media (hover: none) {
    .blog-gallery .gallery-caption,
    .blog-gallery .gallery-zoom { opacity: 1; transform: none; }
}

/* ==================== 17. 图标提示 / 全站询盘弹窗 / 联系页 ==================== */

/* --- 17.1 图标按钮 tooltip（鼠标靠近显示功能提示，触屏自动忽略） --- */
[data-tip] { position: relative; }
[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translate(-50%, 4px);
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 11px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .18s ease;
    z-index: 1300;
}
[data-tip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translate(-50%, 4px) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--dark);
    border-radius: 1px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .18s ease;
    z-index: 1300;
}
[data-tip]:hover::after,
[data-tip]:hover::before,
[data-tip]:focus-visible::after,
[data-tip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before { transform: translate(-50%, 0) rotate(45deg); }
@media (hover: none) {
    [data-tip]::after, [data-tip]::before { display: none; }
}
@media (max-width: 479px) {
    .option-box [data-tip]::after { display: none; }
}

/* --- 17.2 全站询盘弹窗（ux-inquiry-modal） --- */
.ux-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ux-inquiry-modal[hidden] { display: none; }
.ux-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 26, .62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: uxFadeIn .2s ease;
}
.ux-modal-box {
    position: relative;
    width: 520px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 26px 28px 28px;
    animation: uxModalIn .28s cubic-bezier(.34, 1.3, .64, 1);
}
@keyframes uxModalIn {
    from { opacity: 0; transform: translateY(26px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes uxFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ux-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font);
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.01em;
}
.ux-modal-head i { color: var(--primary); margin-right: 4px; }
.ux-modal-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--bg);
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    transition: all .2s ease;
}
.ux-modal-close:hover { background: var(--primary-soft); color: var(--primary); }
.ux-modal-product {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 16px;
}
.ux-modal-product[hidden] { display: none; }
.ux-modal-product img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--line);
}
.ux-mp-label { font-size: 12px; color: var(--muted); }
.ux-mp-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
}
.ux-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.ux-modal-form input:not([type="hidden"]):not(.hp),
.ux-modal-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ux-modal-form textarea { margin-bottom: 12px; resize: vertical; min-height: 92px; }
.ux-modal-form input:focus,
.ux-modal-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}
.ux-modal-feedback { display: none; }
.ux-modal-feedback.ok, .ux-modal-feedback.err {
    display: block;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
}
.ux-modal-feedback.ok { background: rgba(34, 197, 94, .12); color: #16a34a; }
.ux-modal-feedback.err { background: rgba(239, 68, 68, .1); color: #ef4444; }
.ux-modal-submit { width: 100%; }

/* --- 17.2b 全站登录弹窗（外壳与询盘弹窗一致，内容直接复用登录页表单） --- */
.ux-login-box { width: 460px; }
.ux-modal-box .ux-login-body { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.ux-login-body .account-method-tabs { margin-bottom: 12px; }
@media (max-width: 767px) {
    .ux-login-box { width: auto; }
}

/* --- 17.3 服务详情页文字询盘链接按钮（保持原链接观感） --- */
.ux-link-inquiry {
    display: inline;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1px solid rgba(var(--primary-rgb), .4);
    transition: color .2s ease;
}
.ux-link-inquiry:hover { color: var(--primary-hover); }

/* --- 17.4 联系我们页面现代化 --- */
.contact-form-section {
    padding: 70px 0 84px;
    background: var(--card) !important;
    background-image: none !important;
}
.ux-contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}
.ux-contact-form-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 34px 34px;
}
.ux-contact-info-stack { display: flex; flex-direction: column; gap: 16px; }
.ux-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ux-contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb), .35);
    box-shadow: var(--shadow-md);
}
.ux-contact-card > i,
.ux-contact-card > span.ci-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
}
.ux-contact-card > div { min-width: 0; }
.ux-contact-card h4 {
    font-size: 14px;
    margin: 0 0 4px;
    color: var(--muted);
    font-weight: 600;
}
.ux-contact-card p, .ux-contact-card a {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
    word-break: break-word;
}
.ux-contact-card a:hover { color: var(--primary); }
.ux-contact-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ux-contact-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 16px;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ux-contact-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.ux-contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
    min-height: 190px;
    flex: 1;
}
.ux-contact-map iframe { width: 100%; height: 100%; min-height: 190px; border: 0; display: block; }
/* 部分地图嵌入不支持图钉参数或图钉会被页面浮层遮挡：中心叠加定位标记（地图以坐标为中心固定展示） */
.ux-contact-map.ux-map-overlay { position: relative; }
.ux-contact-map.ux-map-overlay iframe { pointer-events: none; }
.ux-map-pin {
    position: absolute; left: 50%; top: 50%; z-index: 2;
    width: 26px; height: 38px;
    transform: translate(-50%, -100%);
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}
.ux-map-open { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
/* Bing 嵌入不支持图钉名称：在标记下方显示公司地址标签 */
.ux-map-label {
    position: absolute; left: 50%; top: 50%; z-index: 2;
    transform: translate(-50%, 8px);
    max-width: 82%;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #1f2937;
    font-size: 12px; line-height: 1.5; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .ux-map-label { background: rgba(30, 41, 59, .95); color: #e5e7eb; }
/* 地图右上角「在地图中查看」按钮：图标 + 文字，明确告知可切换地图 */
.ux-contact-map { position: relative; }
.ux-map-picker { position: absolute; top: 10px; right: 10px; z-index: 6; }
.ux-map-picker summary {
    list-style: none; display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: #1f2937;
    font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
    cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.ux-map-picker summary i { font-size: 14px; color: var(--primary); }
.ux-map-picker summary::after {
    content: ''; width: 6px; height: 6px; margin-left: 1px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.ux-map-picker summary::-webkit-details-marker { display: none; }
.ux-map-picker[open] summary { background: var(--primary); color: #fff; }
.ux-map-picker[open] summary i { color: #fff; }
.ux-map-picker[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.ux-map-menu {
    position: absolute; right: 0; top: 44px; min-width: 150px; padding: 6px;
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.ux-map-menu a {
    padding: 8px 10px; border-radius: 8px;
    font-size: 13px; line-height: 1.4; color: var(--ink);
    text-decoration: none; white-space: nowrap;
}
.ux-map-menu a:hover { background: rgba(128, 128, 128, .12); color: var(--primary); }
html[data-theme="dark"] .ux-map-picker summary { background: rgba(30, 41, 59, .95); color: #e5e7eb; }
html[data-theme="dark"] .ux-map-menu { background: #131a2c; border-color: #1e2836; }
/* 菜单展开时允许溢出，避免被地图容器的圆角裁切 */
.ux-contact-map:has(.ux-map-picker[open]) { overflow: visible; }
/* 手机端 Bing / Google 嵌入常被拦截：改用 OpenStreetMap 小地图 + 地址展示 */
.ux-map-mobile { display: none; }
@media (max-width: 767px) {
    .ux-contact-map.ux-map-needs-fallback > iframe,
    .ux-contact-map.ux-map-needs-fallback .ux-map-pin,
    .ux-contact-map.ux-map-needs-fallback .ux-map-label { display: none; }
    .ux-contact-map.ux-map-needs-fallback .ux-map-mobile {
        display: flex; flex-direction: column;
        min-height: 190px; color: var(--ink);
    }
    .ux-map-mobile iframe {
        width: 100%; height: 180px; min-height: 180px;
        flex: 1 1 auto; border: 0; display: block;
    }
    .ux-map-mobile-addr {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 10px 12px; font-size: 13px; line-height: 1.5; text-align: center;
        border-top: 1px solid var(--line); background: var(--card);
    }
    .ux-map-mobile-addr i { font-size: 16px; color: var(--primary); }
    .ux-map-picker { top: 8px; right: 8px; }
    .ux-map-picker summary { height: 30px; padding: 0 10px; gap: 5px; font-size: 12px; }
    .ux-map-picker summary i { font-size: 12px; }
    .ux-map-menu { top: 38px; }
}
/* 桌面端：右侧信息栏与左侧表单卡等高，地图填满剩余空间，底边与左侧卡片对齐 */
@media (min-width: 992px) {
    .ux-contact-grid { align-items: stretch; }
    .ux-contact-info-stack { height: 100%; min-height: 0; }
}
.ux-contact-form-card .contact-form { margin: 0; }
.ux-contact-form-card .form-group { margin-bottom: 16px; }
.ux-contact-form-card .contact-form input,
.ux-contact-form-card .contact-form textarea {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ux-contact-form-card .contact-form input:focus,
.ux-contact-form-card .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}
.ux-contact-form-card .form-alert {
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 16px;
}
.ux-contact-form-card .form-alert.error { background: rgba(239, 68, 68, .1); color: #ef4444; border-color: rgba(239, 68, 68, .2); }
.ux-contact-form-card .form-alert.info { background: var(--primary-soft); color: var(--primary); border-color: rgba(var(--primary-rgb), .25); }

/* --- 17.5 组件暗色适配 --- */
html[data-theme="dark"] .ux-modal-box,
html[data-theme="dark"] .ux-contact-form-card,
html[data-theme="dark"] .ux-contact-card,
html[data-theme="dark"] .ux-contact-map { background: var(--card); }
html[data-theme="dark"] [data-tip]::after,
html[data-theme="dark"] [data-tip]::before { background: #2c3850; }
@media (max-width: 991px) {
    .ux-contact-grid { grid-template-columns: 1fr; }
    .ux-contact-info-stack { flex-direction: row; flex-wrap: wrap; }
    .ux-contact-info-stack .ux-contact-card { flex: 1 1 240px; }
}
@media (max-width: 767px) {
    .contact-form-section { padding: 44px 0 56px; }
    .ux-contact-grid { gap: 18px; }
    .ux-contact-form-card { padding: 22px 18px 24px; }
    .ux-contact-info-stack { flex-direction: column; }
    /* 手机端改为纵向排列后，需清除平板端 flex 基准值，否则每张卡片会被固定拉高到 240px */
    .ux-contact-info-stack .ux-contact-card { flex: 0 0 auto; height: auto; }
    .ux-modal-grid { grid-template-columns: 1fr; gap: 10px; }
    .ux-modal-box { padding: 20px 18px 22px; border-radius: var(--radius); }
}

/* --- 18 购物车页：旧金色按钮现代化 + 深色适配 --- */
.cart-section .cart-options .cart-btn,
.cart-section .totals-table .proceed-btn {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    letter-spacing: .5px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cart-section .cart-options .cart-btn:hover,
.cart-section .totals-table .proceed-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), .3);
}
html[data-theme="dark"] .cart-section .totals-table { border-color: var(--line); }
html[data-theme="dark"] .cart-section .totals-table li { border-color: var(--line); }
html[data-theme="dark"] .cart-section .totals-table li:first-child { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .cart-section .totals-table li h3,
html[data-theme="dark"] .cart-section .totals-table .col { color: var(--ink); }
html[data-theme="dark"] .cart-section .totals-table li .col:last-child { color: var(--muted); }
html[data-theme="dark"] .cart-section .totals-table .total .price { color: var(--primary) !important; }

/* --- 18.1 购物车表格：统一为全站表格规范（覆盖旧主题 Rufina 表头与硬编码边框） --- */
.cart-section .table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cart-section .table-responsive::-webkit-scrollbar { height: 0; display: none; }
.cart-section .cart-table { border-collapse: separate; border-spacing: 0; }
.cart-section .cart-table thead tr th {
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2px;
    color: var(--muted);
    background: var(--bg);
    border: none;
    border-bottom: 1px solid var(--line);
    text-transform: none;
}
.cart-section .cart-table thead tr th .fa { font-size: 13px; }
.cart-section .cart-table thead tr th.prod-column { text-align: left; }
.cart-section .cart-table tbody tr td {
    padding: 16px;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    border: none;
    border-bottom: 1px solid var(--line);
    border-left: none;
    vertical-align: middle;
}
.cart-section .cart-table tbody tr:last-child td { border-bottom: none; }
.cart-section .cart-table tbody tr td:last-child { border-right: none; }
.cart-section .cart-table thead tr th:first-child { border-top-left-radius: var(--radius); }
.cart-section .cart-table thead tr th:last-child { border-top-right-radius: var(--radius); }
.cart-section .cart-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.cart-section .cart-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.cart-section .cart-table tbody tr .sub-total,
.cart-section .cart-table tbody tr td .prod-title {
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
}
.cart-section .cart-table tbody tr .prod-column .column-box h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
}

/* ==================== 20. 移动端原生 APP 设计系统 v2（≤767px） ==================== */
/* 设计基准（对标全球主流购物 APP 的原生质感）：
   ① 系统字体栈（SF Pro / MiSans / PingFang）② 发丝线扁平卡片（弱阴影）
   ③ 毛玻璃顶栏 + 毛玻璃底部 Tab 栏 ④ 详情页「内容浮层」压过主图（圆角大板）
   ⑤ 多彩金刚区 ⑥ 全控件胶囊化 ⑦ 大字号粗价格（tabular-nums） */

/* 桌面端隐藏的移动端专用组件 */
.ux-m-search { display: none; }
.m-filter-btn { display: none; }
.m-filter-sheet { display: none; }
.ux-kk-sec { display: none; }
.ux-catchips { display: none; }
.ux-kk-card { display: none; }
/* 评论标题右侧"查看全部›"仅移动端显示（电脑端tab内全量+分页）；限定桌面避免!important压掉移动端inline-flex */
@media only screen and (min-width: 768px) {
    .m-all-reviews-link { display: none !important; }
    /* 吸底栏分享按钮：仅移动端显示（桌面端分享在询盘/收藏/对比那一行） */
    .shop-single .info-fixed-bottom .m-share-btn { display: none !important; }
}
/* 吸底栏价格仅移动端显示（桌面端价格在商品信息区，避免重复） */
.shop-single .buybar-price { display: none; }
/* 移动端SKU弹层：桌面端强制隐藏（JS仅在≤767px初始化） */
.m-sku-sheet[hidden] { display: none; }

/* 产品卡间距（桌面端）：横向 20px、纵向 32px（原 30/50px 偏大，按约 1/3 收紧） */
@media only screen and (min-width: 768px) {
    .shop-section .shop-item[class*="col-"],
    .ux-home-sec .shop-item[class*="col-"],
    .sidebar-page-container .shop-item[class*="col-"],
    .related-products .shop-item {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 32px;
    }
    .shop-section .row,
    .ux-home-sec .row,
    .related-products .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    /* 过滤/排序工具条与产品卡的间距与卡片纵向间距（32px）保持一致 */
    .sidebar-page-container .shop-toolbar { margin-bottom: 32px; }
    /* 排序标签与下拉框统一 34px 高度并垂直居中，与右侧 Layout 图标行对齐 */
    .shop-toolbar .sort-box { align-items: center; }
    .shop-toolbar .sort-box label {
        margin: 0;
        height: 34px;
        line-height: 34px;
        display: inline-flex;
        align-items: center;
    }
    .shop-toolbar .sort-box select {
        height: 34px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 767px) {
    /* 页眉：取消页眉搜索图标与夜间模式按钮（胶囊搜索栏保留），显示收藏/对比入口；有内容时图标变红 */
    #uxSearchBtn { display: none !important; }
    #uxThemeBtn { display: none !important; }
    .ux-header .ux-act.ux-hide-sm { display: flex !important; }
    .ux-header .ux-act.icon-on i { color: #e11d48 !important; }
    /* ---- 1. 设计令牌：系统字体 + 浅灰画布 ---- */
    body {
        background: #f6f7f9;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
                     "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", Arial, sans-serif;
        font-size: 14px;
        line-height: 1.6;
        color: #101828;
        -webkit-font-smoothing: antialiased;
        -webkit-tap-highlight-color: transparent;
    }
    html[data-theme="dark"] body { background: #0b1120; color: #e2e8f0; }
    section { padding-top: 28px !important; padding-bottom: 28px !important; }

    /* ---- 1b. 全局防横向溢出（真机自适应关键） ----
       栅格列默认 min-width:auto，横滑内容（金刚区/服务/新闻等）会把列撑得比屏幕宽，
       真机表现为页面可左右拖动、看似"没有自适应"。允许列收缩 + 页面级裁剪：
       overflow-x: clip 不产生滚动容器，sticky 吸顶/吸底不受影响。 */
    .page-wrapper { overflow-x: clip; }
    /* 根治整页横移：栅格行负外边距把文档撑宽十几px（Firefox安卓可左右拖动，首字被切）
       行负边距与列内边距抵消为0，视觉不变但不再出血；html/body 双保险禁止平移 */
    .row { margin-left: 0 !important; margin-right: 0 !important; }
    .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
    html, body { overflow-x: clip; max-width: 100vw; margin: 0; padding: 0; }
    .row > [class*="col-"] { min-width: 0; }
    .sidebar-page-container .content-side { min-width: 0 !important; }

    .ux-container { padding: 0 14px; }
    .auto-container { padding-left: 14px !important; padding-right: 14px !important; }
    .price, .bp-now, .buybar-price, .shop-item .lower-content .price,
    .shop-single .product-details .basic-details .price { font-variant-numeric: tabular-nums; }

    /* ---- 2. App Bar：毛玻璃顶栏 + 素净图标 + 胶囊搜索 ---- */
    .ux-header {
        background: rgba(255, 255, 255, .9);
        -webkit-backdrop-filter: blur(16px) saturate(1.8);
        backdrop-filter: blur(16px) saturate(1.8);
        border-bottom: 1px solid rgba(16, 24, 40, .06);
        padding-top: env(safe-area-inset-top, 0);
    }
    html[data-theme="dark"] .ux-header { background: rgba(11, 17, 32, .9); border-bottom-color: rgba(255, 255, 255, .07); }
    .ux-topbar { display: none; }
    .ux-navbar-in { min-height: 52px; gap: 4px; border: none; box-shadow: none; }
    .ux-logo img { max-height: 30px; }
    .ux-actions { gap: 0; }
    .ux-act {
        width: 40px; height: 40px;
        background: transparent !important;
        border: none; box-shadow: none;
        font-size: 22px; color: #101828;
    }
    html[data-theme="dark"] .ux-act { color: #e2e8f0; }
    .ux-act:active { transform: scale(.9); }
    .ux-m-search { display: block; padding: 0 14px 10px; }
    .ux-m-search form {
        display: flex; align-items: center; gap: 8px;
        height: 40px; padding: 0 6px 0 14px; margin: 0;
        background: #f1f2f4; border-radius: 999px;
        border: 1px solid transparent;
    }
    .ux-m-search form:focus-within { background: #fff; border-color: rgba(var(--primary-rgb), .5); }
    .ux-m-search form > i { color: #98a2b3; font-size: 14px; flex-shrink: 0; }
    .ux-m-search input {
        flex: 1; min-width: 0; height: 100%; padding: 0;
        border: none; background: transparent;
        font-size: 14px; color: #101828;
    }
    .ux-m-search input:focus { outline: none; box-shadow: none; background: transparent; }
    .ux-m-search button {
        flex-shrink: 0; height: 30px; padding: 0 16px;
        border: none; border-radius: 999px;
        background: var(--primary); color: #fff;
        font-size: 13px; font-weight: 700;
    }
    html[data-theme="dark"] .ux-m-search form { background: #1b2334; }
    html[data-theme="dark"] .ux-m-search input { color: #e2e8f0; }

    /* ---- 3. 底部 Tab Bar：毛玻璃悬浮 ---- */
    .ux-tabbar {
        background: rgba(255, 255, 255, .88);
        -webkit-backdrop-filter: blur(18px) saturate(1.8);
        backdrop-filter: blur(18px) saturate(1.8);
        border-top: 1px solid rgba(16, 24, 40, .06);
        box-shadow: none;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    html[data-theme="dark"] .ux-tabbar { background: rgba(11, 17, 32, .88); border-top-color: rgba(255, 255, 255, .08); }
    .ux-tab { font-size: 11px; font-weight: 600; color: #98a2b3; gap: 2px; }
    .ux-tab i { font-size: 22px; }
    .ux-tab.active { color: var(--primary); font-weight: 700; }
    .ux-tab.active i { transform: translateY(-2px) scale(1.1); }
    .ux-tab.active::before { display: none; }
    .ux-tab.tapped i { transform: scale(.86); }
    /* 客服入口已改为右侧竖排标签（垂直居中），不再受底部 Tab 栏 / 吸底操作条影响 */

    /* ---- 4. 通用卡片：发丝线扁平（弱阴影 + 圆角跟随后台外观设置） ---- */
    .shop-item .inner-box,
    .news-block .inner-box,
    .news-block-three .inner-box,
    .service-block-three .inner-box,
    .sidebar .sidebar-widget,
    .blog-single .inner-box,
    .services-detail .inner-box,
    .checkout-card,
    .account-section .card,
    .ux-contact-card,
    .ux-contact-form-card,
    .ux-contact-map,
    .empty-tip {
        background: #fff;
        border-radius: var(--radius);
        border: 1px solid #eef0f3;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
        overflow: hidden;
    }
    html[data-theme="dark"] .shop-item .inner-box,
    html[data-theme="dark"] .news-block .inner-box,
    html[data-theme="dark"] .news-block-three .inner-box,
    html[data-theme="dark"] .service-block-three .inner-box,
    html[data-theme="dark"] .sidebar .sidebar-widget,
    html[data-theme="dark"] .blog-single .inner-box,
    html[data-theme="dark"] .services-detail .inner-box,
    html[data-theme="dark"] .checkout-card,
    html[data-theme="dark"] .account-section .card,
    html[data-theme="dark"] .ux-contact-card,
    html[data-theme="dark"] .ux-contact-form-card,
    html[data-theme="dark"] .ux-contact-map,
    html[data-theme="dark"] .empty-tip {
        background: #131a2c;
        border-color: #1e2836;
        box-shadow: none;
    }
    .shop-item .inner-box:active,
    .ux-kk-item:active { transform: scale(.98); transition: transform .15s ease; }

    /* ---- 5. 频道标题：大粗标题 + 胶囊「查看全部」 ---- */
    .ux-home-sec { padding: 26px 0 10px; }
    .ux-sec-head { margin-bottom: 12px; align-items: center; gap: 10px; }
    .ux-sec-title h2 {
        font-size: 22px; font-weight: 800; margin: 0;
        letter-spacing: -.02em; color: #101828;
    }
    .ux-sec-title p { display: none; }
    .ux-sec-more {
        display: inline-flex; align-items: center; gap: 4px;
        height: 30px; padding: 0 11px;
        border: 1px solid #eef0f3; border-radius: 999px;
        background: #fff;
        font-size: 12px; font-weight: 600; color: #667085;
    }
    .ux-sec-more i { font-size: 11px; }
    html[data-theme="dark"] .ux-sec-more { background: transparent; border-color: #1e2836; color: #94a3b8; }

    /* ---- 6. 首页 Banner：圆角卡 + 底部 scrim + 胶囊指示点 ---- */
    .main-slider { padding: 10px 0 0 !important; margin: 0 !important; }
    .main-slider .slider-box { padding: 0 !important; margin: 0 !important; }
    .main-slider .banner-carousel, .main-slider .owl-stage-outer, .main-slider .owl-item { padding: 0 !important; margin: 0 !important; }
    .main-slider .slide {
        padding: 0 !important;
        margin: 0 14px !important;   /* 与其他卡片的页面左右边距一致 */
        /* 高度自适应内容，再由脚本把所有 banner 统一为最高一张的高度（文案完整显示） */
        height: auto;
        display: flex;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }
    .main-slider .image-layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
    .main-slider .slide::after {
        content: ''; position: absolute;
        left: 0; right: 0; bottom: 0; height: 58%;
        background: linear-gradient(180deg, rgba(8, 12, 20, 0), rgba(8, 12, 20, .58));
        z-index: 1; pointer-events: none;
    }
    .main-slider .slide .auto-container {
        position: relative; z-index: 2;
        display: flex; align-items: flex-end;
        flex: 1 1 100%;            /* 撑满卡片，文案始终贴底 */
        min-height: 60vw;          /* 基础高度；内容更高时由 JS 统一抬高 */
        padding: 18px 18px 22px;
    }
    .main-slider .content h2 {
        font-size: 20px; line-height: 1.3; font-weight: 800;
        letter-spacing: -.02em; color: #fff;
        text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
        transform: none; margin-bottom: 6px;
    }
    .main-slider .content .text {
        font-size: 13px; color: rgba(255, 255, 255, .92);
        margin: 4px 0 12px; transform: none;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
    }
    .main-slider .content .theme-btn {
        transform: none; min-height: 36px;
        padding: 8px 18px; font-size: 13px; font-weight: 700;
        border-radius: 999px;
    }
    .main-slider .owl-dots { bottom: 12px; }
    .main-slider .owl-dot span, .main-slider .owl-dot { width: 6px; height: 6px; }
    .main-slider .owl-dot.active span, .main-slider .owl-dot.active { width: 16px !important; border-radius: 999px !important; }
    .main-slider .owl-next, .main-slider .owl-prev { display: none; }

    /* ---- 7. 金刚区：分类封面图横滑（购物 APP 式分类导航） ---- */
    .ux-kk-sec { display: block; padding: 12px 0 10px !important; }
    .ux-kingkong, .ux-kk-slider {
        display: flex; align-items: flex-start;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        background: #fff;
        border-radius: 14px;
        border: 1px solid #eef0f3;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
        padding: 14px 12px 12px;
        scrollbar-width: none;
    }
    .ux-kingkong::-webkit-scrollbar, .ux-kk-slider::-webkit-scrollbar { display: none; }
    .ux-kk-item {
        flex: 0 0 auto;
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        width: 68px;
        font-size: 12px; font-weight: 500; color: #475467;
        text-decoration: none;
        scroll-snap-align: start;
    }
    .ux-kk-item i {
        width: 54px; height: 54px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 17px;
        background: rgba(var(--primary-rgb), .09);
        color: var(--primary);
        font-size: 22px;
    }
    .ux-kk-item .ux-kk-cover {
        display: block; width: 54px; height: 54px;
        border-radius: 17px; overflow: hidden;
        background: #f2f4f7;
        border: 2px solid transparent;
        box-sizing: border-box;
    }
    .ux-kk-item .ux-kk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    /* 选中态（产品页金刚区） */
    .ux-kk-item.kk-active span { color: var(--primary); font-weight: 700; }
    .ux-kk-item.kk-active i { background: var(--primary); color: #fff; }
    .ux-kk-item.kk-active .ux-kk-cover { border-color: var(--primary); }
    /* 无封面时的多彩调色板（Temu/淘宝式） */
    .ux-kk-item:nth-child(8n+2) i { background: rgba(234, 88, 12, .1); color: #ea580c; }
    .ux-kk-item:nth-child(8n+3) i { background: rgba(22, 163, 74, .1); color: #16a34a; }
    .ux-kk-item:nth-child(8n+4) i { background: rgba(124, 58, 237, .1); color: #7c3aed; }
    .ux-kk-item:nth-child(8n+5) i { background: rgba(219, 39, 119, .1); color: #db2777; }
    .ux-kk-item:nth-child(8n+6) i { background: rgba(13, 148, 136, .1); color: #0d9488; }
    .ux-kk-item:nth-child(8n+7) i { background: rgba(79, 70, 229, .1); color: #4f46e5; }
    .ux-kk-item:nth-child(8n+8) i { background: rgba(202, 138, 4, .12); color: #ca8a04; }
    .ux-kk-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html[data-theme="dark"] .ux-kingkong, html[data-theme="dark"] .ux-kk-slider { background: #131a2c; border-color: #1e2836; box-shadow: none; }
    html[data-theme="dark"] .ux-kk-item { color: #98a2b3; }

    /* ---- 8. 服务频道：横滑卡 ---- */
    .ux-svc-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 2px 14px 10px;
        margin: 0 -14px;
        scrollbar-width: none;
    }
    .ux-svc-grid::-webkit-scrollbar { display: none; }
    .ux-svc-card { flex: 0 0 74%; scroll-snap-align: start; margin-bottom: 0; }
    .ux-svc-img { aspect-ratio: 16 / 9; }
    .ux-svc-body { padding: 12px 14px 14px; }
    .ux-svc-body h3 { font-size: 14px; }
    .ux-svc-body p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ---- 9. 新闻：横滑卡 ---- */
    .ux-home-sec .ux-news-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 2px 14px 10px;
        margin: 0 -14px !important;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .ux-home-sec .ux-news-row::-webkit-scrollbar { display: none; }
    .ux-home-sec .ux-news-row .news-block {
        flex: 0 0 80%; scroll-snap-align: start;
        margin-bottom: 0; padding: 0 !important;
        max-width: 80%; width: 80%;
    }
    .news-block .lower-content, .news-block-three .lower-content { padding: 10px 12px 12px; }
    .news-block .lower-content h3, .news-block-three .lower-content h3 { font-size: 13px; line-height: 1.45; }
    .blog-grid { gap: 10px; }

    /* ---- 10. Trust Bar：单行滑动小芯片 ---- */
    .ux-trust { padding: 12px 0; border-bottom: none; background: transparent; }
    .ux-trust-grid {
        display: flex; gap: 8px;
        overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 0 6px;
    }
    .ux-trust-grid::-webkit-scrollbar { display: none; }
    .ux-trust-item {
        flex: 0 0 auto; scroll-snap-align: start;
        display: flex; align-items: center; gap: 8px;
        background: #fff;
        border: 1px solid #eef0f3;
        border-radius: 999px;
        padding: 6px 14px 6px 6px;
        box-shadow: none;
    }
    .ux-trust-item > i {
        width: 30px; height: 30px; font-size: 13px;
        border-radius: 999px; flex-shrink: 0;
    }
    .ux-trust-txt h4 { font-size: 12px; font-weight: 700; }
    .ux-trust-txt p { display: none; }
    html[data-theme="dark"] .ux-trust-item { background: #131a2c; border-color: #1e2836; }

    /* ---- 11. 按钮体系：12px 圆角实心 ---- */
    .theme-btn { min-height: 44px; padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 700; }
    .theme-btn.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
    .contact-form .theme-btn,
    .ux-modal-form .theme-btn,
    .checkout-form .theme-btn,
    .ux-contact-form-card .theme-btn { width: 100%; }

    /* ---- 12. 表单：浅灰填充输入框 ---- */
    .form-group input, .form-group select, .form-group textarea,
    .ux-modal-form input:not([type="hidden"]):not(.hp),
    .ux-modal-form textarea,
    .contact-form input, .contact-form textarea, .contact-form select {
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 16px;
        background: #f4f5f7;
        border: 1.5px solid transparent;
    }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus,
    .ux-modal-form input:focus, .ux-modal-form textarea:focus,
    .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
        background: #fff;
        border-color: var(--primary);
        box-shadow: none;
    }
    html[data-theme="dark"] .form-group input, html[data-theme="dark"] .form-group select,
    html[data-theme="dark"] .form-group textarea,
    html[data-theme="dark"] .ux-modal-form input:not([type="hidden"]):not(.hp),
    html[data-theme="dark"] .ux-modal-form textarea,
    html[data-theme="dark"] .contact-form input, html[data-theme="dark"] .contact-form textarea,
    html[data-theme="dark"] .contact-form select { background: #0b1120; color: #d6dfee; }

    /* ---- 13. 内页顶栏：APP 导航条（白底大标题） ---- */
    /* 注意：基础区(L660-670)的深色横幅规则带 !important，此处需同级 !important 才能在移动端胜出 */
    .page-title { padding: 14px 0 12px !important; background: #fff !important; background-image: none !important; border-bottom: 1px solid #eef0f3; }
    .page-title::before { display: none !important; }
    .page-title::after { display: none !important; }
    .page-title h2 { font-size: 18px !important; font-weight: 800 !important; line-height: 1.3 !important; letter-spacing: -.02em; margin: 0 !important; color: #101828 !important; text-transform: none !important; }
    .page-title .auto-container { padding-top: 0 !important; padding-bottom: 0 !important; display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; }
    /* 移动端面包屑：放在产品中心标题后面，箭头分隔 */
    .page-title .page-breadcrumb {
        display: flex !important; flex-wrap: wrap; align-items: center;
        gap: 0;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        font-size: 12px !important;
        line-height: 1.4;
    }
    .page-title .page-breadcrumb li {
        color: #98a2b3 !important;
        display: inline-flex; align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }
    .page-title .page-breadcrumb li::after { display: none !important; }
    .page-title .page-breadcrumb li a { color: #667085 !important; }
    .page-title .page-breadcrumb li a:hover { color: var(--primary) !important; }
    .page-title .page-breadcrumb li:last-child { color: #101828 !important; font-weight: 600; }
    .page-title .page-breadcrumb li + li::before {
        content: '';
        flex: 0 0 auto;
        width: 5px;
        height: 5px;
        margin: 0 6px;
        border-right: 1.5px solid #b9c0cc;
        border-bottom: 1.5px solid #b9c0cc;
        transform: rotate(-45deg);
    }
    html[data-theme="dark"] .page-title .page-breadcrumb li { color: #667085; }
    html[data-theme="dark"] .page-title .page-breadcrumb li a { color: #98a2b3; }
    html[data-theme="dark"] .page-title .page-breadcrumb li:last-child { color: #e2e8f0; }
    html[data-theme="dark"] .page-title .page-breadcrumb li + li::before { color: #344054; }
    /* 面包屑与内容区之间留出间隙 */
    .page-title + * { padding-top: 24px !important; }
    html[data-theme="dark"] .page-title { background: #0f1524; border-bottom-color: #1e2836; }
    html[data-theme="dark"] .page-title h2 { color: #e2e8f0; }

    /* ---- 14. 产品双列卡（首页/推荐位） ---- */
    .shop-section .shop-item.col-lg-4,
    .shop-section .shop-item.col-lg-3,
    .shop-section .shop-item.col-lg-6,
    .shop-section .shop-item.col-md-6,
    .related-products .shop-item,
    .shop-section .shop-item[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        /* 首页/推荐位双列卡：卡片间距 8px（原 12px 偏大，按 2/3 收紧） */
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 8px;
    }
    .shop-section .row, .ux-home-sec .row, .related-products .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }
    .ux-home-sec .shop-item[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 8px;
    }
    .shop-section .shop-item .inner-box { margin-bottom: 0; }
    .shop-item .inner-box .image { aspect-ratio: 1 / 1; overflow: hidden; }
    /* !important：img_style() 输出内联 style（aspect-ratio+height:auto）会盖过类规则，导致图片在方框内上下留白；强制平铺裁切 */
    .shop-item .inner-box .image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .shop-item .lower-content { padding: 6px 7px 7px; }
    .shop-item .lower-content h3 {
        font-size: 13px; line-height: 1.45; font-weight: 500;
        height: 2.9em; overflow: hidden;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        margin-bottom: 5px; color: #101828;
    }
    .shop-item .lower-content .price { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
    .shop-item .lower-content .price .special-price { font-size: 18px; }
    .shop-item .lower-content .price .old-price { font-size: 11px; font-weight: 400; color: #98a2b3; text-decoration: line-through; margin-left: 4px; }
    .shop-item .lower-content .tax-info { font-size: 11px; color: #98a2b3; margin-top: 2px; }
    /* 移动端：取消产品图片上的悬浮图标按钮（询盘/加购/收藏/对比等"图上图"）；
       点击产品图片/名称/价格均进入详情页，桌面端保持原样不受影响 */
    .shop-item .inner-box .overlay-box { display: none !important; }
    .shop-item .lower-content .price .price-link {
        pointer-events: auto;
        display: block;
        color: inherit;
        text-decoration: none;
    }

        /* ==================== 15. 产品列表页：分类横滑条 + 双列网格 ==================== */
    /* 移动端布局：顶部封面图金刚区 + 左栏分类竖栏（京东式）+ 右侧两列商品卡；
       搜索/属性筛选在工具栏弹层中，桌面端不受影响 */

    .sidebar-page-container > .auto-container > .row { display: block; }
    .sidebar-page-container .sidebar-side { display: none !important; }
    .sidebar-page-container .content-side {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
    }

    /* ---- 左栏分类竖栏已移除（移动端分类走金刚区/抽屉） ---- */

    /* ---- 顶部封面图金刚区（产品页内嵌版） ---- */
    .ux-kk-card {
        display: block;
        background: #fff;
        border-radius: 14px;
        border: 1px solid #eef0f3;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
        padding: 14px 12px 10px;
        margin: 0 0 12px;
    }
    .ux-catchips.ux-kk-slider,
    .ux-kk-card .ux-kingkong {
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    /* 横滑分页圆点指示器 */
    .ux-kk-dots {
        display: flex; justify-content: center; align-items: center;
        gap: 6px;
        margin-top: 8px;
        min-height: 6px;
    }
    .ux-kk-dots .ux-dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        background: #d0d5dd;
        transition: background .2s ease, width .2s ease;
    }
    .ux-kk-dots .ux-dot.on {
        background: var(--primary);
        width: 16px;
        border-radius: 3px;
    }
    html[data-theme="dark"] .ux-kk-dots .ux-dot { background: #344054; }
    html[data-theme="dark"] .ux-kk-dots .ux-dot.on { background: var(--primary); }
    html[data-theme="dark"] .ux-kk-card { background: #131a2c; border-color: #1e2836; box-shadow: none; }

    /* ---- 工具栏：透明底 + 胶囊排序/筛选控件 ---- */
    .shop-toolbar {
        display: flex; align-items: center; justify-content: space-between;
        gap: 8px;
        background: transparent; border: none; box-shadow: none;
        border-radius: 0; padding: 0; margin: 0 0 10px;
    }
    .shop-toolbar .sort-box { flex: 1; min-width: 0; }
    .shop-toolbar .sort-box label, .shop-toolbar .layout-box .layout-label { display: none; }
    .shop-toolbar .layout-box { display: none; }
    .shop-toolbar .sort-box select {
        width: 100%; height: 32px; padding: 0 26px 0 12px;
        border-radius: 999px;
        border: 1px solid #eef0f3;
        background: #fff;
        font-size: 12px; font-weight: 600; color: #344054;
        appearance: none; -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2398a2b3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 11px center;
    }
    .m-filter-btn {
        display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
        height: 32px; padding: 0 13px;
        border: 1px solid #eef0f3; border-radius: 999px;
        background: #fff; color: #344054;
        font-size: 12px; font-weight: 600;
    }
    .m-filter-btn i { font-size: 12px; }
    html[data-theme="dark"] .m-filter-btn { background: transparent; border-color: #1e2836; color: #d6dfee; }

    /* ---- 双列商品网格（与首页一致的一行两列） ---- */
    .sidebar-page-container .shop-item[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 8px;
    }
    .sidebar-page-container .content-side > .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

/* ---- 16. 筛选抽屉（产品页，手机端从左侧滑入/滑出） ---- */
    .m-filter-sheet {
        display: block;
        position: fixed;
        left: 0; top: 0; bottom: 0;
        width: 86%; max-width: 340px;
        z-index: 1200;
        background: #fff;
        border-radius: 0 16px 16px 0;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform .32s cubic-bezier(.32,.72,0,1), visibility .32s;
        box-shadow: 6px 0 34px rgba(16, 24, 40, .18);
    }
    .m-filter-sheet::before { display: none; }
    .m-filter-sheet.open { transform: translateX(0); visibility: visible; }
    .m-filter-sheet .m-sheet-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 0 12px;
        border-bottom: 1px solid #f2f4f7;
        margin-bottom: 12px;
        position: sticky; top: 0; background: #fff; z-index: 1;
    }
    .m-filter-sheet .m-sheet-head h3 { font-size: 16px; font-weight: 700; margin: 0; color: #101828; }
    .m-filter-sheet .m-sheet-close {
        width: 32px; height: 32px; border-radius: 50%;
        background: #f2f4f7; border: none; color: #344054;
        font-size: 16px; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .m-filter-sheet .sidebar-widget {
        display: block !important;
        background: transparent;
        border-radius: 0; box-shadow: none; border: none;
        padding: 0 0 14px;
        margin: 0 0 14px;
        border-bottom: 1px solid #f2f4f7;
    }
    .m-filter-sheet .sidebar-widget:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .m-filter-sheet .sidebar-title { display: block; }
    .m-filter-sheet .sidebar-title h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
    html[data-theme="dark"] .m-filter-sheet { background: #131a2c; }
    html[data-theme="dark"] .m-filter-sheet .sidebar-widget { border-bottom-color: #1e2836; }
    html[data-theme="dark"] .m-filter-sheet .m-sheet-head { background: #131a2c; border-bottom-color: #1e2836; }
    html[data-theme="dark"] .m-filter-sheet .m-sheet-head h3 { color: #eef2f8; }
    html[data-theme="dark"] .m-filter-sheet .m-sheet-close { background: #1e2836; color: #d6dfee; }
    .ux-sheet-mask {
        position: fixed; inset: 0; z-index: 1190;
        background: rgba(16, 24, 40, .5);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0; visibility: hidden;
        transition: opacity .3s ease, visibility .3s;
    }
    .ux-sheet-mask.show { opacity: 1; visibility: visible; }
    /* 新闻页内联侧栏（≤767px 非弹层场景）兜底 */
    .sidebar .sidebar-widget { margin-bottom: 10px; padding: 14px; }
    .sidebar .sidebar-title h2 { font-size: 16px; margin-bottom: 8px; }

    /* ==================== 17. 详情页：内容浮层压主图 ==================== */
    .shop-single-section { padding-top: 0 !important; padding-bottom: 0 !important; } /* 旧136px清栏padding已废弃：吸底栏为fixed不占流，其原来造成的tabs与推荐产品间大空洞由JS设置的页面级padding接管 */
    .shop-single { margin-bottom: 0 !important; } /* shop.css 的30px下边距同样加大tabs与推荐产品间距，一并归零 */
    .shop-single-section .auto-container { padding: 0 !important; max-width: 100%; }
    .product-details .basic-details { padding: 0; }
    .product-details .image-column { width: 100%; position: relative; z-index: 1; }
    .product-details .image-box { border-radius: 0; overflow: hidden; }
    .product-details .image-box img { border-radius: 0; aspect-ratio: 1 / 1; object-fit: cover; }
    .detail-gallery-wrap { flex-direction: column-reverse; }
    .detail-thumbs-col { width: 100%; flex-direction: row; overflow-x: auto; padding: 8px 12px; background: #fff; }
    .detail-thumbs-col .product-thumbs { display: flex; gap: 6px; flex-wrap: nowrap; }
    .detail-thumbs-col .product-thumbs li { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
    .detail-thumbs-col .thumbs-nav { display: none; }
    .detail-breadcrumb { display: none !important; }

    /* 名称/价格卡片：正常排在主图下方（不再叠压图片） */
    .shop-single .info-column .inner-column {
        position: relative;
        z-index: 3;
        margin: 8px 8px 0;
        padding: 14px 15px 8px;
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eef0f3;
        box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
    }
    html[data-theme="dark"] .shop-single .info-column .inner-column { background: #131a2c; border-color: #1e2836; box-shadow: none; }
    /* 名称/价格卡（JS移入主图下方的新容器）：满屏通栏，无圆角无外间隙 */
    .m-title-holder { position: relative; z-index: 3; margin: 0; padding: 12px 15px 8px; background: #fff; border-radius: 0; border: none; box-shadow: none; }
    /* 名称/价格移动端已并入通栏标题区，取消桌面端的卡片外框（白底/圆角/描边/投影） */
    .m-title-holder .info-fixed-top {
        padding: 0; margin: 0;
        background: none; border: none; border-radius: 0; box-shadow: none;
    }
    html[data-theme="dark"] .m-title-holder { background: #131a2c; border-color: #1e2836; box-shadow: none; }
    /* 原信息卡内容移空后的占位清除（SKU弹层仍在其中） */
    .shop-single .info-column .inner-column.m-empty { margin: 0; padding: 0; border: none; background: transparent; box-shadow: none; }
    /* 空壳外层容器同样归零（内容已全部移入弹层/主图下方，防止主题padding撑出大片空白） */
    .shop-single .info-column { padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
    .shop-single .info-column:empty { display: none; }
    /* tabs 内容防超边：富文本表格/图片/长词全部约束在视口内 */
    .shop-single .product-info-tabs { overflow-x: clip; }
    .shop-single .tab-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .shop-single .tab-section table { display: block; width: max-content; max-width: 100%; overflow-x: auto; }
    /* 参数信息表自适应：满宽、列宽自动分配、单元格换行（后台表格常带固定内联宽，需 !important 压过） */
    .shop-single #prod-spec table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto;
        border-collapse: collapse;
    }
    .shop-single #prod-spec td, .shop-single #prod-spec th {
        white-space: normal !important;
        word-break: break-word;
        padding: 9px 10px !important;
        border: 1px solid #eef0f3;
        font-size: 13px;
        vertical-align: top;
    }
    .shop-single #prod-spec th { background: #f8fafc; font-weight: 400; color: #101828; }
    .shop-single #prod-spec tr:nth-child(even) td { background: #fafbfc; }
    html[data-theme="dark"] .shop-single #prod-spec td, html[data-theme="dark"] .shop-single #prod-spec th { border-color: var(--line); }
    html[data-theme="dark"] .shop-single #prod-spec th { background: var(--card); color: var(--ink); }
    html[data-theme="dark"] .shop-single #prod-spec tr:nth-child(even) td { background: var(--bg); }
    .shop-single .tab-section img, .shop-single .tab-section video, .shop-single .tab-section iframe { max-width: 100%; height: auto; }
    .shop-single .tab-section pre { white-space: pre-wrap; word-break: break-word; }
    .shop-single .tab-section p, .shop-single .tab-section li, .shop-single .tab-section td, .shop-single .tab-section th,
    .shop-single .tab-section h1, .shop-single .tab-section h2, .shop-single .tab-section h3, .shop-single .tab-section h4,
    .shop-single .tab-section dt, .shop-single .tab-section dd { overflow-wrap: anywhere; word-break: break-word; }
    .shop-single .product-details .basic-details .details-header h2 { font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; color: #101828; }
    html[data-theme="dark"] .shop-single .product-details .basic-details .details-header h2 { color: #e2e8f0; }
    .shop-single .info-fixed-top h4 { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 0 0 8px; color: #101828; }
    html[data-theme="dark"] .shop-single .info-fixed-top h4 { color: #e2e8f0; }
    .shop-single .product-details .basic-details .price { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
    .shop-single .product-details .basic-details .price .special-price { font-size: 28px; }
    .shop-single .product-details .basic-details .price .old-price { font-size: 13px; font-weight: 400; color: #98a2b3; text-decoration: line-through; margin-left: 6px; }
    .shop-single .product-details .basic-details .price .tax-info { font-size: 12px; color: #98a2b3; font-weight: 400; }
    .shop-single .tier-prices { background: #f7f8fa; border: none; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
    html[data-theme="dark"] .shop-single .tier-prices { background: #0f1524; }
    .shop-single .detail-ptype-line, .shop-single .detail-stock-line { font-size: 12px; }
    .shop-single .sku-subtotal { border-radius: 12px; }

    /* 分段 Tab：毛玻璃吸顶（山姆式） */
    .shop-single .product-info-tabs { margin-top: 12px; }
    .shop-single .detail-tab-nav {
        position: sticky;
        top: 104px;
        z-index: 40;
        display: flex; flex-wrap: nowrap;
        overflow-x: auto; gap: 0;
        padding: 0; margin: 0 0 12px;
        background: rgba(255, 255, 255, .94) !important;
        -webkit-backdrop-filter: blur(14px) saturate(1.8);
        backdrop-filter: blur(14px) saturate(1.8);
        border: none !important;
        border-radius: 0;
        box-shadow: none !important;
        scrollbar-width: none;
    }
    html[data-theme="dark"] .shop-single .detail-tab-nav { background: rgba(19, 26, 44, .94) !important; }
    .shop-single .detail-tab-nav::-webkit-scrollbar { display: none; }
    .shop-single .detail-tab-nav::before { display: none !important; }
    .shop-single .detail-tab-link {
        flex: 1 0 auto; text-align: center;
        padding: 13px 14px;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        font-size: 13px; font-weight: 500;
        color: #667085 !important;
        position: relative;
    }
    .shop-single .detail-tab-link.active { color: var(--primary) !important; font-weight: 700; }
    .shop-single .detail-tab-link.active::after {
        content: ''; position: absolute;
        left: 50%; transform: translateX(-50%);
        bottom: 7px; width: 20px; height: 3px;
        border-radius: 2px; background: var(--primary);
    }
    html[data-theme="dark"] .shop-single .detail-tab-link { color: #aab4c4 !important; }
    html[data-theme="dark"] .shop-single .detail-tab-link.active { color: var(--primary) !important; }
    html[data-theme="dark"] .shop-single .tab-section { background: transparent; }
    html[data-theme="dark"] .shop-single .product-info-tabs { background: #0d1322; }
    .shop-single .tab-section {
        background: transparent;
        border: none; border-radius: 0;
        margin: 0;
        /* !important：压过 L1942 的 section 全局 28px 上下留白，否则每个tab内容间像隔了一个表头 */
        padding: 8px 16px 12px !important;
        box-shadow: none;
    }
    .shop-single .tab-section-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
    /* 套餐卡：压缩按钮下留白（shop.css 默认 padding-bottom 16px + margin-bottom 18px 在手机端过于空旷） */
    .shop-single .bundle-card { padding: 12px 14px; margin-bottom: 8px; }
    .shop-single .bundle-card-foot { margin-top: 10px; padding-top: 10px; }
    /* 反馈占位：site.css 给 .modal-feedback 预留 min-height 18px + mt 8px，空态也在按钮下撑出26px空白；手机端改空态归零、有提示时自然撑开 */
    .shop-single .bundle-card .bundle-fb { margin: 4px 0 0; min-height: 0; }

    /* ---- 18. 吸底购买栏：单行式（图标列 | 数量+按钮），功能延续电脑端、不重复价格 ---- */
    .shop-single .info-fixed-bottom {
        position: fixed;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        left: 0; right: 0;
        z-index: 1050;
        background: rgba(255, 255, 255, .94);
        -webkit-backdrop-filter: blur(16px) saturate(1.8);
        backdrop-filter: blur(16px) saturate(1.8);
        border-top: 1px solid rgba(16, 24, 40, .06);
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: none;
    }
    html[data-theme="dark"] .shop-single .info-fixed-bottom { background: rgba(11, 17, 32, .94); border-top-color: rgba(255, 255, 255, .08); }
    /* 左：询盘/收藏/对比图标列（按需求隐藏，吸底栏只保留购物功能） */
    .shop-single .info-fixed-bottom .detail-action-row { display: none; }
    /* 数量步进器（已随SKU弹层整体移入弹层底部栏） */
    .m-sku-foot .buy-box { display: flex; gap: 8px; align-items: center; width: auto; }
    .m-sku-foot .buy-box .qty-box { display: flex; align-items: center; height: 34px; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
    html[data-theme="dark"] .m-sku-foot .buy-box .qty-box { border-color: rgba(255, 255, 255, .18); background: transparent; box-shadow: none; }
    .m-sku-foot .buy-box .qty-step { width: 30px; height: 32px; border: none; background: transparent; font-size: 16px; color: #475467; padding: 0; line-height: 1; }
    .m-sku-foot .buy-box .qty-step:active { color: var(--primary); }
    .m-sku-foot .buy-box #buyQty { width: 28px; height: 30px; text-align: center; border: none; background: transparent; font-size: 14px; font-weight: 700; color: #101828; padding: 0; }
    /* SKU弹层底部栏双按钮：回归模板按钮体系（主色实心=加购，白底描边=询盘） */
    .shop-single .m-bar-btns { flex: 1; display: flex; gap: 8px; min-width: 0; }
    .shop-single .m-sku-open-btn { flex: 1.2; min-width: 0; min-height: 48px; border-radius: 999px; box-shadow: none; }
    .shop-single .m-sku-open-btn .txt { font-size: 16px !important; font-weight: 700; gap: 6px; color: #fff !important; }
    .shop-single .m-sku-open-btn .txt i { font-size: 16px; }
    /* 吸底栏只留加购入口：隐藏立即询盘（询盘走内容区按钮），加购按钮占满整行 */
    .shop-single .m-btn-inq { display: none !important; }
    .shop-single .m-btn-cart { flex: 1 1 100%; width: 100%; }
    .shop-single .m-btn-inq { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; background: #fff; border: 1.5px solid var(--primary); color: var(--primary); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: transform .15s; }
    .shop-single .m-btn-inq:active { transform: scale(.97); }
    .shop-single .m-btn-inq .txt { display: inline-flex; align-items: center; gap: 5px; }
    .shop-single .m-btn-inq .txt i { font-size: 13px; }
    /* 淘宝式价格区：橙色大价格 + 粗标题 */
    .shop-single .info-fixed-top .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 28px !important; font-weight: 800; color: var(--primary) !important; line-height: 1.1; }
    .shop-single .info-fixed-top .price .special-price { font-size: 28px !important; }
    .shop-single .info-fixed-top .price .old-price { font-size: 12px !important; font-weight: 400; color: #98a2b3 !important; text-decoration: line-through; }
    .shop-single .info-fixed-top .price .tax-info { flex-basis: 100%; font-size: 11px !important; font-weight: 500; color: #98a2b3 !important; }
    .shop-single .info-fixed-top h4 { font-size: 16px !important; font-weight: 800 !important; line-height: 1.45; color: #101828 !important; margin: 2px 0 0; letter-spacing: -.01em; }
    /* 阶梯价格 → 胶囊信息条 */
    .shop-single .tier-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .shop-single .tier-prices .tier-title { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: #98a2b3; margin: 0; }
    .shop-single .tier-prices ul { display: flex; gap: 8px; overflow-x: auto; margin: 0; padding: 0; list-style: none; }
    .shop-single .tier-prices li { flex: 0 0 auto; margin: 0; padding: 5px 10px; border: 1px solid #f2f4f7; border-radius: 999px; background: #fafbfc; font-size: 11px; color: #475467; white-space: nowrap; }
    .shop-single .tier-prices li strong { color: var(--primary); }
    .shop-single .tier-prices li.on { border-color: var(--primary); background: var(--primary); color: #fff; }
    .shop-single .tier-prices li.on strong { color: #fff; }
    .shop-single .tier-prices .tier-range-wrap { flex: 1 1 100%; }
    .shop-single .detail-ptype-line, .shop-single .detail-stock-line { font-size: 12px; color: #667085; }
    .m-sku-sheet { position: fixed; inset: 0; z-index: 1200; }
    /* 弹层打开期间：整个产品区抬到Tab栏(1100)之上，避免弹层被Tab栏盖住 */
    body.m-sku-open .shop-single-section { position: relative; z-index: 1150; }
    .m-sku-sheet:not([hidden]) { display: block; }
    /* ---- 评论弹层：与SKU弹层同模式（底部滑入/遮罩/1200层级），tab内默认只显示前2条 ---- */
    .m-review-sheet { position: fixed; inset: 0; z-index: 1200; }
    .m-review-sheet[hidden] { display: none; }
    body.m-review-open .shop-single-section { position: relative; z-index: 1150; }
    body.m-review-open { overflow: hidden; }
    .m-review-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .5); opacity: 0; transition: opacity .25s; }
    .m-review-sheet.open .m-review-mask { opacity: 1; }
    .m-review-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.32, .72, .24, 1); }
    html[data-theme="dark"] .m-review-box { background: #111a2c; }
    .m-review-sheet.open .m-review-box { transform: none; }
    .m-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid rgba(17, 24, 39, .08); flex: 0 0 auto; }
    html[data-theme="dark"] .m-review-head { border-bottom-color: rgba(255, 255, 255, .08); }
    .m-review-title { font-size: 16px; font-weight: 800; }
    .m-review-close { width: 30px; height: 30px; border: none; background: #f2f4f7; border-radius: 50%; color: #475467; font-size: 13px; display: flex; align-items: center; justify-content: center; }
    html[data-theme="dark"] .m-review-close { background: rgba(255, 255, 255, .1); color: #cbd5e1; }
    .m-review-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 20px; }
    /* 零评论空态（只在滑出窗口内显示） */
    .m-review-empty { padding: 46px 0 54px; text-align: center; color: #98a2b3; font-size: 13px; }
    .m-review-body .review-summary { margin-bottom: 12px !important; }
    .m-review-body .review-list { margin-bottom: 8px !important; }
    /* 评分汇总：手机端缩小分值/星星（内联36px/20px过大），收紧与下方评论的间距 */
    .shop-single .review-summary, .m-review-body .review-summary { margin-bottom: 10px !important; padding: 10px 12px !important; gap: 12px !important; }
    .shop-single .review-avg, .m-review-body .review-avg { font-size: 22px !important; }
    .shop-single .review-stars, .m-review-body .review-stars { font-size: 13px !important; letter-spacing: 1px !important; }
    /* tab内：评论只显示前2条，分页隐藏（看全部走弹层） */
    .shop-single #prod-reviews .review-item:nth-child(n+3) { display: none !important; }
    .shop-single #prod-reviews .pagination { display: none !important; }
    /* 评论条目：内联上下14px留白过大，手机端收紧 */
    .shop-single #prod-reviews .review-item, .m-review-body .review-item { padding: 7px 0 !important; }
    /* “查看全部”按钮：接在“共X条评论”文字后 */
    .m-all-reviews-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 12px; font-size: 12px; font-weight: 700; color: #2563eb; background: rgba(37, 99, 235, .08); border: none; border-radius: 999px; vertical-align: middle; -webkit-tap-highlight-color: transparent; }
    html[data-theme="dark"] .m-all-reviews-btn { color: #93c5fd; background: rgba(147, 197, 253, .12); }
    /* 多图滑动图集：scroll-snap 横滑 + 1/N 指示器 */
    .m-gal-box { position: relative; }
    .m-gal-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .m-gal-strip::-webkit-scrollbar { display: none; }
    .m-gal-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 1 / 1; background: #fff; }
    .m-gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .m-gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 24, 39, .55); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
    .m-sku-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .5); opacity: 0; transition: opacity .25s; }
    .m-sku-sheet.open .m-sku-mask { opacity: 1; }
    .m-sku-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.32, .72, .24, 1); }
    html[data-theme="dark"] .m-sku-box { background: #111a2c; }
    .m-sku-sheet.open .m-sku-box { transform: none; }
    .m-sku-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
    .m-sku-price { display: flex; align-items: baseline; gap: 7px; min-width: 0; color: var(--primary); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
    .m-sku-price .m-sku-old { font-size: 11px; font-weight: 400; color: #98a2b3; text-decoration: line-through; }
    .m-sku-close { flex: 0 0 auto; width: 30px; height: 30px; border: none; background: #f2f4f7; border-radius: 50%; color: #667085; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
    html[data-theme="dark"] .m-sku-close { background: rgba(255, 255, 255, .08); color: #cbd5e1; }
    .m-sku-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 16px 10px; }
    .m-sku-foot { flex: 0 0 auto; display: flex; align-items: center; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(16, 24, 40, .06); background: #fff; }
    html[data-theme="dark"] .m-sku-foot { background: #111a2c; border-top-color: rgba(255, 255, 255, .08); }
    .m-sku-foot .detail-buy-sticky { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0; }
    .m-sku-foot .buy-box { flex: 1; justify-content: space-between; }
    .m-sku-foot #addToCartBtn { flex: 0 0 auto; width: auto; min-width: 128px; height: 44px; border-radius: 999px; box-shadow: none; padding: 0 18px; }
    .m-sku-foot #addToCartBtn .txt { font-size: 14px !important; gap: 6px; }
    .m-sku-foot #addToCartBtn .txt i { font-size: 14px; }
    .m-sku-foot .detail-buy-sticky .modal-feedback { position: static; transform: none; flex-basis: 100%; margin: 0; text-align: center; font-size: 12px; white-space: normal; }
    .m-sku-foot .detail-buy-sticky .min-order-tip { flex-basis: 100%; margin: 0; justify-content: center; font-size: 12px; }
    /* 实时小计：已随购买区移入弹层，独占一行显示在数量+加购按钮上方 */
    .m-sku-foot .sku-subtotal { flex: 1 1 100%; margin: 0 0 2px; padding: 6px 10px; gap: 4px 8px; }
    .m-sku-foot .sku-subtotal b { font-size: 16px; }
    /* 产品概述折叠块：手机端不展示（详情内容在下方 Tab 中） */
    .shop-single .pd-summary { display: none !important; }
    /* 主图右上角悬浮操作钮（询盘/收藏/对比/分享，JS从底部栏移入） */
    .detail-gallery-wrap { position: relative; }
    .m-gal-actions { position: absolute; top: 12px; right: 12px; z-index: 6; display: flex; align-items: center; gap: 8px; }
    .m-gal-actions .detail-action-btn {
        width: 34px; height: 34px; min-width: 0; padding: 0;
        flex-direction: row; gap: 0;
        border-radius: 50%;
        background: transparent; border: none;
        color: #fff; font-size: 18px;
        box-shadow: none;
        text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
        -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .m-gal-actions .detail-action-btn i { text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
    /* 图标元素级透明：压过图标列的38px浅灰圆底 */
    .m-gal-actions .detail-action-btn i {
        width: auto; height: auto; min-width: 0;
        background: transparent !important;
        box-shadow: none !important;
    }
    .m-gal-actions .detail-action-btn:active { transform: scale(.88); opacity: .8; }
    /* 消除点击出现的蓝色方块（浏览器焦点环/点按高亮） */
    .m-gal-actions .detail-action-btn,
    .m-gal-actions .sharethis-share-buttons span {
        -webkit-tap-highlight-color: transparent;
        outline: none !important;
    }
    .m-gal-actions .detail-action-btn:focus,
    .m-gal-actions .detail-action-btn:focus-visible,
    .m-gal-actions .detail-action-btn.active {
        outline: none !important; box-shadow: none !important; background: transparent !important;
    }
    .m-gal-actions .detail-action-btn::after { display: none !important; }
    .m-gal-actions .detail-action-btn span { display: none !important; }
    /* 只保留收藏+分享（淘宝式）：询盘走底部按钮，对比移动端弃用 */
    .m-gal-actions .detail-action-btn[data-inquiry],
    .m-gal-actions .detail-action-btn[data-engage="compare"] { display: none !important; }
    /* 询盘/收藏/对比：不再出现在主图角标上（已移至价格行右侧，原样式） */
    /* 价格行右侧操作钮：与价格同处一行、垂直居中、靠右 */
    .m-title-holder { position: relative; }
    .m-card-actions {
        position: static; margin-left: auto; align-self: center;
        flex: 0 0 auto;
        display: flex; align-items: center; gap: 8px;
    }
    .m-card-actions .detail-action-btn {
        display: flex !important;
        -webkit-tap-highlight-color: transparent;
    }
    .m-card-actions .detail-action-btn:focus,
    .m-card-actions .detail-action-btn:focus-visible { outline: none !important; box-shadow: none !important; }
    .m-card-actions .detail-action-btn::after,
    .m-card-actions .detail-action-btn span { display: none !important; }
    .m-card-actions .detail-action-btn:active { transform: scale(.9); }
    /* 外层固定栏分享按钮（加入购物车旁）：模板主色圆钮——ShareThis 各网络品牌色统一覆盖为主题色（纯外观覆盖，点击事件不受影响） */
    .info-fixed-bottom .m-share-btn {
        width: 48px; height: 48px;
        display: flex; align-items: center; justify-content: center;
        order: 2;   /* 固定排在「加入购物车」右侧 */
        -webkit-tap-highlight-color: transparent;
        outline: none !important;
    }
    .info-fixed-bottom .m-share-btn .st-btn {
        width: 44px !important; height: 44px !important; min-width: 44px !important;
        background: var(--primary) !important;
        color: #fff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center; justify-content: center;
        padding: 0 !important; margin: 0 !important;
        box-shadow: none !important;
        font-size: 18px !important;
    }
    /* ShareThis 图标实为 <img>（黑logo）：转白 + 强制居中（盖过其自带定位样式） */
    .info-fixed-bottom .m-share-btn .st-btn img {
        width: 18px !important; height: 18px !important;
        margin: 0 !important; padding: 0 !important;
        position: static !important;
        display: block !important;
        filter: brightness(0) invert(1);
    }
    .info-fixed-bottom .m-share-btn .st-btn:hover { opacity: .92; }
    .info-fixed-bottom .m-share-btn:focus,
    .info-fixed-bottom .m-share-btn:focus-visible { outline: none !important; box-shadow: none !important; background: transparent; }
    .info-fixed-bottom .m-share-btn:active { transform: scale(.9); }
    .m-gal-actions .sharethis-share-buttons span { min-width: 34px; height: 34px; }
    .m-gal-actions .sharethis-share-buttons { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
    .shop-single .info-fixed-bottom .modal-feedback {
        position: absolute; left: 50%; top: -38px; transform: translateX(-50%);
        margin: 0; white-space: nowrap; z-index: 6;
    }
    /* 图标操作列：浅灰圆形底 + 下方小字 + 按压反馈 */
    .shop-single .detail-action-btn {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px;
        min-width: 40px; width: auto; height: auto; min-height: 0;
        background: transparent; border: none; box-shadow: none;
        color: #667085; font-size: 0; padding: 0; border-radius: 0;
    }
    .shop-single .detail-action-btn i {
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px;
        background: #f2f4f7;
        border-radius: 50%;
        font-size: 16px; color: #344054;
        transition: background .2s, color .2s, transform .15s;
    }
    .shop-single .detail-action-btn:active i { transform: scale(.88); }
    /* 收藏点亮态：红心 */
    .shop-single .detail-action-btn[data-engage="wishlist"] i.fas { background: #fee4e2; color: #e11d48; }
    /* 对比点亮态：同收藏红色 */
    .shop-single .detail-action-btn[data-engage="compare"].engaged i { background: #fee4e2; color: #e11d48; }
    .shop-single .detail-action-btn::after {
        content: attr(data-tip);
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        padding: 0;
        border-radius: 0;
        font-size: 9.5px; line-height: 1; margin-top: 0;
        color: #667085; font-weight: 500;
        white-space: nowrap;
    }
    html[data-theme="dark"] .shop-single .detail-action-btn i { background: rgba(255, 255, 255, .08); color: #cbd5e1; }
    html[data-theme="dark"] .shop-single .detail-action-btn[data-engage="wishlist"] i.fas { background: rgba(225, 29, 72, .25); color: #fb7185; }
    html[data-theme="dark"] .shop-single .detail-action-btn[data-engage="compare"].engaged i { background: rgba(225, 29, 72, .25); color: #fb7185; }
    html[data-theme="dark"] .shop-single .detail-action-btn::after { color: #94a3b8; }
    .shop-single .detail-action-row .sharethis-share-buttons { display: none !important; }
    .shop-single .detail-por-inquiry { flex: 1; min-height: 42px; border-radius: 12px; font-size: 14px; font-weight: 700; }
    .shop-single .out-of-stock-notice {
        flex: 1; display: flex; align-items: center; justify-content: center;
        min-height: 42px; border-radius: 12px;
        background: #f1f2f4; color: #98a2b3; font-size: 13px;
        margin: 0;
    }
    html[data-theme="dark"] .shop-single .out-of-stock-notice { background: #1b2334; }
    body:has(.shop-single-section) .ux-float.show { display: none !important; }

    /* ---- 19. 相关产品：居中菱形标题 ---- */
    /* 主图上方16px缝：画廊容器是flex+gap16，缩略图列隐藏后主图换行，row-gap变成顶部缝；移动端改块级布局 */
    .detail-gallery-wrap { display: block !important; gap: 0 !important; padding-top: 0 !important; }
    .detail-gallery-wrap .image-box, .detail-gallery-wrap .m-gal-box { padding-top: 0 !important; margin-top: 0 !important; }
    /* 搜索栏与主图之间的高分发丝线：内容上移1px盖住body灰底透出 */
    .shop-single-section { margin-top: -1px !important; }
    /* pb/mb归零：下方留白只保留页面级136px吸底栏+TabBar避让缓冲，避免双重空白 */
    .related-products { padding-top: 8px !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
    /* 相关产品独立白块（浅灰画布作分隔界限）；深色模式还原 */
    .related-products { background: #fff !important; }
    html[data-theme="dark"] .related-products { background: transparent !important; }
    /* tabs 整块（表头+内容）连续白底，上下各 4px 灰缝作界限（价格|tabs 与 tabs|相关产品） */
    .shop-single .product-info-tabs { margin-top: 4px !important; margin-bottom: 4px !important; padding-bottom: 4px; background: #fff; }
    .shop-single .basic-details { margin-bottom: 0 !important; padding-bottom: 0 !important; }
    .shop-single .content-side { padding-bottom: 0 !important; margin-bottom: 0 !important; }
    .related-products .title-box { margin: 0 0 10px; }
    .related-products .title-box h2 {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        font-size: 16px; font-weight: 800; margin: 0 0 12px;
        padding: 0; letter-spacing: .02em; color: #101828;
    }
    .related-products .title-box h2::before,
    .related-products .title-box h2::after { content: '◆'; font-size: 8px; color: var(--primary); line-height: 1; }

    /* ---- 20. 其它内容卡 ---- */
    .product-details .basic-details .inner-box,
    .blog-single .inner-box,
    .services-detail .inner-box { padding: 0 0 14px; }
    .blog-single .inner-box .image-box img,
    .services-detail .inner-box .detail-cover img { border-radius: 0; }
    .blog-single .lower-content, .services-detail .inner-box .bold-text,
    .services-detail .inner-box .text { padding-left: 15px; padding-right: 15px; }
    .blog-single h3, .services-detail h3 { font-size: 18px; }

    /* ---- 21. 购物车：表格转扁平卡 ---- */
    .cart-section .cart-outer,
    .checkout-section .checkout-card { border-radius: 14px; box-shadow: none; }
    .cart-outer .cart-table { min-width: 0 !important; } /* 主题给了900px最小宽，真机会撑破 */
    .cart-table thead { display: none; }
    .cart-table tr { display: block; margin-bottom: 10px; border-radius: 14px; box-shadow: none; background: #fff; border: 1px solid #eef0f3; padding: 4px 14px; }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border: none; border-bottom: 1px solid #f2f4f7; }
    .cart-table tr td:last-child { border-bottom: none; }
    html[data-theme="dark"] .cart-table tr { background: var(--card); border-color: var(--line); }
    html[data-theme="dark"] .cart-table td { border-bottom-color: var(--line); }

    /* ---- 22. 评价标题行：左"评论 · N"，右"查看全部›"（与评分盘查看全部同功能，零评论也可用） ---- */
    .m-rv-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: none; padding-bottom: 0; }
    /* 下横线只修饰标题文字（shop.css 的 2px 主题色线原本横贯整行，会延伸到查看全部下方） */
    .m-rv-title .m-rv-title-text { padding-bottom: 8px; border-bottom: 2px solid var(--shop-brand, #b6f000); }
    .m-rv-title .m-all-reviews-link {
        display: inline-flex; align-items: center; gap: 3px;
        font-size: 12px; font-weight: 700; color: var(--primary);
        cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .m-rv-title .m-all-reviews-link i { font-size: 13px; }
    .m-rv-title .m-all-reviews-link:active { opacity: .7; }
    html[data-theme="dark"] .m-rv-title .m-all-reviews-link { color: #93c5fd; }

    /* ---- 23. 询盘弹窗：底部 Sheet + 抓手条（滑入动画与评论弹层一致，保证一体化） ---- */
    .ux-inquiry-modal { align-items: flex-end; padding: 0; }
    .ux-modal-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: calc(100vh - 40px);
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        /* hidden→显示时自动播放，与 .m-review-box 同款缓动 */
        animation: mSheetUp .28s cubic-bezier(.32, .72, .24, 1);
    }
    @keyframes mSheetUp { from { transform: translateY(100%); } to { transform: none; } }
    .ux-modal-box::before {
        content: ''; position: absolute;
        top: 8px; left: 50%; transform: translateX(-50%);
        width: 36px; height: 4px; border-radius: 4px;
        background: #e4e7ec;
    }
    .ux-modal-close { top: 12px; right: 14px; }
    html[data-theme="dark"] .ux-modal-box::before { background: #2a3648; }

    /* ---- 23. 抽屉菜单：APP「我的」页风格 ---- */
    .ux-drawer-panel { width: min(84vw, 340px); border-radius: 0 20px 20px 0; }
    [dir="rtl"] .ux-drawer-panel { border-radius: 20px 0 0 20px; }
    .ux-drawer-menu > li > a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 18px;
        font-size: 16px;
        font-weight: 500;
    }
    .ux-drawer-menu > li > a > i:first-child {
        width: 34px; height: 34px; flex-shrink: 0;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 10px;
        background: rgba(var(--primary-rgb), .09);
        color: var(--primary);
        font-size: 14px;
    }
    .ux-drawer-menu > li > a .ux-arrow { margin-left: auto; width: auto; }
    .ux-drawer-menu > li > a.active { color: var(--primary); font-weight: 700; background: rgba(var(--primary-rgb), .06); }
    .ux-drawer-menu > li > a.active > i:first-child { background: rgba(var(--primary-rgb), .18); }
    .ux-drawer-sub a { padding-left: 64px; font-size: 14px; color: #667085; }
    .ux-drawer-sub .ux-drawer-sub a { padding-left: 18px; }
    html[data-theme="dark"] .ux-drawer-sub a { color: #8fa0b8; }
    html[data-theme="dark"] .ux-drawer-menu > li > a > i:first-child { background: rgba(var(--primary-rgb), .22); }

    /* ---- 24. 分页 / 空状态 ---- */
    .styled-pagination { margin-top: 18px; }
    .styled-pagination li a {
        border-radius: 999px; border: 1px solid #eef0f3; background: #fff;
        min-width: 34px; height: 34px; line-height: 32px; padding: 0 8px;
    }
    .styled-pagination li a:hover, .styled-pagination li .active-page { background: var(--primary); color: #fff; border-color: var(--primary); }
    .empty-tip { border-radius: 14px; padding: 30px 18px; }

    /* ---- 25. 悬浮询盘钮 / 分页留白 ---- */
    .ux-float.show { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

    /* ---- 26. 彻底 APP 化：清除电脑端痕迹 ---- */
    footer.ux-footer { display: none !important; }
    .call-to-action-section { display: none !important; }
    .page-wrapper { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
    .ux-search-panel { margin-top: 6vh; }
}

/* 超小屏进一步压缩 */
@media only screen and (max-width: 380px) {
    .sec-title h2 { font-size: 22px; }
    .theme-btn { min-height: 44px; font-size: 14px; }
    .shop-item .lower-content h3 { font-size: 14px; }
}

/* ==================== 22. 区块样式变体（内页区块设置） ==================== */
/* 类名由区块 props 决定；未配置时前台不输出这些类 → 无样式变化 */
/* --- 页头横幅 page-title --- */
.page-title.pt-size-compact { padding: 34px 0 32px !important; }
.page-title.pt-size-large { padding: 130px 0 120px !important; }
.page-title.pt-bg-solid { background-image: none; background-color: var(--primary); }
.page-title.pt-bg-gradient { background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover, #1d4ed8) 28%, var(--dark) 65%, #000 100%); }
.page-title.pt-bg-dark { background-image: none; background-color: var(--dark); }
.page-title.pt-no-crumbs .page-breadcrumb { display: none !important; }
/* --- CTA 横幅 --- */
.call-to-action-section.cta-bg-solid { background-image: none !important; background-color: var(--primary) !important; }
.call-to-action-section.cta-bg-gradient { background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover, #1d4ed8) 28%, var(--dark) 65%, #000 100%) !important; background-color: var(--dark) !important; }
.call-to-action-section.cta-bg-dark { background-image: none !important; background-color: var(--dark) !important; }
/* --- 图文左右互换（about/story） --- */
.story-section .row.ux-img-left { display: flex; flex-wrap: wrap; }
.story-section .row.ux-img-left > .image-column { order: -1; }
/* --- 隐藏价格（products/main no_price） --- */
.ux-hide-price .shop-item .price { display: none; }
/* --- 联系页表单靠右（列宽互换） --- */
.ux-contact-grid.ux-form-right { grid-template-columns: 1fr 1.5fr; }

/* ==================== 23. L3 通用区块库（图标特性/统计/问答/评价/品牌墙/询盘横幅） ==================== */
/* 首页区块上下留白收紧：原 60px 过松，改为 40px；移动端进一步压缩，避免区块间空白过大 */
.ux-home-sec { padding: 40px 0; }
/* 产品与新闻区块：底部已有卡片自身外边距，区块下留白收紧到 4px，避免视觉空白过大 */
.ux-home-sec.shop-section,
.ux-home-sec.ux-news-sec { padding-bottom: 4px; }
@media only screen and (max-width: 767px) {
    .ux-home-sec { padding: 18px 0 6px; }
    .ux-home-sec.shop-section,
    .ux-home-sec.ux-news-sec { padding-bottom: 2px; }
}
.ux-feat-grid, .ux-stat-grid, .ux-tm-grid, .ux-logo-grid { display: grid; gap: 22px; }
.ux-feat-grid.ux-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ux-feat-grid.ux-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ux-feat-grid.ux-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ux-feat { background: #fff; border: 1px solid #e8ecf2; border-radius: 10px; padding: 24px 20px; text-align: center; }
.ux-feat i { font-size: 28px; color: var(--primary); margin-bottom: 12px; display: block; }
.ux-feat h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.ux-feat p { margin: 0; color: #666; font-size: 14px; line-height: 1.7; }
.ux-stat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.ux-stat strong { display: block; font-size: 34px; font-weight: 700; line-height: 1.2; }
.ux-stat span { font-size: 14px; opacity: .85; }
.ux-stats.us-bg-solid { background: var(--primary); color: #fff; }
.ux-stats.us-bg-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover, #1d4ed8) 28%, var(--dark) 65%, #000 100%); color: #fff; }
.ux-stats.us-bg-dark { background: var(--dark); color: #fff; }
.ux-faq-item { border: 1px solid #e8ecf2; border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.ux-faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.ux-faq-a { margin-top: 10px; color: #666; font-size: 14px; line-height: 1.8; }
.ux-tm-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ux-tm { margin: 0; background: #fff; border: 1px solid #e8ecf2; border-radius: 10px; padding: 22px; }
.ux-tm p { margin: 0 0 14px; color: #555; font-size: 14px; line-height: 1.8; }
.ux-tm footer strong { display: block; font-size: 14px; }
.ux-tm footer span { font-size: 12px; color: #999; }
.ux-logo-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: center; }
.ux-logo-card { display: flex; align-items: center; justify-content: center; padding: 14px; background: #fff; border: 1px solid #e8ecf2; border-radius: 8px; }
.ux-logo-card img { max-width: 100%; max-height: 46px; display: block; }
.ux-form-cta.uc-bg-solid, .ux-form-cta.uc-bg-gradient, .ux-form-cta.uc-bg-dark { color: #fff; }
.ux-form-cta.uc-bg-solid { background: var(--primary); }
.ux-form-cta.uc-bg-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover, #1d4ed8) 28%, var(--dark) 65%, #000 100%); }
.ux-form-cta.uc-bg-dark { background: var(--dark); }
.ux-fc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.ux-fc-intro h2 { font-size: 28px; margin: 0 0 10px; }
.ux-fc-intro p { margin: 0; opacity: .9; }
.ux-fc-grid .ux-contact-form-card { background: #fff; color: #333; border-radius: 10px; padding: 24px; }
@media (max-width: 767px) {
    .ux-feat-grid.ux-cols-2, .ux-feat-grid.ux-cols-3, .ux-feat-grid.ux-cols-4 { grid-template-columns: 1fr; }
    .ux-fc-grid { grid-template-columns: 1fr; }
}

/* ==================== 24. 区块通用外观（sec 区块：上下间距/内容宽度/对齐/底色/配图/标题；未配置不输出类，默认零变化） ==================== */
/* --- 上下间距（作用于块内根 section） --- */
.uxb-wrap.uxb-pad-none > section { padding-top: 0 !important; padding-bottom: 0 !important; }
.uxb-wrap.uxb-pad-sm > section { padding-top: 30px !important; padding-bottom: 30px !important; }
.uxb-wrap.uxb-pad-md > section { padding-top: 60px !important; padding-bottom: 60px !important; }
.uxb-wrap.uxb-pad-lg > section { padding-top: 110px !important; padding-bottom: 110px !important; }
/* --- 内容宽度（作用于块内既有 .auto-container，不新建容器） --- */
.uxb-wrap.uxb-w-narrow .auto-container { max-width: 960px; }
.uxb-wrap.uxb-w-normal .auto-container { max-width: 1200px; }
.uxb-wrap.uxb-w-wide .auto-container { max-width: 1560px; }
/* --- 文字/标题对齐 --- */
.uxb-wrap.uxb-align-left { text-align: left; }
.uxb-wrap.uxb-align-left .uxb-head { margin-left: 0; text-align: left; }
/* --- 底色 --- */
.uxb-wrap.uxb-bg-white { background: #fff; }
.uxb-wrap.uxb-bg-gray { background: #f4f6f9; }
.uxb-wrap.uxb-bg-dark { background: var(--dark); color: #fff; }
.uxb-wrap.uxb-bg-dark .uxb-head p { color: rgba(255, 255, 255, .82); }
/* --- 区块配图（wrap style 仅承载 background-image；自动加暗色叠层保证文字可读） --- */
.uxb-wrap[style] { position: relative; background-size: cover; background-position: center; background-color: var(--dark); color: #fff; }
.uxb-wrap[style]::before { content: ''; position: absolute; inset: 0; z-index: 0; background: rgba(20, 16, 40, .5); }
.uxb-wrap[style] > section { position: relative; z-index: 1; background-image: none !important; background-color: transparent !important; }
.uxb-wrap[style] .uxb-head p { color: rgba(255, 255, 255, .82); }
/* --- 区块标题区 --- */
.uxb-head { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.uxb-head h2 { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.uxb-head p { margin: 0; font-size: 16px; line-height: 1.8; color: #666; }
.uxb-head:empty { display: none; }
/* --- 小项变体：联系页地图高度 --- */
.ux-contact-map.uxb-map-short iframe,
.ux-contact-map.uxb-map-short img,
.ux-contact-map.uxb-map-short a { min-height: 260px; }
.ux-contact-map.uxb-map-normal iframe,
.ux-contact-map.uxb-map-normal img,
.ux-contact-map.uxb-map-normal a { min-height: 420px; }
.ux-contact-map.uxb-map-tall iframe,
.ux-contact-map.uxb-map-tall img,
.ux-contact-map.uxb-map-tall a { min-height: 600px; }
/* --- 小项变体：关闭产品详情购买面板吸顶（桌面三段式回归自然流） --- */
@media (min-width: 992px) {
    .product-details .basic-details .info-column.uxb-no-sticky { position: static; }
    .product-details .basic-details .info-column.uxb-no-sticky .inner-column { height: auto; max-height: none; }
    .product-details .basic-details .info-column.uxb-no-sticky .info-scroll { overflow: visible; }
}

@media print {
    .page-title, .account-sidebar, .theme-btn, #orderPrintBtn, #copyAddrBtn, .scroll-to-top, #orderEditPanel, #orderEditToggle { display: none !important; }
    body { background: #fff !important; font-size: 12pt; }
    .auto-container { padding: 0 !important; max-width: 100% !important; }
    .checkout-card { box-shadow: none !important; border: 1px solid #ddd !important; }
    .account-section { padding: 20px 0 !important; }
}

/* ==================== 23. 页头/导航条/页尾排版项（模版中心区域设置） ==================== */
/* 类名由区域 props 决定（uxh-/uxn-/uxf-）；全部为 default 时前台不输出这些类 → 零样式变化 */
/* --- 页头：上下间距 / 宽度 / 顶栏底色 / 顶栏对齐 --- */
.ux-header.uxh-pad-none .ux-topbar-in{padding-top:0;padding-bottom:0;min-height:28px}
.ux-header.uxh-pad-sm .ux-topbar-in{padding-top:5px;padding-bottom:5px;min-height:30px}
.ux-header.uxh-pad-md .ux-topbar-in{padding-top:10px;padding-bottom:10px;min-height:40px}
.ux-header.uxh-pad-lg .ux-topbar-in{padding-top:16px;padding-bottom:16px;min-height:52px}
.ux-header.uxh-w-narrow .ux-container{max-width:960px}
.ux-header.uxh-w-normal .ux-container{max-width:1200px}
.ux-header.uxh-w-wide .ux-container{max-width:1560px}
.ux-header.uxh-bg-dark .ux-topbar{background:var(--dark);color:rgba(255,255,255,.82)}
.ux-header.uxh-bg-light .ux-topbar{background:#f4f6f9;color:#475467}
.ux-header.uxh-bg-light .ux-topbar-phone{color:#344054}
.ux-header.uxh-bg-primary .ux-topbar{background:var(--primary);color:rgba(255,255,255,.9)}
.ux-header.uxh-bg-transparent .ux-topbar{background:transparent;color:#475467}
.ux-header.uxh-align-left .ux-topbar-in{justify-content:flex-start}
.ux-header.uxh-align-center .ux-topbar-in{justify-content:center}
/* --- 导航条：上下间距 / 宽度 / 底色 / 菜单对齐 --- */
.ux-navbar.uxn-pad-none .ux-navbar-in{padding-top:0;padding-bottom:0;min-height:54px}
.ux-navbar.uxn-pad-sm .ux-navbar-in{padding-top:5px;padding-bottom:5px;min-height:64px}
.ux-navbar.uxn-pad-md .ux-navbar-in{padding-top:10px;padding-bottom:10px;min-height:74px}
.ux-navbar.uxn-pad-lg .ux-navbar-in{padding-top:18px;padding-bottom:18px;min-height:94px}
.ux-navbar.uxn-w-narrow .ux-container{max-width:960px}
.ux-navbar.uxn-w-normal .ux-container{max-width:1200px}
.ux-navbar.uxn-w-wide .ux-container{max-width:1560px}
.ux-navbar.uxn-bg-white{background:rgba(255,255,255,.92)}
.ux-navbar.uxn-bg-dark{background:var(--dark);border-bottom-color:transparent}
.ux-navbar.uxn-bg-primary{background:var(--primary);border-bottom-color:transparent}
.ux-navbar.uxn-bg-gray{background:var(--dark-soft)}
.ux-navbar.uxn-bg-transparent{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom-color:transparent}
.ux-navbar.uxn-bg-dark .ux-menu-item>a,.ux-navbar.uxn-bg-primary .ux-menu-item>a{color:rgba(255,255,255,.88)}
.ux-navbar.uxn-align-left .ux-navbar-in{justify-content:flex-start}
.ux-navbar.uxn-align-center .ux-navbar-in{justify-content:center}
/* --- 页尾：上下间距 / 宽度 / 底色 / 对齐 --- */
.ux-footer.uxf-pad-none .ux-container{padding-top:0}
.ux-footer.uxf-pad-sm .ux-container{padding-top:32px}
.ux-footer.uxf-pad-md .ux-container{padding-top:56px}
.ux-footer.uxf-pad-lg .ux-container{padding-top:90px}
.ux-footer.uxf-w-narrow .ux-container{max-width:960px}
.ux-footer.uxf-w-normal .ux-container{max-width:1200px}
.ux-footer.uxf-w-wide .ux-container{max-width:1560px}
.ux-footer.uxf-bg-dark{background:var(--dark);color:rgba(255,255,255,.72)}
.ux-footer.uxf-bg-light{background:var(--dark-soft);color:#475467}
.ux-footer.uxf-bg-gray{background:#eef1f6;color:#475467}
.ux-footer.uxf-bg-primary{background:var(--primary);color:rgba(255,255,255,.82)}
.ux-footer.uxf-align-left .ux-container{text-align:left}
.ux-footer.uxf-align-center .ux-container{text-align:center}
.ux-footer.uxf-align-center .ux-footer-social{justify-content:center}

/* ===== 24. 页尾多栏自适应（我的账号 / DIY 追加后的 4-5 栏） ===== */
@media (min-width:768px) and (max-width:1240px) {
    /* 品牌独占一行后，剩余的栏目列数与内容列数一致，避免末尾留下空列 */
    .ux-footer-grid-c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .ux-footer-grid-c5 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .ux-footer-grid-c4 .ux-footer-brand,
    .ux-footer-grid-c5 .ux-footer-brand { grid-column: 1 / -1; }
}
@media (max-width:767px) {
    /* 本节位于移动端单栏规则之后，需显式恢复单栏 */
    .ux-footer-grid-c4,
    .ux-footer-grid-c5 { grid-template-columns: 1fr; gap: 0; }
}

/* ===== 25. 页脚订阅栏 + 社交图标（移入联系方式栏内） ===== */
.ux-footer-subscribe { margin-top: 18px; }
.ux-footer-subscribe h4 { margin-bottom: 8px; }
.ux-footer-sub-tip { font-size: 12px; opacity: .75; margin-bottom: 10px; }
.ux-footer-sub-form { display: flex; max-width: 320px; position: relative; }
.ux-footer-sub-form .ux-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ux-footer-sub-form input[type=email] { flex: 1; min-width: 0; height: 40px; padding: 0 12px;
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: inherit;
    border-radius: 8px 0 0 8px; font-size: 13px; }
.ux-footer-sub-form input[type=email]::placeholder { color: inherit; opacity: .55; }
.ux-footer-sub-form button { width: 44px; height: 40px; flex: none; border: 0; border-radius: 0 8px 8px 0;
    background: var(--primary); color: #fff; cursor: pointer; font-size: 14px; }
.ux-footer-sub-form button:hover { filter: brightness(1.08); }
.ux-footer-sub-form button:disabled { opacity: .6; cursor: default; }
.ux-footer-sub-msg { margin-top: 8px; font-size: 12px; color: #7ee2a8; }
.ux-footer-sub-msg.err { color: #ff9c9c; }
/* 浅色页尾适配 */
.ux-footer-light .ux-footer-sub-form input[type=email] { border-color: #ddd; background: #fff; color: #333; }
.ux-footer-light .ux-footer-sub-msg { color: #15803d; }
.ux-footer-light .ux-footer-sub-msg.err { color: #dc2626; }
/* 社交图标在栏目列内：与上方列表留出间距（原品牌区样式保持不变） */
.ux-footer-col .ux-footer-social { margin-top: 16px; }

/* ===== 26. 会员中心：选框/单选框小巧化 ===== */
.account-main input[type="checkbox"], .account-main input[type="radio"] {
    width: 13px; height: 13px; margin: 0; flex: none; cursor: pointer;
    accent-color: var(--primary); vertical-align: -1px;
}

/* ==================== 27. 购物车 / 结算 / 会员中心 APP 化 ====================
   目标：与产品页保持一致的现代卡片风格（发丝线边框 + 14px 圆角 + 弱阴影 + 令牌配色）。
   说明：本段在 shop.css 之后加载，同权重可覆盖；颜色统一走设计令牌，
   深色模式由 html[data-theme="dark"] 令牌自动接管，仅对 shop.css 中写死的浅色做覆盖。 */

/* --- 27.1 卡片统一外观（与 §11 内页卡片同规格） --- */
.cart-summary, .checkout-card, .checkout-totals,
.account-side, .account-main, .account-box, .success-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* --- 27.2 会员中心侧栏：圆角菜单 + 图标底片 --- */
.account-side { overflow: hidden; }
.account-side-name { background: var(--bg); border-bottom: 1px solid var(--line); }
.account-menu { padding: 10px; }
.account-menu li a {
    border-radius: 10px; padding: 11px 12px; gap: 10px; font-size: 14px;
    transition: background .18s ease, color .18s ease;
}
.account-menu li a > i {
    width: 30px; height: 30px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: rgba(var(--primary-rgb), .08);
    color: var(--primary); font-size: 13px;
}
.account-menu li a:hover { background: var(--bg); color: var(--ink); }
.account-menu li.active a { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.account-menu li.active a > i { background: rgba(var(--primary-rgb), .18); }
.account-menu .points-badge { margin-left: auto; font-weight: 700; color: var(--primary); }

/* --- 27.3 表单控件：圆角 + 主色聚焦环 --- */
.checkout-field input, .checkout-field textarea, .checkout-field select,
.account-box input, .account-box select, .sselect-input, .pbox-input {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.checkout-field input:focus, .checkout-field textarea:focus, .checkout-field select:focus,
.account-box input:focus, .account-box select:focus, .sselect-input:focus, .pbox-input:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}
.checkout-field label { font-weight: 600; }
.sselect-input:focus { cursor: text; }
.sselect-item:hover, .sselect-item.active { background: var(--bg); color: var(--primary); }
/* 注册/登录手机号区号：复用 .sselect 可搜索下拉，与账号国家选择一致 */
.account-box .sselect-input { padding-right: 32px; }
.account-cc-select { flex: 0 0 76px; min-width: 0; }
/* 选中后仅显示区号（如 +86），区号最长 4 字符，仅保留必要留白 */
.account-cc-select .sselect-input { padding: 0 22px 0 8px; }
.account-cc-select .sselect::after { right: 8px; }
/* 下拉列表保持可读宽度，避免国家名称被挤压换行 */
.account-cc-select .sselect-list { min-width: 220px; }
@media (max-width: 480px) {
    .account-cc-select { flex: 0 0 70px; }
    .account-cc-select .sselect-list { min-width: 200px; }
}

/* --- 27.4 支付方式 / 收货地址选择卡 --- */
.pay-method span.pay-card { border-radius: 12px; }
.pay-method input:checked + .pay-card { box-shadow: 0 4px 14px rgba(var(--primary-rgb), .16); }
.address-pick label { border-radius: 12px; }

/* --- 27.5 合计区 --- */
.cart-summary, .checkout-totals { padding: 20px 22px; }
.total-row.grand span:last-child { color: var(--primary); font-weight: 800; }
.cart-summary .theme-btn, .checkout-totals .theme-btn { border-radius: var(--radius); }
.total-row-tip { font-size: 12px; color: var(--muted); }
/* 购物车运费明细（估算）：折叠展示计费依据 */
.cart-ship-detail { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }
.cart-ship-detail > summary {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; list-style: none; color: var(--primary); font-size: 12.5px;
}
.cart-ship-detail > summary::-webkit-details-marker { display: none; }
.cart-ship-detail > summary i { font-size: 11px; }
.cart-ship-detail[open] > summary { margin-bottom: 8px; }
.csd-body {
    display: flex; flex-direction: column; gap: 5px;
    padding: 9px 11px; border: 1px dashed var(--line);
    border-radius: var(--radius); background: rgba(0, 0, 0, .015);
}
.csd-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
/* 左侧标签保持一行；右侧内容按剩余行宽自动换行 */
.csd-line > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.csd-line > span:last-child {
    flex: 0 1 auto; min-width: 0; text-align: right;
    white-space: normal; overflow-wrap: anywhere;
}
.csd-total {
    margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line);
    color: var(--ink); font-weight: 600;
}
.csd-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
/* 购物车配送方式选择（下拉式，节省空间） */
.cart-ship-pick { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.csp-label { font-size: 12.5px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.csp-select {
    flex: 1; min-width: 0;
    padding: 6px 9px; font-family: inherit; font-size: 13px; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    cursor: pointer;
}
.csp-select:focus { outline: none; border-color: var(--primary); }
.csp-select:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 767px) {
    .cart-ship-pick { flex-direction: column; align-items: stretch; gap: 5px; }
}
.total-row-divider { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; }
.amount-minus { color: #e04f3f; }
.order-totals .amount-minus { font-weight: 600; }
.coupon-chip {
    display: inline-block; padding: 1px 7px; border-radius: 4px;
    background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600;
}

/* --- 27.6 积分 / 优惠券盒（替代原内联样式） --- */
.points-box, .coupon-box {
    margin: 10px 0; padding: 12px 14px;
    background: var(--primary-soft);
    border: 1px solid rgba(var(--primary-rgb), .18);
    border-radius: 12px;
}
.pbox-head { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pbox-head b { color: var(--primary); font-weight: 700; }
.pbox-head .pbox-tip { margin-left: 8px; }
.pbox-row { display: flex; align-items: center; gap: 8px; }
.pbox-input { width: 92px; height: 40px; padding: 0 12px; font-size: 14px; }
.pbox-input.pbox-flex { flex: 1; min-width: 0; width: auto; }
/* 优惠券下拉：占满整行，与手工输入框共存 */
.pbox-select { width: 100%; margin-bottom: 8px; padding-right: 30px; }
.pbox-select:disabled { opacity: .65; cursor: not-allowed; }
.coupon-msg { font-size: 12px; margin-top: 6px; }

/* 结算页优惠券多选面板（可叠加券可同时勾选） */
.coupon-picker { position: relative; margin-bottom: 8px; }
.coupon-picker-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; margin-bottom: 0; text-align: left; cursor: pointer;
    background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.coupon-picker-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
    padding: 10px; max-height: 280px; overflow: auto;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.coupon-picker-panel .pbox-search { width: 100%; margin-bottom: 8px; }
.coupon-picker-list { display: flex; flex-direction: column; gap: 2px; }
.coupon-pick {
    display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px;
    border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer;
}
.coupon-pick:hover { background: var(--primary-soft); }
.coupon-pick.is-disabled { color: var(--muted); cursor: not-allowed; opacity: .75; }
.coupon-pick.is-disabled:hover { background: transparent; }
.coupon-pick input { margin-top: 2px; accent-color: var(--primary); }
.coupon-pick-txt { line-height: 1.4; }
.coupon-picker-hint {
    margin-top: 8px; padding-top: 8px; font-size: 12px; color: var(--muted);
    border-top: 1px dashed var(--line);
}
/* 「可叠加」标识：结算页选券列表与券卡共用 */
.coupon-badge-stack {
    display: inline-block; flex: none; margin-left: auto; padding: 1px 7px;
    font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap;
    color: var(--primary); background: var(--primary-soft);
    border: 1px solid var(--primary); border-radius: 999px;
}
.discount-val { color: #16a34a; font-size: 13px; }
.total-row .discount-val { font-size: inherit; }
html[data-theme="dark"] .discount-val { color: #4ade80; }

/* 赠品/换购商品：原价红色划线 */
.promo-origin-price { color: #dc2626; text-decoration: line-through; font-size: 12px; font-weight: 400; margin-right: 6px; white-space: nowrap; }
html[data-theme="dark"] .promo-origin-price { color: #f87171; }

/* 结算页购物车卡标题行：标题 + 返回购物车 */
.ck-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ck-cart-head h3 { margin: 0; }
.ck-cart-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ck-cart-back:hover { color: var(--primary); }

/* 手机端结算底部「合计 + 提交」条：桌面端默认隐藏 */
.ck-mobile-bar { display: none; }

/* --- 27.7 结算页登录 / 注册 / 游客面板（替代原内联样式） --- */
.ck-alert { max-width: 1100px; margin: 0 auto 20px; }
.ck-account-card { max-width: 100%; margin: 0 0 20px; }
.ck-account-msg { margin-top: 12px; }
.ck-mode-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ck-panel-guest { font-size: 13px; color: var(--muted); }
.ck-panel-guest i { color: var(--primary); }
.checkout-auth-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 560px; }
.checkout-auth-form .full { grid-column: 1 / -1; }
.checkout-auth-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.checkout-auth-form input {
    width: 100%; height: 44px; padding: 0 12px; box-sizing: border-box;
    border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.checkout-auth-form input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.checkout-auth-form .form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.checkout-auth-form .form-actions a { font-size: 13px; color: var(--muted); }
.chk { display: block; margin-bottom: 10px; }
.pay-note { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* --- 27.8 成功页 / 订单详情 --- */
.offline-guide { text-align: left; }
.success-detail { max-width: 860px; margin: 30px auto 0; }
.success-box { padding: 40px 24px; }
/* 支付成功页：未付款订单可直接更换支付方式 */
.success-pay-change { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.success-pay-change label { margin: 0; font-size: 14px; color: var(--muted); }
.success-pay-change select { min-width: 180px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-size: 14px; }
.order-meta { gap: 16px; }
.remark-box {
    margin-top: 12px; padding: 10px 16px; font-size: 13px;
    background: rgba(var(--primary-rgb), .08);
    border: 1px solid rgba(var(--primary-rgb), .2);
    border-radius: 8px;
}
.remark-box strong { color: var(--primary); }
.card-h4 { margin: 0 0 8px; font-size: 14px; }
.card-note { margin: 8px 0 10px; font-size: 12px; color: var(--muted); }
.card-tight { padding: 14px 16px; margin-bottom: 16px; }
.card-flush { padding: 0; margin-bottom: 16px; overflow: hidden; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.order-actions:last-child { margin-bottom: 0; }
/* 会员自助取消订单 */
.inline-form { display: inline; margin: 0; }
.order-actions .inline-form { display: inline-flex; }
.btn-cancel { border-color: #d92d20 !important; color: #d92d20 !important; background: transparent !important; }
.btn-cancel:hover { background: #d92d20 !important; color: #fff !important; }
.order-edit-panel { margin-bottom: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); }
.order-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.order-edit-panel label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.order-edit-panel input, .order-edit-panel select {
    width: 100%; padding: 9px 12px; font-size: 13px; box-sizing: border-box;
    border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.order-edit-panel input:focus, .order-edit-panel select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.order-addr-block { padding: 20px 24px; margin-bottom: 16px; }
.order-addr-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.order-addr-head h4 { margin: 0; font-size: 16px; }
.addr-sep { border-top: 1px solid var(--line); margin: 16px 0 12px; }
.addr-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.addr-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.addr-ico {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; font-size: 16px;
    background: #fef7e0; color: #f9ab00;
}
.addr-text { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.addr-text.addr-text-lg { font-size: 16px; font-weight: 700; }
.addr-ico.i-name     { background: #e8f0fe; color: #1a73e8; }
.addr-ico.i-address1,
.addr-ico.i-address2 { background: #fef7e0; color: #f9ab00; }
.addr-ico.i-city     { background: #fce8e6; color: #ea4335; }
.addr-ico.i-country  { background: #f3e8fd; color: #a142f4; }
.addr-ico.i-phone    { background: #e6f4ea; color: #34a853; }
.order-log-item { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; }
.order-log-item + .order-log-item { border-top: 1px solid var(--line); }
.order-log-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; }
.order-log-body { flex: 1; min-width: 0; }
.order-log-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.order-log-head time { color: var(--muted); font-size: 12px; }
.order-log-note { color: var(--muted); margin-top: 2px; word-break: break-all; }
.txn-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flex-input {
    flex: 1; min-width: 220px; padding: 9px 12px; font-size: 13px; box-sizing: border-box;
    border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.flex-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
/* 汇款凭证输入框：限制最大宽度，避免整行拉满显得空长 */
.txn-form .flex-input { flex: 0 1 360px; max-width: 360px; }
@media (max-width: 767px) {
    .txn-form .flex-input { flex: 1 1 100%; max-width: none; }
}
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.link-inherit { color: inherit; text-decoration: none; }
.link-inherit:hover { color: var(--primary); }
.order-ship-line { margin: 0; font-size: 13px; }
.note-dim { color: var(--muted); font-size: 12px; }
.addr-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-subhead { margin: 0 0 12px; font-size: 16px; }
a.theme-btn { text-decoration: none; }
.edit-row { margin-bottom: 12px; }
.edit-row .theme-btn { margin-top: 2px; }
.order-edit-grid .full { grid-column: 1 / -1; }
.table-sm { font-size: 13px; }

/* --- 27.9 深色模式下写死浅色的覆盖 --- */
html[data-theme="dark"] .form-alert.error { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .3); }
html[data-theme="dark"] .form-alert.success { background: rgba(34, 197, 94, .16); color: #86efac; border-color: rgba(34, 197, 94, .3); }
html[data-theme="dark"] .order-badge.status-pending,
html[data-theme="dark"] .case-badge.st-pending { background: rgba(245, 158, 11, .16); color: #fcd34d; }
html[data-theme="dark"] .order-badge.status-paid,
html[data-theme="dark"] .case-badge.st-done { background: rgba(34, 197, 94, .16); color: #86efac; }
html[data-theme="dark"] .order-badge.status-shipped,
html[data-theme="dark"] .case-badge.st-reviewing,
html[data-theme="dark"] .case-badge.st-servicing { background: rgba(59, 130, 246, .18); color: #93c5fd; }
html[data-theme="dark"] .order-badge.status-done { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
html[data-theme="dark"] .order-badge.status-canceled,
html[data-theme="dark"] .case-badge.st-draft { background: rgba(148, 163, 184, .14); color: #94a3b8; }
html[data-theme="dark"] .order-badge.status-refunded,
html[data-theme="dark"] .case-badge.st-returned { background: rgba(239, 68, 68, .16); color: #fca5a5; }
html[data-theme="dark"] .case-badge.st-approved { background: rgba(20, 184, 166, .16); color: #5eead4; }
html[data-theme="dark"] .ac-level-tooltip { background: var(--card); }
html[data-theme="dark"] .ac-level-tooltip::after { border-top-color: var(--card); }
html[data-theme="dark"] .addr-ico.i-name { background: rgba(96, 165, 250, .18); color: #93c5fd; }
html[data-theme="dark"] .addr-ico.i-address1,
html[data-theme="dark"] .addr-ico.i-address2 { background: rgba(251, 191, 36, .16); color: #fcd34d; }
html[data-theme="dark"] .addr-ico.i-city { background: rgba(248, 113, 113, .16); color: #fca5a5; }
html[data-theme="dark"] .addr-ico.i-country { background: rgba(167, 139, 250, .18); color: #c4b5fd; }
html[data-theme="dark"] .addr-ico.i-phone { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
html[data-theme="dark"] .addr-ico { background: rgba(251, 191, 36, .16); color: #fcd34d; }
/* 内联写死的浅色提示底色 / 浅灰描边：深色下统一改色（仅覆盖颜色，不动内联的定位与尺寸） */
html[data-theme="dark"] [style*="#fff8e1"], html[data-theme="dark"] [style*="#fffbe6"],
html[data-theme="dark"] [style*="#f6ffe6"] { background: rgba(251, 191, 36, .12) !important; }
html[data-theme="dark"] [style*="#ffe58f"] { border-color: rgba(251, 191, 36, .3) !important; }
html[data-theme="dark"] [style*="#e8eaed"], html[data-theme="dark"] [style*="#f0f0f0"],
html[data-theme="dark"] [style*="#eee"], html[data-theme="dark"] [style*="#e0e0e0"] { border-color: var(--line) !important; }

/* --- 27.10 移动端：彻底 APP 化（购物车 / 结算 / 会员中心） --- */
@media only screen and (max-width: 767px) {
    /* 画布：去底露出 body #f6f7f9 */
    .cart-section, .checkout-section, .account-section, .success-section { background: transparent; }
    /* 底部固定操作条留白 */
    /* 底部固定条留白：页尾区 .page-wrapper 已留 60px + safe-area 给 Tab Bar，
       这里只需补「固定条高度 + 18px 呼吸间距 - 60px」，否则会出现大片空白 */
    .cart-section { padding-bottom: 66px !important; }        /* 按钮 48px */
    .checkout-section { padding-bottom: 70px !important; }    /* 底栏 66px + 合计卡自带 18px 下边距 */

    /* §20 卡片 overflow:hidden 会裁剪 .sselect-list 下拉，结算卡放开 */
    .checkout-card { overflow: visible; }

    /* 表单：浅灰填充（16px 防 iOS 聚焦放大） */
    .checkout-field input, .checkout-field textarea, .checkout-field select,
    .account-box input, .account-box select, .sselect-input, .pbox-input {
        background: #f4f5f7; border: 1.5px solid transparent; border-radius: 12px; font-size: 16px;
    }
    .checkout-field input:focus, .checkout-field textarea:focus, .checkout-field select:focus,
    .account-box input:focus, .account-box select:focus, .sselect-input:focus, .pbox-input:focus {
        background: #fff; border-color: var(--primary);
    }
    html[data-theme="dark"] .checkout-field input, html[data-theme="dark"] .checkout-field textarea,
    html[data-theme="dark"] .checkout-field select, html[data-theme="dark"] .account-box input,
    html[data-theme="dark"] .sselect-input, html[data-theme="dark"] .pbox-input { background: #0b1120; color: #d6dfee; }
    /* JS 动态生成的国/州/市文本框带内联样式，需 !important 覆盖以保持一致 */
    #countrySelectWrap input:not([type="hidden"]),
    #zoneSelectWrap input:not([type="hidden"]),
    #citySelectWrap input:not([type="hidden"]) {
        border: 1.5px solid transparent !important;
        border-radius: 12px !important;
        background: #f4f5f7 !important;
        font-size: 16px !important;
        color: inherit !important;
    }
    #countrySelectWrap input:not([type="hidden"]):focus,
    #zoneSelectWrap input:not([type="hidden"]):focus,
    #citySelectWrap input:not([type="hidden"]):focus {
        background: #fff !important; border-color: var(--primary) !important;
    }
    html[data-theme="dark"] #countrySelectWrap input:not([type="hidden"]),
    html[data-theme="dark"] #zoneSelectWrap input:not([type="hidden"]),
    html[data-theme="dark"] #citySelectWrap input:not([type="hidden"]) { background: #0b1120 !important; color: #d6dfee !important; }

    /* 购物车：底部固定结算条 */
    .cart-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
    .cart-summary .theme-btn {
        position: fixed; left: 12px; right: 12px;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 1080; min-height: 48px; width: auto; margin-top: 0;
        display: flex; align-items: center; justify-content: center;
    }
    /* 结算：底部固定下单按钮 */
    .place-order-btn {
        position: fixed; left: 12px; right: 12px;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 1080; min-height: 48px; width: auto;
    }
    /* 结算：改用「合计 + 提交」固定条，隐藏原单独按钮（留白见本节开头的 84px） */
    .checkout-totals .place-order-btn { display: none !important; }
    .ck-mobile-bar {
        display: flex; position: fixed; left: 0; right: 0;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 1090; align-items: center; gap: 12px;
        padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line);
        box-shadow: 0 -6px 18px rgba(16, 24, 40, .08);
    }
    .ck-mobile-bar .ck-bar-total { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .ck-mobile-bar .ck-bar-total span { font-size: 12px; color: var(--muted); line-height: 1; }
    .ck-mobile-bar .ck-bar-total strong {
        font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--primary);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ck-mobile-bar .theme-btn {
        flex: none; min-width: 132px; height: 46px; padding: 0 20px; border-radius: 999px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    html[data-theme="dark"] .ck-mobile-bar { background: #131a2c; border-top-color: #1e2836; }
    /* 结算卡片：收紧间距、单列字段、触控友好 */
    .checkout-card { padding: 16px; border-radius: 14px; }
    .checkout-card h3 { font-size: 16px; margin-bottom: 12px; }
    .checkout-grid { grid-template-columns: 1fr; gap: 12px; }
    .checkout-aside { margin-top: 4px; }
    .checkout-totals { padding: 16px; border-radius: 14px; }
    .pay-methods { grid-template-columns: 1fr; }
    .checkout-mini-item { align-items: flex-start; }
    .checkout-mini-item img { width: 52px; height: 52px; border-radius: 10px; }
    /* 会员中心：侧栏转横向 chip 条 */
    .account-side { background: transparent; border: none; box-shadow: none; overflow: visible; }
    .account-side-name {
        background: var(--card); border: 1px solid var(--line);
        border-radius: 14px; margin-bottom: 12px; padding: 14px 16px;
    }
    .account-menu {
        display: flex; gap: 8px; overflow-x: auto;
        padding: 0 0 6px; margin: 0; scrollbar-width: none;
    }
    .account-menu::-webkit-scrollbar { display: none; }
    .account-menu li { flex: none; }
    .account-menu li a {
        padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: 13px; gap: 6px;
        background: var(--card); border: 1px solid var(--line); color: var(--ink);
    }
    .account-menu li a > i { width: auto; height: auto; background: none; font-size: 13px; }
    .account-menu li.active a {
        background: var(--primary); border-color: var(--primary);
        color: var(--shop-on-brand, #fff); font-weight: 600;
    }
    .account-menu li.active a > i { background: none; color: inherit; }
    /* 列表表 → 扁平卡（与 §21 购物车同构）：订单列表 / 退换货 / 服务 / 咨询 / 优惠券 / 下载 / 结算明细 */
    .account-orders-table,
    .account-section .shop-table,
    .checkout-section .shop-table,
    .success-section .shop-table { min-width: 0 !important; border-radius: 0; overflow: visible; }
    .account-orders-table thead,
    .account-section .shop-table thead,
    .checkout-section .shop-table thead,
    .success-section .shop-table thead { display: none; }
    .account-orders-table tr,
    .account-section .shop-table tr,
    .checkout-section .shop-table tr,
    .success-section .shop-table tr {
        display: block; margin-bottom: 10px; border-radius: 14px;
        box-shadow: none; background: #fff; border: 1px solid #eef0f3; padding: 4px 14px;
    }
    .account-orders-table td,
    .account-section .shop-table td,
    .checkout-section .shop-table td,
    .success-section .shop-table td {
        display: flex; justify-content: space-between; align-items: center;
        padding: 10px 0; border: none; border-bottom: 1px solid #f2f4f7;
    }
    .account-orders-table tr td:last-child,
    .account-section .shop-table tr td:last-child,
    .checkout-section .shop-table tr td:last-child,
    .success-section .shop-table tr td:last-child { border-bottom: none; }
    /* 商品单元格：缩略图 + 标题独占一行 */
    .account-section .shop-table td.shop-product-cell,
    .checkout-section .shop-table td.shop-product-cell,
    .success-section .shop-table td.shop-product-cell { justify-content: flex-start; align-items: flex-start; }
    html[data-theme="dark"] .account-orders-table tr,
    html[data-theme="dark"] .account-section .shop-table tr,
    html[data-theme="dark"] .checkout-section .shop-table tr,
    html[data-theme="dark"] .success-section .shop-table tr { background: #131a2c; border-color: #1e2836; }
    html[data-theme="dark"] .account-orders-table td,
    html[data-theme="dark"] .account-section .shop-table td,
    html[data-theme="dark"] .checkout-section .shop-table td,
    html[data-theme="dark"] .success-section .shop-table td { border-bottom-color: #1e2836; }
    /* 订单详情：编辑网格单列 */
    .order-edit-grid { grid-template-columns: 1fr; }
}

/* --- 27.11 会员中心栅格宽度兜底（≤991px） ---
   shop.css 在 ≤991px 把 .account-layout 设为 grid-template-columns:1fr，
   而 1fr 等价于 minmax(auto,1fr)，其自动最小值取该列内容的 min-content。
   移动端侧栏里的 .account-menu 是「不换行 + li{flex:none}」的横滑菜单，
   它的 min-content ≈ 全部菜单项宽度之和（约 1372px），会把整列撑到 1372px；
   再叠加 html,body{overflow-x:clip}，表现为右侧内容被裁掉且无法横滑。
   改用 minmax(0,1fr) 让轨道宽度只服从容器，并由菜单自身横滑承接溢出。 */
@media only screen and (max-width: 991px) {
    .account-layout { grid-template-columns: minmax(0, 1fr); }
    .account-side { min-width: 0; }
}

/* ==================== 28. 会员中心子页面组件统一 ====================
   覆盖：退换货 / 服务工单 / 咨询 / 客服 / 优惠券 / 下载 / 地址 / 积分 / 资料 / 会员首页。
   目标：与产品页、§27 同一套设计语言（发丝线 + 圆角 + 弱阴影 + 令牌配色）。
   说明：本段在 shop.css 之后加载，同权重可覆盖；模板中 PHP 动态生成的颜色与布局
        （如 rma_status_color()、$isSelf 对齐）保留内联，不迁入 CSS。 */

/* --- 28.1 通用工具类（替代模板里写死的色值 / 布局 / 图片尺寸） --- */
.u-muted { color: var(--muted); }
.u-dim { color: #98a2b3; }
.u-sub { color: #475467; }
.u-danger { color: #f56c6c; }
.u-success { color: #16a34a; }
.u-primary { color: var(--primary); }
.u-12 { font-size: 12px; } .u-13 { font-size: 13px; } .u-14 { font-size: 14px; }
.u-bold { font-weight: 600; }
.u-m0 { margin: 0; }
.u-mt4 { margin-top: 4px; } .u-mt8 { margin-top: 8px; }
.u-mt10 { margin-top: 10px; } .u-mt24 { margin-top: 24px; }
.u-flex1 { flex: 1; min-width: 0; }
.u-nowrap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-right { text-align: right; }
.u-center { text-align: center; }
.u-hr { border-top: 1px solid var(--line); }
.u-row { display: flex; gap: 12px; align-items: center; }
.u-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.u-col { display: flex; flex-direction: column; gap: 8px; }
.thumb-36 { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.thumb-42 { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex: none; }
.thumb-50 { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; flex: none; }
.thumb-64 { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.thumb-80 { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { color: var(--primary); }
.link-muted { font-size: 13px; color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--primary); }
.theme-btn.btn-sm { padding: 5px 14px; font-size: 12px; }
.theme-btn.btn-xs { padding: 4px 12px; font-size: 12px; }
.hint-line { font-size: 13px; color: var(--muted); }
.hint-line i { color: var(--primary); }
.ic-muted { color: var(--muted); margin-right: 6px; }
.tag-soft {
    display: inline-block; margin-left: 6px; padding: 2px 8px;
    font-size: 11px; border-radius: 999px;
    background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
html[data-theme="dark"] .u-dim, html[data-theme="dark"] .u-sub { color: #8b98ab; }
html[data-theme="dark"] .u-danger { color: #fca5a5; }
html[data-theme="dark"] .u-success { color: #4ade80; }
html[data-theme="dark"] .tag-soft { background: #0f1626; border-color: #1e2836; color: #8b98ab; }

/* --- 28.2 列表页工具行 / 表格（与订单列表同规格） --- */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-toolbar .theme-btn { flex: none; }
.account-title-row { margin: 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-section .shop-table { border-radius: var(--radius); overflow: hidden; }
.account-section .shop-table thead th {
    background: var(--bg); color: var(--muted);
    font-size: 12px; font-weight: 600; padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.account-section .shop-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.account-section .shop-table tbody tr:last-child td { border-bottom: none; }
.cell-product { display: flex; gap: 8px; align-items: center; }
.cell-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* --- 28.3 优惠券卡 --- */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.coupon-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px; background: var(--card);
    border: 2px dashed var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.coupon-card.is-unused { border-color: var(--primary); }
.coupon-card.is-used, .coupon-card.is-expired { opacity: .62; }
.coupon-card.is-unavailable { opacity: .8; }
.coupon-card.is-unavailable .coupon-ico { color: var(--muted); }
.coupon-status-badge {
    font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
    background: #fdecec; color: #c0392b;
}
.coupon-unavailable-tip { color: #b26a00; }
html[data-theme="dark"] .coupon-status-badge { background: #3a1f22; color: #f28b82; }
.coupon-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.coupon-card-head strong { font-size: 16px; display: inline-flex; align-items: center; }
.coupon-ico { color: var(--muted); margin-right: 6px; }
.coupon-card.is-unused .coupon-ico { color: var(--primary); }
.coupon-type {
    font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
    background: var(--bg); color: var(--muted);
}
.coupon-code-copy { display: inline-flex; align-items: center; cursor: pointer; }
.coupon-code-copy code {
    font-size: 18px; font-weight: 700; letter-spacing: 1px; color: var(--ink);
    padding: 4px 12px; border-radius: 8px;
    background: var(--bg); border: 1px dashed var(--line);
}
.coupon-scissors { color: var(--primary); margin-left: 10px; font-size: 22px; }
.coupon-amount { font-size: 16px; font-weight: 700; color: #16a34a; }
.coupon-meta { font-size: 12px; color: var(--muted); }
.coupon-dates { font-size: 11px; color: var(--muted); }
html[data-theme="dark"] .coupon-code-copy code { background: #0f1626; border-color: #1e2836; color: #d6dfee; }
html[data-theme="dark"] .coupon-amount { color: #4ade80; }

/* 领券中心：与会员中心券卡同一套样式，虚线/徽标跟随主题色 */
.coupon-grid-claim { max-width: 1100px; margin: 0 auto; }
.coupon-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.coupon-more-btn { height: 38px; padding: 0 16px; font-size: 14px; }
.coupon-back-row { max-width: 1100px; margin: 0 auto 18px; }
.coupon-back-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.coupon-card-claim { border-color: var(--primary); }
.coupon-card-claim .coupon-ico { color: var(--primary); }
.coupon-card-claim .coupon-type { background: var(--primary-soft); color: var(--primary); }
.coupon-card-claim .coupon-amount { font-size: 22px; }
.coupon-claim-form { margin-top: auto; }
.coupon-claim-form, .coupon-claim-btn, .coupon-claimed-btn { width: 100%; }
.coupon-claim-btn, .coupon-claimed-btn { justify-content: center; }
.coupon-claimed-btn { opacity: .6; cursor: not-allowed; }

/* --- 28.4 下载列表 --- */
.dl-group {
    padding: 14px 18px; margin-bottom: 16px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.dl-group-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dl-group-title { font-size: 14px; font-weight: 600; }
.dl-group-meta { font-size: 12px; color: var(--muted); }
.dl-file-list { display: flex; flex-direction: column; gap: 8px; }
.dl-file {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 12px; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--line);
}
.dl-file-name { font-size: 13px; color: var(--ink); display: flex; align-items: center; }
html[data-theme="dark"] .dl-file { background: #0f1626; border-color: #1e2836; }

/* --- 28.5 咨询 / 客服对话线程 --- */
.consult-thread, .cs-thread {
    padding: 18px; max-height: 520px; overflow-y: auto;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.consult-thread [data-empty], .cs-thread [data-empty] { color: var(--muted); }
.consult-msg, .cs-msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
.consult-msg.is-self, .cs-msg.is-self { align-items: flex-end; }
.msg-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg-bubble {
    max-width: 78%; padding: 10px 14px; font-size: 14px; line-height: 1.6;
    white-space: pre-wrap; word-break: break-word; border-radius: 12px;
    background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.consult-msg.is-self .msg-bubble, .cs-msg.is-self .msg-bubble {
    background: var(--primary); color: #fff; border-color: transparent;
}
.consult-msg.is-ai .msg-bubble, .cs-msg.is-ai .msg-bubble {
    background: var(--primary-soft); border-color: rgba(var(--primary-rgb), .2);
}
html[data-theme="dark"] .consult-msg.is-ai .msg-bubble,
html[data-theme="dark"] .cs-msg.is-ai .msg-bubble {
    background: rgba(var(--primary-rgb), .18); border-color: rgba(var(--primary-rgb), .3);
}
.msg-sys { text-align: center; margin-bottom: 14px; }
.msg-sys span {
    display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 999px;
    background: var(--bg); color: var(--muted); border: 1px solid var(--line);
}
.consult-closed-box, .closed-box {
    margin-top: 14px; padding: 12px 16px; font-size: 13px; color: var(--muted);
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.consult-reply-form { margin-top: 14px; }
.consult-reply-input {
    width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 14px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--ink);
}
.consult-reply-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.cs-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 6px; }
.cs-meta-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.cs-tool {
    display: inline-block; padding: 6px 12px; font-size: 12px; color: #475467;
    background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    text-decoration: none; cursor: pointer;
}
.cs-tool:hover { color: var(--primary); border-color: var(--primary); }
html[data-theme="dark"] .cs-tool { background: #131a2c; border-color: #1e2836; color: #a9b6c9; }
html[data-theme="dark"] .cs-tool:hover { color: var(--primary); border-color: var(--primary); }

/* --- 28.6 退换货：进度条 / 提示卡 / 物流表 / 凭证画廊 --- */
.account-section .rma-progress::before { background: var(--line); }
.account-section .rma-step { color: var(--muted); }
.account-section .rma-step .dot { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.account-section .rma-step.done { color: var(--ink); }
.account-section .rma-step.done .dot { background: var(--primary); color: #fff; border-color: var(--primary); }
.account-section .rma-gallery { max-width: 560px; }
.account-section .rma-gallery-item { border-color: var(--line); background: var(--card); }
.rma-card-h { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rma-note { padding: 12px 16px; margin-bottom: 14px; font-size: 13px; color: #475467; }
.rma-tip-ship { border-left: 3px solid var(--primary); }
.rma-tip-overdue { color: #f56c6c; font-weight: 600; }
.ship-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.ship-kv td { padding: 3px 0; vertical-align: top; }
.ship-kv td:first-child { color: var(--muted); width: 90px; }
.ship-kv td:last-child { color: var(--ink); }
.rma-file-tip { font-size: 12px; color: var(--muted); }
html[data-theme="dark"] .rma-note { color: #a9b6c9; }

/* --- 28.7 服务工单 --- */
.sg-row {
    padding: 12px; margin-bottom: 10px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.sg-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sg-row-del { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 13px; }
.sg-row-del:hover { text-decoration: underline; }
.current-file-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.file-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 8px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.file-chip-del { font-size: 12px; color: var(--muted); }
.file-chip-del:hover { color: #dc2626; }
.case-msg { margin-bottom: 10px; }
.svc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-info-table { width: 100%; margin-top: 4px; }
.svc-info-table td { padding: 8px 10px; vertical-align: top; }
.svc-info-table td:first-child { width: 180px; color: var(--muted); font-size: 13px; }
.svc-info-table td:last-child { font-size: 14px; }
.svc-deliver {
    margin-top: 14px; padding: 16px; border-radius: var(--radius);
    background: var(--primary-soft); border: 1px solid rgba(var(--primary-rgb), .2);
}
.svc-deliver h4 { margin: 0 0 8px; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.svc-deliver-body { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.svc-reject { margin-top: 4px; white-space: pre-wrap; color: #dc2626; }
html[data-theme="dark"] .sg-row { background: #0f1626; border-color: #1e2836; }
html[data-theme="dark"] .file-chip { background: #131a2c; border-color: #1e2836; }
html[data-theme="dark"] .svc-deliver { background: rgba(var(--primary-rgb), .14); border-color: rgba(var(--primary-rgb), .3); }

/* --- 28.8 个人资料 --- */
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.profile-avatar {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none;
    border: 2px solid var(--line); background: var(--bg);
}
.profile-avatar-ph {
    width: 84px; height: 84px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); color: var(--muted); font-size: 34px; border: 2px solid var(--line);
}
.profile-status { font-size: 12px; color: var(--muted); margin-top: 6px; }
.profile-inline { display: flex; align-items: center; gap: 8px; }
.profile-inline label { margin: 0; font-weight: 400; cursor: pointer; }
.profile-readonly { background: var(--bg); cursor: not-allowed; }
.profile-form-box { margin-bottom: 24px; }

/* --- 28.9 积分 --- */
.points-balance-card {
    padding: 24px; margin-bottom: 20px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), .28);
}
.points-balance-sub { font-size: 14px; opacity: .92; }
.points-balance-val { font-size: 34px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.points-plus { color: #16a34a; font-weight: 700; }
.points-minus { color: #dc2626; font-weight: 700; }
html[data-theme="dark"] .points-plus { color: #4ade80; }
html[data-theme="dark"] .points-minus { color: #fca5a5; }

/* --- 28.10 会员首页欢迎区 / 快捷入口（shop.css 渐变取主题品牌色，这里统一为设计系统主色） --- */
.ac-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), .24);
}
.ac-quick-item {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink);
}
.ac-quick-item:hover { border-color: var(--primary); color: var(--primary); }
.ac-recent {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* --- 28.11 地址簿补充（shop.css 已用令牌，这里补表单卡与分组标题） --- */
.address-form-box {
    padding: 20px 22px; margin-bottom: 20px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.address-type-row { display: flex; gap: 18px; align-items: center; }
.address-type-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; font-weight: 500; }
.address-group-title { font-size: 14px; margin: 18px 0 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.address-line { margin: 2px 0; }

/* --- 28.11b 小件补齐（模板迁移期按需使用） --- */
.thumb-40 { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.i-mr6 { margin-right: 6px; }
.card-pad-14 { padding: 14px; margin-bottom: 14px; }
.card-pad-16 { padding: 16px; margin-bottom: 14px; }
.rma-qty { width: 70px; padding: 4px 8px; font-size: 13px; }
.account-btn-plain { border: none; cursor: pointer; }
.badge-warn { background: #e6a23c1a; color: #e6a23c; }
html[data-theme="dark"] .badge-warn { background: rgba(230, 162, 60, .18); color: #fcd34d; }

/* --- 28.12 移动端（复用 §27.10 模式，仅补齐子页面专属项） --- */
@media only screen and (max-width: 767px) {
    /* 工具行：主按钮通栏 */
    .list-toolbar { margin-bottom: 12px; }
    .list-toolbar .theme-btn { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; }
    /* 优惠券单列 */
    .coupon-grid { grid-template-columns: 1fr; }
    /* 对话区收紧 */
    .consult-thread, .cs-thread { max-height: 60vh; padding: 14px; }
    .msg-bubble { max-width: 86%; }
    .msg-sys { margin-bottom: 12px; }
    /* 表单控件：浅灰填充 + 16px 防 iOS 聚焦放大（对齐 §27.10） */
    .consult-reply-input,
    .address-form-box input, .address-form-box select,
    .case-field input, .case-field select, .case-field textarea {
        background: #f4f5f7; border: 1.5px solid transparent; border-radius: 12px; font-size: 16px;
    }
    .consult-reply-input:focus,
    .address-form-box input:focus, .address-form-box select:focus,
    .case-field input:focus, .case-field select:focus, .case-field textarea:focus {
        background: #fff; border-color: var(--primary);
    }
    html[data-theme="dark"] .consult-reply-input,
    html[data-theme="dark"] .address-form-box input,
    html[data-theme="dark"] .address-form-box select,
    html[data-theme="dark"] .case-field input,
    html[data-theme="dark"] .case-field select,
    html[data-theme="dark"] .case-field textarea { background: #0b1120; color: #d6dfee; }
    /* 退换货进度：字号与圆点收紧 */
    .account-section .rma-step { font-size: 11px; }
    .account-section .rma-step .dot { width: 26px; height: 26px; }
    .account-section .rma-progress::before { top: 13px; }
    /* 服务工单资料表 → 卡化 */
    .svc-info-table, .svc-info-table tbody, .svc-info-table tr, .svc-info-table td { display: block; width: auto !important; }
    .svc-info-table td:first-child { width: auto !important; padding-bottom: 0; }
    .svc-info-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .svc-info-table tr:last-child { border-bottom: none; }
    /* 积分余额卡 / 头像区 */
    .points-balance-val { font-size: 28px; }
    .profile-head { gap: 12px; }
    .profile-avatar, .profile-avatar-ph { width: 68px; height: 68px; font-size: 28px; }
    /* 主操作吸底（模板给 section 加 has-sticky，给按钮加 account-sticky-bar） */
    .account-section.has-sticky { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important; }
    .account-sticky-bar {
        position: fixed; left: 12px; right: 12px;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 1080; min-height: 48px; margin: 0;
        display: flex; align-items: center; justify-content: center;
    }
    .account-sticky-bar .theme-btn, .account-sticky-bar > button { width: 100%; min-height: 48px; }
    html[data-theme="dark"] .svc-info-table tr { border-bottom-color: #1e2836; }
}

/* ==================== 深色模式系统性补漏（2026-10-21 全站审计） ====================
   来源：旧主题 style.css 与移动端 APP 化样式层里存在大量硬编码浅色值
   （#24262d / #242424 / #101828 / #ffffff / #555 等），深色下会白底黑字或黑底黑字。
   此处统一收口：选择器一律加 html[data-theme="dark"] 提升特异性；
   原浅色规则带 !important 的，这里对等补 !important，保证顺序无关。
   新页面若沿用旧主题区块，优先在此追加，不要改 style.css（那是共用底层主题层）。
   -------------------------------------------------------------------------- */

/* 1. 旧主题白色区块（#ffffff） */
html[data-theme="dark"] .services-page-section.style-two,
html[data-theme="dark"] .fluid-section-one.style-two { background-color: var(--bg) !important; }

/* 2. 服务三栏卡片：容器白底 + 正文灰字（#a0a0a0） */
html[data-theme="dark"] .service-block-three .lower-content,
html[data-theme="dark"] .service-block-three .inner-box .lower-content { background: transparent !important; }
html[data-theme="dark"] .service-block-three .lower-content h3,
html[data-theme="dark"] .service-block-three .lower-content h3 a { color: var(--ink) !important; }
html[data-theme="dark"] .service-block-three .lower-content .text { color: #b6c1d4 !important; }

/* 3. 新闻/文章标题（#24262d）与摘要（#4a4a4a） */
html[data-theme="dark"] .news-block-three .lower-content h3,
html[data-theme="dark"] .news-block-three .lower-content h3 a,
html[data-theme="dark"] .news-block-two .inner-box .lower-content .lower-box h3 a,
html[data-theme="dark"] .news-block .inner-box .lower-content h3 a { color: var(--ink) !important; }
html[data-theme="dark"] .news-block-three .lower-content h3 a:hover,
html[data-theme="dark"] .news-block .inner-box .lower-content h3 a:hover { color: var(--primary) !important; }
html[data-theme="dark"] .news-block-three .lower-content .text,
html[data-theme="dark"] .news-block .lower-content .text { color: #b6c1d4 !important; }

/* 4. 富文本正文（.content.rich / .text.rich 内 #555 段落） */
html[data-theme="dark"] .content.rich p,
html[data-theme="dark"] .content.rich li,
html[data-theme="dark"] .content.rich td,
html[data-theme="dark"] .content.rich blockquote,
html[data-theme="dark"] .text.rich p,
html[data-theme="dark"] .text.rich li { color: #b6c1d4 !important; }
html[data-theme="dark"] .content.rich h1,
html[data-theme="dark"] .content.rich h2,
html[data-theme="dark"] .content.rich h3,
html[data-theme="dark"] .content.rich h4,
html[data-theme="dark"] .text.rich h1,
html[data-theme="dark"] .text.rich h2,
html[data-theme="dark"] .text.rich h3,
html[data-theme="dark"] .text.rich h4 { color: var(--ink) !important; }
html[data-theme="dark"] .content.rich a,
html[data-theme="dark"] .text.rich a { color: var(--primary) !important; }

/* 5. 列表页工具条下拉 / 通用 select（旧主题白底黑字） */
html[data-theme="dark"] .sort-box select,
html[data-theme="dark"] .shop-toolbar select,
html[data-theme="dark"] .shop-toolbar input {
    background: var(--card) !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}

/* 5.1 通用区块标题（「相关产品」「我们的服务」等）：旧主题硬编码 #101828，
   桌面与移动端都会出现，必须放在媒体查询外全局生效 */
html[data-theme="dark"] .ux-sec-title h2,
html[data-theme="dark"] .sec-title h2,
html[data-theme="dark"] .title-box h2,
html[data-theme="dark"] .group-title h4 { color: var(--ink) !important; }

/* 6. 移动端 APP 化层的硬编码浅色（浅色规则带 !important，需对等压制） */
@media only screen and (max-width: 767px) {
    /* 内页顶栏：白底 + #101828 标题 + 面包屑（L2360/L2363/L2384 均带 !important） */
    html[data-theme="dark"] .page-title {
        background: #0f1524 !important;
        background-image: none !important;
        border-bottom: 1px solid #1e2836 !important;
    }
    html[data-theme="dark"] .page-title h2 { color: var(--ink) !important; }
    html[data-theme="dark"] .page-title .page-breadcrumb li { color: #94a3b8 !important; }
    html[data-theme="dark"] .page-title .page-breadcrumb li a { color: #98a2b3 !important; }
    html[data-theme="dark"] .page-title .page-breadcrumb li:last-child { color: var(--ink) !important; }
    html[data-theme="dark"] .page-title .page-breadcrumb li + li::before { color: #475467 !important; }
    /* 频道标题 / 区块标题：移动端硬编码 #101828（L2001/L2043/L2059/L2143） */
    html[data-theme="dark"] .page-title h2 { color: var(--ink) !important; }
    /* 移动端卡片标题/正文里其它硬编码浅色（L2055 起的搜索与标题体系） */
    html[data-theme="dark"] .ux-m-search input { color: var(--ink) !important; }
    html[data-theme="dark"] .ux-m-search form { background: #1b2334 !important; }
}

/* ==================== 边栏优化（2026-10-21） ====================
   范围：产品/新闻列表页 .sidebar-side
   目标：统一小件节奏、标题层级、分类/筛选交互状态，并补齐深色与触控细节
   ------------------------------------------------------------------ */

/* 1. 小件节奏：旧主题 40px 死间距改为等距布局 */
.sidebar-page-container .sidebar-side .sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-page-container .sidebar .sidebar-widget { margin-bottom: 0; padding: 20px; }

/* 2. 标题：旧主题金色短线（#e2b15e）改为主题色竖条 */
.sidebar .sidebar-title { margin-bottom: 14px; }
.sidebar .sidebar-title h2 {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 800; letter-spacing: .01em;
    padding-right: 0; text-transform: none; color: var(--ink);
}
.sidebar .sidebar-title h2::before {
    content: ''; flex: none; width: 3px; height: 15px;
    border-radius: 2px; background: var(--primary);
}
.sidebar .sidebar-title h2::after { display: none; }

/* 3. 搜索框：44px 触控高度，内嵌图标按钮 */
.sidebar .search-box .form-group input[type="text"],
.sidebar .search-box .form-group input[type="search"] {
    height: 44px; padding: 8px 44px 8px 14px;
    border-radius: 10px; font-size: 14px;
    background: var(--bg); color: var(--ink); border-color: var(--line);
}
.sidebar .search-box .form-group input::placeholder { color: var(--muted); }
.sidebar .search-box .form-group button { width: 44px; height: 44px; color: var(--muted); }
.sidebar .search-box .form-group button:hover { color: var(--primary); }

/* 4. 分类树：胶囊行 + 计数徽标，展开箭头随状态旋转 */
.sidebar .cat-list-shop > li { margin-bottom: 2px; }
.sidebar .cat-row { display: flex; align-items: center; gap: 2px; }
.sidebar .cat-row .cat-link { flex: 1 1 auto; min-width: 0; }
.sidebar .cat-list li a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 8px;
    font-size: 14px; color: var(--ink);
    transition: background .18s ease, color .18s ease;
}
.sidebar .cat-list li a:hover { background: var(--primary-soft); color: var(--primary); }
.sidebar .cat-list li a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.sidebar .cat-count {
    flex: none; min-width: 22px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--dark-soft); color: var(--muted);
    font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
}
.sidebar .cat-toggle {
    flex: none; width: 28px; height: 28px; border: none; background: none;
    border-radius: 8px; color: var(--muted); cursor: pointer;
}
.sidebar .cat-toggle:hover { background: var(--primary-soft); color: var(--primary); }
.sidebar .cat-toggle i { font-size: 11px; transition: transform .2s ease; }
.sidebar .cat-node.open > .cat-row .cat-toggle i { transform: rotate(90deg); }

/* 5. 筛选组：分隔线 + 展开箭头旋转 + 选项行悬停 */
.sidebar-filter .filter-group { border-bottom: 1px solid var(--line); padding: 2px 0; }
.sidebar-filter .filter-group:last-of-type { border-bottom: none; }
.sidebar-filter .filter-group > summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; cursor: pointer; list-style: none;
    font-size: 13px; font-weight: 700; color: var(--ink);
}
.sidebar-filter .filter-group > summary::-webkit-details-marker { display: none; }
.sidebar-filter .filter-group > summary i { color: var(--muted); font-size: 11px; transition: transform .22s ease; }
.sidebar-filter .filter-group[open] > summary i { transform: rotate(180deg); }
.sidebar-filter .filter-body { padding-bottom: 8px; animation: uxSbFade .22s ease; }
@keyframes uxSbFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sidebar-filter .filter-values li a {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--ink);
    transition: background .16s ease;
}
.sidebar-filter .filter-values li a:hover { background: var(--primary-soft); }
.sidebar-filter .filter-values li a.active { color: var(--primary); font-weight: 700; }
.sidebar-filter .swatch { border: 2px solid var(--line); border-radius: 10px; }
.sidebar-filter .swatch.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.sidebar-filter .filter-chip {
    border-radius: 999px; background: var(--primary-soft); color: var(--primary);
    padding: 4px 10px; font-size: 12px;
}
.sidebar-filter .clear-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sidebar-filter .clear-filter:hover { color: var(--primary); }

/* 6. 询价卡片：图片上压深色渐变，保证文字与按钮可读 */
.sidebar-page-container .sidebar .contact-widget { padding: 0; overflow: hidden; }
.sidebar .contact-widget .widget-content {
    position: relative; isolation: isolate;
    padding: 24px 20px; margin: 0; border-radius: var(--radius);
    background-size: cover; background-position: center;
}
.sidebar .contact-widget .widget-content::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .52));
}
.sidebar .contact-widget .widget-content h3 { color: #fff; font-size: 18px; line-height: 1.35; margin-bottom: 14px; }
.sidebar .contact-widget .theme-btn { display: flex; width: 100%; justify-content: center; }

/* 7. 桌面侧栏：随页面正常滚动
   原先为宽屏侧栏做了「吸顶 + 限高 + 内层滚动」，分类数量多时列表被视口截断，
   且页面滚动时侧栏不动，容易被误认为无法滚动；这里改为正常文档流，随页面滚动看完全部分类。 */

/* 8. 深色细节（var 未覆盖的硬编码值） */
html[data-theme="dark"] .sidebar .cat-list li a { color: #b6c1d4; }
html[data-theme="dark"] .sidebar .cat-list li a.active { color: var(--primary); }
html[data-theme="dark"] .sidebar .cat-count { background: #1e2836; color: #98a2b3; }
html[data-theme="dark"] .sidebar-filter .filter-values li a { color: #b6c1d4; }
html[data-theme="dark"] .sidebar-filter .filter-values li a.active { color: var(--primary); }
html[data-theme="dark"] .sidebar-filter .swatch { border-color: #2a3648; }
html[data-theme="dark"] .sidebar .search-box .form-group input[type="text"],
html[data-theme="dark"] .sidebar .search-box .form-group input[type="search"] { background: #101728; }
html[data-theme="dark"] .sidebar .contact-widget .widget-content::before {
    background: linear-gradient(135deg, rgba(6, 10, 20, .9), rgba(6, 10, 20, .6));
}

/* 9. 移动端筛选抽屉：固定头/滚动体/吸底操作条 */
@media only screen and (max-width: 767px) {
    .m-filter-sheet {
        display: flex; flex-direction: column; overflow: hidden;
        padding: 0 16px; background: var(--card);
    }
    .m-filter-sheet .m-sheet-head {
        position: static; flex: none;
        padding: 14px 0 12px; margin-bottom: 0;
        background: var(--card); border-bottom: 1px solid var(--line);
    }
    .m-filter-sheet .m-sheet-head h3 { color: var(--ink); }
    .m-filter-sheet .m-sheet-close {
        width: 40px; height: 40px; background: var(--primary-soft); color: var(--primary);
    }
    .m-filter-sheet .m-sheet-body {
        flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding: 12px 0 16px;
    }
    .m-filter-sheet .cat-list li a { padding: 10px 12px; font-size: 16px; }
    /* 抽屉内的搜索框是克隆节点，脱离了 .sidebar 作用域，需单独补样式 */
    .m-filter-sheet .search-box .form-group { position: relative; margin: 0 0 12px; }
    .m-filter-sheet .search-box .form-group input[type="text"],
    .m-filter-sheet .search-box .form-group input[type="search"] {
        width: 100%; height: 44px; padding: 8px 44px 8px 14px;
        border: 1px solid var(--line); border-radius: 10px;
        background: var(--bg); color: var(--ink); font-size: 14px;
    }
    .m-filter-sheet .search-box .form-group button {
        position: absolute; right: 0; top: 0; width: 44px; height: 44px;
        border: none; background: none; color: var(--muted);
    }
    .m-filter-sheet .sidebar-widget { border-bottom-color: var(--line); }
    .m-sheet-foot {
        flex: none; margin: 0 -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line); background: var(--card);
    }
    .m-sheet-foot .theme-btn { display: flex; width: 100%; justify-content: center; min-height: 46px; }
    html[data-theme="dark"] .m-filter-sheet { background: var(--card); }
    html[data-theme="dark"] .m-filter-sheet .m-sheet-head { background: var(--card); border-bottom-color: var(--line); }
    html[data-theme="dark"] .m-sheet-foot { background: var(--card); border-top-color: var(--line); }
    html[data-theme="dark"] .m-filter-sheet .m-sheet-close { background: #1e2836; color: #d6dfee; }
    /* 筛选按钮上的已选数量徽标 */
    .m-filter-btn .ux-mf-badge {
        min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
        border-radius: 999px; background: var(--primary); color: #fff;
        font-size: 11px; font-weight: 700;
        display: inline-flex; align-items: center; justify-content: center;
    }
}

/* ==================== 详情页「相关产品」标题统一（2026-10-21） ====================
   现状：旧规则为 22px 居中 + 两侧「◆」装饰。此处统一为：主题色竖条 + 20px 粗体，
   左对齐，层级高于详情页 tab 标题（18px）。
   -------------------------------------------------------------------------- */
.related-products .title-box h2 {
    display: flex !important; align-items: center; gap: 8px;
    font-size: 22px !important; font-weight: 800 !important; letter-spacing: .01em;
    text-align: left !important; margin: 0 0 14px !important; padding: 0 !important;
    color: var(--ink) !important;
}
.related-products .title-box h2::before {
    content: '' !important; display: block !important; flex: none;
    position: static !important; width: 3px !important; height: 20px !important;
    border-radius: 2px; background: var(--primary) !important;
}
.related-products .title-box h2::after { content: none !important; display: none !important; }

/* ==================== 新闻页优化（2026-10-21） ====================
   现状：新闻列表/详情页的边栏分类被 site.css 移动端胶囊规则与 shop.css 旧胶囊
   规则抢走（文字与底色同为品牌色、字号 13px），「近期文章」标题在深色下仍是
   #242424；详情页「相关新闻」标题为 20px 与「相关产品」风格不一致。
   此处统一为与产品页一致的边栏行式分类 + 15px 区块标题。
   ------------------------------------------------------------------ */

/* 1. 边栏分类：无论桌面/移动端均为纵向行式列表（覆盖 site.css 横向胶囊） */
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list {
    display: block; overflow: visible; gap: 0; padding-bottom: 0;
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list > li {
    flex: none; margin-bottom: 2px;
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a {
    display: flex !important; align-items: center; justify-content: space-between;
    gap: 8px; min-width: 0;
    padding: 8px 10px !important; border: 0 !important; border-radius: 8px !important;
    background: transparent !important; box-shadow: none !important;
    color: var(--ink) !important; font-size: 14px !important; font-weight: 500;
    white-space: normal !important; text-transform: none;
    transition: background .18s ease, color .18s ease;
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a:hover {
    background: var(--primary-soft) !important; color: var(--primary) !important;
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a.active {
    background: var(--primary-soft) !important; color: var(--ink) !important;
    font-weight: 700; box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a .cat-name {
    display: flex; align-items: center; gap: 8px;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a .cat-name i {
    flex: none; width: 16px; text-align: center; font-size: 12px; color: var(--muted);
}
/* 计数徽标：旧规则在选中态给实心品牌底 + 白字，改为与产品页一致的浅底徽标 */
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a .cat-count {
    flex: none; min-width: 22px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; font-size: 11px; font-weight: 600;
    background: var(--dark-soft) !important; color: var(--muted) !important;
}
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list li a.active .cat-count {
    background: rgba(var(--primary-rgb), .18) !important; color: var(--ink) !important;
}
/* 分类分隔线（shop.css 的浅灰线在深色下不可见） */
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list > li,
.sidebar-page-container .sidebar .sidebar-blog-category .cat-list .cat-children li {
    border-bottom: 0 !important;
}

/* 2. 近期文章：缩略图圆角 + 标题层级 + 深色可读性（旧值 #242424） */
.sidebar-page-container .sidebar .popular-posts .post {
    padding-left: 84px; min-height: 84px;
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.sidebar-page-container .sidebar .popular-posts .post:last-child {
    margin-bottom: 0; padding-bottom: 0; border-bottom: 0;
}
.sidebar-page-container .sidebar .popular-posts .post .post-thumb {
    width: 68px; border-radius: 8px; overflow: hidden;
}
.sidebar-page-container .sidebar .popular-posts .post .text {
    font-size: 14px; font-weight: 600; line-height: 1.45;
    margin: 0 0 4px; text-transform: none;
}
.sidebar-page-container .sidebar .popular-posts .post .text a { color: var(--ink); }
.sidebar-page-container .sidebar .popular-posts .post .post-info {
    font-size: 12px; color: var(--muted);
}

/* 3. 列表卡片：旧主题写死浅灰底 #f5f5f5，深色下标题为浅色 → 整块不可读 */
.sidebar-page-container .news-block-three .inner-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.sidebar-page-container .news-block-three .lower-content { padding: 20px 22px 24px; }
.sidebar-page-container .news-block-three .lower-content .text { color: var(--muted); }
/* 日期徽标与「阅读更多」统一为设计令牌（旧主题黑底金字/描边按钮） */
.sidebar-page-container .news-block-three .image-box .date {
    left: 12px; bottom: 12px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    background: rgba(var(--primary-rgb), .92) !important; color: #fff !important;
}
.sidebar-page-container .news-block-three .post-meta .post-info li a {
    color: var(--muted); font-size: 12px; font-weight: 600;
}
.sidebar-page-container .news-block-three .post-meta .post-info li a:hover { color: var(--primary); }
.sidebar-page-container .news-block-three .link-box .read-more {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent; color: var(--ink) !important;
    font-family: var(--font); font-size: 13px; font-weight: 700;
    text-transform: none; letter-spacing: 0; text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sidebar-page-container .news-block-three .link-box .read-more:hover {
    background: var(--primary-soft) !important; color: var(--primary) !important;
    border-color: transparent !important;
}

/* 4. 详情页「相关新闻」：与「相关产品」同款 15px 主题色竖条标题 */
.sidebar-page-container .related-box {
    margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line);
}
.related-box .group-title h4 {
    display: flex !important; align-items: center; gap: 8px;
    font-size: 16px !important; font-weight: 800 !important; letter-spacing: .01em;
    text-align: left !important; margin: 0 0 12px !important; padding: 0 !important;
    color: var(--ink) !important;
}
.related-box .group-title h4::before {
    content: '' !important; display: block !important; flex: none;
    position: static !important; width: 3px !important; height: 15px !important;
    border-radius: 2px; background: var(--primary) !important;
}
.related-box .cat-list { display: grid; gap: 8px; }
.related-box .cat-list li a {
    display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px !important; margin: 0 !important;
    border: 1px solid var(--line) !important; border-radius: 10px;
    background: var(--bg); color: var(--ink) !important;
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.related-box .cat-list li a::after { content: none !important; display: none !important; }
.related-box .cat-list li a:hover {
    background: var(--primary-soft) !important; color: var(--primary) !important;
    border-color: transparent !important;
}

/* 5. 详情页正文：标题/正文/摘要的深色可读性（旧值 #242424 / #797979） */
html[data-theme="dark"] .blog-single .inner-box .lower-content .lower-box h3,
html[data-theme="dark"] .blog-single .inner-box .lower-content .lower-box h4,
html[data-theme="dark"] .blog-single .inner-box .lower-content .lower-box h5,
html[data-theme="dark"] .blog-single .bold-text { color: var(--ink) !important; }
html[data-theme="dark"] .blog-single .inner-box .lower-content .lower-box .text,
html[data-theme="dark"] .blog-single .inner-box .lower-content .lower-box .text p,
html[data-theme="dark"] .blog-single .inner-box .lower-content .lower-box .text li { color: #b6c1d4 !important; }
html[data-theme="dark"] .blog-single .post-meta .post-info li a { color: var(--primary) !important; }
html[data-theme="dark"] .blog-single .post-meta .post-info li:before { color: #475467 !important; }

/* ==================== 移动端右侧溢出根治（2026-10-21） ====================
   成因：① 旧内核（部分安卓 WebView/QQ/UC）不识别 overflow-x: clip，整页会退化为
   可左右拖动；② 双列网格行使用 -6px 负外边距、横滑区使用 -14px 全出血，把文档
   撑宽十几像素，在 ① 的环境下表现为内容区右侧被切。
   做法：旧内核兜底 hidden、新内核保留 clip；负外边距行改为 0；横滑区由父级裁剪。
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
    /* 兜底：不支持 clip 的环境用 hidden（仅裁剪横向，不影响纵向滚动） */
    html, body, .page-wrapper { overflow-x: hidden; }
    @supports (overflow-x: clip) {
        html, body, .page-wrapper { overflow-x: clip; }
    }
    /* 双列网格：取消负外边距，间距全部由列内 padding 承担，不再向右侧出血 */
    .sidebar-page-container .content-side > .row,
    .shop-section .row,
    .ux-home-sec .row,
    .related-products .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* 横滑区（金刚区 / 服务 / 新闻）保留贴边滑动效果，但由父级裁剪，不撑宽文档 */
    .ux-home-sec,
    .ux-kk-sec,
    .services-page-section,
    .sidebar-page-container {
        overflow-x: hidden;
        overflow-x: clip;
    }
    /* 新闻详情：旧主题把 .lower-content 内边距压成 0，正文紧贴卡片边框，补回左右留白 */
    .blog-single .inner-box .lower-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .blog-single .inner-box .lower-content .post-meta,
    .blog-single .inner-box .lower-content .lower-box {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==================== 产品详情右栏信息面板 · 深色可读性（2026-10-21） ====================
   旧主题对库存类型/库存状态、属性标签、下拉框、数量输入使用硬编码
   #333 / #e0e3d8，深色模式下文字几乎不可见。统一改用设计令牌。
   ---------------------------------------------------------------------------------- */

/* 库存类型行 + 库存状态行 */
html[data-theme="dark"] .product-details .detail-ptype-line,
html[data-theme="dark"] .product-details .detail-stock-line {
    color: var(--ink) !important;
}

/* 选项标题（属性名 / 共享选项名） */
html[data-theme="dark"] .product-details .attr-row label {
    color: var(--ink) !important;
}
html[data-theme="dark"] .product-details .attr-row label .req {
    color: var(--primary) !important;
}
/* 颜色/图片选项下方的小字标签（旧值 --muted，12px 在深底上偏弱） */
html[data-theme="dark"] .product-details .attr-color-label,
html[data-theme="dark"] .product-details .attr-image-label {
    color: var(--ink) !important;
}
html[data-theme="dark"] .product-details .attr-color-label .val-adj {
    color: var(--muted) !important;
}

/* 下拉选项 */
html[data-theme="dark"] .product-details .attr-row select,
html[data-theme="dark"] .product-details .attr-select {
    background-color: var(--card) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}
html[data-theme="dark"] .product-details .attr-row select option {
    background: var(--card);
    color: var(--ink);
}

/* 数量输入 */
html[data-theme="dark"] .product-details .qty-box input {
    background: transparent !important;
    color: var(--ink) !important;
}

/* 阶梯价 / 小计辅助文字 */
html[data-theme="dark"] .product-details .tier-prices .tier-title,
html[data-theme="dark"] .product-details .tier-prices li {
    color: var(--muted) !important;
}
html[data-theme="dark"] .product-details .tier-prices li strong {
    color: var(--primary) !important;
}
/* 深色模式：选中的档位用主色实心，避免被上面的 muted 色覆盖 */
html[data-theme="dark"] .product-details .tier-prices li.on {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
html[data-theme="dark"] .product-details .tier-prices li.on strong {
    color: #fff !important;
}
html[data-theme="dark"] .product-details .sku-subtotal-label {
    color: var(--muted) !important;
}

@media only screen and (max-width: 767px) {
    /* 移动端阶梯价是浅色胶囊，深色下补底色与描边 */
    html[data-theme="dark"] .product-details .tier-prices li {
        background: var(--dark-soft) !important;
        border-color: var(--line) !important;
    }
    /* 选中档位保持主色实心 */
    html[data-theme="dark"] .product-details .tier-prices li.on {
        background: var(--primary) !important;
        border-color: var(--primary) !important;
        color: #fff !important;
    }
}

/* ==================== 产品列表：工具条 + 筛选组深色收口（2026-10-21） ====================
   shop.css 在 app.css 之后加载，硬编码的 #eaeaea / #ddd / #f0f0f0 会压过通用深色规则，
   这里用「深色作用域 + !important」把边框统一到 --line，避免深色下出现亮白描边与分隔线
   ------------------------------------------------------------------ */

/* 排序工具条外框：桌面端与卡片边框保持同一深色线（移动端为透明无边框，不覆盖） */
@media only screen and (min-width: 768px) {
    html[data-theme="dark"] .shop-toolbar {
        background-color: var(--card) !important;
        border-color: var(--line) !important;
    }
}
html[data-theme="dark"] .shop-toolbar { box-shadow: none !important; }
html[data-theme="dark"] .shop-toolbar .sort-box label,
html[data-theme="dark"] .shop-toolbar .layout-label { color: var(--muted) !important; }

/* 排序下拉：边框与分隔线同色，去掉白底与亮边 */
html[data-theme="dark"] .shop-toolbar .sort-box select {
    background-color: var(--card) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .shop-toolbar .sort-box select:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
}
html[data-theme="dark"] .shop-toolbar .sort-box select option {
    background: var(--card);
    color: var(--ink);
}

/* 视图切换按钮：描边改为深色线，选中态保留主题色 */
html[data-theme="dark"] .shop-toolbar .layout-box a {
    background: transparent !important;
    border-color: var(--line) !important;
    color: var(--muted) !important;
}
html[data-theme="dark"] .shop-toolbar .layout-box a:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
html[data-theme="dark"] .shop-toolbar .layout-box a.on {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* 筛选组白色分隔线（shop.css 的 border-top:#f0f0f0）：深色下只保留下方一条 var(--line) */
html[data-theme="dark"] .sidebar-filter details.filter-group,
html[data-theme="dark"] .sidebar-filter .filter-group { border-top-color: transparent !important; }
html[data-theme="dark"] .sidebar-filter details.filter-group:first-of-type { border-top-color: transparent !important; }

/* ==================== 圆角风格：按钮收口（2026-10-21） ====================
   旧主题 style.css / site.css 在 app.css 之后加载，把按钮圆角写死为
   999px / 28px / 8px / 3px，导致后台「圆角风格」（--radius）对按钮无效。
   这里统一回到圆角变量：大按钮用 --radius，小按钮用 --radius-sm
   ------------------------------------------------------------------ */
.theme-btn,
.btn-style-one,
.btn-style-two,
.btn-style-three,
.btn-style-four { border-radius: var(--radius) !important; }
.theme-btn.btn-sm { border-radius: var(--radius-sm) !important; }

@media only screen and (max-width: 767px) {
    .basic-details .other-options .theme-btn,
    .contact-form .theme-btn,
    .search-popup .search-form .theme-btn { border-radius: var(--radius) !important; }
}

/* ==================== 产品详情 Tab 表头：视觉增强（2026-10-21） ====================
   原样式只有文字 + 主题浅底，层级较单薄。这里升级为「分段胶囊标签栏」：
   容器描边圆角 + 轻阴影，标签前置状态圆点，选中态主题色渐变实底 + 白字。
   仅作用于桌面（≥992px），移动端沿用原有下划线式表头。
   ------------------------------------------------------------------------- */
@media only screen and (min-width: 992px) {
    .product-info-tabs .detail-tab-nav {
        /* 遮缝色：浅色跟卡片/页面白底一致，深色由下方规则改为页面背景色 */
        --tab-seam: var(--card);
        gap: 6px !important;
        padding: 10px 12px !important;
        border: 1px solid var(--line) !important;
        border-radius: var(--radius) !important;
        background: var(--card) !important;
        /* 上移同色阴影：吸顶时遮住缝隙，形状跟随圆角，且绘制在边框之下不会切断上描边 */
        box-shadow: 0 -12px 0 var(--tab-seam), 0 6px 18px rgba(15, 23, 42, .05) !important;
    }
    /* 该伪元素紧贴边框且绘制层级高于边框，会擦掉上描边；遮缝改由上面的 box-shadow 承担 */
    .product-info-tabs .detail-tab-nav::before {
        display: none !important;
    }
    /* 深色模式：遮缝色改用页面背景 --bg，与页面融为一体不显色带 */
    html[data-theme="dark"] .product-info-tabs .detail-tab-nav {
        --tab-seam: var(--bg);
        box-shadow: 0 -12px 0 var(--tab-seam), 0 6px 18px rgba(0, 0, 0, .32) !important;
    }
    /* 无外框的两套样式：实底同样取页面底色，与遮缝一致 */
    html[data-theme="dark"] .product-info-tabs .detail-tab-nav.tab-style-underline,
    html[data-theme="dark"] .product-info-tabs .detail-tab-nav.tab-style-outline {
        background: var(--bg) !important;
    }

    .product-info-tabs .detail-tab-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 16px !important;
        font-weight: 700 !important;
        color: var(--muted) !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        border-radius: var(--radius-sm) !important;
        transition: color .16s, background .16s, border-color .16s, box-shadow .16s !important;
    }
    /* 标签前置状态圆点 */
    .product-info-tabs .detail-tab-link::before {
        content: '';
        flex: none;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--line);
        transition: background .16s, box-shadow .16s;
    }
    .product-info-tabs .detail-tab-link:hover {
        color: var(--primary) !important;
        background: var(--primary-soft) !important;
        border-color: rgba(var(--primary-rgb), .22) !important;
    }
    .product-info-tabs .detail-tab-link:hover::before { background: var(--primary); }
    .product-info-tabs .detail-tab-link.active {
        color: #fff !important;
        background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 76%, #000)) !important;
        border-color: transparent !important;
        box-shadow: 0 6px 16px rgba(var(--primary-rgb), .30) !important;
    }
    .product-info-tabs .detail-tab-link.active::before {
        background: #fff;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .28);
    }

    /* ---------- Tab 表头样式变体（模版中心可选，空值 = 上面的默认胶囊样式） ---------- */

    /* 极简下划线：无外框、纯文字，选中主题色 + 底部指示条 */
    .product-info-tabs .detail-tab-nav.tab-style-underline {
        gap: 28px !important;
        padding: 6px 2px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        border-radius: 0 !important;
        /* 吸顶必须有实底：透明会让正文从表头透出（漏光）。浅色=卡片白，深色由下方规则改为页面底色 */
        background: var(--card) !important;
        box-shadow: 0 -12px 0 var(--tab-seam) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-underline .detail-tab-link {
        padding: 8px 0 11px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--muted) !important;
        font-weight: 600 !important;
        box-shadow: inset 0 -2px 0 transparent !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-underline .detail-tab-link::before { display: none !important; }
    .product-info-tabs .detail-tab-nav.tab-style-underline .detail-tab-link:hover {
        color: var(--primary) !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: inset 0 -2px 0 rgba(var(--primary-rgb), .45) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-underline .detail-tab-link.active {
        color: var(--primary) !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: inset 0 -3px 0 var(--primary) !important;
    }

    /* 分段控件：浅色轨道 + 选中卡片色滑块 */
    .product-info-tabs .detail-tab-nav.tab-style-segmented {
        gap: 4px !important;
        padding: 5px !important;
        border: 1px solid var(--line) !important;
        border-radius: var(--radius) !important;
        background: var(--bg) !important;
        box-shadow: 0 -12px 0 var(--tab-seam), 0 2px 10px rgba(15, 23, 42, .05) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-segmented .detail-tab-link {
        padding: 9px 18px !important;
        border: 0 !important;
        border-radius: calc(var(--radius) - 4px) !important;
        background: transparent !important;
        color: var(--muted) !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-segmented .detail-tab-link::before { display: none !important; }
    .product-info-tabs .detail-tab-nav.tab-style-segmented .detail-tab-link:hover {
        color: var(--primary) !important;
        background: var(--primary-soft) !important;
        border-color: transparent !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-segmented .detail-tab-link.active {
        background: var(--card) !important;
        color: var(--primary) !important;
        border-color: transparent !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .12) !important;
    }

    /* 描边标签：每个标签独立描边，选中主题色描边 + 浅主题底 */
    .product-info-tabs .detail-tab-nav.tab-style-outline {
        gap: 8px !important;
        padding: 4px 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        /* 标签之间有间隙，容器也要实底，否则滚动时正文从缝隙透出 */
        background: var(--card) !important;
        box-shadow: 0 -12px 0 var(--tab-seam) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-outline .detail-tab-link {
        padding: 8px 18px !important;
        border: 1px solid var(--line) !important;
        border-radius: var(--radius-sm) !important;
        background: var(--card) !important;
        color: var(--muted) !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-outline .detail-tab-link::before { display: none !important; }
    .product-info-tabs .detail-tab-nav.tab-style-outline .detail-tab-link:hover {
        color: var(--primary) !important;
        border-color: rgba(var(--primary-rgb), .45) !important;
        background: var(--card) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-outline .detail-tab-link.active {
        color: var(--primary) !important;
        border-color: var(--primary) !important;
        background: var(--primary-soft) !important;
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), .14) !important;
    }

    /* 品牌横栏：整条主题色横栏，选中反白 */
    .product-info-tabs .detail-tab-nav.tab-style-bar {
        gap: 4px !important;
        padding: 7px 8px !important;
        border: 0 !important;
        border-radius: var(--radius) !important;
        background: var(--primary) !important;
        box-shadow: 0 -12px 0 var(--tab-seam), 0 6px 18px rgba(var(--primary-rgb), .22) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-bar .detail-tab-link {
        padding: 9px 18px !important;
        border: 0 !important;
        border-radius: var(--radius-sm) !important;
        background: transparent !important;
        color: rgba(255, 255, 255, .84) !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-bar .detail-tab-link::before { background: rgba(255, 255, 255, .5) !important; }
    .product-info-tabs .detail-tab-nav.tab-style-bar .detail-tab-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, .16) !important;
        border-color: transparent !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-bar .detail-tab-link.active {
        color: var(--primary) !important;
        background: #fff !important;
        border-color: transparent !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .14) !important;
    }
    .product-info-tabs .detail-tab-nav.tab-style-bar .detail-tab-link.active::before {
        background: var(--primary) !important;
        box-shadow: none !important;
    }
}

/* ==================== 选项必填未选：深色模式红色提醒收口（2026-10-21） ====================
   深色模式下本文件早前的 !important 规则会把选项标签/下拉框改回 --ink/--line，
   这里用同权重更高的选择器把「未选必填项」的红色提醒重新压回来。
   ------------------------------------------------------------------ */
html[data-theme="dark"] .product-details .attr-row.is-invalid > label,
html[data-theme="dark"] .product-details .attr-row.is-invalid > label .req {
    color: var(--shop-danger, #e45757) !important;
}
html[data-theme="dark"] .product-details .attr-row.is-invalid select,
html[data-theme="dark"] .product-details .attr-row.is-invalid .attr-select {
    border-color: var(--shop-danger, #e45757) !important;
    background-color: rgba(228, 87, 87, .10) !important;
}

/* ==================== 购物车：夜间模式可读性与线条一体化（2026-10-21） ====================
   旧主题 style.css 的 .cart-table 规则（文字 #242424 / #797979，边框 #ebebeb / #e9e9e9）
   特异性高于 shop.css 的 .shop-table，深色下文字发暗、线条发白。
   这里统一改用设计令牌：主要文字 --ink、次要文字 --muted、分隔线 --line。
   ------------------------------------------------------------------ */
html[data-theme="dark"] .cart-section .cart-table thead tr th {
    color: var(--ink) !important;
    border-right-color: var(--line) !important;
}
html[data-theme="dark"] .cart-section .cart-table tbody tr {
    border-bottom-color: var(--line) !important;
}
html[data-theme="dark"] .cart-section .cart-table tbody tr td {
    color: var(--ink) !important;
    border-left-color: var(--line) !important;
    border-bottom-color: var(--line) !important;
}
html[data-theme="dark"] .cart-section .cart-table tbody tr td:last-child {
    border-right-color: var(--line) !important;
}
html[data-theme="dark"] .cart-section .cart-table .shop-product-cell a {
    color: var(--ink) !important;
}
html[data-theme="dark"] .cart-section .cart-table .cell-price,
html[data-theme="dark"] .cart-section .cart-table .cell-line {
    color: var(--ink) !important;
    font-weight: 600;
}
html[data-theme="dark"] .cart-section .cart-table .shop-attrs,
html[data-theme="dark"] .cart-section .cart-table .cell-price-old,
html[data-theme="dark"] .cart-section .cart-table .shop-warranty {
    color: var(--muted) !important;
}
/* 数量框：文字与按钮跟随令牌，边框与表格线同色，融入整体 */
html[data-theme="dark"] .cart-section .cart-table .qty-box {
    border-color: var(--line) !important;
    background: var(--card) !important;
}
html[data-theme="dark"] .cart-section .cart-table .qty-box input,
html[data-theme="dark"] .cart-section .cart-table .qty-box .qty-step {
    color: var(--ink) !important;
    background: transparent !important;
}

/* ==================== 产品详情「技术参数」表格：圆角卡片 + 夜间线条统一（2026-10-21） ====================
   .rich table 是 border-collapse:collapse，border-radius 不生效；单元格描边写死了 #e5e5e5，
   深色下比页面其他分隔线更亮。这里改为 separate + 设计令牌边框，实现圆角与线条一体化。
   ------------------------------------------------------------------ */
.shop-single #prod-spec .content.rich table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm, 8px) !important;
    overflow: hidden;
}
.shop-single #prod-spec .content.rich th,
.shop-single #prod-spec .content.rich td {
    border: 0 !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
}
.shop-single #prod-spec .content.rich th:last-child,
.shop-single #prod-spec .content.rich td:last-child {
    border-right: 0 !important;
}
.shop-single #prod-spec .content.rich tr:last-child th,
.shop-single #prod-spec .content.rich tr:last-child td {
    border-bottom: 0 !important;
}
html[data-theme="dark"] .shop-single #prod-spec .content.rich th {
    background: rgba(255, 255, 255, .04) !important;
    color: var(--ink) !important;
}
/* 桌面端参数表字号与详情正文对齐：正文段落由主题样式固定 16px，
   参数表格原先无字号、继承 body 18px，看起来比正文偏大（移动端已在上面固定 13px） */
@media (min-width: 768px) {
    .shop-single #prod-spec .content.rich td,
    .shop-single #prod-spec .content.rich th {
        font-size: 16px;
    }
    /* 技术参数表头/参数名不做加粗 */
    .shop-single #prod-spec .content.rich th {
        font-weight: 400 !important;
    }
}

/* ==================== 对比页：夜间模式表格线条统一（2026-10-21） ====================
   对比表用的是 Bootstrap .table 默认描边（#ddd），深色下线条发亮、与页面其他分隔线不一致。
   这里把上下描边改为 --line，表头加轻微白色叠加，保持与其他卡片一致。
   ------------------------------------------------------------------ */
html[data-theme="dark"] .compare-table > tbody > tr > td,
html[data-theme="dark"] .compare-table > tbody > tr > th,
html[data-theme="dark"] .compare-table > thead > tr > td,
html[data-theme="dark"] .compare-table > thead > tr > th {
    border-top-color: var(--line) !important;
    border-bottom-color: var(--line) !important;
    color: var(--ink);
}
html[data-theme="dark"] .compare-table > thead > tr > th {
    background: rgba(255, 255, 255, .04);
}

/* ==================== 购物车表格：圆角卡片外框（桌面端，2026-10-21） ====================
   .cart-table 为 border-collapse:collapse，主题给的外框/圆角无法生效，四角是直角。
   改为 separate + 外框，内部只保留横竖分隔线，与参数表、对比表观感统一。
   移动端是逐条卡片布局，不受影响。
   ------------------------------------------------------------------ */
@media (min-width: 768px) {
    .cart-section .cart-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
        border: 1px solid var(--line) !important;
        border-radius: var(--radius-sm, 8px) !important;
        overflow: hidden;
    }
    .cart-section .cart-table thead tr th,
    .cart-section .cart-table tbody tr td {
        border: 0 !important;
        border-right: 1px solid var(--line) !important;
        border-bottom: 1px solid var(--line) !important;
    }
    .cart-section .cart-table thead tr th:last-child,
    .cart-section .cart-table tbody tr td:last-child {
        border-right: 0 !important;
    }
    .cart-section .cart-table thead tr:last-child th,
    .cart-section .cart-table tbody tr:last-child td {
        border-bottom: 0 !important;
    }
    /* 表头/末行四角随外框收圆，避免单元格底色盖住圆角 */
    .cart-section .cart-table thead tr:first-child th:first-child { border-top-left-radius: var(--radius-sm, 8px); }
    .cart-section .cart-table thead tr:first-child th:last-child { border-top-right-radius: var(--radius-sm, 8px); }
    .cart-section .cart-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-sm, 8px); }
    .cart-section .cart-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-sm, 8px); }
}

/* ==================== 购物车价格：特价/阶梯价原价红色删除线（2026-10-21） ====================
   模板在现价后输出 .cell-price-old（原价），此前仅有深色模式的次要文字色，
   浅色/深色都没有删除线与红色标记，特价商品的原价与现价无法区分。
   ------------------------------------------------------------------ */
.cart-section .cart-table .cell-price-old {
    color: #dc2626;
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 400;
    margin-left: 6px;
    white-space: nowrap;
}
html[data-theme="dark"] .cart-section .cart-table .cell-price-old {
    color: #f87171 !important;
    text-decoration: line-through;
}

/* ==================== 优惠券卡：夜间模式统一（2026-10-21） ====================
   领券中心/我的优惠券共用券卡；旧暗色值写死了 #0f1626 / #1e2836 / #d6dfee，
   这里统一改用设计令牌，虚线/徽标跟随主题主色。
   ------------------------------------------------------------------ */
html[data-theme="dark"] .coupon-card {
    background: var(--card) !important;
    border-color: var(--line) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .coupon-card-claim,
html[data-theme="dark"] .coupon-card.is-unused {
    border-color: var(--primary) !important;
}
html[data-theme="dark"] .coupon-type {
    background: var(--bg) !important;
    color: var(--muted) !important;
}
html[data-theme="dark"] .coupon-card-claim .coupon-type {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
}
html[data-theme="dark"] .coupon-code-copy code {
    background: var(--bg) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}
html[data-theme="dark"] .coupon-amount { color: #4ade80 !important; }
html[data-theme="dark"] .coupon-claimed-btn { opacity: .5 !important; }

/* ==================== 购物车促销提示与满额赠品/换购（2026-10-21） ==================== */
.cart-promo-panel { margin: 18px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-promo-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.cart-promo-head i { color: var(--primary); }
.cart-promo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-promo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; line-height: 1.4; color: var(--ink); background: var(--bg); border: 1px dashed var(--line); border-radius: 999px; }
.cart-promo-chip i { color: var(--primary); }
.cart-promo-chip.is-ok { color: var(--primary); background: var(--primary-soft); border-style: solid; border-color: var(--primary); }
.cart-promo-chip .coupon-badge-stack { margin-left: 2px; }
.cart-promo-form { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.cart-promo-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cart-promo-rule { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); cursor: pointer; }
.cart-promo-rule img { width: 46px; height: 46px; flex: none; object-fit: cover; border-radius: 8px; background: var(--card); }
.cart-promo-rule input { flex: none; accent-color: var(--primary); }
.cart-promo-rule.is-reached { border-color: rgba(var(--primary-rgb), .45); }
.cart-promo-rule.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.cart-promo-rule:has(input:disabled) { opacity: .6; cursor: default; }
.cart-promo-rule-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cart-promo-rule-main strong { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cart-promo-rule-meta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cart-promo-rule-th { flex: none; align-self: flex-start; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cart-promo-rule-actions { flex: none; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cart-promo-sel { font-size: 12px; line-height: 1.4; color: var(--primary); overflow-wrap: anywhere; }
.cart-promo-opts { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; line-height: 1.5; cursor: pointer; }
.cart-promo-opts:hover { border-color: var(--primary); color: var(--primary); }
.cart-promo-detail { font-size: 12px; color: var(--primary); white-space: nowrap; }
.cart-promo-detail:hover { text-decoration: underline; }
.cart-promo-rule.is-invalid { border-color: #ef4444; }
.cart-promo-rule-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--primary); }
.cart-promo-rule-price s { color: var(--muted); font-weight: 400; }
.cart-promo-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cart-promo-tip { font-size: 12px; color: var(--muted); }
.cart-promo-actions .shop-btn-ghost { margin: 0; }
.promo-qty { color: var(--muted); font-weight: 600; }
.promo-free { color: #16a34a; font-weight: 700; }
.promo-line-tag { display: inline-block; padding: 0 7px; font-size: 11px; line-height: 18px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.promo-line-tag.is-gift { color: #16a34a; background: rgba(22, 163, 74, .1); border: 1px solid rgba(22, 163, 74, .45); }
.promo-line-tag.is-exchange { color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary); }
.promo-badge-nostack { display: inline-block; margin-left: auto; padding: 0 7px; font-size: 11px; font-style: normal; font-weight: 600; line-height: 18px; white-space: nowrap; color: var(--muted); background: transparent; border: 1px dashed var(--line); border-radius: 999px; }
html[data-theme="dark"] .cart-promo-panel { background: var(--card) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .cart-promo-chip { background: var(--bg) !important; border-color: var(--line) !important; color: var(--ink) !important; }
html[data-theme="dark"] .cart-promo-chip.is-ok { background: rgba(var(--primary-rgb), .18) !important; border-color: var(--primary) !important; color: var(--primary) !important; }
html[data-theme="dark"] .cart-promo-rule { background: var(--bg) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .cart-promo-rule.is-selected { background: rgba(var(--primary-rgb), .18) !important; border-color: var(--primary) !important; }
html[data-theme="dark"] .promo-free { color: #4ade80 !important; }
html[data-theme="dark"] .promo-line-tag.is-gift { color: #4ade80 !important; background: rgba(74, 222, 128, .12) !important; border-color: rgba(74, 222, 128, .45) !important; }
@media (max-width: 640px) {
    .cart-promo-panel { padding: 12px; }
    .cart-promo-rules { grid-template-columns: 1fr; }
    .cart-promo-rule-th { display: none; }
    .cart-promo-actions { flex-direction: column; align-items: flex-start; }
    .cart-promo-actions .shop-btn-ghost,
    .cart-promo-actions .theme-btn { width: 100%; }
}

/* --- 页头购物车图标悬停浮层（缩略图明细 / 删除 / 购物车与结算入口） --- */
.ux-cart-pop {
    position: fixed;
    right: 16px;
    top: 80px;
    width: 248px;
    padding: 8px 10px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    pointer-events: none;
    z-index: 1200;
}
.ux-cart-pop[hidden] { display: none !important; }
.ux-cart-pop.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
/* 明细列表：约 4 条商品的高度，超出后列表内部滚动（滚动条深浅色跟随设计令牌） */
.ucp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 168px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.ucp-list::-webkit-scrollbar { width: 4px; }
.ucp-list::-webkit-scrollbar-track { background: transparent; }
.ucp-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.ucp-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    min-width: 0;
}
.ucp-item:first-child { padding-top: 2px; }
/* 每条商品一条分割线 */
.ucp-item + .ucp-item { border-top: 1px solid var(--line); }

/* 会员等级质感徽章（本地 SVG，自带闪光动画） */
.lv-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: -0.22em;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .28));
}
.lv-badge.lv-badge-sm { width: 16px; height: 16px; }
.lv-badge.lv-badge-md { width: 26px; height: 26px; vertical-align: middle; }
.lv-badge.lv-badge-lg { width: 34px; height: 34px; vertical-align: middle; }
.lv-badge.coupon-ico { width: 22px; height: 22px; margin-right: 6px; vertical-align: -0.3em; }
.ucp-thumb {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--line);
}
.ucp-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ucp-qty { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.ucp-sum { flex: 0 0 auto; font-size: 11px; font-weight: 600; }
/* 价格后的删除图标 */
.ucp-del {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.ucp-del:hover { color: #dc2626; background: rgba(220, 38, 38, .1); }
.ucp-del.is-busy { opacity: .4; pointer-events: none; }
.ucp-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 7px; padding-top: 7px;
    border-top: 1px solid var(--line); font-size: 12px;
}
.ucp-total strong { font-size: 12px; }
/* 底部：购物车 + 去结算 */
.ucp-actions { display: flex; gap: 6px; margin-top: 8px; }
.ucp-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ucp-btn-cart { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.ucp-btn-cart:hover { color: var(--ink); border-color: var(--primary); }
.ucp-btn-checkout { background: var(--primary); color: #fff; }
.ucp-btn-checkout:hover { color: #fff; opacity: .9; }
html[data-theme="dark"] .ux-cart-pop { box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .ucp-del:hover { color: #f87171; background: rgba(248, 113, 113, .12); }
@media (max-width: 767px) {
    .ux-cart-pop { width: 220px; }
}

/* ==================== 结算页手机端：防向右溢出（参照购物车手机版，2026-10-22） ====================
   购物车在手机上已改为逐条扁平卡，不会溢出；结算页仍是 grid 布局，存在三处硬伤：
   ① ≤991px 的 `.checkout-layout { grid-template-columns: 1fr }` 等价 minmax(auto,1fr)，
      最小宽度取内容的 min-content，长商品名/长地址会把整列撑出视口；
   ② 前台没有全局 box-sizing，`.checkout-field input { width:100%; padding:0 14px; border:1px }`
      实际宽度 = 100% + 30px，必然顶出卡片；
   ③ `.cm-name`、地址卡 span 只有 flex:1，没有 min-width:0，长文本无法收缩断行。
   这里按购物车手机版的约束统一收口：列宽 minmax(0,1fr)、子项 min-width:0、
   文本可断词、金额与按钮不参与压缩。
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
    .checkout-left, .checkout-aside { min-width: 0 !important; max-width: 100% !important; }
    .checkout-aside { position: static !important; top: auto !important; }
    .checkout-grid, .pay-methods { grid-template-columns: minmax(0, 1fr) !important; }
}

@media only screen and (max-width: 767px) {
    /* 画布 / 卡片：一律不宽出视口（不在 section 上加 overflow 裁剪，避免裁掉优惠券浮层；
       整页横移由 html/body/.page-wrapper 的 overflow-x: clip 兜底） */
    .checkout-section .auto-container,
    .checkout-layout, .checkout-left, .checkout-aside,
    .checkout-card, .checkout-totals, .ck-account-card {
        max-width: 100% !important; min-width: 0 !important; box-sizing: border-box;
    }

    /* 表单控件：width:100% 必须配 border-box，否则内边距+边框会把卡片撑宽 */
    .checkout-field input, .checkout-field textarea, .checkout-field select,
    .checkout-auth-form input, .checkout-auth-form select,
    #countrySelectWrap input:not([type="hidden"]),
    #zoneSelectWrap input:not([type="hidden"]),
    #citySelectWrap input:not([type="hidden"]) {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .checkout-field .sselect, .checkout-field .sselect-input { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
    #countrySelectWrap, #zoneSelectWrap, #citySelectWrap { min-width: 0; max-width: 100%; }
    .checkout-auth-form { grid-template-columns: minmax(0, 1fr) !important; max-width: 100%; }

    /* 商品行：名称可断行，金额不换行不压缩 */
    .checkout-mini-item { min-width: 0; }
    .checkout-mini-item img { flex: none; }
    .checkout-mini-item .cm-name { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
    .checkout-mini-item .cm-attrs { overflow-wrap: anywhere; word-break: break-word; }
    .checkout-mini-item > strong { flex: none; white-space: nowrap; margin-left: auto; text-align: right; }

    /* 地址卡：长姓名/长地址可断行 */
    .address-pick label { min-width: 0; }
    .address-pick label > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
    .address-pick input { flex: none; }

    /* 支付 / 配送方式卡：单列、文案可断行、高度自适应 */
    .pay-method { min-width: 0; }
    .pay-method span.pay-card {
        min-width: 0; height: auto; min-height: 54px; padding: 12px 14px;
        line-height: 1.35; overflow-wrap: anywhere; word-break: break-word;
    }
    .pay-method span.pay-card i { flex: none; }
    .pay-method span.pay-card .pay-note { white-space: normal; }

    /* 金额行 / 积分 / 优惠券：左右两列自适应，右侧金额不压缩 */
    .checkout-totals .total-row { gap: 12px; align-items: flex-start; }
    .checkout-totals .total-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
    .checkout-totals .total-row > span:last-child { flex: none; white-space: nowrap; text-align: right; }
    .total-row.grand { font-size: 18px; }
    .points-box, .coupon-box { min-width: 0; max-width: 100%; box-sizing: border-box; }
    .pbox-head { overflow-wrap: anywhere; word-break: break-word; }
    .pbox-row { min-width: 0; flex-wrap: wrap; }
    .pbox-row .pbox-input { min-width: 0; }
    .pbox-row .theme-btn { flex: none; }
    .coupon-picker, .coupon-picker-toggle, .coupon-picker-panel,
    .coupon-picker-list, .coupon-pick { min-width: 0; max-width: 100%; box-sizing: border-box; }
    /* 优惠券多选面板：手机端改为就地展开（绝对定位浮层会向下超出页面底部，
       页面已无多余滚动空间时末尾券项看不到，也无法滚出来） */
    .coupon-picker-panel {
        position: static; left: auto; right: auto; top: auto;
        margin-top: 6px; max-height: 260px; overflow-y: auto;
        box-shadow: none;
    }
    .coupon-pick-txt { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
    .coupon-picker-hint { overflow-wrap: anywhere; }

    /* 下单方式 tab / 商品卡标题行：换行不撑宽 */
    .ck-mode-tab { min-width: 0; max-width: 100%; }
    .ck-cart-head { min-width: 0; flex-wrap: wrap; }
    .ck-cart-head h3 { min-width: 0; overflow-wrap: anywhere; }
}

/* ==================== Logo 多位置 / 明暗模式适配（2026-10-22） ====================
   后台可分别配置页头、页尾的浅色 / 深色 Logo；深色项留空时沿用对应浅色 Logo，
   因此仅在实际配置了深色图时才输出第二张图，避免重复请求。 */
.ux-logo-img-dark,
.ux-footer-logo .ux-logo-img-dark { display: none; }

html[data-theme="dark"] .ux-logo .ux-logo-img-light,
html[data-theme="dark"] .ux-footer-logo .ux-logo-img-light { display: none !important; }

html[data-theme="dark"] .ux-logo .ux-logo-img-dark,
html[data-theme="dark"] .ux-footer-logo .ux-logo-img-dark { display: inline-block !important; }

/* 深色页尾使用专属深色 Logo 时，取消旧主题对页尾 Logo 的自动反色 */
.ux-footer-dark .ux-footer-logo img.ux-logo-img-explicit-dark { filter: none !important; }

/* ==================== 个人信息：邮箱 / 手机号修改（2026-10-23） ====================
   邮箱、手机号改为只读展示 + 「修改」按钮，点击后打开全站统一 .aic-dialog 弹窗，
   输入当前密码 + 新地址 + 验证码完成修改。
   ------------------------------------------------------------------ */
.profile-cred-field { display: flex; align-items: center; gap: 8px; }
.profile-cred-field input { flex: 1 1 auto; min-width: 0; }
.profile-cred-btn {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.profile-cred-btn:hover { color: var(--primary); border-color: var(--primary); }
.profile-cred-dialog .aic-dialog-input { margin-top: 10px; }
.profile-cred-dialog .aic-dialog-msg { margin-bottom: 4px; }
.profile-cred-phone { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.profile-cred-phone .aic-dialog-input { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.profile-cred-phone .account-cc-select { flex: 0 0 76px; min-width: 0; }
.profile-cred-code { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.profile-cred-code .aic-dialog-input { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.profile-cred-code .theme-btn { flex: 0 0 auto; height: 42px; padding: 0 14px; white-space: nowrap; }
html[data-theme="dark"] .profile-cred-btn { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .profile-cred-btn:hover { color: var(--primary) !important; border-color: var(--primary) !important; }
@media (max-width: 767px) {
    .profile-cred-field input { flex: 1 1 auto; }
    .profile-cred-btn { height: 42px; padding: 0 12px; font-size: 13px; }
    .profile-cred-code { flex-wrap: wrap; }
    .profile-cred-code .theme-btn { width: 100%; }
}

/* 登录页：密码 / 验证码方式切换（跟在登录方式按钮后面，样式参照「申请售后」按钮） */
.account-login-alt { margin-left: auto; display: flex; align-items: center; }
.account-login-alt .theme-btn { margin: 0; }
.account-login-alt .theme-btn .txt { display: inline-flex; align-items: center; gap: 6px; }
.account-login-alt .theme-btn .txt i { margin: 0; font-size: 12px; }
@media (max-width: 767px) {
    /* 手机端：按「申请售后」小按钮规则等比收小 */
    .account-login-alt .theme-btn { min-height: 30px; padding: 4px 10px; font-size: 12px; letter-spacing: 0; text-transform: none; box-shadow: none !important; }
    .account-login-alt .theme-btn .txt { gap: 4px; }
    .account-login-alt .theme-btn .txt i { font-size: 11px; }
    .account-login-alt .theme-btn:hover { box-shadow: none !important; }
}


/* ==================== 产品详情：名称旁产品徽章（2026-10-24） ====================
   特价 / 推荐 / 热销三类产品在详情页名称右侧自动展示徽章；
   徽章采用渐变底色 + 高光镀膜 + 内阴影，形成金属质感的小徽章效果。
   ------------------------------------------------------------------ */
.pd-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 6px; }
.pd-title-row h4 { margin: 0 !important; }
.pd-badges { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.pd-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 24px;
    padding: 0 11px 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(180deg, var(--pdg1), var(--pdg2));
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .22), 0 2px 4px rgba(0, 0, 0, .16);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}
.pd-badge::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 1px;
    height: 46%;
    border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.pd-badge > * { position: relative; z-index: 1; }
.pd-badge i { font-size: 11px; line-height: 1; }
.pd-badge-special { --pdg1: #ff6b81; --pdg2: #c9184a; }
.pd-badge-recommended {
    --pdg1: #ffd75e;
    --pdg2: #d99a00;
    color: #5a3b00;
    border-color: rgba(255, 255, 255, .55);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.pd-badge-hot { --pdg1: #ff9a3d; --pdg2: #de2d00; }
html[data-theme="dark"] .pd-badge {
    border-color: rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .pd-badge-recommended { color: #4a3000; }
@media (max-width: 767px) {
    .pd-title-row { gap: 3px 6px; margin-bottom: 6px; }
    .pd-badge { height: 22px; padding: 0 10px 0 8px; font-size: 11px; gap: 4px; }
    .pd-badge i { font-size: 11px; }
}

/* 徽章闪光：斜向高光循环扫过，呈现金属徽章的反光质感 */
.pd-badge::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -70%;
    width: 45%;
    height: 180%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: pd-badge-shine 3.6s ease-in-out infinite;
    pointer-events: none;
}
.pd-badge-recommended::before { animation-delay: .9s; }
.pd-badge-hot::before { animation-delay: 1.8s; }
@keyframes pd-badge-shine {
    0% { left: -70%; opacity: 0; }
    12% { opacity: 1; }
    45% { left: 130%; opacity: 1; }
    55%, 100% { left: 130%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-badge::before { animation: none; opacity: 0; }
}

/* 产品标题下的评论评星 + 评论数（无评论不渲染） */
.pd-title-rating { display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 2px; line-height: 1; cursor: pointer; }
.pd-title-rating .pd-stars { display: inline-flex; align-items: center; color: #f5a623; }
.pd-title-rating .pd-stars i { font-size: 18px; margin-right: 1px; }
.pd-title-rating .pd-review-count { color: var(--muted); font-size: 18px; }
.pd-title-rating:hover .pd-review-count { color: var(--primary); text-decoration: underline; }

/* 产品概述：选项区上方独立卡片（与名称价格卡 / 选项卡同规格，可折叠） */
.pd-summary {
  margin: 0 0 8px;
  padding: 0 10px;
  background: var(--shop-card, #fff);
  border: 1px solid var(--shop-line, #e8ecf3);
  border-radius: 12px;
  box-sizing: border-box;
}
html[data-theme="dark"] .pd-summary { background: #131a2c; border-color: #1e2836; }
.pd-summary summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; }
.pd-summary summary::-webkit-details-marker { display: none; }
.pd-summary .pd-summary-ico { font-size: 22px; color: var(--ink); }
.pd-summary .pd-summary-title { flex: 1; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pd-summary .pd-summary-sign { font-size: 18px; color: var(--ink); transition: transform .2s; }
.pd-summary[open] .pd-summary-sign { transform: rotate(45deg); }
.pd-summary-body { padding: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--ink); word-break: break-word; }

/* ==================== 产品详情右栏：服务保障轮播（2026-10-29） ====================
   内容来自「页面区块 → 服务保障轮播」，每行一条；卡片横向滑动、右侧圆点指示。
   ------------------------------------------------------------------ */
.pd-badge-slider { position: relative; margin: 14px 0 2px; }
.pd-badge-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 16px;
}
.pd-badge-track::-webkit-scrollbar { display: none; }
.pd-badge-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 14px 54px 14px 16px;
    background: #f3f4f6;
    border-radius: 16px;
}
.pd-badge-slide i { flex: 0 0 auto; font-size: 28px; line-height: 1; color: var(--primary, #111); }
.pd-badge-txt { min-width: 0; }
.pd-badge-txt strong { display: block; color: #111; font-size: 16px; font-weight: 700; line-height: 1.3; }
.pd-badge-txt span { display: block; margin-top: 3px; color: #6b7280; font-size: 12px; line-height: 1.45; }
.pd-badge-dots { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); display: flex; gap: 5px; }
.pd-badge-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #d1d5db; cursor: pointer; transition: background .2s; }
.pd-badge-dots button.active { background: #111; }
html[data-theme="dark"] .pd-badge-slide { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .pd-badge-txt strong { color: var(--ink); }
html[data-theme="dark"] .pd-badge-txt span { color: var(--muted); }
html[data-theme="dark"] .pd-badge-dots button { background: rgba(255, 255, 255, .28); }
html[data-theme="dark"] .pd-badge-dots button.active { background: var(--ink); }
@media (max-width: 767px) {
    .pd-badge-slide { min-height: 72px; padding-right: 46px; gap: 12px; }
    .pd-badge-slide i { font-size: 28px; }
    .pd-badge-txt strong { font-size: 14px; }
    .pd-badge-txt span { font-size: 12px; }
}

/* ==================== 产品详情右栏：猜你喜欢横向滑动（2026-10-29） ====================
   位置在小计上方；标题 + 左右箭头 + 横向卡片，滚动自动切换箭头可用态。
   ------------------------------------------------------------------ */
.pd-yml { margin: 16px 0 10px; }
.pd-yml-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pd-yml-head h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pd-yml-arrows { display: flex; gap: 8px; flex: 0 0 auto; }
.pd-yml-arrows button {
    width: 30px; height: 30px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line, #d7dce5); border-radius: 50%;
    background: transparent; color: var(--ink); font-size: 12px; cursor: pointer;
    transition: border-color .15s, color .15s, opacity .15s;
}
.pd-yml-arrows button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pd-yml-arrows button:disabled { opacity: .3; cursor: default; }
.pd-yml-track {
    display: flex; gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.pd-yml-track::-webkit-scrollbar { display: none; }
.pd-yml-card {
    flex: 0 0 132px;
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    color: var(--ink); text-decoration: none;
}
/* 图片固定 1:1，任何产品图片都保持同一尺寸 */
.pd-yml-pic { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; background: #f4f4f5; overflow: hidden; }
.pd-yml-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-yml-rate, .pl-rate {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 7px; border-radius: 999px;
    background: #fff; color: #111; font-size: 12px; font-weight: 700; line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.pd-yml-rate i, .pl-rate i { color: #f5a623; font-size: 11px; }
/* 评分角标不拦截图片点击 */
.pd-yml-rate { pointer-events: none; }
/* 猜你喜欢卡片较窄（132px），倒计时按比例缩小以完整显示 */
.pd-yml-pic .pdeal-cd { gap: 3px; padding: 3px; border-radius: 6px; }
.pd-yml-pic .pdeal-cd-u { width: 25px; height: 25px; border-radius: 4px; }
.pd-yml-pic .pdeal-cd-u b { font-size: 11px; }
.pd-yml-pic .pdeal-cd-u i { font-size: 7px; margin-top: 2px; }
/* 列表卡片图片容器需为定位参考 */
.shop-item .image { position: relative; }
.detail-main-col .image-box { position: relative; }
/* 特价倒计时：图片中央方形数字块（主题色），未设置结束时间时不渲染 */
.pdeal-cd {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex; gap: 5px;
    padding: 6px; border-radius: 10px;
    background: rgba(var(--primary-rgb), .55);
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), .35);
    pointer-events: none;
    backdrop-filter: blur(3px);
}
.pdeal-cd-u {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 6px;
    background: rgba(255, 255, 255, .16); color: #fff;
    font-variant-numeric: tabular-nums;
}
.pdeal-cd-u b { font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.pdeal-cd-u i { font-style: normal; font-size: 11px; line-height: 1; margin-top: 4px; opacity: .8; }
/* 详情页主图面积大，倒计时按比例放大（列表卡片保持上面的常规尺寸） */
.detail-main-col .image-box .pdeal-cd { gap: 6px; padding: 8px; border-radius: 12px; }
.detail-main-col .image-box .pdeal-cd-u { width: 68px; height: 68px; border-radius: 8px; }
.detail-main-col .image-box .pdeal-cd-u b { font-size: 28px; }
.detail-main-col .image-box .pdeal-cd-u i { font-size: 12px; margin-top: 5px; }
/* 列表卡片：悬停出现 4 个操作图标时淡出倒计时，避免遮挡点击 */
.shop-item .overlay-box { z-index: 4; }
.shop-item .pdeal-cd { transition: opacity .2s ease; }
.shop-item .inner-box:hover .pdeal-cd { opacity: 0; }
.pd-yml-name {
    margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-width: 0; overflow-wrap: anywhere; word-break: break-word;
    /* 固定两行高度：只有一行名称时也与其他卡片对齐；超出两行显示省略号 */
    height: 2.8em;
}
.pd-yml-price { margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--ink); }
.pd-yml-card > .pd-yml-name,
.pd-yml-card > .pd-yml-price { color: var(--ink); text-decoration: none; }
.pd-yml-card > .pd-yml-price { display: block; }
/* 图片点击层：铺满图片但不遮挡右上评分与底部操作图标 */
.pd-yml-pic-link { position: absolute; inset: 0; z-index: 1; display: block; }
/* 猜你喜欢：图片上的加购 / 收藏图标（悬停显现，触屏常显） */
.pd-yml-acts {
    position: absolute; left: 0; right: 0; top: 50%; z-index: 4;
    display: flex; justify-content: center; gap: 6px;
    opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 4px));
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.pd-yml-card:hover .pd-yml-acts,
.pd-yml-acts:focus-within { opacity: 1; visibility: visible; transform: translateY(-50%); }
.pd-yml-acts button, .pd-yml-acts a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .94); color: #111;
    font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pd-yml-acts button:hover, .pd-yml-acts a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.pd-yml-acts .engage-btn.engaged { color: var(--primary); }
.pd-yml-acts .engage-btn.engaged:hover { color: #fff; }
.pd-yml-card:hover .pd-yml-pic .pdeal-cd { opacity: 0; }
html[data-theme="dark"] .pd-yml-acts button,
html[data-theme="dark"] .pd-yml-acts a { background: rgba(25, 30, 45, .92); color: #fff; }
html[data-theme="dark"] .pd-yml-acts button:hover,
html[data-theme="dark"] .pd-yml-acts a:hover { background: var(--primary); color: #fff; }
@media (hover: none) {
    .pd-yml-acts { opacity: 1; visibility: visible; transform: translateY(-50%); }
}
html[data-theme="dark"] .pd-yml-pic { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .pd-yml-rate,
html[data-theme="dark"] .pl-rate { background: rgba(255, 255, 255, .92); color: #111; }
@media (max-width: 767px) {
    .pd-yml { margin: 12px 0 8px; }
    .pd-yml-head h3 { font-size: 16px; }
    .pd-yml-arrows button { width: 26px; height: 26px; font-size: 11px; }
    .pd-yml-card { flex-basis: 118px; }
    .pd-yml-name { font-size: 12px; }
    .pd-yml-price { font-size: 14px; }
    .pl-rate { top: 6px; right: 6px; padding: 2px 6px; font-size: 11px; }
    .pdeal-cd { gap: 4px; padding: 4px; border-radius: 8px; }
    .pdeal-cd-u { width: 32px; height: 32px; border-radius: 5px; }
    .pdeal-cd-u b { font-size: 13px; }
    .pdeal-cd-u i { font-size: 8.5px; margin-top: 3px; }
    /* 手机端详情主图：略大于列表，但需控制在不溢出主图宽度内 */
    .detail-main-col .image-box .pdeal-cd { gap: 4px; padding: 5px; border-radius: 9px; }
    .detail-main-col .image-box .pdeal-cd-u { width: 42px; height: 42px; border-radius: 6px; }
    .detail-main-col .image-box .pdeal-cd-u b { font-size: 16px; }
    .detail-main-col .image-box .pdeal-cd-u i { font-size: 9px; margin-top: 3px; }
}

/* ==================== 主题色 SVG Logo（2026-10-24） ====================
   内置品牌 SVG 由 PHP 内联输出，图标与「OS」使用 var(--primary)，
   客户在模版中心调整主色后 Logo 自动跟随；位图 Logo 仍走 <img>。
   ------------------------------------------------------------------ */
.ux-logo-svg-wrap {
    display: inline-block;
    height: 52px;
    line-height: 0;
}
.ux-logo-svg-wrap svg {
    display: block;
    height: 100%;
    width: auto;
}
.ux-footer-logo .ux-logo-svg-wrap { height: 52px; }
.ux-drawer-logo .ux-logo-svg-wrap { height: 40px; }
/* 内联 SVG 同样需要浅/深两态互斥：.ux-logo-svg-wrap 的 display 声明会与
   上面的 .ux-logo-img-dark{display:none} 同权重且后出现，需用更高权重覆盖 */
.ux-logo-img.ux-logo-svg-wrap.ux-logo-img-dark { display: none; }
html[data-theme="dark"] .ux-logo .ux-logo-img.ux-logo-svg-wrap.ux-logo-img-light,
html[data-theme="dark"] .ux-footer-logo .ux-logo-img.ux-logo-svg-wrap.ux-logo-img-light,
html[data-theme="dark"] .ux-drawer-logo .ux-logo-img.ux-logo-svg-wrap.ux-logo-img-light { display: none !important; }
html[data-theme="dark"] .ux-logo .ux-logo-img.ux-logo-svg-wrap.ux-logo-img-dark,
html[data-theme="dark"] .ux-footer-logo .ux-logo-img.ux-logo-svg-wrap.ux-logo-img-dark,
html[data-theme="dark"] .ux-drawer-logo .ux-logo-img.ux-logo-svg-wrap.ux-logo-img-dark { display: inline-block !important; }
@media (max-width: 991px) {
    .ux-logo .ux-logo-svg-wrap { height: 42px; }
    .ux-footer-logo .ux-logo-svg-wrap { height: 42px; }
}
@media (max-width: 767px) {
    .ux-logo .ux-logo-svg-wrap { height: 32px; }
    .ux-footer-logo .ux-logo-svg-wrap { height: 32px; }
    .ux-drawer-logo .ux-logo-svg-wrap { height: 34px; }
}

/* ==================== 本地分享组件（2026-10-27） ====================
   替代 ShareThis：按钮/弹层均由 assets/js/ux_share.js 本地渲染，
   外观沿用 .sharethis-share-buttons / .st-btn 类名以兼容既有布局。
   ------------------------------------------------------------------ */
.sharethis-share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}
.sharethis-share-buttons .st-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6b7280;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform .15s ease, opacity .15s ease;
}
.sharethis-share-buttons .st-btn:hover { opacity: .9; transform: translateY(-1px); }
.sharethis-share-buttons .st-btn:active { transform: scale(.92); }
.sharethis-share-buttons .st-btn i { font-style: normal; line-height: 1; pointer-events: none; }

/* fancybox 灯箱底部的分享按钮行 */
.fancybox-share .sharethis-share-buttons { justify-content: center; margin: 0 0 12px; }

/* 分享面板（复刻 ShareThis：多平台网格 + 底部链接复制行） */
.uxsp-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
    animation: uxspFade .18s ease;
}
.uxsp-panel {
    width: min(520px, 100%);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    animation: uxspPop .2s ease;
}
.uxsp-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f5;
}
.uxsp-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #111827; }
.uxsp-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
}
.uxsp-close:hover { background: #e4e7ec; }
.uxsp-native {
    flex: 0 0 auto;
    margin: 12px 16px 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--primary, #2563eb);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.uxsp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 12px 12px 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.uxsp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.uxsp-item:hover { background: #f5f7fa; }
.uxsp-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6b7280;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}
.uxsp-ico i { font-style: normal; line-height: 1; }
.uxsp-label {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uxsp-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eef1f5;
    background: #fff;
}
.uxsp-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    outline: none;
}
.uxsp-input:focus { border-color: var(--primary, #2563eb); }
.uxsp-copy {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--primary, #2563eb);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.uxsp-copy:hover { opacity: .92; }

/* 微信二维码分享（本地生成） */
.uxsp-panel-qr { width: min(340px, 100%); }
.uxsp-qrbody { padding: 18px 16px 6px; text-align: center; }
.uxsp-qr {
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 1px #eef1f5;
}
.uxsp-qr canvas { display: none; }
.uxsp-qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.uxsp-qrhint { margin: 12px 0 6px; font-size: 12px; line-height: 1.6; color: #667085; }

.uxsp-toast {
    position: fixed;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    z-index: 100002;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    animation: uxspFade .15s ease;
}
@keyframes uxspFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes uxspPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* 深色主题 */
html[data-theme="dark"] .uxsp-panel { background: #1f2430; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .uxsp-head { border-bottom-color: #2b3240; }
html[data-theme="dark"] .uxsp-head h3 { color: #f3f4f6; }
html[data-theme="dark"] .uxsp-close { background: #2b3240; color: #cbd5e1; }
html[data-theme="dark"] .uxsp-close:hover { background: #354055; }
html[data-theme="dark"] .uxsp-item { color: #cbd5e1; }
html[data-theme="dark"] .uxsp-item:hover { background: #2b3240; }
html[data-theme="dark"] .uxsp-label { color: #94a3b8; }
html[data-theme="dark"] .uxsp-foot { background: #1f2430; border-top-color: #2b3240; }
html[data-theme="dark"] .uxsp-input { background: #262d3a; border-color: #354055; color: #cbd5e1; }
html[data-theme="dark"] .uxsp-qrhint { color: #94a3b8; }

/* 小屏：5 列 → 4 列 */
@media (max-width: 560px) {
    .uxsp-grid { grid-template-columns: repeat(4, 1fr); }
    .uxsp-panel { max-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
    .uxsp-modal, .uxsp-panel, .uxsp-toast { animation: none; }
}

/* ==================== 配件数量步进器（产品型选项） ==================== */
.attr-product-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    line-height: 1;
}
.attr-product-qty[hidden] { display: none; }
.attr-qty-label { opacity: .7; }
.attr-qty-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .05);
    cursor: pointer;
    user-select: none;
}
.attr-qty-btn.is-disabled { opacity: .35; cursor: not-allowed; }
.attr-qty-input {
    width: 48px;
    height: 24px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    -moz-appearance: textfield;
}
.attr-qty-input::-webkit-outer-spin-button,
.attr-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html[data-theme="dark"] .attr-product-qty { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .attr-qty-btn { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .attr-qty-input { border-color: rgba(255, 255, 255, .18); }

/* ==================== 全局页面区块留白收紧 ====================
   旧主题各区段上下留白 85–100px，统一改为 上 60px / 下 32px；
   统一压缩产品列表/详情、新闻、关于、联系等页面主容器留白，保持全站节奏一致。 */
.services-page-section,
.story-section,
.news-section,
.contact-form-section,
.sidebar-page-container {
    padding-top: 60px;
    padding-bottom: 32px;
}
.shop-single-section { padding-top: 60px; }
.shop-single { margin-bottom: 32px; }
.sidebar-page-container .content-side,
.sidebar-page-container .sidebar-side { margin-bottom: 24px; }

/* ==================== 页尾关注 + 订阅横条（社交媒体 / 邮件订阅） ====================
   旧版式（品牌区 + 多栏导航 + 版权条）保持不变，本横条独立插在栏目与版权条之间。 */
.ux-footer-band {
    /* 与特价倒计时同款半透明玻璃底：主题色 15% 透出页尾底色 */
    background: rgba(var(--primary-rgb), .15);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.ux-footer-light .ux-footer-band {
    background: rgba(var(--primary-rgb), .15);
    border-top: 1px solid rgba(255, 255, 255, .45);
}
/* 权重需高于 .ux-footer .ux-container（否则 padding-top:56px 会串到横条） */
.ux-footer .ux-container.ux-fband-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 40px;
    flex-wrap: wrap;
    padding-top: 34px;
    padding-bottom: 34px;
}

/* ==================== 手机版首页：卡片间距与卡内留白统一 ====================
   全页统一 12px 节奏：卡片之间（横向/纵向）12px，卡片内上下留白 12px，
   金刚区/商品/服务/新闻/信任条各组卡片视觉节奏一致，形成一体感。 */
@media only screen and (max-width: 767px) {
    /* 1) 商品双列卡（首页栅格 .ux-prd-mobile）：左右各 6px → 卡片间距 12px；纵向间距 12px */
    .ux-home-sec .ux-prd-mobile { margin: 0 -6px -12px; }
    .ux-home-sec .ux-prd-mobile .shop-item {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 12px;
    }
    .ux-home-sec .shop-item .lower-content { padding: 12px; }

    /* 2) 金刚区分类卡：卡内 12px，与下一组卡片间距 12px */
    .ux-kk-sec .ux-kk-card { padding: 12px; margin-bottom: 0; }
    /* 内层横滑容器不再叠加留白（保持原结构） */
    .ux-kk-sec .ux-kk-card .ux-kingkong,
    .ux-kk-sec .ux-kk-card .ux-kk-slider { padding: 0; }

    /* 3) 服务卡 / 新闻卡：卡内上下留白 12px，横滑卡片间距 12px */
    .ux-home-sec .ux-svc-body { padding: 12px; }
    .ux-home-sec .news-block .lower-content,
    .ux-home-sec .news-block-three .lower-content { padding: 12px; }
    .ux-home-sec .ux-svc-grid,
    .ux-home-sec .ux-news-row { gap: 12px; padding-bottom: 0; }

    /* 4) 信任条小卡：上下留白一致 12px；白底（原 transparent 会透出页面灰底，与新闻灰底连成一片） */
    .ux-trust { padding: 12px 0 !important; background: #fff; }
    .ux-trust .ux-trust-grid { gap: 12px; padding-bottom: 0; }

    /* 5) 区块之间（Banner→金刚区→商品→服务→新闻）：留白同样 12px */
    .ux-home-sec { padding: 12px 0 0; }
    .ux-home-sec.shop-section { padding-bottom: 0; }
    /* 新闻底部留白 12px（!important 抵消全局 section 的 28px），灰底在卡片下留出呼吸空间 */
    .ux-home-sec.ux-news-sec { padding-bottom: 12px !important; }
    .ux-kk-sec { padding: 12px 0 0 !important; }
    .main-slider { padding: 12px 0 0 !important; }

    /* 6) L3 卡片区块（图标特性/统计/评价/品牌墙）：卡片间距与卡内留白同样 12px */
    .ux-feat-grid, .ux-stat-grid, .ux-tm-grid, .ux-logo-grid { gap: 12px; }
    .ux-feat { padding: 16px 12px; }
    .ux-tm { padding: 16px 14px; }
}

.ux-footer-band h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ux-footer-light .ux-footer-band h4 { color: var(--ink); }
.ux-fband-follow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ux-fband-follow h4 { margin: 0; }
.ux-fband-social { display: flex; gap: 8px; }
.ux-fband-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #fff;
    color: var(--dark);
    font-size: 16px;
    transition: all .2s ease;
}
.ux-footer-light .ux-fband-social a { box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.ux-fband-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.ux-fband-news { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-width: 0; }
.ux-fband-news-head h4 { margin-bottom: 4px; }
.ux-fband-sub-tip { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.ux-footer-light .ux-fband-sub-tip { color: var(--muted); }
/* 订阅表单：白底输入框 + 主题色按钮（横条内左右拼接） */
.ux-footer .ux-footer-sub-form.ux-fband-form { width: 372px; max-width: 100%; }
.ux-footer .ux-footer-sub-form.ux-fband-form input[type=email] {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px 0 0 4px;
    background: #fff;
    color: #101828;
    font-size: 14px;
}
.ux-footer .ux-footer-sub-form.ux-fband-form input[type=email]::placeholder { color: #98a2b3; opacity: 1; }
.ux-footer .ux-footer-sub-form.ux-fband-form button {
    width: auto;
    min-width: 118px;
    height: 44px;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ux-footer .ux-footer-sub-form.ux-fband-form button:hover { background: var(--primary-hover); filter: none; }
.ux-footer-light .ux-footer-band .ux-footer-sub-msg { color: #15803d; }

/* 响应式：窄屏纵向堆叠，表单占满一行 */
@media (max-width: 991px) {
    .ux-footer .ux-container.ux-fband-in { flex-direction: column; align-items: stretch; gap: 16px; }
    .ux-fband-news { flex-direction: column; align-items: stretch; gap: 12px; }
    .ux-footer .ux-footer-sub-form.ux-fband-form { width: 100%; }
}
@media (max-width: 575px) {
    .ux-fband-social a { width: 34px; height: 34px; font-size: 14px; }
    .ux-footer .ux-footer-sub-form.ux-fband-form button { min-width: 96px; padding: 0 14px; font-size: 11px; }
}

/* ==================== 产品详情：实时小计移至加入购物车上方的吸底区（2026-10-29） ====================
   桌面端：小计作为独立卡片显示在价格/加购按钮上方，保持原有配色与行结构。
   移动端：吸底栏改为两行，小计独占首行，避免与数量/加购按钮挤在同一行。
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .shop-single .info-fixed-bottom { flex-wrap: wrap; }
    .shop-single .info-fixed-bottom .sku-subtotal { flex: 1 1 100%; order: -1; margin: 0 0 6px; }
}

/* ==================== 产品类目（电脑端圆形图标导航） ====================
   参考稿形态：一行圆形分类卡，封面图填满圆内，标签居中大写；
   手机端隐藏（分类入口由金刚区承担）。 */
.ux-home-sec.ux-catcirc-sec {
    padding: 34px 0 30px;
    background: #fff;
}
.ux-catcirc-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto;
}
.ux-catcirc-viewport {
    /* 视口占满左右箭头之间的空间；--cc-n=一屏可见圆数，--cc-t=圆总数 */
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ux-catcirc-viewport::-webkit-scrollbar { display: none; }
.ux-catcirc-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    /* 每个圆占视口 1/--cc-n 宽：圆数多于可见数时整行按比例变宽，也正好平分空间 */
    width: calc(100% * var(--cc-t, 1) / var(--cc-n, 6));
}
.ux-catcirc-nav {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ux-catcirc-nav i { font-size: 24px; line-height: 1; }
.ux-catcirc-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ux-catcirc-nav:disabled { opacity: .5; cursor: default; }
.ux-catcirc-item {
    display: flex;
    flex: 0 0 calc(100% / var(--cc-t, 1));
    min-width: 132px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}
.ux-catcirc-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ux-catcirc-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.ux-catcirc-ring i {
    font-size: 42px;
    color: var(--primary);
}
.ux-catcirc-name {
    margin-top: 13px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111827;
    transition: color .25s ease;
}
.ux-catcirc-item:hover .ux-catcirc-ring {
    border-color: var(--primary);
    box-shadow: 0 10px 24px -14px rgba(var(--primary-rgb), .85);
}
.ux-catcirc-item:hover .ux-catcirc-ring img { transform: scale(1.06); }
.ux-catcirc-item:hover .ux-catcirc-name { color: var(--primary); }
/* 当前选中的一级分类（二级联动时高亮） */
.ux-catcirc-item.is-active .ux-catcirc-ring {
    border-color: var(--primary);
    box-shadow: 0 10px 24px -14px rgba(var(--primary-rgb), .85);
}
.ux-catcirc-item.is-active .ux-catcirc-name { color: var(--primary); }
/* 二级分类行：与一级相同的圆形样式，居中换行排列 */
.ux-catcirc-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
}
.ux-catcirc-subitem { flex: 0 0 132px; width: 132px; }
html[data-theme="dark"] .ux-catcirc-sec { background: transparent; }
html[data-theme="dark"] .ux-catcirc-ring { background: #131a2c; border-color: #1e2836; }
html[data-theme="dark"] .ux-catcirc-name { color: #e5e7eb; }
html[data-theme="dark"] .ux-catcirc-nav { background: #131a2c; border-color: #1e2836; color: #e5e7eb; }
@media only screen and (max-width: 767px) {
    .ux-home-sec.ux-catcirc-sec { display: none; }
}
/* ==================== 品牌展示（Logo 轮播） ====================
   参考稿形态：白色区块内一屏多格（当前 6 格）品牌 Logo 卡片，格间细分隔线；
   左右圆形箭头悬浮在卡片两侧，内容超出时才显示箭头并可横向滑动。 */
.ux-home-sec.ux-brands-sec {
    padding: 30px 0 34px;
    background: #fff;
}
.ux-brands-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ux-brands-viewport {
    /* --bn=一屏可见品牌数（后台可配，移动端由媒体查询降为 2）；--bt=品牌总数 */
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.ux-brands-viewport::-webkit-scrollbar { display: none; }
.ux-brands-grid {
    display: flex;
    align-items: stretch;
    width: calc(100% * var(--bt, 1) / var(--bn, 3));
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.ux-brands-item {
    flex: 0 0 calc(100% / var(--bt, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 16px 14px;
    border-left: 1px solid var(--line);
    background: var(--card);
    transition: background .25s ease;
}
.ux-brands-item:first-child { border-left: 0; }
.ux-brands-item:hover { background: var(--bg); }
.ux-brands-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
}
.ux-brands-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 42px;
    object-fit: contain;
    transition: transform .3s ease, opacity .3s ease;
}
.ux-brands-link:hover .ux-brands-logo { transform: translateY(-2px) scale(1.04); }
.ux-brands-fallback {
    max-width: 100%;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ux-brands-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.ux-brands-nav {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .38);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.ux-brands-nav i { font-size: 20px; line-height: 1; }
.ux-brands-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ux-brands-nav:disabled { opacity: .4; cursor: default; }
/* 内容未超出时隐藏箭头（如不足一屏的品牌数） */
.ux-brands-carousel:not(.is-scrollable) .ux-brands-nav { display: none; }
html[data-theme="dark"] .ux-brands-sec { background: transparent; }
html[data-theme="dark"] .ux-brands-grid { border-color: #1e2836; }
html[data-theme="dark"] .ux-brands-item { border-color: #1e2836; }
html[data-theme="dark"] .ux-brands-fallback { color: #e5e7eb; }
html[data-theme="dark"] .ux-brands-nav { border-color: #1e2836; color: #e5e7eb; background: #131a2c; }
@media only screen and (max-width: 991px) {
    .ux-brands-sec { padding: 24px 0 28px !important; }
    /* 平板：一屏 3 格（后台配置的 6 格在窄屏过密，由媒体查询降级） */
    .ux-brands-viewport { --bn: 3 !important; }
    .ux-brands-item { min-height: 88px; padding: 14px 12px; }
    .ux-brands-logo { height: 38px; }
}
@media only screen and (max-width: 575px) {
    .ux-brands-viewport { --bn: 2 !important; }
    .ux-brands-carousel { gap: 8px; }
    .ux-brands-nav { flex-basis: 34px; width: 34px; height: 34px; }
    .ux-brands-nav i { font-size: 16px; }
    .ux-brands-item { min-height: 78px; padding: 12px 10px; }
    .ux-brands-logo { height: 32px; }
    .ux-brands-fallback { font-size: 15px; }
}

/* ==================== 品牌中心 / 品牌详情 ==================== */
.ux-brand-page { padding: 46px 0 64px; background: var(--bg); }
.ux-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* 品牌列表列数（模版中心 → 页面区块 → 品牌网格） */
.ux-brand-grid.bg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ux-brand-grid.bg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ux-brand-grid.bg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ux-brand-grid.bg-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ux-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 128px;
    padding: 28px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ux-brand-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb), .42);
    box-shadow: var(--shadow-md);
}
.ux-brand-card img { max-width: 100%; max-height: 54px; width: auto; object-fit: contain; }
.ux-brand-card-name { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.ux-brand-card-count { font-size: 12px; color: var(--muted); }
.ux-brand-back { margin-bottom: 18px; }
.ux-brand-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.ux-brand-back-btn:hover {
    border-color: rgba(var(--primary-rgb), .45);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .ux-brand-back-btn { background: #131a2c; border-color: #1e2836; color: #e5e7eb; }
.ux-brand-intro {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.ux-brand-intro-logo {
    flex: 0 0 236px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.ux-brand-intro-logo img { max-width: 100%; max-height: 92px; width: auto; object-fit: contain; }
.ux-brand-intro-fallback { font-size: 22px; font-weight: 800; color: var(--ink); text-align: center; }
.ux-brand-intro-body { flex: 1 1 auto; min-width: 0; }
.ux-brand-intro-body h3 { margin: 0 0 12px; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); }
.ux-brand-desc { color: #475467; line-height: 1.8; }
.ux-brand-desc-empty { color: var(--muted); }
.ux-brand-desc img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.ux-brand-site-btn { margin-top: 18px; }
.ux-brand-products { margin-top: 34px; }
.ux-brand-products .ux-sec-head { margin-bottom: 18px; }
/* 品牌详情两栏：内容区 + 品牌选择/筛选侧栏 */
.ux-brand-layout { margin-top: 34px; }
.ux-brand-layout .ux-brand-products { margin-top: 0; }
.ux-brand-layout > .content-side { min-width: 0; }
@media only screen and (max-width: 991px) {
    .ux-brand-layout .sidebar-side { margin-top: 30px; }
}
/* 底部导航按钮：与收藏页（.shop-section 内）保持完全一致的外观与 hover 行为 */
.ux-brand-page .page-foot-links .theme-btn {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .32);
}
.ux-brand-page .page-foot-links .theme-btn:hover {
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), .4);
}
.ux-brand-page .page-foot-links .theme-btn.btn-style-one:hover { color: var(--primary) !important; }
.ux-brand-page .page-foot-links .theme-btn.btn-style-two:hover { background: var(--dark) !important; }
.ux-brand-empty {
    padding: 46px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
html[data-theme="dark"] .ux-brand-page { background: transparent; }
html[data-theme="dark"] .ux-brand-card,
html[data-theme="dark"] .ux-brand-intro,
html[data-theme="dark"] .ux-brand-empty { background: #131a2c; border-color: #1e2836; }
html[data-theme="dark"] .ux-brand-intro-logo { background: #0f1623; border-color: #1e2836; }
html[data-theme="dark"] .ux-brand-desc { color: #cbd5e1; }
@media only screen and (max-width: 991px) {
    .ux-brand-page { padding: 30px 0 44px; }
    .ux-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .ux-brand-grid.bg-cols-4,
    .ux-brand-grid.bg-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ux-brand-card { min-height: 110px; padding: 20px 14px; }
    .ux-brand-intro { flex-direction: column; gap: 20px; padding: 20px; }
    .ux-brand-intro-logo { flex-basis: auto; width: 100%; min-height: 104px; }
}
@media only screen and (max-width: 575px) {
    .ux-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ux-brand-grid[class*="bg-cols-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ux-brand-card { min-height: 96px; padding: 18px 12px; }
    .ux-brand-card img { max-height: 42px; }
}
/* 页面区块拆分后的段间衔接：品牌介绍段 / 品牌产品段合并原始留白 */
.ux-brand-intro-sec { padding-bottom: 0; }
.ux-brand-products-sec { padding-top: 0; }

/* ==================== 买家评价（首页评价轮播） ====================
   参考稿形态：一行评价卡（实拍图 + 星级白底胶囊 + 姓名 + 两行评语），
   左右圆形箭头悬浮两侧，内容超出时横向滑动；数据为审核通过的评论。 */
.ux-home-sec.ux-reviews-sec {
    padding: 34px 0 36px;
    /* 浅灰底衬托白色评价卡（参考稿：灰底白卡） */
    background: var(--bg);
}
.ux-reviews-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ux-reviews-viewport {
    /* --rv-n=一屏可见评价数（后台可配）；--rv-t=评价总数 */
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.ux-reviews-viewport::-webkit-scrollbar { display: none; }
.ux-reviews-grid {
    display: flex;
    align-items: stretch;
    width: calc(100% * var(--rv-t, 1) / var(--rv-n, 4));
}
.ux-reviews-item {
    display: flex;
    flex: 0 0 calc(100% / var(--rv-t, 1));
    padding: 0 8px;
    box-sizing: border-box;
}
.ux-review-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px -18px rgba(15, 23, 42, .32);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ux-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px -18px rgba(15, 23, 42, .38);
}
.ux-review-media { position: relative; display: block; }
.ux-review-photo {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #f3f4f6;
}
.ux-review-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.ux-review-card:hover .ux-review-photo img { transform: scale(1.04); }
/* 星级白底胶囊：压在图片底边，向下越界到姓名区上方 */
.ux-review-stars {
    position: absolute;
    left: 50%;
    bottom: -15px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .14);
    transform: translateX(-50%);
}
.ux-review-stars i { font-size: 14px; line-height: 1; color: #f5a623; }
.ux-review-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    padding: 30px 18px 22px;
    text-align: center;
}
.ux-review-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}
.ux-review-name i { font-size: 14px; color: #2563eb; }
.ux-review-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    -webkit-box-orient: vertical;
    /* 最多两行，超出以省略号收尾 */
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.ux-reviews-nav {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: #374151;
    box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .4);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.ux-reviews-nav i { font-size: 18px; line-height: 1; }
.ux-reviews-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ux-reviews-nav:disabled { opacity: .4; cursor: default; }
/* 内容未超出时隐藏箭头 */
.ux-reviews-carousel:not(.is-scrollable) .ux-reviews-nav { display: none; }
html[data-theme="dark"] .ux-reviews-sec { background: transparent; }
html[data-theme="dark"] .ux-review-card { background: #131a2c; }
html[data-theme="dark"] .ux-review-photo { background: #0f1623; }
html[data-theme="dark"] .ux-review-stars { background: #131a2c; box-shadow: none; }
html[data-theme="dark"] .ux-review-name { color: #e5e7eb; }
html[data-theme="dark"] .ux-review-text { color: #cbd5e1; }
html[data-theme="dark"] .ux-reviews-nav { background: #131a2c; border-color: #1e2836; color: #e5e7eb; }
@media only screen and (max-width: 1199px) {
    .ux-reviews-viewport { --rv-n: 3 !important; }
}
@media only screen and (max-width: 767px) {
    .ux-reviews-viewport { --rv-n: 2 !important; }
    .ux-review-body { padding: 26px 14px 18px; }
}
@media only screen and (max-width: 575px) {
    .ux-reviews-viewport { --rv-n: 1.15 !important; }
    .ux-reviews-sec { padding: 26px 0 28px; }
    .ux-reviews-carousel { gap: 8px; }
    .ux-reviews-nav { flex-basis: 34px; width: 34px; height: 34px; }
    .ux-reviews-nav i { font-size: 16px; }
}

/* 商品页「不含税」提示：问号图标悬停 / 键盘聚焦显示说明（复用全局 [data-tip]） */
.shop-single .price .tax-info[data-tip] { cursor: help; outline-offset: 2px; }
.shop-single .price .tax-info[data-tip] i { margin-left: 3px; color: var(--primary); font-size: 13px; vertical-align: -1px; }

/* 价格面议商品吸底栏：收藏 / 对比 / 分享（复用普通商品操作行样式，仅解除吸底栏的隐藏规则） */
.shop-single .info-fixed-bottom .por-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}

/* 购物车批量操作：勾选列 / 全选 / 删除所选 / 结算所选 */
.cart-table .cell-select { width: 34px; text-align: center; }
.cart-table .cell-select input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); margin: 0;
}
.cart-table tbody tr.is-selected { box-shadow: inset 3px 0 0 var(--primary); }
/* 未达换购/赠品门槛的行：整行置灰，复选框不可勾选 */
.cart-table tbody tr.is-disabled { opacity: .55; }
.cart-table tbody tr.is-disabled .cell-select input[type="checkbox"] { cursor: not-allowed; }
/* 表头「商品（N）」中的已勾选计数 */
.cart-table thead th [data-batch-count] { color: var(--primary); font-weight: 600; }
/* 小计行左侧：删除所选（与标签同一行） */
.cart-subtotal-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cart-batch-del {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 9px; font-size: 12px; line-height: 1.7; font-weight: 400;
    color: var(--muted); background: transparent;
    border: 1px solid var(--line); border-radius: 999px;
    cursor: pointer; white-space: nowrap;
}
.cart-batch-del:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.cart-batch-del:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 767px) {
    .cart-subtotal-label { gap: 8px; }
}


/* 结算页「保存地址」：按钮 + 提示 + 结果文案 */
.addr-save-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.addr-save-row .theme-btn { flex: 0 0 auto; }
.addr-save-hint { color: var(--muted); font-size: 12.5px; }
.addr-save-msg { font-size: 13px; color: var(--muted); }
.addr-save-msg.is-ok { color: #16a34a; }
.addr-save-msg.is-error { color: #dc2626; }

/* 顶栏会员名称（已登录）/ 会员登录入口（未登录） */
.ux-topbar-user {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 600;
    text-decoration: none; white-space: nowrap; max-width: 180px;
}
.ux-topbar-user:hover { color: #fff; }
.ux-topbar-user i { font-size: 13px; flex: 0 0 auto; }
.ux-topbar-user span { overflow: hidden; text-overflow: ellipsis; }
.ux-header.uxh-bg-light .ux-topbar-user { color: #344054; }
.ux-header.uxh-bg-light .ux-topbar-user:hover { color: #101828; }
/* 顶栏默认定位（会员登录左侧）：与会员登录同款，点击可手动选择地区 */
.ux-topbar-geo {
    display: inline-flex; align-items: center; gap: 5px;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    color: rgba(255, 255, 255, .92); font-family: inherit;
    font-size: 15px; font-weight: 600; letter-spacing: normal;
    white-space: nowrap; max-width: 200px; border-radius: 0;
}
.ux-topbar-geo:hover { color: #fff; background: transparent; }
.ux-topbar-geo > i:first-child { font-size: 13px; flex: 0 0 auto; }
.ux-topbar-geo span { overflow: hidden; text-overflow: ellipsis; }
.ux-header.uxh-bg-light .ux-topbar-geo { color: #344054; }
.ux-header.uxh-bg-light .ux-topbar-geo:hover { color: #101828; background: transparent; }
/* 地区选择面板：搜索 + 可滚动国家列表 */
.ux-geo-menu { width: 288px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; }
.ux-geo-search { padding: 2px 2px 8px; }
.ux-geo-search input {
    width: 100%; box-sizing: border-box; padding: 7px 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 13px; color: #344054; background: var(--bg-soft, #f7f8fa);
}
.ux-geo-search input:focus { outline: none; border-color: var(--primary); }
.ux-geo-list { overflow-y: auto; max-height: 300px; }
.ux-geo-list a { min-height: 34px; }
.ux-geo-list a img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; }
.ux-geo-list a span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
    .ux-topbar-geo span { display: none; }
    .ux-topbar-geo { gap: 6px; font-size: 14px; }
}
@media (max-width: 767px) {
    .ux-topbar-user { gap: 0; font-size: 14px; }
    .ux-topbar-user span { display: none; }
}

/* 金额/地址区与下方“操作记录”等卡片之间留出缝隙（地址卡已移入金额区） */
.account-main .order-summary { margin-bottom: 18px; }

/* 会员中心侧栏：会员名称卡改为与顶部欢迎卡一致的渐变色，并显示等级标号 */
.account-side-name {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border: 0;
    color: #fff;
}
.account-side-name > i { color: rgba(255, 255, 255, .9); }
.account-side-name strong { color: #fff; }
.account-side-name .side-user { min-width: 0; }
.account-side-name .side-user-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-side-name .side-user-email {
    display: block; margin-top: 2px; font-size: 12px;
    color: rgba(255, 255, 255, .8); word-break: break-all;
}
.account-side-name .side-level-badge {
    margin-left: 0; padding: 2px 9px 2px 6px; gap: 5px;
    font-size: 11px; color: #fff;
}
.account-side-name .side-level-badge i { font-size: 11px; color: #fff; }
.account-side-name .side-level-badge .lv-badge { width: 16px; height: 16px; box-shadow: none; }
.account-side-name img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }

/* 侧栏等级气泡：沿用会员中心顶部卡的气泡样式与定位（居中于徽章） */
.account-side { overflow: visible; }
.account-side-name {
    border-radius: calc(var(--shop-radius, 14px) - 1px) calc(var(--shop-radius, 14px) - 1px) 0 0;
}
.account-side-name .ac-level-badge-wrap { display: inline-flex; }
.account-side-name .side-level-tooltip { width: 250px; z-index: 40; }
/* 气泡内的文字尺寸/颜色不受侧栏白色文字规则影响 */
.account-side-name .side-level-tooltip { font-size: 13px; color: var(--shop-ink); }
.account-side-name .side-level-tooltip .ac-tt-title { font-size: 16px; color: var(--shop-brand); }
.account-side-name .side-level-tooltip .ac-tt-title .lv-badge.lv-badge-lg { width: 46px; height: 46px; box-shadow: none; }
.account-side-name .side-level-tooltip .ac-tt-row { font-size: 13px; color: var(--shop-muted); }
.account-side-name .side-level-tooltip .ac-tt-row strong { color: var(--shop-ink); font-weight: 700; }
.account-side-name .side-level-tooltip .ac-tt-progress em { font-size: 12px; color: var(--shop-ink); }
.account-side-name .side-level-tooltip .ac-tt-tip { font-size: 12px; color: var(--shop-muted); }
@media (max-width: 991px) {
    .account-side-name { border-radius: 14px; }
}

/* ===== 会员中心：我的评价 ===== */
.my-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.my-review-item {
    display: flex; gap: 14px; padding: 16px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card);
}
.my-review-thumb {
    width: 84px; height: 84px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; overflow: hidden; background: var(--bg);
    color: var(--muted);
}
.my-review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-review-body { flex: 1; min-width: 0; }
.my-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.my-review-title { font-weight: 600; color: var(--ink); }
a.my-review-title:hover { color: var(--primary); }
.review-status { font-size: 12px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.review-status.is-pending { background: #fff6e5; color: #a86b00; }
.review-status.is-approved { background: #e7f7ee; color: #0f7a43; }
.review-status.is-rejected { background: #fde7e7; color: #b91c1c; }
.my-review-stars { display: flex; align-items: center; gap: 2px; margin: 5px 0 2px; color: #f5a623; font-size: 13px; }
.my-review-stars span { margin-left: 6px; color: var(--muted); font-size: 12px; }
.my-review-stars .is-empty { color: #dcdfe4; }
.my-review-time { font-size: 12px; color: var(--muted); }
.my-review-text { margin: 8px 0 6px; line-height: 1.75; color: var(--ink); word-break: break-word; }
.my-review-media { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.my-review-media img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--line); display: block;
}
.my-review-reply {
    margin: 8px 0; padding: 8px 12px; font-size: 13px; line-height: 1.7;
    background: var(--bg); border-left: 3px solid var(--primary); border-radius: 6px;
    color: var(--ink); word-break: break-word;
}
@media (max-width: 767px) {
    .my-review-item { padding: 12px; gap: 10px; }
    .my-review-thumb { width: 64px; height: 64px; }
}

/* 订单号行：右侧“打印订单/形式发票”按钮，与下方“加入购物车”按钮同一条右边界 */
.order-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.order-head-row .account-main-title { margin: 0; }
.order-head-row .order-actions-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-right: 12px; }
.order-head-row .order-actions-inline:empty { display: none; }
/* 商品表前四列（商品/单价/数量/小计）表头与内容居中 */
.account-main .card-flush .shop-table .order-th-center,
.account-main .card-flush .shop-table .order-td-center { text-align: center; }
/* 商品列：表头保持居中，单元格内容靠左；固定列宽后长标题在列内换行，不再撑宽整列 */
.account-main .card-flush .shop-table { table-layout: fixed; }
.account-main .card-flush .shop-table th:nth-child(2) { width: 108px; } /* 单价 */
.account-main .card-flush .shop-table th:nth-child(3) { width: 86px; }  /* 数量 */
.account-main .card-flush .shop-table th:nth-child(4) { width: 118px; } /* 小计 */
.account-main .card-flush .shop-table th.order-review-cell { width: 112px; }
.account-main .card-flush .shop-table th:last-child { width: 168px; }   /* 操作 */
.account-main .card-flush .shop-table td.shop-product-cell {
    justify-content: flex-start;
    align-items: flex-start;
}
.account-main .card-flush .shop-table td.shop-product-cell img { flex: 0 0 auto; }
.account-main .card-flush .shop-table td.shop-product-cell > div {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.account-main .card-flush .shop-table td.shop-product-cell strong,
.account-main .card-flush .shop-table td.shop-product-cell strong a {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 商品表“评价”“操作”两列的表头与内容统一居中 */
.account-main .card-flush .shop-table .order-review-cell,
.account-main .card-flush .shop-table .order-rebuy-cell,
.account-main .card-flush .shop-table th:last-child,
.account-main .card-flush .shop-table td:last-child { text-align: center; }

/* 订单详情：商品超过 5 件时折叠，底部提示行点击展开/收起 */
.order-items-toggle-row td { border-top: 1px dashed #e6e9e0; }
.order-items-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 8px 12px;
    color: #6d7f4a;
    font-size: 13px;
    cursor: pointer;
}
.order-items-toggle:hover { color: #3f5227; text-decoration: underline; }
.order-items-toggle .fa { transition: transform .2s ease; }
.order-items-toggle.is-open .fa { transform: rotate(180deg); }
/* 地址内容按卡片高度均匀分布行距，避免全挤在顶部 */
.order-side .order-addr-block { display: flex; flex-direction: column; }
.order-side .order-addr-block > .addr-card-fill {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    overflow: auto;
}
.order-side .order-addr-block .addr-row { flex: 0 0 auto; }

/* 订单金额右侧列：收货地址（与金额明细同高） */
.order-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* 地址卡压缩到与金额明细同一高度区间，内部过高时自身滚动 */
.order-side .order-addr-block {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    margin-bottom: 0;
    padding: 14px 12px 14px 18px;
}
.order-side .order-addr-head { margin-bottom: 8px; }
.order-side .order-addr-head h4 { font-size: 15px; }
/* 地址卡整体稍微向右缩进，右边缘保持与容器齐边 */
@media (min-width: 992px) {
    .order-side .order-addr-block { margin-left: 28px; margin-right: 0; }
}

/* ---------- 订单详情：收货/账单地址（平铺 + 原版彩色图标，仅作用于订单详情） ---------- */
.order-addr-block .addr-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.order-addr-block .addr-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1px 0;
}
/* 图标回到原样式：圆形底 + 各类型原配色（沿用 .addr-ico 与 .i-* 的默认色，不在此覆盖） */
.order-addr-block .addr-row .addr-ico {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; font-size: 14px;
}
.order-addr-block .addr-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.order-addr-block .addr-text.addr-text-lg { font-size: 15px; font-weight: 700; }
.order-addr-block .addr-row:first-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.order-addr-block .remark-box { margin-top: 12px; }
.order-addr-block .addr-sep { margin: 14px 0 10px; }
.order-addr-block .addr-subhead { margin: 0 0 6px; font-size: 14px; }
.order-addr-block .addr-subhead i { color: var(--muted); margin-right: 4px; }
@media (max-width: 575px) {
    .order-addr-block { padding: 16px; }
    .order-addr-block .addr-row { gap: 10px; }
    .order-addr-block .addr-row .addr-ico { width: 30px; height: 30px; font-size: 14px; }
    .order-addr-block .addr-text { font-size: 14px; }
}

/* ==================== 商品详情信息卡：内边距放宽 + 价格椭圆胶囊 ==================== */
@media (min-width: 768px) {
    /* 右侧信息卡内容与边框之间留出呼吸位（原先仅 10px，显得边框很窄） */
    .product-details .info-column .info-fixed-top { padding: 16px 20px 12px; }
    .product-details .info-column .info-scroll { padding: 10px 16px 10px 20px; }
    .product-details .info-column .info-fixed-bottom { padding: 12px 20px 16px; }
    /* 价格改为椭圆胶囊 */
    .product-details .info-column .info-fixed-top .price {
        display: inline-flex;
        align-items: baseline;
        gap: 10px;
        width: fit-content;
        max-width: 100%;
        margin: 6px 0 2px;
        padding: 7px 16px;
        border-radius: 999px;
        background: rgba(var(--primary-rgb, 5, 150, 105), .09);
    }
}
