/* =========================================================
 *  景曜恒达科技 · 全局样式（简屿 · 小清新设计体系 v5）
 * ========================================================= */

:root {
  /* 品牌主色：青屿薄荷 × 暖白留白 */
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-deep: #115e59;
  --accent: #14b8a6;
  --brand-light: #e6f6f3;
  --brand-soft: #d2efe9;
  --gold: #f59e0b;

  --text-1: #22333b;
  --text-2: #5c6f76;
  --text-3: #90a4a9;
  --text-4: #c5d4d6;

  --bg-page: #f6f9f8;
  --bg-card: #ffffff;
  --bg-card-2: #ffffff;
  --bg-hover: #f1f7f5;
  --line: #e7efec;
  --line-strong: #d9e6e2;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 18px;
  --radius-xl: 26px;

  --shadow-s: 0 1px 4px rgba(23, 58, 52, .05);
  --shadow: 0 10px 30px rgba(23, 58, 52, .08);
  --shadow-l: 0 20px 50px rgba(23, 58, 52, .13);
  --glow: 0 8px 26px rgba(13, 148, 136, .14);

  --header-h: 88px;
  --max-w: 1280px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(820px 380px at 90% -100px, rgba(20, 184, 166, .06), transparent 65%),
    radial-gradient(640px 340px at -80px 28%, rgba(56, 189, 248, .05), transparent 60%),
    var(--bg-page);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 防止意外横向溢出撑出横向滚动（clip 不产生滚动容器，不影响 sticky 头部） */
html, body { overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3e2dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b9d2cb; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局容器 ---------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部公告条（轻量浅色） ---------------- */
.topbar {
  background: #ffffff;
  color: var(--text-2);
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar .left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar .tp-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: linear-gradient(135deg, #14b8a6, #0d9488);
  padding: 1.5px 9px; border-radius: 999px;
}
.topbar .right { display: flex; align-items: center; gap: 16px; color: var(--text-3); }
.topbar .right span { display: inline-flex; align-items: center; gap: 5px; }
.topbar .tp-div { width: 1px; height: 11px; background: var(--line-strong); }

/* ---------------- 头部（白净留白） ---------------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 30px;
}

/* Logo（薄荷圆角方） */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; cursor: pointer; }
.logo .mark {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(150deg, #2dd4bf, #0d9488);
  display: grid; place-items: center;
  color: #fff; font-size: 23px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(13, 148, 136, .25);
}
.logo .name { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.logo .slogan { font-size: 10px; color: var(--text-3); letter-spacing: 2.2px; margin-top: -3px; }

/* 搜索框（软底无框） */
.search-wrap { flex: 1; max-width: 560px; position: relative; }
.search-box {
  display: flex; align-items: center;
  border: 1.5px solid transparent;
  border-radius: 999px; overflow: hidden;
  background: var(--bg-hover); transition: all .2s var(--ease);
}
.search-box:focus-within { background: #fff; border-color: var(--accent); box-shadow: var(--glow); }
.search-box .ico { padding: 0 6px 0 16px; color: var(--text-3); display: grid; place-items: center; }
.search-box input {
  flex: 1; border: none; padding: 10px 8px; background: transparent; font-size: 14px;
}
.search-box input::placeholder { color: var(--text-4); }
.search-box .btn-search {
  padding: 0 26px; align-self: stretch;
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 2px;
  transition: filter .2s var(--ease);
}
.search-box .btn-search:hover { filter: brightness(1.06); }

/* 热搜词 */
.hot-words {
  display: flex; align-items: center; gap: 12px;
  margin-top: 5px; font-size: 11.5px; color: var(--text-4);
}
.hot-words a { color: var(--text-3); cursor: pointer; transition: color .15s; }
.hot-words a:hover { color: var(--brand); }

/* 搜索建议 */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l);
  border: 1px solid var(--line); padding: 6px; z-index: 300;
  max-height: 340px; overflow-y: auto;
}
.suggest .grp-title {
  font-size: 11.5px; color: var(--text-3); padding: 8px 12px 4px; letter-spacing: .5px;
}
.suggest .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-s); cursor: pointer; font-size: 13.5px;
}
.suggest .item:hover { background: var(--brand-light); }
.suggest .item .thumb {
  width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #f3f6f5; flex-shrink: 0;
}
.suggest .item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .item .pr { color: var(--brand); font-weight: 700; font-size: 13px; }
.suggest .kw-tag {
  display: inline-block; padding: 4px 12px; margin: 2px; border-radius: 999px;
  background: var(--bg-hover); font-size: 12.5px; cursor: pointer; color: var(--text-2);
}
.suggest .kw-tag:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* 头部右侧动作 */
.head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.head-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 12px; border-radius: var(--radius); position: relative;
  color: var(--text-2); transition: all .18s var(--ease); min-width: 58px;
}
.head-btn:hover { background: var(--brand-light); color: var(--brand-dark); }
.head-btn .ic { font-size: 18px; line-height: 1; position: relative; }
.head-btn .tx { font-size: 11.5px; white-space: nowrap; }
.head-btn .badge {
  position: absolute; top: -5px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  border: 2px solid #fff;
}
.head-btn.highlight { color: var(--brand); }

/* 用户下拉 */
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 230px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l);
  border: 1px solid var(--line); overflow: hidden; z-index: 300;
}
.user-menu .um-head {
  padding: 14px 16px; display: flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, #e6f6f3, #eef8f4);
}
.user-menu .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.user-menu .um-name { font-weight: 600; font-size: 14px; }
.user-menu .um-sub { font-size: 11.5px; color: var(--text-3); }
.user-menu .um-list { padding: 6px; }
.user-menu .um-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-s); font-size: 13.5px; cursor: pointer; color: var(--text-2);
  transition: all .16s var(--ease);
}
.user-menu .um-item:hover { background: var(--brand-light); color: var(--brand-dark); }
.user-menu .um-item .ic { font-size: 15px; width: 18px; text-align: center; }
.user-menu .um-foot { border-top: 1px solid var(--line); padding: 6px; }

/* ---------------- 分类导航 ---------------- */
.navbar { background: #fff; border-bottom: 1px solid var(--line); }
.navbar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.navbar .inner::-webkit-scrollbar { display: none; }
.nav-item {
  padding: 13px 15px; font-size: 14px; color: var(--text-2); white-space: nowrap;
  position: relative; transition: color .18s var(--ease); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.nav-item:hover { color: var(--brand); }
.nav-item.active { color: var(--brand-dark); font-weight: 700; }
.nav-item.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

/* ---------------- 主要区域 ---------------- */
.main { padding: 24px 0 60px; }
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------------- 首页横幅区（浅色清新主视觉 + 促销卡） ---------------- */
.hero-zone {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px;
  margin-bottom: 14px;
}
.hero-main {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  background: linear-gradient(118deg, #eafaf5 0%, #e8f6fb 60%, #eef9f4 100%);
  border: 1px solid #dcefe8;
  padding: 44px 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hero-main::before {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .18), transparent 68%);
  right: -50px; top: -110px;
}
.hero-main::after {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .14), transparent 70%);
  right: 170px; bottom: -120px;
}
.hero-main .h-txt { position: relative; z-index: 2; }
.hero-main .h-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-dark); border: 1px solid #bfe5dc;
  background: rgba(255, 255, 255, .7);
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px; letter-spacing: 1px;
}
.hero-main h1 { font-size: 34px; line-height: 1.32; letter-spacing: 1px; color: var(--text-1); }
.hero-main h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #14b8a6, #0ea5a4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-main p { color: var(--text-2); margin-top: 12px; font-size: 14.5px; max-width: 470px; }
.hero-main .h-btns { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-main .h-stats {
  position: relative; z-index: 2; display: flex; gap: 32px; flex-shrink: 0;
}
.hero-main .h-stat { text-align: center; }
.hero-main .h-stat b {
  display: block; font-size: 27px; font-weight: 800;
  background: linear-gradient(110deg, #14b8a6, #0f766e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-main .h-stat span { font-size: 12.5px; color: var(--text-3); }

/* 促销侧卡 */
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.promo-card {
  flex: 1; border-radius: var(--radius-l); padding: 20px 22px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  transition: all .22s var(--ease);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.promo-card .pc-ic { font-size: 26px; margin-bottom: 8px; }
.promo-card .pc-t { font-size: 16.5px; font-weight: 800; letter-spacing: .5px; }
.promo-card .pc-d { font-size: 12.5px; margin-top: 5px; line-height: 1.65; }
.promo-card .pc-link { font-size: 12.5px; font-weight: 700; margin-top: 10px; }
.promo-glow {
  background: linear-gradient(135deg, #e6f6f3, #ddf3ee);
  border: 1px solid #c8e9e0; color: #134e4a;
}
.promo-glow .pc-d { color: #5c8a83; }
.promo-glow .pc-link { color: var(--brand-dark); }
.promo-line {
  background: linear-gradient(135deg, #eaf6fd, #e3f4f0);
  border: 1px solid #cfe7f2; color: #1e4e56;
}
.promo-line .pc-d { color: #6d97a3; }
.promo-line .pc-link { color: #0891b2; }

/* 服务承诺条 */
.service-strip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 15px 18px; margin-bottom: 18px;
}
.service-strip .sv { display: flex; align-items: center; gap: 10px; justify-content: center; }
.service-strip .sv .ic {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.service-strip .sv-tx b { display: block; font-size: 13.5px; }
.service-strip .sv-tx span { font-size: 11.5px; color: var(--text-3); }

/* ---------------- 限时特惠 ---------------- */
.flash-sec {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 18px 20px 16px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.flash-sec::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 184, 166, .05), transparent 42%);
  pointer-events: none;
}
.flash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 14px; position: relative; z-index: 1;
}
.flash-tt { display: flex; align-items: baseline; gap: 10px; }
.flash-tt .bolt { font-size: 20px; transform: translateY(2px); }
.flash-tt b {
  font-size: 21px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(110deg, #14b8a6, #0f766e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flash-tt .flash-sub { font-size: 12px; color: var(--text-3); }
.flash-timer { display: inline-flex; align-items: center; gap: 4px; }
.flash-timer span {
  min-width: 34px; padding: 4px 6px; text-align: center;
  background: var(--bg-hover); border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; color: var(--brand-dark);
}
.flash-timer i { color: var(--text-3); font-style: normal; font-weight: 700; }
.flash-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 186px; gap: 12px;
  overflow-x: auto; padding-bottom: 6px; position: relative; z-index: 1;
  scrollbar-width: thin;
}
.flash-rail .card { min-height: 100%; }

/* ---------------- 分类磁贴 ---------------- */
.cat-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px;
  margin-bottom: 18px;
}
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; cursor: pointer; transition: all .2s var(--ease);
}
.cat-tile:hover {
  border-color: #b5e0d6; transform: translateY(-3px); box-shadow: var(--glow);
}
.cat-tile .ct-ic {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--brand-light); display: grid; place-items: center; font-size: 23px;
  transition: all .2s var(--ease);
}
.cat-tile:hover .ct-ic { background: var(--brand-soft); }
.cat-tile .ct-nm { font-size: 13.5px; font-weight: 600; }
.cat-tile .ct-cnt { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------------- 热销榜单 + 分类专场 ---------------- */
.rank-sec {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px;
  margin-bottom: 18px;
}
.rank-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 18px 20px 10px;
}
.rank-main .sec-head { margin-bottom: 12px; }
.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px;
  border-radius: var(--radius-s); cursor: pointer; transition: background .15s;
}
.rank-item:hover { background: var(--bg-hover); }
.rank-item .rk {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--bg-hover); color: var(--text-3);
}
.rank-item.top .rk {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #fff; box-shadow: 0 3px 10px rgba(13, 148, 136, .3);
}
.rank-item img {
  width: 52px; height: 52px; border-radius: 10px; object-fit: cover;
  background: #f3f6f5; border: 1px solid var(--line); flex-shrink: 0;
}
.rank-item .ri-info { flex: 1; min-width: 0; }
.rank-item .ri-nm {
  font-size: 13.5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-item:hover .ri-nm { color: var(--brand-dark); }
.rank-item .ri-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.rank-item .ri-pr { font-size: 15px; font-weight: 800; color: var(--brand-dark); flex-shrink: 0; }
.rank-side { display: flex; flex-direction: column; gap: 12px; }
.side-cat {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 16px 18px; display: flex; align-items: center; gap: 13px; cursor: pointer;
  transition: all .2s var(--ease);
}
.side-cat:hover { border-color: #b5e0d6; box-shadow: var(--glow); transform: translateY(-2px); }
.side-cat .sc-ic {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--brand-light); display: grid; place-items: center; font-size: 22px;
}
.side-cat .sc-tx b { display: block; font-size: 14.5px; }
.side-cat .sc-tx span { font-size: 12px; color: var(--text-3); }
.side-cat:hover .sc-tx span { color: var(--brand); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease); white-space: nowrap; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(13, 148, 136, .38); }
.btn-primary:active { transform: translateY(0); }
.btn-hero-ghost {
  background: rgba(255, 255, 255, .75); color: var(--brand-dark);
  border: 1px solid #bfe5dc; backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: #fff; border-color: var(--accent); }
.btn-ghost { background: #fff; color: var(--text-1); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); }
.btn-plain { background: var(--bg-hover); color: var(--text-2); }
.btn-plain:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-lg { padding: 13px 34px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------------- 区块标题 ---------------- */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.sec-title .bar {
  width: 4px; height: 19px; border-radius: 3px;
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
}
.sec-title .cnt { font-size: 13px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.sec-more { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sec-more:hover { color: var(--brand); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  background: #fff; border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 16px; border: 1px solid var(--line);
}
.tool-group { display: flex; align-items: center; gap: 9px; }
.tool-label { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.chip {
  padding: 5px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--bg-hover); color: var(--text-2); transition: all .18s var(--ease);
  border: 1px solid transparent;
}
.chip:hover { color: var(--brand-dark); background: var(--brand-light); }
.chip.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; border-color: #b5e0d6; }
.chip.chip-ghost { background: transparent; border-color: var(--line-strong); }
.chip.chip-ghost.active { background: var(--brand-light); border-color: #b5e0d6; }

.sort-group { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.sort-item {
  padding: 6px 13px; border-radius: var(--radius-s); font-size: 13px; color: var(--text-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all .18s var(--ease);
}
.sort-item:hover { color: var(--brand); background: var(--brand-light); }
.sort-item.active { color: var(--brand-dark); font-weight: 600; background: var(--brand-light); }

/* ---------------- 商品网格 ---------------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; position: relative;
  transition: all .24s var(--ease); display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--glow);
  border-color: #b5e0d6;
}
.card .thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f6f5;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .thumb img { transform: scale(1.07); }
.card .badges {
  position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.cbadge {
  padding: 2.5px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff;
  backdrop-filter: blur(2px);
}
.cbadge.hot { background: linear-gradient(135deg, #ff8a80, #ff6b6b); }
.cbadge.new { background: linear-gradient(135deg, #a3e635, #65a30d); }
.cbadge.off { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.cbadge.low { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.card .fav {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px);
  display: grid; place-items: center; font-size: 14px; color: var(--text-3);
  opacity: 0; transform: scale(.85); transition: all .2s var(--ease); z-index: 3;
}
.card:hover .fav { opacity: 1; transform: scale(1); }
.card .fav:hover { color: var(--brand); }
.card .fav.on { opacity: 1; transform: scale(1); color: var(--brand); }

/* 悬停滑出加购条 */
.card .quick-add {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 9px 0; font-size: 13px; font-weight: 700; color: var(--brand-dark); letter-spacing: 1px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px);
  border-top: 1px solid #d9efE8;
  transform: translateY(100%); transition: transform .22s var(--ease), background .15s;
}
.card:hover .quick-add { transform: translateY(0); }
.card .quick-add:hover { background: var(--brand); color: #fff; border-top-color: transparent; }
.card .quick-add:disabled { color: var(--text-4); background: rgba(243, 246, 245, .95); cursor: not-allowed; }

.card .body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.card .pname {
  font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.card:hover .pname { color: var(--brand-dark); }
.card .brand-row {
  font-size: 11px; color: var(--text-3); letter-spacing: .5px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; color: var(--text-3); }
.card .meta .dot { color: var(--text-4); }
.card .stars { color: var(--gold); letter-spacing: -.5px; }
.card .price-row {
  margin-top: auto; padding-top: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.card .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card .price .cur { font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.card .price .num { font-size: 21px; font-weight: 800; color: var(--brand-dark); line-height: 1; letter-spacing: -.5px; }
.card .price .old { font-size: 12px; color: var(--text-4); text-decoration: line-through; }
.card .tag {
  font-size: 11px; padding: 1.5px 8px; border-radius: 999px; flex-shrink: 0;
  color: var(--brand-dark); background: var(--brand-light); border: 1px solid #c4e8de;
}
.card .stock-bar {
  margin-top: 9px; height: 4px; border-radius: 3px; background: #edf3f1; overflow: hidden;
}
.card .stock-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

/* ---------------- 商品详情 ---------------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.crumb a { cursor: pointer; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--text-4); }
.crumb .cur { color: var(--text-1); }

.detail {
  background: #fff; border-radius: var(--radius-l); padding: 26px;
  display: grid; grid-template-columns: 400px 1fr; gap: 34px;
  border: 1px solid var(--line); margin-bottom: 20px;
}
.detail .gallery { position: relative; }
.detail .main-img {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #f3f6f5;
  border: 1px solid var(--line);
}
.detail .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail .thumbs { display: flex; gap: 9px; margin-top: 11px; }
.detail .thumbs .t {
  width: 62px; height: 62px; border-radius: var(--radius-s); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: #f3f6f5;
}
.detail .thumbs .t.active { border-color: var(--accent); }
.detail .thumbs .t img { width: 100%; height: 100%; object-fit: cover; }

.detail .info h1 { font-size: 22px; line-height: 1.42; font-weight: 700; }
.detail .sub { color: var(--text-3); font-size: 13px; margin-top: 8px; }
.detail .brand-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.detail .brand-line .b {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-hover); color: var(--text-2);
}
.price-panel {
  margin: 18px 0; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, #e6f6f3, #eef9f4);
  border: 1px solid #cfe9e1;
}
.price-panel .now { display: flex; align-items: baseline; gap: 10px; }
.price-panel .now .cur { font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.price-panel .now .num { font-size: 36px; font-weight: 800; color: var(--brand-dark); line-height: 1; letter-spacing: -1px; }
.price-panel .now .old { font-size: 14px; color: var(--text-4); text-decoration: line-through; }
.price-panel .disc {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle;
}
.price-panel .stats {
  display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed #b5e0d6; font-size: 13px; color: var(--text-3);
}
.price-panel .stats b { color: var(--text-1); font-weight: 600; }

.spec-block { margin-bottom: 16px; }
.spec-block .lb { font-size: 13px; color: var(--text-3); margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.spec-block .lb .pick { color: var(--text-1); font-weight: 600; }
.spec-opts { display: flex; gap: 9px; flex-wrap: wrap; }
.spec-opt {
  padding: 8px 17px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-2);
  transition: all .18s var(--ease); position: relative;
}
.spec-opt:hover { border-color: var(--brand); color: var(--brand-dark); }
.spec-opt.active {
  border-color: var(--brand); color: var(--brand-dark); font-weight: 600;
  background: var(--brand-light);
}
.spec-opt.active::after {
  content: '✓'; position: absolute; right: -1px; bottom: -1px;
  background: var(--brand); color: #fff; font-size: 9px;
  width: 15px; height: 15px; display: grid; place-items: center;
  border-radius: 50%;
}

.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.qty-box {
  display: flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: 999px; overflow: hidden;
}
.qty-box button {
  width: 34px; height: 36px; font-size: 17px; color: var(--text-2);
  background: var(--bg-hover); transition: all .16s var(--ease);
}
.qty-box button:hover:not(:disabled) { background: var(--brand-light); color: var(--brand-dark); }
.qty-box button:disabled { color: var(--text-4); cursor: not-allowed; }
.qty-box input {
  width: 52px; height: 36px; text-align: center; border: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.qty-limit { font-size: 12.5px; color: var(--text-3); }

.buy-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.buy-row .btn { min-width: 148px; }

.detail-extra { display: flex; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.detail-extra .it { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.detail-extra .it .ic { color: var(--brand); font-size: 15px; }

/* 详情 Tabs */
.tabs {
  background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line); overflow: hidden;
}
.tabs .tab-head { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.tabs .tab-head::-webkit-scrollbar { display: none; }
.tabs .tab {
  padding: 15px 22px; font-size: 14.5px; color: var(--text-2); cursor: pointer;
  position: relative; transition: color .18s var(--ease); white-space: nowrap; flex-shrink: 0;
}
.tabs .tab:hover { color: var(--brand); }
.tabs .tab.active { color: var(--brand-dark); font-weight: 700; }
.tabs .tab.active::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2.5px;
  background: linear-gradient(90deg, #2dd4bf, #0d9488); border-radius: 3px;
}
.tabs .tab-body { padding: 24px 26px; }
.tabs .desc-text { font-size: 14.5px; line-height: 2; color: var(--text-2); }
.tabs .desc-text p { margin-bottom: 12px; }
.param-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.param-table tr { border-bottom: 1px solid var(--line); }
.param-table tr:last-child { border-bottom: none; }
.param-table td { padding: 12px 8px; }
.param-table td:first-child { color: var(--text-3); width: 130px; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 13px; }
.review:last-child { border-bottom: none; }
.review .av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #d2efe9, #cfe9f5); color: var(--brand-deep); font-weight: 700; font-size: 14px;
}
.review .rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.review .rv-head .nm { font-weight: 600; }
.review .rv-head .tm { color: var(--text-3); font-size: 12px; }
.review .rv-txt { font-size: 13.5px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }

/* ---------------- 购物车 ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.panel {
  background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line); overflow: hidden;
}
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.panel-head .tt { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.panel-head .tt .n { font-size: 13px; font-weight: 400; color: var(--text-3); }
.panel-body { padding: 6px 20px 18px; }

.cart-item {
  display: grid; grid-template-columns: 26px 92px minmax(0,1fr) 118px 116px 92px 46px;
  gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .chk { display: grid; place-items: center; }
.cart-item .ci-img {
  width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  background: #f3f6f5; border: 1px solid var(--line); cursor: pointer;
}
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-info { min-width: 0; }
.cart-item .ci-name {
  font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item .ci-name:hover { color: var(--brand); }
.cart-item .ci-spec {
  font-size: 12px; color: var(--text-3); margin-top: 6px;
  background: var(--bg-hover); display: inline-block; padding: 3px 9px; border-radius: 999px;
}
.cart-item .ci-tags { margin-top: 6px; display: flex; gap: 6px; }
.cart-item .ci-tags .t {
  font-size: 11px; color: var(--brand-dark); background: var(--brand-light);
  padding: 1px 7px; border-radius: 999px;
}
.cart-item .ci-price { font-size: 14px; font-weight: 600; }
.cart-item .ci-sub { font-size: 16px; font-weight: 800; color: var(--brand-dark); }
.cart-item .ci-del { color: var(--text-3); font-size: 13px; cursor: pointer; text-align: center; }
.cart-item .ci-del:hover { color: #e11d48; }

.checkbox {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; cursor: pointer; transition: all .18s var(--ease);
  background: #fff; flex-shrink: 0;
}
.checkbox:hover { border-color: var(--brand); }
.checkbox.on { background: linear-gradient(135deg, #2dd4bf, #0d9488); border-color: transparent; }
.checkbox.on::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }

/* 结算汇总 */
.summary { position: sticky; top: calc(var(--header-h) + 20px); }

/* 订单详情两栏 / 地址网格（响应式） */
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr)); gap: 12px; }
.summary .sm-body { padding: 18px 20px; }
.sum-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--text-2); padding: 8px 0;
}
.sum-row .v { font-weight: 600; color: var(--text-1); }
.sum-row .v.free { color: #16a34a; }
.sum-row.total {
  border-top: 1px dashed var(--line-strong); margin-top: 10px; padding-top: 16px;
  align-items: baseline;
}
.sum-row.total .lb { font-size: 14px; color: var(--text-1); font-weight: 600; }
.sum-row.total .v { font-size: 26px; font-weight: 800; color: var(--brand-dark); letter-spacing: -.5px; }
.summary .btn-block { margin-top: 16px; }
.summary .sm-tip {
  margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.7;
}

/* 空状态 */
.empty { padding: 70px 20px; text-align: center; }
.empty .ic { font-size: 62px; line-height: 1; opacity: .4; margin-bottom: 16px; }
.empty .tt { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.empty .sb { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }

/* ---------------- 结算页 ---------------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 10px; }
.step .dot {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--bg-hover); color: var(--text-3);
  transition: all .25s var(--ease); flex-shrink: 0;
}
.step .tx { font-size: 13.5px; color: var(--text-3); }
.step.done .dot { background: #22c55e; color: #fff; }
.step.done .tx { color: var(--text-2); }
.step.on .dot { background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, .13); }
.step.on .tx { color: var(--brand-dark); font-weight: 700; }
.step .line { width: 66px; height: 1.5px; background: var(--line-strong); margin: 0 14px; }

.addr-card {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: all .2s var(--ease); position: relative; background: #fff;
}
.addr-card:hover { border-color: #8fd4c6; }
.addr-card.on { border-color: var(--brand); background: var(--brand-light); }
.addr-card.on::after {
  content: '✓'; position: absolute; top: 0; right: 0;
  background: var(--brand); color: #fff; font-size: 10px;
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 0 var(--radius) 0 var(--radius);
}
.addr-card .ac-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.addr-card .ac-name .df {
  font-size: 10.5px; padding: 1.5px 7px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600;
}
.addr-card .ac-detail { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.65; }
.addr-card .ac-ops { position: absolute; top: 12px; right: 14px; display: flex; gap: 10px; font-size: 12.5px; color: var(--text-3); z-index: 2; }
.addr-card .ac-ops span:hover { color: var(--brand); }
.addr-add {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 18px;
  text-align: center; cursor: pointer; color: var(--text-3); font-size: 13.5px;
  transition: all .2s var(--ease); display: grid; place-items: center; gap: 6px; min-height: 92px;
}
.addr-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.form-row label .req { color: #e11d48; margin-left: 3px; }
.input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); font-size: 14px; background: #fff;
  transition: all .18s var(--ease);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 148, 136, .11); }
.input::placeholder { color: var(--text-4); }
textarea.input { resize: vertical; min-height: 82px; line-height: 1.65; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-err { font-size: 12.5px; color: #e11d48; margin-top: 5px; display: none; }
.form-err.show { display: block; }

/* 订单商品行 */
.oitem { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.oitem:last-child { border-bottom: none; }
.oitem img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; background: #f3f6f5; border: 1px solid var(--line); }
.oitem .oi-info { flex: 1; min-width: 0; }
.oitem .oi-name { font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.oitem .oi-spec { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.oitem .oi-right { text-align: right; flex-shrink: 0; }
.oitem .oi-price { font-size: 13.5px; color: var(--text-2); }
.oitem .oi-qty { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.oitem .oi-sub { font-size: 14.5px; font-weight: 700; color: var(--brand-dark); margin-top: 5px; }

/* 支付方式 */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 12px; }
.pay-method {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 14px;
  cursor: pointer; text-align: center; transition: all .2s var(--ease); background: #fff;
}
.pay-method:hover { border-color: #8fd4c6; }
.pay-method.on { border-color: var(--brand); background: var(--brand-light); }
.pay-method .pm-ic { font-size: 25px; margin-bottom: 6px; }
.pay-method .pm-tx { font-size: 13px; font-weight: 500; }

/* ---------------- 订单列表 ---------------- */
.order-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  margin-bottom: 16px; overflow: hidden; transition: box-shadow .2s var(--ease);
}
.order-card:hover { box-shadow: var(--shadow-s); }
.order-card .oc-head {
  padding: 13px 20px; background: var(--bg-hover); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3);
}
.order-card .oc-head .no { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text-2); word-break: break-all; }
.order-card .oc-head .st {
  margin-left: auto; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px;
}
.st.unpaid { color: #b45309; background: #fef3c7; }
.st.paid { color: #0369a1; background: #e0f2fe; }
.st.shipped { color: #7c3aed; background: #f3e8ff; }
.st.done { color: #15803d; background: #dcfce7; }
.st.canceled { color: var(--text-3); background: var(--bg-hover); }
.order-card .oc-body { padding: 4px 20px; }
.order-card .oc-foot {
  padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
}
.order-card .oc-total { margin-right: auto; font-size: 13px; color: var(--text-2); }
.order-card .oc-total b { font-size: 19px; font-weight: 800; color: var(--brand-dark); }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(23, 58, 52, .4);
  backdrop-filter: blur(3px); z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto; animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

.modal {
  background: #fff; border-radius: var(--radius-l); width: 100%; max-width: 440px;
  max-height: 90vh; display: flex; flex-direction: column;
  animation: slideUp .28s var(--ease);
  box-shadow: 0 24px 60px rgba(23, 58, 52, .22); margin: auto;
}
.modal.wide { max-width: 580px; }
.modal-head {
  padding: 20px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex: none;
}
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-3); font-size: 17px; transition: all .18s var(--ease); flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-1); transform: rotate(90deg); }
.modal-body { padding: 20px 24px; overflow-y: auto; min-height: 0; flex: 1; }
.modal-foot {
  display: flex; gap: 12px; flex: none;
  padding: 14px 24px 20px; border-top: 1px solid var(--line);
}
.modal-foot .btn { flex: 1; }

/* 移动端弹窗：底部抽屉式 */
@media (max-width: 640px) {
  .mask { padding: 0; align-items: flex-end; }
  .modal { max-width: none; width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; margin: 0; }
  .modal-head { padding: 16px 16px 0; }
  .modal-body { padding: 16px 16px 16px; }
  .modal-foot { padding: 12px 16px 16px; }
  .tabs .tab-body { padding: 16px; }
}

/* 登录切换 */
.auth-tabs { display: flex; gap: 4px; background: var(--bg-hover); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.auth-tabs .at {
  flex: 1; padding: 9px; text-align: center; font-size: 14px; border-radius: 999px;
  cursor: pointer; color: var(--text-2); transition: all .2s var(--ease);
}
.auth-tabs .at.active { background: #fff; color: var(--brand-dark); font-weight: 700; box-shadow: var(--shadow-s); }

.demo-tip {
  margin-top: 16px; padding: 11px 14px; border-radius: var(--radius-s);
  background: #f0f9ff; border: 1px solid #d6ecff; font-size: 12.5px; color: #0369a1;
  line-height: 1.7;
}
.demo-tip b { font-family: ui-monospace, Consolas, monospace; }
.demo-tip .use {
  color: var(--brand); cursor: pointer; text-decoration: underline; margin-left: 4px; font-weight: 600;
}

/* Toast */
.toast-wrap {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px; border-radius: 999px; background: rgba(34, 51, 59, .93);
  color: #fff; font-size: 13.5px; box-shadow: var(--shadow-l);
  display: flex; align-items: center; gap: 9px; animation: slideUp .26s var(--ease);
  max-width: 90vw;
}
.toast.ok { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast.err { background: linear-gradient(135deg, #f87171, #e11d48); }
.toast.info { background: linear-gradient(135deg, #38bdf8, #0284c7); }

/* 成功页 */
.success-box { text-align: center; padding: 46px 20px; }
.success-box .ic {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, #4ade80, #22c55e); color: #fff;
  display: grid; place-items: center; font-size: 38px;
  animation: pop .4s var(--ease); box-shadow: 0 8px 24px rgba(34, 197, 94, .3);
}
.success-box .tt { font-size: 21px; font-weight: 700; margin-bottom: 9px; }
.success-box .sb { font-size: 13.5px; color: var(--text-3); margin-bottom: 5px; }
.success-box .no {
  display: inline-block; margin: 14px 0 24px; padding: 8px 18px; border-radius: 999px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  font-family: ui-monospace, Consolas, monospace; font-size: 13.5px;
}
.success-box .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 数量步进（小） */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button { width: 28px; height: 30px; font-size: 15px; color: var(--text-2); background: var(--bg-hover); }
.stepper button:hover:not(:disabled) { background: var(--brand-light); color: var(--brand-dark); }
.stepper button:disabled { color: var(--text-4); cursor: not-allowed; }
.stepper input { width: 42px; height: 30px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* 星级 */
.stars-lg { color: var(--gold); font-size: 14px; letter-spacing: 1px; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #eef3f1 25%, #e3ebe8 37%, #eef3f1 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
  border-radius: var(--radius-s);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 页脚（浅色清新） */
.footer {
  background: #eff6f3; border-top: 1px solid var(--line); margin-top: 34px; padding: 40px 0 26px;
}
.footer .inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.footer .f-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-strong);
}
.footer .f-brand .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .f-brand .f-logo .mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(150deg, #2dd4bf, #0d9488);
  display: grid; place-items: center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.footer .f-brand .f-logo b { color: var(--text-1); font-size: 16.5px; letter-spacing: 1px; }
.footer .f-brand .f-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.8; max-width: 300px; }
.footer .f-certs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer .f-certs span {
  font-size: 11px; color: var(--brand-dark); background: #fff; border: 1px solid #cfe9e1;
  padding: 3px 10px; border-radius: 999px;
}
.footer .f-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-1); letter-spacing: .5px; }
.footer .f-col p, .footer .f-col a {
  display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; cursor: pointer; line-height: 1.6;
}
.footer .f-col a:hover { color: var(--brand-dark); }
.footer .f-contact .f-tel { font-size: 19px; font-weight: 800; color: var(--brand-dark); letter-spacing: 1px; }
.footer .f-contact .f-time { font-size: 12px; color: var(--text-3); }
.footer .f-contact .f-mail { font-size: 12px; color: var(--text-3); }
.footer .f-bot {
  padding: 18px 20px 0;
  font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.9;
}

/* 返回顶部 */
.to-top {
  position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 17px; color: var(--text-2);
  z-index: 500; transition: all .2s var(--ease);
}
.to-top:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }

/* 加载条 */
#loadingBar {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
  z-index: 2000; transition: width .25s var(--ease), opacity .3s var(--ease);
}

/* ---------------- 移动端底部 Tab 栏 ---------------- */
.tabbar { display: none; }

/* 隐藏 */
.hide { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero-zone { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .hero-side .promo-card { padding: 16px 18px; }
  .hero-main { flex-direction: column; align-items: flex-start; padding: 32px; }
  .hero-main .h-stats { align-self: stretch; justify-content: space-around; }
  .rank-sec { grid-template-columns: 1fr; }
  .rank-side { flex-direction: row; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .footer .f-grid { grid-template-columns: repeat(2, 1fr); }
  .f-brand { grid-column: 1 / -1; }
  .od-grid { grid-template-columns: 1fr; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { padding-bottom: 62px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar .tb {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 5px 0; color: var(--text-3); font-size: 10.5px; cursor: pointer; border-radius: 10px;
    transition: color .15s;
  }
  .tabbar .tb .tb-ic { font-size: 19px; line-height: 1.2; }
  .tabbar .tb.on { color: var(--brand-dark); }
  .to-top { bottom: 78px; right: 16px; width: 40px; height: 40px; }
  .header .inner { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .hot-words { display: none; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .head-actions { gap: 0; }
  .head-btn { min-width: 48px; padding: 6px 8px; }
  .head-btn .tx { font-size: 10.5px; }
  .hero-main h1 { font-size: 25px; }
  .hero-side { flex-direction: column; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card .price .num { font-size: 18px; }
  .cart-item {
    grid-template-columns: 24px 74px minmax(0, 1fr);
    grid-template-areas:
      "c i n"
      "c i n"
      "q m d";
    row-gap: 10px;
  }
  .cart-item .chk { grid-area: c; align-self: start; }
  .cart-item .ci-img { grid-area: i; width: 74px; height: 74px; }
  .cart-item .ci-info { grid-area: n; }
  .cart-item .ci-price { display: none; }
  .cart-item .ci-sub-wrap { grid-area: q; justify-self: start; }
  .cart-item .ci-sub { grid-area: m; justify-self: end; align-self: center; }
  .cart-item .ci-del { grid-area: d; justify-self: end; align-self: center; }
  .form-3col { grid-template-columns: 1fr; }
  .topbar .right { display: none; }
  .topbar .inner { padding: 7px 16px; }
  .topbar .left span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; display: inline-block; vertical-align: middle; }
  .search-box .btn-search { padding: 0 16px; letter-spacing: 0; }
  .steps .line { width: 24px; margin: 0 7px; }
  .order-card .oc-head { gap: 12px; }
  .rank-side { flex-direction: column; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .card .pname { font-size: 13px; min-height: 37px; }
  /* 触屏设备无 hover：加购条常驻显示 */
  .card .quick-add { transform: none; padding: 7px 0; font-size: 12px; }
  .flash-rail { grid-auto-columns: 156px; }
  .hero-main { padding: 24px 20px; }
  .hero-main .h-stats { gap: 18px; }
  .hero-main .h-stat b { font-size: 21px; }
  .service-strip { grid-template-columns: repeat(2, 1fr); padding: 12px 10px; }
  .service-strip .sv { justify-content: flex-start; }
  .form-2col { grid-template-columns: 1fr; }
  .footer .f-grid { grid-template-columns: 1fr; }
  .detail { padding: 18px; }
  .buy-row .btn { flex: 1; min-width: 0; }
  .steps .step .tx { display: none; }
  .steps .dot { width: 24px; height: 24px; font-size: 12px; }
  .param-table td:first-child { width: 92px; }
}

/* ===== PC 端：内容区左右各留 10% 边距，不占满屏幕 ===== */
@media (min-width: 1081px) {
  .main {
    max-width: min(80%, var(--max-w));
    margin-left: auto;
    margin-right: auto;
  }
  .main .page-wrap { max-width: none; padding: 0; margin: 0; }
  .container, .topbar .inner, .header .inner, .navbar .inner,
  .footer .inner {
    max-width: min(80%, var(--max-w));
  }
}


/* =========================================================
 *  支付页（扫码 / 倒计时 / 演示模式）
 * ========================================================= */
.pay-channels{display:flex;gap:10px;justify-content:center;margin:16px 0 4px}
.pay-ch{flex:1;max-width:170px;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:11px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;
  font-size:14px;font-weight:600;color:var(--text-2);cursor:pointer;transition:.18s}
.pay-ch .ic{font-size:17px}
.pay-ch:hover{border-color:#8fd4c6}
.pay-ch.on{border-color:var(--brand);color:var(--brand-dark);background:var(--brand-light);
  box-shadow:0 3px 10px rgba(13,148,136,.14)}
.pay-qr-area{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.pay-qr-loading{display:flex;align-items:center;gap:9px;color:var(--text-3);font-size:13.5px;padding:60px 0}
.pay-qr-loading .spin{width:19px;height:19px;border:2.5px solid var(--line-strong);
  border-top-color:var(--brand);border-radius:50%;animation:jhspin .8s linear infinite}
@keyframes jhspin{to{transform:rotate(360deg)}}
.pay-qr-err{text-align:center;color:var(--text-2);font-size:13.5px;padding:44px 0;line-height:1.8}
.pay-qr-box{width:216px;height:216px;padding:11px;border:1.5px solid var(--line);border-radius:14px;
  background:#fff;box-shadow:0 6px 18px rgba(23,58,52,.08);margin:6px auto 12px}
.pay-qr-box.wechat{border-color:#86efac}
.pay-qr-box.alipay{border-color:#7dd3fc}
.pay-qr-box svg{width:100%;height:100%;display:block}
.pay-qr-tip{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13.5px;
  color:var(--text-2);font-weight:500}
.pay-qr-tip .ic{font-size:16px}
.pay-demo-hint{margin-top:9px;font-size:12px;color:#b45309;background:#fef3c7;
  border:1px solid #fde68a;border-radius:8px;padding:5px 10px;display:inline-block}
.pay-demo-box{margin-top:14px}
.pay-demo-box .sm-tip{margin-top:8px}
.pay-qr-expired{text-align:center;color:var(--text-3);font-size:13.5px;padding:26px 0}
.pay-meta{margin:14px auto 0;max-width:330px;text-align:left;font-size:13px}
.pay-meta .sum-row{padding:5px 0}

/* 物流时间线 */
.logi-head{margin-bottom:12px}
.logi-demo-tip{font-size:12.5px;color:#b45309;background:#fef3c7;border:1px solid #fde68a;
  border-radius:8px;padding:6px 11px;margin:8px 0}
.logi-timeline{margin-top:6px;max-height:340px;overflow:auto;padding:4px 4px 4px 2px}
.logi-item{position:relative;display:flex;gap:12px;padding:0 0 20px 0}
.logi-item:last-child{padding-bottom:2px}
.logi-item::before{content:'';position:absolute;left:5.5px;top:16px;bottom:-2px;width:2px;background:var(--line)}
.logi-item:last-child::before{display:none}
.li-dot{width:13px;height:13px;border-radius:50%;background:#d3e2dd;border:2.5px solid #eef3f1;
  flex-shrink:0;margin-top:3px;position:relative;z-index:1}
.logi-item.now .li-dot{background:var(--brand);border-color:#d2efe9;box-shadow:0 0 0 3px rgba(13,148,136,.13)}
.li-body{flex:1;min-width:0}
.li-desc{font-size:13.5px;color:var(--text-2);line-height:1.55}
.logi-item.now .li-desc{color:var(--text-1);font-weight:600}
.li-meta{font-size:12px;color:var(--text-4);margin-top:3px}

/* =========================================================
 *  商家后台：标签页 / 订单管理 / 系统设置
 * ========================================================= */
.ad-tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.ad-tab{padding:10px 20px;border-radius:999px;background:#fff;border:1.5px solid var(--line);
  font-size:14.5px;font-weight:600;color:var(--text-2);cursor:pointer;transition:.18s;user-select:none}
.ad-tab:hover{border-color:#8fd4c6;color:var(--text-1)}
.ad-tab.active{background:linear-gradient(135deg,#2dd4bf,#0d9488);border-color:transparent;
  color:#fff;box-shadow:0 5px 14px rgba(13,148,136,.28)}

/* 订单卡片 */
.adm-order{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:14px;overflow:hidden}
.ao-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:12px 16px;
  background:var(--bg-hover);border-bottom:1px solid var(--line);font-size:12.5px;color:var(--text-3)}
.ao-head .no{font-weight:700;color:var(--text-1);font-family:ui-monospace,Consolas,monospace}
.ao-head .st{margin-left:auto;font-size:12px;font-weight:700;padding:3px 11px;border-radius:999px}
.st.unpaid{background:#fef3c7;color:#b45309}
.st.paid{background:#e0f2fe;color:#0369a1}
.st.shipped{background:#f3e8ff;color:#7c3aed}
.st.done{background:#dcfce7;color:#15803d}
.st.cancelled{background:var(--bg-hover);color:var(--text-3)}
.ao-body{padding:12px 16px}
.ao-item{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:13.5px}
.ao-item img{width:38px;height:38px;border-radius:8px;object-fit:cover;background:#f3f6f5}
.ao-item .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ao-item .qt{color:var(--text-3)}
.ao-pay{display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;color:var(--text-3);
  padding:9px 0;border-top:1px dashed var(--line);margin-top:8px}
.ao-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px}
.ao-amount{font-size:13.5px;color:var(--text-2)}
.ao-amount b{font-size:17px;color:var(--brand-dark)}

/* 系统设置 */
.set-banner{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  background:linear-gradient(120deg,#e6f6f3,#eef8f4);border:1px solid #cfe9e1;border-radius:14px;
  padding:16px 20px;margin-bottom:16px}
.set-banner .sb-t{font-size:16.5px;font-weight:800;color:var(--text-1)}
.set-banner .sb-d{font-size:12.5px;color:var(--text-3);margin-top:4px;max-width:560px;line-height:1.7}
.sb-badges{display:flex;gap:8px;flex-wrap:wrap}
.live-badge{font-size:12px;font-weight:700;padding:5px 12px;border-radius:999px;white-space:nowrap}
.live-badge.live{background:#dcfce7;color:#15803d;border:1px solid #bbf7d0}
.live-badge.demo{background:#fef3c7;color:#b45309;border:1px solid #fde68a}
.set-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:14px}
.set-head{margin-bottom:12px}
.set-title{font-size:15.5px;font-weight:800;color:var(--text-1)}
.set-desc{font-size:12.5px;color:var(--text-3);margin-top:4px;line-height:1.7}
.set-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 22px}
.set-grid .form-row{margin-bottom:10px}
.set-flag{font-size:11.5px;font-weight:400;margin-left:8px}
.sec-input{display:flex;gap:8px}
.sec-input .input{flex:1}
.sec-input .input.clearing{border-color:var(--brand);background:var(--brand-light)}
.sec-clear{flex-shrink:0;padding:0 13px;border-radius:999px;border:1px solid var(--line);
  background:var(--bg-hover);color:var(--text-3);font-size:12.5px;cursor:pointer;transition:.15s}
.sec-clear:hover{color:var(--brand);border-color:#8fd4c6}
.set-save-bar{display:flex;align-items:center;flex-wrap:wrap;margin:18px 0 8px}

/* 移动端适配 */
@media (max-width:640px){
  .pay-channels{flex-direction:row}
  .pay-ch{max-width:none;padding:10px 8px;font-size:13px}
  .pay-qr-box{width:190px;height:190px}
  .set-grid{grid-template-columns:1fr}
  .set-banner{flex-direction:column;align-items:flex-start}
  .ao-head{gap:8px}
  .ao-head .st{margin-left:0}
  .ad-tab{padding:9px 14px;font-size:13.5px}
}
