/* ============================================================
   SparkShop 前台样式（灰白极简 · 欧美外贸风 · Jost/Poppins 字体）
   ============================================================ */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/Jost-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/Jost-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair/PlayfairDisplay-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1f2937;        /* 炭灰主色：链接/强调/线框 */
    --primary-dark: #111827;
    --dark: #1f2937;           /* 深灰：页脚 */
    --dark-light: #374151;
    --accent: #e0562f;         /* 暖橙点缀：仅角标/促销 */
    --price: #e02424;          /* 价格红 */
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #f6f7f9;
    --danger: #d64545;
    --success: #18a058;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, .06);
    --shadow-md: 0 6px 24px rgba(17, 24, 39, .10);
    --shadow-lg: 0 14px 40px rgba(17, 24, 39, .14);
    --font-body: 'Jost', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Poppins', 'Jost', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-title: 'Playfair Display', 'Poppins', 'Jost', -apple-system, 'PingFang SC', 'Microsoft YaHei', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 粘性页脚：内容不足一屏时页脚贴底，超出则正常滚动 */
body { display: flex; flex-direction: column; min-height: 100vh; font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.65; }
.main-content { flex: 1 0 auto; width: 100%; }
h1 { font-family: var(--font-title); letter-spacing: 0; }
h2, h3, h4, .btn, .panel-title { font-family: var(--font-display); }
a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============ 数量步进器（商品详情/购物车共用） ============ */
.quantity { display: inline-flex; align-items: center; height: 38px; background: #fff; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.quantity:focus-within { border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(17, 24, 39, .08); }
.quantity button { width: 38px; height: 100%; border: none; background: transparent; color: var(--text); font-size: 18px; font-family: inherit; line-height: 1; cursor: pointer; user-select: none; transition: background .15s, color .15s, transform .1s; }
.quantity button:hover { background: rgba(17, 24, 39, .06); color: var(--primary-dark); }
.quantity button:active { transform: scale(.9); }
.quantity input { width: 48px; height: 100%; border: none; outline: none; background: transparent; text-align: center; font-size: 15px; font-weight: 600; font-family: var(--font-display); color: var(--text); -moz-appearance: textfield; appearance: textfield; }
.quantity input::-webkit-outer-spin-button, .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input:disabled { color: var(--text-light); cursor: not-allowed; }

/* 页面容器：流式宽度，按屏幕分档放大（手机 → 平板 → 2K → 4K） */
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) {
    .container { width: 94%; padding: 0; }
}
@media (min-width: 1400px) {
    .container { width: 92%; max-width: 1340px; }
}
@media (min-width: 1600px) {
    .container { max-width: 1500px; }
}
@media (min-width: 1920px) {
    .container { width: 90%; max-width: 1660px; }
    .search-form { max-width: 700px; }
    .slideshow { aspect-ratio: 2.3 / 1; }
    .slide-text .title { font-size: 48px; }
    .slide-text .description { max-width: 440px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
}
@media (min-width: 2560px) {
    .container { max-width: 1900px; }
    .search-form { max-width: 780px; }
    .slideshow { aspect-ratio: 2 / 1; }
    .slide-text .title { font-size: 52px; }
    .slide-text .description { max-width: 500px; font-size: 16px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* 窄页面容器（商品详情等，比首页窄，避免大屏过宽） */
.page-narrow { max-width: 1120px; margin: 0 auto; }

/* ============ 顶栏（联系信息 / 语言 / 登录） ============ */
.topbar { background: #f4f5f7; color: #4b5563; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 24px; }
.topbar-left { display: flex; align-items: center; gap: 8px; letter-spacing: .2px; }
.topbar .svg-icon { color: #9ca3af; }
.topbar-right { display: flex; align-items: center; gap: 26px; }
.topbar-link { color: #4b5563; display: inline-flex; align-items: center; gap: 6px; }
.topbar-link:hover { color: var(--primary-dark); }
.topbar-sep { width: 1px; height: 14px; background: #d9dde3; }
/* 顶栏"更多"收纳：桌面平铺展示，H5 折叠为下拉 */
.topbar-extra { display: contents; }
.topbar-extra-menu { display: contents; }
.topbar-more-toggle { display: none; }

.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; cursor: pointer; font: inherit; font-size: 13.5px; color: #4b5563; display: flex; align-items: center; gap: 6px; padding: 4px 0; letter-spacing: .2px; transition: color .2s; }
.dropdown-toggle:hover { color: var(--primary-dark); }
.dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu {
    display: block; position: absolute; right: 0; top: calc(100% + 8px);
    background: #fff; border: none; border-radius: var(--radius);
    min-width: 140px; z-index: 600; box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s cubic-bezier(.23,1,.32,1), transform .25s cubic-bezier(.23,1,.32,1), visibility .25s;
}
/* 透明桥接悬停间隙，避免移向菜单时 hover 断链 */
.dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 9px 16px; font-size: 13.5px; color: var(--text); border-radius: 8px; transition: background .15s, color .15s; }
.dropdown-menu li a:hover { background: var(--bg); color: var(--primary-dark); }
.caret { display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 3px; transition: transform .2s; }

/* ============ 主头部（logo / 搜索 / 收藏购物车） ============ */
.header-main { background: #fff; position: sticky; top: 0; z-index: 500; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease; }
.header-main.scrolled { box-shadow: var(--shadow-md); }
/* 三栏：logo/操作区按内容固定宽度，导航列 minmax(0,1fr) 可收缩，避免长导航把两侧图标挤变形 */
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 10px 28px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { max-height: 48px; width: auto; }
.logo-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--dark-light) 0%, var(--primary-dark) 100%); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.5px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(17, 24, 39, .22); }
.logo-text { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--primary-dark); letter-spacing: -.3px; line-height: 1.1; }
.logo-text small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-light); letter-spacing: 2.6px; text-transform: uppercase; }

/* 搜索框：灰色胶囊 */
.search-form { flex: 1; display: flex; align-items: center; max-width: 560px; background: #eef0f3; border: 1.5px solid transparent; border-radius: 999px; padding: 4px 4px 4px 22px; transition: background .2s, border-color .2s, box-shadow .2s; }
.search-form:focus-within { background: #fff; border-color: #9ca3af; box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
.search-form .search-icon { color: var(--text-light); flex-shrink: 0; }
.search-form input { flex: 1; border: none; outline: none; background: transparent; padding: 9px 14px; font-size: 15px; font-family: inherit; color: var(--text); min-width: 0; }
.search-form input::placeholder { color: #9aa5b5; }
.search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--primary); color: #fff; border: none; border-radius: 999px; padding: 9px 24px; cursor: pointer; font-size: 14px; font-family: var(--font-display); font-weight: 500; transition: background .2s, transform .15s; }
.search-form button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* 收藏 / 购物车 / 搜索图标 */
.header-actions { display: flex; align-items: center; justify-self: end; gap: 14px; }
.header-icon { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text); transition: background .2s, color .2s; flex-shrink: 0; }
.header-icon:hover { background: var(--bg); color: var(--primary-dark); }
button.header-icon { border: none; background: none; cursor: pointer; font: inherit; }
.header-icon .svg-icon { width: 24px; height: 24px; }
.header-icon .icon-label { font-size: 12px; color: var(--text-light); letter-spacing: .3px; white-space: nowrap; }
.header-icon:hover .icon-label { color: var(--primary-dark); }
/* 图标定位上下文：角标锚定到图标本身，而非整列容器 */
.icon-wrap { position: relative; display: inline-flex; }
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
/* 0 数量时不显示角标 */
.badge[hidden] { display: none; }

/* ============ 搜索遮罩层（从顶部滑下 + 半透明背景） ============ */
.search-backdrop {
    position: fixed; inset: 0; z-index: 990;
    background: rgba(17, 24, 39, .52);
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}
.search-backdrop.show { opacity: 1; visibility: visible; }
.search-overlay {
    position: fixed; left: 0; right: 0; top: 0; z-index: 1000;
    background: #fff; box-shadow: var(--shadow-lg);
    transform: translateY(-102%); opacity: 0;
    max-height: 92vh; overflow-y: auto;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .32s ease;
}
.search-overlay.open { transform: translateY(0); opacity: 1; }
.search-overlay-inner { position: relative; padding: 44px 28px 48px; }
.search-close {
    position: absolute; right: 32px; top: 36px; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; background: var(--bg); color: var(--text-light); cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.search-close:hover { background: var(--primary-dark); color: #fff; transform: rotate(90deg); }
.search-close svg { width: 19px; height: 19px; }
.overlay-search-form {
    display: flex; align-items: center; max-width: 860px; margin: 0 auto;
    background: #eef0f3; border: 1.5px solid transparent; border-radius: 999px;
    padding: 6px 6px 6px 26px;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.overlay-search-form:focus-within { background: #fff; border-color: #9ca3af; box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
.overlay-search-form .search-icon { color: var(--text-light); flex-shrink: 0; }
.overlay-search-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 12px 16px; font-size: 19px; font-family: inherit; color: var(--text); }
.overlay-search-form input::placeholder { color: #9aa5b5; }
.overlay-search-form button {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
    background: var(--primary); color: #fff; border: none; border-radius: 999px;
    padding: 12px 36px; cursor: pointer; font-size: 15.5px; font-family: var(--font-display); font-weight: 500;
    transition: background .2s, transform .15s;
}
.overlay-search-form button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.search-hot { max-width: 860px; margin: 24px auto 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hot-label { display: inline-flex; align-items: center; gap: 5px; color: var(--price); font-size: 13px; font-weight: 600; }
.hot-chip { padding: 7px 18px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 13.5px; transition: background .2s, color .2s, transform .15s; }
.hot-chip:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.search-recommend { max-width: 1160px; margin: 30px auto 0; }
.recommend-title { font-size: 15px; font-weight: 600; color: var(--dark-light); margin-bottom: 16px; letter-spacing: .3px; }
.recommend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.rc-item {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.rc-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.rc-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1f3f5; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.rc-item:hover img { transform: scale(1.05); }
.rc-info { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 4px; }
.rc-name { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-price { font-size: 16.5px; font-weight: 600; color: var(--price); font-family: var(--font-display); }

/* ============ 主导航（头部居中，hover 下划线 + 二级下拉） ============ */
/* 导航过长时自身横向滚动，不再挤压两侧 logo / 图标区 */
.header-nav { justify-self: center; min-width: 0; max-width: 100%; }
.nav-list { display: flex; gap: 6px; flex-wrap: nowrap; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li { position: relative; flex-shrink: 0; }
.nav-list > li > a {
    position: relative; display: inline-flex; align-items: center; gap: 5px;
    padding: 16px 16px;
    color: var(--dark-light); font-weight: 600; font-size: 16px;
    text-transform: uppercase; letter-spacing: 1.2px;
    transition: color .2s ease;
}
.nav-list > li > a::after {
    content: ''; position: absolute; left: 20px; right: 20px; bottom: 22px;
    height: 2.5px; background: var(--primary-dark); border-radius: 2px;
    bottom: 10px;
    transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.nav-list > li > a:hover { color: var(--primary-dark); }
.nav-list > li > a:hover::after { transform: scaleX(1); }
.nav-caret { display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 3px; transition: transform .25s ease; }
.nav-badge {
    display: inline-block; vertical-align: 1px; margin-left: 5px; padding: 0 7px;
    border-radius: 9px; font-size: 11px; line-height: 17px; font-weight: 600; letter-spacing: 0;
}

/* 二级下拉面板：3 列紧凑网格 + 右侧大图 */
.nav-dropdown {
    position: absolute; left: 0; top: 100%; z-index: 400;
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, auto)) 206px;
    grid-auto-rows: minmax(0, auto);
    gap: 20px 34px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 24px 26px;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-caret { transform: rotate(180deg); }
.dropdown-col { min-width: 0; }
.dropdown-col-title {
    display: block; padding: 4px 0 10px; margin-bottom: 8px;
    font-weight: 600; font-size: 12.5px; color: var(--primary-dark);
    text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 1px solid var(--border);
}
.dropdown-col-title:hover { color: var(--primary-dark); }
.dropdown-col > a:not(.dropdown-col-title) {
    display: block; padding: 7px 0; font-size: 13.5px; color: var(--text-light); white-space: nowrap;
    transition: color .2s, padding-left .2s;
}
.dropdown-col > a:not(.dropdown-col-title):hover { color: var(--primary-dark); padding-left: 5px; }

/* 自定义导航:图片型分组 */
.menu-group-media {
    display: block; width: 170px; margin-top: 4px; border-radius: 8px; overflow: hidden;
    position: relative;
}
.menu-group-media img { display: block; width: 100%; height: 110px; object-fit: cover; }
.menu-group-media span {
    display: block; padding: 6px 8px; font-size: 12px; color: var(--text-light); background: #fff;
}

/* 下拉面板大图（占右侧一列，跨所有行） */
.dropdown-media {
    position: relative; grid-column: 4; grid-row: 1 / span 2;
    border-radius: 10px; overflow: hidden; display: flex; min-height: 180px;
}
.dropdown-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.dropdown-media:hover img { transform: scale(1.06); }
.dropdown-media-text {
    position: relative; margin-top: auto; padding: 14px 16px; width: 100%;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, .72));
    color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.dropdown-media-text em { font-style: normal; font-weight: 600; font-size: 14px; }
.dropdown-media-text i { font-style: normal; font-size: 12px; opacity: .85; }

/* 简单下拉（文章分类等单列） */
.nav-dropdown-simple { display: flex; flex-direction: column; gap: 2px; padding: 10px; min-width: 170px; }
.nav-dropdown-simple a {
    display: block; padding: 8px 16px; font-size: 13.5px; color: var(--text); border-radius: 7px; white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-dropdown-simple a:hover { background: var(--bg); color: var(--primary-dark); }

/* ============ 主体 ============ */
.main-content { min-height: 500px; padding: 32px 28px 64px; background: var(--bg); }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ============ 商品网格 ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { position: relative; background: #fff; border: none; border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .45s cubic-bezier(.23,1,.32,1), transform .45s cubic-bezier(.23,1,.32,1); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.product-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.12); transform: translateY(-8px); }
.product-card .product-img { display: block; aspect-ratio: 1; overflow: hidden; background: #f5f6f8; position: relative; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.23,1,.32,1); }
.product-card:hover .product-img img { transform: scale(1.12); }
/* 悬浮暗色遮罩 */
.product-card .product-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .4s; pointer-events: none; }
.product-card:hover .product-img::after { background: rgba(0,0,0,.08); }
.product-card .product-body { padding: 16px 18px 18px; }
.product-card .product-name { font-size: 14.5px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.product-card .product-name a:hover { color: var(--primary-dark); }
.product-card .product-price { color: var(--price); font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-top: 8px; }
.product-card .product-price .origin { color: #b3bcc9; font-size: 12.5px; text-decoration: line-through; font-weight: 400; margin-left: 8px; font-family: var(--font-body); }
.product-card .product-sales { color: var(--text-light); font-size: 12.5px; margin-top: 5px; }

/* 商品图悬浮操作（加购 / 收藏） */
.product-hover-actions {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
    display: flex; gap: 8px; padding: 32px 14px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 100%);
    transform: translateY(100%); opacity: 0;
    transition: transform .4s cubic-bezier(.23,1,.32,1), opacity .35s ease;
}
.product-card:hover .product-hover-actions { transform: translateY(0); opacity: 1; }
.pha-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: none; cursor: pointer; font-family: var(--font-display); font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 10px 18px;
    transition: background .2s, transform .15s, color .2s;
}
.pha-btn svg { width: 16px; height: 16px; }
.pha-btn:hover { background: #fff; color: var(--primary-dark); transform: translateY(-1px); }
.pha-wish { padding: 9px 12px; flex-shrink: 0; }
.pha-wish:hover { background: #fff; color: var(--price); }
@media (hover: none) {
    .product-hover-actions { transform: none; opacity: 1; }
}

.desc-content :where(img) { max-width: 100%; height: auto; }
/* 富文本（文章页/首页 rich_text 模块）图片受容器约束，防止撑破手机屏；
   :where 保持零特异性，避免覆盖 pay-icon 等自身声明了尺寸的图标 */
.panel :where(img) { max-width: 100%; height: auto; }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 999px; padding: 0 10px; font-size: 14px; background: #fff; transition: border-color .2s, color .2s, background .2s; }
.pagination a:hover { border-color: var(--dark-light); color: var(--primary-dark); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { color: #c3cbd6; background: transparent; pointer-events: none; }
.pagination .dots { border: none; background: transparent; min-width: 28px; color: var(--text-light); }

/* ============ 分类页/搜索页布局 ============ */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.shop-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; position: sticky; top: 20px; }
/* H5 筛选抽屉：开关与遮罩仅手机端显示 */
.shop-filter-btn { display: none; }
.shop-filter-mask { display: none; }
.filter-section { margin-bottom: 20px; }
.filter-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,.05); }
.filter-section:last-child { margin-bottom: 0; }

/* 分类树 */
.sidebar-cats { list-style: none; }
.sidebar-cats > li > .sidebar-cat-link { font-size: 14px; font-weight: 500; }
.sidebar-cats a { display: block; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text); transition: background .2s, color .2s; font-size: 13.5px; }
.sidebar-cats a:hover { background: rgba(0,0,0,.04); color: var(--primary-dark); }
.sidebar-cats > li.active > .sidebar-cat-link, .sidebar-cats .sidebar-sub-cats li.active > a {
    background: rgba(255,255,255,.9);
    color: var(--primary-dark);
    font-weight: 600;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.5);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}
.sidebar-sub-cats { list-style: none; padding-left: 14px; margin: 2px 0 4px; border-left: 1px solid var(--border); }

/* 属性筛选标签 */
.filter-values { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag { display: inline-block; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; margin: 0; font-size: 12.5px; color: var(--text-light); background: #fff; transition: border-color .2s, color .2s, background .2s; }
.filter-tag:hover { border-color: var(--primary); color: var(--primary); }
.filter-tag.active {
    background: rgba(255,255,255,.9);
    border-color: var(--primary);
    color: var(--primary-dark);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.5);
    font-weight: 600;
}
.filter-clear { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--accent); }
.filter-clear:hover { text-decoration: underline; }

/* 价格区间 */
.price-inputs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.price-inputs input { width: 0; flex: 1; min-width: 0; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 8px; font-size: 13px; font-family: var(--font-body); color: var(--text); outline: none; transition: border-color .2s; }
.price-inputs input:focus { border-color: var(--primary); }
.price-inputs span { color: var(--text-light); font-size: 12px; flex-shrink: 0; }
.price-submit { width: 100%; height: 32px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; transition: background .2s; font-family: var(--font-body); }
.price-submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* 工具栏 */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.toolbar-form { display: flex; gap: 8px; align-items: center; }
.toolbar-select { height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; padding: 0 10px; font-size: 13px; color: var(--text); font-family: var(--font-body); cursor: pointer; outline: none; }
.toolbar-select:focus { border-color: var(--primary); }

/* 自定义下拉（工具栏排序/每页条数，替代原生 select 外观） */
.nice-select { position: relative; display: inline-flex; }
.nice-select-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, color .2s; }
.nice-select-toggle:hover { border-color: rgba(17, 24, 39, .28); color: var(--primary-dark); }
.nice-select.open .nice-select-toggle { border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(17, 24, 39, .08); }
.ns-caret { display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 2px; transition: transform .2s; }
.nice-select.open .ns-caret { transform: rotate(180deg); }
.nice-select-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.nice-select.open .nice-select-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nice-select-menu li { list-style: none; padding: 8px 14px; font-size: 13px; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.nice-select-menu li:hover { background: var(--bg); color: var(--primary-dark); }
.nice-select-menu li.active { color: var(--primary-dark); font-weight: 600; background: rgba(17, 24, 39, .05); }

/* 表单下拉增强（sparkSelect 渲染层，替代表单内原生 select 外观，样式与 .form-item 输入框对齐） */
.spark-select { position: relative; display: block; width: 100%; }
.spark-select-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 16px; background: #fafbfc; border: 1.5px solid rgba(0,0,0,.1); border-radius: var(--radius); cursor: pointer; font: inherit; font-size: 14.5px; color: var(--text); outline: none; text-align: left; transition: border-color .25s, box-shadow .25s, background .2s; }
.spark-select-toggle:hover { border-color: rgba(17, 24, 39, .28); }
.spark-select.open .spark-select-toggle, .spark-select-toggle:focus-visible { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
.spark-select-toggle:disabled { opacity: .55; cursor: not-allowed; }
.spark-select-toggle .ss-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-caret { flex-shrink: 0; width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--text-light); transition: transform .2s; }
.spark-select.open .ss-caret { transform: rotate(180deg); }
.spark-select-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 80; width: max-content; min-width: 100%; max-width: calc(100vw - 40px); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.spark-select.open .spark-select-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.spark-select-menu li { padding: 9px 12px; font-size: 13.5px; color: var(--text); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.spark-select-menu li:hover { background: var(--bg); color: var(--primary-dark); }
.spark-select-menu li.active { color: var(--primary-dark); font-weight: 600; background: rgba(17, 24, 39, .05); }
.spark-select-menu li.disabled { color: var(--text-light); opacity: .6; cursor: not-allowed; }
.spark-select-menu li.ss-empty { color: var(--text-light); cursor: default; background: none; }

.sort-group { display: flex; gap: 4px; }
.sort-group a { padding: 5px 10px; border-radius: 999px; font-size: 13px; color: var(--text-light); transition: color .2s, background .2s; }
.sort-group a:hover { color: var(--primary-dark); }
.sort-group a.active { color: var(--primary); background: rgba(31,41,55,.06); font-weight: 600; }

/* 分类介绍（紧凑卡片：小图 + 名称/介绍并排） */
.category-intro { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.category-intro-avatar { width: 140px; height: 140px; border-radius: var(--radius); overflow: hidden; background: var(--bg); flex-shrink: 0; }
.category-intro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.category-intro-text { flex: 1; min-width: 0; }
.category-intro-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.2px; }
.category-intro-desc { font-size: 13.5px; color: var(--text-light); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 子分类导航 */
.sub-cats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.sub-cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px; min-width: 100px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.sub-cat-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.sub-cat-item img { max-height: 56px; max-width: 90px; object-fit: contain; }
.sub-cat-item span { font-size: 13px; color: var(--text); }

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    /* H5 筛选抽屉：侧栏从左侧滑出，与账户中心抽屉同款交互 */
    .shop-filter-toggle { display: none; }
    .shop-sidebar {
        display: block; position: fixed; top: 0; left: 0; bottom: auto; z-index: 1410;
        height: 100vh; height: 100dvh; width: 82%; max-width: 320px;
        border-radius: 0; transform: translateX(-105%); transition: transform .28s ease;
        overflow-y: auto; box-shadow: none;
    }
    .shop-sidebar.open { transform: translateX(0); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
    .shop-filter-mask {
        display: block; position: fixed; inset: 0; z-index: 1400;
        background: rgba(17,24,39,.45); opacity: 0; visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .shop-filter-mask.show { opacity: 1; visibility: visible; }
    .shop-filter-btn {
        display: flex; align-items: center; gap: 8px; width: 100%;
        padding: 11px 16px; background: #fff; border: 1px solid var(--border);
        border-radius: var(--radius); font-size: 14px; font-weight: 600;
        color: var(--text); cursor: pointer; margin-bottom: 12px; font-family: var(--font-display);
    }
    .shop-filter-btn-icon { display: inline-flex; flex-direction: column; gap: 3px; }
    .shop-filter-btn-icon i { width: 14px; height: 2px; border-radius: 1px; background: var(--accent); }
    .sort-group { flex-wrap: wrap; }
    .category-intro { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
    .category-intro-avatar { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* ============ 区块标题 ============ */
.section { margin-bottom: 52px; }
.section-title { font-family: var(--font-title); font-size: 27px; font-weight: 600; margin-bottom: 26px; text-align: center; position: relative; letter-spacing: 0; }
.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    margin: 10px auto 0;
    background: linear-gradient(
        90deg,
        var(--primary-dark) 0%,
        var(--primary-dark) 32%,
        rgba(255, 255, 255, 0.85) 50%,
        var(--primary-dark) 68%,
        #9ca3af 100%
    );
    background-size: 300% 100%;
    animation: titleShimmer 3.5s ease-in-out infinite;
}
@keyframes titleShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.section-title::before { content: none; }

/* ============ 轮播 — 裁切揭幕 + 视差分栏 ============ */
.slideshow { position: relative; overflow: hidden; margin-bottom: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 2.6 / 1; background: #111; }
.slideshow .slides-track { position: relative; width: 100%; height: 100%; }
.slideshow .slide { position: absolute; inset: 0; z-index: 0; clip-path: inset(0 0 0 100%); will-change: clip-path; }
.slideshow .slide.active { z-index: 2; clip-path: inset(0 0 0 0); animation: wipeIn 1s cubic-bezier(.77,0,.18,1) forwards; }
.slideshow .slide.leaving { z-index: 1; clip-path: inset(0 0 0 0); animation: wipeOut .8s cubic-bezier(.77,0,.18,1) forwards; }
@keyframes wipeIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
.slideshow .slide-img { position: absolute; inset: 0; }
.slideshow .slide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s cubic-bezier(.25,.46,.45,.94); }
.slideshow .slide.active .slide-img img { transform: scale(1); }
/* 遮罩：左侧深色区域保证文字可读，右侧透明展示图片 */
.slideshow .slide-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.12) 65%, transparent 100%); }
/* 文字区域：左侧 45%，垂直居中 */
.slide-text { position: absolute; z-index: 3; top: 0; left: 0; bottom: 0; width: 45%; display: flex; flex-direction: column; justify-content: center; padding: 0 7%; color: #fff; }
.slide-text .sub_title { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 4px; opacity: .75; margin-bottom: 16px; }
.slide-text .title { font-family: var(--font-title); font-size: 44px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.4px; line-height: 1.12; }
.slide-text .description { font-size: 15px; opacity: .85; margin-bottom: 30px; max-width: 380px; line-height: 1.7; }
.slide-text .btn { align-self: flex-start; background: #fff; color: #111; border-color: #fff; font-weight: 600; }
.slide-text .btn:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
/* 文字入场：clip-path 从左到右展开 + 位移 */
.slideshow .slide.active .slide-text .sub_title { animation: textMask .5s .2s cubic-bezier(.77,0,.18,1) both; }
.slideshow .slide.active .slide-text .title { animation: textMask .6s .35s cubic-bezier(.77,0,.18,1) both; }
.slideshow .slide.active .slide-text .description { animation: textMask .55s .5s cubic-bezier(.77,0,.18,1) both; }
.slideshow .slide.active .slide-text .btn { animation: textMask .5s .65s cubic-bezier(.77,0,.18,1) both; }
@keyframes textMask { from { opacity: 0; transform: translateX(-30px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); } }
/* 导航箭头 */
.slide-arrow { position: absolute; top: 50%; z-index: 10; width: 52px; height: 52px; margin-top: -26px; border: 2px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transition: opacity .3s, background .2s, border-color .2s, transform .2s; display: flex; align-items: center; justify-content: center; line-height: 1; }
.slide-prev { left: 24px; }
.slide-next { right: 24px; }
.slideshow:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.slide-arrow:active { transform: scale(.92); }
/* 圆点指示器：底部居中，胶囊样式 */
.slide-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: width .4s cubic-bezier(.23,1,.32,1), background .3s, border-radius .3s; border: none; padding: 0; }
.slide-dot.active { width: 24px; border-radius: 4px; background: #fff; }
/* 进度条 */
.slide-progress { position: absolute; bottom: 0; left: 0; z-index: 10; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transition: width linear; }

/* ============ 按钮 ============ */
/* 默认按钮：白底细边扁平款（hover 反色），不使用大阴影/浮起 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 30px; border-radius: 14px; border: 1px solid var(--text); background: #fff; color: var(--text); cursor: pointer; font-size: 14.5px; font-weight: 600; text-align: center; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--text); border-color: var(--text); color: #fff; }
.btn:active { opacity: .88; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: rgba(17, 24, 39, .04); border-color: var(--primary); color: var(--primary); }
/* 实心主色按钮：弹窗/操作区里的"确定"项，用价格红（与结算页去支付按钮同款），与描边"取消"形成强弱对比 */
.btn-primary { background: var(--price); border-color: var(--price); color: #fff; }
.btn-primary:hover { background: #c51d1d; border-color: #c51d1d; color: #fff; }
/* 红色描边按钮：危险操作（如订单详情“申请退款”）文字红色标注 */
.btn-outline-danger { color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
/* 订单操作按钮：固定高度 + line-height + text-align 居中，不受字体度量影响 */
.order-actions-row .btn { display: inline-block; height: 44px; line-height: 44px; text-align: center; padding: 0 30px; }
/* 订单状态标签（订单详情右上角）：待支付灰、已支付/已完成绿、已发货蓝、退款中橙、已取消红 */
.order-status { float: right; padding: 2px 10px; border-radius: 10px; font-size: 13px; color: #fff; background: #6b7280; }
.order-status-unpaid { background: #6b7280; }
.order-status-paid, .order-status-completed { background: #16a34a; }
.order-status-shipped { background: #2563eb; }
.order-status-refunding { background: #f59e0b; }
.order-status-cancelled { background: var(--danger); }
.order-status-rma { background: var(--accent); font-size: 12px; }
/* 订单列表：订单号下方的红色售后标记（点击跳转该订单的售后单） */
.order-rma-flag { display: block; margin-top: 3px; color: var(--danger); font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
.order-rma-flag:hover { color: var(--price); }
/* 修改密码：邮箱提示 + 验证码 + 密码可见性切换 */
.pwd-email-tip { margin: 0 0 16px; font-size: 13px; color: var(--text-light); line-height: 1.7; }
.pwd-field { position: relative; }
.pwd-field input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; background: none; border: none; cursor: pointer; color: var(--text-light); padding: 6px; border-radius: 6px; transition: color .2s; }
.pwd-eye:hover { color: var(--text); }
.pwd-eye svg { width: 19px; height: 19px; pointer-events: none; }
.pwd-eye .icon-eye-off { display: none; }
.pwd-field.show .icon-eye { display: none; }
.pwd-field.show .icon-eye-off { display: block; }
.btn-lg { padding: 14px 40px; font-size: 15.5px; border-radius: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 10px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c03a3a; border-color: #c03a3a; box-shadow: 0 10px 28px rgba(214, 69, 69, .25); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
/* 毛玻璃白按钮：与商品详情页“加入购物车”一致 */
.btn-glass { position: relative; overflow: hidden; background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.1); color: var(--primary-dark); backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: all .25s cubic-bezier(.23,1,.32,1); }
.btn-glass::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transition: left .5s ease; }
.btn-glass:hover { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.1); color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.btn-glass:hover::before { left: 100%; }
.btn-glass:active { transform: translateY(0); }
.btn-glass:disabled { background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.1); }

/* ============ 表单 ============ */
.form-item { margin-bottom: 20px; }
.form-item label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13.5px; letter-spacing: .2px; }
.form-item input[type=text], .form-item input[type=password], .form-item input[type=email], .form-item input[type=number], .form-item input[type=tel], .form-item select, .form-item textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid rgba(0,0,0,.1); border-radius: var(--radius); font-size: 14.5px; font-family: inherit; outline: none; background: #fafbfc; transition: border-color .25s, box-shadow .25s, background .2s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
.form-item .error-tip { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.required label::after { content: ' *'; color: var(--danger); }

/* ============ 文章卡片（首页底部） ============ */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.article-card { background: #fff; border: none; border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .45s cubic-bezier(.23,1,.32,1), transform .45s cubic-bezier(.23,1,.32,1); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.article-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.12); transform: translateY(-8px); }
.article-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f5f6f8; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.23,1,.32,1); }
.article-card:hover .article-img img { transform: scale(1.08); }
.article-body { padding: 20px 22px 22px; }
.article-date { font-size: 11.5px; color: var(--text-light); letter-spacing: .8px; text-transform: uppercase; font-weight: 500; }
.article-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.article-title a:hover { color: var(--primary-dark); }
.article-summary { font-size: 13.5px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--primary-dark); transition: padding-left .25s, color .2s; }
.article-more:hover { color: var(--primary-dark); padding-left: 6px; }

/* ============ 卡片面板 ============ */
.panel { background: #fff; border: none; border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.panel + .panel { margin-top: 20px; }
.panel-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.06); }

/* ============ 空数据 ============ */
.no-data { text-align: center; color: var(--text-light); padding: 70px 0; }
.no-data .icon { font-size: 46px; margin-bottom: 12px; }

/* ============ 页脚 ============ */
.site-footer { background: linear-gradient(180deg, #0f1117 0%, #181b24 100%); color: #9ca3af; margin-top: 64px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding: 32px 0; }
.footer-inner .footer-brand { flex: 1.5; min-width: 220px; }
.footer-inner .footer-col:not(.footer-brand) { flex: 1; min-width: 150px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-socials a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .25s, padding-left 0s; }
.footer-socials a:hover { background: rgba(255,255,255,.18); padding-left: 0; }
.footer-socials img { width: 16px; height: 16px; object-fit: contain; display: block; }
.footer-address { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: .3px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { display: block; height: 34px; width: auto; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; transition: color .25s, padding-left .25s cubic-bezier(.23,1,.32,1); }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-text { font-size: 13px; line-height: 1.7; color: #9ca3af; }
.footer-articles a {
    display: block; max-width: 260px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.footer-more { color: #6b7280 !important; font-size: 12.5px; margin-top: 4px; }
.footer-more:hover { color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; text-align: center; color: #6b7280; }

/* ============ 提示条 ============ */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13.5px; }
.alert-success { background: #effaf4; color: var(--success); border: 1px solid #b5ebc8; }
.alert-danger { background: #fdf1f1; color: var(--danger); border: 1px solid #f3c6c6; }
.alert-info { background: #f4f5f7; color: var(--dark-light); border: 1px solid #d9dde3; }

/* ============ Toast ============ */
.toast { position: fixed; top: 90px; left: 50%; transform: translate(-50%, -16px); z-index: 999; padding: 12px 26px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--dark); }

/* ============ 确认弹窗（sparkConfirm） ============ */
.confirm-mask { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(17, 24, 39, .45); opacity: 0; transition: opacity .2s ease; }
.confirm-mask.show { opacity: 1; }
.confirm-box { width: 340px; max-width: calc(100vw - 48px); background: #fff; border-radius: 14px; padding: 22px 22px 18px; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .2s ease; }
.confirm-mask.show .confirm-box { transform: translateY(0); }
.confirm-msg { font-size: 15px; line-height: 1.6; color: var(--text); }
.confirm-acts { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.confirm-acts .btn { display: inline-block; height: 38px; line-height: 38px; text-align: center; padding: 0 24px; }

/* ============ 滚动渐显动画 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.4, 0, .2, 1), transform .65s cubic-bezier(.4, 0, .2, 1); will-change: opacity, transform; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

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

/* ============ 个人中心布局 ============ */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.account-sidebar {
    background: #fff; border: none; border-radius: var(--radius-lg);
    align-self: start; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.account-sidebar h3 {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: var(--primary-dark); letter-spacing: .5px;
    padding: 22px 22px 16px; margin: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.account-sidebar ul { padding: 8px 0; }
.account-sidebar ul li a {
    display: flex; align-items: center;
    padding: 12px 22px; font-size: 14px; color: var(--text);
    border-left: 3px solid transparent;
    transition: background .25s, color .2s, border-color .25s;
}
.account-sidebar ul li a:hover {
    background: rgba(0,0,0,.03); color: var(--primary-dark);
}
.account-sidebar ul li a.active {
    background: linear-gradient(135deg, rgba(224,86,47,.12), rgba(240,124,83,.20));
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(224,86,47,.12);
}
/* H5 抽屉菜单：遮罩与开关按钮仅手机端显示 */
.account-drawer-mask { display: none; }
.account-menu-toggle { display: none; }

/* 表格横向滚动容器：窄屏滑动查看，不挤压变形 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }
.table-scroll table { min-width: 620px; }

/* 账户订单表格 */
.account-orders { width: 100%; border-collapse: collapse; table-layout: auto; }
.account-orders th { white-space: nowrap; }
.account-orders th, .account-orders td {
    padding: 10px 12px; text-align: left; vertical-align: middle;
}
.account-orders th {
    font-size: 13px; font-weight: 500; color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
.account-orders td {
    font-size: 14px; border-bottom: 1px solid var(--border);
}
.account-orders .order-total { color: var(--danger); font-weight: 600; }
.account-orders .order-time { font-size: 13px; color: var(--text-light); }

/* ============ 响应式：手机 ============ */
@media (max-width: 768px) {
    .container { width: 100%; padding: 0 16px; }
    body { font-size: 14.5px; }
    .topbar-inner { justify-content: center; }
    .topbar-left { display: none; }
    .topbar-right { gap: 16px; }
    /* 顶栏：货币/语言保留，其余收进"更多"下拉 */
    .topbar-extra { display: block; position: relative; }
    .topbar-more-toggle {
        display: inline-flex; align-items: center; gap: 4px;
        background: none; border: none; padding: 0;
        color: #4b5563; font-size: inherit; font-family: inherit; cursor: pointer;
    }
    .topbar-more-toggle:hover { color: var(--primary-dark); }
    .topbar-extra-menu {
        display: none; position: absolute; right: 0; top: calc(100% + 10px);
        flex-direction: column; align-items: stretch;
        background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md); min-width: 150px; padding: 6px 0; z-index: 1600;
    }
    .topbar-extra.open .topbar-extra-menu { display: flex; }
    .topbar-extra-menu .topbar-link { padding: 10px 18px; white-space: nowrap; }
    .header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px; }
    /* logo 与工具栏同一行：logo 缩小并占据剩余宽度，图标收紧内边距 */
    .site-logo { flex: 1; min-width: 0; }
    .site-logo img { max-height: 30px; }
    .header-icon { padding: 6px 6px; }
    .logo-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; }
    .logo-text { font-size: 20px; }
    .logo-text small { font-size: 9px; letter-spacing: 2px; }
    .header-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .nav-list > li > a { padding: 10px 14px; white-space: nowrap; }
    .nav-list > li > a::after { bottom: 5px; left: 14px; right: 14px; }
    .header-actions { gap: 4px; }
    .header-icon { padding: 6px 8px; }
    .header-icon .icon-label { display: none; }
    .nav-list { overflow-x: auto; }
    .search-overlay-inner { padding: 26px 16px 30px; }
    .search-close { right: 16px; top: 20px; width: 36px; height: 36px; }
    .overlay-search-form input { font-size: 16px; }
    .search-overlay { max-height: 88vh; }
    .recommend-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .nav-dropdown { display: none; }
    .nav-caret { display: none; }
    .main-content { padding: 20px 16px 48px; }
    .section { margin-bottom: 36px; }
    .section-title { font-size: 20px; margin-bottom: 18px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    /* H5：加购/收藏缩为右下角小圆钮，避免大面积遮图 */
    .product-hover-actions { flex-direction: row; justify-content: flex-end; align-items: center; gap: 6px; padding: 14px 8px 8px; }
    .pha-btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; gap: 0; flex-shrink: 0; }
    .pha-btn svg { width: 15px; height: 15px; }
    .pha-text { display: none; }
    .product-card .product-body { padding: 10px 12px 12px; }
    .product-card .product-name { font-size: 13px; height: 40px; }
    .product-card .product-price { font-size: 16px; }
    .slideshow { aspect-ratio: 1.4 / 1; border-radius: var(--radius); }
    .slideshow .slide-overlay { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 100%); }
    .slide-text { width: 100%; left: 0; right: 0; bottom: 0; top: auto; padding: 20px 6% 28px; text-align: center; align-items: center; }
    .slide-text .title { font-size: 22px; }
    .slide-text .sub_title { font-size: 10px; letter-spacing: 2px; }
    .slide-text .description { display: none; }
    .slide-text .btn { padding: 8px 20px; font-size: 13px; }
    .slide-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 20px; border-radius: 10px; opacity: .8; }
    .slide-prev { left: 10px; }
    .slide-next { right: 10px; }
    .slide-dots { bottom: 12px; padding: 4px 10px; }
    .slide-dot { width: 6px; height: 6px; }
    .slide-dot.active { width: 18px; }
    .panel { padding: 18px 16px; border-radius: var(--radius-sm); }
    /* 页脚：容器本身是 flex，需切换为 grid 才能整列堆叠 */
    .footer-inner { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
    .footer-inner .footer-col, .footer-inner .footer-brand { min-width: 0; }
    .footer-logo img { height: 28px; }
    .site-footer { margin-top: 36px; }
    .site-footer .container { padding-left: 24px; padding-right: 24px; }
    .footer-articles a { max-width: 100%; }
    .article-grid { grid-template-columns: 1fr; gap: 16px; }
    .article-title { min-height: 0; }
    .pagination a, .pagination span { min-width: 34px; height: 34px; }
    .account-layout { grid-template-columns: 1fr !important; gap: 16px; }
    /* 抽屉开关按钮 */
    .account-menu-toggle {
        display: flex; align-items: center; gap: 10px; width: 100%;
        padding: 12px 16px; font-family: var(--font-display); font-size: 14px; font-weight: 600;
        color: var(--text); background: #fff; border: 1px solid var(--border);
        border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer;
    }
    .account-menu-toggle-icon { display: inline-flex; flex-direction: column; gap: 3px; }
    .account-menu-toggle-icon i { width: 16px; height: 2px; border-radius: 1px; background: var(--accent); }
    /* 半透明遮罩 */
    .account-drawer-mask {
        display: block; position: fixed; inset: 0; z-index: 1400;
        background: rgba(17,24,39,.45); opacity: 0; visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .account-drawer-mask.show { opacity: 1; visibility: visible; }
    /* 左侧滑出抽屉（显式 100dvh：top+bottom 在部分浏览器会被内容撑开导致不触底） */
    .account-sidebar {
        position: fixed; top: 0; left: 0; bottom: auto; z-index: 1410;
        height: 100vh;
        height: 100dvh;
        width: 80%; max-width: 300px; border-radius: 0;
        transform: translateX(-105%); transition: transform .28s ease;
        overflow-y: auto; padding-bottom: 24px; box-shadow: none;
    }
    .account-sidebar.open { transform: translateX(0); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
    .account-sidebar h3 { display: block; border-bottom: 1px solid var(--border); }
    .account-sidebar ul { display: block; padding: 8px 0; }
    .account-sidebar ul li a {
        padding: 13px 22px; font-size: 14px; border-radius: 0;
        border-left: 3px solid transparent; background: none; white-space: nowrap;
    }
    .account-sidebar ul li a.active {
        background: linear-gradient(135deg, rgba(224,86,47,.12), rgba(240,124,83,.20));
        color: var(--accent); border-left-color: var(--accent); font-weight: 600;
    }
    .account-sidebar ul li a:hover { background: rgba(0,0,0,.03); }
    /* 账户表格转卡片：标签在左、值在右 */
    .table-scroll { overflow-x: visible; }
    .table-scroll table { min-width: 0; }
    .account-orders thead { display: none; }
    .account-orders, .account-orders tbody { display: block; width: 100%; }
    .account-orders tr {
        display: block; background: #fff; border: 1px solid var(--border);
        border-radius: var(--radius); padding: 2px 14px; margin-bottom: 12px;
        box-shadow: var(--shadow-sm);
    }
    .account-orders tr:last-child { margin-bottom: 0; }
    .account-orders td {
        display: flex; align-items: center; justify-content: space-between; gap: 16px;
        padding: 10px 0; text-align: right; border-bottom: 1px dashed var(--border);
    }
    .account-orders td:last-child { border-bottom: none; }
    .account-orders td::before {
        content: attr(data-label); color: var(--text-light);
        font-size: 13px; text-align: left; flex-shrink: 0;
    }
    .account-orders td span { display: block; }
    .account-orders td .btn { flex-shrink: 0; }
}


/* Cookie 同意提示(跨境站点合规) */
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    animation: cookie-up .3s ease;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-box {
    background: #fff; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
    padding: 16px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-consent-text { flex: 1; min-width: 260px; }
.cookie-consent-text b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--primary-dark); }
.cookie-consent-text p { font-size: 12.5px; color: var(--text-light); line-height: 1.55; margin: 0; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    border: 1px solid var(--border); background: #fff; color: var(--text-light);
    border-radius: 6px; padding: 8px 16px; font-size: 13px; cursor: pointer;
    transition: all .2s;
}
.cookie-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cookie-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.cookie-btn-plain:hover { color: var(--primary-dark); border-color: var(--primary-dark); }
@media (max-width: 767px) {
    .cookie-consent-box { padding: 14px 16px; margin: 10px 0; }
    .cookie-consent-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

/* ============ 购物车抽屉（点头部购物车图标滑出） ============ */
.cart-drawer-mask { position: fixed; inset: 0; z-index: 1600; background: rgba(17, 24, 39, .45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.cart-drawer-mask.show { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1601; width: 400px; max-width: 92vw; background: #fff; box-shadow: -12px 0 44px rgba(17, 24, 39, .18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.23, 1, .32, 1); }
.cart-drawer.show { transform: translateX(0); }
.cd-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cd-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--text); }
.cd-close { border: none; background: none; font-size: 26px; line-height: 1; color: var(--text-light); cursor: pointer; padding: 2px 8px; border-radius: 8px; transition: background .2s, color .2s; }
.cd-close:hover { background: var(--bg); color: var(--primary-dark); }
.cd-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.cd-empty { text-align: center; padding: 64px 20px; }
.cd-empty img { width: 76px; height: 76px; object-fit: contain; opacity: .75; margin-bottom: 14px; }
.cd-empty p { font-size: 13.5px; color: var(--text-light); }
.cd-item { display: flex; gap: 10px; padding: 10px 18px 10px 14px; position: relative; transition: background .2s; }
.cd-item:hover { background: rgba(17, 24, 39, .025); }
.cd-item:not(.selected) .cd-name, .cd-item:not(.selected) .cd-price, .cd-item:not(.selected) .cd-variants { opacity: .5; }
.cd-item.selected .cd-name, .cd-item.selected .cd-price, .cd-item.selected .cd-variants { opacity: 1; }
.cd-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; align-self: center; flex-shrink: 0; }
.cd-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cd-check i { width: 17px; height: 17px; flex-shrink: 0; border: 1.5px solid #cbd2dc; border-radius: 5px; background: #fff; position: relative; transition: background .2s, border-color .2s; }
.cd-check:hover i { border-color: var(--primary-dark); }
.cd-check input:checked + i { background: var(--primary-dark); border-color: var(--primary-dark); }
.cd-check input:checked + i::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cd-check span { font-size: 12.5px; color: var(--text-light); }
.cd-img { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.cd-img img { width: 100%; height: 100%; object-fit: cover; }
.cd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cd-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 500; color: var(--text); line-height: 1.4; }
.cd-name:hover { color: var(--primary-dark); }
.cd-bottom { display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: nowrap; min-width: 0; }
.cd-variants { display: inline-block; font-size: 10.5px; color: var(--text-light); background: var(--bg); border-radius: 4px; padding: 1px 6px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.cd-price { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--price); white-space: nowrap; flex-shrink: 0; }
.cd-quantity { height: 26px; box-shadow: none; flex-shrink: 0; }
.cd-quantity button { width: 26px; font-size: 13px; }
.cd-quantity input { width: 30px; font-size: 12px; }
.cd-remove { border: none; background: none; width: 22px; height: 22px; border-radius: 5px; font-size: 16px; line-height: 1; color: #c5ccd5; cursor: pointer; transition: background .2s, color .2s; flex-shrink: 0; margin-left: auto; padding: 0; }
.cd-remove:hover { background: rgba(214, 69, 69, .1); color: var(--danger); }
.cd-foot { border-top: 1px solid var(--border); padding: 12px 18px 14px; flex-shrink: 0; background: #fff; }
.cd-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cd-check-all { margin-top: 0; }
.cd-amount { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--price); }
/* 细长通栏按钮：上结算（红）下查看购物车，两侧由抽屉内边距留白 */
.cd-btn { display: flex; width: 100%; align-items: center; justify-content: center; height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: var(--font-display); cursor: pointer; transition: all .2s ease; }
.cd-btn.disabled { opacity: .45; pointer-events: none; }
.cd-btn + .cd-btn { margin-top: 8px; }
.cd-btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.cd-btn-ghost:hover { border-color: rgba(17, 24, 39, .35); background: rgba(17, 24, 39, .03); color: var(--primary-dark); }
a.cd-btn-main, a.cd-btn-main:hover { color: #fff; text-decoration: none; }
.cd-btn-main { background: var(--price); border: 1.5px solid var(--price); color: #fff; }
.cd-btn-main:hover { background: #c51d1d; border-color: #c51d1d; color: #fff; box-shadow: 0 8px 20px rgba(224, 36, 36, .3); }
@media (max-width: 520px) { .cart-drawer { width: 100%; max-width: 100%; } }

/* ===== 品牌墙(全部品牌页, 参考品牌列表: 首字母分组 + 卡片网格) ===== */
.brand-wall-title { font-family: var(--font-title); font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 20px; }
.brand-letter-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 30px; }
.brand-letter-nav a { min-width: 36px; padding: 7px 10px; text-align: center; border: 1px solid rgba(0, 0, 0, .08); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text); background: #fff; transition: border-color .2s, color .2s, transform .15s; }
.brand-letter-nav a:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); }
.brand-wall { border-top: 1px solid rgba(0, 0, 0, .06); }
.brand-group { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); scroll-margin-top: 90px; }
.brand-group-letter { flex-shrink: 0; width: 44px; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.brand-group-grid { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-card { text-align: center; }
.brand-card-logo { height: 110px; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff; border: 1px solid #e4e5e7; border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.brand-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-card-logo span { font-size: 14px; font-weight: 600; color: var(--text-light); padding: 0 8px; word-break: break-word; }
.brand-card-name { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--text); transition: color .2s; }
.brand-card:hover .brand-card-logo { border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.brand-card:hover .brand-card-name { color: var(--primary-dark); }
@media (max-width: 992px) { .brand-group-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
    .brand-group { flex-direction: column; gap: 12px; padding: 18px 0; }
    .brand-group-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .brand-card-logo { height: 90px; }
}
@media (max-width: 480px) { .brand-group-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ 会员订单：筛选栏 + 表格内状态标识 ============ */
.orders-filter {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding: 14px 16px; margin-bottom: 18px;
    background: var(--bg); border-radius: var(--radius);
}
.orders-filter select,
.orders-filter input {
    height: 44px; width: auto; margin: 0; padding: 0 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: inherit; color: var(--text); outline: none; background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
.orders-filter select { cursor: pointer; }
.orders-filter input:hover, .orders-filter select:hover { border-color: rgba(17, 24, 39, .28); }
.orders-filter input:focus, .orders-filter select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
.orders-filter input::placeholder { color: #9ca3af; }
.orders-filter input[name="number"], .orders-filter input[name="product"] { width: 185px; }
.orders-filter input[type="date"] { width: 158px; color: var(--text-light); }
.orders-filter input[type="date"]:hover, .orders-filter input[type="date"]:focus { color: var(--text); }
.orders-filter .filter-sep { color: var(--text-light); font-size: 14px; }
.orders-filter .btn { height: 44px; padding: 0 26px; border-radius: var(--radius); flex-shrink: 0; }
/* 状态下拉 sparkSelect 美化：与筛选栏 44px 控件对齐 */
.orders-filter .spark-select { width: 172px; flex-shrink: 0; }
.orders-filter .spark-select-toggle { height: 44px; padding: 0 14px; background: #fff; border-color: var(--border); font-size: 14px; }
.orders-filter .spark-select-toggle:hover { border-color: rgba(17, 24, 39, .28); }
.orders-filter .spark-select.open .spark-select-toggle { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
/* 状态标识沿用详情页配色，表格内改为行内展示 */
.account-orders .order-status { float: none; display: inline-block; }
/* 订单详情：线下转账收款信息面板 */
.pay-info-tip { font-size: 13px; color: var(--text-light); line-height: 1.7; margin: 0 0 12px; }
.pay-info-rows { background: var(--bg); border-radius: var(--radius); padding: 4px 16px; }
.pi-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0; font-size: 14px; }
.pi-row + .pi-row { border-top: 1px solid rgba(229, 231, 235, .7); }
.pi-label { color: var(--text-light); font-size: 13px; flex-shrink: 0; }
.pi-value { color: var(--text); font-weight: 500; text-align: right; word-break: break-word; }
.pi-copy { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .4px; }
.pi-copy .pi-btn { border: none; background: rgba(17, 24, 39, .06); color: var(--text-light); font-size: 11.5px; padding: 3px 9px; border-radius: 5px; cursor: pointer; font-family: var(--font-body); flex-shrink: 0; transition: background .2s, color .2s; }
.pi-copy .pi-btn:hover { background: rgba(17, 24, 39, .12); color: var(--primary-dark); }
.pi-amount { color: var(--danger); font-size: 17px; font-weight: 700; }
.pay-info-note { margin-top: 10px; background: rgba(17, 24, 39, .035); border-radius: var(--radius); padding: 10px 14px; font-size: 12.5px; color: var(--text-light); line-height: 1.8; white-space: pre-line; word-break: break-word; }
.pay-info-note b { font-weight: 600; color: var(--text); margin-right: 8px; }

/* 售后详情页：状态徽标 / 元信息 */
.rma-panel { margin-top: 16px; }
.rma-badge { float: right; padding: 2px 10px; border-radius: 10px; font-size: 13px; color: #fff; background: #6b7280; }
.rma-badge-pending { background: #f59e0b; }
.rma-badge-approved, .rma-badge-shipped { background: #2563eb; }
.rma-badge-received { background: #7c3aed; }
.rma-badge-completed { background: var(--success); }
.rma-badge-rejected { background: var(--danger); }
.rma-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-light); }
.rma-meta-type { color: var(--text); font-weight: 500; }
/* 进度步骤条 */
.rma-steps { display: flex; margin: 22px 0 2px; }
.rma-step { flex: 1; position: relative; text-align: center; font-size: 13px; }
.rma-step:not(:last-child)::after { content: ''; position: absolute; top: 11px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; border-radius: 2px; background: var(--border); }
.rma-step-done:not(:last-child)::after { background: var(--success); }
.rma-step-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; color: #fff; background: #cbd5e1; }
.rma-step-done .rma-step-dot { background: var(--success); }
.rma-step-current .rma-step-dot { background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.rma-step-error .rma-step-dot { background: var(--danger); }
.rma-step-wait .rma-step-dot { color: var(--text-light); background: var(--border); }
.rma-step-label { display: block; margin-top: 7px; color: var(--text-light); }
.rma-step-done .rma-step-label, .rma-step-current .rma-step-label, .rma-step-error .rma-step-label { color: var(--text); font-weight: 500; }
.rma-rejected-tip { margin-top: 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(214, 69, 69, .07); color: var(--danger); font-size: 13px; line-height: 1.7; }
/* 商品卡片 + 凭证图片 */
.rma-product { display: flex; gap: 14px; align-items: center; }
.rma-product img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.rma-product-name { font-weight: 500; word-break: break-word; }
.rma-product-sub { margin-top: 4px; font-size: 13px; color: var(--text-light); }
.rma-proof { margin-top: 14px; }
.rma-proof-title { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.rma-images { display: flex; flex-wrap: wrap; gap: 10px; }
.rma-images img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: transform .2s; }
.rma-images a:hover img { transform: scale(1.05); }
/* 回寄物流：已填展示 + 待填写表单 */
.rma-track-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.rma-track-link:hover { color: var(--primary-dark); border-color: var(--primary-dark); }
.rma-shipback { display: flex; flex-wrap: wrap; gap: 10px; }
.rma-shipback input { flex: 1; min-width: 160px; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-family: var(--font-body); font-size: 14px; }
.rma-shipback input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17, 24, 39, .06); }
.rma-shipback .btn { height: 44px; flex-shrink: 0; }
/* 处理记录时间线 */
.rma-timeline { position: relative; padding-left: 6px; }
.rma-timeline-item { position: relative; padding: 0 0 18px 24px; }
.rma-timeline-item:last-child { padding-bottom: 4px; }
.rma-timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: -2px; width: 2px; background: var(--border); }
.rma-timeline-dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; }
.rma-dot-approved, .rma-dot-shipped { background: #2563eb; }
.rma-dot-received { background: #7c3aed; }
.rma-dot-completed { background: var(--success); }
.rma-dot-rejected { background: var(--danger); }
.rma-timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rma-status-tag { padding: 1px 9px; border-radius: 9px; font-size: 12px; color: #fff; background: #6b7280; }
.rma-tag-approved, .rma-tag-shipped { background: #2563eb; }
.rma-tag-received { background: #7c3aed; }
.rma-tag-completed { background: var(--success); }
.rma-tag-rejected { background: var(--danger); }
.rma-timeline-time, .rma-timeline-notify { font-size: 12.5px; color: var(--text-light); }
.rma-timeline-comment { margin-top: 5px; font-size: 13.5px; color: var(--text); line-height: 1.7; word-break: break-word; }
@media (max-width: 640px) {
    .rma-step-label { font-size: 11.5px; }
    .rma-shipback input { min-width: 100%; }
}
