/*
Theme Name: xiaozou
Description: 东京小奏商城主题（替代 sage + beautiso）。手机优先；业务逻辑在 bso-config 插件。
Author: Wei Li
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: xiaozou
*/

/* =========================================================================
   变量（数值来自 sage + beautiso 的实际样式，2026-11-20 测量）
   ========================================================================= */
:root {
    --xz-brand: #ff5252;          /* 品牌红（按钮、选中等）= 东京小奏 logo 的红色；主题设置可以改（inc/setup.php 输出） */
    --xz-brand-tab: var(--xz-brand);      /* 手机底栏选中 */
    --xz-text: #232323;           /* 正文 */
    --xz-title: #021422;          /* 标题 */
    --xz-muted: rgba(2, 20, 34, .75);
    --xz-light: rgba(2, 20, 34, .58);
    --xz-line: #edeeef;
    --xz-line-soft: rgba(2, 20, 34, .05);
    --xz-bg: #fff;                /* 页面背景（手机） */
    --xz-bg-pc: #f7f8f9;          /* 中性浅灰（电脑筛选行的标题格等） */
    --xz-page: #f4f4f4;           /* 页面背景：主题色的浅色（inc/setup.php 按主题色算出来输出；这里是没有输出时的灰色） */
    --xz-page-pc: #f7f8f9;        /* 页面背景（电脑） */
    --xz-brand-soft: #fff1f0;     /* 主题色的浅色：选中的格子 / 标签的底色（inc/setup.php 输出） */
    --xz-card: #fff;
    --xz-radius: 4px;
    --xz-font: -apple-system, system-ui, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --xz-container: 1200px;
    --xz-gutter: 15px;
    --xz-header-h: 53px;          /* 手机页头（含下边线） */
    --xz-tabbar-h: 48px;
    --xz-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* =========================================================================
   基础
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* hidden 属性总是隐藏（display: flex / block 的元素也一样；脚本用 el.hidden 切换显示） */
[hidden] { display: none !important; }

body {
    margin: 0;
    padding-bottom: calc(var(--xz-tabbar-h) + 2px + var(--xz-safe-bottom)); /* 手机底栏 */
    background: var(--xz-bg);
    color: var(--xz-text);
    font: 400 14px/1.5 var(--xz-font);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--xz-brand); }
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--xz-title); line-height: 1.4; margin: 0 0 .6em; }
:focus-visible { outline: 2px solid var(--xz-brand); outline-offset: 2px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.xz-skip:focus {
    position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; clip-path: none;
    padding: 8px 12px; background: #fff; border-radius: var(--xz-radius); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.xz-container { width: 100%; max-width: calc(var(--xz-container) + var(--xz-gutter) * 2); margin: 0 auto; padding: 0 var(--xz-gutter); }
.xz-icon { width: 1em; height: 1em; flex: none; }

.xz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-height: 40px; padding: 0 20px; border: 1px solid rgba(2, 20, 34, .2); border-radius: 20px;
    background: #fff; color: var(--xz-text); font-size: 15px; line-height: 1;
}
.xz-btn-primary { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-btn-primary:hover { color: #fff; opacity: .9; }

/* =========================================================================
   页头（手机）：logo | 搜索 | 菜单按钮
   ========================================================================= */
.xz-topbar { display: none; }
.xz-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--xz-line); }
.xz-header-main { display: flex; align-items: center; gap: 10px; height: calc(var(--xz-header-h) - 1px); padding: 8px 12px; }
.xz-logo { margin: 0; font-size: 20px; line-height: 1; flex: none; }
.xz-logo a { display: block; }
.xz-logo-img { display: block; width: 32px; height: 32px; object-fit: contain; }

.xz-search { flex: 1; min-width: 0; }
.xz-search-form { position: relative; display: flex; }
.xz-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: rgba(2, 20, 34, .45); pointer-events: none; }
.xz-search-input {
    flex: 1; min-width: 0; height: 36px; padding: 0 12px 0 34px; border: 0; border-radius: 18px;
    background: #f2f3f5; font-size: 14px; outline: none; -webkit-appearance: none; appearance: none;
}
.xz-search-input::placeholder { color: rgba(2, 20, 34, .45); }
.xz-search-input::-webkit-search-cancel-button { display: none; }
.xz-search-btn, .xz-search-hot { display: none; }

.xz-cart-link { display: none; }
.xz-menu-btn {
    flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    margin-left: 2px; padding: 0; border: 0; background: none; color: var(--xz-text); font-size: 26px;
}

/* 菜单抽屉（手机）：左侧滑出，品牌红底 */
.xz-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: 312px; max-width: 85vw;
    padding: 50px 0; overflow-y: auto; background: var(--xz-brand); color: #fff;
    transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
}
.xz-drawer-open .xz-nav { transform: none; visibility: visible; }
.xz-drawer-open { overflow: hidden; }
.xz-nav-mask { position: fixed; inset: 0; z-index: 99; background: rgba(0, 0, 0, .45); }
.xz-nav-inner { padding: 0; }
.xz-nav-close {
    position: absolute; top: 10px; right: 10px; display: flex; width: 32px; height: 32px; align-items: center; justify-content: center;
    padding: 0; border: 0; background: none; color: #fff; font-size: 22px;
}
.xz-nav ul { list-style: none; margin: 0; padding: 0; }
.xz-primary-menu > li > a, .xz-catnav-title {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 15px 20px;
    border: 0; border-bottom: 1px solid rgba(2, 20, 34, .04); background: none;
    color: rgba(255, 255, 255, .98); font-size: 16px; line-height: 24px; text-align: left;
}
.xz-primary-menu a:hover, .xz-catnav-menu a:hover { color: #fff; }
.xz-primary-menu .sub-menu a, .xz-catnav-menu a { display: block; padding: 10px 20px 10px 36px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.xz-primary-menu > .current-menu-item > a { background: rgba(255, 255, 255, .1); }
.xz-menu-icon { width: 18px; height: 18px; }
.xz-catnav { display: none; }  /* 手机：商品分类走底栏「分类」（同 sage） */
.xz-catnav-arrow { margin-left: auto; transition: transform .2s; }

/* =========================================================================
   页面布局
   ========================================================================= */
.xz-main { display: block; }
.xz-layout { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; padding-bottom: 24px; }
.xz-content { min-width: 0; background: var(--xz-card); }
.xz-sidebar { display: none; }

.xz-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.xz-page-title { position: relative; margin: 0; font-size: 22px; font-weight: 600; line-height: 30px; }
.xz-breadcrumb { display: flex; align-items: center; gap: 4px; flex: none; color: var(--xz-muted); font-size: 14px; }
.xz-breadcrumb-sep { width: 12px; height: 12px; opacity: .6; }

/* 正文 */
.xz-entry { font-size: 15px; line-height: 1.75; word-break: break-word; }
.xz-entry > :first-child { margin-top: 0; }
.xz-entry p, .xz-entry ul, .xz-entry ol, .xz-entry table, .xz-entry blockquote { margin: 0 0 1em; }
.xz-entry ul, .xz-entry ol { padding-left: 1.5em; }
.xz-entry table { width: 100%; border-collapse: collapse; }
.xz-entry th, .xz-entry td { padding: 8px; border: 1px solid var(--xz-line); }
.xz-entry details { border-bottom: 1px solid var(--xz-line); }
.xz-entry summary { padding: 16px 0; font-size: 18px; color: var(--xz-title); cursor: pointer; }

/* sage 的「折叠面板」区块（wpcom/accordion，帮助中心）：保存的 HTML 是 Bootstrap 的 panel / collapse */
.wp-block-wpcom-accordion { margin: 0 0 1em; }
.wp-block-wpcom-acco { border-bottom: 1px solid var(--xz-line); }
.wp-block-wpcom-acco .panel-title { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.5; }
.wp-block-wpcom-acco .panel-title a { position: relative; display: block; padding: 16px 32px 16px 0; color: var(--xz-title); }
.wp-block-wpcom-acco .panel-title a::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.wp-block-wpcom-acco .panel-title a[aria-expanded="true"]::after { margin-top: -2px; transform: rotate(-135deg); }
.wp-block-wpcom-acco .panel-collapse:not(.in) { display: none; }
.wp-block-wpcom-acco .panel-body { padding: 0 0 16px; }

/* 404 */
.xz-404 { padding: 60px 0; text-align: center; }
.xz-404-code { margin: 0; color: var(--xz-brand); font-size: 64px; font-weight: 700; line-height: 1; }
.xz-404-title { margin: 12px 0; font-size: 22px; }
.xz-404-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* 边栏小工具（电脑） */
.widget { margin-bottom: 20px; padding: 20px; background: var(--xz-card); border-radius: var(--xz-radius); }
.widget-title { margin: 0 0 12px; font-size: 16px; }

/* =========================================================================
   页脚（手机不显示）、回到顶部、手机底栏
   ========================================================================= */
.xz-footer { display: none; }

.xz-gotop {
    position: fixed; right: 12px; bottom: calc(var(--xz-tabbar-h) + 16px + var(--xz-safe-bottom)); z-index: 30;
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 3px; background: rgba(2, 20, 34, .1); color: rgba(2, 20, 34, .5); font-size: 18px;
}
.xz-gotop[hidden] { display: none; }

.xz-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; height: calc(var(--xz-tabbar-h) + var(--xz-safe-bottom)); padding-bottom: var(--xz-safe-bottom);
    background: #fff; box-shadow: 0 -1px 3px rgba(2, 20, 34, .08);
}
.xz-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #666; font-size: 11px; line-height: 1.2;
}
.xz-tab .xz-icon { width: 22px; height: 22px; }
.xz-tab.is-active { color: var(--xz-brand-tab); }

/* =========================================================================
   商品列表（商店 / 分类 / 品牌 / 标签 / 搜索）
   ========================================================================= */
.xz-shop { padding-top: 16px; padding-bottom: 24px; }
.xz-wc-breadcrumb, .woocommerce-result-count { display: none; }

/* 排序栏（参考淘宝）：综合 / 销量 / 价格⇅ + 筛选。手机吸顶 */
.xz-shop-bar { position: sticky; top: 0; z-index: 20; margin: -16px calc(var(--xz-gutter) * -1) 8px; background: #fff; box-shadow: 0 1px 0 #f0f0f0; }
.xz-sortbar { display: flex; align-items: center; height: 44px; padding: 0 4px; }
.xz-sort, .xz-filter-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 100%; padding: 0; border: 0; background: none; color: #333; font-size: 14px; cursor: pointer; }
.xz-sort.is-active { color: var(--xz-brand); font-weight: 600; }
.xz-sort-arrows { width: 7px; height: 11px; fill: #c4c4c4; }
.xz-sort-price.is-price .up, .xz-sort-price.is-price-desc .down { fill: var(--xz-brand); }
.xz-filter-btn { position: relative; }
.xz-filter-btn::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #eee; }
.xz-filter-btn .xz-icon { width: 15px; height: 15px; }

/* 商品网格（参考淘宝）：手机 2 列、灰底白卡片；图片铺满，名称左对齐 2 行，价格 + 已售 */
ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.xz-pcard { position: relative; min-width: 0; overflow: hidden; border-radius: 8px; background: #fff; }
.xz-pcard-link { display: flex; flex-direction: column; height: 100%; color: #222; }
.xz-pcard-pic { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.xz-pcard-img { width: 100%; height: 100%; object-fit: contain; }
.xz-pcard-title {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    margin: 8px 8px 0; font-size: 14px; line-height: 20px; min-height: 40px;
}
.xz-pcard-foot { display: flex; flex-direction: column; margin-top: auto; padding: 6px 8px 10px; }
.xz-pcard-price { min-width: 0; font-size: 16px; line-height: 1.3; }
.xz-pcard-price > span[style*="grey"] { font-size: 11px !important; }
.xz-pcard-sold { margin-top: 2px; color: #999; font-size: 11px; line-height: 1.3; white-space: nowrap; }
@media (hover: hover) { .xz-pcard-link:hover .xz-pcard-title { color: var(--xz-brand); } }
.xz-shop-page { background: var(--xz-page); }
.xz-onsale { /* 「促」：主题红的小角标（参考淘宝），原来是 sage 的绿色 */
    position: absolute; left: 6px; top: 6px; z-index: 1; padding: 0 5px; border-radius: 4px;
    background: var(--xz-brand); color: #fff; font-size: 11px; line-height: 18px;
}

/* 分页（没有 JS 时）/ 下滑加载 */
.woocommerce-pagination { margin: 24px 0 0; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.woocommerce-pagination .page-numbers { display: block; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #eee; border-radius: var(--xz-radius); background: #fff; line-height: 34px; }
.woocommerce-pagination .page-numbers.current { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-more { padding: 20px 0 4px; color: var(--xz-light); font-size: 13px; text-align: center; }

/* 没有商品 */
.xz-empty { padding: 72px 16px; color: var(--xz-light); text-align: center; }
.xz-empty-icon { width: 56px; height: 56px; margin-bottom: 12px; opacity: .35; }
.xz-empty p { margin: 0 0 20px; font-size: 16px; }

/* 筛选（手机：右侧抽屉） */
.xz-filters {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 86vw; max-width: 360px; overflow-y: auto;
    padding: 0 16px calc(24px + var(--xz-safe-bottom)); background: #fff;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
}
.xz-filters-open .xz-filters { transform: none; visibility: visible; }
.xz-filters-open { overflow: hidden; }
.xz-filters-mask { position: fixed; inset: 0; z-index: 99; background: rgba(0, 0, 0, .45); }
.xz-filters-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 52px; margin: 0 -16px 8px; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid var(--xz-line); font-size: 17px; }
.xz-filters-close { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; background: none; font-size: 20px; }
.xz-filters .widget { margin: 0; padding: 12px 0; border-radius: 0; background: none; }
.xz-filters .widget-title { margin: 0 0 10px; color: var(--xz-title); font-size: 15px; font-weight: 600; }
.xz-filters ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.xz-filters li a { display: inline-block; padding: 6px 12px; border-radius: 16px; background: #f4f5f6; color: var(--xz-text); font-size: 14px; line-height: 20px; }
.xz-filters li .count { display: none; }
.xz-filters li.current-cat > a, .xz-filters li.chosen > a { background: var(--xz-brand); color: #fff; }
.xz-filters li.chosen > a::before { display: none; }
.xz-filter-more { display: none; }

/* =========================================================================
   商品详情页（inc/product.php、assets/js/product.js）
   ========================================================================= */
.single-product { padding-bottom: calc(var(--xz-tabbar-h) + 68px + var(--xz-safe-bottom)); } /* 底栏 + 购买栏 */
.xz-pd { padding-bottom: 24px; }
.xz-pd .woocommerce-notices-wrapper:empty { display: none; }

/* 图片：全宽、左右滑动 */
.xz-gallery { position: relative; margin: 0 calc(var(--xz-gutter) * -1) 20px; background: #fff; }
.xz-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.xz-gallery-track::-webkit-scrollbar { display: none; }
.xz-gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1 / 1; cursor: zoom-in; }
.xz-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xz-gallery-count {
    position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 12px;
    background: rgba(0, 0, 0, .35); color: #fff; font-size: 12px; line-height: 20px;
}
.xz-gallery-count b { font-weight: 400; }
.xz-gallery-thumbs { display: none; }

/* 全屏查看 */
.xz-viewer { position: fixed; inset: 0; z-index: 200; background: #000; }
.xz-viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.xz-viewer-track::-webkit-scrollbar { display: none; }
.xz-viewer-track figure { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; margin: 0; scroll-snap-align: start; }
.xz-viewer-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.xz-viewer-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 40px; }
.xz-viewer-count { position: absolute; left: 0; right: 0; bottom: calc(20px + var(--xz-safe-bottom)); color: #fff; font-size: 14px; text-align: center; }
.xz-viewer-open { overflow: hidden; }

/* 摘要区：手机价格在最上面 */
.entry-summary { display: flex; flex-direction: column; }
.xz-pd-price { order: -1; display: flex; align-items: baseline; margin-bottom: 6px; }
.xz-pd-price-label { display: none; }
.xz-pd-price .price { font-size: 27px; line-height: 1.2; }
.xz-pd-price .price > span[style*="grey"] { margin-left: 14px; font-size: 16px !important; }
.xz-price-from { margin-left: 14px; color: var(--xz-brand); font-size: 15px; }
.xz-pd-title { margin: 0 0 16px; color: var(--xz-text); font-size: 17px; font-weight: 600; line-height: 1.4; }
.xz-pd-badge { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 3px; background: var(--xz-brand); color: #fff; font-size: 12px; font-weight: 400; line-height: 18px; vertical-align: 2px; }
.xz-pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; font-size: 12px; }
.xz-pd-meta .woocommerce-product-rating { display: flex; align-items: center; gap: 6px; margin: 0; }
.xz-pd-meta .woocommerce-review-link { color: var(--xz-brand); }
.xz-pd-sales { padding: 0 6px; border-radius: 10px; background: var(--xz-brand-soft); color: #e4393c; font-size: 11px; line-height: 17px; }

/* 星级（WooCommerce 的 .star-rating，不用它的字体图标） */
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; overflow: hidden; font-size: 13px; line-height: 1.1; letter-spacing: .08em; }
.star-rating::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #ddd; }
.star-rating span { position: absolute; left: 0; top: 0; height: 100%; padding-top: 1.5em; overflow: hidden; }
.star-rating span::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #f5a623; }

.woocommerce-product-details__short-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 6px 0; color: var(--xz-muted); font-size: 14px; }
.woocommerce-product-details__short-description.is-open { display: block; }
.woocommerce-product-details__short-description p { margin: 0; }
.xz-pd-desc-more { align-self: flex-start; margin: -2px 0 8px; padding: 0; border: 0; background: none; color: var(--xz-light); font-size: 13px; }

/* 规格 */
table.variations { width: 100%; margin: 6px 0 4px; border-collapse: collapse; }
table.variations tr { display: block; margin-bottom: 10px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th.label { margin-bottom: 8px; color: #999; font-size: 13px; font-weight: 400; } /* 同「品牌」「发货」的名称 */
table.variations th.label label { font-weight: 400; }
.xz-select-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.xz-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.xz-swatch { min-height: 32px; padding: 0 14px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: #333; font-size: 13px; line-height: 30px; }
.xz-swatch.is-selected { border-color: var(--xz-brand); background: var(--xz-brand-soft); color: var(--xz-brand); }
.xz-swatch:disabled { color: #bbb; text-decoration: line-through; cursor: not-allowed; }
.woocommerce-variation-price { display: none; } /* 选了规格时顶部的价格会换（assets/js/product.js），这里不重复显示 */
.woocommerce-variation-availability .stock { margin: 4px 0; color: var(--xz-muted); font-size: 13px; }
.woocommerce-variation-availability .out-of-stock { color: var(--xz-brand); }
.xz-shake { animation: xz-shake .4s; }
@keyframes xz-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 购买栏（手机：固定在底栏上面） */
.xz-buybar {
    position: fixed; left: 0; right: 0; bottom: calc(var(--xz-tabbar-h) + var(--xz-safe-bottom)); z-index: 41;
    display: flex; align-items: center; gap: 8px; height: 66px; padding: 0 10px;
    background: #fff; box-shadow: 0 -1px 4px rgba(2, 20, 34, .08);
}
.xz-buybar-icons { display: flex; gap: 2px; }
.xz-buybar-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; background: none; color: #666; font-size: 10px; line-height: 12px; }
.xz-buybar-icon .xz-icon { width: 20px; height: 20px; margin-bottom: 2px; }
.xz-fav { cursor: pointer; }
.xz-fav.is-on { color: var(--xz-brand); --xz-heart-fill: var(--xz-brand); }
.xz-fav.is-pop .xz-icon { animation: xz-pop .3s; }
@keyframes xz-pop { 50% { transform: scale(1.3); } }
.quantity { display: flex; align-items: center; height: 32px; border: 1px solid rgba(2, 20, 34, .2); border-radius: var(--xz-radius); background: #fff; }
.quantity input.qty { width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--xz-muted); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.xz-qty-btn { width: 32px; height: 30px; padding: 0; border: 0; background: none; color: var(--xz-text); font-size: 18px; line-height: 1; }
.xz-buybar .single_add_to_cart_button, .xz-buy-now {
    flex: 1; height: 38px; padding: 0 4px; border: 1px solid var(--xz-brand); border-radius: 6px;
    font-size: 15px; font-weight: 600; line-height: 36px; white-space: nowrap;
}
.xz-buy-now { order: 1; background: #fff; color: var(--xz-brand); }
.xz-buybar .single_add_to_cart_button { order: 2; background: var(--xz-brand); color: #fff; }
.single_add_to_cart_button.disabled { opacity: .5; }
.single_add_to_cart_button.is-loading { opacity: .6; pointer-events: none; }

/* 品牌 / 发货 / 汇率提示 */
.xz-pd-info { margin-top: 8px; }
.xz-pd-row { display: flex; gap: 12px; padding: 6px 0; font-size: 13px; }
.xz-pd-row-label { flex: none; color: #999; }
.xz-pd-row-value { color: var(--xz-text); }
.xz-pd-rate { position: relative; margin-top: 6px; padding: 8px 10px 8px 30px; border-radius: 6px; background: #fff7e8; color: #b35400; font-size: 12px; line-height: 1.6; }
.xz-pd-rate::before { content: "!"; position: absolute; left: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #f5a623; color: #fff; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; }

/* 评价区块 */
.xz-rv { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--xz-line); }
.xz-rv-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.xz-rv-title { color: #222; font-size: 15px; font-weight: 600; }
.xz-rv-rate, .xz-rv-none { color: var(--xz-light); font-size: 13px; }
.xz-rv-rate b { color: var(--xz-brand); }
.xz-rv-more { margin-left: auto; padding: 0; border: 0; background: none; color: var(--xz-light); font-size: 13px; }
.xz-rv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.xz-rv-filter button { padding: 4px 12px; border: 0; border-radius: 14px; background: #f4f5f6; color: var(--xz-text); font-size: 13px; }
.xz-rv-filter button.is-active { background: var(--xz-brand-soft); color: var(--xz-brand); }
.xz-rv-item { padding: 10px 0; }
.xz-rv-item + .xz-rv-item { border-top: 1px solid var(--xz-line-soft); }
.xz-rv-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.xz-rv-avatar img { width: 28px; height: 28px; border-radius: 50%; }
.xz-rv-stars { color: var(--xz-brand); font-size: 12px; letter-spacing: 1px; }
.xz-rv-stars-off { color: #ddd; }
.xz-rv-date { margin-left: auto; color: #999; font-size: 12px; }
.xz-rv-spec { margin: 6px 0 0 36px; color: #999; font-size: 12px; }
.xz-rv-text { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.xz-rv-text.is-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.xz-rv-text-empty { color: #999; }
.xz-rv-reply { margin-top: 8px; padding: 8px 10px; border-radius: 4px; background: #f7f8f9; color: var(--xz-muted); font-size: 13px; }
.xz-rv-empty { padding: 16px 0; color: #999; text-align: center; }
.xz-rv-loadmore { display: block; margin: 8px auto 0; padding: 6px 20px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; font-size: 13px; }

/* 标签（详情 / 其他信息）：吸顶 */
.woocommerce-tabs { margin-top: 24px; }
.wc-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; background: #fff; border-bottom: 1px solid var(--xz-line); }
.wc-tabs li a { position: relative; display: block; padding: 0 4px; color: var(--xz-title); font-size: 16px; font-weight: 600; line-height: 46px; }
.wc-tabs li:not(.active) a { color: var(--xz-muted); font-weight: 400; }
.wc-tabs li.active a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: var(--xz-brand); }
.woocommerce-Tabs-panel { font-size: 15px; line-height: 1.75; word-break: break-word; }
.woocommerce-Tabs-panel h2 { font-size: 22px; font-weight: 700; }
.woocommerce-Tabs-panel h3 { position: relative; margin: 1.6em 0 .8em; padding-left: 12px; font-size: 19px; }
.woocommerce-Tabs-panel h3::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 2px; background: var(--xz-brand); }
.woocommerce-Tabs-panel h4 { font-size: 16px; }
.woocommerce-Tabs-panel blockquote { margin: 0 0 1em; padding: 12px 16px; border-left: 4px solid #ccc; background: #f5f6f7; color: var(--xz-muted); }
.woocommerce-Tabs-panel p, .woocommerce-Tabs-panel ul, .woocommerce-Tabs-panel ol, .woocommerce-Tabs-panel table { margin: 0 0 1em; }
.woocommerce-Tabs-panel ul, .woocommerce-Tabs-panel ol { padding-left: 1.4em; }
.woocommerce-Tabs-panel img { height: auto; }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { padding: 8px 10px; border: 1px solid var(--xz-line); text-align: left; vertical-align: top; }
.woocommerce-Tabs-panel .shop_attributes th { width: 30%; background: #f7f8f9; font-weight: 400; color: var(--xz-muted); }
.woocommerce-Tabs-panel .shop_attributes p { margin: 0; }
.wp-video, .woocommerce-Tabs-panel video { max-width: 100%; height: auto; }

/* sage 时代的短代码：[gird]（几列）/ [btn] */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > [class*="col-md-"] { width: 100%; padding: 0 8px; }
.wpcom-btn { display: inline-block; padding: 8px 18px; border: 1px solid var(--xz-brand); border-radius: 4px; background: #fff; color: var(--xz-brand); }
.wpcom-btn.btn-primary { background: var(--xz-brand); color: #fff; }

/* 相关推荐 */
.related > h2, .upsells > h2 { position: relative; margin: 24px 0 12px; color: var(--xz-title); font-size: 16px; font-weight: 600; line-height: 1.3; }
/* 推荐区的统一规则：
     商品详情页「相关推荐」= 和这个商品同类的，3 列小卡片，标题靠左（同首页各区块）
     其他页面（空购物车 / 下单成功）「猜你喜欢」= 和首页「为你推荐」一样的 2 列商品卡片，标题居中「— ♥ 猜你喜欢 —」（淘宝的样子） */
.related > h2.xz-guess-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 12px; color: #333; font-size: 15px; }
.xz-guess-head::before, .xz-guess-head::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, #ccc); }
.xz-guess-head::after { background: linear-gradient(90deg, #ccc, transparent); }
.xz-guess-head span { display: inline-flex; align-items: center; gap: 5px; }
.xz-guess-head span::before { content: ""; width: 14px; height: 14px; background: var(--xz-brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-4.7-9.6-9.8C1.2 7.3 3.8 4 7.3 4c2 0 3.6 1 4.7 2.5C13.1 5 14.7 4 16.7 4c3.5 0 6.1 3.3 4.9 7.2C20 16.3 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-4.7-9.6-9.8C1.2 7.3 3.8 4 7.3 4c2 0 3.6 1 4.7 2.5C13.1 5 14.7 4 16.7 4c3.5 0 6.1 3.3 4.9 7.2C20 16.3 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* 商品详情页的相关推荐（参考淘宝）：灰色分隔带下面，3 列小卡片（图片 + 名称 + 价格），不显示人民币 / 已售 */
.single-product .related, .single-product .upsells { margin: 24px calc(var(--xz-gutter) * -1) 0; padding: 14px var(--xz-gutter) 8px; border-top: 8px solid #f4f4f4; }
.single-product .related > h2, .single-product .upsells > h2 { margin: 0 0 12px; padding: 0; font-size: 16px; }
.single-product .related ul.products, .single-product .upsells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.single-product .related .xz-pcard, .single-product .upsells .xz-pcard { border-radius: 0; overflow: visible; }
.single-product .related .xz-pcard-pic, .single-product .upsells .xz-pcard-pic { overflow: hidden; border-radius: 6px; background: #f7f7f7; }
.single-product .related .xz-pcard-img, .single-product .upsells .xz-pcard-img { mix-blend-mode: multiply; }
.single-product .related .xz-pcard-title, .single-product .upsells .xz-pcard-title { margin: 6px 0 0; font-size: 12px; line-height: 17px; min-height: 34px; }
.single-product .related .xz-pcard-foot, .single-product .upsells .xz-pcard-foot { padding: 3px 0 0; }
.single-product .related .xz-pcard-price, .single-product .upsells .xz-pcard-price { font-size: 13px; }
.single-product .related .xz-pcard-price > span:nth-of-type(2), .single-product .upsells .xz-pcard-price > span:nth-of-type(2), .single-product .related .xz-pcard-sold, .single-product .upsells .xz-pcard-sold { display: none; }

/* 页面内提示（xzToast） */
.xz-toast {
    position: fixed; left: 50%; bottom: calc(var(--xz-tabbar-h) + 90px + var(--xz-safe-bottom)); z-index: 300;
    display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 40px); padding: 10px 18px; border-radius: 22px;
    background: rgba(0, 0, 0, .78); color: #fff; font-size: 14px; line-height: 1.4;
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.xz-toast.is-show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.xz-toast a { color: #ffd2cf; white-space: nowrap; }
.xz-toast.is-ok a { margin-top: -2px; font-size: 13px; }
.xz-toast.is-ok { top: 50%; bottom: auto; flex-direction: column; gap: 10px; min-width: 132px; padding: 20px 24px 16px; border-radius: 12px; font-size: 15px; text-align: center; transform: translate(-50%, -50%) scale(.92); }
.xz-toast.is-ok.is-show { transform: translate(-50%, -50%); }
.xz-toast-ok { width: 40px; height: 40px; }

/* =========================================================================
   WooCommerce 的提示（加入购物车 / 删除 / 错误等）
   ========================================================================= */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { /* 提示条（参考淘宝）：浅色底 + 图标，错误红 / 提示橙 / 成功绿 */
    position: relative; margin: 0 0 12px; padding: 10px 14px 10px 38px; border-radius: 8px; list-style: none;
    font-size: 13px; line-height: 1.6; --xz-n: #e8453c; background: var(--xz-brand-soft); color: #c4302b;
}
.woocommerce-info { --xz-n: #f08c00; background: #fff7e6; color: #ad5f00; }
.woocommerce-message { --xz-n: #20a35a; background: #effaf3; color: #1d7a46; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
    content: ""; position: absolute; left: 13px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--xz-n);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm-.9 3.5.2 5.6h1.4l.2-5.6Zm.9 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E") center / 16px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm-.9 3.5.2 5.6h1.4l.2-5.6Zm.9 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.woocommerce-error li + li { margin-top: 4px; }
.xz-entry .woocommerce-error, .xz-entry .woocommerce-info, .xz-entry .woocommerce-message { margin: 0 0 12px; padding: 10px 14px 10px 38px; } /* .xz-entry ul 的缩进 / 间距不用 */
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: inherit; text-decoration: underline; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 12px; color: var(--xz-brand); }
.woocommerce-message a.restore-item { color: var(--xz-brand); }

/* =========================================================================
   购物车（woocommerce/cart/cart.php，同 beautiso：参考微店的购物车）
   手机：灰底 + 一张白色卡片（商品之间分隔线），合计栏固定在底栏上面
   ========================================================================= */
.xz-gray { background: var(--xz-page); }
.xz-gray .xz-layout { padding: 12px 10px 0; }
.woocommerce-cart .xz-content, .woocommerce-checkout .xz-content { padding: 0; background: none; box-shadow: none; }
.woocommerce-cart { padding-bottom: calc(var(--xz-tabbar-h) + 60px + var(--xz-safe-bottom)); }
.xz-cart-items { padding: 0 12px; border-radius: 10px; background: #fff; }
.xz-cart-item { position: relative; display: flex; gap: 12px; padding: 14px 0; }
.xz-cart-item + .xz-cart-item { border-top: 1px solid #f2f2f2; }
.xz-cart-thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.xz-cart-thumb a { display: block; height: 100%; }
.xz-cart-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xz-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xz-cart-name { padding-right: 36px; font-size: 14px; line-height: 1.45; }
.xz-cart-name a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #333; }
.xz-cart-attr { align-self: flex-start; margin-top: 6px; padding: 2px 8px; border-radius: 4px; background: #f5f5f5; color: #888; font-size: 12px; line-height: 1.5; }
.xz-cart-info .backorder_notification { margin: 4px 0 0; color: #b35400; font-size: 12px; }
.xz-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.xz-cart-price { min-width: 0; font-size: 14px; white-space: nowrap; }
.xz-cart-qty .quantity { display: inline-flex; align-items: center; height: 28px; border: 0; border-radius: 4px; background: #f5f5f5; overflow: hidden; }
.xz-cart-qty .xz-qty-btn { width: 28px; height: 28px; background: transparent; }
.xz-cart-qty .quantity input.qty { width: 34px; height: 28px; padding: 0; border: 0; background: transparent; color: #333; font-size: 14px; text-align: center; }
.xz-cart-remove { position: absolute; top: 14px; right: 0; }
.xz-cart-remove-link { color: #999; font-size: 12px; line-height: 1.6; }
.xz-cart-actions { display: none; }
.xz-cart-actions:has(.coupon) { display: block; padding: 12px 0; border-top: 1px solid #f2f2f2; }
.xz-cart-actions .xz-cart-update { display: none; }
.xz-cart-bar {
    position: fixed; left: 0; right: 0; bottom: calc(var(--xz-tabbar-h) + var(--xz-safe-bottom)); z-index: 41;
    display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 8px 12px;
    background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .08);
}
.xz-cart-bar-total { flex: 1; min-width: 0; color: #333; font-size: 14px; line-height: 1.3; text-align: right; }
.xz-cart-bar-total strong, .xz-cart-bar-total .amount { font-size: 16px; }
.xz-cart-bar-total small { display: block; margin-top: 2px; color: #999; font-size: 11px; }
.xz-cart-bar-btn { flex: 0 0 auto; display: inline-block; min-width: 112px; height: 42px; padding: 0 18px; border-radius: 6px; background: var(--xz-brand); color: #fff; font-size: 15px; line-height: 42px; text-align: center; }
.xz-cart-bar-btn:hover { color: #fff; opacity: .9; }
.cart-collaterals:empty { display: none; }

/* 空购物车 */
.woocommerce-cart .wc-empty-cart-message { padding: 48px 16px 16px; border-radius: 10px 10px 0 0; background: #fff; }
.woocommerce-cart .wc-empty-cart-message .woocommerce-info { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: #999; text-align: center; }
.woocommerce-cart .return-to-shop { margin: 0; padding: 0 16px 48px; border-radius: 0 0 10px 10px; background: #fff; text-align: center; }
.woocommerce-cart .return-to-shop .button { display: inline-block; padding: 8px 28px; border-radius: 6px; background: var(--xz-brand); color: #fff; font-size: 16px; line-height: 1; }

/* 边栏：商品列表（小工具，电脑） */
.xz-wp-list { margin: 0; padding: 0; list-style: none; }
.xz-wp-list li + li { margin-top: 12px; }
.xz-wp-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--xz-radius); background: #f7f8f9; color: var(--xz-text); }
.xz-wp-thumb img { width: 60px; height: 60px; object-fit: contain; background: #fff; }
.xz-wp-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.xz-wp-price { font-size: 13px; }

/* 手机底栏「购物车」的件数 */
.xz-tab-icon { position: relative; display: block; line-height: 0; }
.xz-tab-badge { position: absolute; top: -5px; left: 14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--xz-brand); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.xz-tab-badge[hidden] { display: none; }

/* =========================================================================
   结算页（woocommerce/checkout/*.php、inc/checkout.php、assets/js/checkout.js；同 beautiso 2026-11-18〜19 的版本）
   手机：灰底 + 白色卡片（收货地址 / 创建账户 / 商品信息 / 留言 / 支付方式），底栏换成固定的下单栏
   电脑：两栏（左 收货地址，右 商品信息…），下单栏同样固定在底部
   ========================================================================= */
.xz-checkout { --xz-co-label: 84px; padding-bottom: calc(68px + var(--xz-safe-bottom)); }
.xz-checkout .xz-tabbar { display: none; }
.xz-co-card { margin: 0 0 10px; padding: 12px; border-radius: 10px; background: #fff; }
.xz-co-title { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 0 4px; color: #222; font-size: 16px; font-weight: 600; line-height: 1.5; }
.xz-co-title .xz-icon { width: 18px; height: 18px; color: var(--xz-brand); }
.woocommerce-checkout .woocommerce-NoticeGroup-checkout { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 10px; }

/* ---- 收货地址卡片：底边信封斜纹 ---- */
.xz-co-addr { position: relative; overflow: hidden; padding: 16px 14px 14px; }
.xz-co-addr::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: repeating-linear-gradient(-45deg, var(--xz-brand) 0 14px, #fff 14px 20px, #4a90d9 20px 34px, #fff 34px 40px);
}
.xz-co-addr > .xz-co-title { padding-right: 90px; }
.xz-co-login { position: absolute; top: 16px; right: 14px; color: #999; font-size: 13px; line-height: 24px; }
.xz-co-login span { color: var(--xz-brand); }

/* 会员：选中的地址（点开 → 地址簿面板） */
.xz-co-addr.is-member { padding: 12px 0 3px; }
.xz-co-addr.is-member > .xz-co-title { padding: 0 14px; }
.xz-addr-card { position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 14px 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xz-addr-card:focus-visible { outline: 2px solid var(--xz-brand); outline-offset: -2px; }
.xz-addr-card-main { flex: 1; min-width: 0; color: #222; font-size: 15px; line-height: 1.6; }
.xz-addr-who { display: flex; flex-wrap: wrap; gap: 0 10px; }
.xz-addr-line { word-break: break-all; }
.xz-addr-add { display: flex; align-items: center; gap: 6px; color: var(--xz-brand); font-size: 15px; }
.xz-addr-add .xz-icon { width: 18px; height: 18px; }
.xz-addr-arrow { width: 18px; height: 18px; color: #bbb; }
.xz-co-addr.is-member .bso-co-wechat { padding: 0 14px; }

/* ---- 访客的表单：一行一项（标签在左，绝对定位：WooCommerce 切换国家时用 show()/hide() 写行内 display，行本身不用 flex） ---- */
.xz-checkout .woocommerce-billing-fields__field-wrapper { margin: 0; }
.xz-checkout .woocommerce-billing-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row, .xz-checkout .bso-co-wechat .form-row {
    position: relative; clear: both; width: 100%; min-height: 50px; margin: 0; padding: 0 0 0 var(--xz-co-label); border-bottom: 1px solid #f2f2f2;
}
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row > label, .xz-checkout .bso-co-wechat .form-row > label {
    position: absolute; left: 0; top: 0; display: flex; align-items: center; width: var(--xz-co-label); height: 50px; margin: 0; padding: 0 8px 0 0;
    color: #333; font-size: 15px; font-weight: normal; line-height: 1.25; overflow: hidden;
}
.xz-checkout .form-row > label .required, .xz-checkout .form-row > label .optional { display: none; }
.xz-checkout .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper, .xz-checkout .bso-co-wechat .woocommerce-input-wrapper { display: block; width: 100%; }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row input.input-text,
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row select,
.xz-checkout .bso-co-wechat .form-row input.input-text {
    display: block; width: 100%; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: #222; font-size: 15px; outline: none;
}
.xz-checkout .form-row input.input-text::placeholder, .xz-checkout .form-row textarea::placeholder { color: #bbb; opacity: 1; }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row select {
    -webkit-appearance: none; appearance: none; padding-right: 22px; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='%23c4c4c4' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center / 7px 13px no-repeat;
}
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row select.xz-select-empty { color: #bbb; }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row select option { color: #222; }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row:focus-within, .xz-checkout .bso-co-wechat .form-row:focus-within { border-bottom-color: var(--xz-brand); }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row.woocommerce-invalid > label { color: var(--xz-brand); }
.xz-checkout .checkout-inline-error-message { margin: -8px 0 8px; color: var(--xz-brand); font-size: 12px; line-height: 1.4; }
/* 收货人：一个输入框（bso-config single-name.php：全名存在「名」billing_first_name，没有「姓」） */
/* 「电话」→「手机号 / 电话号码」（WooCommerce 的国家设定会在前台重设这个标签 → CSS 显示） */
.xz-checkout #billing_phone_field > label { font-size: 0; }
.xz-checkout #billing_phone_field > label::before { content: "电话号码"; font-size: 15px; }
.xz-checkout .xz-cn #billing_phone_field > label::before { content: "手机号"; }
/* 所在地区（中国） */
.xz-checkout .woocommerce-billing-fields__field-wrapper .xz-region-row { display: none; }
.xz-checkout .woocommerce-billing-fields__field-wrapper.xz-region-on .xz-region-row { display: block; }
.xz-checkout .xz-region-on #billing_state_field,
.xz-checkout .xz-region-on:not(.xz-region-manual) #billing_city_field,
.xz-checkout .xz-region-on:not(.xz-region-manual) #billing_address_1_field { display: none !important; }
.xz-region-btn { position: relative; display: block; width: 100%; height: 50px; padding: 0 20px 0 0; border: 0; background: transparent; color: #222; font-size: 15px; text-align: left; cursor: pointer; }
.xz-region-btn:focus, .xz-region-btn:focus-visible { outline: none; }
.xz-region-btn::after { content: "›"; position: absolute; right: 2px; top: 0; color: #c4c4c4; font-size: 22px; line-height: 48px; }
.xz-region-text { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xz-region-text.is-empty { color: #bbb; }
.xz-region-todo { color: var(--xz-brand); }
.xz-checkout .woocommerce-billing-fields__field-wrapper .form-row.xz-co-subhead { min-height: 0; padding: 16px 0 4px; color: #999; font-size: 13px; }
.xz-checkout .bso-co-wechat .form-row { border-bottom: 0; }
.xz-checkout .bso-co-wechat .form-row .description { margin: -6px 0 10px; color: #999; font-size: 13px; line-height: 1.5; }

/* ---- 创建账户（访客） ---- */
.woocommerce-account-fields.xz-co-card { display: flex; flex-direction: column; padding: 12px 14px; }
.woocommerce-account-fields > p.create-account { order: 0; margin: 0; }
.woocommerce-account-fields > .bso-account-benefits { order: 1; margin: 2px 0 0 26px; color: #999; font-size: 12px; line-height: 1.5; }
.woocommerce-account-fields > div.create-account { order: 2; }
.woocommerce-account-fields p.create-account label { display: flex; align-items: center; gap: 10px; margin: 0; color: #222; font-size: 15px; cursor: pointer; }
.woocommerce-account-fields p.create-account input[type="checkbox"] { flex: none; margin: 0; }
.woocommerce-account-fields div.create-account .form-row { margin: 12px 0 0; }
.woocommerce-account-fields div.create-account input.input-text { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #eee; border-radius: 6px; }

/* ---- 商品信息（review-order.php） ---- */
.xz-co-review { padding: 12px 12px 4px; }
.xz-co-items { padding-bottom: 4px; }
.xz-co-item { display: flex; gap: 12px; padding: 12px 0; }
.xz-co-item + .xz-co-item { border-top: 1px solid #f2f2f2; }
.xz-co-thumb { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.xz-co-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xz-co-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xz-co-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #222; font-size: 14px; line-height: 1.4; }
.xz-co-attr { align-self: flex-start; max-width: 100%; margin-top: 6px; padding: 2px 8px; border-radius: 4px; background: #f5f5f5; color: #888; font-size: 12px; line-height: 1.5; }
.xz-co-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 6px; font-size: 14px; }
.xz-co-qty { color: #999; font-size: 13px; }
table.xz-co-totals { width: 100%; margin: 0; border: 0; border-top: 1px solid #f2f2f2; border-collapse: collapse; font-size: 14px; }
table.xz-co-totals th, table.xz-co-totals td { padding: 10px 0; border: 0; background: none; vertical-align: top; }
table.xz-co-totals th { padding-right: 12px; color: #555; font-weight: normal; text-align: left; white-space: nowrap; }
table.xz-co-totals td { text-align: right; }
table.xz-co-totals tr.order-total th, table.xz-co-totals tr.order-total td { padding-top: 12px; border-top: 1px solid #f2f2f2; }
table.xz-co-totals tr.order-total th { color: #222; font-weight: 600; vertical-align: middle; }
table.xz-co-totals tr.order-total td strong, table.xz-co-totals tr.order-total td .amount { font-size: 16px; }
/* 运费：价格 + 配送方式按钮 + 说明（cart/cart-shipping.php，说明来自 bso-config「配送方式说明」） */
table.xz-co-totals tr.xz-ship-head td { vertical-align: middle; }
.xz-ship-cost { font-size: 14px; }
.xz-co-totals ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.xz-co-totals ul#shipping_method.xz-ship-single { margin-top: 2px; color: #999; font-size: 12px; }
table.xz-co-totals tr.xz-ship-options td { padding: 0 0 12px; }
.xz-co-totals ul#shipping_method.xz-ship-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.xz-ship-pills li { position: relative; }
.xz-ship-pills li input.shipping_method { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.xz-ship-pills li label { display: inline-block; min-width: 84px; padding: 6px 14px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: #333; font-size: 13px; line-height: 1.4; text-align: center; cursor: pointer; }
.xz-ship-pills li input.shipping_method:checked + label { border-color: var(--xz-brand); background: var(--xz-brand-soft); color: var(--xz-brand); }
.xz-ship-pills li input.shipping_method:focus-visible + label { outline: 2px solid var(--xz-brand); outline-offset: 2px; }
table.xz-co-totals tr.xz-ship-note-row td, table.xz-co-totals tr.bso-co-rate-row td { padding: 0 0 12px; text-align: left; }
.bso-ship-note { padding: 8px 10px; border-radius: 6px; background: #f7f7f7; font-size: 12px; line-height: 1.6; text-align: left; }
.bso-ship-note-eta { color: #666; }
.bso-ship-note-warn, .bso-co-rate-note { position: relative; color: #b35400; }
.bso-ship-note-warn { margin-top: 2px; padding-left: 18px; }
.bso-ship-note-warn::before, .bso-co-rate-note::before {
    content: "i"; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%;
    background: #e08a1e; color: #fff; font: bold 9px/13px Georgia, serif; text-align: center;
}
.bso-ship-note-warn strong, .bso-co-rate-note strong { color: #9a4a00; }
.bso-ship-ack { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #e5e5e5; color: #333; font-size: 12px; font-weight: normal; line-height: 1.5; cursor: pointer; }
.bso-ship-ack input[type="checkbox"] { flex: none; margin: 2px 0 0; accent-color: var(--xz-brand); }
.bso-ship-ack.xz-invalid, .bso-ship-ack.xz-invalid span { color: var(--xz-brand); }
.bso-ship-ack.xz-shake { animation: xz-shake .4s; }
@keyframes xz-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .bso-ship-ack.xz-shake { animation: none; } }
.bso-co-rate-note { padding: 8px 10px 8px 30px; border-radius: 6px; background: #fff7e8; font-size: 12px; line-height: 1.6; text-align: left; }
.bso-co-rate-note::before { left: 10px; top: 10px; width: 14px; height: 14px; font-size: 10px; line-height: 14px; }

/* ---- 留言 ---- */
.xz-co-note { margin: 10px 0; padding: 10px 12px; }
.xz-co-note .form-row { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.xz-co-note .form-row label { flex: none; margin: 0; padding-top: 7px; color: #555; font-size: 14px; line-height: 22px; }
.xz-co-note .form-row label .optional { display: none; }
.xz-co-note .woocommerce-input-wrapper { flex: 1; }
.xz-co-note textarea { display: block; width: 100%; height: 36px; max-height: 104px; padding: 7px 10px; border: 1px solid #eee; border-radius: 6px; background: #fafafa; font-size: 14px; line-height: 20px; resize: none; overflow-y: auto; }

/* ---- 支付方式（WooCommerce 的 #payment；在线支付的子选项 = bso-config 的 BSO_Nihaopay_Gateway） ---- */
#payment { margin: 0 0 10px; padding: 4px 12px; border-radius: 10px; background: #fff; }
#payment ul.payment_methods { margin: 0; padding: 0; list-style: none; }
#payment > ul.payment_methods > li { margin: 0; padding: 14px 0; border-bottom: 1px solid #f2f2f2; }
#payment > ul.payment_methods > li:last-child { border-bottom: 0; }
#payment > ul.payment_methods > li > input.input-radio { width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: middle; }
#payment > ul.payment_methods > li > label { display: inline-flex; align-items: center; gap: 8px; width: calc(100% - 28px); color: #222; font-size: 15px; font-weight: 600; vertical-align: middle; cursor: pointer; }
#payment > ul.payment_methods > li > label img { max-height: 22px; }
#payment > ul.payment_methods > li > label img:first-of-type { margin-left: auto; }
#payment .payment_box { position: relative; margin: 14px 0 0; padding: 12px; border-radius: 2px; background: #ebebeb; color: #555; font-size: 13px; }
#payment .payment_box::before { content: ""; position: absolute; top: -10px; left: 28px; border: 10px solid transparent; border-top: 0; border-bottom-color: #ebebeb; }
#payment .payment_box p { margin: 0 0 8px; }
#payment .payment_box p:last-child { margin: 0; }
/* 子选项（微信 / 支付宝 / 银联）：间距、内边距由 bso-config 的内联样式决定（bso_nihaopay_payment_styles，!important）；这里只做右对齐 + 背景（同 sage） */
#payment ul.nihaopay-payment-methods > li { background: #f6f6f6; }
#payment ul.nihaopay-payment-methods > li label { justify-content: flex-end; gap: 2px; color: #333; font-size: 15px; line-height: 1.8; }
#payment .woocommerce-privacy-policy-text, #payment .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: #999; }
/* 支付提示接在支付方式卡片下面（盖住 #payment 的下圆角，看起来是同一张卡片）；点击 = 选「联系客服支付」（bso-config） */
.bso-co-pay-tip {
    position: relative; display: block; width: 100%; margin: -10px 0 10px; padding: 20px 12px 12px; border: 0; border-radius: 0 0 10px 10px;
    background: #fff; color: #888; font-size: 12px; line-height: 1.6; text-align: left; cursor: pointer;
}
.bso-co-pay-tip::before { content: ""; position: absolute; top: 10px; left: 12px; right: 12px; border-top: 1px solid #f2f2f2; }
.bso-co-pay-tip:hover { color: var(--xz-brand); }

/* ---- 底部固定下单栏（#payment .place-order） ---- */
#payment .place-order {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
    margin: 0; padding: 8px 12px calc(8px + var(--xz-safe-bottom)); background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .08);
}
#payment .place-order > .woocommerce-terms-and-conditions-wrapper { flex: 0 0 100%; order: -1; }
.xz-co-paybar-total { flex: 1; min-width: 0; color: #333; font-size: 13px; line-height: 1.3; }
.xz-co-paybar-total strong, .xz-co-paybar-total .amount { font-size: 16px; }
#payment #place_order { flex: none; min-width: 112px; height: 42px; margin: 0; padding: 0 20px; border: 0; border-radius: 6px; background: var(--xz-brand); color: #fff; font-size: 15px; }
#payment #place_order:hover { opacity: .9; }
.xz-co-typing #payment .place-order { display: none; }
.woocommerce-checkout .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

@media (min-width: 992px) {
    .xz-checkout { padding-bottom: 76px; background: var(--xz-page); }
    .xz-checkout .xz-gray .xz-layout, .xz-checkout .xz-layout { padding-top: 0; }
    /* 电脑（参考京东 / 淘宝的结算页）：左边 = 要填 / 要选的（收货地址 → 支付方式 → 留言），右边 = 订单摘要（商品 / 运费 / 合计，滚动时固定）。
       #order_review 是 WooCommerce 用 AJAX 整块换掉的部分，HTML 不动，用 grid 摆位置（.xz-co-order / #order_review = display: contents） */
    .xz-co { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 24px; row-gap: 12px; align-items: start; }
    .xz-co-order, .xz-co #order_review { display: contents; }
    .xz-co-customer { grid-column: 1; grid-row: 1; }
    .xz-co .xz-co-review { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 16px; margin: 0; }
    .xz-co #payment { grid-column: 1; grid-row: 2; }
    .xz-co .bso-co-pay-tip { grid-column: 1; grid-row: 3; }
    .xz-co .xz-co-note { grid-column: 1; grid-row: 4; margin: 0; }
    .xz-co #payment::before { content: "支付方式"; display: block; padding: 18px 0 4px; color: #222; font-size: 16px; font-weight: 600; }
    .xz-co-card { margin-bottom: 12px; }
    #customer_details > .xz-co-card:last-child { margin-bottom: 0; }
    .xz-co-addr { padding: 24px 24px 14px; }
    .xz-co-login { top: 24px; right: 24px; }
    .xz-co-addr.is-member { padding: 22px 0 3px; }
    .xz-co-addr.is-member > .xz-co-title { padding: 0 24px; }
    .xz-addr-card { padding: 12px 24px 18px; }
    .xz-co-addr.is-member .bso-co-wechat { padding: 0 24px; }
    .woocommerce-account-fields.xz-co-card { padding: 16px 24px; }
    .xz-co-review { padding: 22px 24px 12px; }
    .xz-co-note { margin: 12px 0; padding: 14px 24px; }
    #payment { margin: 0; padding: 4px 24px; }
    .bso-co-pay-tip { margin: -14px 0 0; padding: 20px 24px 14px; } /* grid 的行间距 12px 抵消掉：接在支付方式卡片下面 */
    .bso-co-pay-tip::before { left: 24px; right: 24px; }
    #payment .place-order { justify-content: flex-end; gap: 0 20px; padding: 10px max(15px, calc((100% - 1200px) / 2 + 15px)); }
    #payment .place-order > .woocommerce-terms-and-conditions-wrapper { flex: 1; min-width: 0; margin: 0; }
    .xz-co-paybar-total { flex: none; font-size: 14px; }
    .xz-co-paybar-total strong, .xz-co-paybar-total .amount { font-size: 20px; }
    #payment #place_order { min-width: 160px; height: 44px; padding: 0 32px; font-size: 16px; }
    .xz-co-typing #payment .place-order { display: flex; }
}

/* =========================================================================
   订单详情 / 下单成功页（woocommerce/order/order-details.php、checkout/thankyou.php、inc/order.php、assets/js/order.js）
   同 beautiso 2026-11-17〜19 的版本；状态横幅左对齐 + 说明、按钮固定在底部（参考淘宝）
   ========================================================================= */
.xz-od-page .xz-tabbar { display: none; }
.xz-od-page { padding-bottom: calc(16px + var(--xz-safe-bottom)); }
.woocommerce-view-order.xz-od-page { padding-bottom: calc(68px + var(--xz-safe-bottom)); }
.xz-od-page .xz-content { padding: 0; background: none; box-shadow: none; }
.xz-od-card { margin: 0 0 10px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }
.xz-od-ico { width: 20px; height: 20px; margin-top: 1px; color: var(--xz-brand); }
.xz-od-copy { padding: 1px 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #666; font-size: 12px; font-weight: normal; line-height: 1.6; cursor: pointer; }
.xz-item-off { display: inline-block; margin-right: 6px; padding: 0 4px; border-radius: 3px; background: #999; color: #fff; font-size: 12px; line-height: 18px; vertical-align: 1px; }

/* 返回栏（手机）：‹ 我的订单 | 订单详情 */
.xz-backbar { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; margin: -12px -10px 12px; background: #fff; border-bottom: 1px solid #eee; }
.xz-backbar-back { position: absolute; left: 6px; top: 0; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 6px; color: #333; font-size: 15px; }
.xz-backbar-back .xz-icon { width: 18px; height: 18px; }
.xz-backbar-title { margin: 0; color: #222; font-size: 17px; font-weight: 600; }

/* 状态横幅（左对齐：状态 + 说明，参考淘宝） */
.xz-od-status { margin: 0 0 10px; padding: 18px 18px 16px; border-radius: 12px; background: linear-gradient(135deg, #ff6b9d 0%, #ffa5c4 100%); color: #fff; }
.xz-od-status-title { font-size: 20px; font-weight: 700; line-height: 1.4; }
.xz-od-status-sub { margin-top: 4px; font-size: 13px; line-height: 1.5; opacity: .95; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.xz-od-status-wechat { margin-top: 8px; font-size: 14px; }
.xz-od-status-wechat .xz-copy { margin-left: 6px; padding: 1px 10px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 6px; background: transparent; color: #fff; font-size: 12px; line-height: 1.6; cursor: pointer; }
.xz-od-status.status-pending { background: linear-gradient(135deg, #f5a623 0%, #ffc95a 100%); }
.xz-od-status.status-on-hold { background: linear-gradient(135deg, var(--xz-brand) 0%, #ff6b6b 100%); }
.xz-od-status.status-processing { background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%); }
.xz-od-status.status-shipped { background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%); }
.xz-od-status.status-completed { background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%); }
.xz-od-status.status-cancelled, .xz-od-status.status-failed, .xz-od-status.status-refunded { background: linear-gradient(135deg, #999 0%, #bbb 100%); }

/* 物流 + 收货地址 */
.xz-od-ship-row, .xz-od-addr-row { display: flex; align-items: flex-start; gap: 10px; }
.xz-od-ship-row { position: relative; padding-bottom: 12px; }
.xz-od-ship-row:only-child { padding-bottom: 0; }
.xz-od-ship-row + .xz-od-ship-row, .xz-od-ship-row + .xz-od-addr-row { padding-top: 12px; border-top: 1px solid #f2f2f2; }
.xz-od-ship-link { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: transparent; cursor: pointer; }
.xz-od-ship-body { flex: 1; min-width: 0; }
.xz-od-ship-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #333; font-size: 14px; font-weight: 600; }
.xz-od-ship-num { word-break: break-all; }
.xz-od-ship-line .xz-od-copy { position: relative; z-index: 2; }
.xz-od-ship-latest { margin-top: 4px; color: #555; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.xz-od-ship-stage, .xz-trk-stage { margin-right: 6px; color: #ff9800; font-weight: 600; }
.xz-od-ship-latest.is-done .xz-od-ship-stage, .xz-trk-stage.is-done { color: #28a745; }
.xz-od-ship-hint { margin-top: 4px; color: #999; font-size: 12px; }
.xz-od-chevron { width: 18px; height: 18px; align-self: center; color: #ccc; }
.xz-od-addr-text { color: #333; font-size: 14px; line-height: 1.6; }
.xz-od-addr-sub { color: #888; font-size: 13px; }

/* 客服留言：超过 5 行折叠 */
.xz-od-notes-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #333; }
.xz-od-notes-head .xz-od-ico { width: 18px; height: 18px; margin: 0; }
.xz-od-notes-title { flex: 1; font-size: 15px; font-weight: 600; }
.xz-od-note-date { color: #999; font-size: 12px; }
.xz-od-note + .xz-od-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f2f2f2; }
.xz-od-note .xz-od-note-date { margin-bottom: 4px; }
.xz-od-note-text { max-height: calc(1.7em * 5); overflow: hidden; color: #333; font-size: 14px; line-height: 1.7; }
.xz-od-note.is-open .xz-od-note-text { max-height: none; }
.xz-od-note-text p { margin: 0; }
.xz-od-note-more { display: block; margin: 6px 0 0 auto; padding: 0; border: 0; background: none; color: #999; font-size: 13px; cursor: pointer; }
.xz-od-note-more::after { content: " ⌄"; }
.xz-od-note.is-open .xz-od-note-more::after { content: " ⌃"; }
.xz-od-note-more[hidden] { display: none; }

/* 商品 + 金额（单价黑色，只有实付款红色） */
.xz-od-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.xz-od-item:first-child { padding-top: 0; }
.xz-od-item-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.xz-od-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xz-od-item-info { flex: 1; min-width: 0; }
.xz-od-item-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #333; font-size: 14px; line-height: 1.4; }
.xz-od-item-attr { display: inline-block; max-width: 100%; margin-top: 6px; padding: 2px 8px; border-radius: 4px; background: #f5f5f5; overflow: hidden; color: #888; font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; vertical-align: top; }
.xz-od-item-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 13px; }
.xz-od-item-price > span:first-child > span:first-child, .xz-od-amount-row > span:last-child > span:first-child { color: #333 !important; font-size: 1em !important; font-weight: 500 !important; }
.xz-od-item-qty { flex: none; color: #999; font-size: 12px; }
.xz-od-amounts { padding-top: 10px; }
.xz-od-amount-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; color: #666; font-size: 13px; }
.xz-od-amount-row.xz-od-paid { margin-top: 6px; padding-top: 10px; border-top: 1px solid #f2f2f2; color: #333; font-size: 14px; font-weight: 600; }
.xz-od-amount-row.xz-od-paid em { color: #999; font-size: 12px; font-style: normal; font-weight: normal; }
.xz-od-amount-row.xz-od-paid .xz-od-total > span:first-child { color: var(--xz-brand) !important; font-size: 1.15em !important; font-weight: 700 !important; }

/* 订单信息 */
.xz-od-info-row { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; font-size: 13px; line-height: 1.6; }
.xz-od-info-label { flex: 0 0 64px; color: #999; }
.xz-od-info-value { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #333; word-break: break-all; }
.xz-od-badge { padding: 1px 8px; border-radius: 4px; background: #1e88e5; color: #fff; font-size: 12px; line-height: 1.6; }

/* 按钮：手机固定在底部（参考淘宝），电脑在订单信息下面 */
.xz-od-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px;
    padding: 10px 12px calc(10px + var(--xz-safe-bottom)); background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .08); overflow-x: auto;
}
.xz-od-btn { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid #ccc; border-radius: 17px; background: #fff; color: #333; font-size: 14px; white-space: nowrap; cursor: pointer; }
.xz-od-btn-outline { border-color: var(--xz-brand); color: var(--xz-brand); }
.xz-od-btn-primary { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-od-btn-primary:hover { color: #fff; }

/* 物流时间轴（面板的外框 = address.js 的 .xz-sheet） */
.xz-trk { max-height: 80vh; }
.xz-trk:focus { outline: none; }
.xz-trk-tabs { flex: none; display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; }
.xz-trk-tab { flex: none; padding: 4px 14px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #666; font-size: 13px; line-height: 1.6; cursor: pointer; }
.xz-trk-tab.is-active { border-color: var(--xz-brand); color: var(--xz-brand); }
.xz-trk-panel { padding: 0 16px 16px; }
.xz-trk-panel[hidden] { display: none; }
.xz-trk-pkg { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #fafafa; color: #333; font-size: 13px; }
.xz-trk-list { margin: 0; padding: 0; list-style: none; }
.xz-trk-ev { position: relative; padding: 0 0 16px 20px; color: #999; font-size: 13px; line-height: 1.55; }
.xz-trk-ev::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: -6px; width: 1px; background: #e5e5e5; }
.xz-trk-ev:last-child::before { display: none; }
.xz-trk-ev::after { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #ddd; }
.xz-trk-ev:first-child { color: #333; }
.xz-trk-ev:first-child::after { background: var(--xz-brand); box-shadow: 0 0 0 3px rgba(229, 58, 64, .18); }
.xz-trk-ev-d { word-break: break-all; }
.xz-trk-ev-t { margin-top: 2px; color: #aaa; font-size: 12px; }

/* 下单成功页 */
.xz-ty-head { display: flex; align-items: center; gap: 12px; }
.xz-ty-icon { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--xz-brand); color: #fff; }
.xz-ty-icon .xz-icon { width: 20px; height: 20px; }
.xz-ty-failed .xz-ty-icon { background: #999; }
.xz-ty-text { min-width: 0; }
.xz-ty-title { margin: 0; color: #222; font-size: 17px; font-weight: 600; line-height: 1.4; }
.xz-ty-meta { margin-top: 2px; color: #888; font-size: 13px; }
.xz-ty-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.xz-ty-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 34px; padding: 0 16px; border: 1px solid #ccc; border-radius: 17px; background: #fff; color: #333; font-size: 14px; }
.xz-ty-btn-primary { border-color: var(--xz-brand); color: var(--xz-brand); }
.xz-ty-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f2f2f2; color: #666; font-size: 13px; line-height: 1.6; }
.xz-ty-note strong { color: #222; }
.xz-ty-steps-title { margin: 0 0 4px; color: #222; font-size: 15px; font-weight: 600; }
.xz-ty-step { display: flex; gap: 10px; padding: 10px 0; }
.xz-ty-step + .xz-ty-step { border-top: 1px solid #f2f2f2; }
.xz-ty-step-no { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--xz-brand); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.xz-ty-step-body { flex: 1; min-width: 0; }
.xz-ty-step-text { color: #333; font-size: 14px; line-height: 1.5; }
.xz-ty-step-text p { margin: 0; }
.xz-ty-step-sub { color: #999; font-size: 12px; }
.xz-ty-wechat { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 10px; border-radius: 6px; background: #f7f7f7; color: #666; font-size: 13px; }
.xz-ty-wechat strong { color: #222; }
.xz-ty-copy { flex: none; padding: 3px 14px; border: 1px solid var(--xz-brand); border-radius: 6px; background: #fff; color: var(--xz-brand); font-size: 13px; line-height: 1.5; cursor: pointer; }
.xz-ty-more { margin-top: 6px; font-size: 13px; }
.xz-ty-more summary, .xz-entry .xz-ty-more summary { display: inline-block; padding: 4px 0; color: #888; font-size: 13px; cursor: pointer; list-style: none; }
.xz-ty-more summary::-webkit-details-marker { display: none; }
.xz-ty-more summary::after { content: " ›"; }
.xz-ty-more[open] summary::after { content: " ‹"; }
.xz-ty-more .bso-china-id-notice { margin-top: 6px; padding: 8px 10px; border-radius: 6px; background: #fff7e8; color: #7a4a00; line-height: 1.6; }
.xz-ty-more .bso-china-id-notice-title { margin-bottom: 2px; font-weight: 600; }
.xz-ty-more .bso-china-id-notice-body strong { color: var(--xz-brand); }

@media (min-width: 992px) {
    .xz-od-page { padding-bottom: 40px; }
    .woocommerce-view-order.xz-od-page { padding-bottom: 40px; }
    .xz-od-page .xz-layout { padding-top: 0; }
    .xz-backbar { margin: 0 0 12px; border: 0; border-radius: 12px; }
    .xz-od-actions { position: static; flex-wrap: wrap; padding: 4px 0 0; background: none; box-shadow: none; overflow: visible; }
    .xz-ty > .xz-od-card, .xz-ty > .xz-od, .woocommerce-view-order .xz-od, .woocommerce-view-order .xz-backbar { max-width: 880px; margin-left: auto; margin-right: auto; }
    .xz-ty > .xz-od-card { margin-bottom: 12px; }
    .xz-ty-recs { max-width: none; }
}

/* =========================================================================
   登录 / 注册 / 找回密码（woocommerce/myaccount/form-login.php 等，inc/account.php，assets/js/auth.js）
   手机：全屏白底，不显示页头 / 底栏 / 页脚（参考淘宝的登录页）；电脑：灰底上的白色卡片
   ========================================================================= */
.xz-auth .xz-header, .xz-auth .xz-tabbar, .xz-auth .xz-footer, .xz-auth .xz-wc-breadcrumb { display: none; }
.xz-auth { padding-bottom: 0; background: #fff; }
.xz-auth .xz-layout { padding: 0; }
.xz-auth .xz-content { padding: 0; background: none; box-shadow: none; }
.xz-auth-box { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; max-width: 420px; margin: 0 auto; padding: 8px 28px calc(20px + var(--xz-safe-bottom)); }
.xz-auth-top { display: flex; height: 44px; margin: 0 -12px; }
.xz-auth-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #333; }
.xz-auth-close .xz-icon { width: 22px; height: 22px; }
.xz-auth-logo { display: flex; justify-content: center; margin: 20px 0 28px; } /* 居中（用户决定） */
.xz-auth-logo .xz-logo-img { width: auto; height: 52px; border-radius: 12px; }
.xz-auth-logo .xz-logo { flex: none; width: auto; margin: 0; }
.xz-auth-tabs { display: flex; align-items: flex-end; gap: 28px; margin-bottom: 24px; }
.xz-auth-tab { position: relative; padding: 0 0 10px; color: #999; font-size: 17px; line-height: 30px; }
.xz-auth-tab[aria-selected="true"] { color: #222; font-size: 24px; font-weight: 600; }
.xz-auth-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--xz-brand); }
.xz-auth-box .xz-auth-title { margin: 0 0 8px; color: #222; font-size: 22px; font-weight: 600; }
.xz-auth-box .xz-auth-desc { margin: 0 0 24px; color: #888; font-size: 14px; line-height: 1.6; }
.xz-auth-form[hidden] { display: none; }
.xz-auth-field { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; margin-bottom: 14px; padding: 0 14px; border: 1px solid transparent; border-radius: 25px; background: #f5f6f7; transition: border-color .15s, background .15s; }
.xz-auth-field:focus-within { border-color: color-mix(in srgb, var(--xz-brand) 45%, transparent); background: #fff; }
.xz-auth-field.is-invalid { border-color: var(--xz-brand); background: #fff5f5; animation: xz-shake .35s; }
.xz-auth-ico { display: flex; color: #999; }
.xz-auth-ico .xz-icon { width: 20px; height: 20px; }
.xz-auth-field input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; color: #222; font-size: 16px; outline: none; }
.xz-auth-field input::placeholder { color: #aaa; }
.xz-auth-clear, .xz-auth-eye { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: #bbb; cursor: pointer; }
.xz-auth-clear .xz-icon { width: 14px; height: 14px; }
.xz-auth-clear { background: #ddd; color: #fff; width: 18px; height: 18px; }
.xz-auth-clear[hidden] { display: none; }
.xz-auth-eye .xz-icon { width: 20px; height: 20px; }
.xz-auth-eye.is-on { color: var(--xz-brand); }
.xz-auth-row { display: flex; align-items: center; justify-content: space-between; margin: -2px 4px 20px; font-size: 13px; }
.xz-auth-remember { position: relative; display: flex; align-items: center; gap: 6px; color: #888; cursor: pointer; }
.xz-auth-remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.xz-auth-remember i { width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 50%; background: #fff; }
.xz-auth-remember input:checked + i { border-color: var(--xz-brand); background: var(--xz-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.xz-auth-remember input:focus-visible + i { outline: 2px solid var(--xz-brand); outline-offset: 2px; }
.xz-auth-home, .xz-auth-copy { display: none; }
.xz-auth-link { color: #666; }
.xz-auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: 0; border-radius: 24px; background: var(--xz-brand); box-shadow: 0 6px 14px color-mix(in srgb, var(--xz-brand) 25%, transparent); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
.xz-auth-submit:hover { color: #fff; opacity: .92; }
.xz-auth-submit:active { opacity: .85; }
.xz-auth-submit:disabled { opacity: .7; cursor: default; }
.xz-auth-box .xz-auth-switch { margin: 22px 0 0; color: #999; font-size: 14px; text-align: center; }
.xz-auth-switch a { color: var(--xz-brand); }
.xz-auth-box .xz-auth-foot { margin: auto 0 0; padding-top: 32px; color: #aaa; font-size: 13px; text-align: center; }
.xz-auth-foot .xz-copy { padding: 0 0 0 4px; border: 0; background: none; color: #666; font-size: 13px; cursor: pointer; }
.xz-auth-help { margin-top: 28px; padding: 12px 14px; border-radius: 10px; background: #f7f7f7; color: #888; font-size: 13px; line-height: 1.6; }
.xz-auth-help .xz-copy { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--xz-brand); font-size: 13px; cursor: pointer; }
.xz-auth-done { text-align: center; }
.xz-auth-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 24px 0 16px; border-radius: 50%; background: var(--xz-brand-soft); color: var(--xz-brand); }
.xz-auth-done-icon .xz-icon { width: 32px; height: 32px; }
.xz-auth-done .xz-auth-submit { margin-top: 8px; }
.xz-auth .woocommerce-notices-wrapper, .xz-auth .woocommerce-error, .xz-auth .woocommerce-message, .xz-auth .woocommerce-info { margin-bottom: 16px; }
.xz-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 滑块（只在可疑时出现） */
.xz-slider-mask { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .5); }
.xz-slider-box { position: relative; width: 100%; max-width: 340px; padding: 22px 20px 24px; border-radius: 14px; background: #fff; }
.xz-slider-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #999; font-size: 24px; cursor: pointer; }
.xz-slider-title { margin: 0 0 6px; color: #222; font-size: 17px; font-weight: 600; text-align: center; }
.xz-slider-desc { margin: 0 0 18px; color: #888; font-size: 13px; text-align: center; }
.xz-slider-track { position: relative; height: 44px; border-radius: 22px; background: #f0f1f2; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.xz-slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: rgba(241, 2, 21, .15); }
.xz-slider-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 40px; color: #999; font-size: 14px; pointer-events: none; }
.xz-slider-knob { position: absolute; left: 0; top: 0; width: 56px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: var(--xz-brand); color: #fff; font-size: 20px; line-height: 44px; cursor: grab; touch-action: none; box-shadow: 0 2px 6px rgba(241, 2, 21, .35); }
.xz-slider-knob:active { cursor: grabbing; }
.xz-slider-knob.is-back, .xz-slider-fill.is-back { transition: transform .3s, width .3s; }
.xz-slider-track.is-ok .xz-slider-fill { background: rgba(40, 167, 69, .2); width: 100% !important; }
.xz-slider-track.is-ok .xz-slider-knob { background: #28a745; box-shadow: none; }
.xz-slider-track.is-ok .xz-slider-text { color: #28a745; }

@media (min-width: 992px) {
    .xz-auth { background: var(--xz-page-pc); }
    .xz-auth .xz-topbar { display: none; }
    .xz-auth .xz-main { display: flex; align-items: center; min-height: calc(100vh - 80px); }
    .xz-auth.xz-gray .xz-layout { width: 100%; padding: 60px 0 20px; }
    .xz-auth-home { position: fixed; top: 40px; right: 40px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 6px; background: var(--xz-brand); color: #fff; font-size: 15px; }
    .xz-auth-home:hover { color: #fff; opacity: .9; }
    .xz-auth-home .xz-icon { width: 18px; height: 18px; }
    .xz-auth-copy { display: block; padding: 24px 0 32px; color: #aaa; font-size: 12px; text-align: center; }
    .xz-auth-copy span { font-size: 12px !important; }
    .xz-auth-box { min-height: 0; margin: 0 auto; padding: 32px 40px 36px; border-radius: 16px; background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, .06); }
    .xz-auth-top { display: none; }
    .xz-auth-logo { margin: 0 0 24px; }
}

/* =========================================================================
   我的帐户（woocommerce/myaccount/*.php、inc/account.php、assets/js/account.js）
   手机：个人中心（参考淘宝「我的淘宝」）显示底栏；子页面不显示底栏，顶部「‹ 个人中心」返回栏
   电脑：左侧菜单 + 内容
   ========================================================================= */
.xz-account .xz-content { padding: 0; background: none; box-shadow: none; }
.xz-account-sub .xz-tabbar { display: none; }
.xz-account-sub { padding-bottom: calc(16px + var(--xz-safe-bottom)); }
.xz-acct-nav { display: none; }
.xz-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.xz-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #ff7a45, var(--xz-brand)); color: #fff; font-size: 18px; font-weight: 600; }

/* 个人中心 */
.xz-account-home:not(.xz-account-tabpage) .xz-layout { padding-top: 0; }
.xz-hub-head { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 24px 16px 56px; background: linear-gradient(135deg, #ff5b45 0%, var(--xz-brand) 100%); color: #fff; }
.xz-hub-avatar { width: 56px; height: 56px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .25); font-size: 24px; }
.xz-hub-who { flex: 1; min-width: 0; }
.xz-hub-name { overflow: hidden; font-size: 19px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.xz-hub-sub { display: block; margin-top: 3px; overflow: hidden; color: rgba(255, 255, 255, .85); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.xz-hub-set { display: flex; padding: 6px; color: #fff; }
.xz-hub-set .xz-icon { width: 24px; height: 24px; }
.xz-hub-card { position: relative; margin: 0 0 10px; padding: 12px 8px 14px; border-radius: 12px; background: #fff; }
.xz-hub-card:first-of-type, .xz-hub-head + .xz-hub-card { margin-top: -40px; }
.xz-hub-card-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; color: #222; font-size: 15px; font-weight: 600; }
.xz-hub-more { color: #999; font-size: 13px; font-weight: normal; }
.xz-hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
.xz-hub-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #333; font-size: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xz-hub-item:active { opacity: .6; }
.xz-hub-ico { position: relative; display: flex; color: #333; }
.xz-hub-ico .xz-icon { width: 26px; height: 26px; }
.xz-hub-badge { position: absolute; top: -6px; left: 16px; min-width: 16px; height: 16px; padding: 0 4px; border: 1.5px solid #fff; border-radius: 8px; background: var(--xz-brand); color: #fff; font-size: 10px; font-style: normal; line-height: 13px; text-align: center; }
.xz-hub-tip { margin: 12px 8px 0; color: #aaa; font-size: 12px; text-align: center; }
.xz-hub-logout { display: block; margin: 16px 0 0; padding: 13px; border-radius: 12px; background: #fff; color: #666; font-size: 15px; text-align: center; }

/* 子页面的表单（基本资料 / 修改密码）：一行一项，底部固定「保存」 */
.xz-form-card { padding: 0 14px; border-radius: 12px; background: #fff; }
.xz-form-row { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid #f2f2f2; }
.xz-form-row:last-child { border-bottom: 0; }
.xz-form-row[hidden] { display: none; }
.xz-form-row:focus-within { border-bottom-color: var(--xz-brand); }
.xz-form-row.is-invalid .xz-form-label { color: var(--xz-brand); }
.xz-form-label { flex: 0 0 88px; color: #333; font-size: 15px; }
.xz-form-row input, .xz-form-row textarea { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; background: transparent; color: #222; font-size: 15px; outline: none; }
.xz-form-row input::placeholder, .xz-form-row textarea::placeholder { color: #bbb; }
.xz-form-area { align-items: flex-start; }
.xz-form-area .xz-form-label { padding-top: 15px; }
.xz-form-area textarea { height: auto; min-height: 80px; padding: 15px 0; line-height: 1.5; resize: none; }
.xz-form-avatar { justify-content: space-between; cursor: pointer; }
.xz-form-avatar-r { display: flex; align-items: center; gap: 8px; color: #bbb; font-size: 12px; }
.xz-form-avatar-r .xz-icon { width: 16px; height: 16px; }
.xz-form-avatar.is-busy { opacity: .6; pointer-events: none; }
.xz-form-note, .xz-entry .xz-form-note { margin: 14px 4px; padding: 0 10px; color: #999; font-size: 13px; }
.xz-form-note a { color: #666; }
.xz-form-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 8px 12px calc(8px + var(--xz-safe-bottom)); background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .06); }
.xz-form-bar .xz-btn, .xz-addr-page-bar .xz-btn { width: 100%; height: 44px; border: 0; border-radius: 22px; background: var(--xz-brand); color: #fff; font-size: 16px; }
.xz-account-sub:has(.xz-form-bar, .xz-addr-page-bar) { padding-bottom: calc(76px + var(--xz-safe-bottom)); }

/* 收货地址（整页列表：address.js 的 mount） */
.xz-addr-page .xz-ab-list { padding: 0; }
.xz-addr-page .xz-ab-pick { padding-left: 16px; }
.xz-addr-page .xz-ab-empty { border-radius: 12px; background: #fff; }
.xz-addr-page .xz-ab-empty small { color: #bbb; }
.xz-addr-page-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 8px 12px calc(8px + var(--xz-safe-bottom)); background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .06); }
.xz-addr-page-bar .xz-icon { width: 18px; height: 18px; }

/* 我的订单（woocommerce/myaccount/orders.php；同 beautiso，状态标签手机吸顶、可左右滑动，按钮圆角参考淘宝） */
.xz-ol-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 22px; margin: -12px -10px 10px; padding: 0 16px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.xz-ol-tabs::-webkit-scrollbar { display: none; }
.xz-backbar + .woocommerce-notices-wrapper + .xz-ol-tabs, .xz-backbar ~ .xz-ol-tabs { margin-top: -12px; }
.xz-ol-tabs a { position: relative; flex: none; padding: 12px 2px; color: #666; font-size: 14px; white-space: nowrap; }
.xz-ol-tabs a.is-active { color: #222; font-weight: 600; }
.xz-ol-tabs a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--xz-brand); }
.xz-ol-tab-badge { position: absolute; top: 4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border: 1.5px solid #fff; border-radius: 8px; background: var(--xz-brand); color: #fff; font-size: 10px; font-weight: normal; line-height: 13px; text-align: center; }
.xz-ol-list { display: flex; flex-direction: column; gap: 10px; }
.xz-ol-card { position: relative; padding: 12px 14px; border-radius: 12px; background: #fff; }
.xz-ol-card:active { background: #fafafa; }
.xz-ol-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.xz-ol-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.xz-ol-meta { min-width: 0; overflow: hidden; color: #999; font-size: 12px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.xz-ol-status { flex: none; padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.xz-ol-status.status-pending { background: #fff6dc; color: #9a5b00; }
.xz-ol-status.status-on-hold { background: #fbe3e4; color: #c62828; }
.xz-ol-status.status-processing { background: #e0f0fd; color: #1565c0; }
.xz-ol-status.status-shipped { background: #fff1db; color: #b35400; }
.xz-ol-status.status-completed { background: #e1f3e5; color: #1e7b34; }
.xz-ol-status.status-cancelled, .xz-ol-status.status-failed, .xz-ol-status.status-refunded { background: #f1f1f1; color: #666; }
.xz-ol-thumb { flex: none; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #f7f7f7; font-size: 0; }
.xz-ol-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xz-ol-thumb.is-off { position: relative; }
.xz-ol-thumb.is-off img { opacity: .5; }
.xz-ol-thumb.is-off .xz-item-off { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; background: rgba(0, 0, 0, .45); text-align: center; }
.xz-ol-single { display: flex; gap: 10px; align-items: flex-start; }
.xz-ol-info { flex: 1; min-width: 0; }
.xz-ol-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #333; font-size: 14px; line-height: 1.4; }
.xz-ol-attr { display: inline-block; max-width: 100%; margin-top: 6px; padding: 2px 8px; border-radius: 4px; background: #f5f5f5; overflow: hidden; color: #888; font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; vertical-align: top; }
.xz-ol-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; color: #333; font-size: 13px; }
.xz-ol-price > span:first-child > span:first-child { color: #333 !important; font-size: 1em !important; font-weight: 500 !important; }
.xz-ol-qty { flex: none; color: #999; font-size: 12px; }
.xz-ol-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); gap: 6px; }
.xz-ol-thumbs .xz-ol-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.xz-ol-thumb-more { display: flex; align-items: center; justify-content: center; color: #999; font-size: 14px; }
.xz-ol-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.xz-ol-note-tag { padding: 1px 8px; border-radius: 4px; background: #fbe3e4; color: #c62828; font-size: 12px; line-height: 1.6; }
.xz-ol-trk { display: flex; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #fafafa; font-size: 13px; line-height: 1.5; }
.xz-ol-trk-stage { flex: none; margin-right: 6px; color: #ff9800; font-weight: 600; }
.xz-ol-trk-text { flex: 1; min-width: 0; overflow: hidden; color: #555; white-space: nowrap; text-overflow: ellipsis; }
.xz-ol-total { margin-top: 10px; color: #666; font-size: 13px; text-align: right; }
.xz-ol-totalprice > span:first-child { color: #222 !important; font-size: 16px !important; font-weight: 600 !important; }
.xz-ol-foot { margin-top: 10px; }
.xz-ol-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.xz-ol-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid #ccc; border-radius: 15px; background: #fff; color: #333; font-size: 13px; white-space: nowrap; cursor: pointer; }
.xz-ol-btn-primary, .xz-ol-btn-review { border-color: var(--xz-brand); color: var(--xz-brand); }
.xz-ol-btn.pay { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-ol-more { display: block; margin: 14px 0 4px; padding: 10px; color: #666; font-size: 14px; text-align: center; }
.xz-ol-more.is-loading { color: #aaa; }
.xz-ol-end { margin: 14px 0 4px; color: #bbb; font-size: 13px; text-align: center; }
.xz-ol-empty { padding: 56px 16px; border-radius: 12px; background: #fff; color: #999; font-size: 14px; line-height: 2.2; text-align: center; }
.xz-ol-empty .xz-btn { margin-top: 8px; }

@media (min-width: 992px) {
    .xz-account .xz-layout { padding-top: 0; }
    .xz-acct { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
    .xz-acct-nav { display: block; position: sticky; top: 16px; padding: 20px 0 12px; border-radius: 12px; background: #fff; }
    .xz-acct-nav-user { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px 16px; border-bottom: 1px solid #f2f2f2; color: #222; font-size: 15px; font-weight: 600; }
    .xz-acct-nav-user .xz-avatar { width: 56px; height: 56px; font-size: 24px; }
    .xz-acct-nav ul { margin: 8px 0 0; padding: 0; list-style: none; }
    .xz-acct-nav a { display: block; padding: 10px 24px; color: #333; font-size: 14px; }
    .xz-acct-nav a:hover { color: var(--xz-brand); }
    .xz-acct-nav .is-active a { position: relative; color: var(--xz-brand); font-weight: 600; }
    .xz-acct-nav .is-active a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--xz-brand); }
    .xz-account-sub { padding-bottom: 40px; }
    .xz-account-sub:has(.xz-form-bar, .xz-addr-page-bar) { padding-bottom: 40px; }
    .xz-account .xz-backbar-back { display: none; }
    .xz-account .xz-backbar { justify-content: flex-start; padding: 0 20px; }
    .xz-hub-head { margin: 0; border-radius: 12px; padding: 28px 24px 60px; }
    .xz-hub-grid { grid-template-columns: repeat(6, 1fr); }
    .xz-hub-tip { text-align: left; }
    .xz-hub-logout { display: none; }
    .xz-form-bar, .xz-addr-page-bar { position: static; margin-top: 16px; padding: 0; background: none; box-shadow: none; }
    .xz-form-bar .xz-btn, .xz-addr-page-bar .xz-btn { width: 200px; }
    .xz-ol-tabs { position: static; margin: 0 0 10px; border-radius: 12px; }
}

/* =========================================================================
   评价商品（woocommerce/myaccount/review.php；类名 bso-rv-* 和 bso-config reviews.php 输出的已评价 HTML 相同，同 beautiso）
   ========================================================================= */
.bso-rv-order { margin: 0 0 10px; font-size: 13px; color: #999; }
.bso-rv-card { margin: 0 0 10px; padding: 14px; border-radius: 10px; background: #fff; }
.bso-rv-product { display: flex; gap: 12px; align-items: center; }
.bso-rv-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: #f7f7f7; }
.bso-rv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.bso-rv-info { min-width: 0; }
.bso-rv-name { font-size: 14px; line-height: 1.4; color: #222; }
.bso-rv-attr { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 4px; background: #f5f5f5; color: #888; font-size: 12px; }
.bso-rv-form { margin: 12px -14px -14px; }
.bso-rv-form textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; border: 0; border-top: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2; border-radius: 0; background: #fff; font-size: 14px; line-height: 1.6; resize: vertical; box-sizing: border-box; box-shadow: none; }
.bso-rv-form textarea::placeholder { color: #bbb; }
.bso-rv-stars-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.bso-rv-label { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: #222; }
.bso-rv-stars { display: inline-flex; gap: 6px; }
.bso-rv-star { padding: 0; border: 0; background: none; color: #e5e5e5; font-size: 28px; line-height: 1; cursor: pointer; }
.bso-rv-star.is-on { color: var(--xz-brand); }
.bso-rv-star-text { margin-left: auto; font-size: 14px; color: #999; white-space: nowrap; }
.bso-rv-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 14px; background: #fafafa; border-radius: 0 0 10px 10px; }
.bso-rv-anon { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: normal; color: #333; cursor: pointer; }
.bso-rv-anon input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid #bbb; border-radius: 50%; background: #fff; cursor: pointer; }
.bso-rv-anon input:checked { border-color: var(--xz-brand); background: var(--xz-brand) radial-gradient(circle, #fff 0 3px, transparent 3.5px); }
.bso-rv-submit { min-width: 76px; padding: 7px 18px; border: 0; border-radius: 6px; background: var(--xz-brand); color: #fff; font-size: 15px; line-height: 1.4; cursor: pointer; }
.bso-rv-submit:disabled { opacity: 0.6; }
.bso-rv-msg { margin-top: 6px; font-size: 12px; color: var(--xz-brand); }
.bso-rv-msg:empty { display: none; }
.bso-rv-done { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: #f7f7f7; }
.bso-rv-done-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bso-rv-done-stars { color: var(--xz-brand); font-size: 15px; letter-spacing: 1px; }
.bso-rv-done-status { padding: 1px 8px; border-radius: 10px; background: #FFF1DB; color: #B35400; }
.bso-rv-done-status.is-published { background: #E1F3E5; color: #1E7B34; }
.bso-rv-done-anon { color: #999; }
.bso-rv-done-text { margin-top: 6px; font-size: 13px; line-height: 1.6; color: #444; white-space: pre-line; }
.bso-rv-note { margin: 6px 2px 0; font-size: 12px; color: #999; }
.bso-rv-empty { padding: 40px 16px; border-radius: 10px; background: #fff; color: #999; text-align: center; }
.bso-rvs { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid #f2f2f2; }
.bso-rvs-head { display: flex; align-items: baseline; gap: 10px; }
.bso-rvs-title { font-size: 15px; font-weight: 600; color: #222; }
.bso-rvs-rate, .bso-rvl-rate { font-size: 13px; color: #888; }
.bso-rvs-rate b, .bso-rvl-rate b { color: var(--xz-brand); font-weight: 600; }
.bso-rvs-none { font-size: 13px; color: #999; }
.bso-rvs-more { margin-left: auto; padding: 0; border: 0; background: none; font-size: 13px; color: #888; cursor: pointer; }
.bso-rvs .bso-rvl-filter { margin: 10px 0 2px; }
.bso-rvl-item { padding: 12px 0; }
.bso-rvl-item + .bso-rvl-item { border-top: 1px solid #f2f2f2; }
.bso-rvl-head { display: flex; align-items: center; gap: 8px; }
.bso-rvl-avatar img { display: block; width: 28px; height: 28px; border-radius: 50%; }
.bso-rvl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #333; }
.bso-rvl-stars { flex: 0 0 auto; color: var(--xz-brand); font-size: 12px; letter-spacing: 1px; }
.bso-rvl-stars-off { color: #e5e5e5; }
.bso-rvl-date { margin-left: auto; flex: 0 0 auto; font-size: 12px; color: #aaa; }
.bso-rvl-spec { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 4px; background: #f5f5f5; color: #888; font-size: 12px; }
.bso-rvl-text { margin-top: 6px; font-size: 14px; line-height: 1.6; color: #333; white-space: pre-line; word-break: break-word; }
.bso-rvl-text.is-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bso-rvl-text-empty { color: #aaa; font-size: 13px; }
.bso-rvl-reply { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #f7f7f7; font-size: 13px; line-height: 1.6; color: #666; }
.bso-rvl-reply b { color: #333; font-weight: 600; }
.bso-rvl-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bso-rvl-title { font-size: 15px; font-weight: 600; color: #222; }
.bso-rvl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.bso-rvl-filter button { padding: 4px 12px; border: 1px solid #eee; border-radius: 14px; background: #f7f7f7; color: #666; font-size: 13px; line-height: 1.4; cursor: pointer; }
.bso-rvl-filter button.is-active { border-color: var(--xz-brand); background: #FFF1F1; color: var(--xz-brand); }
.bso-rvl-empty { padding: 24px 0; color: #999; font-size: 13px; text-align: center; }
.bso-rvl-loadmore { display: block; width: 100%; margin: 6px 0 0; padding: 8px; border: 1px solid #eee; border-radius: 6px; background: #fff; color: #666; font-size: 13px; cursor: pointer; }
.bso-rvl-note { margin: 10px 0 0; font-size: 12px; color: #aaa; }
.bso-rvl-loadmore[hidden], .bso-rvl-empty[hidden], .bso-rvl-item[hidden] { display: none; }

/* =========================================================================
   收藏夹（woocommerce/myaccount/wishlist.php；数据：bso-config wishlist.php）：列表 +「管理」批量删除（参考淘宝）
   ========================================================================= */
.xz-wl-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; color: #999; font-size: 13px; }
.xz-wl-head b { color: #333; font-weight: 600; }
.xz-wl-manage { padding: 4px 0 4px 12px; border: 0; background: none; color: #333; font-size: 14px; cursor: pointer; }
.xz-wl { display: flex; flex-direction: column; gap: 10px; }
.xz-wl-item { position: relative; display: flex; align-items: stretch; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; transition: opacity .2s, transform .2s; }
.xz-wl-item.is-removing { opacity: 0; transform: translateX(-20px); }
.xz-wl-thumb { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: #f7f7f7; font-size: 0; }
.xz-wl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xz-wl-item.is-off .xz-wl-thumb img { opacity: .5; }
.xz-wl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xz-wl-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #333; font-size: 14px; line-height: 1.4; }
.xz-wl-item.is-off .xz-wl-name { color: #999; }
.xz-wl-price { margin-top: 6px; font-size: 13px; }
.xz-wl-price .xz-price-from { margin-left: 2px; color: #999; font-size: 12px; }
/* 原价（促销时，xz_price_html）：小号灰色删除线、只显示日元（参考淘宝） */
.xz-price-was { margin-left: 6px; color: #aaa; font-size: 12px; text-decoration: line-through; white-space: nowrap; }
.xz-price-was > span { color: #aaa !important; font-size: 12px !important; font-weight: normal !important; }
.xz-price-was > span span { font-size: 12px !important; }
.xz-price-was > span:nth-of-type(2) { display: none; }
ins { text-decoration: none; }
.xz-wl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.xz-wl-out { color: #999; font-size: 12px; font-style: normal; }
.xz-wl-actions { display: flex; align-items: center; gap: 8px; }
.xz-wl-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid #ccc; border-radius: 15px; background: #fff; color: #333; font-size: 13px; white-space: nowrap; cursor: pointer; }
.xz-wl-btn-primary { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-wl-btn-primary:hover { color: #fff; }
.xz-wl-check { display: none; align-items: center; flex: none; cursor: pointer; }
.xz-wl-check input, .xz-wl-all input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xz-wl-check i, .xz-wl-all i { display: inline-block; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 50%; background: #fff; }
.xz-wl-check input:checked + i, .xz-wl-all input:checked + i { border-color: var(--xz-brand); background: var(--xz-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.xz-wl-page.is-manage .xz-wl-check { display: flex; }
.xz-wl-page.is-manage .xz-wl-actions { display: none; }
.xz-wl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px calc(8px + var(--xz-safe-bottom)); background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .06); }
.xz-wl-bar[hidden] { display: none; }
.xz-wl-all { position: relative; display: flex; align-items: center; gap: 8px; color: #333; font-size: 14px; cursor: pointer; }
.xz-wl-batch { min-width: 100px; height: 38px; padding: 0 20px; border: 1px solid var(--xz-brand); border-radius: 19px; background: #fff; color: var(--xz-brand); font-size: 15px; cursor: pointer; }
.xz-wl-batch:disabled { border-color: #ddd; color: #bbb; cursor: default; }
.xz-wl-page.is-manage { padding-bottom: 60px; }
.xz-wl-empty { padding: 56px 16px; border-radius: 12px; background: #fff; color: #999; font-size: 14px; line-height: 1.8; text-align: center; }
.xz-wl-empty[hidden] { display: none; }
.xz-wl-empty small { color: #bbb; }
@media (min-width: 992px) {
    .xz-wl-bar { position: sticky; bottom: 0; margin-top: 12px; border-radius: 12px; }
    .xz-wl-page.is-manage { padding-bottom: 0; }
}

/* =========================================================================
   首页（front-page.php）/ 分类页（templates/categories.php）：参考京东 / 淘宝的手机端（P4）
   ========================================================================= */
/* 页头右边「客服」（手机；原来的「≡」菜单只在电脑上显示为导航栏） */
.xz-menu-btn { display: none; }

.xz-home { background: var(--xz-page); }
.xz-home .xz-main { padding-bottom: 8px; }
.xz-home-wrap { padding-top: 10px; padding-left: 10px; padding-right: 10px; }

/* 轮播图 */
.xz-banner { position: relative; margin-bottom: 10px; border-radius: 12px; overflow: hidden; background: #eee; }
.xz-banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.xz-banner-track::-webkit-scrollbar { display: none; }
.xz-banner-item { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.xz-banner-item img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 316; object-fit: cover; }
.xz-banner-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.xz-banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: width .2s, background .2s; }
.xz-banner-dots i.is-on { width: 14px; background: #fff; }

/* 图标入口（2 行 × 5） */
.xz-kk { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 14px; margin-bottom: 10px; padding: 14px 4px 12px; border-radius: 12px; background: #fff; }
.xz-kk-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #333; font-size: 12px; -webkit-tap-highlight-color: transparent; }
.xz-kk-item:active { opacity: .6; }
.xz-kk-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 16px; color: #fff; }
.xz-kk-ico .xz-icon { width: 24px; height: 24px; }
.xz-kk-ico img { width: 44px; height: 44px; border-radius: 16px; object-fit: cover; }
.xz-kk-label { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xz-kk-c0 .xz-kk-ico { background: linear-gradient(135deg, #ff7a6b, #f5222d); }
.xz-kk-c1 .xz-kk-ico { background: linear-gradient(135deg, #7cc3ff, #2f80ed); }
.xz-kk-c2 .xz-kk-ico { background: linear-gradient(135deg, #ffc58a, #fa8c16); }
.xz-kk-c3 .xz-kk-ico { background: linear-gradient(135deg, #ff9ac1, #eb2f96); }
.xz-kk-c4 .xz-kk-ico { background: linear-gradient(135deg, #ffe17a, #faad14); }
.xz-kk-c5 .xz-kk-ico { background: linear-gradient(135deg, #8ee6c5, #13c2a2); }
.xz-kk-c6 .xz-kk-ico { background: linear-gradient(135deg, #c2a6ff, #722ed1); }
.xz-kk-c7 .xz-kk-ico { background: linear-gradient(135deg, #9be37b, #52c41a); }
.xz-kk-c8 .xz-kk-ico { background: linear-gradient(135deg, #ffa98a, #fa541c); }
.xz-kk-c9 .xz-kk-ico { background: linear-gradient(135deg, #9fb3c8, #5b6b7f); }

/* 服务承诺 */
.xz-promise { display: flex; justify-content: space-around; gap: 4px; margin: 0 0 10px; padding: 12px 6px; border-radius: 12px; background: #fff; list-style: none; }
.xz-promise li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.xz-promise .xz-icon { flex: none; width: 24px; height: 24px; color: var(--xz-brand); }
.xz-promise b { display: block; color: #222; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.xz-promise small { display: block; color: #999; font-size: 11px; line-height: 1.3; white-space: nowrap; }

/* 首页的区块（店长推荐 / 品牌馆） */
.xz-hsec { margin-bottom: 10px; padding: 12px; border-radius: 12px; background: #fff; }
.xz-hsec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.xz-hsec-head h2 { margin: 0; color: var(--xz-brand); font-size: 17px; font-weight: 700; } /* 首页各区块的标题：主题红（同奏姐推荐） */
.xz-hsec-head a { color: #999; font-size: 13px; }
.xz-rec-scroll { display: flex; gap: 10px; margin: 0 -12px; padding: 0 12px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.xz-rec-scroll::-webkit-scrollbar { display: none; }
.xz-rec-scroll .xz-mini { flex: 0 0 29%; scroll-snap-align: start; }

/* 小卡片（店长推荐 / 分类页） */
.xz-mini { display: flex; flex-direction: column; min-width: 0; color: #333; }
.xz-mini-img { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f7f7f7; }
.xz-mini-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xz-mini-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 6px; overflow: hidden; font-size: 12px; line-height: 1.4; min-height: 2.8em; }
.xz-mini-price { margin-top: 3px; overflow: hidden; color: var(--xz-brand); font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
/* 小卡片只显示日元（第 2 个 span = bso-config wc_price 的人民币参考价） */
.xz-mini-price > span:nth-of-type(2):not(.xz-mini-from) { display: none; }
.xz-mini-from { margin-left: 1px; color: #999; font-size: 11px; font-weight: normal; }

/* 品牌馆 */
.xz-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.xz-brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 6px; border-radius: 8px; background: #f7f7f7; color: #222; text-align: center; }
.xz-brand-tile b { max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; text-overflow: ellipsis; }
.xz-brand-tile span { margin-top: 2px; color: #999; font-size: 11px; }

/* 分类标签 + 商品（标签吸顶） */
.xz-feed-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; margin: 0 -10px 10px; padding: 0 14px; overflow-x: auto; background: var(--xz-page); scrollbar-width: none; }
.xz-feed-tabs::-webkit-scrollbar { display: none; }
.xz-feed-tab { position: relative; flex: none; padding: 12px 0 10px; border: 0; background: none; color: #555; font-size: 15px; cursor: pointer; }
.xz-feed-tab.is-active { color: var(--xz-brand); font-size: 16px; font-weight: 700; }
.xz-feed-tab.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--xz-brand); }
.xz-home ul.products { gap: 8px; }
.xz-feed-more { padding: 16px 0 8px; color: #aaa; font-size: 13px; text-align: center; }
.xz-feed-more:empty { padding: 4px 0; }
.xz-feed-more[data-state="idle"] .xz-feed-next { display: none; }
.xz-feed-retry { padding: 6px 14px; border: 1px solid #ddd; border-radius: 15px; background: #fff; color: #666; font-size: 13px; cursor: pointer; }
.xz-spin { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid #ddd; border-top-color: var(--xz-brand); border-radius: 50%; vertical-align: -2px; animation: xz-spin .7s linear infinite; }
@keyframes xz-spin { to { transform: rotate(360deg); } }

/* 分类页（手机：左右两栏各自滚动，填满页头和底栏之间） */
.xz-categories-page .xz-footer { display: none; }
.xz-cats { display: flex; height: calc(100vh - var(--xz-header-h) - var(--xz-tabbar-h) - var(--xz-safe-bottom)); height: calc(100dvh - var(--xz-header-h) - var(--xz-tabbar-h) - var(--xz-safe-bottom)); background: #fff; }
.xz-cats-side { flex: 0 0 86px; overflow-y: auto; background: #f2f3f5; scrollbar-width: none; overscroll-behavior: contain; }
.xz-cats-side::-webkit-scrollbar { display: none; }
.xz-cats-tab { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 8px 6px; border: 0; background: #f2f3f5; color: #666; font-size: 13px; line-height: 1.3; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xz-cats-tab[aria-selected="true"] { background: #fff; color: var(--xz-brand); font-size: 14px; font-weight: 700; } /* 选中：主题红的字 + 红条，白底和右栏连在一起 */
.xz-cats-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 0 2px 2px 0; background: var(--xz-brand); }
/* 选中项的上下两格：圆角（淘宝 APP 的样子） */
.xz-cats-side { --xz-cats-r: 10px; }
.xz-cats-tab.is-prev { border-bottom-right-radius: var(--xz-cats-r); }
.xz-cats-tab.is-next { border-top-right-radius: var(--xz-cats-r); }
.xz-cats-side { position: relative; z-index: 0; } /* 圆角后面的白色小方块（::after，z-index: -1）在左栏底色上面、格子底色下面 */
.xz-cats-tab.is-prev::after, .xz-cats-tab.is-next::after { content: ""; position: absolute; right: 0; z-index: -1; width: var(--xz-cats-r); height: var(--xz-cats-r); background: #fff; }
.xz-cats-tab.is-prev::after { bottom: 0; }
.xz-cats-tab.is-next::after { top: 0; }
.xz-cats-main { flex: 1; min-width: 0; padding: 4px 12px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; }
.xz-cats-panel[hidden] { display: none; }
.xz-cats-panel { animation: xz-cats-in .18s ease-out; }
@keyframes xz-cats-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xz-cats-panel { animation: none; } }
.xz-cats-banner { display: block; margin: 8px 0 4px; overflow: hidden; border-radius: 8px; }
.xz-cats-banner img { display: block; width: 100%; height: auto; }
.xz-cats-head { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 8px 0 4px; padding: 0 8px 0 12px; border-radius: 8px; background: #f6f7f9; color: #222; } /* 浅灰底（中性色，不用大面积粉色） */
.xz-cats-head { position: relative; justify-content: flex-end; }
.xz-cats-head b { position: absolute; left: 50%; top: 50%; max-width: 46%; overflow: hidden; color: var(--xz-brand); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; transform: translate(-50%, -50%); } /* 标题居中、主题红 */
.xz-cats-head span { display: inline-flex; align-items: center; height: 24px; padding: 0 6px 0 10px; border-radius: 12px; background: #fff; color: #666; font-size: 12px; }
.xz-cats-head .xz-icon { width: 12px; height: 12px; }
.xz-cats-sub { margin: 8px 0 10px; color: #333; font-size: 13px; font-weight: 600; }
.xz-cats-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.xz-cats-brands a { overflow: hidden; height: 36px; padding: 0 6px; border-radius: 6px; background: #f7f7f7; color: #333; font-size: 12px; line-height: 36px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.xz-cats-brands a:active { background: #fff0f0; color: var(--xz-brand); }
.xz-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.xz-cats-grid .xz-mini-img { border-radius: 6px; background: #fff; }
.xz-cats-grid .xz-mini-name { text-align: center; }
.xz-cats-grid .xz-mini-price { text-align: center; font-size: 12px; }
.xz-cats-grid .xz-mini:active { opacity: .7; }
.xz-cats-all { display: block; width: 70%; max-width: 320px; margin: 20px auto 0; padding: 8px; border: 1px solid #e5e5e5; border-radius: 18px; color: #666; font-size: 12px; text-align: center; }
.xz-brand-grid-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 992px) {
    .xz-home { background: var(--xz-page-pc); }
    .xz-home-wrap { padding: 16px var(--xz-gutter) 0; }
    .xz-banner { margin-bottom: 16px; }
    .xz-banner-item img { aspect-ratio: 1200 / 400; }
    .xz-kk { grid-template-columns: repeat(10, 1fr); margin-bottom: 16px; padding: 20px 8px; }
    .xz-kk-ico { width: 52px; height: 52px; border-radius: 18px; }
    .xz-kk-item { font-size: 13px; }
    .xz-promise { display: none; } /* 电脑的页脚已经有同样的保障条 */
    .xz-hsec { margin-bottom: 16px; padding: 18px 20px; }
    .xz-rec-scroll { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
    .xz-rec-scroll .xz-mini:nth-child(n+7) { display: none; }
    .xz-mini-name { font-size: 13px; }
    .xz-brand-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .xz-feed-tabs { margin: 0 0 12px; padding: 0 4px; background: var(--xz-page-pc); }
    .xz-home ul.products { gap: 14px; }
    .xz-categories-page .xz-footer { display: block; }
    .xz-cats { height: auto; min-height: 560px; margin: 16px auto 24px; max-width: var(--xz-container); border-radius: 12px; overflow: hidden; }
    .xz-cats-side { flex-basis: 160px; overflow: visible; }
    .xz-cats-tab { justify-content: flex-start; padding: 14px 16px; text-align: left; }
    .xz-cats-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .xz-cats-head { height: 48px; margin-top: 0; }
    .xz-cats-grid .xz-mini-name, .xz-cats-grid .xz-mini-price { text-align: left; }
    .xz-cats-tab:hover { color: var(--xz-brand); }
    .xz-cats-main { padding: 20px 24px 28px; overflow: visible; }
    .xz-cats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
    .xz-brand-grid-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* =========================================================================
   面板（assets/js/address.js）：所在地区 / 地址簿；手机从底部弹出，电脑居中。页面内的确认框
   ========================================================================= */
html.xz-sheet-open, html.xz-sheet-open body { overflow: hidden; }
.xz-sheet-mask { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.xz-sheet-mask.is-open { opacity: 1; }
.xz-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; display: flex; flex-direction: column;
    max-height: 88vh; max-height: 88dvh; padding-bottom: var(--xz-safe-bottom); border-radius: 12px 12px 0 0; background: #fff;
    transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.xz-sheet.is-open { transform: none; }
.xz-sheet-mask[hidden], .xz-sheet[hidden] { display: none; }
.xz-sheet-head { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: 50px; padding: 0 48px; }
.xz-sheet-title { margin: 0; overflow: hidden; color: #222; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.xz-sheet-close, .xz-sheet-back { position: absolute; top: 5px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #999; cursor: pointer; }
.xz-sheet-close { right: 6px; }
.xz-sheet-back { left: 6px; color: #333; }
.xz-sheet-close .xz-icon, .xz-sheet-back .xz-icon { width: 22px; height: 22px; }
.xz-sheet-back[hidden] { display: none; }
.xz-sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.xz-sheet-foot { flex: none; padding: 8px 12px; }
.xz-sheet-foot[hidden] { display: none; }
.xz-sheet-foot .xz-btn { width: 100%; height: 44px; border: 0; border-radius: 22px; background: var(--xz-brand); color: #fff; font-size: 16px; }
.xz-sheet-foot .xz-btn .xz-icon { width: 18px; height: 18px; }
.xz-sheet.is-busy .xz-sheet-foot .xz-btn { opacity: .6; }

/* 所在地区（层次在地址簿面板上面） */
.xz-region { z-index: 1003; height: 70vh; max-height: 560px; }
.xz-region-tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid #f2f2f2; overflow-x: auto; }
.xz-region-tab { flex: none; margin: 0; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: #333; font-size: 14px; cursor: pointer; }
.xz-region-tab.is-current { border-bottom-color: var(--xz-brand); color: var(--xz-brand); }
.xz-region-list { margin: 0; padding: 4px 0; list-style: none; }
.xz-region .xz-sheet-body { display: flex; flex-direction: column; overflow: hidden; }
.xz-region-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.xz-region-list button { display: block; width: 100%; margin: 0; padding: 12px 16px; border: 0; background: none; color: #333; font-size: 15px; text-align: left; cursor: pointer; }
.xz-region-list button.is-selected { color: var(--xz-brand); }
.xz-region-list button.is-selected::after { content: "✓"; float: right; }
.xz-region-list button:focus, .xz-region-tab:focus { outline: none; }
.xz-region-list button:focus-visible, .xz-region-tab:focus-visible { background: #f5f5f5; }

/* 地址簿：列表 */
.xz-ab { height: 80vh; height: 80dvh; background: var(--xz-page); }
.xz-ab .xz-sheet-head, .xz-ab .xz-sheet-foot { background: #fff; }
.xz-ab .xz-sheet-head { border-radius: 12px 12px 0 0; }
.xz-ab-list { margin: 0; padding: 10px; list-style: none; }
.xz-ab-item { position: relative; display: flex; align-items: stretch; margin: 0 0 10px; border-radius: 10px; background: #fff; }
.xz-ab-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 4px 14px 14px; border: 0; background: none; color: #222; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xz-ab-radio { flex: none; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 50%; color: transparent; transition: background .15s, border-color .15s; }
.xz-ab-radio .xz-icon { width: 14px; height: 14px; }
.xz-ab-item.is-selected .xz-ab-radio { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-ab-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.xz-ab-who { font-size: 15px; line-height: 1.4; }
.xz-ab-who b { margin-right: 10px; font-weight: 600; }
.xz-ab-line { color: #666; font-size: 13px; line-height: 1.5; word-break: break-all; }
.xz-ab-tag { display: inline-block; margin-right: 6px; padding: 0 4px; border: 1px solid var(--xz-brand); border-radius: 3px; color: var(--xz-brand); font-size: 11px; font-style: normal; line-height: 16px; vertical-align: 1px; }
.xz-ab-edit { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; border: 0; border-left: 1px solid #f5f5f5; background: none; color: #999; cursor: pointer; }
.xz-ab-edit .xz-icon { width: 20px; height: 20px; }
.xz-ab-empty { padding: 60px 16px; color: #999; font-size: 14px; text-align: center; }

/* 地址簿：表单 */
.xz-ab-form { padding: 10px; }
.xz-ab-smart { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.xz-ab-smart textarea { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: #f7f7f7; color: #222; font-size: 14px; line-height: 1.5; resize: none; }
.xz-ab-smart textarea::placeholder { color: #aaa; }
.xz-ab-smart-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.xz-ab-smart-btns button { height: 28px; padding: 0 14px; border: 1px solid #ddd; border-radius: 14px; background: #fff; color: #555; font-size: 13px; cursor: pointer; }
.xz-ab-smart-btns .xz-ab-smart-go { border-color: var(--xz-brand); background: var(--xz-brand); color: #fff; }
.xz-ab-fields { padding: 0 12px; border-radius: 10px; background: #fff; }
.xz-ab-row { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; min-height: 50px; border-bottom: 1px solid #f2f2f2; }
.xz-ab-row:last-child { border-bottom: 0; }
.xz-ab-row:focus-within { border-bottom-color: var(--xz-brand); }
.xz-ab-label { flex: 0 0 84px; display: flex; align-items: center; min-height: 50px; padding-right: 8px; color: #333; font-size: 15px; line-height: 1.25; }
.xz-ab-control { flex: 1; min-width: 0; }
.xz-ab-control input, .xz-ab-control select, .xz-ab-control textarea {
    display: block; width: 100%; height: 50px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #222; font-size: 15px; outline: none;
}
.xz-ab-control textarea { height: auto; min-height: 50px; padding: 14px 0; line-height: 1.5; resize: none; }
.xz-ab-control input::placeholder, .xz-ab-control textarea::placeholder { color: #bbb; }
.xz-ab-control select {
    -webkit-appearance: none; appearance: none; padding-right: 22px; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='%23c4c4c4' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center / 7px 13px no-repeat;
}
.xz-ab-region { display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0; border: 0; background: none; color: #222; font-size: 15px; text-align: left; cursor: pointer; }
.xz-ab-region > span { flex: 1; min-width: 0; }
.xz-ab-region > span.is-empty { color: #bbb; }
.xz-ab-region em { color: var(--xz-brand); font-style: normal; }
.xz-ab-region .xz-icon { width: 16px; height: 16px; color: #c4c4c4; }
.xz-ab-region:focus-visible { outline: none; }
.xz-ab-row.is-invalid .xz-ab-label { color: var(--xz-brand); }
.xz-ab-err { flex: 0 0 100%; margin: -6px 0 8px 84px; color: var(--xz-brand); font-size: 12px; line-height: 1.4; }
.xz-ab-default { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding: 12px; border-radius: 10px; background: #fff; color: #222; font-size: 15px; cursor: pointer; }
.xz-ab-default small { display: block; margin-top: 2px; color: #999; font-size: 12px; }
.xz-ab-del { display: block; width: 100%; margin: 10px 0 0; padding: 14px; border: 0; border-radius: 10px; background: #fff; color: var(--xz-brand); font-size: 15px; cursor: pointer; }
/* 开关 */
.xz-switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: #e5e5e5; cursor: pointer; transition: background .2s; }
.xz-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.xz-switch:checked { background: var(--xz-brand); }
.xz-switch:checked::after { transform: translateX(18px); }
.xz-switch:disabled { opacity: .5; cursor: default; }
.xz-switch:focus-visible { outline: 2px solid var(--xz-brand); outline-offset: 2px; }

/* 页面内的确认框 */
.xz-confirm { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .15s; }
.xz-confirm.is-open { opacity: 1; }
.xz-confirm-box { width: 100%; max-width: 300px; overflow: hidden; border-radius: 12px; background: #fff; text-align: center; }
.xz-confirm-msg { margin: 0; padding: 26px 20px; color: #222; font-size: 16px; line-height: 1.5; }
.xz-confirm-btns { display: flex; border-top: 1px solid #f2f2f2; }
.xz-confirm-btns button { flex: 1; height: 48px; border: 0; background: none; color: #333; font-size: 16px; cursor: pointer; }
.xz-confirm-btns button + button { border-left: 1px solid #f2f2f2; }
.xz-confirm-ok { color: var(--xz-brand) !important; font-weight: 600; }
.xz-toast { z-index: 1200; }

@media (min-width: 992px) {
    .xz-sheet {
        left: 50%; right: auto; top: 50%; bottom: auto; width: 520px; max-height: 80vh; padding-bottom: 0; border-radius: 12px;
        opacity: 0; transform: translate(-50%, -46%); transition: transform .2s, opacity .2s;
    }
    .xz-sheet.is-open { opacity: 1; transform: translate(-50%, -50%); }
    .xz-region { width: 480px; height: 560px; }
    .xz-ab { height: auto; min-height: 420px; max-height: 80vh; }
    .xz-ab .xz-sheet-foot { border-radius: 0 0 12px 12px; }
    .xz-region-list button:hover, .xz-ab-pick:hover, .xz-ab-edit:hover { background: #fafafa; }
}

/* =========================================================================
   App 化：页面切换的过渡（浏览器支持时；页头 / 底栏不参与淡入淡出）
   ========================================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.xz-header { view-transition-name: xz-header; }
.xz-tabbar { view-transition-name: xz-tabbar; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.xz-tab, .xz-pcard-link, .xz-btn { -webkit-tap-highlight-color: transparent; }
.xz-pcard-link:active, .xz-tab:active, .xz-btn:active { opacity: .7; }

/* =========================================================================
   电脑（≥ 992px）
   ========================================================================= */
@media (min-width: 992px) {
    body { padding-bottom: 0; background: var(--xz-page-pc); }
    .xz-tabbar, .xz-menu-btn, .xz-nav-close, .xz-nav-mask, .xz-search-icon { display: none !important; }

    /* 顶栏 */
    .xz-topbar { display: block; height: 37px; background: rgba(2, 20, 34, .03); border-bottom: 1px solid rgba(2, 20, 34, .05); color: var(--xz-muted); font-size: 12px; line-height: 36px; }
    .xz-topbar .xz-container { display: flex; justify-content: space-between; }
    .xz-topbar-right { display: flex; align-items: center; gap: 16px; }
    .xz-topbar-reg { color: var(--xz-brand); }
    .xz-topbar-sep { width: 1px; height: 12px; background: rgba(2, 20, 34, .15); }
    .xz-topbar-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
    .xz-topbar-menu li { position: relative; }
    .xz-topbar-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
    .xz-topbar-menu .menu-item-has-children:hover > a::after { margin-bottom: 0; transform: rotate(-135deg); }
    .xz-topbar-menu .sub-menu {
        position: absolute; right: 0; top: 100%; z-index: 30; display: none; min-width: 120px; margin: 0; padding: 6px 0; list-style: none;
        background: #fff; box-shadow: 0 4px 12px rgba(2, 20, 34, .12); line-height: 32px;
    }
    .xz-topbar-menu .sub-menu a { display: block; padding: 0 16px; white-space: nowrap; }
    .xz-topbar-menu li:hover > .sub-menu, .xz-topbar-menu li:focus-within > .sub-menu { display: block; }

    /* logo | 搜索 | 购物车 */
    .xz-header-main { height: auto; gap: 40px; padding: 24px var(--xz-gutter); align-items: flex-start; } /* Logo | 40 | 搜索框（剩下的宽度）| 40 | 购物车：间隔固定，窗口宽窄都一样 */
    .xz-logo { width: auto; }
    .xz-logo-img { width: 60px; height: 60px; }
    .xz-search { flex: 1 1 auto; min-width: 0; margin-top: -3px; }
    .xz-search-input {
        height: 44px; padding: 6px 16px 6px 20px; border: 1px solid rgba(2, 20, 34, .2); border-right: 0;
        border-radius: var(--xz-radius) 0 0 var(--xz-radius); background: #fff;
    }
    .xz-search-btn {
        display: block; flex: none; width: 86px; height: 44px; padding: 0; border: 0;
        border-radius: 0 var(--xz-radius) var(--xz-radius) 0; background: var(--xz-brand); color: #fff; font-size: 18px; font-weight: 600;
    }
    .xz-search-hot { display: block; margin-top: 10px; font-size: 12px; line-height: 12px; }
    .xz-search-hot a { color: var(--xz-light); }
    .xz-search-hot a + a { margin-left: 8px; padding-left: 9px; border-left: 1px solid rgba(2, 20, 34, .15); }
    .xz-search-hot a:hover { color: var(--xz-brand); }

    .xz-cart-link { display: flex; align-items: center; gap: 10px; margin-left: 0; height: 44px; color: var(--xz-brand); }
    .xz-cart-link { flex: none; }
    .xz-cart-icon { position: relative; flex: none; display: flex; font-size: 32px; color: var(--xz-title); }
    .xz-cart-icon .xz-icon { flex: none; width: 32px; height: 32px; } /* 窄屏时不被压扁 */
    .xz-cart-count {
        position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px;
        background: var(--xz-brand); color: #fff; font-size: 10px; font-weight: 500; line-height: 16px; text-align: center;
    }
    .xz-cart-total { display: block; color: var(--xz-muted); font-size: 12px; line-height: 16px; white-space: nowrap; }
    .xz-cart-total span[style*="grey"] { display: none; } /* 合计只显示日元（人民币参考价在购物车 / 结算页） */
    .xz-cart-total > span:first-child { display: block; }
    .xz-cart-total *, .xz-cart-total [style] { color: var(--xz-muted) !important; font-size: 12px !important; font-weight: 400 !important; } /* bso-config 的价格带行内红色样式 */

    /* 导航：商品分类（下拉）+ 主菜单 */
    .xz-nav { position: static; width: auto; max-width: none; padding: 0; overflow: visible; background: none; color: var(--xz-title); transform: none; visibility: visible; transition: none; }
    .xz-nav-inner { display: flex; align-items: stretch; height: 48px; padding: 0 var(--xz-gutter); }
    .xz-catnav { display: block; position: relative; width: 220px; margin-right: 30px; }
    .xz-catnav-title {
        height: 48px; padding: 0 24px; border: 0; border-radius: var(--xz-radius) var(--xz-radius) 0 0;
        background: rgba(2, 20, 34, .06); color: var(--xz-title); line-height: 48px;
    }
    /* 第一层（品牌）；有子项的鼠标移上去在右侧展开（同 sage） */
    .xz-catnav-menu {
        position: absolute; left: 0; top: 48px; z-index: 30; display: none; width: 220px; padding: 10px 0;
        background: #fff; box-shadow: 0 6px 16px rgba(2, 20, 34, .12);
    }
    .xz-catnav:hover .xz-catnav-menu, .xz-catnav.is-open .xz-catnav-menu { display: block; }
    .xz-catnav.is-open .xz-catnav-arrow { transform: rotate(180deg); }
    .xz-catnav-menu > li > a { position: relative; display: block; padding: 0 40px 0 24px; color: var(--xz-title); font-size: 14px; line-height: 42px; }
    .xz-catnav-menu > .menu-item-has-children > a::after {
        content: ""; position: absolute; right: 26px; top: 50%; width: 6px; height: 6px; margin-top: -4px;
        border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6;
    }
    .xz-catnav-menu > li:hover > a, .xz-catnav-menu > li:focus-within > a { color: var(--xz-brand); background: rgba(2, 20, 34, .05); }
    .xz-catnav-menu .sub-menu {
        position: absolute; left: 220px; top: 0; display: none; min-width: 280px; min-height: 100%; padding: 20px 20px 20px 24px;
        background: #fff; box-shadow: 6px 6px 16px rgba(2, 20, 34, .08);
    }
    .xz-catnav-menu > li:hover > .sub-menu, .xz-catnav-menu > li:focus-within > .sub-menu { display: block; }
    .xz-catnav-menu .sub-menu a { display: block; padding: 0 16px; color: var(--xz-muted); font-size: 14px; line-height: 40px; white-space: nowrap; }
    .xz-catnav-menu .sub-menu a:hover { color: var(--xz-brand); }
    .xz-primary-menu > li > a .xz-menu-icon { width: 16px; height: 16px; }
    .xz-primary-menu > .current-menu-item > a { background: none; }
    .xz-primary-menu { display: flex; }
    .xz-primary-menu > li { position: relative; }
    .xz-primary-menu > li > a { height: 48px; padding: 0 10px; border: 0; color: var(--xz-title); line-height: 48px; }
    .xz-primary-menu > li > a:hover, .xz-primary-menu > .current-menu-item > a { color: var(--xz-brand); }
    .xz-primary-menu .sub-menu { position: absolute; left: 0; top: 48px; z-index: 30; display: none; min-width: 160px; padding: 8px 0; background: #fff; box-shadow: 0 6px 16px rgba(2, 20, 34, .12); }
    .xz-primary-menu .sub-menu a { padding: 8px 16px; color: var(--xz-text); }
    .xz-primary-menu > li:hover > .sub-menu, .xz-primary-menu > li:focus-within > .sub-menu { display: block; }

    /* 布局：左边栏 300 + 正文 */
    .xz-layout { flex-direction: row; gap: 30px; padding-top: 20px; }
    .xz-layout.has-sidebar .xz-content { flex: 1; }
    .xz-sidebar { display: block; flex: 0 0 300px; order: -1; }
    .xz-content { padding: 30px; border-radius: var(--xz-radius); }
    .xz-layout:not(.has-sidebar) .xz-content { flex: 1; }

    /* 页脚 */
    .xz-footer { display: block; background: #fff; border-top: 1px solid var(--xz-line); }
    .xz-ensure { display: flex; justify-content: space-between; padding: 28px 0 24px; border-bottom: 1px solid var(--xz-line); }
    .xz-ensure-item { display: flex; align-items: center; gap: 12px; }
    .xz-ensure-icon { width: 46px; height: 46px; color: var(--xz-brand); }
    .xz-ensure-item b { display: block; color: var(--xz-title); font-size: 16px; line-height: 22px; }
    .xz-ensure-item span { display: block; margin-top: 5px; color: var(--xz-light); font-size: 14px; line-height: 20px; }
    .xz-copyright { padding: 24px 0; color: var(--xz-muted); font-size: 14px; text-align: center; }
    .xz-copyright p { margin: 0; }

    .xz-gotop { right: 20px; bottom: 180px; }

    /* 商品列表（电脑） */
    .xz-shop { padding-top: 12px; } /* 商品列表的块间隔统一 12px（导航 → 筛选 → 品牌页头 → 排序栏 → 商品） */
    .xz-wc-breadcrumb { display: flex; padding: 16px 0; font-size: 13px; }
    .xz-filter-btn, .xz-filters-head, .xz-filters-mask { display: none !important; }
    .xz-filters {
        position: static; width: auto; max-width: none; margin-bottom: 12px; padding: 0;
        overflow: hidden; border: 0; border-radius: 8px; background: #fff; transform: none; visibility: visible; transition: none; /* 同其他卡片：圆角、无边框 */
    }
    .xz-filters .widget { position: relative; display: flex; padding: 0; }
    .xz-filters .widget + .widget { border-top: 1px solid var(--xz-line); }
    .xz-filters .widget-title { flex: 0 0 100px; margin: 0; padding: 14px 16px; background: var(--xz-page-pc); font-size: 14px; font-weight: 400; color: var(--xz-muted); }
    .xz-filters ul { flex: 1; gap: 0 4px; align-content: flex-start; padding: 10px 90px 10px 14px; overflow: hidden; }
    .xz-filters .widget.xz-collapsed ul { max-height: 74px; padding-bottom: 0; } /* 2 行（上内边距 10 + 32×2） */
    .xz-filters li a { padding: 4px 6px; border-radius: 2px; background: none; color: var(--xz-title); font-size: 14px; line-height: 24px; }
    .xz-filters li a:hover { color: var(--xz-brand); }
    .xz-filters li .count { display: inline; margin-right: 12px; color: var(--xz-light); font-size: 13px; }
    .xz-filters li.current-cat > a, .xz-filters li.chosen > a { background: var(--xz-brand); color: #fff; }
    .xz-filter-more {
        position: absolute; right: 10px; top: 14px; display: inline-flex; align-items: center; height: 22px; padding: 0 6px;
        border: 1px solid rgba(2, 20, 34, .2); border-radius: 2px; background: #fff; color: var(--xz-muted); font-size: 12px;
    }

    .xz-shop-bar { position: static; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; margin: 0 0 12px; padding: 0 16px; border-radius: 8px; }
    .woocommerce-result-count { display: block; margin: 0; color: var(--xz-muted); font-size: 14px; }
    .xz-sortbar { padding: 0; }
    .xz-sort { flex: none; padding: 0 18px; }
    .xz-sort:first-child { padding-left: 0; }
    @media (hover: hover) { .xz-sort:hover { color: var(--xz-brand); } }
    ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .xz-pcard { transition: box-shadow .2s; }
    .xz-pcard:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
    .xz-pcard-pic { margin: 12px 12px 0; }
    .xz-pcard-title { margin: 10px 12px 0; }
    .xz-pcard-foot { padding: 6px 12px 14px; }

    /* 商品详情页（电脑）：左图 420 + 右文 */
    .single-product { padding-bottom: 0; background: #fff; } /* 白底（参考淘宝），不用电脑的灰色页面背景 */
    .single-product .xz-layout { padding-top: 8px; }
    .xz-pd div.product { display: grid; grid-template-columns: 420px minmax(0, 1fr); column-gap: 30px; align-items: start; }
    .xz-pd div.product > *:not(.xz-gallery):not(.entry-summary) { grid-column: 1 / -1; }
    .xz-gallery { margin: 0; }
    .xz-gallery-count { display: none; }
    .xz-gallery-thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--xz-line); overflow-x: auto; }
    .xz-gallery-thumb { flex: 0 0 60px; height: 60px; padding: 0; border: 2px solid transparent; background: #fff; }
    .xz-gallery-thumb.is-active { border-color: var(--xz-brand); }
    .xz-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
    .xz-pd-title { order: 0; font-size: 20px; }
    .xz-pd-meta { margin-bottom: 10px; font-size: 14px; }
    .xz-pd-sales { padding: 0 8px; font-size: 13px; line-height: 20px; }
    .xz-pd-price { order: 0; align-items: center; margin: 4px 0 16px; padding: 14px 18px; border-radius: 8px; background: linear-gradient(90deg, #fff1f0, #fff7f5 60%, #fff); }
    .xz-pd-price-label { display: block; margin-right: 20px; color: var(--xz-muted); font-size: 14px; }
    .xz-pd-price .price { font-size: 18px; }
    .xz-pd-price .price > span[style*="grey"] { margin-left: 10px; font-size: 13px !important; }
    .woocommerce-product-details__short-description { display: block; color: var(--xz-text); }
    .xz-pd-desc-more { display: none; }
    form.cart { margin-bottom: 24px; }
    .xz-buybar { position: static; height: auto; padding: 0; gap: 16px; box-shadow: none; background: none; }
    .xz-buybar-icons { order: 3; }
    .xz-buybar-icon.xz-copy { display: none; }
    /* 收藏：和按钮一样高的灰色线框按钮（参考京东的「关注」），收藏后红色「已收藏」 */
    .xz-fav { flex-direction: row; gap: 6px; width: auto; height: 42px; padding: 0 16px; border: 1px solid #e5e5e5; border-radius: var(--xz-radius); color: #666; font-size: 14px; line-height: 1; }
    .xz-fav:hover { border-color: #ccc; color: #333; }
    .xz-fav.is-on { border-color: #ffd0cc; color: var(--xz-brand); }
    .xz-fav .xz-icon { width: 18px; height: 18px; margin: 0; }
    .quantity { height: 42px; }
    .quantity input.qty { width: 38px; height: 40px; font-size: 15px; }
    .xz-qty-btn { width: 32px; height: 40px; }
    .xz-buybar .single_add_to_cart_button, .xz-buy-now { flex: none; height: 42px; padding: 0 20px; border-radius: var(--xz-radius); font-size: 16px; font-weight: 400; line-height: 40px; }
    .wc-tabs { position: relative; gap: 24px; background: none; }
    .wc-tabs li a { font-size: 17px; }
    .woocommerce-tabs { margin-top: 40px; }
    .woocommerce-Tabs-panel { max-width: 860px; }
    .row > .col-md-6 { width: 50%; }
    .row > .col-md-4 { width: 33.333%; }
    .row > .col-md-3 { width: 25%; }
    .related > h2, .upsells > h2 { margin: 32px 0 16px; font-size: 18px; }
    .related > h2.xz-guess-head { margin: 32px 0 16px; font-size: 17px; }
    .related ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .single-product .related, .single-product .upsells { margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--xz-line); }
    .single-product .related > h2, .single-product .upsells > h2 { margin: 0 0 16px; font-size: 18px; }
    .single-product .related ul.products, .single-product .upsells ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
    .single-product .related .xz-pcard:hover, .single-product .upsells .xz-pcard:hover { box-shadow: none; }
    .single-product .related .xz-pcard-pic, .single-product .upsells .xz-pcard-pic { margin: 0; }
    .single-product .related .xz-pcard-title, .single-product .upsells .xz-pcard-title { margin: 8px 0 0; font-size: 13px; }
    .xz-toast { bottom: 80px; }

    /* 购物车（电脑）：合计栏不固定，跟在商品后面 */
    .xz-gray { background: var(--xz-page-pc); }
    .xz-gray .xz-layout { padding: 0 var(--xz-gutter); }
    .woocommerce-cart { padding-bottom: 0; }
    .xz-cart-bar { position: static; margin-top: 12px; padding: 12px; border-radius: 10px; box-shadow: none; }
    .xz-cart-bar-total { flex: 0 1 auto; }
}

/* ==========================================================================
   帮助中心 / 联系我们（inc/pages.php，参考淘宝）
   ========================================================================== */
.xz-help-page .xz-layout, .xz-contact-page .xz-layout, .xz-guide-page .xz-layout { padding-top: 0; }
.xz-help-page .xz-page, .xz-contact-page .xz-page, .xz-guide-page .xz-page { padding: 0; background: none; box-shadow: none; }
.xz-help-hero { margin: 0 -12px 12px; padding: 22px 16px 20px; background: linear-gradient(135deg, var(--xz-brand), #ff8a65); color: #fff; }
.xz-help-hero h1 { margin: 0; color: #fff; font-size: 22px; line-height: 1.3; }
.xz-help-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, .9); font-size: 13px; }
.xz-help-search { display: flex; align-items: center; gap: 8px; height: 40px; margin-top: 14px; padding: 0 14px; border-radius: 20px; background: #fff; color: #999; }
.xz-help-search .xz-icon { flex: none; width: 18px; height: 18px; }
.xz-help-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #222; font-size: 14px; -webkit-appearance: none; }
.xz-help-card { display: block; margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: #fff; }
.xz-help-h { margin: 0 0 10px; color: #222; font-size: 16px; font-weight: 600; }
.xz-help-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xz-help-chip { overflow: hidden; padding: 10px 12px; border-radius: 8px; background: #f6f6f6; color: #333; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.xz-help-chip:active { background: #fff0f0; color: var(--xz-brand); }
.xz-help-list .wp-block-wpcom-accordion { margin: 0; }
.xz-help-list .wp-block-wpcom-acco { scroll-margin-top: 70px; }
.xz-help-list .wp-block-wpcom-acco:last-child { border-bottom: 0; }
.xz-help-list .wp-block-wpcom-acco .panel-title { font-size: 15px; }
.xz-help-list .wp-block-wpcom-acco .panel-title a { padding: 14px 28px 14px 0; }
.xz-help-list .wp-block-wpcom-acco .panel-title a[aria-expanded="true"] { color: var(--xz-brand); font-weight: 600; }
.xz-help-list .panel-body { color: #555; font-size: 14px; line-height: 1.75; }
.xz-help-list .panel-body p, .xz-help-list .panel-body li { font-size: 14px !important; }
.xz-help-list .panel-body img { height: auto; max-width: 100%; }
.xz-help-empty { margin: 20px 0 10px; color: #999; font-size: 13px; text-align: center; }
.xz-help-page .xz-layout, .xz-guide-page .xz-layout { padding-bottom: calc(76px + var(--xz-tabbar-h) + var(--xz-safe-bottom)); }
.xz-cs-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--xz-tabbar-h) + var(--xz-safe-bottom)); z-index: 40; padding: 8px 16px; background: #fff; box-shadow: 0 -1px 0 rgba(0, 0, 0, .06); }
.xz-cs-bar-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; border: 0; border-radius: 22px; background: var(--xz-brand); color: #fff; font-size: 16px; cursor: pointer; }
.xz-cs-bar-btn .xz-icon { width: 20px; height: 20px; }
/* 联系我们 */
.xz-contact-row { display: flex; align-items: center; gap: 12px; color: #222; }
.xz-contact-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff0f0; color: var(--xz-brand); }
.xz-contact-icon .xz-icon { width: 22px; height: 22px; }
.xz-contact-main { flex: 1; min-width: 0; }
.xz-contact-main b { display: block; font-size: 15px; }
.xz-contact-main span { display: block; margin-top: 2px; color: #222; font-size: 17px; font-weight: 600; }
.xz-contact-main small { display: block; margin-top: 2px; color: #999; font-size: 12px; }
.xz-contact-btn { flex: none; height: 32px; padding: 0 16px; border: 1px solid var(--xz-brand); border-radius: 16px; background: #fff; color: var(--xz-brand); font-size: 14px; cursor: pointer; }
.xz-contact-link > .xz-icon { flex: none; width: 16px; height: 16px; color: #bbb; }
.xz-contact-qr { text-align: center; }
.xz-contact-qr img { display: block; width: 200px; height: auto; margin: 4px auto 8px; border-radius: 8px; }
.xz-contact-qr p { margin: 0; color: #999; font-size: 12px; }
@media (min-width: 992px) {
    .xz-help-page .xz-layout, .xz-contact-page .xz-layout, .xz-guide-page .xz-layout { max-width: 880px; padding: 24px 0 60px; }
    .xz-help-hero { margin: 0 0 16px; padding: 36px 40px; border-radius: 12px; }
    .xz-help-hero h1 { font-size: 28px; }
    .xz-help-search { max-width: 520px; height: 44px; }
    .xz-help-card { padding: 20px 28px; }
    .xz-help-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xz-help-chip:hover { background: #fff0f0; color: var(--xz-brand); }
    .xz-help-list .wp-block-wpcom-acco .panel-title { font-size: 16px; }
    .xz-cs-bar { left: auto; right: 40px; bottom: 100px; padding: 0; background: none; box-shadow: none; }
    .xz-cs-bar-btn { width: auto; padding: 0 24px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
    .xz-help-page .xz-layout, .xz-guide-page .xz-layout { padding-bottom: 60px; }
}

/* 回头客说说：首页横滑（截图上半部分）+ 商品页评价下面的入口 */
.xz-fb-scroll { display: flex; gap: 8px; margin: 0 -12px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.xz-fb-scroll::-webkit-scrollbar { display: none; }
.xz-fb-card { flex: 0 0 30%; height: 200px; overflow: hidden; border: 1px solid var(--xz-line); border-radius: 8px; background: #f5f5f5; scroll-snap-align: start; }
.xz-fb-card img { display: block; width: 100%; height: auto; }
.xz-rv-fb { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fff5f4; color: #333; font-size: 14px; }
.xz-rv-fb > .xz-icon:first-child { width: 18px; height: 18px; color: var(--xz-brand); }
.xz-rv-fb span { flex: 1; color: #999; font-size: 13px; }
.xz-rv-fb > .xz-icon:last-child { width: 14px; height: 14px; color: #bbb; }
@media (min-width: 992px) {
    .xz-fb-scroll { margin: 0; padding: 0; }
    .xz-fb-card { flex: 0 0 calc((100% - 40px) / 6); height: 280px; }
    .xz-rv-fb { max-width: 420px; }
}

/* 空购物车（参考淘宝） */
.xz-cart-empty { padding: 36px 16px 32px; border-radius: 12px; background: #fff; text-align: center; }
.xz-cart-empty-icon { display: block; width: 96px; height: 96px; margin: 0 auto 12px; color: var(--xz-brand); }
.xz-cart-empty-title { margin: 0; color: #222; font-size: 16px; font-weight: 600; }
.xz-cart-empty-sub { margin: 6px 0 18px; color: #999; font-size: 13px; }
.xz-cart-empty-btn { min-width: 128px; border-radius: 20px; }
.xz-entry .xz-cart-empty p { margin-bottom: 0; }
.xz-entry .xz-cart-empty .xz-cart-empty-sub { margin: 6px 0 18px; }
@media (min-width: 992px) {
    .xz-cart-guess ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   消息（woocommerce/myaccount/messages.php，参考淘宝的消息页）
   ========================================================================== */
.xz-account-tabpage .xz-backbar-back { display: none; } /* 底栏的一项：不显示返回 */
.xz-msg-todo { display: flex; gap: 8px; margin-bottom: 10px; }
.xz-msg-todo a { flex: 1; display: flex; align-items: center; gap: 4px; padding: 12px; border-radius: 10px; background: #fff; color: #333; font-size: 13px; }
.xz-msg-todo b { color: var(--xz-brand); font-size: 18px; line-height: 1; }
.xz-msg-todo span { flex: 1; }
.xz-msg-todo .xz-icon { width: 14px; height: 14px; color: #bbb; }
.xz-msg-tabs { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.xz-msg-tabs::-webkit-scrollbar { display: none; }
.xz-msg-tabs button { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: #fff; color: #555; font-size: 13px; cursor: pointer; }
.xz-msg-tabs button.is-active { background: #fff0f0; color: var(--xz-brand); font-weight: 600; }
.xz-msg-list { margin: 0; padding: 0 12px; border-radius: 12px; background: #fff; list-style: none; }
.xz-msg-item + .xz-msg-item { border-top: 1px solid #f2f2f2; }
.xz-msg-link { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 0; border: 0; background: none; color: #222; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xz-msg-link:active { opacity: .7; }
.xz-msg-icon { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.xz-msg-icon .xz-icon { width: 21px; height: 21px; }
.xz-msg-item.is-new .xz-msg-icon::after { content: ""; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--xz-brand); }
.xz-msg-body { flex: 1; min-width: 0; }
.xz-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.xz-msg-head b { overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.xz-msg-head time { flex: none; color: #aaa; font-size: 12px; }
.xz-msg-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 3px; overflow: hidden; color: #777; font-size: 13px; line-height: 1.5; }
.xz-msg-link[aria-expanded="true"] .xz-msg-text { display: block; -webkit-line-clamp: unset; }
.xz-msg-thumb { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: #fff; }
.xz-msg-item[hidden] { display: none; }
.xz-entry .xz-msg-end, .xz-msg-end { margin: 14px 0 0; color: #bbb; font-size: 12px; text-align: center; }
.xz-msg-empty { padding: 60px 20px; border-radius: 12px; background: #fff; text-align: center; }
.xz-msg-empty-icon { display: inline-flex; color: #ddd; }
.xz-msg-empty-icon .xz-icon { width: 56px; height: 56px; }
.xz-entry .xz-msg-empty p, .xz-msg-empty p { margin: 10px 0 4px; color: #555; font-size: 15px; }
.xz-msg-empty small { color: #aaa; font-size: 12px; }
@media (min-width: 992px) {
    .xz-msg-list { padding: 0 20px; }
    .xz-msg-todo a { padding: 14px 18px; }
}

/* 为订单付款（woocommerce/checkout/form-pay.php）：订单卡片 + 商品（同订单详情）+ 支付方式（同结算页） */
.xz-pay-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.xz-pay-status { display: flex; align-items: center; gap: 6px; color: var(--xz-brand); font-size: 17px; }
.xz-pay-status .xz-icon { width: 22px; height: 22px; }
.xz-pay-meta { grid-column: 1; color: #999; font-size: 12px; }
.xz-pay-amount { grid-column: 2; grid-row: 1 / span 2; color: #333; font-size: 13px; text-align: right; }
.xz-pay-amount > span:first-child { font-size: 20px !important; }
.xz-pay #payment { margin-top: 12px; }
@media (min-width: 992px) {
    .xz-pay { max-width: 880px; margin: 0 auto; }
}

/* 加入购物车：WooCommerce 自动加的「查看购物车」链接不显示（toast 里有「去购物车」）；购物车的件数跳一下（参考淘宝 / 京东） */
a.added_to_cart.wc-forward { display: none !important; }
@keyframes xz-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.xz-cart-count.is-bump, .xz-tab-badge.is-bump { animation: xz-bump .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .xz-cart-count.is-bump, .xz-tab-badge.is-bump { animation: none; } }

/* 回头客说说（/feedback）：没有边栏，截图居中 */
@media (min-width: 992px) {
    .xz-feedback-page .xz-layout { max-width: 820px; }
}

/* ==========================================================================
   公告（bso-config notices.php）：页头下面的横幅 + 商品页 / 结算页的提示
   ========================================================================== */
.bso-nb { border-bottom: 1px solid #ffe7ba; background: #fff7e6; color: #ad5f00; font-size: 13px; }
.bso-nb[hidden] { display: none; }
.bso-nb-inner { display: flex; align-items: flex-start; gap: 8px; max-width: calc(var(--xz-container) + var(--xz-gutter) * 2); margin: 0 auto; padding: 8px var(--xz-gutter); }
.bso-nb-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #f08c00; }
.bso-nb-track { flex: 1; min-width: 0; }
.bso-nb-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; line-height: 20px; }
.bso-nb-type { flex: none; padding: 0 5px; border-radius: 3px; background: #f08c00; color: #fff; font-size: 11px; line-height: 17px; }
.bso-nb--maintenance .bso-nb-type { background: #1677ff; }
.bso-nb--promo .bso-nb-type { background: var(--xz-brand); }
.bso-nb--news .bso-nb-type { background: #20a46b; } /* 通知（改版说明等） */
.bso-nb-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bso-nb-more { flex: none; padding: 0; border: 0; background: none; color: #d46b08; font-size: 12px; cursor: pointer; }
.bso-nb-detail { flex-basis: 100%; padding: 4px 0 2px; color: #7a4a00; line-height: 1.7; }
.bso-nb-detail p { margin: 0 0 4px; }
.bso-nb-close { flex: none; width: 22px; height: 20px; padding: 0; border: 0; background: none; color: #c9a46a; font-size: 18px; line-height: 18px; cursor: pointer; }
.bso-notice-inline { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #ad5f00; font-size: 12.5px; line-height: 1.6; }
.bso-notice-inline .bso-nb-icon { width: 16px; height: 16px; margin-top: 2px; }
.bso-notice-inline b { margin-right: 6px; color: #d46b08; }
.bso-notice-inline.bso-nb--maintenance { background: #e6f4ff; color: #0958d9; }
.bso-notice-inline.bso-nb--maintenance b, .bso-notice-inline.bso-nb--maintenance .bso-nb-icon { color: #1677ff; }
.bso-notice-row td { padding: 0 0 6px !important; }
@media (min-width: 992px) {
    .bso-nb-title { white-space: normal; }
}

/* WooCommerce 把焦点移到提示上（读屏用）：提示本身有颜色，不再显示浏览器的焦点框（页面最上面时上边会被切掉） */
.woocommerce-error[tabindex="-1"]:focus, .woocommerce-message[tabindex="-1"]:focus, .woocommerce-info[tabindex="-1"]:focus, .woocommerce-NoticeGroup:focus, .woocommerce-notices-wrapper:focus { outline: none; }
/* 结算页：购物车有问题时（woocommerce/checkout/cart-errors.php） */
.xz-cart-errors { text-align: center; }
.xz-entry .xz-cart-errors-title, .xz-cart-errors-title { margin: 8px 0 12px; color: #222; font-size: 16px; font-weight: 600; }
.xz-cart-errors .woocommerce-error { text-align: left; }
.xz-entry .xz-cart-errors-sub, .xz-cart-errors-sub { margin: 4px 0 16px; color: #999; font-size: 13px; }

.xz-cart-stock { margin: 4px 0 0; color: var(--xz-brand); font-size: 12px; }
.quantity input.qty[readonly] { color: #333; background: transparent; }
/* 点按 / 点击后的按钮不显示浏览器的焦点框（键盘操作时 :focus-visible 照样显示） */
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
/* 品牌格子：有 logo 时（WooCommerce 品牌的缩略图） */
.xz-brand-tile.has-logo img { display: block; width: 44px; height: 44px; margin: 0 auto 4px; object-fit: contain; }

/* =========================================================================
   筛选面板：品牌 / 子品牌、底部「重置 / 确定」（2026-11-22，inc/shop.php xz_shop_filters、theme.js）
   ========================================================================= */
.xz-filters-foot { display: none; }
.xz-fb-all { display: none; }
@media (max-width: 991px) {
    .xz-filters { padding-bottom: 0; display: flex; flex-direction: column; }
    .xz-filters > .widget { flex: none; }
    /* 选中：红框 + 浅红底（淘宝 / 京东的筛选），分类和品牌一样 */
    .xz-filters li.current-cat > a, .xz-filters li.chosen > a { background: var(--xz-brand-soft); color: var(--xz-brand); box-shadow: inset 0 0 0 1px var(--xz-brand); }
    .xz-filter-brands .xz-fb-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .xz-fb-list li a { display: block; overflow: hidden; padding: 7px 4px; border-radius: 6px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .xz-filter-brands:not(.is-all) .xz-fb-list li:nth-child(n+10) { display: none; }
    .xz-fb-all { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; margin-top: 8px; padding: 6px 0; border: 0; background: none; color: var(--xz-muted); font-size: 13px; }
    .xz-fb-all .xz-icon { width: 14px; height: 14px; transition: transform .2s; }
    .xz-fb-all[aria-expanded="true"] .xz-icon { transform: rotate(180deg); }
    .xz-fb-sub { margin-top: 12px; padding: 10px; border-radius: 8px; background: #f7f8fa; }
    .xz-fb-sub-title { margin-bottom: 8px; color: var(--xz-muted); font-size: 13px; }
    .xz-fb-sub li a { background: #fff; }
    .xz-filters-foot {
        position: sticky; bottom: 0; display: flex; gap: 10px; margin: auto -16px 0; padding: 10px 16px calc(10px + var(--xz-safe-bottom));
        border-top: 1px solid var(--xz-line); background: #fff;
    }
    .xz-filters-foot button { flex: 1; height: 40px; border-radius: 20px; font-size: 15px; cursor: pointer; }
    .xz-filters-reset { border: 1px solid #ddd; background: #fff; color: var(--xz-text); }
    .xz-filters-ok { border: 0; background: var(--xz-brand); color: #fff; }
    .xz-filters-ok:disabled { opacity: .7; }
}
@media (min-width: 992px) {
    .xz-filter-brands { flex-wrap: wrap; }
    .xz-fb-sub { display: flex; flex: 0 0 100%; border-top: 1px dashed var(--xz-line); }
    .xz-fb-sub[hidden] { display: none; }
    .xz-fb-sub-title { flex: 0 0 100px; padding: 14px 16px; background: var(--xz-page-pc); color: var(--xz-muted); font-size: 13px; }
    .xz-fb-sub-brand { display: none; } /* 电脑：标题只写「系列」（紧接在品牌那一行下面） */
    .xz-fb-sub ul { padding: 10px 14px; }
}

/* 品牌页的页头（inc/shop.php xz_brand_header）：logo + 品牌名 + 件数 + 简介 + 子品牌标签 */
.xz-brand-head { margin: -8px 0 24px; padding: 16px 16px 14px; border-radius: 8px; background: #fff; } /* 手机的块间隔 8px：上 = 容器 16 - 8；下 24 = 8 + 排序栏的 margin-top -16 */
.xz-brand-head-main { display: flex; align-items: center; gap: 12px; }
.xz-brand-logo { flex: none; width: 56px; height: 56px; border: 1px solid var(--xz-line); border-radius: 8px; background: #fff; object-fit: contain; }
.xz-brand-logo-text { display: flex; align-items: center; justify-content: center; border: 0; background: var(--xz-brand); color: #fff; font-size: 26px; font-weight: 700; }
.xz-brand-head-text h1 { margin: 0; color: var(--xz-title); font-size: 18px; line-height: 1.3; }
.xz-brand-head-text p { margin: 2px 0 0; color: var(--xz-muted); font-size: 13px; }
.xz-brand-head-main { align-items: flex-start; }
.xz-brand-head-text { flex: 1; min-width: 0; padding-top: 4px; }
.xz-brand-cn { margin-left: 8px; color: var(--xz-muted); font-size: 15px; font-weight: 400; }
/* 品牌介绍（长描述）：2 行，点了展开 */
.xz-brand-intro { margin-top: 6px; color: var(--xz-muted); font-size: 13px; line-height: 1.6; }
.xz-brand-intro summary { list-style: none; cursor: pointer; }
.xz-brand-intro summary::-webkit-details-marker { display: none; }
.xz-brand-intro summary span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.xz-brand-intro summary::after { content: "展开"; color: var(--xz-brand); }
.xz-brand-intro[open] summary { display: none; }
.xz-brand-intro p { margin: 0; white-space: pre-line; }
.xz-brand-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.xz-brand-tabs::-webkit-scrollbar { display: none; }
.xz-brand-tabs a { flex: none; padding: 6px 14px; border-radius: 16px; background: #f4f5f6; color: var(--xz-text); font-size: 14px; line-height: 20px; }
.xz-brand-tabs a.is-active { background: var(--xz-brand-soft); color: var(--xz-brand); box-shadow: inset 0 0 0 1px var(--xz-brand); }
@media (min-width: 992px) {
    .xz-brand-head { margin: 0 0 12px; padding: 20px 24px; }
    .xz-brand-logo { width: 72px; height: 72px; }
    .xz-brand-head-text h1 { font-size: 22px; }
    .xz-brand-tabs { flex-wrap: wrap; overflow: visible; margin: 16px 0 0; padding: 0; }
}

/* 页头搜索栏（2026-11-22，参考淘宝）：白底 + 主题色边框，框内右边「搜索」按钮；电脑 = 主题色粗边框和按钮连成一体 */
@media (max-width: 991px) {
    .xz-search-form { align-items: center; height: 36px; padding: 2px; border: 1.5px solid var(--xz-brand); border-radius: 18px; background: #fff; }
    .xz-search-icon { left: 11px; color: rgba(2, 20, 34, .4); }
    .xz-search-input { height: 100%; padding: 0 8px 0 28px; border-radius: 16px; background: transparent; }
    .xz-search-btn { display: block; flex: none; height: 100%; padding: 0 14px; border: 0; border-radius: 15px; background: var(--xz-brand); color: #fff; font-size: 14px; font-weight: 500; }
}
@media (min-width: 992px) {
    .xz-search-form { border: 2px solid var(--xz-brand); border-radius: calc(var(--xz-radius) + 2px); overflow: hidden; }
    .xz-search-input { height: 40px; border: 0; border-radius: 0; }
    .xz-search-btn { height: 40px; border-radius: 0; }
}

/* 子页面的返回栏（我的订单 / 订单详情 / 收货地址等）：手机只显示返回箭头（淘宝 APP），电脑照旧「‹ 我的订单」 */
@media (max-width: 991px) {
    .xz-backbar-back { left: 0; justify-content: center; width: 44px; padding: 0; }
    .xz-backbar-back .xz-icon { width: 22px; height: 22px; }
    .xz-backbar-label { display: none; }
}

/* =========================================================================
   新品（2026-11-22）：角标「新」、新品页 /new（templates/new.php）、首页「新品上架」、分类页「新品」
   ========================================================================= */
/* 角标：左上角并排（新 + 促）。「新」= 白底主题色边框（和实心的「促」区分） */
.xz-flags { position: absolute; left: 6px; top: 6px; z-index: 1; display: flex; gap: 4px; pointer-events: none; }
.xz-flags .xz-onsale { position: static; }
.xz-newflag { padding: 0 5px; border: 1px solid var(--xz-brand); border-radius: 4px; background: #fff; color: var(--xz-brand); font-size: 11px; line-height: 16px; }
.xz-mini-img { position: relative; }

/* 新品页 */
.xz-new-head { margin: -8px 0 8px; padding: 16px; border-radius: 8px; background: #fff; }
.xz-new-head h1 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--xz-title); font-size: 18px; }
.xz-new-head h1 .xz-icon { width: 22px; height: 22px; color: var(--xz-brand); }
.xz-new-head p { margin: 4px 0 0; color: var(--xz-muted); font-size: 13px; }
.xz-new-day { margin-bottom: 8px; }
.xz-new-date { position: sticky; top: 0; z-index: 5; display: flex; align-items: baseline; gap: 4px; margin: 0 calc(var(--xz-gutter) * -1) 8px; padding: 10px var(--xz-gutter); background: var(--xz-page); color: var(--xz-title); font-size: 15px; font-weight: 400; }
.xz-new-date b { font-weight: 600; }
.xz-new-date span { margin-left: 6px; color: var(--xz-muted); font-size: 13px; }
.xz-new-end { margin: 16px 0 8px; color: var(--xz-light); font-size: 13px; text-align: center; }
.xz-new-end a { color: var(--xz-brand); }
@media (min-width: 992px) {
    .xz-new-head { margin: 0 0 12px; padding: 20px 24px; }
    .xz-new-head h1 { font-size: 22px; }
    .xz-new-date { position: static; margin: 0 0 12px; padding: 4px 0 0; background: none; font-size: 17px; }
}

/* 分类页左栏的「新品」：主题色字 */
.xz-cats-tab-new { color: var(--xz-brand); font-weight: 600; }
.xz-new-page .xz-newflag { display: none; } /* 新品页里都是新品，不标 */

/* 电脑：主内容和页脚之间留 24px（个人中心 / 订单详情 / 消息等页面最后一块直接贴着页脚，2026-11-22 P6 演练时发现） */
@media (min-width: 992px) {
    .xz-main { padding-bottom: 24px; }
}
/* 登录表单：Tab 从用户名直接到密码（清空 / 显示密码按钮 tabindex=-1，inc/account.php） */

/* =========================================================================
   商城使用指南 /guide + 帮助中心的「新手入门」（2026-11-22，inc/pages.php xz_guide_*）
   ========================================================================= */
.xz-guide-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.xz-guide-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--xz-text); text-align: center; }
.xz-guide-step-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--xz-brand-soft); color: var(--xz-brand); }
.xz-guide-step-ico svg { width: 22px; height: 22px; }
.xz-guide-step-ico i { position: absolute; right: -3px; top: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--xz-brand); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; }
.xz-guide-step b { font-size: 13px; font-weight: 500; }
.xz-guide-step small { display: none; color: var(--xz-muted); font-size: 11px; line-height: 1.4; }
.xz-guide-entry .xz-help-h { display: flex; align-items: center; justify-content: space-between; }
.xz-guide-entry .xz-help-h a { color: var(--xz-brand); font-size: 13px; font-weight: 400; }

/* 指南页：步骤导航（手机吸顶）+ 每一步一张卡片（编辑器的「组」区块，class xz-guide-sec） */
.xz-guide-nav { padding: 10px 12px; }
.xz-guide-new-link { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--xz-brand); font-size: 13px; font-weight: 600; }
.xz-guide-new-link .xz-icon { width: 16px; height: 16px; }
.xz-guide-body .xz-guide-sec { scroll-margin-top: 12px; margin: 0 0 12px; padding: 16px; border-radius: 12px; background: #fff; }
.xz-guide-body .xz-guide-sec > h2, .xz-guide-body .xz-guide-sec h2.wp-block-heading { margin: 0 0 10px; color: var(--xz-title); font-size: 17px; }
.xz-guide-body .xz-guide-sec h3 { margin: 16px 0 6px; color: var(--xz-title); font-size: 15px; }
.xz-guide-body p, .xz-guide-body li { color: var(--xz-text); font-size: 14px; line-height: 1.75; }
.xz-guide-body ul, .xz-guide-body ol { margin: 6px 0 10px; padding-left: 1.3em; }
.xz-guide-body strong { color: var(--xz-title); }
.xz-guide-body .xz-guide-new { background: linear-gradient(180deg, var(--xz-brand-soft), #fff 60%); }
/* 截图：手机一次一张（居中），电脑并排 */
.xz-guide-body .wp-block-image, .xz-guide-body figure { margin: 10px auto; text-align: center; }
.xz-guide-body .wp-block-image img, .xz-guide-body figure img { display: block; width: auto; max-width: min(100%, 300px); height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.xz-guide-body figcaption { margin-top: 6px; color: var(--xz-muted); font-size: 12px; text-align: center; }
.xz-guide-body .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.xz-guide-body .wp-block-gallery figure { flex: 0 1 300px; margin: 0; }
.xz-guide-body .xz-guide-tip { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fff7e8; color: #8a5300; font-size: 13px; line-height: 1.7; }
@media (min-width: 992px) {
    .xz-guide-step small { display: block; }
    .xz-guide-step-ico { width: 52px; height: 52px; }
    .xz-guide-step-ico svg { width: 26px; height: 26px; }
    .xz-guide-step b { font-size: 14px; }
    .xz-guide-nav { padding: 16px 28px; }
    .xz-guide-body .xz-guide-sec { padding: 24px 28px; scroll-margin-top: 20px; }
    .xz-guide-body .xz-guide-sec > h2, .xz-guide-body .xz-guide-sec h2.wp-block-heading { font-size: 20px; }
}
.xz-guide-body .xz-guide-shots { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0; }
.xz-guide-body .xz-guide-shots .wp-block-image { flex: 0 1 280px; margin: 0; }
.bso-nb-detail a { color: var(--xz-brand); text-decoration: underline; text-underline-offset: 2px; } /* 公告详情里的链接（如「商城使用指南」） */
