@charset "UTF-8";
/* ==========================================================================
   自贸区选品系统 · 前台视觉系统 v2
   --------------------------------------------------------------------------
   1. 单一强调色（品牌蓝）+ 价格红，其余全部中性灰阶
   2. 8pt 栅格：间距/内边距取 4 的倍数，模块间距 24/32/40
   3. 字号收敛为 12/13/14/15/17/20/26/34
   4. 卡片统一 8px 圆角 + 1px 描边 + 极淡阴影，hover 抬升 2px
   5. 无实拍图时用「中性底 + 品牌色线性插画」，禁止多彩占位块
   ========================================================================== */

:root {
    --brand: #1D4ED8;
    --brand-600: #1A44BE;
    --brand-700: #16388F;
    --brand-50: #EEF3FE;
    --brand-100: #DCE7FD;
    --price: #E1251B;
    --price-50: #FDECEA;

    --ink: #0F1B2E;
    --text: #414F63;
    --muted: #5B6B82;
    --line: #E8EBF0;
    --line-2: #F1F4F8;
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --surface-2: #FAFBFD;

    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;

    --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px; --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(15, 27, 46, .04);
    --sh-2: 0 4px 14px rgba(15, 27, 46, .07);
    --sh-3: 0 10px 28px rgba(15, 27, 46, .12);

    --container: 1240px;
    --gutter: 20px;
    --header-h: 72px;

    --z-header: 100;
    --z-bottom: 120;
    --z-toast: 300;
    --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* 底部导航仅移动端显示，其占位内边距必须同样只在移动端生效，
   否则 PC 端页脚下方会多出一段空白 */

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 跳到主要内容：用垂直位移移出视口（方向无关）
   注意：不能用 left:-999px —— LTR 下不影响 scrollWidth，但在阿语等 RTL 页面
   会把横向滚动区撑宽 999px（整页出现横向空白） */
.skip-link {
    position: absolute; top: 0; inset-inline-start: 0; z-index: 999;
    transform: translateY(-120%);
    background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 6px 0;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container {
    width: 100%; max-width: var(--container);
    margin: 0 auto; padding: 0 var(--gutter);
}
main { display: block; }

.section { margin: var(--sp-8) 0; }
.section:first-child { margin-top: var(--sp-6); }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--sp-4); margin-bottom: var(--sp-5);
}
.section-head__main { min-width: 0; }
.section-head__title { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.section-head__desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.section-head__more {
    font-size: 13px; color: var(--muted); display: inline-flex;
    align-items: center; gap: 4px; white-space: nowrap;
}
.section-head__more:hover { color: var(--brand); }

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.card-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.card-body { padding: 16px; }
.card-foot { padding: 14px 16px; border-top: 1px solid var(--line-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.mt-4 { margin-top: var(--sp-4); }

/* ---------------- 按钮 / 表单 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); color: var(--text);
    font-size: 14px; font-weight: 500; line-height: 1;
    transition: background .15s var(--ease), border-color .15s var(--ease),
                color .15s var(--ease), transform .15s var(--ease);
    white-space: nowrap;
}
.btn:hover { border-color: #D7DEE9; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-danger { background: #fff; border-color: #F3C9C9; color: var(--price); }
.btn-danger:hover { background: var(--price-50); border-color: #E9AFAF; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-added { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.link-btn { color: var(--brand); font-size: 13px; }
.link-btn:hover { color: var(--brand-600); text-decoration: underline; }

.input, .textarea, select.input {
    width: 100%; height: 36px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #A7B0C0; }
.input:focus, .textarea:focus, select.input:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .14); outline: none;
}
.field { margin-bottom: var(--sp-4); }
.field-label { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.field-error { color: var(--price); font-size: 12px; margin-top: 4px; min-height: 16px; }
.input-icon { position: relative; }
.input-icon svg {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.input-icon .input { padding-left: 34px; }

/* ---------------- 徽标 / 价格 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 3px;
    height: 20px; padding: 0 7px; border-radius: 4px;
    font-size: 12px; font-weight: 600; line-height: 1;
    background: var(--line-2); color: var(--text);
}
.badge-danger { background: var(--price); color: #fff; }
.badge-brand { background: var(--brand-50); color: var(--brand); }
.badge-warning { background: #FEF3E2; color: #B45309; }
.badge-success { background: #EEF3FE; color: #1D4ED8; }
.badge-info { background: #EAF2FE; color: #1D4ED8; }
.badge-ghost { background: rgba(255, 255, 255, .16); color: #fff; }

.price { display: inline-flex; align-items: baseline; color: var(--price); font-weight: 700; }
.price-unit { font-size: 13px; font-style: normal; margin-right: 1px; }
.price-cur { font-size: 20px; letter-spacing: -.3px; }
.price-suffix { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.price-lg .price-cur { font-size: 30px; }
.price-lg .price-unit { font-size: 16px; }

/* ---------------- 空状态 / 骨架 / 提示 ---------------- */
.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-icon {
    width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center;
    border-radius: 50%; background: var(--line-2); color: #B7C0D0;
}
.empty-icon svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }
.empty-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; }

.skeleton {
    background: linear-gradient(90deg, #EFF2F7 25%, #F7F9FC 37%, #EFF2F7 63%);
    background-size: 400% 100%; animation: yx-shimmer 1.4s ease infinite; border-radius: var(--r-sm);
}
@keyframes yx-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.toast {
    position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 12px);
    max-width: 76vw; padding: 10px 16px; border-radius: var(--r-pill);
    background: rgba(15, 27, 46, .92); color: #fff; font-size: 13px;
    box-shadow: var(--sh-3); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: var(--z-toast);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.pagination, .pager {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    flex-wrap: wrap; margin: var(--sp-6) 0 0;
}
.pager-btn {
    min-width: 34px; height: 34px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); color: var(--text); font-size: 13px;
}
.pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager-info { font-size: 12px; color: var(--muted); margin-left: 6px; }

.breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 13px; color: var(--muted); padding: 14px 0;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: #C6CEDC; }

/* ---------------- 页头 ---------------- */
.utility-bar {
    background: var(--ink); color: #C3CEDF; font-size: 12px; height: 34px;
    display: flex; align-items: center;
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-bar__left { display: flex; align-items: center; gap: 16px; }
.utility-bar__item { display: inline-flex; align-items: center; gap: 5px; }
.utility-bar__item svg { width: 13px; height: 13px; opacity: .8; }
.utility-bar a:hover { color: #fff; }
.utility-bar__right { display: flex; align-items: center; gap: 14px; }
.utility-bar__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .18); }

.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: var(--sp-6); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 9px;
    background: linear-gradient(140deg, var(--brand) 0%, #3B82F6 100%);
    color: #fff; font-size: 19px; font-weight: 700;
    display: grid; place-items: center; letter-spacing: -1px;
}
.brand-name { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.header-search { flex: 1 1 auto; max-width: 620px; }
.header-search form { display: flex; }
.header-search .input { height: 42px; border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.header-search .btn { height: 42px; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 0 26px; font-size: 15px; }
.header-search__hot {
    display: flex; align-items: center; gap: 10px; margin-top: 6px;
    font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap;
}
.header-search__hot a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.header-action {
    display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 60px; padding: 6px 8px; border-radius: var(--r-sm);
    font-size: 12px; color: var(--text); position: relative;
}
.header-action svg { width: 19px; height: 19px; color: var(--ink); }
.header-action:hover { background: var(--brand-50); color: var(--brand); }
.header-action:hover svg { color: var(--brand); }
.header-action .badge {
    position: absolute; top: 2px; right: 8px; height: 17px; min-width: 17px;
    padding: 0 5px; border-radius: var(--r-pill); font-size: 11px;
    background: var(--price); color: #fff; justify-content: center;
}

.catnav { border-top: 1px solid var(--line-2); background: var(--surface); }
.catnav__inner {
    display: flex; align-items: center; gap: 8px;
    height: 46px; overflow-x: auto; scrollbar-width: none;
}
.catnav__inner::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    height: 30px; padding: 0 14px; border-radius: var(--r-pill);
    border: 1px solid var(--line); background: var(--surface);
    font-size: 13px; color: var(--text); white-space: nowrap;
    transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------------- 首页 Hero / 信任条 / 分类 / 步骤 ---------------- */
.hero {
    margin-top: var(--sp-6);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: var(--sp-5);
}
.hero__main {
    position: relative; overflow: hidden; border-radius: var(--r-lg);
    background: linear-gradient(120deg, #1D4ED8 0%, #2456D6 46%, #3B82F6 100%);
    color: #fff; padding: 40px; min-height: 268px;
    display: flex; flex-direction: column; justify-content: center;
}
.hero__main::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.hero__main::before {
    content: ""; position: absolute; right: 40px; bottom: -110px;
    width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    height: 26px; padding: 0 12px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .16); font-size: 12px; letter-spacing: .5px; margin-bottom: 14px;
}
.hero__title { font-size: 34px; font-weight: 700; letter-spacing: .5px; line-height: 1.25; }
.hero__sub { font-size: 14px; color: #CFDDFA; margin-top: 10px; max-width: 30em; line-height: 1.7; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.hero__point {
    height: 28px; padding: 0 12px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
}
.hero__point svg { width: 14px; height: 14px; }

.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--sp-5); }
.hero-card {
    position: relative; overflow: hidden; border-radius: var(--r-lg);
    border: 1px solid var(--line); background: var(--surface); padding: 20px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.hero-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.hero-card__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.hero-card__desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.hero-card__art { width: 84px; height: 84px; color: var(--brand); opacity: .9; flex: none; }
.hero-card__art .art { width: 100%; height: 100%; }
.hero-card--tint { background: linear-gradient(180deg, #F3F9F6 0%, #FFFFFF 70%); }

.trust-strip {
    margin-top: var(--sp-5); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid var(--line-2); }
.trust-item:last-child { border-right: 0; }
.trust-item__icon {
    width: 40px; height: 40px; flex: none; border-radius: 10px;
    background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
}
.trust-item__icon svg { width: 20px; height: 20px; }
.trust-item__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.trust-item__desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-3); }
.cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 8px 16px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); text-align: center; transition: all .16s var(--ease);
}
.cat-tile:hover { border-color: var(--brand-100); background: var(--brand-50); transform: translateY(-2px); }
.cat-tile__art { width: 40px; height: 40px; color: var(--brand); opacity: .85; }
.cat-tile__art .art { width: 100%; height: 100%; }
.cat-tile__name { font-size: 13px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.cat-tile__count { font-size: 12px; color: var(--muted); }

.steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: var(--sp-6);
}
.step { display: flex; gap: 12px; align-items: flex-start; }
.step__no {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: var(--brand-50); color: var(--brand);
    display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.step__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.step__desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ---------------- 商品卡片 ---------------- */
.pro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.pro-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pro-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.pro-item:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: #DDE3EC; }

.pro-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #F4F6F9; overflow: hidden; }
.pro-media__art {
    position: absolute; inset: 0; margin: auto; width: 58%; height: 58%;
    color: var(--brand); opacity: .55;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.pro-media__art .art { width: 100%; height: 100%; }
.pro-item:hover .pro-media__art { transform: scale(1.06); opacity: .7; }
.pro-media img { width: 100%; height: 100%; object-fit: cover; }
.pro-media__tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }

.pro-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pro-title {
    font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 40px;
}
.pro-item:hover .pro-title { color: var(--brand); }
.pro-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pro-meta-item { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pro-meta-item svg { width: 13px; height: 13px; flex: none; color: #A8B1C2; }
.pro-meta-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pro-tag {
    height: 20px; padding: 0 6px; border-radius: 3px; font-size: 11px;
    background: var(--line-2); color: var(--text); display: inline-flex; align-items: center;
}
.pro-tag--brand { background: var(--brand-50); color: var(--brand); font-weight: 600; }

.pro-foot {
    margin-top: auto; padding-top: 10px;
    display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px;
}
.btn-cart { height: 34px; width: 34px; padding: 0; border-radius: var(--r-sm); flex: none; }
.btn-cart span { display: none; }

.results-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); margin-bottom: var(--sp-4); flex-wrap: wrap;
}
.results-count { font-size: 13px; color: var(--text); }
.results-count b { color: var(--price); font-size: 15px; margin: 0 2px; }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
    border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand); font-size: 12px;
}
.load-more { display: flex; justify-content: center; margin-top: var(--sp-6); }
.yx-loading { text-align: center; font-size: 13px; color: var(--muted); padding: 16px 0; }

.factory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.factory-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 18px; display: flex; flex-direction: column; gap: 12px;
    transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.factory-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.factory-card__head { display: flex; align-items: center; gap: 12px; }
.factory-card__logo {
    width: 46px; height: 46px; border-radius: 10px; flex: none;
    background: var(--brand-50); color: var(--brand);
    display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.factory-card__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.factory-card__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.factory-card__desc {
    font-size: 13px; color: var(--text); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.factory-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted);
}

/* ---------------- 页脚 / 底部导航 ---------------- */
.site-footer { margin-top: var(--sp-8); background: #0F1B2E; color: #9FB3CC; }
.footer-links {
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--sp-7); padding: var(--sp-8) 0 var(--sp-7);
}
.footer-brand__name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.footer-brand__desc { font-size: 13px; line-height: 1.8; margin-top: 10px; color: #8C9BB0; max-width: 26em; }
.footer-contact { margin-top: 16px; font-size: 13px; }
.footer-contact strong { display: block; font-size: 20px; color: #fff; font-weight: 700; letter-spacing: .5px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; line-height: 2; color: #9FB3CC; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0;
    font-size: 12px; color: #7C8CA3;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bottom); display: none;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__inner { display: grid; grid-template-columns: repeat(5, 1fr); height: 56px; }
.bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11px; color: var(--muted); position: relative;
}
.bottom-nav__item svg { width: 21px; height: 21px; }
.bottom-nav__item.is-active { color: var(--brand); font-weight: 600; }
.bottom-nav__item .badge {
    position: absolute; top: 5px; right: 50%; margin-right: -22px;
    height: 16px; min-width: 16px; padding: 0 4px; font-size: 11px;
    background: var(--price); color: #fff; border-radius: var(--r-pill);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
    .pro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .factory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { grid-template-columns: 1fr; }
    .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line-2); }
    .footer-links { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}

@media (max-width: 820px) {
    :root { --gutter: 12px; --header-h: 60px; }
    body.has-bottom-nav { padding-bottom: 64px; }

    .utility-bar { display: none; }
    .header-main { gap: 10px; }
    .brand-sub { display: none; }
    .brand-name { font-size: 15px; }
    .brand-mark { width: 32px; height: 32px; font-size: 16px; }
    .header-search { max-width: none; }
    .header-search .input { height: 38px; font-size: 13px; }
    .header-search .btn { height: 38px; padding: 0 14px; font-size: 13px; }
    .header-search__hot { display: none; }
    .header-action { min-width: 44px; padding: 4px; font-size: 11px; }
    .header-action svg { width: 18px; height: 18px; }
    .header-action--hide-mobile { display: none; }
    .catnav__inner { height: 42px; gap: 6px; }
    .chip { height: 28px; padding: 0 12px; font-size: 12px; }

    .hero { margin-top: var(--sp-4); gap: var(--sp-3); }
    .hero__main { padding: 24px 20px; min-height: 0; border-radius: var(--r-md); }
    .hero__title { font-size: 22px; }
    .hero__sub { font-size: 13px; margin-top: 8px; }
    .hero__points { margin-top: 14px; gap: 6px; }
    .hero__point { height: 26px; font-size: 12px; padding: 0 10px; }
    .hero__side { grid-template-columns: 1fr; gap: var(--sp-3); }
    .hero-card { padding: 16px; border-radius: var(--r-md); }
    .hero-card__art { width: 60px; height: 60px; }

    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-md); }
    .trust-item { padding: 14px 12px; gap: 10px; }
    .trust-item__icon { width: 34px; height: 34px; border-radius: 8px; }
    .trust-item__icon svg { width: 17px; height: 17px; }
    .trust-item__title { font-size: 13px; }
    .trust-item__desc { display: none; }

    .section { margin: var(--sp-7) 0; }
    .section-head { margin-bottom: var(--sp-4); }
    .section-head__title { font-size: 17px; }

    .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
    .cat-tile { padding: 14px 6px 12px; }
    .cat-tile__art { width: 32px; height: 32px; }
    .cat-tile__name { font-size: 12px; }

    .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pro-body { padding: 10px 10px 12px; gap: 6px; }
    .pro-title { font-size: 13px; min-height: 37px; }
    .price-cur { font-size: 17px; }
    .btn-cart { height: 30px; width: 30px; }

    .factory-grid { grid-template-columns: 1fr; gap: 10px; }
    .steps { grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-5) var(--sp-4); }

    .footer-links { grid-template-columns: 1fr; gap: var(--sp-5); padding: var(--sp-6) 0 var(--sp-5); }
    .footer-col { display: none; }
    .footer-col--keep { display: block; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

    .bottom-nav { display: block; }
    .results-bar { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   10. 页面级组件（详情 / 购物车 / 结算 / 登录 / 会员 / 工厂 / 占位图）
   ========================================================================== */

/* 占位图（无实拍图时的统一中性底 + 品牌插画） */
.ph {
    display: grid; place-items: center; background: #F4F6F9; color: var(--brand);
    width: 100%; height: 100%; min-height: 80px;
}
.ph .art { width: 52%; height: 52%; opacity: .5; }
.ph-lg { min-height: 180px; }
.ph-sm { min-height: 44px; width: 44px; border-radius: var(--r-sm); }
.ph-t1, .ph-t2, .ph-t3, .ph-t4, .ph-t5, .ph-t6, .ph-t7, .ph-t8 { background: #F4F6F9; }

/* 通用表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; font-size: 13px; }
.table th {
    text-align: left; font-weight: 600; color: var(--text); background: var(--surface-2);
    padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-zebra tbody tr:nth-child(even) { background: #FBFCFC; }

/* 数量步进器 */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.stepper-btn {
    width: 34px; height: 34px; border: 0; background: #fff; color: var(--text);
    font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.stepper-btn:hover { background: var(--brand-50); color: var(--brand); }
.stepper-input {
    width: 54px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    text-align: center; font-size: 14px; -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm .stepper-btn { width: 28px; height: 28px; font-size: 14px; }
.stepper-sm .stepper-input { width: 44px; height: 28px; font-size: 13px; }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-hint { font-size: 12px; color: var(--muted); }
.qty-minus, .qty-plus, .qty-input { /* 兼容旧类名 */ }
.qty-input { width: 54px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); text-align: center; }

/* 商品详情 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: var(--sp-7); margin-top: var(--sp-5); }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; position: relative; }
.gallery-stage { position: relative; aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden; background: #F4F6F9; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage .art { width: 54%; height: 54%; margin: auto; position: absolute; inset: 0; color: var(--brand); opacity: .5; }
.gallery-badge { position: absolute; left: 12px; top: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs .thumb, .thumb {
    width: 60px; height: 60px; border-radius: var(--r-sm); border: 1px solid var(--line);
    overflow: hidden; background: #F4F6F9; cursor: pointer;
}
.thumb.is-current, .thumb.current, .is-current { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(29,78,216,.16); }

.detail-info { min-width: 0; }
.detail-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.detail-title { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.detail-subline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.detail-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-top: var(--sp-4); }
.block-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.block-hint { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.spec-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-item {
    height: 36px; padding: 0 16px; display: inline-flex; align-items: center;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
    font-size: 13px; color: var(--text); cursor: pointer; transition: all .15s var(--ease);
}
.spec-item:hover { border-color: var(--brand); color: var(--brand); }
.spec-item.is-current { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin-top: var(--sp-5); }
.detail-bar { display: none; }
.attr-table { width: 100%; font-size: 13px; }
.attr-table th, .attr-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.attr-table th { width: 130px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.info-list { font-size: 13px; }
.info-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.info-row:last-child { border-bottom: 0; }
.info-k { width: 110px; flex: none; color: var(--muted); }
.info-v { color: var(--ink); min-width: 0; }

/* 购物车 */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-5); align-items: start; }
.cart-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted);
}
.cart-toolbar-tip { display: flex; align-items: center; gap: 8px; }
.cart-row {
    display: grid; grid-template-columns: 20px 72px minmax(0, 1fr) 110px 120px 90px 60px;
    align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.cart-row:last-child { border-bottom: 0; }
.cart-check { width: 16px; height: 16px; accent-color: var(--brand); }
.cart-media { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; background: #F4F6F9; }
.cart-media .art { width: 60%; height: 60%; margin: auto; color: var(--brand); opacity: .5; }
.cart-info { min-width: 0; }
.cart-title { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.cart-spec { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-unit, .cart-sub { font-size: 13px; color: var(--text); }
.cart-sub { color: var(--price); font-weight: 600; }
.cart-qty { display: flex; justify-content: center; }
.cart-del { font-size: 13px; color: var(--muted); background: none; border: 0; }
.cart-del:hover { color: var(--price); }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text); }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.summary-num { color: var(--price); font-weight: 700; font-size: 18px; }
.summary-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.checkout-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--surface-2);
    border-radius: 0 0 var(--r-md) var(--r-md);
}
.checkout-label { font-size: 13px; color: var(--muted); }
.checkout-total { font-size: 13px; color: var(--text); }
.checkout-total b { color: var(--price); font-size: 20px; margin-left: 4px; }

/* 结算确认 */
.confirm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-5); align-items: start; }
.confirm-side { position: sticky; top: calc(var(--header-h) + 16px); }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.order-line:last-child { border-bottom: 0; }
.order-line-qty { color: var(--muted); }

/* 登录 / 会员 */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: linear-gradient(160deg, #F2F5FA 0%, #F5F7FA 60%); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 32px 28px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.auth-sub { font-size: 13px; color: var(--muted); }
.auth-foot { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.8; }

.member-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-5); align-items: start; margin-top: var(--sp-5); }
.member-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.member-profile { padding: 20px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.member-avatar {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
    background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
    font-size: 22px; font-weight: 700;
}
.member-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.member-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.member-nav { padding: 8px; }
.member-nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); }
.member-nav a:hover { background: var(--brand-50); color: var(--brand); }
.member-nav a.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.member-content { min-width: 0; }
.member-content .card { margin-bottom: var(--sp-4); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 订单卡片（会员中心） */
.order-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); font-size: 13px; }
.order-no { font-weight: 600; color: var(--ink); }
.order-time { color: var(--muted); font-size: 12px; }
.order-rows { padding: 4px 16px; }
.order-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.order-row:last-child { border-bottom: 0; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.amount { color: var(--price); font-weight: 700; }

/* 工厂风采画廊 */
.masonry { columns: 3; column-gap: var(--sp-4); }
.masonry-item { break-inside: avoid; margin-bottom: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.masonry-pic { aspect-ratio: 4/3; background: #F4F6F9; display: grid; place-items: center; color: var(--brand); }
.masonry-pic .art { width: 38%; height: 38%; opacity: .5; }
.masonry-cap { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.masonry-sub { padding: 0 14px 14px; font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
    .content-layout, .detail-layout { grid-template-columns: 1fr; }
    .cart-layout, .confirm-layout { grid-template-columns: 1fr; }
    .member-layout { grid-template-columns: 1fr; }
    .masonry { columns: 2; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .detail-layout { gap: var(--sp-4); }
    .detail-title { font-size: 18px; }
    .detail-head, .detail-block { padding: 16px; }
    .cart-row { grid-template-columns: 20px 60px minmax(0, 1fr) 90px; grid-row-gap: 8px; padding: 12px; }
    .cart-row .cart-unit, .cart-row .cart-qty, .cart-row .cart-sub, .cart-row .cart-del { grid-column: 3 / 5; }
    .cart-media { width: 60px; height: 60px; }
    .cart-summary, .confirm-side, .member-side { position: static; }
    .detail-bar {
        display: flex; align-items: center; justify-content: flex-end; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 56px; z-index: var(--z-bottom);
        padding: 10px 12px; background: rgba(255, 255, 255, .98);
        border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(15, 27, 46, .06);
    }
    .detail-bar .btn { height: 42px; padding: 0 22px; }
    .detail-actions { display: none; }
    .masonry { columns: 1; }
}

/* ==========================================================================
   11. 补充：筛选条 / 图标尺寸 / 平板栅格 / 移动端触控尺寸
   ========================================================================== */
svg { flex: none; }
.icon { width: 16px; height: 16px; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }

/* 筛选条：类目 + 价格区间 + 关键词，全部走 GET 提交 */
.filter-bar {
    display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
    padding: 12px 16px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-md);
    margin-bottom: var(--sp-4);
}
.filter-bar__group { display: flex; align-items: center; gap: 8px; }
.filter-bar__label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter-bar select.input, .filter-bar .input { height: 34px; }
.filter-bar select.input { width: auto; min-width: 150px; padding-right: 28px; }
.filter-bar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

@media (max-width: 1100px) and (min-width: 561px) {
    .pro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .chip { height: 32px; }
    .header-search .input, .header-search .btn { height: 40px; }
    .bottom-nav__item { min-height: 44px; }
    .cat-tile { min-width: 0; }
    .cat-tile__name { overflow-wrap: anywhere; }
    .hero__sub { overflow-wrap: anywhere; }
    .filter-bar { padding: 10px 12px; gap: 10px; }
    .filter-bar__actions { margin-left: 0; width: 100%; }
    .filter-bar__actions .btn { flex: 1; }
    .filter-bar select.input { min-width: 130px; }
}
@media (max-width: 480px) {
    .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 12. 密度与细节修正（v3） */
.pro-media { aspect-ratio: 4 / 3; }
.pro-media__art { width: 62%; height: 62%; }
.pro-item { border-color: #EAEEF4; }
.bottom-nav { background: #fff; }
.bottom-nav__item { color: #64748B; }
.pager-btn { min-width: 36px; height: 36px; font-size: 13px; }
.pager-info { font-size: 13px; }
@media (max-width: 820px) {
    .hero__points { display: none; }
    .hero__side { grid-template-columns: 1fr 1fr; }
    .hero-card { padding: 14px; gap: 8px; }
    .hero-card__title { font-size: 14px; }
    .hero-card__desc { font-size: 12px; margin-top: 4px; }
    .hero-card__art { width: 46px; height: 46px; }
    .pro-media { aspect-ratio: 1 / 1; }
    .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
    .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   12. 剩余页面组件（详情 / 购物车 / 结算 / 登录 / 会员 / 工厂）
   ========================================================================== */

/* 内联图标兜底尺寸：低优先级，任何组件规则都会覆盖它 */
svg { width: 16px; height: 16px; }

.caption { font-size: 12px; color: var(--muted); }

/* ---------------- 面包屑 ---------------- */
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: #C6CEDC; margin-right: 6px; }
.breadcrumb .current {
    color: var(--text); max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 商品详情 ---------------- */
.gallery-stage { border-radius: var(--r-md); }
.gallery .ph { position: absolute; inset: 0; min-height: 0; }
.detail-subline { gap: var(--sp-6); margin-top: var(--sp-3); font-size: 13px; color: var(--muted); }
.detail-subline .sub-item { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.detail-subline .sub-item svg { width: 14px; height: 14px; color: #A8B1C2; }
.detail-subline .sub-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16em; }


.qty-quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.qty-quick .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.qty-quick__label { font-size: 12px; color: var(--muted); }

.detail-actions { flex-wrap: wrap; align-items: center; }
.detail-actions .btn-primary { min-width: 160px; }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-icon.is-on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }

.attr-table th, .attr-table td { height: 40px; padding: 0 14px; }
.attr-table th { font-size: 13px; font-weight: 500; color: var(--muted); }
.attr-table td { font-size: 13px; color: var(--ink); }
.attr-table tbody tr:nth-child(even) { background: #FBFCFC; }


.detail-bar .btn-primary { min-width: 132px; }

/* ---------------- 购物车 ---------------- */
.check { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--text); cursor: pointer; }
.cart-toolbar .check { min-height: 32px; }
.cart-media { display: grid; place-items: center; }
.cart-media .ph { width: 100%; height: 100%; min-height: 0; }
.cart-del { display: grid; place-items: center; height: 32px; padding: 0; }
.cart-del svg { width: 16px; height: 16px; }
.cart-foot-actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.cart-toolbar-tip b, .checkout-label b { color: var(--price); font-weight: 700; }
.checkout-total { font-size: 13px; color: var(--text); }
.checkout-total b { color: var(--price); font-size: 20px; margin-left: 4px; }
.cart-summary .checkout-bar { flex-wrap: wrap; }
.cart-summary .checkout-bar .btn { flex: none; }
.cart-summary .card { margin-bottom: var(--sp-3); }
.summary-note { padding: 0 var(--sp-1); }

/* ---------------- 结算确认 ---------------- */
.confirm-side .card { margin-bottom: var(--sp-4); }
.order-line .cart-media { width: 56px; height: 56px; }
.order-line .cart-info { flex: 1 1 auto; min-width: 0; }
.order-line-right { text-align: right; flex: none; }
.order-line-qty { font-size: 12px; color: var(--muted); }
.order-line-total { font-size: 13px; font-weight: 600; color: var(--price); margin-top: 4px; }
.form-actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------------- 登录 ---------------- */
.remember {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-size: 13px; color: var(--text); cursor: pointer; margin-bottom: var(--sp-4);
}
.remember input { width: 16px; height: 16px; accent-color: var(--brand); }
.auth-tip {
    margin-top: var(--sp-4); padding: 10px 12px; border-radius: var(--r-sm);
    background: var(--brand-50); border: 1px solid var(--brand-100);
    font-size: 12px; color: var(--brand); line-height: 1.8;
}
.auth-tip b { font-weight: 700; }
.auth-foot a { color: var(--brand); }
.auth-foot a:hover { text-decoration: underline; }

/* ---------------- 会员中心 ---------------- */
.member-nav a { display: flex; align-items: center; gap: var(--sp-2); }
.member-nav a svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.member-nav a:hover svg, .member-nav a.is-active svg { color: inherit; }
.member-nav a.is-danger { color: var(--price); }
.member-nav a.is-danger:hover { background: var(--price-50); color: var(--price); }
.member-side__foot { padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.7; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { display: block; transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease); }
.stat-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: #DDE3EC; }
.stat-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stat-head svg { width: 14px; height: 14px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.stat-value.is-warning { color: #B45309; }
.stat-value.is-success { color: #1D4ED8; }
.stat-value.is-muted { color: var(--muted); }
.member-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.member-greet { font-size: 20px; font-weight: 700; color: var(--ink); }
.order-card-head .order-head-main { min-width: 0; }
.order-card-foot .amount { font-size: 15px; }
.order-foot-actions { display: flex; align-items: center; gap: var(--sp-3); }
.field-row { display: flex; gap: var(--sp-4); padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.field-row:last-child { border-bottom: 0; }
.field-row .field-k { width: 110px; flex: none; color: var(--muted); }
.field-row .field-v { color: var(--ink); min-width: 0; }
.order-thumb { width: 44px; height: 44px; border-radius: var(--r-sm); overflow: hidden; background: #F4F6F9; }
.order-thumb .ph { min-height: 0; height: 100%; }
.table-total {
    display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3);
    padding: 14px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted);
}

/* ---------------- 工厂风采 ---------------- */
.intro-strip {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: var(--sp-5); margin-bottom: var(--sp-6);
}
.intro-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.intro-item__icon {
    width: 40px; height: 40px; flex: none; border-radius: var(--r-md);
    background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
}
.intro-item__icon svg { width: 20px; height: 20px; }
.intro-item__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.intro-item__desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.masonry-pic img { width: 100%; height: 100%; object-fit: cover; }
.masonry-pic .ph { min-height: 0; height: 100%; }
.masonry-item { transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.masonry-item:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }

/* ---------------- 响应式补充 ---------------- */
@media (max-width: 1100px) {
    .intro-strip { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .detail-page { padding-bottom: 76px; }
    .detail-subline { gap: var(--sp-3); margin-top: var(--sp-2); }
    .detail-subline .sub-item span { max-width: 11em; }
    .detail-actions .btn-primary { flex: 1; }
    .qty-quick .btn { flex: 1; }
    .cart-toolbar { flex-wrap: wrap; }
    .member-hero { align-items: flex-start; }
    .auth-card { padding: 24px 18px; }
    .order-card-foot { flex-wrap: wrap; }
    .intro-strip { padding: var(--sp-4); }
}

/* 13. 移动端触控尺寸（主要操作 ≥40px） */
@media (max-width: 820px) {
    .btn { height: 40px; }
    .btn-sm { height: 34px; }
    .btn-lg { height: 46px; }
    .input { height: 40px; }
    .chip { height: 34px; padding: 0 14px; }
    .catnav__inner { height: 48px; }
    .header-action { min-width: 52px; min-height: 44px; justify-content: center; }
    .filter-bar select.input, .filter-bar .input { height: 40px; }
    .pager-btn { min-width: 40px; height: 40px; }
}

/* 14. 卡片主操作按钮：桌面显示文字，窄屏只留图标 */
.btn-cart { width: auto; height: 34px; padding: 0 12px; font-size: 13px; gap: 5px; }
.btn-cart span { display: inline; }
.btn-cart.done, .btn-cart.is-added { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
@media (max-width: 520px) {
    .btn-cart { width: 34px; padding: 0; }
    .btn-cart span { display: none; }
}

/* 15. 安全兜底：任何未显式设定尺寸的内联图标都回到 16px，
   避免 SVG 默认按容器撑满导致"巨型图标"（:where() 零特异性，不影响组件规则） */
:where(svg:not([class])) { width: 16px; height: 16px; }
:where(.detail-subline svg, .pro-meta-item svg, .breadcrumb svg) { width: 14px; height: 14px; }

/* 16. 详情页细化：主图占比 / 移动端横向滚动 / 底部操作条 */
.gallery-stage {
    background: #F2F3F5;
    border: 1px solid var(--line);
}
.gallery-stage .ph { background: #F2F3F5; }
.gallery-stage .art {
    width: 56%; height: 56%; opacity: 1; color: #AEB6B9;
}
.btn-icon { width: 40px; height: 40px; padding: 0; flex: none; }
.detail-actions .btn-lg { min-width: 148px; }
.detail-bar .btn { flex: 0 0 auto; min-width: 120px; }

@media (max-width: 820px) {
    /* 规格胶囊横向滚动 + 右侧渐隐提示，避免"被硬切"的观感 */
    .spec-pills {
        flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    }
    .spec-pills::-webkit-scrollbar { display: none; }
    .spec-item { flex: none; }
    .detail-bar { gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
    .detail-bar .btn { min-width: 104px; }
}

/* ---------------- 13. 细节修正（详情快捷选择 / 会员订单表 / 工厂画廊） ---------------- */
.stat-grid { margin-bottom: var(--sp-4); }
.qty-quick .btn.is-current { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 600; }
.order-item { justify-content: flex-start; gap: var(--sp-3); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.table .cart-title { font-size: 13px; font-weight: 500; min-height: 0; }
.member-content > .breadcrumb, .container > .breadcrumb { padding-top: 0; }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.utility-bar__right { gap: 18px; }
.utility-bar__left, .utility-bar__right { white-space: nowrap; }

/* 17. 密度与对比度修正（v4，按视觉评审意见） */
.utility-bar__item svg { width: 13px; height: 13px; }
.footer-brand__desc { color: #A9B8CC; }
.footer-col a { color: #A9B8CC; }

/* 空状态：容器够高、内容居中，避免"局促 + 大片死白" */
.card .empty-state, .cart-layout .empty-state, .member-content .empty-state {
    min-height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.empty-icon { width: 64px; height: 64px; color: #BAC3D3; }
.empty-icon svg { width: 30px; height: 30px; }

/* 工厂风采画廊：图区不再是大片空白 */
.masonry-pic { height: 168px; aspect-ratio: auto; background: #F2F5F8; }
.masonry-pic .art { width: 76px; height: 76px; opacity: .42; color: var(--brand); }
.masonry-cap { padding: 12px 14px 4px; }
.masonry-sub { padding: 0 14px 14px; }
.masonry-item { border-color: #EAEEF4; }

/* 登录页：卡片略放大 + 品牌底纹，减少空旷感 */
.auth-card { max-width: 420px; padding: 36px 32px; }
.auth-wrap { background:
    radial-gradient(900px 420px at 50% -180px, #E9F0FE 0%, rgba(246, 248, 247, 0) 70%),
    linear-gradient(160deg, #F4F7FB 0%, #F5F7FA 60%); }
.auth-foot { color: #6B7A7F; }

/* 面包屑条：与内容区统一为白底 */
.breadcrumb { border-bottom: 1px solid var(--line-2); margin-bottom: var(--sp-4); }

/* 移动端触控尺寸：详情页与购物车行内控件尽量 ≥44px */
@media (max-width: 820px) {
    .spec-item { height: 44px; padding: 0 14px; }
    .qty-quick .btn { height: 44px; }
    .detail-bar .btn { height: 44px; }
    .stepper-btn { width: 44px; height: 44px; font-size: 18px; }
    .stepper-input { height: 44px; }
    .stepper-sm .stepper-btn { width: 36px; height: 36px; font-size: 15px; }
    .stepper-sm .stepper-input { height: 36px; }
    .cart-del { height: 44px; }
}

/* 18. 页脚吸底：短页面（登录/空购物车）不留大片空灰 */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* ==========================================================================
   18. 验收保留项（优先级高于通用 .btn-cart / .btn-icon 规则）
   -------------------------------------------------------------------------- */
/* 详情页主 CTA：btn-lg 高度 44、最小宽 160；收藏/分享为 44×44 图标按钮 */
.detail-actions .btn-lg { height: 44px; min-width: 160px; }
.detail-actions .btn-icon { width: 44px; height: 44px; padding: 0; }
.detail-actions .btn-icon .icon-lg { width: 20px; height: 20px; }

/* 移动端底部操作条：价格 + 「加入选品车」始终显示文字，不缩成图标 */
.detail-bar .btn-cart { width: auto; min-width: 132px; padding: 0 20px; }
.detail-bar .btn-cart span { display: inline; }
@media (max-width: 520px) {
    .detail-bar .btn-cart { width: auto; min-width: 116px; padding: 0 14px; }
    .detail-bar .btn-cart span { display: inline; }
}

/* 19. 收尾细节（v5）：横滑提示 / 移动端按钮 / 画廊比例 / 横向安全兜底 */
html { overflow-x: hidden; }
.scroll-hint { position: relative; }
.scroll-hint::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 32px;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff 78%);
    pointer-events: none;
}
@media (max-width: 820px) {
    .btn-cart { width: 44px; height: 44px; padding: 0; }
    .btn-cart span { display: none; }
    .masonry-pic { height: auto; aspect-ratio: 16 / 9; }
    .masonry-pic .art { width: 64px; height: 64px; }
    .masonry-cap { padding: 12px 14px 2px; }
    .masonry-sub { padding: 0 14px 14px; }
    .filter-bar__group { flex: 1 1 auto; }
    .filter-bar select.input { width: 100%; }
}
@media (min-width: 821px) {
    .masonry-item { }
}

/* 20. 冷色调统一后的收尾：插画浓度 / 焦点色 / 价格字色 */
.pro-media__art { opacity: .72; }
.cat-tile__art { opacity: .95; }
.hero-card__art { opacity: 1; color: var(--brand); }
.masonry-pic .art { opacity: .55; }
.gallery-stage .art { opacity: 1; color: #8494AB; }
.pro-item:hover .pro-media__art { opacity: .85; }
.price { color: var(--price); }
.toast { background: rgba(15, 27, 46, .94); }

/* 21. 收尾：筛选区次要文字降权，避免与主按钮抢视觉 */
.filter-chips .link-btn { color: var(--muted); }
.filter-chips .link-btn:hover { color: var(--brand); }

/* 22. 真实数据适配：图片兜底 / 移动端安全区 / 画廊图注可读性 / 价格规范 */
.pro-media img { position: absolute; inset: 0; z-index: 1; background: #F4F6F9; }
.pro-media__art { z-index: 0; }

.masonry-pic { position: relative; }
.masonry-cap {
    position: relative; z-index: 1;
}
.masonry-item { position: relative; }
.masonry-item::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
    background: linear-gradient(180deg, rgba(15, 27, 46, 0), rgba(15, 27, 46, .55));
    pointer-events: none;
}
.masonry-cap, .masonry-sub { position: relative; z-index: 2; color: #fff; text-shadow: 0 1px 2px rgba(15, 27, 46, .5); }
.masonry-cap { padding: 12px 14px 0; }

@media (max-width: 820px) {
    body.has-bottom-nav { padding-bottom: 84px; }
    #yxListSection { padding-bottom: 8px; }
}

/* ==========================================================================
   23. 语言一键切换 + RTL 基础
   --------------------------------------------------------------------------
   顶栏（桌面）与头部动作区（移动端）各一个入口，样式统一；
   阿语等 RTL 语种由 [dir="rtl"] 覆盖水平方向，不影响其它语种。
   ========================================================================== */

.lang-switch { position: relative; display: inline-flex; align-items: center; }

.lang-switch__btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 7px; border: 0; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .10); color: #DCE4F0;
    font-size: 12px; font-family: inherit; cursor: pointer; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.lang-switch__btn:hover, .lang-switch__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .20); color: #fff; }
.lang-switch__btn svg { width: 13px; height: 13px; opacity: .9; flex: none; }
.lang-switch__arrow { width: 11px; height: 11px; transition: transform .18s ease; }
.lang-switch.is-open .lang-switch__arrow { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--z-header);
    min-width: 148px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--surface); box-shadow: 0 10px 28px rgba(15, 27, 46, .16);
    display: none; flex-direction: column;
}
.lang-switch.is-open .lang-switch__menu { display: flex; }
/* 只用点击控制显隐：hover 方案在鼠标下滑 / 页面滚动时会误判离开而自动收起 */
.lang-switch__item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 9px; border-radius: var(--r-sm);
    color: var(--text); font-size: 13px; line-height: 1.4; text-decoration: none;
}
.lang-switch__item:hover { background: var(--brand-50); color: var(--brand-700); }
.lang-switch__item.is-active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.lang-switch__name { flex: 1; min-width: 0; }
.lang-switch__code {
    flex: none; padding: 1px 5px; border-radius: 4px;
    background: var(--line-2); color: var(--muted); font-size: 11px; font-weight: 600;
}
.lang-switch__item.is-active .lang-switch__code { background: var(--brand-100); color: var(--brand-700); }
.lang-switch__tick { width: 13px; height: 13px; color: var(--brand); flex: none; }

/* 移动端：复用头部动作样式，顶栏隐藏时仍可切换 */
.lang-switch--action { display: none; }
.lang-switch--action .lang-switch__btn {
    height: auto; padding: 0; background: none; color: inherit;
    flex-direction: column; gap: 3px; font-size: 11px;
}
.lang-switch--action .lang-switch__btn:hover,
.lang-switch--action .lang-switch__btn[aria-expanded="true"] { background: none; }
.lang-switch--action .lang-switch__globe { width: 20px; height: 20px; }
.lang-switch--action .lang-switch__arrow { display: none; }
.lang-switch--action .lang-switch__menu { top: calc(100% + 8px); }

@media (max-width: 820px) {
    .lang-switch--action { display: inline-flex; }
}

/* RTL（阿拉伯语）：水平方向镜像 —— 只翻转与方向相关的属性，不重排内容 */
[dir="rtl"] .utility-bar__sep { margin: 0; }
[dir="rtl"] .breadcrumb__sep { transform: scaleX(-1); }
[dir="rtl"] .lang-switch__arrow { transform: rotate(180deg); }
[dir="rtl"] .lang-switch.is-open .lang-switch__arrow { transform: rotate(0deg); }
[dir="rtl"] .section-head__more svg,
[dir="rtl"] .link-more svg,
[dir="rtl"] .header-action svg { transform: scaleX(-1); }
[dir="rtl"] .price-unit { margin-right: 0; margin-left: 1px; }
[dir="rtl"] input, [dir="rtl"] textarea { text-align: right; }
[dir="rtl"] .header-search .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-right: 1px solid var(--line); border-left: 0; }
[dir="rtl"] .pager__item svg { transform: scaleX(-1); }

/* ==========================================================================
   24. 物料清单（物料BOM）表格
   --------------------------------------------------------------------------
   与两列「商品属性」表区分：这里是多列表格，表头不能继承首列固定宽度；
   移动端靠 .table-wrap 横向滚动，避免挤压。
   ========================================================================== */
.bom-table { width: 100%; min-width: 620px; font-size: 13px; }
.bom-table th, .bom-table td {
    text-align: start; padding: 10px 14px;
    border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.bom-table thead th {
    background: var(--surface-2); color: var(--muted); font-weight: 500;
    border-bottom: 1px solid var(--line);
}
.bom-table tbody tr:nth-child(even) { background: #FBFCFC; }
.bom-table tbody tr:last-child td { border-bottom: 0; }
.bom-table td:last-child, .bom-table th:last-child { white-space: normal; min-width: 130px; }
.block-note { margin-top: var(--sp-3); font-size: 12px; color: var(--muted); }

/* 属性表首列固定宽：限定在 tbody，避免影响带表头的表格（并在 RTL 下正确对齐） */
.attr-table tbody th { width: 130px; }
[dir="rtl"] .attr-table th, [dir="rtl"] .attr-table td { text-align: right; }

/* 订单金额区：应付合计强调（会员订单详情） */
.table-total--strong { color: var(--ink); font-weight: 600; }
.table-total--strong .amount { color: var(--price); font-weight: 700; font-size: 15px; }

/* 顶栏注册入口：深色底上做一个小胶囊，保证一眼能看到 */
.utility-bar__cta {
    padding: 2px 10px; border-radius: var(--r-pill);
    background: var(--brand); color: #fff !important;
    font-weight: 500; line-height: 18px;
}
.utility-bar__cta:hover { background: var(--brand-600); color: #fff !important; }

/* 产品介绍（来自商品资料，前台展示） */
.pro-intro {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--surface); font-size: 13.5px; line-height: 1.8; color: var(--text);
    word-break: break-word; white-space: pre-line;
}
