/* ============================================================
 * LXMall store.css — v1.9.0 前台视觉层
 * 定位：外贸独立站（DTC）风格 —— 大图橱窗、清晰信息层级、
 *       克制的描边与阴影、移动端优先的响应式。
 * 机制：只消费 --ftm-* 变量，配色由 theme-{palette}.css 覆盖，
 *       所以「一套模板 + 多种配色」无需复制 HTML。
 * ============================================================ */

:root {
    --sh-max: 1280px;
    --sh-gutter: 20px;
    --sh-r-sm: 10px;
    --sh-r: 14px;
    --sh-r-lg: 20px;
    --sh-line: var(--ftm-border, #e7e9ef);
    --sh-line-strong: var(--ftm-border-strong, #d8dce6);
    --sh-surface: var(--ftm-surface, #ffffff);
    --sh-surface-2: var(--ftm-surface-2, #f7f8fb);
    --sh-bg: var(--ftm-bg, #f6f7fa);
    --sh-ink: var(--ftm-text, #14161f);
    --sh-ink-2: var(--ftm-text-2, #5b6478);
    --sh-ink-3: var(--ftm-text-3, #98a1b3);
    --sh-primary: var(--ftm-primary, #4f46e5);
    --sh-primary-soft: color-mix(in srgb, var(--ftm-primary, #4f46e5) 10%, transparent);
    --sh-tint: color-mix(in srgb, var(--ftm-primary, #4f46e5) 7%, var(--ftm-surface, #fff));
    --sh-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 30px rgba(17, 24, 39, .05);
    --sh-shadow-lift: 0 18px 48px rgba(17, 24, 39, .12);
    --sh-font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 基础 ---------- */
body {
    font-family: var(--sh-font);
    background: var(--sh-bg);
    color: var(--sh-ink);
    letter-spacing: -0.005em;
}
.container { max-width: var(--sh-max); padding-inline: var(--sh-gutter); }
main { padding-bottom: 8px; }
h1, h2, h3, h4 { color: var(--sh-ink); letter-spacing: -0.02em; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--sh-primary-soft); }

/* 通用按钮（覆盖 bootstrap 观感，保留原类名兼容旧模板） */
.btn { border-radius: 10px; font-weight: 600; font-size: .9rem; }
.btn-lg { border-radius: 12px; }
.btn-primary {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sh-primary) 24%, transparent);
}
.btn-primary:hover, .btn-primary:focus { background: var(--ftm-primary-dark, var(--sh-primary)); border-color: var(--ftm-primary-dark, var(--sh-primary)); }
.btn-outline-primary { color: var(--sh-primary); border-color: color-mix(in srgb, var(--sh-primary) 45%, transparent); }
.btn-outline-primary:hover { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }

/* ============================================================
 * 1. 顶部：公告条 / 主栏 / 导航
 * ============================================================ */
.topstrip {
    background: var(--ftm-dark, #101322);
    color: rgba(255, 255, 255, .78);
    font-size: .775rem;
    letter-spacing: 0;
}
.topstrip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topstrip-left { display: flex; align-items: center; gap: 18px; min-width: 0; overflow: hidden; }
.ts-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ts-item i { opacity: .8; }
.topstrip-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ts-link { color: rgba(255, 255, 255, .82); display: inline-flex; align-items: center; gap: 6px; font-size: .775rem; text-decoration: none; white-space: nowrap; }
.ts-link:hover { color: #fff; }
.ts-divider { width: 1px; height: 13px; background: rgba(255, 255, 255, .2); display: inline-block; }
.ts-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); }
.topstrip .dropdown-menu { font-size: .85rem; min-width: 11rem; }

/* 主栏：LOGO | 搜索 | 账户 —— 三区网格，彻底解决相互挤压 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--sh-surface) 92%, transparent);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--sh-line);
}
.header-grid {
    display: grid;
    grid-template-columns: minmax(160px, auto) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand-logo { height: 38px; width: auto; max-width: 190px; object-fit: contain; }
.brand-badge {
    width: 38px; height: 38px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ftm-primary-grad, var(--sh-primary));
    color: #fff; font-size: 1.1rem; flex: 0 0 auto;
}
.brand-badge.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-size: 1.12rem; letter-spacing: -0.03em; color: var(--sh-ink); }
.brand-text small { font-size: .66rem; color: var(--sh-ink-3); margin-top: 3px; letter-spacing: 0; white-space: nowrap; }

.hd-search {
    display: flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 6px 0 16px;
    background: var(--sh-surface-2);
    border: 1.5px solid var(--sh-line);
    border-radius: 999px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    min-width: 0;
}
.hd-search:focus-within {
    background: var(--sh-surface);
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 4px var(--sh-primary-soft);
}
.hd-search-ico { color: var(--sh-ink-3); font-size: 1rem; flex: 0 0 auto; }
.hd-search-input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: .9rem; color: var(--sh-ink);
}
.hd-search-input::placeholder { color: var(--sh-ink-3); }
.hd-search-btn {
    flex: 0 0 auto; height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--ftm-primary-grad, var(--sh-primary)); color: #fff;
    font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: filter .15s ease;
}
.hd-search-btn:hover { filter: brightness(1.06); }

.hd-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.hd-action {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 10px; border-radius: 10px;
    color: var(--sh-ink); text-decoration: none;
    transition: background .15s ease;
}
.hd-action:hover { background: var(--sh-surface-2); }
.hd-action > i { font-size: 1.3rem; color: var(--sh-ink-2); }
.hd-action-txt { display: flex; flex-direction: column; line-height: 1.15; }
.hd-action-txt b { font-size: .82rem; font-weight: 600; }
.hd-action-txt small { font-size: .68rem; color: var(--sh-ink-3); letter-spacing: 0; }
.hd-cta {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 18px; border-radius: 999px;
    background: var(--sh-primary-soft); color: var(--sh-primary);
    font-size: .82rem; font-weight: 700; text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--sh-primary) 24%, transparent);
    transition: background .15s ease, color .15s ease;
}
.hd-cta:hover { background: var(--sh-primary); color: #fff; }
.hd-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sh-line);
    background: var(--sh-surface); color: var(--sh-ink); font-size: 1.3rem;
}

/* 导航条 */
.catnav { background: var(--sh-surface); border-top: 1px solid var(--sh-line); }
.catnav-inner { display: flex; align-items: stretch; gap: 8px; height: 50px; }
.catnav-all { display: flex; }
.catnav-allbtn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 0 18px 0 4px; height: 50px;
    font-size: .88rem; font-weight: 700; color: var(--sh-ink);
    text-decoration: none; white-space: nowrap;
    border-right: 1px solid var(--sh-line);
    padding-right: 20px; margin-right: 4px;
}
.catnav-allbtn i { font-size: 1.15rem; color: var(--sh-primary); }
.catnav-allbtn:hover { color: var(--sh-primary); }
.catnav-links { display: flex; align-items: stretch; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.catnav-links::-webkit-scrollbar { display: none; }
.catnav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 14px; font-size: .87rem; font-weight: 600; color: var(--sh-ink-2);
    white-space: nowrap; position: relative; text-decoration: none;
}
.catnav-link i { color: var(--sh-primary); font-size: .9rem; }
.catnav-link:hover { color: var(--sh-primary); }
.catnav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
    border-radius: 2px 2px 0 0; background: var(--sh-primary);
    transform: scaleX(0); transform-origin: center; transition: transform .18s ease;
}
.catnav-link:hover::after { transform: scaleX(1); }
.catnav-promo {
    margin-left: auto; align-items: center; gap: 7px;
    font-size: .78rem; color: var(--sh-ink-3); white-space: nowrap;
}
.catnav-promo i { color: var(--sh-primary); }

/* 全部分类大下拉 */
.catnav-mega { min-width: 280px; padding: 8px; border-radius: 14px; border: 1px solid var(--sh-line); box-shadow: var(--sh-shadow-lift); }
.catnav-mega .dropdown-item { border-radius: 8px; padding: .55rem .7rem; font-size: .87rem; display: flex; align-items: center; }
.catnav-mega-all { color: var(--sh-primary) !important; font-weight: 700; }
.catnav-mega .sub-arrow { margin-left: auto; font-size: .7rem; opacity: .5; }
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu.sub {
    top: -8px; left: 100%; margin-left: 4px; min-width: 180px;
    display: none; border-radius: 12px; border: 1px solid var(--sh-line); box-shadow: var(--sh-shadow-lift);
}
.dropdown-submenu:hover > .dropdown-menu.sub { display: block; }

/* 移动端面板 */
.mobile-panel { padding: 6px 0 16px; }
.mobile-panel > a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 2px; border-bottom: 1px dashed var(--sh-line);
    color: var(--sh-ink); font-size: .93rem; font-weight: 500; text-decoration: none;
}
.mobile-panel > a:last-of-type { border-bottom: 0; }
.mobile-panel > a i { color: var(--sh-primary); width: 18px; text-align: center; }
.mobile-lang { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lang-chip {
    padding: 6px 13px; border-radius: 999px; border: 1px solid var(--sh-line);
    font-size: .8rem; color: var(--sh-ink-2); text-decoration: none;
}
.lang-chip.active { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }

/* ============================================================
 * 2. Hero
 * ============================================================ */
.hero-wrap { padding: 18px 0 0; }
.hero-slider { border-radius: var(--sh-r-lg); overflow: hidden; background: var(--sh-surface); box-shadow: var(--sh-shadow); }
.hero-slide { position: relative; }
.hero-slide-img { width: 100%; height: clamp(260px, 34vw, 470px); object-fit: cover; display: block; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 10, 18, .72) 0%, rgba(8, 10, 18, .38) 46%, rgba(8, 10, 18, .06) 78%);
}
.hero-slide-caption {
    position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(24px, 5vw, 64px);
    max-width: min(560px, 78%); z-index: 2; color: #fff;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
    font-size: .74rem; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px);
}
.hero-eyebrow.light { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.16;
    margin: 16px 0 12px; color: #fff; letter-spacing: -0.03em;
}
.hero-sub { font-size: clamp(.9rem, 1.2vw, 1.02rem); line-height: 1.65; color: rgba(255, 255, 255, .86); margin: 0 0 22px; max-width: 46ch; }
.hero-btn, .btn-hero-primary {
    display: inline-flex; align-items: center; gap: 9px;
    height: 46px; padding: 0 24px; border-radius: 999px;
    background: #fff; color: #14161f; font-weight: 700; font-size: .9rem;
    text-decoration: none; border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}
.hero-btn:hover, .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); color: #14161f; }
.btn-hero-primary.sm { height: 42px; padding: 0 20px; font-size: .85rem; background: var(--sh-primary); color: #fff; }
.btn-hero-primary.sm:hover { color: #fff; }
.btn-hero-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .38); color: #fff;
    font-weight: 600; font-size: .9rem; text-decoration: none;
    transition: background .15s ease;
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.carousel-indicators [data-bs-target] { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .55); border: 0; }
.carousel-indicators .active { background: #fff; width: 40px; }

/* 无幻灯时的手绘 Hero */
.hero-static {
    margin-top: 18px;
    border-radius: var(--sh-r-lg);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(900px 380px at 88% -10%, color-mix(in srgb, var(--sh-primary) 42%, transparent), transparent 62%),
        radial-gradient(700px 320px at 4% 110%, color-mix(in srgb, var(--sh-primary) 26%, transparent), transparent 60%),
        linear-gradient(120deg, #0b0e18 0%, #151a2b 52%, #1d2340 100%);
    color: #fff;
}
.hero-static-inner {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px;
    padding: clamp(28px, 5vw, 60px) var(--sh-gutter);
    align-items: center; position: relative; z-index: 1;
}
.hero-static .hero-title { color: #fff; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 42px); }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats b { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stats b i { font-size: .8rem; font-style: normal; opacity: .6; margin-left: 1px; }
.hero-stats span { font-size: .74rem; color: rgba(255, 255, 255, .62); }
.hero-static-art { position: relative; height: 260px; }
.ha-card { position: absolute; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.ha-1 { width: 58%; height: 62%; right: 6%; top: 4%; transform: rotate(-6deg); }
.ha-2 { width: 44%; height: 52%; right: 34%; bottom: 2%; background: rgba(255, 255, 255, .14); transform: rotate(7deg); }
.ha-3 { width: 30%; height: 30%; right: 2%; bottom: 16%; background: color-mix(in srgb, var(--sh-primary) 55%, transparent); transform: rotate(-14deg); }
.ha-glow { position: absolute; inset: auto 18% -12% 24%; height: 60%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sh-primary) 60%, transparent), transparent); filter: blur(28px); }

/* ============================================================
 * 3. 信任条 / 区块标题 / 分类磁贴
 * ============================================================ */
.trust-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; margin-top: 18px;
    background: var(--sh-line);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-r);
    overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--sh-surface); }
.trust-ico {
    width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sh-primary-soft); color: var(--sh-primary); font-size: 1.05rem;
}
.trust-item b { display: block; font-size: .86rem; font-weight: 700; color: var(--sh-ink); }
.trust-item span { display: block; font-size: .74rem; color: var(--sh-ink-3); margin-top: 2px; }

.section { margin: 52px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 800; margin: 0; line-height: 1.25; }
.section-sub { font-size: .84rem; color: var(--sh-ink-3); margin: 6px 0 0; }
.section-link {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    font-size: .84rem; font-weight: 700; color: var(--sh-primary); text-decoration: none;
}
.section-link i { transition: transform .16s ease; }
.section-link:hover i { transform: translateX(4px); }

.cat-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 8px 16px; border-radius: var(--sh-r);
    background: var(--sh-surface); border: 1px solid var(--sh-line);
    text-decoration: none; text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cat-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sh-primary) 45%, var(--sh-line)); box-shadow: var(--sh-shadow); }
.cat-tile-ico {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sh-tint); color: var(--sh-primary); font-size: 1.25rem;
}
.cat-tile-name { font-size: .84rem; font-weight: 600; color: var(--sh-ink); line-height: 1.3; }
.cat-tile-count { font-size: .7rem; color: var(--sh-ink-3); }

/* ============================================================
 * 4. 商品卡
 * ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(var(--sh-cols, 4), minmax(0, 1fr)); gap: 18px; }
.product-col { min-width: 0; }
/* 旧模板用 .row 包裹商品卡时的兜底栅格 */
.row > .product-col { width: 25%; padding-inline: 9px; margin-bottom: 18px; flex: 0 0 25%; }
.product-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-r);
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-shadow-lift); border-color: color-mix(in srgb, var(--sh-primary) 30%, var(--sh-line)); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sh-surface-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .pcard-media img { transform: scale(1.045); }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.pbadge {
    font-size: .66rem; font-weight: 800; letter-spacing: .04em;
    padding: 4px 8px; border-radius: 5px; color: #fff; line-height: 1;
}
.pbadge.new { background: #0f9d58; }
.pbadge.hot { background: #e11d2f; }
.pbadge.sale { background: #14161f; }
.pcard-hover {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; gap: 6px; padding: 10px;
    background: linear-gradient(0deg, rgba(10, 12, 20, .55), transparent);
    transform: translateY(100%); opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}
.product-card:hover .pcard-hover { transform: translateY(0); opacity: 1; }
.pcard-hover-btn {
    flex: 1 1 0; height: 34px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    background: rgba(255, 255, 255, .94); color: #14161f;
    font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.pcard-hover-btn.solid { background: var(--sh-primary); color: #fff; }
.pcard-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.pcard-type {
    display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
    font-size: .64rem; font-weight: 700; letter-spacing: .02em;
    color: var(--sh-ink-3); text-transform: uppercase;
}
.pcard-type img { width: 13px; height: 13px; opacity: .7; }
.pcard-title {
    font-size: .88rem; font-weight: 600; line-height: 1.42; color: var(--sh-ink);
    text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.5em;
}
.pcard-title:hover { color: var(--sh-primary); }
.pcard-sub { font-size: .74rem; color: var(--sh-ink-3); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.pcard-price { display: flex; align-items: baseline; gap: 6px; }
.pcard-price b { font-size: 1.05rem; font-weight: 800; color: var(--ftm-price, #e52d27); letter-spacing: -0.02em; }
.pcard-price del { font-size: .74rem; color: var(--sh-ink-3); }
.pcard-sales { font-size: .7rem; color: var(--sh-ink-3); white-space: nowrap; }

/* v1.16.0 商品卡增强：图片包裹层 / 悬停收藏 / 库存紧迫提示 */
.pcard-media-wrap { position: relative; display: block; }
.pcard-media-wrap > .pcard-media { height: 100%; }
.pcard-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #475569;
    font-size: .92rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, color .18s ease, background .18s ease;
    backdrop-filter: blur(6px);
}
.product-card:hover .pcard-wish,
.pcard-wish:focus-visible,
.pcard-wish.on { opacity: 1; transform: translateY(0); }
.pcard-wish:hover { color: #e11d2f; background: #fff; }
.pcard-wish.on { color: #e11d2f; background: #fff1f2; border-color: #fecdd3; }
.pcard-wish:focus-visible { outline: 2px solid var(--sh-primary); outline-offset: 2px; }
.pcard-stock {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(190, 18, 60, .92);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
}
.pcard-stock i { font-size: .7rem; }
@media (hover: none) {
    .pcard-wish { opacity: 1; transform: none; }
}


/* ============================================================
 * 5. 为什么选我们 / 资讯 / 页脚
 * ============================================================ */
.why-band {
    display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--sh-r-lg);
    background: linear-gradient(135deg, var(--sh-tint), var(--sh-surface) 58%);
    border: 1px solid var(--sh-line);
}
.why-copy .section-title { margin-bottom: 22px; }
.why-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.why-item { display: flex; gap: 14px; }
.why-num { font-size: .72rem; font-weight: 800; color: var(--sh-primary); padding-top: 3px; letter-spacing: .05em; }
.why-item b { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.why-item p { font-size: .82rem; color: var(--sh-ink-2); line-height: 1.6; margin: 0; }
.why-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
.why-badge {
    width: 128px; height: 128px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: var(--sh-surface); border: 1px dashed color-mix(in srgb, var(--sh-primary) 40%, var(--sh-line));
    color: var(--sh-primary); font-size: 1.5rem;
    box-shadow: var(--sh-shadow);
}
.why-badge span { font-size: .64rem; font-weight: 800; letter-spacing: .12em; line-height: 1.25; text-align: center; color: var(--sh-ink-2); }
.why-mini { display: flex; gap: 10px; }
.why-mini > div {
    background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: 12px;
    padding: 10px 14px; text-align: center; min-width: 84px;
}
.why-mini i { color: var(--sh-primary); font-size: 1rem; }
.why-mini b { display: block; font-size: .66rem; color: var(--sh-ink-3); font-weight: 600; margin-top: 4px; }
.why-mini span { font-size: .95rem; font-weight: 800; color: var(--sh-ink); }

.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.news-card {
    background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow-lift); }
.news-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sh-surface-2); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; }
.news-date { font-size: .7rem; color: var(--sh-ink-3); display: inline-flex; align-items: center; gap: 5px; }
.news-title { font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--sh-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-title:hover { color: var(--sh-primary); }
.news-summary { font-size: .78rem; color: var(--sh-ink-2); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 页脚订阅 */
.footer-cta {
    margin-top: 56px;
    background:
        radial-gradient(700px 220px at 12% 0%, color-mix(in srgb, var(--sh-primary) 40%, transparent), transparent 60%),
        linear-gradient(120deg, #0b0e18, #171d31 60%, #1f2740);
    color: #fff;
}
.footer-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 32px var(--sh-gutter);
}
.footer-cta-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.footer-cta-sub { font-size: .82rem; color: rgba(255, 255, 255, .62); margin: 0; max-width: 52ch; }
.footer-cta-form { display: flex; gap: 8px; flex: 0 0 auto; }
.footer-cta-input {
    height: 44px; width: 260px; padding: 0 16px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff;
    font-size: .84rem; outline: 0;
}
.footer-cta-input::placeholder { color: rgba(255, 255, 255, .5); }
.footer-cta-input:focus { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.footer-cta-btn {
    height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: #fff; color: #14161f; font-size: .84rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 7px;
}

.footer-cta-side { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; flex: 0 0 auto; }
.footer-cta-msg { font-size: .76rem; color: rgba(255, 255, 255, .82); min-height: 0; }
.footer-cta-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: .72rem;
    color: rgba(255, 255, 255, .48);
}
.footer-cta-note i { color: #4ade80; }
@media (max-width: 991.98px) {
    .footer-cta-side { align-items: stretch; width: 100%; }
}

.site-footer { background: var(--ftm-dark, #101322); color: rgba(255, 255, 255, .68); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; margin-bottom: 12px; }
.footer-logo img { height: 32px; width: auto; max-width: 170px; object-fit: contain; }
.footer-logo b { font-size: 1.05rem; letter-spacing: -0.02em; }
/* v1.35.0：内联文字 LOGO，用 currentColor 兼容国风等浅色/深色页脚覆盖 */
.footer-logo-mark {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 11px;
    background: color-mix(in srgb, currentColor 14%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
    font-size: .84rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.footer-logo-text b { font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.footer-logo-text small { margin-top: 3px; font-size: .64rem; color: inherit; opacity: .68; white-space: nowrap; }
.footer-tagline { font-size: .8rem; line-height: 1.6; color: rgba(255, 255, 255, .55); margin: 0 0 14px; max-width: 30ch; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.footer-trust span { font-size: .72rem; color: rgba(255, 255, 255, .55); display: inline-flex; align-items: center; gap: 5px; }
.footer-trust i { color: #6ee7b7; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font-size: .85rem;
    transition: background .15s ease, color .15s ease;
}
.footer-social a:hover { background: var(--sh-primary); color: #fff; }
.footer-col h3 { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .8rem; color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: .78rem; color: rgba(255, 255, 255, .58); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.footer-contact i { color: rgba(255, 255, 255, .38); margin-top: 2px; }
.footer-pay-row {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pay-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px; border-radius: 8px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    font-size: .7rem; color: rgba(255, 255, 255, .72);
}
.footer-lang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-lang a { font-size: .74rem; color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-lang a.active, .footer-lang a:hover { color: #fff; }
.footer-lang .ts-divider { background: rgba(255, 255, 255, .16); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .72rem; color: rgba(255, 255, 255, .42);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255, 255, 255, .42); text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }
.wm-friend-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-size: .74rem; }
.wm-friend-links .wm-fl-title { color: rgba(255, 255, 255, .4); }
.wm-friend-links a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.wm-friend-links a:hover { color: #fff; }

/* ============================================================
 * 6. 商品详情
 * ============================================================ */
.breadcrumb { font-size: .76rem; margin: 0; }
.breadcrumb a { color: var(--sh-ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--sh-primary); }
.breadcrumb-item.active { color: var(--sh-ink-2); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--sh-ink-3); content: "/"; }

.gallery-main {
    position: relative; border-radius: var(--sh-r-lg); overflow: hidden;
    background: var(--sh-surface-2); border: 1px solid var(--sh-line);
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { margin-top: 10px; }
.gallery-thumbs img {
    width: 68px; height: 68px; object-fit: cover; border-radius: 10px;
    border: 1.5px solid var(--sh-line); cursor: pointer; background: var(--sh-surface);
    transition: border-color .15s ease;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--sh-primary); }

.price-panel {
    background: var(--sh-surface-2); border: 1px solid var(--sh-line);
    border-radius: var(--sh-r); padding: 16px 18px;
}
.price-panel .price, .price-panel #priceNow { color: var(--ftm-price, #e52d27); font-weight: 800; letter-spacing: -0.02em; }
.spec-group .fw-semibold { font-size: .82rem; color: var(--sh-ink-2); }
.spec-btn {
    border: 1.5px solid var(--sh-line); background: var(--sh-surface);
    border-radius: 10px; padding: 8px 15px; font-size: .82rem; color: var(--sh-ink);
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    transition: all .15s ease;
}
.spec-btn:hover { border-color: var(--sh-primary); color: var(--sh-primary); }
.spec-btn.active { border-color: var(--sh-primary); background: var(--sh-primary-soft); color: var(--sh-primary); font-weight: 600; }
.spec-btn .color-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.assurance-row {
    display: flex; flex-wrap: wrap; gap: 16px 22px;
    padding-top: 16px; border-top: 1px dashed var(--sh-line);
    font-size: .76rem; color: var(--sh-ink-2);
}
.assurance-row span { display: inline-flex; align-items: center; gap: 6px; }
.assurance-row i { color: var(--sh-primary); }
.delivery-note { background: var(--sh-tint); border: 1px solid var(--sh-line); border-radius: 12px; padding: 12px 14px; }

.rich-text { font-size: .9rem; line-height: 1.85; color: var(--sh-ink-2); }
.rich-text h2, .rich-text h3 { color: var(--sh-ink); margin: 1.4em 0 .6em; font-size: 1.05rem; }
.rich-text img { border-radius: 10px; }
.rich-text a { color: var(--sh-primary); }

/* ============================================================
 * 7. 营销组件（秒杀 / 拼团 / 券 / 满减 / 预售）
 * ============================================================ */
.wm-marketing { margin-top: 44px; }
.wm-mkt-section { margin-bottom: 40px; }
.wm-mkt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.wm-mkt-title { font-size: 1.25rem; font-weight: 800; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.wm-mkt-icon { width: 24px; height: 24px; }
.wm-mkt-more { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--sh-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.wm-mkt-card {
    display: block; height: 100%; text-decoration: none;
    background: var(--sh-surface); border: 1px solid var(--sh-line);
    border-radius: var(--sh-r); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wm-mkt-card:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow-lift); }
.wm-mkt-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sh-surface-2); }
.wm-mkt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wm-mkt-body { padding: 12px 14px 15px; }
.wm-mkt-name { font-size: .88rem; font-weight: 600; color: var(--sh-ink); }
.wm-mkt-sub { font-size: .74rem; color: var(--sh-ink-3); margin-top: 3px; }
.wm-countdown { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; }
.wm-cd-label { color: var(--sh-ink-3); margin-right: 4px; }
.wm-cd-box {
    background: #14161f; color: #fff; border-radius: 6px;
    padding: 3px 6px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .78rem;
}
.wm-seckill-price, .wm-gbuy-price { color: var(--ftm-price, #e52d27); font-weight: 800; font-size: 1.05rem; }
.wm-seckill-origin, .wm-gbuy-origin { color: var(--sh-ink-3); font-size: .76rem; margin-left: 6px; }
.wm-gbuy-save { background: color-mix(in srgb, var(--ftm-price, #e52d27) 12%, transparent); color: var(--ftm-price, #e52d27); font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; margin-left: 6px; }
.wm-seckill-off, .wm-gbuy-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--ftm-price, #e52d27); color: #fff;
    font-size: .7rem; font-weight: 800; padding: 4px 8px; border-radius: 5px;
}
.wm-gbuy-teams { margin-top: 10px; border-top: 1px dashed var(--sh-line); padding-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.wm-gbuy-teams-title { font-size: .72rem; color: var(--sh-ink-3); }
.wm-gbuy-team { font-size: .76rem; }
.wm-seckill-stock { margin-top: 10px; }
.wm-seckill-stock .progress { height: 6px; border-radius: 99px; background: var(--sh-surface-2); }
.wm-seckill-stock .progress-bar { border-radius: 99px; background: linear-gradient(90deg, #f97316, var(--ftm-price, #e52d27)); }
.wm-seckill-stock small { font-size: .7rem; color: var(--sh-ink-3); display: block; margin-top: 5px; }

/* 优惠券票券 */
.wm-coupon-card { position: relative; background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); padding: 16px 18px; display: flex; align-items: center; gap: 16px; }
.wm-coupon-card::before, .wm-coupon-card::after {
    content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
    background: var(--sh-bg); border: 1px solid var(--sh-line); left: 74px;
}
.wm-coupon-card::before { top: -8px; }
.wm-coupon-card::after { bottom: -8px; }

/* 满减条 */
.wm-mk-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--sh-tint); border: 1px solid var(--sh-line); border-radius: 12px; padding: 12px 16px; font-size: .82rem; }
.wm-mk-strip-title { font-weight: 700; color: var(--sh-primary); display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
 * 8. 通用页面块（分类/搜索/表格/分页/表单）
 * ============================================================ */
.page-head { margin: 24px 0 18px; }
.page-head h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.page-head p { font-size: .84rem; color: var(--sh-ink-3); margin: 0; }
.card { border-radius: var(--sh-r); border-color: var(--sh-line); background: var(--sh-surface); }
.card-header { background: var(--sh-surface) !important; border-color: var(--sh-line); }
.table { color: var(--sh-ink); }
.table > :not(caption) > * > * { border-color: var(--sh-line); }
.form-control, .form-select {
    border-radius: 10px; border-color: var(--sh-line-strong);
    background: var(--sh-surface); color: var(--sh-ink);
    font-size: .88rem; padding: .55rem .85rem;
}
.form-control:focus, .form-select:focus { border-color: var(--sh-primary); box-shadow: 0 0 0 3px var(--sh-primary-soft); }
.pagination .page-link { border-radius: 9px; margin: 0 3px; border-color: var(--sh-line); color: var(--sh-ink-2); font-size: .84rem; }
.pagination .active .page-link { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }
.badge { font-weight: 600; }
.alert { border-radius: 12px; }

/* 目录/搜索侧栏 */
.filter-card { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); padding: 16px; }
.filter-card h3 { font-size: .85rem; font-weight: 700; margin: 0 0 12px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sh-line); border-radius: 999px; padding: 5px 12px; font-size: .78rem; color: var(--sh-ink-2); text-decoration: none; }
.filter-chip.active, .filter-chip:hover { border-color: var(--sh-primary); color: var(--sh-primary); background: var(--sh-primary-soft); }

/* 空态 */
.empty-state { text-align: center; padding: 56px 16px; color: var(--sh-ink-3); }
.empty-state i { font-size: 2.6rem; opacity: .5; }
.empty-state p { margin: 12px 0 0; font-size: .88rem; }

/* ============================================================
 * 9. 响应式
 * ============================================================ */
@media (max-width: 1199.98px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .row > .product-col { width: 33.3333%; flex: 0 0 33.3333%; }
    .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 28px; }
    .footer-col:last-child { grid-column: span 2; }
}
@media (max-width: 991.98px) {
    .header-grid { grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; }
    .hd-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
    .hd-action-txt { display: none; }
    .catnav { display: none !important; }
    .hero-static-inner { grid-template-columns: 1fr; }
    .hero-static-art { display: none; }
    .why-band { grid-template-columns: 1fr; }
    .why-art { flex-direction: row; justify-content: flex-start; }
    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-cta-form { width: 100%; }
    .footer-cta-input { flex: 1 1 auto; width: auto; }
    .topstrip-left .ts-item:not(:first-child) { display: none; }
}
@media (max-width: 767.98px) {
    :root { --sh-gutter: 14px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .row > .product-col { width: 50%; flex: 0 0 50%; padding-inline: 6px; }
    .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .cat-tile { padding: 14px 6px 12px; }
    .cat-tile-ico { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
    .section { margin-top: 38px; }
    .section-head { margin-bottom: 14px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col:last-child { grid-column: 1 / -1; }
    .pcard-hover { display: none; }
    .hero-slide-caption { left: 18px; bottom: 20px; max-width: 88%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .why-art { display: none; }
}
@media (max-width: 479.98px) {
    .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-strip { grid-template-columns: 1fr; }
    .trust-item { padding: 12px 14px; }
    .hero-stats { gap: 16px; }
    .hero-stats b { font-size: 1.1rem; }
}

/* 深色配色下的中性面修正（配色 CSS 已给出深色变量，这里补充半透明层） */
body.is-dark .site-header { background: color-mix(in srgb, var(--sh-surface) 88%, #05070d); }
body.is-dark .hd-search { background: rgba(255, 255, 255, .05); }
body.is-dark .hd-search:focus-within { background: rgba(255, 255, 255, .08); }
body.is-dark .pcard-hover-btn { background: rgba(255, 255, 255, .92); }
body.is-dark .hero-slide::after { background: linear-gradient(90deg, rgba(3, 5, 12, .82) 0%, rgba(3, 5, 12, .5) 52%, rgba(3, 5, 12, .12) 82%); }
body.is-dark .wm-cd-box { background: rgba(255, 255, 255, .12); }
body.is-dark .dropdown-menu { background: var(--sh-surface); border-color: var(--sh-line); }
body.is-dark .dropdown-item { color: var(--sh-ink); }
body.is-dark .dropdown-item:hover { background: rgba(255, 255, 255, .06); }

/* ============================================================
 * 10. 商品详情补充
 * ============================================================ */
.detail-title { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.detail-sub { font-size: .88rem; color: var(--sh-ink-2); margin: 0 0 10px; line-height: 1.6; }
.save-chip {
    font-size: .72rem; font-weight: 700; color: var(--ftm-price, #e52d27);
    background: color-mix(in srgb, var(--ftm-price, #e52d27) 10%, transparent);
    padding: 3px 8px; border-radius: 5px;
}
.qty-box {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--sh-line); border-radius: 10px; overflow: hidden;
    background: var(--sh-surface); height: 42px;
}
.qty-btn {
    width: 38px; height: 100%; border: 0; background: transparent;
    color: var(--sh-ink-2); font-size: 1.05rem; cursor: pointer;
}
.qty-btn:hover { background: var(--sh-surface-2); color: var(--sh-primary); }
.qty-box input {
    width: 52px; height: 100%; border: 0; text-align: center;
    font-size: .9rem; font-weight: 600; background: transparent; color: var(--sh-ink);
    -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.detail-gallery { position: sticky; top: 90px; }
.detail-tabs { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); overflow: hidden; }
.detail-tabs .nav-tabs { padding: 0 18px; border-bottom: 1px solid var(--sh-line); gap: 4px; background: var(--sh-surface); }
.detail-tabs .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    padding: 14px 12px; font-size: .87rem; font-weight: 600; color: var(--sh-ink-3);
}
.detail-tabs .nav-link:hover { color: var(--sh-ink); }
.detail-tabs .nav-link.active { color: var(--sh-primary); border-bottom-color: var(--sh-primary); background: transparent; }
.detail-tab-content { padding: 22px 24px 26px; }
.spec-table th { width: 180px; color: var(--sh-ink-3); font-weight: 500; font-size: .82rem; }
.spec-table td { font-size: .85rem; }
.ship-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ship-grid > div { background: var(--sh-surface-2); border-radius: 12px; padding: 18px; }
.ship-grid i { font-size: 1.35rem; color: var(--sh-primary); }
.ship-grid b { display: block; font-size: .88rem; margin: 10px 0 6px; }
.ship-grid p { font-size: .8rem; line-height: 1.65; color: var(--sh-ink-2); margin: 0; }
.type-filter-ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.pcard-type.type-course, .pcard-type.type-virtual, .pcard-type.type-physical { color: var(--sh-ink-3); }

@media (max-width: 991.98px) {
    .detail-gallery { position: static; }
    .ship-grid { grid-template-columns: 1fr; }
    .detail-tab-content { padding: 18px 16px 20px; }
}

/* ============================================================
 * 11. 内页板块：文章 / FAQ / 联系 / 账户 / 结算 / 登录
 *     统一「描边卡面 + 数字标题 + 柔和分隔」的内页语汇，
 *     与首页橱窗风格保持一致，避免内页像另一套系统。
 * ============================================================ */

/* 面包屑（内页统一） */
.crumbs { padding: 14px 0 0; font-size: .8rem; color: var(--sh-ink-3); }
.crumbs a { text-decoration: none; color: var(--sh-ink-2); }
.crumbs a:hover { color: var(--sh-primary); }
.crumbs .sep { margin: 0 7px; opacity: .5; }

/* 通用面板 */
.panel { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); box-shadow: var(--sh-shadow); }
.panel-pad { padding: 20px 22px; }
.panel-title { font-size: .95rem; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.panel-title i { color: var(--sh-primary); }

/* 文章列表：首篇大图 + 其余两列 */
.news-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; }
.news-lead-cover { position: relative; min-height: 260px; background: var(--sh-surface-2); display: block; }
.news-lead-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-lead-body { padding: 26px 26px 22px; display: flex; flex-direction: column; justify-content: center; }
.news-lead-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-primary); }
.news-lead-title { font-size: 1.25rem; font-weight: 800; line-height: 1.35; margin: 10px 0 10px; text-decoration: none; color: var(--sh-ink); }
.news-lead-title:hover { color: var(--sh-primary); }
.news-lead-sum { font-size: .86rem; line-height: 1.75; color: var(--sh-ink-2); margin: 0 0 16px; }
.news-meta { font-size: .75rem; color: var(--sh-ink-3); display: flex; align-items: center; gap: 14px; }
.news-card .card-body { padding: 14px 16px 16px; }
.news-card .news-title { font-size: .9rem; font-weight: 700; color: var(--sh-ink); text-decoration: none; line-height: 1.45; white-space: normal; }
.news-card .news-title:hover { color: var(--sh-primary); }
.news-card .news-summary { font-size: .8rem; line-height: 1.65; color: var(--sh-ink-2); }

/* 侧栏列表 */
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 11px 0; border-bottom: 1px dashed var(--sh-line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: .85rem; font-weight: 600; color: var(--sh-ink); text-decoration: none; display: block; line-height: 1.5; }
.side-list a:hover { color: var(--sh-primary); }
.side-list .meta { font-size: .72rem; color: var(--sh-ink-3); margin-top: 4px; }

/* 文章详情 */
.article { overflow: hidden; }
.article-cover { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.article-body { padding: 30px 34px 34px; }
.article-h1 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; line-height: 1.32; margin: 0 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: .78rem; color: var(--sh-ink-3); padding-bottom: 16px; border-bottom: 1px solid var(--sh-line); margin-bottom: 22px; }
.article-lead { font-size: .95rem; line-height: 1.8; color: var(--sh-ink-2); background: var(--sh-surface-2); border-left: 3px solid var(--sh-primary); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 24px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.article-nav a, .article-nav span { display: block; padding: 14px 16px; border: 1px solid var(--sh-line); border-radius: 12px; background: var(--sh-surface); text-decoration: none; font-size: .82rem; color: var(--sh-ink-2); line-height: 1.5; }
.article-nav a:hover { border-color: var(--sh-primary); color: var(--sh-primary); }
.article-nav .dir { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-ink-3); display: block; margin-bottom: 5px; }
.article-nav .next { text-align: right; }

/* FAQ 手风琴 */
.faq-group { margin-bottom: 26px; }
.faq-group h2 { font-size: .95rem; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.faq-group h2 i { color: var(--sh-primary); }
.faq-item { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item[open] { border-color: color-mix(in srgb, var(--sh-primary) 45%, var(--sh-line)); }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-q { font-size: .88rem; font-weight: 700; color: var(--sh-ink); line-height: 1.5; }
.faq-item summary i { color: var(--sh-ink-3); font-size: .85rem; transition: transform .2s ease, color .2s ease; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(180deg); color: var(--sh-primary); }
.faq-a { padding: 0 18px 16px; font-size: .85rem; line-height: 1.8; color: var(--sh-ink-2); }
.faq-a p:last-child { margin-bottom: 0; }

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); padding: 22px; text-align: center; }
.contact-ico { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--sh-primary-soft); color: var(--sh-primary); font-size: 1.15rem; margin-bottom: 12px; }
.contact-card b { display: block; font-size: .88rem; margin-bottom: 6px; }
.contact-card a, .contact-card span { font-size: .84rem; color: var(--sh-ink-2); text-decoration: none; word-break: break-all; }
.contact-card a:hover { color: var(--sh-primary); }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 账户中心 */
.acct-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; align-items: start; }
.acct-nav { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); padding: 12px; position: sticky; top: 90px; }
.acct-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; border-bottom: 1px solid var(--sh-line); margin-bottom: 10px; }
.acct-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sh-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.acct-user b { font-size: .86rem; display: block; line-height: 1.3; }
.acct-user small { font-size: .72rem; color: var(--sh-ink-3); }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: .84rem; color: var(--sh-ink-2); text-decoration: none; }
.acct-nav a:hover { background: var(--sh-surface-2); color: var(--sh-ink); }
.acct-nav a.active { background: var(--sh-primary-soft); color: var(--sh-primary); font-weight: 700; }
.acct-nav a i { width: 16px; text-align: center; }
.acct-nav .signout { color: #dc2626; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: 12px; padding: 16px; }
.stat-box b { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.stat-box span { font-size: .76rem; color: var(--sh-ink-3); }

/* 订单卡 */
.order-card { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); margin-bottom: 14px; overflow: hidden; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; background: var(--sh-surface-2); border-bottom: 1px solid var(--sh-line); font-size: .76rem; color: var(--sh-ink-3); }
.order-head .no { font-weight: 700; color: var(--sh-ink); font-size: .82rem; }
.order-head .spacer { margin-left: auto; }
.order-items { padding: 6px 18px; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--sh-line); }
.order-row:last-child { border-bottom: 0; }
.order-row img { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; background: var(--sh-surface-2); flex-shrink: 0; }
.order-row .name { font-size: .85rem; font-weight: 600; color: var(--sh-ink); line-height: 1.45; }
.order-row .spec { font-size: .75rem; color: var(--sh-ink-3); margin-top: 3px; }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--sh-line); background: var(--sh-surface); font-size: .8rem; }
.order-foot .total { margin-left: auto; font-size: .82rem; color: var(--sh-ink-2); }
.order-foot .total b { color: var(--ftm-price, #e52d27); font-size: 1rem; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sh-primary-soft); color: var(--sh-primary); }
.status-chip.ok { background: rgba(16, 185, 129, .12); color: #0f9d76; }
.status-chip.warn { background: rgba(245, 158, 11, .14); color: #b45309; }
.status-chip.mute { background: var(--sh-surface-2); color: var(--sh-ink-3); }

/* 地址 / 表单网格 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.addr-card { border: 1px solid var(--sh-line); border-radius: 12px; padding: 16px 18px; background: var(--sh-surface); position: relative; }
.addr-card.is-default { border-color: color-mix(in srgb, var(--sh-primary) 50%, var(--sh-line)); background: var(--sh-tint); }
.addr-card b { font-size: .86rem; }
.addr-card .line { font-size: .82rem; color: var(--sh-ink-2); line-height: 1.6; margin-top: 6px; }

/* 登录 / 注册 */
.auth-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 0; min-height: 460px; margin: 28px 0 40px; border: 1px solid var(--sh-line); border-radius: var(--sh-r-lg); overflow: hidden; background: var(--sh-surface); box-shadow: var(--sh-shadow); }
.auth-aside { background: linear-gradient(150deg, var(--ftm-primary, #4f46e5), var(--ftm-accent, #7c3aed)); color: #fff; padding: 44px 38px; display: flex; flex-direction: column; justify-content: center; }
.auth-aside h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.auth-aside p { font-size: .86rem; line-height: 1.75; color: rgba(255, 255, 255, .82); margin: 0 0 22px; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-aside li { font-size: .82rem; color: rgba(255, 255, 255, .9); display: flex; align-items: center; gap: 9px; }
.auth-card { padding: 40px 34px; }
.auth-card h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.auth-card .sub { font-size: .82rem; color: var(--sh-ink-3); margin: 0 0 22px; }

/* 结算页 */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.co-steps { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--sh-ink-3); margin-bottom: 16px; flex-wrap: wrap; }
.co-steps span { display: inline-flex; align-items: center; gap: 6px; }
.co-steps span.on { color: var(--sh-primary); font-weight: 700; }
.co-steps i { opacity: .4; }
.co-summary { position: sticky; top: 90px; }
.co-line { display: flex; justify-content: space-between; font-size: .82rem; color: var(--sh-ink-2); padding: 7px 0; }
.co-line.total { border-top: 1px solid var(--sh-line); margin-top: 8px; padding-top: 12px; font-size: .9rem; color: var(--sh-ink); font-weight: 700; }
.co-line.total b { color: var(--ftm-price, #e52d27); font-size: 1.15rem; }
.pay-method { display: flex; align-items: center; gap: 11px; border: 1px solid var(--sh-line); border-radius: 11px; padding: 12px 14px; margin-bottom: 9px; cursor: pointer; font-size: .85rem; }
.pay-method:hover { border-color: color-mix(in srgb, var(--sh-primary) 45%, var(--sh-line)); }
.pay-method input { margin: 0; }
.pay-method.active { border-color: var(--sh-primary); background: var(--sh-tint); }
.pay-method i { font-size: 1.1rem; color: var(--sh-primary); }

/* 结果页 */
.result-wrap { max-width: 560px; margin: 40px auto 60px; text-align: center; }
.result-ico { width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 16px; }
.result-ico.ok { background: rgba(16, 185, 129, .12); color: #0f9d76; }
.result-ico.err { background: rgba(239, 68, 68, .1); color: #dc2626; }
.result-ico.warn { background: rgba(245, 158, 11, .14); color: #b45309; }
.result-wrap h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.result-wrap p { font-size: .86rem; color: var(--sh-ink-2); margin: 0 0 6px; }

@media (max-width: 991.98px) {
    .news-lead { grid-template-columns: 1fr; }
    .news-lead-cover { min-height: 200px; }
    .acct-layout { grid-template-columns: 1fr; }
    .acct-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
    .acct-user { display: none; }
    .acct-nav a { white-space: nowrap; padding: 8px 12px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .checkout-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .article-body { padding: 22px 18px 26px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav .next { text-align: left; }
    .form-grid, .contact-form-row { grid-template-columns: 1fr; }
}

/* 兼容历史类名：把账户/地址等旧卡片并入新视觉语言，
   这样未逐个改写的内页也不会出现「两套皮肤」 */
.account-card { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); box-shadow: var(--sh-shadow); overflow: hidden; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--sh-line); font-size: .9rem; font-weight: 700; }
.account-card-body { padding: 18px 20px; }
.address-card { border: 1px solid var(--sh-line); border-radius: 12px; background: var(--sh-surface); }
.address-card.is-default { border-color: var(--sh-primary); box-shadow: 0 0 0 3px var(--sh-primary-soft); }
.course-card, .refund-card { border-radius: var(--sh-r); }
.refund-chip { border-radius: 999px; }
.account-nav-link { border-radius: 9px; }
.order-timeline .timeline-step { text-align: center; flex: 1; position: relative; }

/* ============================================================
 * 12. v1.9.1 细节打磨：登录分段切换 / 移动端账户入口 / 表单质感
 * ============================================================ */
.auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin: 0 0 24px;
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-line);
    border-radius: 12px;
}
.auth-switch a {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    text-align: center;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    color: var(--sh-ink-2);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-switch a:hover { color: var(--sh-primary); }
.auth-switch a.active {
    background: var(--sh-surface);
    color: var(--sh-primary);
    box-shadow: 0 1px 5px rgba(15, 23, 42, .09);
}
.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    margin: 0 0 18px;
    border: 1px solid color-mix(in srgb, var(--sh-primary) 22%, var(--sh-line));
    border-radius: 11px;
    background: var(--sh-primary-soft);
    color: var(--sh-ink-2);
    font-size: .8rem;
    line-height: 1.6;
}
.auth-note i { color: var(--sh-primary); flex-shrink: 0; margin-top: 2px; }
.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--sh-line);
    font-size: .76rem;
    color: var(--sh-ink-3);
    text-align: center;
}
.auth-secure i { color: var(--sh-primary); }
.mobile-panel .mobile-auth {
    margin-top: 6px;
    border-radius: 10px;
    background: var(--sh-primary-soft);
    color: var(--sh-primary);
    font-weight: 700;
}
.mobile-panel .mobile-auth i { color: var(--sh-primary); }

/* 登录表单控件：更清晰的焦点与更舒适的点击区 */
.auth-card .form-label { margin-bottom: 6px; }
.auth-card .input-group-lg > .input-group-text { border-radius: 11px 0 0 11px; border-right: 0; padding-left: 14px; }
.auth-card .input-group-lg > .form-control { border-radius: 0; padding-left: 10px; }
.auth-card .input-group-lg > .btn { border-radius: 0 11px 11px 0; }
.auth-card .btn-group > .btn { border-color: var(--sh-line); color: var(--sh-ink-2); font-size: .84rem; }
.auth-card .btn-check:checked + .btn {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: #fff;
}
.auth-card .form-control:focus,
.auth-card .btn:focus-visible {
    box-shadow: 0 0 0 3px var(--sh-primary-soft);
}

@media (max-width: 767.98px) {
    .auth-card { padding: 26px 20px 28px; }
    .auth-switch { margin-bottom: 20px; }
    .auth-secure { font-size: .72rem; }
}

/* ============================================================
 * 13. v1.9.1 全站细节一致性：图片约束 / 键盘可达 / 小屏触控
 * ============================================================ */

/* 后台素材库插入的图片，在前台一律不溢出容器 */
.rich-text img,
.article-body img,
.detail-tab-content img,
.rich-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 10px;
}
.rich-text p img { margin-top: 8px; margin-bottom: 8px; }
.rich-text table { max-width: 100%; display: block; overflow-x: auto; }

/* 键盘可达：统一焦点环，鼠标点击不出现 */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--sh-primary);
    outline-offset: 2px;
}
.product-card:focus-within,
a:focus-visible { border-radius: 8px; }

/* 一致的轻交互反馈 */
.product-card,
.news-card,
.contact-card,
.cat-tile,
.panel {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn, .hd-cta, .hd-action, .lang-chip, .filter-chip {
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

/* 商品详情 Tab 在窄屏可横向滚动，避免三个标签挤成一团 */
.detail-tabs .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.detail-tabs .nav-tabs::-webkit-scrollbar { display: none; }
.detail-tabs .nav-link { white-space: nowrap; }

/* iOS 输入框自动缩放防护 + 触控目标尺寸 */
@media (max-width: 767.98px) {
    input.form-control,
    select.form-select,
    textarea.form-control,
    .hd-search-input {
        font-size: 16px;
    }
    .auth-card .input-group-lg > .btn { padding-left: 12px; padding-right: 12px; }
    .auth-card .btn-group > .btn { font-size: .8rem; padding: .5rem .4rem; }
    .footer-grid { gap: 22px 18px; }
    .crumbs { font-size: .74rem; }
}

@media (max-width: 479.98px) {
    .auth-wrap { margin: 18px 0 28px; border-radius: 14px; }
    .auth-switch a { font-size: .8rem; padding: 8px 6px; }
    .auth-secure { align-items: flex-start; text-align: left; }
    .article-body { padding: 18px 14px 22px; }
    .stat-grid { gap: 8px; }
    .stat-box { padding: 12px; }
    .order-row { gap: 10px; }
    .order-row img { width: 52px; height: 52px; }
}

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

/* ============================================================
 * v1.10.0 细节打磨：主题预览条 / 切换菜单 / 全局可用性
 * ============================================================ */

/* 锚点平滑滚动（reduced-motion 下由上方规则自动关闭） */
html { scroll-behavior: smooth; }

/* v1.16.0 管理员前台预览工具条：左下角悬浮，不占顶栏、不影响访客 */
.wm-preview-bar {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1080;
    font-size: .82rem;
    line-height: 1.5;
}
.wmp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: #111827;
    color: #f8fafc;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .01em;
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .55), 0 2px 6px rgba(15, 23, 42, .2);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wmp-toggle:hover { transform: translateY(-2px); background: #1f2937; box-shadow: 0 14px 30px -10px rgba(15, 23, 42, .6); }
.wmp-toggle:focus-visible { outline: 2px solid #818cf8; outline-offset: 3px; }
.wmp-toggle i { font-size: .95rem; }
.wm-preview-bar.is-live .wmp-toggle { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: rgba(255, 255, 255, .28); }
.wm-preview-bar.is-live .wmp-toggle::after {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .28);
}

.wmp-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: 300px;
    max-width: calc(100vw - 36px);
    padding: 14px 15px 12px;
    border: 1px solid var(--sh-line, #e5e7eb);
    border-radius: 14px;
    background: var(--sh-surface, #fff);
    color: var(--sh-ink, #0f172a);
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45), 0 4px 14px rgba(15, 23, 42, .12);
    animation: wmpIn .18s ease-out;
}
.wmp-panel[hidden] { display: none; }
@keyframes wmpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.wmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wmp-head b { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 700; }
.wmp-head b i { color: var(--sh-primary, #4f46e5); }
.wmp-close {
    border: 0; background: transparent; color: var(--sh-ink-3, #94a3b8);
    font-size: 1.25rem; line-height: 1; padding: 0 2px; cursor: pointer; border-radius: 6px;
}
.wmp-close:hover { color: var(--sh-ink, #0f172a); background: var(--sh-surface-2, #f1f5f9); }
.wmp-note { margin: 6px 0 12px; font-size: .72rem; color: var(--sh-ink-3, #64748b); }

.wmp-field { display: block; margin-bottom: 10px; }
.wmp-field > span {
    display: block; margin-bottom: 5px; font-size: .68rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--sh-ink-3, #64748b);
}
.wmp-field select {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--sh-line, #e2e8f0); border-radius: 9px;
    background: var(--sh-surface-2, #f8fafc); color: var(--sh-ink, #0f172a);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.wmp-field select:hover { border-color: var(--sh-primary, #4f46e5); }
.wmp-field select:focus { outline: 0; border-color: var(--sh-primary, #4f46e5); box-shadow: 0 0 0 3px var(--sh-primary-soft, rgba(79, 70, 229, .18)); }

.wmp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--sh-line, #eef2f7); }
.wmp-reset { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; color: var(--sh-primary, #4f46e5); text-decoration: none; }
.wmp-reset:hover { text-decoration: underline; }
.wmp-live { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; color: #16a34a; }
.wmp-live i { animation: wmpPulse 1.8s ease-in-out infinite; }
@keyframes wmpPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 顶栏「布局 / 配色」切换菜单：长列表可滚动，当前项清晰可辨 */
.ts-palette-menu {
    min-width: 15rem;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .35rem;
}
.ts-palette-menu .dropdown-item { border-radius: 7px; padding: .45rem .6rem; }
.ts-palette-menu .dropdown-item.active { background: var(--sh-tint, #f1f5f9); color: var(--sh-primary); }
.ts-palette-menu .dropdown-header { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.ts-link:focus-visible, .hd-action:focus-visible, .hd-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 6px;
}

/* 新增布局模板内的键盘焦点与图片加载体验 */
html[data-template] a:focus-visible,
html[data-template] button:focus-visible { outline: 2px solid var(--sh-primary); outline-offset: 3px; }
html[data-template] img { background-color: var(--sh-surface-2, #f4f5f8); }
html[data-template] .product-grid img { display: block; }

/* 全局细节：滚动条、选中态、空态 CTA、链接过渡 */
* { scrollbar-color: color-mix(in srgb, var(--sh-ink-3, #98a1b3) 55%, transparent) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--sh-ink-3, #98a1b3) 45%, transparent); border: 3px solid transparent; background-clip: padding-box; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--sh-ink-3, #98a1b3) 70%, transparent); background-clip: padding-box; }
.empty-state .btn { margin-top: 18px; }
a, button { -webkit-tap-highlight-color: transparent; }
.section-link, .hd-cta, .btn-hero-primary, .btn-hero-ghost { transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease; }
.section-link:hover { transform: translateX(3px); }

/* 窄屏顶栏：让语言 / 币种 / 布局 / 配色四个切换器始终可用且不换行挤压 */
@media (max-width: 575.98px) {
    .topstrip-left { display: none; }
    .topstrip-inner { min-height: 34px; justify-content: flex-end; }
    .topstrip-right { gap: 8px; }
    .ts-divider { display: none; }
    .ts-link { font-size: .74rem; }
    .wm-preview-bar { left: 10px; bottom: 10px; }
    .wmp-toggle { padding: 7px 12px; font-size: .74rem; }
    .wmp-panel { width: 276px; }
}
@media (max-width: 359.98px) {
    .topstrip-right { gap: 5px; }
    .ts-swatch { display: none; }
    .wmp-toggle span { display: none; }
    .wmp-toggle { padding: 8px 11px; }
    .wmp-panel { width: calc(100vw - 20px); }
}

/* v1.18.0：分类图标 / 图片（后台可配置，图片优先） */
.catnav-ico { width: 20px; height: 20px; object-fit: cover; border-radius: 5px; margin-right: .5rem; vertical-align: middle; }
.allcat-ico img { width: 26px; height: 26px; object-fit: cover; border-radius: 8px; display: block; }
.cat-chip-ico { width: 16px; height: 16px; object-fit: cover; border-radius: 4px; }


/* ============================================================
 * v1.22.1 前台图标修复：服务保障条 / 分类磁贴居中
 *
 * 服务保障条原用字体图标（<i class="bi bi-*">），在部分环境里字体尚未
 * 就绪或被浏览器缓存旧版 CSS 时，PUA 码位会渲染成很小、贴在框左上角的
 * 豆腐块。v1.22.1 起改为内联 SVG（不依赖字体加载），这里保证精确居中。
 * 分类磁贴图标来自数据库 icon 字段，保留字体图标并加显式居中兜底。
 * ============================================================ */
.trust-ico .trust-svg {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
}
/* .trust-item span{display:block} 是给文字副标题的，会误伤同为 span 的图标框，
   这里显式恢复 flex 居中（否则 SVG 贴顶，垂直偏上 9px） */
/* 用更高特异性覆盖 .trust-item span{display:block}（0,1,1 会压过 .trust-ico 的 0,1,0） */
.trust-item > .trust-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
}
.cat-tile-ico > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: bootstrap-icons !important;
    font-style: normal;
    line-height: 1;
}
.cat-tile-ico > i::before {
    font-family: bootstrap-icons !important;
    line-height: 1;
    vertical-align: baseline;
    font-size: inherit;
}
@media (max-width: 767.98px) {
    .trust-item > .trust-ico { flex-basis: 34px; width: 34px; min-width: 34px; height: 34px; }
    .trust-ico .trust-svg { width: 18px; height: 18px; }
}


/* ============================================================
 * v1.22.3 分类层级标记（前台：导航 / 首页 / 全部分类 / 分类页 / 搜索）
 * ============================================================ */
.cat-lv-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border: 1px solid var(--pg-line);
    border-radius: 6px;
    background: color-mix(in srgb, var(--pg-primary) 8%, var(--pg-surface));
    color: var(--pg-primary-deep, var(--pg-primary));
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}
.cat-lv-badge.is-mini { padding: 0 5px; font-size: .6rem; margin-left: 4px; }
.page-eyebrow .cat-lv-badge { margin-left: 8px; }
.crumb-lv {
    margin-left: 5px; padding: 0 5px;
    border-radius: 5px; background: var(--pg-surface-3, rgba(0,0,0,.05));
    color: var(--pg-ink-3); font-size: .62rem; font-weight: 700;
}
.catnav-lv {
    margin-left: auto; padding: 0 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--pg-primary) 9%, var(--pg-surface));
    color: var(--pg-ink-3);
    font-size: .6rem; font-weight: 700; white-space: nowrap;
}
.catnav-mega .dropdown-submenu > a.dropdown-item,
.catnav-mega .dropdown-menu.sub a.dropdown-item { display: flex; align-items: center; gap: 4px; }
.catnav-lv3 { padding-left: 26px !important; font-size: .82rem; color: var(--pg-ink-2); }
.catnav-lv3 > i:first-child { color: var(--pg-ink-3); font-size: .72rem; }
.cat-tile-lv {
    display: block; margin-top: 2px;
    color: var(--pg-ink-3); font-size: .68rem;
}
.allcat-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.allcat-meta .cat-lv-badge { margin-left: 0; }
.allcat-chip { display: inline-flex; align-items: center; gap: 2px; }
.allcat-chip.is-lv3 { background: var(--pg-surface-3, rgba(0,0,0,.04)); font-size: .72rem; }
.filter-link-lv2 { padding-left: 22px !important; font-size: .78rem; color: var(--pg-ink-3); }

/* ============================================================
 * 14. v1.33.0 顶部账户区按设备切换 + 前端细节打磨
 *
 * 背景：前台只加载精简兼容层（tailwind.css），并未加载 bootstrap.min.css；
 *       兼容层缺少 .d-sm-* / .d-lg-inline / .d-xl-inline，且 .d-none /
 *       .d-lg-none 会被 store.css 的组件规则以相同特异性覆盖，于是出现：
 *         · PC 端「人形图标」与「登录/注册」文字按钮同时显示
 *         · 手机端两者挤在一起、文字被裁切
 *         · PC 端仍显示汉堡按钮
 *       这里改用组件级语义类 + 显式断点，不再依赖任何工具类。
 * ============================================================ */

/* PC / 桌面：只显示文字「登录 / 注册」 */
.hd-login-ico {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--sh-primary) 22%, var(--sh-line));
    border-radius: 999px;
    background: var(--sh-primary-soft);
    color: var(--sh-primary);
    font-size: 1.15rem;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.hd-login-ico:hover {
    background: var(--sh-primary); border-color: var(--sh-primary);
    color: #fff; transform: translateY(-1px);
}
.hd-login-text { display: inline-flex; white-space: nowrap; }
.hd-login-text:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -12px var(--sh-primary);
}
.hd-burger { transition: background .18s ease, border-color .18s ease, color .18s ease; }
.hd-burger:hover {
    background: var(--sh-primary-soft);
    border-color: var(--sh-primary); color: var(--sh-primary);
}
@media (min-width: 992px) {
    .hd-burger { display: none !important; }
}

/* 顶条服务承诺：还原 lg / xl 分级显示（兼容层缺少这两个 inline 类） */
@media (max-width: 991.98px) {
    .topstrip-left .ts-item.d-lg-inline,
    .topstrip-left .ts-item.d-xl-inline { display: none !important; }
}
@media (min-width: 992px) {
    .topstrip-left .ts-item.d-lg-inline { display: inline-flex !important; }
}
@media (min-width: 1200px) {
    .topstrip-left .ts-item.d-xl-inline { display: inline-flex !important; }
}

/* 手机 / 平板：只显示登录图标，隐藏文字「登录 / 注册」 */
@media (max-width: 991.98px) {
    .hd-login-ico { display: inline-flex; }
    .hd-login-text { display: none !important; }
    .hd-actions { gap: 8px; }
}

/* 手机端细节：服务承诺缩为 2×2、账户图标与搜索框收齐、主栏更紧凑 */
@media (max-width: 767.98px) {
    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item { padding: 13px 12px; gap: 9px; }
    .trust-item > .trust-ico {
        flex-basis: 32px; width: 32px; min-width: 32px; height: 32px; font-size: .95rem;
    }
    .header-grid { gap: 10px; }
    .hd-search { height: 42px; }
    .hd-login-ico { width: 36px; height: 36px; font-size: 1.08rem; }
}

/* 键盘可达：新增的三个交互元素统一焦点环 */
.hd-login-ico:focus-visible,
.hd-login-text:focus-visible,
.hd-burger:focus-visible { outline: 2px solid var(--sh-primary); outline-offset: 2px; }
