/* =========================================================
 *  芮昇盛远科技 · 全局样式（极光深空 · 暗色科技设计体系 v4）
 * ========================================================= */

:root {
  /* 品牌主色：极光青 × 深空蓝 */
  --brand: #3b82f6;
  --brand-dark: #2563eb;
  --brand-deep: #1e3a8a;
  --accent: #22d3ee;
  --brand-light: rgba(59, 130, 246, .14);
  --brand-soft: rgba(34, 211, 238, .16);
  --gold: #fbbf24;

  --text-1: #e8ecf6;
  --text-2: #a3abc2;
  --text-3: #6b7490;
  --text-4: #454e6b;

  --bg-page: #0d1220;
  --bg-card: #161d31;
  --bg-card-2: #1b2340;
  --bg-hover: #1c2444;
  --line: #232b44;
  --line-strong: #2c3654;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;

  --shadow-s: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-l: 0 18px 48px rgba(0, 0, 0, .6);
  --glow: 0 0 0 1px rgba(34, 211, 238, .22), 0 8px 28px rgba(34, 211, 238, .12);

  --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(900px 420px at 85% -80px, rgba(59, 130, 246, .13), transparent 65%),
    radial-gradient(700px 380px at -60px 30%, rgba(34, 211, 238, .07), transparent 60%),
    var(--bg-page);
  font-size: 14px;
  line-height: 1.6;
  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: #2c3654; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3d4a74; }
::-webkit-scrollbar-track { background: transparent; }

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

/* ---------------- 顶部公告条 ---------------- */
.topbar {
  background: #0a0f1c;
  color: #93a3c4;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}
.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: #04121e; background: linear-gradient(135deg, #67e8f9, #38bdf8);
  padding: 1.5px 9px; border-radius: 4px;
}
.topbar .right { display: flex; align-items: center; gap: 16px; color: #5d6a8c; }
.topbar .right span { display: inline-flex; align-items: center; gap: 5px; }
.topbar .tp-div { width: 1px; height: 11px; background: rgba(148, 163, 184, .25); }

/* ---------------- 头部（暗色玻璃） ---------------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13, 18, 32, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  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: 13px;
  background: linear-gradient(150deg, #101a36, #0d1220);
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, .55), 0 0 22px rgba(34, 211, 238, .22);
  display: grid; place-items: center;
  color: #67e8f9; font-size: 23px; font-weight: 800;
}
.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 var(--brand);
  border-radius: 12px; overflow: hidden;
  background: var(--bg-card); transition: box-shadow .2s var(--ease);
}
.search-box:focus-within { box-shadow: var(--glow); }
.search-box .ico { padding: 0 6px 0 14px; 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, var(--brand), var(--accent));
  color: #04121e; font-weight: 800; font-size: 14px; letter-spacing: 2px;
  transition: filter .2s var(--ease);
}
.search-box .btn-search:hover { filter: brightness(1.12); }

/* 热搜词 */
.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(--accent); }

/* 搜索建议 */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card-2); border-radius: var(--radius); box-shadow: var(--shadow-l);
  border: 1px solid var(--line-strong); 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: 6px; object-fit: cover; background: #f4f5f7; flex-shrink: 0;
}
.suggest .item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .item .pr { color: var(--accent); font-weight: 700; font-size: 13px; }
.suggest .kw-tag {
  display: inline-block; padding: 4px 12px; margin: 2px; border-radius: 999px;
  background: rgba(148, 163, 184, .1); font-size: 12.5px; cursor: pointer; color: var(--text-2);
}
.suggest .kw-tag:hover { background: var(--brand-soft); color: var(--accent); }

/* 头部右侧动作 */
.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(--accent); }
.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, var(--accent), var(--brand)); color: #04121e; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
  border: 2px solid var(--bg-page);
}
.head-btn.highlight { color: var(--accent); }

/* 用户下拉 */
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 230px;
  background: var(--bg-card-2); border-radius: var(--radius); box-shadow: var(--shadow-l);
  border: 1px solid var(--line-strong); overflow: hidden; z-index: 300;
}
.user-menu .um-head {
  padding: 14px 16px; display: flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(34, 211, 238, .1));
}
.user-menu .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #04121e; display: grid; place-items: center; font-weight: 800; 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(--accent); }
.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: rgba(13, 18, 32, .65); 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(--accent); }
.nav-item.active { color: #fff; 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, var(--accent), var(--brand));
  box-shadow: 0 0 12px rgba(34, 211, 238, .55);
}

/* ---------------- 主要区域 ---------------- */
.main { padding: 22px 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:
    radial-gradient(420px 300px at 88% 0%, rgba(34, 211, 238, .3), transparent 65%),
    radial-gradient(380px 300px at 70% 110%, rgba(99, 102, 241, .35), transparent 65%),
    linear-gradient(120deg, #0e1630, #131c3c 60%, #16204a);
  border: 1px solid rgba(148, 163, 184, .14);
  padding: 44px 46px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hero-main .h-txt { position: relative; z-index: 2; }
.hero-main .h-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: #67e8f9; border: 1px solid rgba(103, 232, 249, .45);
  background: rgba(34, 211, 238, .07);
  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.3; letter-spacing: 1px; color: #fff; }
.hero-main h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #67e8f9, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-main p { color: #9db0d8; 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, #67e8f9, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-main .h-stat span { font-size: 12.5px; color: #64749e; }

/* 促销侧卡 */
.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:
    radial-gradient(220px 140px at 100% 0%, rgba(34, 211, 238, .22), transparent 70%),
    linear-gradient(135deg, #17204a, #101830);
  border: 1px solid rgba(34, 211, 238, .3); color: #eafcff;
}
.promo-glow .pc-d { color: #8fb8d8; }
.promo-glow .pc-link { color: #67e8f9; }
.promo-line {
  background:
    radial-gradient(220px 140px at 100% 100%, rgba(129, 140, 248, .25), transparent 70%),
    linear-gradient(135deg, #171f3e, #111737);
  border: 1px solid rgba(129, 140, 248, .35); color: #eef0ff;
}
.promo-line .pc-d { color: #9aa5d6; }
.promo-line .pc-link { color: #a5b4fc; }

/* 服务承诺条 */
.service-strip {
  background: var(--bg-card); 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(--accent);
  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: var(--bg-card); 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(34, 211, 238, .07), 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, #67e8f9, #818cf8);
  -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: #0a0f1c; border: 1px solid var(--line-strong); border-radius: 7px;
  font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; color: #67e8f9;
}
.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: var(--bg-card); 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: rgba(34, 211, 238, .5); 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: var(--bg-card); 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: rgba(148, 163, 184, .12); color: var(--text-3);
}
.rank-item.top .rk {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #04121e; box-shadow: 0 0 14px rgba(34, 211, 238, .4);
}
.rank-item img {
  width: 52px; height: 52px; border-radius: var(--radius-s); object-fit: cover;
  background: #f4f5f7; 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(--accent); }
.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(--accent); flex-shrink: 0; }
.rank-side { display: flex; flex-direction: column; gap: 12px; }
.side-cat {
  flex: 1; background: var(--bg-card); 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: rgba(34, 211, 238, .5); box-shadow: var(--glow); transform: translateY(-2px); }
.side-cat .sc-ic {
  width: 44px; height: 44px; border-radius: 12px; 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(--accent); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease); white-space: nowrap; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #04121e;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(34, 211, 238, .3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(34, 211, 238, .42); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--brand-light); }
.btn-hero-ghost {
  background: rgba(255, 255, 255, .06); color: #eafcff;
  border: 1px solid rgba(103, 232, 249, .5); backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: rgba(103, 232, 249, .14); }
.btn-plain { background: rgba(148, 163, 184, .12); color: var(--text-2); }
.btn-plain:hover { background: rgba(148, 163, 184, .2); color: var(--text-1); }
.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, var(--accent), var(--brand));
  box-shadow: 0 0 10px rgba(34, 211, 238, .5);
}
.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(--accent); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  background: var(--bg-card); 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: rgba(148, 163, 184, .1); color: var(--text-2); transition: all .18s var(--ease);
  border: 1px solid transparent;
}
.chip:hover { color: var(--accent); background: var(--brand-light); }
.chip.active { background: var(--brand-light); color: var(--accent); font-weight: 600; border-color: rgba(34, 211, 238, .4); }
.chip.chip-ghost { background: transparent; border-color: var(--line-strong); }
.chip.chip-ghost.active { background: var(--brand-light); border-color: rgba(34, 211, 238, .4); }

.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(--accent); background: var(--brand-light); }
.sort-item.active { color: var(--accent); font-weight: 600; background: var(--brand-light); }

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

.card {
  background: var(--bg-card); 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: rgba(34, 211, 238, .45);
}
.card .thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; background: #f4f5f7;
}
.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: 5px; font-size: 11px; font-weight: 600; color: #fff;
  backdrop-filter: blur(2px);
}
.cbadge.hot { background: linear-gradient(135deg, #ff4d4f, #ff7a45); }
.cbadge.new { background: linear-gradient(135deg, #52c41a, #73d13d); }
.cbadge.off { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.cbadge.low { background: linear-gradient(135deg, #fa8c16, #ffa940); }

.card .fav {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(10, 15, 28, .65); backdrop-filter: blur(4px);
  display: grid; place-items: center; font-size: 14px; color: var(--text-2);
  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(--accent); }
.card .fav.on { opacity: 1; transform: scale(1); color: var(--accent); }

/* 悬停滑出加购条 */
.card .quick-add {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 9px 0; font-size: 13px; font-weight: 700; color: #04121e; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transform: translateY(100%); transition: transform .22s var(--ease), filter .15s;
}
.card:hover .quick-add { transform: translateY(0); }
.card .quick-add:hover { filter: brightness(1.12); }
.card .quick-add:disabled { color: rgba(232, 236, 246, .6); background: rgba(28, 36, 68, .92); 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(--accent); }
.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(--accent); }
.card .price .num { font-size: 21px; font-weight: 800; color: var(--accent); 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 7px; border-radius: 4px; flex-shrink: 0;
  color: #7dd3fc; background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .3);
}
.card .stock-bar {
  margin-top: 9px; height: 4px; border-radius: 3px; background: rgba(148, 163, 184, .14); overflow: hidden;
}
.card .stock-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ---------------- 商品详情 ---------------- */
.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(--accent); }
.crumb .sep { color: var(--text-4); }
.crumb .cur { color: var(--text-1); }

.detail {
  background: var(--bg-card); 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: #f4f5f7;
  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: #f4f5f7;
}
.detail .thumbs .t.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(34, 211, 238, .25); }
.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: 5px;
  background: rgba(148, 163, 184, .12); color: var(--text-2);
}
.price-panel {
  margin: 18px 0; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(34, 211, 238, .09), rgba(99, 102, 241, .1));
  border: 1px solid rgba(34, 211, 238, .25);
}
.price-panel .now { display: flex; align-items: baseline; gap: 10px; }
.price-panel .now .cur { font-size: 15px; font-weight: 700; color: var(--accent); }
.price-panel .now .num { font-size: 36px; font-weight: 800; color: var(--accent); 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: 5px;
  background: linear-gradient(135deg, var(--accent), var(--brand)); color: #04121e; font-size: 12px; font-weight: 800; vertical-align: middle;
}
.price-panel .stats {
  display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed rgba(34, 211, 238, .25); 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: var(--radius-s); font-size: 13.5px;
  border: 1px solid var(--line-strong); background: var(--bg-card-2); color: var(--text-2);
  transition: all .18s var(--ease); position: relative;
}
.spec-opt:hover { border-color: var(--accent); color: var(--accent); }
.spec-opt.active {
  border-color: var(--accent); color: var(--accent); font-weight: 600;
  background: var(--brand-light);
}
.spec-opt.active::after {
  content: '✓'; position: absolute; right: -1px; bottom: -1px;
  background: var(--accent); color: #04121e; font-size: 9px; font-weight: 800;
  width: 15px; height: 15px; display: grid; place-items: center;
  border-radius: 7px 0 5px 0;
}

.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: var(--radius-s); overflow: hidden; background: var(--bg-card-2);
}
.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(--accent); }
.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; background: transparent;
}
.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(--accent); font-size: 15px; }

/* 详情 Tabs */
.tabs {
  background: var(--bg-card); 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(--accent); }
.tabs .tab.active { color: #fff; font-weight: 700; }
.tabs .tab.active::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: 3px;
  box-shadow: 0 0 10px rgba(34, 211, 238, .5);
}
.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, rgba(34, 211, 238, .3), rgba(99, 102, 241, .35));
  color: #aef3ff; 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: var(--bg-card); 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: var(--radius-s); overflow: hidden;
  background: #f4f5f7; 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(--accent); }
.cart-item .ci-spec {
  font-size: 12px; color: var(--text-3); margin-top: 6px;
  background: rgba(148, 163, 184, .1); display: inline-block; padding: 3px 9px; border-radius: 5px;
}
.cart-item .ci-tags { margin-top: 6px; display: flex; gap: 6px; }
.cart-item .ci-tags .t {
  font-size: 11px; color: var(--accent); background: var(--brand-light);
  padding: 1px 7px; border-radius: 4px;
}
.cart-item .ci-price { font-size: 14px; font-weight: 600; }
.cart-item .ci-sub { font-size: 16px; font-weight: 800; color: var(--accent); }
.cart-item .ci-del { color: var(--text-3); font-size: 13px; cursor: pointer; text-align: center; }
.cart-item .ci-del:hover { color: #f87171; }

.checkbox {
  width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; cursor: pointer; transition: all .18s var(--ease);
  background: transparent; flex-shrink: 0;
}
.checkbox:hover { border-color: var(--accent); }
.checkbox.on { background: linear-gradient(135deg, var(--accent), var(--brand)); border-color: transparent; }
.checkbox.on::after { content: '✓'; color: #04121e; font-size: 12px; font-weight: 800; 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: #4ade80; }
.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(--accent); 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: .5; 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: rgba(148, 163, 184, .14); 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: #04121e; }
.step.done .tx { color: var(--text-2); }
.step.on .dot { background: linear-gradient(135deg, var(--accent), var(--brand)); color: #04121e; box-shadow: 0 0 0 4px rgba(34, 211, 238, .16); }
.step.on .tx { color: var(--accent); 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: var(--bg-card-2);
}
.addr-card:hover { border-color: rgba(34, 211, 238, .45); }
.addr-card.on { border-color: var(--accent); background: var(--brand-light); }
.addr-card.on::after {
  content: '✓'; position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, var(--accent), var(--brand)); color: #04121e; font-size: 10px; font-weight: 800;
  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: 4px;
  background: linear-gradient(135deg, var(--accent), var(--brand)); color: #04121e; font-weight: 800;
}
.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(--accent); }
.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(--accent); color: var(--accent); 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: #f87171; margin-left: 3px; }
.input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); font-size: 14px; background: var(--bg-card-2);
  transition: all .18s var(--ease); color: var(--text-1);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.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: #f87171; 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: var(--radius-s); object-fit: cover; background: #f4f5f7; 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(--accent); 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: var(--bg-card-2);
}
.pay-method:hover { border-color: rgba(34, 211, 238, .45); }
.pay-method.on { border-color: var(--accent); 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: var(--bg-card); 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: rgba(148, 163, 184, .06); 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: #fbbf24; background: rgba(251, 191, 36, .12); }
.st.paid { color: #60a5fa; background: rgba(96, 165, 250, .12); }
.st.shipped { color: #c084fc; background: rgba(192, 132, 252, .12); }
.st.done { color: #4ade80; background: rgba(74, 222, 128, .12); }
.st.canceled { color: var(--text-3); background: rgba(148, 163, 184, .1); }
.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(--accent); }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(4, 8, 18, .66);
  backdrop-filter: blur(4px); 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: var(--bg-card-2); border: 1px solid var(--line-strong);
  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(0, 0, 0, .55); 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: rgba(148, 163, 184, .14); 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: rgba(148, 163, 184, .1); 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: var(--bg-hover); color: var(--accent); font-weight: 700; box-shadow: var(--shadow-s); }

.demo-tip {
  margin-top: 16px; padding: 11px 14px; border-radius: var(--radius-s);
  background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25); font-size: 12.5px; color: #7dd3fc;
  line-height: 1.7;
}
.demo-tip b { font-family: ui-monospace, Consolas, monospace; }
.demo-tip .use {
  color: var(--accent); 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(22, 29, 49, .95);
  border: 1px solid var(--line-strong);
  color: #e8ecf6; 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, #16a34a, #15803d); color: #fff; }
.toast.err { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.toast.info { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; }

/* 成功页 */
.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, #22c55e, #16a34a); color: #fff;
  display: grid; place-items: center; font-size: 38px;
  animation: pop .4s var(--ease); box-shadow: 0 8px 24px rgba(34, 197, 94, .35);
}
.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: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); color: #4ade80;
  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: var(--radius-s); 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(--accent); }
.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; background: transparent; }

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

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #1b2340 25%, #232c4e 37%, #1b2340 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: #0a0f1c; 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 rgba(148, 163, 184, .1);
}
.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: 10px;
  background: linear-gradient(150deg, #101a36, #0d1220);
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, .5);
  display: grid; place-items: center;
  color: #67e8f9; font-size: 18px; font-weight: 800;
}
.footer .f-brand .f-logo b { color: #e8ecf6; font-size: 16.5px; letter-spacing: 1px; }
.footer .f-brand .f-desc { font-size: 12.5px; color: #64748b; 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: #93a3c4; border: 1px solid rgba(148, 163, 184, .22);
  padding: 3px 10px; border-radius: 999px;
}
.footer .f-col h4 { font-size: 14px; margin-bottom: 12px; color: #dbe3f4; letter-spacing: .5px; }
.footer .f-col p, .footer .f-col a {
  display: block; font-size: 12.5px; color: #64748b; margin-bottom: 8px; cursor: pointer; line-height: 1.6;
}
.footer .f-col a:hover { color: #67e8f9; }
.footer .f-contact .f-tel { font-size: 19px; font-weight: 800; color: #67e8f9; letter-spacing: 1px; }
.footer .f-contact .f-time { font-size: 12px; color: #64748b; }
.footer .f-contact .f-mail { font-size: 12px; color: #64748b; }
.footer .f-bot {
  padding: 18px 20px 0;
  font-size: 12px; color: #3d4a6b; text-align: center; line-height: 1.9;
}

/* 返回顶部 */
.to-top {
  position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card-2); 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(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* 加载条 */
#loadingBar {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
  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(13, 18, 32, .92); 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(--accent); }
  .tabbar .tb.on .tb-ic { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .65)); }
  .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:11px;background:var(--bg-card-2);
  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:rgba(34,211,238,.45)}
.pay-ch.on{border-color:var(--accent);color:var(--accent);background:var(--brand-light);
  box-shadow:0 3px 10px rgba(34,211,238,.16)}
.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(--accent);border-radius:50%;animation:rsspin .8s linear infinite}
@keyframes rsspin{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-strong);border-radius:14px;
  background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.4);margin:6px auto 12px}
.pay-qr-box.wechat{border-color:#22c55e}
.pay-qr-box.alipay{border-color:#3b82f6}
.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:#fbbf24;background:rgba(251,191,36,.1);
  border:1px solid rgba(251,191,36,.3);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:#fbbf24;background:rgba(251,191,36,.1);border:1px solid rgba(251,191,36,.3);
  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:#2c3654;border:2.5px solid #1b2340;
  flex-shrink:0;margin-top:3px;position:relative;z-index:1}
.logi-item.now .li-dot{background:var(--accent);border-color:rgba(34,211,238,.3);box-shadow:0 0 0 3px rgba(34,211,238,.18)}
.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:11px;background:var(--bg-card);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:rgba(34,211,238,.45);color:var(--text-1)}
.ad-tab.active{background:linear-gradient(135deg,var(--brand),var(--accent));border-color:transparent;
  color:#04121e;font-weight:800;box-shadow:0 5px 14px rgba(34,211,238,.3)}

/* 订单卡片 */
.adm-order{background:var(--bg-card);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:rgba(148,163,184,.06);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:rgba(251,191,36,.12);color:#fbbf24}
.st.paid{background:rgba(96,165,250,.12);color:#60a5fa}
.st.shipped{background:rgba(192,132,252,.12);color:#c084fc}
.st.done{background:rgba(74,222,128,.12);color:#4ade80}
.st.cancelled{background:rgba(148,163,184,.1);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:#f4f5f7}
.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(--accent)}

/* 系统设置 */
.set-banner{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  background:linear-gradient(120deg,rgba(34,211,238,.08),rgba(99,102,241,.1));border:1px solid rgba(34,211,238,.22);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:rgba(74,222,128,.12);color:#4ade80;border:1px solid rgba(74,222,128,.3)}
.live-badge.demo{background:rgba(251,191,36,.1);color:#fbbf24;border:1px solid rgba(251,191,36,.3)}
.set-panel{background:var(--bg-card);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(--accent);background:var(--brand-light)}
.sec-clear{flex-shrink:0;padding:0 13px;border-radius:9px;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(--accent);border-color:rgba(34,211,238,.45)}
.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}
}
