/* =========================================================
   兖卡商城 · 自动发卡平台
   样式表 - 支持亮色/暗色双主题
   ========================================================= */

:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: rgba(79, 70, 229, .08);
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);

  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e6e9f2;
  --border-strong: #d5dae8;

  --text: #101425;
  --text-2: #5a6377;
  --text-3: #98a0b3;

  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, .1);
  --red: #dc2626;
  --red-bg: rgba(220, 38, 38, .1);
  --orange: #ea580c;
  --orange-bg: rgba(234, 88, 12, .1);
  --blue: #2563eb;
  --blue-bg: rgba(37, 99, 235, .1);

  --shadow-sm: 0 1px 2px rgba(16, 20, 37, .05);
  --shadow: 0 4px 16px rgba(16, 20, 37, .07);
  --shadow-lg: 0 18px 48px rgba(16, 20, 37, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
}

[data-theme="dark"] {
  --brand: #818cf8;
  --brand-2: #a78bfa;
  --brand-soft: rgba(129, 140, 248, .14);
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);

  --bg: #0c0e14;
  --bg-alt: #12151d;
  --surface: #151922;
  --surface-2: #1b202b;
  --border: #262c3a;
  --border-strong: #333b4d;

  --text: #e9ecf5;
  --text-2: #a2abbf;
  --text-3: #6d7689;

  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, .12);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, .12);
  --orange: #fb923c;
  --orange-bg: rgba(251, 146, 60, .12);
  --blue: #60a5fa;
  --blue-bg: rgba(96, 165, 250, .12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 4px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f4f6fb;
  background: var(--bg);
  color: #101425;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d5dae8; background: var(--border-strong); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #98a0b3; background: var(--text-3); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部公告条 ---------------- */
.topbar {
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  height: 0;
  transition: height .25s;
}
.topbar.on { height: 38px; }
.topbar .container { display: flex; align-items: center; height: 38px; gap: 10px; }
.topbar .lay-bell { flex: 0 0 auto; opacity: .9; }
.topbar .marquee { flex: 1; overflow: hidden; position: relative; height: 20px; }
.topbar .marquee > span {
  position: absolute; white-space: nowrap; top: 0; left: 100%;
  animation: marquee 26s linear infinite;
}
@keyframes marquee { 0% { left: 100%; } 100% { left: -180%; } }
.topbar .top-right { flex: 0 0 auto; display: flex; gap: 14px; opacity: .92; font-size: 12.5px; }

/* ---------------- 导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #ffffff;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid #e6e9f2;
  border-bottom: 1px solid var(--border);
}
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header { background: color-mix(in srgb, #ffffff 86%, transparent); background: color-mix(in srgb, var(--surface) 86%, transparent); }
}
.site-header .container { display: flex; align-items: center; height: 62px; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.4px; flex: 0 0 auto; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.logo small { display: block; font-size: 10px; font-weight: 500; color: #98a0b3; color: var(--text-3); letter-spacing: 2px; margin-top: -4px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 14px; color: #5a6377; color: var(--text-2);
  font-weight: 500; transition: .16s; white-space: nowrap;
}
.nav a:hover { background: rgba(79, 70, 229, .08); background: var(--brand-soft); color: #4f46e5; color: var(--brand); }
.nav a.active { background: rgba(79, 70, 229, .08); background: var(--brand-soft); color: #4f46e5; color: var(--brand); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e6e9f2; border: 1px solid var(--border);
  background: #ffffff;
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: .16s;
}
.icon-btn:hover { border-color: #4f46e5; border-color: var(--brand); color: #4f46e5; color: var(--brand); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .16s;
  white-space: nowrap; background: #f8f9fc; background: var(--surface-2); color: #101425; color: var(--text);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 8px 22px rgba(79, 70, 229, .38); }
.btn-ghost { background: transparent; border-color: #d5dae8; border-color: var(--border-strong); }
.btn-ghost:hover { border-color: #4f46e5; border-color: var(--brand); color: #4f46e5; color: var(--brand); }
.btn-soft { background: rgba(79, 70, 229, .08); background: var(--brand-soft); color: #4f46e5; color: var(--brand); }
.btn-soft:hover { background: color-mix(in srgb, #4f46e5 18%, transparent); background: color-mix(in srgb, var(--brand) 18%, transparent); }
.btn-danger { background: rgba(220, 38, 38, .1); background: var(--red-bg); color: #dc2626; color: var(--red); }
.btn-danger:hover { background: #dc2626; background: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------- 主区域 ---------------- */
#app { flex: 1; padding-bottom: 60px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  background: var(--grad); color: #fff;
  padding: 52px 0 62px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 82% 10%, rgba(255,255,255,.22), transparent 62%),
    radial-gradient(520px 260px at 8% 96%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; min-width: 0; }
.hero h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.8px; font-weight: 800; margin-bottom: 12px; }
.hero p.sub { font-size: 15px; opacity: .9; margin-bottom: 26px; max-width: 520px; }
.hero-feats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-feat {
  display: flex; align-items: center; gap: 8px; padding: 9px 15px;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px; font-size: 13px; backdrop-filter: blur(8px);
}
.hero-stats { display: flex; gap: 26px; margin-top: 30px; }
.hero-stat b { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.hero-stat span { font-size: 12.5px; opacity: .82; }
.hero-search {
  flex: 0 0 360px; background: #ffffff; background: var(--surface); border-radius: 20px; border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 18px 48px rgba(16, 20, 37, .14); box-shadow: var(--shadow-lg); color: #101425; color: var(--text);
}
.hero-search h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hero-search .quick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-search .quick-list a {
  padding: 5px 11px; border-radius: 8px; background: #f8f9fc; background: var(--surface-2);
  font-size: 12.5px; color: #5a6377; color: var(--text-2); border: 1px solid #e6e9f2; border: 1px solid var(--border);
  transition: .15s;
}
.hero-search .quick-list a:hover { border-color: #4f46e5; border-color: var(--brand); color: #4f46e5; color: var(--brand); }

/* ---------------- 搜索栏 / 筛选 ---------------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; flex-wrap: wrap; }
.search-box {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 9px;
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 11px;
  padding: 0 14px; height: 42px; transition: .16s;
}
.search-box:focus-within { border-color: #4f46e5; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .08); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box input { flex: 1; border: 0; background: transparent; outline: none; height: 100%; }
.search-box input::placeholder { color: #98a0b3; color: var(--text-3); }

.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
  padding: 8px 15px; border-radius: 10px; background: #ffffff; background: var(--surface);
  border: 1px solid #e6e9f2;
  border: 1px solid var(--border); font-size: 13.5px; color: #5a6377; color: var(--text-2);
  cursor: pointer; transition: .16s; font-weight: 500;
}
.cat-chip:hover { border-color: #4f46e5; border-color: var(--brand); color: #4f46e5; color: var(--brand); }
.cat-chip.on { background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 5px 14px rgba(79,70,229,.26); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 16px; }
.section-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 9px; }
.section-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); background: var(--grad); }
.section-head .more { font-size: 13px; color: #98a0b3; color: var(--text-3); }

/* ---------------- 商品卡片 ---------------- */
.goods-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.goods-grid > * { flex: 1 1 268px; min-width: 0; }
.goods-card {
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
  position: relative;
}
.goods-card:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(16, 20, 37, .14); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, #4f46e5 40%, #e6e9f2); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.goods-card .thumb {
  height: 116px; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, #f8f9fc, #ffffff);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid #e6e9f2;
  border-bottom: 1px solid var(--border); position: relative;
}
.goods-card .thumb .ribbon {
  position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; background: #dc2626; background: var(--red); color: #fff;
}
.goods-card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.goods-card .name { font-size: 14.5px; font-weight: 650; line-height: 1.45; letter-spacing: -.2px; }
.goods-card .desc { font-size: 12.5px; color: #98a0b3; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.goods-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.goods-card .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { color: #dc2626; color: var(--red); font-weight: 800; letter-spacing: -.5px; }
.price .cur { font-size: 13px; }
.price .num { font-size: 22px; }
.price .old { font-size: 12px; color: #98a0b3; color: var(--text-3); text-decoration: line-through; font-weight: 500; margin-left: 5px; }

.tag {
  font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600;
  background: #f8f9fc;
  background: var(--surface-2); color: #5a6377; color: var(--text-2); border: 1px solid #e6e9f2; border: 1px solid var(--border);
}
.tag.green { background: rgba(22, 163, 74, .1); background: var(--green-bg); color: #16a34a; color: var(--green); border-color: transparent; }
.tag.red { background: rgba(220, 38, 38, .1); background: var(--red-bg); color: #dc2626; color: var(--red); border-color: transparent; }
.tag.orange { background: rgba(234, 88, 12, .1); background: var(--orange-bg); color: #ea580c; color: var(--orange); border-color: transparent; }
.tag.blue { background: rgba(37, 99, 235, .1); background: var(--blue-bg); color: #2563eb; color: var(--blue); border-color: transparent; }

/* ---------------- 卡片 / 面板 ---------------- */
.panel {
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius);
  padding: 20px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.panel-head h3 { font-size: 15.5px; font-weight: 700; }

/* ---------------- 面包屑 ---------------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #98a0b3; color: var(--text-3); margin: 22px 0 18px; }
.crumb a:hover { color: #4f46e5; color: var(--brand); }
.crumb .sep { opacity: .5; }

/* ---------------- 商品详情 ---------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 22px; align-items: start; }
.detail-main { background: #ffffff; background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius); overflow: hidden; }
.detail-hero {
  padding: 26px; display: flex; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #f8f9fc, #ffffff);
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-bottom: 1px solid #e6e9f2; border-bottom: 1px solid var(--border);
}
.detail-hero .icon {
  width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center;
  font-size: 42px; background: #ffffff; background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); flex: 0 0 auto;
}
.detail-hero h1 { font-size: 22px; font-weight: 750; letter-spacing: -.5px; margin-bottom: 8px; }
.detail-hero .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-body { padding: 22px 26px 26px; }
.detail-body h3 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.detail-body h3::before { content: ""; width: 3px; height: 15px; border-radius: 3px; background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); background: var(--grad); }
.detail-body .rich { font-size: 13.5px; color: #5a6377; color: var(--text-2); line-height: 1.85; }
.detail-body .rich ul { padding-left: 20px; }
.detail-body .rich li { margin: 4px 0; }

.buy-box { position: sticky; top: 78px; background: #ffffff; background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius); overflow: hidden; }
.buy-box .bb-head { padding: 16px 20px; border-bottom: 1px solid #e6e9f2; border-bottom: 1px solid var(--border); background: #f8f9fc; background: var(--surface-2); }
.buy-box .bb-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: #5a6377; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field > label .req { color: #dc2626; color: var(--red); }
.field .hint { font-size: 11.5px; color: #98a0b3; color: var(--text-3); }

.input, .select, .textarea {
  width: 100%; background: #f8f9fc; background: var(--surface-2); border: 1px solid #e6e9f2; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 13px; outline: none; transition: .16s;
  font-size: 14px; color: #101425; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: #4f46e5; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .08); box-shadow: 0 0 0 3px var(--brand-soft); background: #ffffff; background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: #98a0b3; color: var(--text-3); }
.textarea { resize: vertical; min-height: 90px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; }
.select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b3' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}

.qty-ctrl { display: flex; align-items: center; gap: 0; }
.qty-ctrl button {
  width: 38px; height: 40px; background: #f8f9fc; background: var(--surface-2); border: 1px solid #e6e9f2; border: 1px solid var(--border);
  cursor: pointer; font-size: 17px; transition: .15s; color: #5a6377; color: var(--text-2);
}
.qty-ctrl button:first-child { border-radius: 10px 0 0 10px; }
.qty-ctrl button:last-child { border-radius: 0 10px 10px 0; }
.qty-ctrl button:hover { color: #4f46e5; color: var(--brand); border-color: #4f46e5; border-color: var(--brand); }
.qty-ctrl input { width: 74px; height: 40px; text-align: center; border: 1px solid #e6e9f2; border: 1px solid var(--border); border-left: 0; border-right: 0; background: #ffffff; background: var(--surface); outline: none; font-weight: 700; }

.tier-tip { font-size: 12px; color: #16a34a; color: var(--green); background: rgba(22, 163, 74, .1); background: var(--green-bg); padding: 7px 11px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.pay-method {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border: 1px solid #e6e9f2;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  background: #f8f9fc;
  background: var(--surface-2); transition: .16s; font-size: 13.5px; font-weight: 550;
}
.pay-method:hover { border-color: #4f46e5; border-color: var(--brand); }
.pay-method.on { border-color: #4f46e5; border-color: var(--brand); background: rgba(79, 70, 229, .08); background: var(--brand-soft); color: #4f46e5; color: var(--brand); box-shadow: 0 0 0 2px rgba(79, 70, 229, .08); box-shadow: 0 0 0 2px var(--brand-soft); }
.pay-method .pm-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: 0 0 auto; }

.order-summary { background: #f8f9fc; background: var(--surface-2); border-radius: 11px; padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.order-summary .row { display: flex; justify-content: space-between; color: #5a6377; color: var(--text-2); }
.order-summary .row.total { border-top: 1px dashed #d5dae8; border-top: 1px dashed var(--border-strong); padding-top: 9px; margin-top: 3px; align-items: baseline; }
.order-summary .row.total span:last-child { color: #dc2626; color: var(--red); font-size: 21px; font-weight: 800; }

/* ---------------- 支付页 ---------------- */
.pay-wrap { max-width: 880px; margin: 30px auto; display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 20px; align-items: start; }
.qr-box { text-align: center; }
.qr-frame {
  width: 216px; height: 216px; margin: 0 auto 12px; padding: 12px;
  background: #fff; border-radius: 14px; border: 1px solid #e6e9f2; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(16, 20, 37, .07); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.qr-frame canvas { width: 100%; height: 100%; display: block; }
.qr-frame .qr-logo {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  border: 3px solid #fff;
}
.qr-frame.expired::after {
  content: "二维码已过期"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #dc2626; color: var(--red); font-weight: 700; font-size: 14px;
}
.countdown { font-size: 14px; color: #5a6377; color: var(--text-2); }
.countdown b { color: #dc2626; color: var(--red); font-variant-numeric: tabular-nums; font-size: 17px; }

.steps { display: flex; align-items: center; gap: 0; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #98a0b3; color: var(--text-3); }
.step .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f8f9fc; background: var(--surface-2); border: 1px solid #e6e9f2; border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.step.on { color: #4f46e5; color: var(--brand); font-weight: 600; }
.step.on .dot { background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); background: var(--grad); border-color: transparent; color: #fff; }
.step.done .dot { background: #16a34a; background: var(--green); border-color: transparent; color: #fff; }
.step-line { flex: 1; height: 2px; background: #e6e9f2; background: var(--border); margin: 0 12px; min-width: 22px; }
.step-line.on { background: #16a34a; background: var(--green); }

/* 卡密结果 */
.card-result {
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius);
  padding: 22px; margin-top: 18px;
}
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.result-head .ok-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(22, 163, 74, .1); background: var(--green-bg); color: #16a34a; color: var(--green); display: grid; place-items: center; font-size: 21px; }
.result-head h2 { font-size: 18px; font-weight: 750; }
.result-head p { font-size: 13px; color: #98a0b3; color: var(--text-3); }

.card-list { display: flex; flex-direction: column; gap: 9px; }
.card-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #f8f9fc;
  background: var(--surface-2); border: 1px dashed #d5dae8; border: 1px dashed var(--border-strong); border-radius: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px;
}
.card-item .idx { color: #98a0b3; color: var(--text-3); font-size: 12px; flex: 0 0 auto; }
.card-item .val { flex: 1; word-break: break-all; font-weight: 600; }
.card-item .cp { flex: 0 0 auto; }

/* ---------------- 订单查询 ---------------- */
.query-wrap { max-width: 760px; margin: 34px auto; }
.query-box { display: flex; gap: 10px; }
.query-box .search-box { height: 46px; }
.order-item {
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
}
.order-item .oi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.order-item .oi-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #5a6377; color: var(--text-2); }
.order-item .oi-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #5a6377; color: var(--text-2); }
.order-item .oi-row b { color: #101425; color: var(--text); font-weight: 650; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius); background: #ffffff; background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.grid th {
  text-align: left; padding: 12px 14px; background: #f8f9fc; background: var(--surface-2);
  font-weight: 650; font-size: 12.5px; color: #5a6377; color: var(--text-2); white-space: nowrap;
  border-bottom: 1px solid #e6e9f2;
  border-bottom: 1px solid var(--border);
}
table.grid td { padding: 12px 14px; border-bottom: 1px solid #e6e9f2; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr { transition: .13s; }
table.grid tbody tr:hover { background: #f8f9fc; background: var(--surface-2); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* ---------------- 后台 ---------------- */
.admin-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.admin-side { border-right: 1px solid #e6e9f2; border-right: 1px solid var(--border); background: #ffffff; background: var(--surface); padding: 18px 12px; }
.admin-side .as-title { font-size: 11px; letter-spacing: 1.4px; color: #98a0b3; color: var(--text-3); font-weight: 700; padding: 0 12px 10px; }
.admin-side .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: #5a6377; color: var(--text-2); cursor: pointer; transition: .15s; font-weight: 500; margin-bottom: 3px;
}
.admin-side .nav-item:hover { background: #f8f9fc; background: var(--surface-2); color: #101425; color: var(--text); }
.admin-side .nav-item.on { background: rgba(79, 70, 229, .08); background: var(--brand-soft); color: #4f46e5; color: var(--brand); font-weight: 650; }
.admin-main { padding: 24px 26px 50px; min-width: 0; background: #f4f6fb; background: var(--bg); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: 21px; font-weight: 750; letter-spacing: -.4px; }
.admin-head p { font-size: 13px; color: #98a0b3; color: var(--text-3); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #ffffff; background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 14px; border-radius: var(--radius); padding: 17px 18px; position: relative; overflow: hidden; }
.stat-card .sc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; margin-bottom: 11px; }
.stat-card .sc-label { font-size: 12.5px; color: #98a0b3; color: var(--text-3); }
.stat-card .sc-val { font-size: 25px; font-weight: 800; letter-spacing: -.7px; margin-top: 2px; }
.stat-card .sc-sub { font-size: 11.5px; color: #98a0b3; color: var(--text-3); margin-top: 4px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(9, 11, 20, .55); backdrop-filter: blur(4px);
  z-index: 200; display: grid; place-items: center; padding: 20px;
  animation: fadeIn .16s ease;
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 20px; border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(16, 20, 37, .14);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh;
  display: flex; flex-direction: column; animation: pop .2s cubic-bezier(.2,.9,.3,1.2);
  margin: auto;
}
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #e6e9f2; border-bottom: 1px solid var(--border); gap: 12px; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-head .close { width: 30px; height: 30px; border-radius: 8px; border: 0; background: #f8f9fc; background: var(--surface-2); cursor: pointer; font-size: 16px; color: #5a6377; color: var(--text-2); display: grid; place-items: center; }
.modal-head .close:hover { background: rgba(220, 38, 38, .1); background: var(--red-bg); color: #dc2626; color: var(--red); }
.modal-body { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.modal-foot { padding: 15px 22px; border-top: 1px solid #e6e9f2; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

/* ---------------- Toast ---------------- */
.toast-root { position: fixed; top: 76px; right: 22px; z-index: 400; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-left: 4px solid #4f46e5; border-left: 4px solid var(--brand);
  border-radius: 11px; padding: 12px 17px; box-shadow: 0 18px 48px rgba(16, 20, 37, .14); box-shadow: var(--shadow-lg); font-size: 13.5px;
  min-width: 224px; max-width: 340px; display: flex; align-items: center; gap: 9px;
  animation: slideIn .24s cubic-bezier(.2,.9,.3,1.15); pointer-events: auto;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.toast.out { animation: slideOut .22s forwards; }
@keyframes slideOut { to { opacity: 0; transform: translateX(28px); } }
.toast.success { border-left-color: #16a34a; border-left-color: var(--green); }
.toast.error { border-left-color: #dc2626; border-left-color: var(--red); }
.toast.warn { border-left-color: #ea580c; border-left-color: var(--orange); }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 60px 20px; color: #98a0b3; color: var(--text-3); }
.empty .em-ico { font-size: 46px; opacity: .45; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid #e6e9f2; border-top: 1px solid var(--border); background: #ffffff; background: var(--surface); padding: 34px 0 26px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer-grid h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid li, .footer-grid a { font-size: 13px; color: #98a0b3; color: var(--text-3); }
.footer-grid a:hover { color: #4f46e5; color: var(--brand); }
.footer-bottom { border-top: 1px solid #e6e9f2; border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #98a0b3; color: var(--text-3); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-search { flex: none; }
  .detail { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .pay-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero h1 { font-size: 25px; }
  .hero-stats { gap: 18px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid #e6e9f2; border-bottom: 1px solid var(--border); display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .admin-side .as-title { display: none; }
  .admin-side .nav-item { margin: 0; white-space: nowrap; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .top-right { display: none; }
}

/* =========================================================
   首页：纯下载页 + 醒目充值入口
   ========================================================= */
.dl-hero { padding: 44px 0 52px; }
.dl-hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px; margin-bottom: 16px;
}
.dl-hero h1 { font-size: 38px; line-height: 1.2; letter-spacing: -1px; font-weight: 850; margin-bottom: 12px; }
.dl-hero p.sub { max-width: 640px; margin-bottom: 24px; }
.dl-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }

/* 充值按钮：橙红渐变 + 呼吸动效，全站最显眼 */
.btn-recharge {
  display: inline-flex; align-items: center; gap: 10px; border: 0;
  background: linear-gradient(135deg, #ff9a4d 0%, #ff5a1f 48%, #e02f0a 100%);
  color: #fff !important; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 8px 22px rgba(224, 47, 10, .38);
  animation: rcPulse 2.6s ease-in-out infinite;
}

/* 首页主视觉：盟重往事宣传视频做背景（视频：assets/hero-bg.mp4）
   背景图为视频首帧海报，视频加载前/不支持时兜底 */
.dl-hero {
  background-color: #140c26;
  background-image: url("hero-poster.jpg");
  background-position: center 30%;
  background-repeat: no-repeat;
  /* IE11 不认 cover 简写，单独写 */
  background-size: cover;
}
/* 头部背景视频：铺满裁切（不用 object-fit，IE 不支持） */
.dl-hero-video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
  pointer-events: none;
}
.dl-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  background: linear-gradient(100deg,
    rgba(10, 6, 22, .88) 0%, rgba(16, 9, 34, .80) 34%,
    rgba(20, 10, 40, .46) 66%, rgba(8, 5, 18, .62) 100%);
  pointer-events: none;
}
.dl-hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 5, 18, .35) 0%, rgba(8, 5, 18, 0) 30%, rgba(8, 5, 18, .5) 100%);
  pointer-events: none;
}
.dl-hero > .container { position: relative; z-index: 3; }
.dl-hero .hero-feat { background: rgba(12, 8, 26, .55); border-color: rgba(255, 255, 255, .3); }
.dl-hero .hero-feats { position: relative; z-index: 3; }

.btn-recharge:hover { filter: brightness(1.06); }
.dl-cta .btn-recharge.btn-lg { padding: 15px 30px; font-size: 17px; border-radius: 14px; }
.rc-ico { font-size: 23px; line-height: 1; }
.rc-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.rc-txt small { font-size: 11.5px; font-weight: 600; opacity: .92; margin-top: 3px; letter-spacing: .4px; }
@keyframes rcPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(224, 47, 10, .36); transform: translateY(0); }
  50% { box-shadow: 0 12px 30px rgba(224, 47, 10, .52); transform: translateY(-2px); }
}

.btn-outline-light { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .48); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .26); }

.dl-tip {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 15px 18px;
  background: rgba(79, 70, 229, .08);
  background: var(--brand-soft); border: 1px solid rgba(79, 70, 229, .18); border-radius: 14px;
}
.dl-tip-ico { font-size: 21px; flex: 0 0 auto; }
.dl-tip-txt { flex: 1; font-size: 13.5px; color: #5a6377; color: var(--text-2); line-height: 1.65; }
.dl-tip-txt b { color: #101425; color: var(--text); }

.ver-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.ver-card {
  flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column;
  background: #ffffff;
  background: var(--surface); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: 0 1px 2px rgba(16, 20, 37, .05); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ver-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(16, 20, 37, .07); box-shadow: var(--shadow); border-color: rgba(79, 70, 229, .34); }
.ver-top { display: flex; gap: 14px; margin-bottom: 16px; }
.ver-ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: #f8f9fc;
  background: var(--surface-2); border: 1px solid #e6e9f2; border: 1px solid var(--border);
}
.ver-meta { flex: 1; min-width: 0; }
.ver-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 750; margin-bottom: 6px; }
.ver-name a { color: #101425; color: var(--text); }
.ver-name a:hover { color: #4f46e5; color: var(--brand); }
.ver-desc { font-size: 12.5px; color: #5a6377; color: var(--text-2); line-height: 1.65; }
.ver-actions { margin-top: auto; }
.ver-alt { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 11px; font-size: 12.5px; }
.ver-alt a { color: #4f46e5; color: var(--brand); }
.ver-alt a:hover { text-decoration: underline; }
.ver-alt .off { color: #98a0b3; color: var(--text-3); }
/* 版本官网入口 */
.ver-site {
  display: block; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #e6e9f2;
  border-top: 1px dashed var(--border);
  font-size: 12.5px; color: #5a6377; color: var(--text-2); text-align: center;
}
.ver-site:hover { color: #4f46e5; color: var(--brand); }

/* 下单前的充值通道确认 */
.co-list {
  border: 1px solid #e6e9f2;
  border: 1px solid var(--border); border-radius: 12px;
  background: #f8f9fc;
  background: var(--surface-2); padding: 4px 16px; margin-bottom: 14px;
}
.co-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 13.5px; color: #98a0b3; color: var(--text-3);
  border-bottom: 1px dashed #e6e9f2;
  border-bottom: 1px dashed var(--border);
}
.co-row:last-child { border-bottom: 0; }
.co-row b { color: #101425; color: var(--text); font-weight: 650; }
.co-row .co-hl { color: #4f46e5; color: var(--brand); font-size: 15px; font-weight: 800; }
.co-row .co-price { color: #dc2626; color: var(--red); font-size: 17px; font-weight: 800; }
.co-warn {
  font-size: 12.5px; line-height: 1.9; color: #b45309;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 10px; padding: 10px 13px;
}
html[data-theme="dark"] .co-warn { background: #2a1d0f; border-color: #7c4a12; color: #fbbf24; }

.dl-notes { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-note { flex: 1 1 240px; min-width: 0; background: #f8f9fc; background: var(--surface-2); border: 1px solid #e6e9f2; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.dl-note b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.dl-note span { font-size: 12.5px; color: #5a6377; color: var(--text-2); line-height: 1.65; }
.dl-help { margin: 22px 0 6px; text-align: center; font-size: 13px; color: #98a0b3; color: var(--text-3); }
.dl-help b { color: #101425; color: var(--text); }

.rc-hero { padding: 40px 0 46px; }

@media (max-width: 760px) {
  .dl-hero h1 { font-size: 26px; }
  .dl-cta .btn-recharge.btn-lg { width: 100%; justify-content: center; }
  .dl-tip { flex-wrap: wrap; }
}

/* ==== IE10/11 专用：flex gap 负 margin 回退 + 内联 grid 转 flex ==== */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .topbar .container { margin-right: -10px; margin-bottom: -10px; }
  .topbar .container > * { margin-right: 10px; margin-bottom: 10px; }
  .topbar .container > *:last-child { margin-right: 0; }

  .topbar .top-right { margin-right: -14px; margin-bottom: -14px; }
  .topbar .top-right > * { margin-right: 14px; margin-bottom: 14px; }
  .topbar .top-right > *:last-child { margin-right: 0; }

  .site-header .container { margin-right: -26px; margin-bottom: -26px; }
  .site-header .container > * { margin-right: 26px; margin-bottom: 26px; }
  .site-header .container > *:last-child { margin-right: 0; }

  .logo { margin-right: -10px; margin-bottom: -10px; }
  .logo > * { margin-right: 10px; margin-bottom: 10px; }
  .logo > *:last-child { margin-right: 0; }

  .nav { margin-right: -4px; margin-bottom: -4px; }
  .nav > * { margin-right: 4px; margin-bottom: 4px; }
  .nav > *:last-child { margin-right: 0; }

  .header-actions { margin-right: -10px; margin-bottom: -10px; }
  .header-actions > * { margin-right: 10px; margin-bottom: 10px; }
  .header-actions > *:last-child { margin-right: 0; }

  .btn { margin-right: -7px; margin-bottom: -7px; }
  .btn > * { margin-right: 7px; margin-bottom: 7px; }
  .btn > *:last-child { margin-right: 0; }

  .hero-inner { margin-right: -40px; margin-bottom: -40px; }
  .hero-inner > * { margin-right: 40px; margin-bottom: 40px; }
  .hero-inner > *:last-child { margin-right: 0; }

  .hero-feats { margin-right: -12px; margin-bottom: -12px; }
  .hero-feats > * { margin-right: 12px; margin-bottom: 12px; }
  .hero-feats > *:last-child { margin-right: 0; }

  .hero-feat { margin-right: -8px; margin-bottom: -8px; }
  .hero-feat > * { margin-right: 8px; margin-bottom: 8px; }
  .hero-feat > *:last-child { margin-right: 0; }

  .hero-stats { margin-right: -26px; margin-bottom: -26px; }
  .hero-stats > * { margin-right: 26px; margin-bottom: 26px; }
  .hero-stats > *:last-child { margin-right: 0; }

  .hero-search h3 { margin-right: -8px; margin-bottom: -8px; }
  .hero-search h3 > * { margin-right: 8px; margin-bottom: 8px; }
  .hero-search h3 > *:last-child { margin-right: 0; }

  .hero-search .quick-list { margin-right: -8px; margin-bottom: -8px; }
  .hero-search .quick-list > * { margin-right: 8px; margin-bottom: 8px; }
  .hero-search .quick-list > *:last-child { margin-right: 0; }

  .toolbar { margin-right: -12px; margin-bottom: -12px; }
  .toolbar > * { margin-right: 12px; margin-bottom: 12px; }
  .toolbar > *:last-child { margin-right: 0; }

  .search-box { margin-right: -9px; margin-bottom: -9px; }
  .search-box > * { margin-right: 9px; margin-bottom: 9px; }
  .search-box > *:last-child { margin-right: 0; }

  .cats { margin-right: -8px; margin-bottom: -8px; }
  .cats > * { margin-right: 8px; margin-bottom: 8px; }
  .cats > *:last-child { margin-right: 0; }

  .section-head h2 { margin-right: -9px; margin-bottom: -9px; }
  .section-head h2 > * { margin-right: 9px; margin-bottom: 9px; }
  .section-head h2 > *:last-child { margin-right: 0; }

  .goods-grid { margin-right: -16px; margin-bottom: -16px; }
  .goods-grid > * { margin-right: 16px; margin-bottom: 16px; }
  .goods-grid > *:last-child { margin-right: 0; }

  .goods-card .body { margin-right: -9px; margin-bottom: -9px; }
  .goods-card .body > * { margin-right: 9px; margin-bottom: 9px; }
  .goods-card .body > *:last-child { margin-right: 0; }

  .goods-card .meta { margin-right: -6px; margin-bottom: -6px; }
  .goods-card .meta > * { margin-right: 6px; margin-bottom: 6px; }
  .goods-card .meta > *:last-child { margin-right: 0; }

  .goods-card .foot { margin-right: -8px; margin-bottom: -8px; }
  .goods-card .foot > * { margin-right: 8px; margin-bottom: 8px; }
  .goods-card .foot > *:last-child { margin-right: 0; }

  .panel-head { margin-right: -12px; margin-bottom: -12px; }
  .panel-head > * { margin-right: 12px; margin-bottom: 12px; }
  .panel-head > *:last-child { margin-right: 0; }

  .crumb { margin-right: -7px; margin-bottom: -7px; }
  .crumb > * { margin-right: 7px; margin-bottom: 7px; }
  .crumb > *:last-child { margin-right: 0; }

  .detail { margin-right: -22px; margin-bottom: -22px; }
  .detail > * { margin-right: 22px; margin-bottom: 22px; }
  .detail > *:last-child { margin-right: 0; }

  .detail-hero { margin-right: -20px; margin-bottom: -20px; }
  .detail-hero > * { margin-right: 20px; margin-bottom: 20px; }
  .detail-hero > *:last-child { margin-right: 0; }

  .detail-hero .meta { margin-right: -8px; margin-bottom: -8px; }
  .detail-hero .meta > * { margin-right: 8px; margin-bottom: 8px; }
  .detail-hero .meta > *:last-child { margin-right: 0; }

  .detail-body h3 { margin-right: -8px; margin-bottom: -8px; }
  .detail-body h3 > * { margin-right: 8px; margin-bottom: 8px; }
  .detail-body h3 > *:last-child { margin-right: 0; }

  .buy-box .bb-body { margin-right: -16px; margin-bottom: -16px; }
  .buy-box .bb-body > * { margin-right: 16px; margin-bottom: 16px; }
  .buy-box .bb-body > *:last-child { margin-right: 0; }

  .field { margin-right: -7px; margin-bottom: -7px; }
  .field > * { margin-right: 7px; margin-bottom: 7px; }
  .field > *:last-child { margin-right: 0; }

  .field > label { margin-right: -6px; margin-bottom: -6px; }
  .field > label > * { margin-right: 6px; margin-bottom: 6px; }
  .field > label > *:last-child { margin-right: 0; }

  .tier-tip { margin-right: -6px; margin-bottom: -6px; }
  .tier-tip > * { margin-right: 6px; margin-bottom: 6px; }
  .tier-tip > *:last-child { margin-right: 0; }

  .pay-methods { margin-right: -9px; margin-bottom: -9px; }
  .pay-methods > * { margin-right: 9px; margin-bottom: 9px; }
  .pay-methods > *:last-child { margin-right: 0; }

  .pay-method { margin-right: -9px; margin-bottom: -9px; }
  .pay-method > * { margin-right: 9px; margin-bottom: 9px; }
  .pay-method > *:last-child { margin-right: 0; }

  .order-summary { margin-right: -7px; margin-bottom: -7px; }
  .order-summary > * { margin-right: 7px; margin-bottom: 7px; }
  .order-summary > *:last-child { margin-right: 0; }

  .pay-wrap { margin-right: -20px; margin-bottom: -20px; }
  .pay-wrap > * { margin-right: 20px; margin-bottom: 20px; }
  .pay-wrap > *:last-child { margin-right: 0; }

  .step { margin-right: -9px; margin-bottom: -9px; }
  .step > * { margin-right: 9px; margin-bottom: 9px; }
  .step > *:last-child { margin-right: 0; }

  .result-head { margin-right: -12px; margin-bottom: -12px; }
  .result-head > * { margin-right: 12px; margin-bottom: 12px; }
  .result-head > *:last-child { margin-right: 0; }

  .card-list { margin-right: -9px; margin-bottom: -9px; }
  .card-list > * { margin-right: 9px; margin-bottom: 9px; }
  .card-list > *:last-child { margin-right: 0; }

  .card-item { margin-right: -12px; margin-bottom: -12px; }
  .card-item > * { margin-right: 12px; margin-bottom: 12px; }
  .card-item > *:last-child { margin-right: 0; }

  .query-box { margin-right: -10px; margin-bottom: -10px; }
  .query-box > * { margin-right: 10px; margin-bottom: 10px; }
  .query-box > *:last-child { margin-right: 0; }

  .order-item .oi-top { margin-right: -12px; margin-bottom: -12px; }
  .order-item .oi-top > * { margin-right: 12px; margin-bottom: 12px; }
  .order-item .oi-top > *:last-child { margin-right: 0; }

  .order-item .oi-row { margin-right: -18px; margin-bottom: -18px; }
  .order-item .oi-row > * { margin-right: 18px; margin-bottom: 18px; }
  .order-item .oi-row > *:last-child { margin-right: 0; }

  .admin-side .nav-item { margin-right: -10px; margin-bottom: -10px; }
  .admin-side .nav-item > * { margin-right: 10px; margin-bottom: 10px; }
  .admin-side .nav-item > *:last-child { margin-right: 0; }

  .admin-head { margin-right: -14px; margin-bottom: -14px; }
  .admin-head > * { margin-right: 14px; margin-bottom: 14px; }
  .admin-head > *:last-child { margin-right: 0; }

  .stat-grid { margin-right: -14px; margin-bottom: -14px; }
  .stat-grid > * { margin-right: 14px; margin-bottom: 14px; }
  .stat-grid > *:last-child { margin-right: 0; }

  .modal-head { margin-right: -12px; margin-bottom: -12px; }
  .modal-head > * { margin-right: 12px; margin-bottom: 12px; }
  .modal-head > *:last-child { margin-right: 0; }

  .modal-body { margin-right: -15px; margin-bottom: -15px; }
  .modal-body > * { margin-right: 15px; margin-bottom: 15px; }
  .modal-body > *:last-child { margin-right: 0; }

  .modal-foot { margin-right: -10px; margin-bottom: -10px; }
  .modal-foot > * { margin-right: 10px; margin-bottom: 10px; }
  .modal-foot > *:last-child { margin-right: 0; }

  .form-row { margin-right: -13px; margin-bottom: -13px; }
  .form-row > * { margin-right: 13px; margin-bottom: 13px; }
  .form-row > *:last-child { margin-right: 0; }

  .toast-root { margin-right: -10px; margin-bottom: -10px; }
  .toast-root > * { margin-right: 10px; margin-bottom: 10px; }
  .toast-root > *:last-child { margin-right: 0; }

  .toast { margin-right: -9px; margin-bottom: -9px; }
  .toast > * { margin-right: 9px; margin-bottom: 9px; }
  .toast > *:last-child { margin-right: 0; }

  .footer-grid { margin-right: -30px; margin-bottom: -30px; }
  .footer-grid > * { margin-right: 30px; margin-bottom: 30px; }
  .footer-grid > *:last-child { margin-right: 0; }

  .footer-grid ul { margin-right: -8px; margin-bottom: -8px; }
  .footer-grid ul > * { margin-right: 8px; margin-bottom: 8px; }
  .footer-grid ul > *:last-child { margin-right: 0; }

  .footer-bottom { margin-right: -14px; margin-bottom: -14px; }
  .footer-bottom > * { margin-right: 14px; margin-bottom: 14px; }
  .footer-bottom > *:last-child { margin-right: 0; }

  .hero-stats { margin-right: -18px; margin-bottom: -18px; }
  .hero-stats > * { margin-right: 18px; margin-bottom: 18px; }
  .hero-stats > *:last-child { margin-right: 0; }

  .admin-side { margin-right: -6px; margin-bottom: -6px; }
  .admin-side > * { margin-right: 6px; margin-bottom: 6px; }
  .admin-side > *:last-child { margin-right: 0; }

  .dl-cta { margin-right: -14px; margin-bottom: -14px; }
  .dl-cta > * { margin-right: 14px; margin-bottom: 14px; }
  .dl-cta > *:last-child { margin-right: 0; }

  .btn-recharge { margin-right: -10px; margin-bottom: -10px; }
  .btn-recharge > * { margin-right: 10px; margin-bottom: 10px; }
  .btn-recharge > *:last-child { margin-right: 0; }

  .dl-tip { margin-right: -14px; margin-bottom: -14px; }
  .dl-tip > * { margin-right: 14px; margin-bottom: 14px; }
  .dl-tip > *:last-child { margin-right: 0; }

  .ver-grid { margin-right: -16px; margin-bottom: -16px; }
  .ver-grid > * { margin-right: 16px; margin-bottom: 16px; }
  .ver-grid > *:last-child { margin-right: 0; }

  .ver-top { margin-right: -14px; margin-bottom: -14px; }
  .ver-top > * { margin-right: 14px; margin-bottom: 14px; }
  .ver-top > *:last-child { margin-right: 0; }

  .ver-name { margin-right: -8px; margin-bottom: -8px; }
  .ver-name > * { margin-right: 8px; margin-bottom: 8px; }
  .ver-name > *:last-child { margin-right: 0; }

  .dl-notes { margin-right: -12px; margin-bottom: -12px; }
  .dl-notes > * { margin-right: 12px; margin-bottom: 12px; }
  .dl-notes > *:last-child { margin-right: 0; }

  .btn { margin-right: -7px; margin-bottom: -7px; }
  .btn > * { margin-right: 7px; margin-bottom: 7px; }
  .btn > *:last-child { margin-right: 0; }

  .search-box { margin-right: -9px; margin-bottom: -9px; }
  .search-box > * { margin-right: 9px; margin-bottom: 9px; }
  .search-box > *:last-child { margin-right: 0; }

  .crumb { margin-right: -7px; margin-bottom: -7px; }
  .crumb > * { margin-right: 7px; margin-bottom: 7px; }
  .crumb > *:last-child { margin-right: 0; }

  .detail-hero { margin-right: -20px; margin-bottom: -20px; }
  .detail-hero > * { margin-right: 20px; margin-bottom: 20px; }
  .detail-hero > *:last-child { margin-right: 0; }

  .field > label { margin-right: -6px; margin-bottom: -6px; }
  .field > label > * { margin-right: 6px; margin-bottom: 6px; }
  .field > label > *:last-child { margin-right: 0; }

  .tier-tip { margin-right: -6px; margin-bottom: -6px; }
  .tier-tip > * { margin-right: 6px; margin-bottom: 6px; }
  .tier-tip > *:last-child { margin-right: 0; }

  .pay-method { margin-right: -9px; margin-bottom: -9px; }
  .pay-method > * { margin-right: 9px; margin-bottom: 9px; }
  .pay-method > *:last-child { margin-right: 0; }

  .order-summary { margin-right: -7px; margin-bottom: -7px; }
  .order-summary > * { margin-right: 7px; margin-bottom: 7px; }
  .order-summary > *:last-child { margin-right: 0; }

  .step { margin-right: -9px; margin-bottom: -9px; }
  .step > * { margin-right: 9px; margin-bottom: 9px; }
  .step > *:last-child { margin-right: 0; }

  .card-item { margin-right: -12px; margin-bottom: -12px; }
  .card-item > * { margin-right: 12px; margin-bottom: 12px; }
  .card-item > *:last-child { margin-right: 0; }

  .order-item .oi-row { margin-right: -18px; margin-bottom: -18px; }
  .order-item .oi-row > * { margin-right: 18px; margin-bottom: 18px; }
  .order-item .oi-row > *:last-child { margin-right: 0; }

  .admin-side .nav-item { margin-right: -10px; margin-bottom: -10px; }
  .admin-side .nav-item > * { margin-right: 10px; margin-bottom: 10px; }
  .admin-side .nav-item > *:last-child { margin-right: 0; }

  .modal-head { margin-right: -12px; margin-bottom: -12px; }
  .modal-head > * { margin-right: 12px; margin-bottom: 12px; }
  .modal-head > *:last-child { margin-right: 0; }

  .modal-foot { margin-right: -10px; margin-bottom: -10px; }
  .modal-foot > * { margin-right: 10px; margin-bottom: 10px; }
  .modal-foot > *:last-child { margin-right: 0; }

  .toast { margin-right: -9px; margin-bottom: -9px; }
  .toast > * { margin-right: 9px; margin-bottom: 9px; }
  .toast > *:last-child { margin-right: 0; }

  .footer-bottom { margin-right: -14px; margin-bottom: -14px; }
  .footer-bottom > * { margin-right: 14px; margin-bottom: 14px; }
  .footer-bottom > *:last-child { margin-right: 0; }

  .admin-side { margin-right: -6px; margin-bottom: -6px; }
  .admin-side > * { margin-right: 6px; margin-bottom: 6px; }
  .admin-side > *:last-child { margin-right: 0; }

  .dl-tip { margin-right: -14px; margin-bottom: -14px; }
  .dl-tip > * { margin-right: 14px; margin-bottom: 14px; }
  .dl-tip > *:last-child { margin-right: 0; }
  /* JS 内联的 display:grid 在 IE 下转 flex 近似布局 */
  [style*="grid-template-columns"] { display: -ms-flexbox !important; display: flex !important; flex-wrap: wrap !important; }
  [style*="grid-template-columns"] > * { flex: 1 1 220px; margin: 6px !important; }
}
