:root {
  --primary: #316eea;
  --primary-dark: #1a56db;
  --price: #e64a19;
  --text: #303133;
  --muted: #74788d;
  --border: #eef0f5;
  --bg: #f5f6fa;
  --card: #ffffff;
  --menu-active-bg: #f8f8fb;
  --radius: 4px;
  --font: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}

a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ===== Top bar (魔方财务风格) ===== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-size: 18px; font-weight: 700; color: var(--primary-dark);
  letter-spacing: .02em; cursor: pointer; white-space: nowrap;
}
.brand span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav button, .btn {
  border: none; background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
}
.nav button:hover, .btn:hover { color: var(--primary); background: rgba(49,110,234,.06); }
.nav button.active { color: var(--primary); font-weight: 600; }
.btn.primary {
  background: var(--primary) !important; color: #fff !important; font-weight: 500;
  padding: 8px 18px;
}
.btn.primary:hover { background: var(--primary-dark) !important; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.ghost {
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
.btn.buy {
  background: var(--primary) !important; color: #fff !important;
  padding: 6px 16px; font-size: 13px; margin-top: 12px;
  position: relative; z-index: 2;
}
.flash-err {
  max-width: 1200px; margin: 10px auto 0; padding: 10px 14px;
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 8px; font-size: 13px;
}

.shell { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; }
.shell.shell-flush { max-width: none; padding: 0 0 48px; }

/* ===== 用户控制台 · GinFast/Arco 后台布局 ===== */
.app-root.in-console {
  min-height: 100vh;
  background: #f2f3f5;
}
.app-root.in-console .topbar { display: none !important; }

.shell.shell-console {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  background: #f2f3f5;
}
.shell-console .console-side {
  width: 232px;
  flex-shrink: 0;
  background: #fff;
  color: #4e5969;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  border-right: 1px solid #e5e6eb;
}
.shell-console .console-brand {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  font-size: 16px;
  color: #1d2129;
  cursor: pointer;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #f2f3f5;
  flex-shrink: 0;
}
.shell-console .console-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: auto;
  padding: 12px 10px 16px;
}
.shell-console .console-nav .nav-group {
  margin: 14px 10px 6px;
  font-size: 12px;
  line-height: 1.2;
  color: #c9cdd4;
  font-weight: 500;
  letter-spacing: 0.02em;
  user-select: none;
}
.shell-console .console-nav .nav-group:first-child { margin-top: 4px; }
.shell-console .console-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: none;
  background: transparent;
  color: #4e5969;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
}
.shell-console .console-nav .nav-item:hover {
  background: #f7f8fa;
  color: #1d2129;
}
.shell-console .console-nav .nav-item.on {
  background: #e8f3ff;
  color: #165dff;
  font-weight: 600;
}
/* 侧栏图标：实心 SVG + mask（描边 SVG 在部分浏览器会整块变色块） */
.shell-console .console-nav .nav-item .ni {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  background-color: currentColor;
  opacity: 0.78;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.shell-console .console-nav .nav-item.on .ni { opacity: 1; }
.shell-console .ni-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z'/%3E%3C/svg%3E");
}
.shell-console .ni-user {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12zm0 2c-4.2 0-8 2.1-8 5v1h16v-1c0-2.9-3.8-5-8-5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12zm0 2c-4.2 0-8 2.1-8 5v1h16v-1c0-2.9-3.8-5-8-5z'/%3E%3C/svg%3E");
}
.shell-console .ni-wallet {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 7a3 3 0 0 1 3-3h11a1 1 0 1 1 0 2H6a1 1 0 0 0-1 1v1h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zm14 7.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 7a3 3 0 0 1 3-3h11a1 1 0 1 1 0 2H6a1 1 0 0 0-1 1v1h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zm14 7.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E");
}
.shell-console .ni-order {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M8.2 3h7.6l1.2 3H7l1.2-3zM6 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm3 4v2h6v-2H9zm0 4v2h4v-2H9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M8.2 3h7.6l1.2 3H7l1.2-3zM6 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm3 4v2h6v-2H9zm0 4v2h4v-2H9z'/%3E%3C/svg%3E");
}
.shell-console .ni-brief {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 3h6a2 2 0 0 1 2 2v2h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3V5a2 2 0 0 1 2-2zm0 4h6V5H9v2zm-5 4v2h16v-2H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 3h6a2 2 0 0 1 2 2v2h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3V5a2 2 0 0 1 2-2zm0 4h6V5H9v2zm-5 4v2h16v-2H4z'/%3E%3C/svg%3E");
}
.shell-console .ni-share {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 4a3 3 0 1 1-2.2 5L9.6 12.1a3 3 0 1 1 0-.2l6.2-3.1A3 3 0 0 1 18 4zM6 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm12 4a2 2 0 1 0 .1 4 2 2 0 0 0-.1-4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 4a3 3 0 1 1-2.2 5L9.6 12.1a3 3 0 1 1 0-.2l6.2-3.1A3 3 0 0 1 18 4zM6 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm12 4a2 2 0 1 0 .1 4 2 2 0 0 0-.1-4z'/%3E%3C/svg%3E");
}
.shell-console .ni-cloud {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18h10a4.5 4.5 0 0 0 .4-9 6 6 0 0 0-11.5 1.7A3.8 3.8 0 0 0 7 18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18h10a4.5 4.5 0 0 0 .4-9 6 6 0 0 0-11.5 1.7A3.8 3.8 0 0 0 7 18z'/%3E%3C/svg%3E");
}
.shell-console .ni-shop {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 8.5 6.2 3h11.6L20 8.5V19a2 2 0 0 1-2 2h-3v-7H9v7H6a2 2 0 0 1-2-2V8.5zM6.8 8.5h10.4l-1-3.5H7.8l-1 3.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 8.5 6.2 3h11.6L20 8.5V19a2 2 0 0 1-2 2h-3v-7H9v7H6a2 2 0 0 1-2-2V8.5zM6.8 8.5h10.4l-1-3.5H7.8l-1 3.5z'/%3E%3C/svg%3E");
}
.shell-console .ni-swap {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.5 7H18l-2.8-2.8 1.4-1.4L21.8 8l-5.2 5.2-1.4-1.4L18 9H7.5V7zm9 10H6l2.8 2.8-1.4 1.4L2.2 16l5.2-5.2 1.4 1.4L6 15h10.5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.5 7H18l-2.8-2.8 1.4-1.4L21.8 8l-5.2 5.2-1.4-1.4L18 9H7.5V7zm9 10H6l2.8 2.8-1.4 1.4L2.2 16l5.2-5.2 1.4 1.4L6 15h10.5v2z'/%3E%3C/svg%3E");
}
.shell-console .ni-help {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 15.2a1.2 1.2 0 1 1 1.2-1.2A1.2 1.2 0 0 1 12 17.2zm1.6-5.1-.5.3A1.8 1.8 0 0 0 12.2 14h-1.1v-.7a2.8 2.8 0 0 1 1.3-2.3l.5-.3a1.6 1.6 0 1 0-2.5-1.3H9.2a3.2 3.2 0 1 1 4.4 3.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 15.2a1.2 1.2 0 1 1 1.2-1.2A1.2 1.2 0 0 1 12 17.2zm1.6-5.1-.5.3A1.8 1.8 0 0 0 12.2 14h-1.1v-.7a2.8 2.8 0 0 1 1.3-2.3l.5-.3a1.6 1.6 0 1 0-2.5-1.3H9.2a3.2 3.2 0 1 1 4.4 3.4z'/%3E%3C/svg%3E");
}
.shell-console .ni-cart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm10 0a2 2 0 1 0 2 2 2 2 0 0 0-2-2zM3.2 3H1v2h1.6l2.7 11.2A2 2 0 0 0 7.2 18h10.1v-2H7.5l-.3-1.2h10.6a1 1 0 0 0 1-.8L20.7 6H5.3l-.4-1.6A1 1 0 0 0 3.9 3.5L3.2 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm10 0a2 2 0 1 0 2 2 2 2 0 0 0-2-2zM3.2 3H1v2h1.6l2.7 11.2A2 2 0 0 0 7.2 18h10.1v-2H7.5l-.3-1.2h10.6a1 1 0 0 0 1-.8L20.7 6H5.3l-.4-1.6A1 1 0 0 0 3.9 3.5L3.2 3z'/%3E%3C/svg%3E");
}
.shell-console .ni-gift {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 10v11H4V10h16zM12 3c1.7-1.5 3.5-.8 3.5 1.2S14.3 8 12 8c-2.3 0-3.5-1.9-3.5-3.8S10.3 1.5 12 3zM3 8h18v2H3V8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 10v11H4V10h16zM12 3c1.7-1.5 3.5-.8 3.5 1.2S14.3 8 12 8c-2.3 0-3.5-1.9-3.5-3.8S10.3 1.5 12 3zM3 8h18v2H3V8z'/%3E%3C/svg%3E");
}
.shell-console .ni-info {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 14h-2v-5h2zm0-7h-2V7h2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 14h-2v-5h2zm0-7h-2V7h2z'/%3E%3C/svg%3E");
}
.shell-console .ni-warn {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2L1 21h22L12 2zm0 6.5l.9 7h-1.8l.9-7zM12 18a1.2 1.2 0 1 0 0-2.4A1.2 1.2 0 0 0 12 18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2L1 21h22L12 2zm0 6.5l.9 7h-1.8l.9-7zM12 18a1.2 1.2 0 1 0 0-2.4A1.2 1.2 0 0 0 12 18z'/%3E%3C/svg%3E");
}
.violation-page .violation-notice {
  margin-bottom: 16px;
  border-left: 3px solid #f53f3f;
}
.violation-page .violation-notice-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #4e5969;
}
.violation-page .violation-action {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff1f0;
  color: #cb2634;
  font-size: 13px;
}
.violation-page .table td {
  vertical-align: top;
}
.shell-console .console-side-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid #f2f3f5;
}
.shell-console .console-side-foot .btn {
  width: 100%;
  justify-content: center;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}
.shell-console .console-side-foot .btn.ghost {
  background: #fff !important;
  color: #4e5969 !important;
  border: 1px solid #e5e6eb !important;
}

.shell-console .console-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.shell:not(.shell-console) .console-right.storefront-wrap {
  display: contents;
}
.shell:not(.shell-console) .console-right.storefront-wrap > .shell-body {
  display: block;
}
.shell-console .console-header {
  height: 56px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e5e6eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 12px;
}
.shell-console .console-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.shell-console .console-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.shell-console .console-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: #4e5969;
  border-radius: 1px;
}
.shell-console .console-side-mask {
  display: none;
}
.app-root.console-drawer-open {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.shell-console .console-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}
.shell-console .console-header-sub {
  margin-left: 12px;
  color: #86909c;
  font-size: 13px;
  font-weight: 400;
}
.shell-console .console-main {
  flex: 1;
  min-width: 0;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* 控制台内禁止登录页窄 panel */
.shell-console .console-main > .panel,
.shell-console .console-main > section.panel,
.shell-console .console-main > section {
  max-width: none !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.shell-console .console-main > .panel,
.shell-console .console-main > section.panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.shell-console .console-main .hero-simple {
  display: block;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.shell-console .console-main .hero-simple h1 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.shell-console .console-main .hero-simple > p {
  margin: 0 0 12px;
  color: #86909c;
  font-size: 13px;
}
.shell-console .console-main > section > .card {
  max-width: none !important;
  margin: 0 0 16px !important;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.shell-console .console-main .product-grid {
  max-width: none;
}

/* GinFast snow 风格卡片 */
.shell-console .gf-card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: none;
}
.shell-console .gf-card:last-child { margin-bottom: 0; }
.shell-console .gf-card h2,
.shell-console .gf-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f3f5;
}
.shell-console .gf-card .card {
  max-width: none !important;
  margin: 0 !important;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.shell-console .gf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.shell-console .gf-grid .gf-card { margin-bottom: 0; }
.shell-console .gf-grid .span-2 { grid-column: 1 / -1; }
.shell-console .gf-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.shell-console .gf-stat {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  padding: 16px 18px;
}
.shell-console .gf-stat .label {
  color: #86909c;
  font-size: 13px;
  margin-bottom: 8px;
}
.shell-console .gf-stat .value {
  font-size: 22px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.2;
}
.shell-console .gf-stat .value.ok { color: #00b42a; }
.shell-console .gf-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 12px;
  font-size: 14px;
}
.shell-console .gf-kv .k { color: #86909c; }
.shell-console .gf-kv .v { color: #1d2129; word-break: break-all; }
.shell-console .console-main .table {
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  overflow: hidden;
}
.shell-console .console-main .table th {
  background: #f7f8fa;
  color: #4e5969;
}
.shell-console .console-main .btn.primary {
  border-radius: 4px !important;
  background: #165dff !important;
}
.shell-console .console-main .field input,
.shell-console .console-main .field select,
.shell-console .console-main .field textarea {
  border-radius: 4px;
  border-color: #c9cdd4;
  max-width: 480px;
}
.shell-console .console-main .field {
  max-width: 480px;
}

@media (max-width: 1100px) {
  .shell-console .gf-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell-console .gf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell.shell-console { flex-direction: row; position: relative; }
  .shell-console .console-menu-btn { display: flex; }
  .shell-console .console-side-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(29, 33, 41, 0.45);
    z-index: 90;
  }
  .shell-console .console-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 82vw);
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .shell-console .console-side.open {
    transform: translateX(0);
  }
  .shell-console .console-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .shell-console .console-side-foot {
    flex-direction: column;
  }
  .shell-console .console-right { min-height: auto; width: 100%; }
  .shell-console .console-header { padding: 0 12px; }
  .shell-console .console-header-sub { display: none; }
  .shell-console .gf-stat-row { grid-template-columns: 1fr 1fr; }
}

/* ===== Products catalog ===== */
.products-page { margin: 0; }
.prod-banner {
  background: linear-gradient(115deg, #1a56db 0%, #316eea 50%, #5b8ef5 100%);
  color: #fff; padding: 36px 16px 40px; position: relative; overflow: hidden;
}
.prod-banner::before {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.prod-banner::after {
  content: ""; position: absolute; right: 120px; bottom: -80px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.prod-banner .inner {
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.prod-banner .eyebrow { opacity: .8; font-size: 13px; margin-bottom: 8px; }
.prod-banner h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.prod-banner .sub { margin: 0; opacity: .88; font-size: 14px; max-width: 36em; line-height: 1.6; }
.prod-search {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px; padding: 4px 4px 4px 16px; min-width: 280px;
  backdrop-filter: blur(6px);
}
.prod-search input {
  flex: 1; border: none; background: transparent; color: #fff;
  outline: none; height: 36px; min-width: 0;
}
.prod-search input::placeholder { color: rgba(255,255,255,.7); }
.prod-search button {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: #fff; color: var(--primary); cursor: pointer; font-weight: 700;
}

.prod-body {
  max-width: 1200px; margin: -18px auto 0; padding: 0 16px 40px;
  display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start;
  position: relative; z-index: 2;
}
@media (max-width: 900px) {
  .prod-body { grid-template-columns: 1fr; margin-top: 16px; }
}

.prod-cats {
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 14px rgba(30,39,54,.06);
  padding: 10px 0; overflow: hidden;
  position: sticky; top: 72px;
}
.prod-cats .cat-hd {
  padding: 10px 18px 12px; font-size: 12px; color: #a0a4b3;
  letter-spacing: .06em; text-transform: uppercase;
}
.prod-cats .cat-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 11px 18px;
  border: none; background: transparent; color: #545968;
  cursor: pointer; border-left: 3px solid transparent; font-size: 14px;
  transition: background .15s, color .15s;
}
.prod-cats .cat-item .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #d5d8e2; flex-shrink: 0;
}
.prod-cats .cat-item:hover { background: #f7f8fc; color: var(--primary); }
.prod-cats .cat-item.active {
  background: #f0f5ff; color: var(--primary); font-weight: 600;
  border-left-color: var(--primary);
}
.prod-cats .cat-item.active .dot { background: var(--primary); }

.prod-main {
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 14px rgba(30,39,54,.06);
  padding: 18px 20px 24px; min-height: 480px;
}
.prod-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid #f0f2f7;
}
.prod-toolbar h2 { margin: 0; font-size: 17px; font-weight: 600; color: #1e2736; }
.prod-toolbar .meta { color: #a0a4b3; font-size: 13px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card, .pcard {
  border: 1px solid #eef0f5; border-radius: 10px;
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover, .pcard:hover {
  border-color: rgba(49,110,234,.35);
  box-shadow: 0 10px 28px rgba(49,110,234,.12);
  transform: translateY(-2px);
}
.pcard .pcard-top {
  padding: 18px 18px 0; display: flex; gap: 12px; align-items: flex-start;
}
.pcard .picn {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
  background: linear-gradient(145deg, #4f8cff, #316eea);
  box-shadow: 0 4px 12px rgba(49,110,234,.28);
}
.pcard .picn.t2 { background: linear-gradient(145deg, #5b8def, #254fd6); }
.pcard .picn.t3 { background: linear-gradient(145deg, #6ea0f5, #2a5fd4); }
.pcard h3 {
  margin: 2px 0 0; font-size: 16px; font-weight: 600; color: #1e2736;
  line-height: 1.35;
}
.pcard .specs {
  list-style: none; margin: 14px 0 0; padding: 0 18px;
  flex: 1; min-height: 72px;
}
.pcard .specs li {
  position: relative; padding: 4px 0 4px 12px;
  color: #74788d; font-size: 13px; line-height: 1.5;
  white-space: normal; word-break: break-word;
}
.pcard .specs li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: #c5d0f0;
}
.pcard .pcard-foot {
  margin-top: 14px; padding: 14px 18px;
  background: #f8f9fc; border-top: 1px solid #f0f2f7;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.pcard .price-block { min-width: 0; }
.pcard .price-block .lbl { display: block; font-size: 11px; color: #a0a4b3; margin-bottom: 2px; }
.pcard .price-block .val {
  color: var(--price); font-size: 20px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.pcard .price-block .val .orig,
.product-card .price .orig,
.cart-item .orig,
.ci-price-dual .orig {
  display: inline-block; margin-right: 6px;
  color: #a0a4b3; font-size: 13px; font-weight: 500;
  text-decoration: line-through;
}
.pcard .price-block .val .now,
.product-card .price .now { color: var(--price); }
.cart-item .tags .now { color: var(--price); font-weight: 700; margin-left: 2px; }
.cart-item .tags em {
  margin-left: 4px; font-style: normal; font-size: 11px;
  color: #e64a19; background: rgba(230,74,25,.08); padding: 1px 5px; border-radius: 3px;
}
.ci-price-dual { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.2; }
.ci-price-dual b { color: var(--price); font-size: 16px; }
.cart-summary .save { color: #e64a19 !important; }
.pcard .price-block .val small {
  font-size: 12px; font-weight: 400; color: #a0a4b3; margin-left: 2px;
}
.pcard .btn.buy {
  background: linear-gradient(90deg, #316eea, #4f8cff) !important;
  color: #fff !important; border: none; margin: 0;
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(49,110,234,.28); cursor: pointer;
  white-space: nowrap;
}
.pcard .btn.buy:hover { filter: brightness(1.05); }

.prod-empty {
  padding: 72px 20px; text-align: center; color: var(--muted);
}
.prod-empty .ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: #eef3ff; color: var(--primary);
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
}
.prod-empty h3 { margin: 0 0 6px; color: #1e2736; font-size: 16px; }

/* legacy product-card (首页热门) */
.product-card .hd {
  padding: 14px 16px 0; border: none; background: transparent;
  font-weight: 600; font-size: 15px; color: #1e2736;
}
.product-card .bd { padding: 10px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-card .desc {
  color: var(--muted); font-size: 13px; line-height: 1.6;
  white-space: pre-wrap; min-height: 48px; margin: 0 0 12px;
  font-family: inherit; flex: 1;
}
.product-card .desc.html-desc,
.pcard .html-desc {
  white-space: normal;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  flex: 1 1 auto;
  min-height: 0;
  margin: 12px 18px 0;
  padding: 12px 14px;
  background: #f7f8fb;
  border-radius: 8px;
  color: #545968;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}
/* 上游简介常带固定高度/overflow，强制完整展示 */
.product-card .desc.html-desc *,
.pcard .html-desc * {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: unset !important;
  -webkit-line-clamp: unset !important;
}
.product-card .desc.html-desc {
  margin: 0 0 12px;
}
.product-card .desc.html-desc img,
.pcard .html-desc img { max-width: 100%; height: auto !important; }
.product-card .desc.html-desc p,
.pcard .html-desc p { margin: 0 0 6px; }
.product-card .desc.html-desc p:last-child,
.pcard .html-desc p:last-child { margin-bottom: 0; }
.product-card .desc.html-desc ul,
.pcard .html-desc ul {
  margin: 0; padding-left: 1.1em;
}
.product-card .desc.html-desc li,
.pcard .html-desc li {
  margin: 2px 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.product-card .price {
  text-align: left; color: var(--price); font-size: 18px; font-weight: 700;
}
.product-card .price .orig { font-size: 13px; }
.product-card .price .now { margin-right: 4px; }
.product-card .price small { font-size: 12px; font-weight: 400; color: #a0a4b3; }
.product-card .actions { text-align: right; margin-top: 10px; }
.product-card .btn.buy {
  background: linear-gradient(90deg, #316eea, #4f8cff) !important;
  border-radius: 6px; box-shadow: 0 4px 12px rgba(49,110,234,.25);
}

/* keep old side layout unused but harmless */
.cart-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.side-panel { display: flex; flex-direction: column; gap: 12px; }
.side-hero {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding: 20px 18px;
  min-height: 140px;
}
.side-hero h3 { margin: 0 0 10px; color: #fff; font-size: 16px; font-weight: 600; }
.side-hero p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; opacity: .92; }
.side-hero .search { margin-top: 14px; position: relative; }
.side-hero .search input {
  width: 100%; height: 36px; border-radius: 18px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15); color: #fff; padding: 0 36px 0 14px; outline: none;
}
.side-hero .search input::placeholder { color: rgba(255,255,255,.75); }

.side-cats {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; min-height: 280px;
}
.side-cats .cat-item {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; border-left: 3px solid transparent;
}
.side-cats .cat-item:hover { background: var(--menu-active-bg); color: #2f46b0; }
.side-cats .cat-item.active {
  background: var(--menu-active-bg); color: #2f46b0; font-weight: 600;
  border-left-color: var(--primary);
}

.main-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; min-height: calc(100vh - 160px);
}
.main-card-title {
  font-size: 16px; font-weight: 600; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ===== Generic panels ===== */
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; max-width: 440px; margin: 32px auto;
}
.panel h2 { margin: 0 0 18px; font-size: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid #dcdfe6; background: #fff; color: var(--text); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.err { color: var(--price); font-size: 13px; margin-top: 8px; }
.ok { color: #059669; }

.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.table th { background: #fafbfd; color: var(--muted); font-weight: 500; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 12px;
  background: rgba(49,110,234,.1); color: var(--primary);
}
.badge.warn { background: rgba(230,74,25,.1); color: var(--price); }
.badge.ok { background: rgba(5,150,105,.1); color: #059669; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.hero-simple { margin-bottom: 16px; }
.hero-simple h1 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.hero-simple p { margin: 0; color: var(--muted); }

/* Slider captcha */
.slider-wrap { margin: 10px 0 14px; }
.slider-stage {
  position: relative; width: 320px; max-width: 100%; height: 160px;
  border-radius: var(--radius); overflow: hidden; background: #eee; border: 1px solid var(--border);
}
.slider-stage img.bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-stage img.piece {
  position: absolute; left: 0; width: 48px; height: 48px; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.slider-bar {
  margin-top: 10px; height: 40px; border-radius: 20px; position: relative;
  background: #f0f2f5; border: 1px solid var(--border); user-select: none;
}
.slider-bar .track-tip {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 13px; pointer-events: none;
}
.slider-bar .knob {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); cursor: grab; display: grid; place-items: center;
  color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(49,110,234,.35);
}
.slider-bar.fail { animation: shake .35s ease; border-color: rgba(230,74,25,.5); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* 人机验证门闸 */
.captcha-gate {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 16px; border-radius: 10px;
  border: 1.5px dashed var(--border); background: #f8fafc;
  cursor: pointer; user-select: none; transition: border-color .2s, background .2s, color .2s;
  color: var(--muted); font-size: 14px;
}
.captcha-gate:hover { border-color: var(--primary); color: var(--primary); background: #f0f5ff; }
.captcha-gate.busy { opacity: .7; pointer-events: none; }
.captcha-gate.ok {
  border-style: solid; border-color: #22c55e; background: #ecfdf5; color: #15803d;
  cursor: default; font-weight: 600;
}
.captcha-gate .cg-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(0,0,0,.04);
}
.captcha-gate.ok .cg-icon { background: #22c55e; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0; }
.captcha-slider-host { margin-top: 10px; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row input { flex: 1; }
.code-row .code-btn { white-space: nowrap; min-width: 118px; }
.code-row .code-btn:disabled { opacity: .55; cursor: not-allowed; }
.field .tip { margin: 6px 0 0; font-size: 12px; }
.login-extra { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.login-extra a { color: var(--primary, #3b82f6); text-decoration: none; }
.login-extra a:hover { text-decoration: underline; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 1px solid var(--border); background: #fff; padding: 8px; border-radius: var(--radius); cursor: pointer; }
.tabs button.active { border-color: var(--primary); color: var(--primary); }

/* ===== Landing homepage ===== */
.home-page { margin: 0; }
.home-banner {
  background: linear-gradient(120deg, #1a56db 0%, #316eea 45%, #4f8cff 100%);
  color: #fff; padding: 72px 16px 80px; position: relative; overflow: hidden;
}
.home-banner::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 360px; height: 360px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.home-banner .inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.home-banner .eyebrow { opacity: .85; font-size: 14px; margin-bottom: 12px; }
.home-banner h1 {
  margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.25;
  max-width: 16em;
}
.home-banner .sub {
  margin: 0 0 28px; font-size: 15px; opacity: .9; line-height: 1.7; max-width: 36em;
}
.home-banner .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.home-banner .btn.light {
  background: #fff !important; color: var(--primary) !important; font-weight: 600;
  padding: 10px 22px;
}
.home-banner .btn.outline {
  background: transparent !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.55); padding: 10px 22px;
}

.home-section { max-width: 1200px; margin: 0 auto; padding: 48px 16px; }
.home-section .sec-title {
  text-align: center; font-size: 26px; font-weight: 600; margin: 0 0 8px; color: #1e2736;
}
.home-section .sec-sub {
  text-align: center; color: #999; font-size: 14px; margin: 0 0 32px;
}

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 28px 24px; transition: .2s;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(49,110,234,.12); transform: translateY(-2px); }
.service-card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(49,110,234,.1); color: var(--primary); font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
}
.service-card h3 { margin: 0 0 10px; font-size: 18px; }
.service-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; min-height: 3.4em; }

.feature-bar {
  background: #1e2330; color: #fff; padding: 40px 16px; margin: 0;
}
.feature-bar .inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.feature-bar h2 { margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.feature-bar .tip { color: #77798f; margin: 0 0 28px; font-size: 14px; }
.feature-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 700px) { .feature-metrics { grid-template-columns: 1fr; } }
.feature-metrics .m {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 22px;
}
.feature-metrics .label { color: #868797; font-size: 14px; margin-bottom: 6px; }
.feature-metrics .val { color: #fff; font-size: 28px; font-weight: 600; }

.home-products .product-grid { margin-top: 8px; }
.home-products .more { text-align: center; margin-top: 28px; }

/* ===== Cart page ===== */
.cart-page {
  max-width: 1080px; margin: 0 auto; padding-top: 8px;
}
.cart-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 8px auto 28px; max-width: 520px;
}
.cart-steps .step {
  display: flex; align-items: center; gap: 8px;
  color: #a0a4b3; font-size: 13px; white-space: nowrap;
}
.cart-steps .step .num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid #d5d8e2; font-size: 13px; font-weight: 600;
  background: #fff; color: #a0a4b3;
}
.cart-steps .step.on { color: var(--primary); font-weight: 600; }
.cart-steps .step.on .num {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.cart-steps .line {
  flex: 1; height: 1px; background: #e4e7ef; margin: 0 14px; min-width: 28px;
}

.cart-page .page-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.cart-page .page-hd h1 {
  margin: 0; font-size: 20px; font-weight: 600; color: #1e2736;
  display: flex; align-items: center; gap: 10px;
}
.cart-page .page-hd h1 .badge-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 11px; background: rgba(49,110,234,.12);
  color: var(--primary); font-size: 12px; font-weight: 600;
}
.cart-page .page-hd .link-back {
  color: var(--primary); background: none; border: none;
  cursor: pointer; font-size: 13px; padding: 6px 0;
}
.cart-page .page-hd .link-back:hover { text-decoration: underline; }

.cart-checkout {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start;
}
@media (max-width: 900px) { .cart-checkout { grid-template-columns: 1fr; } }

.cart-list {
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(30, 39, 54, .04);
  overflow: hidden;
}
.cart-list-hd {
  display: grid;
  grid-template-columns: 1fr 100px 120px 72px;
  gap: 12px; align-items: center;
  padding: 12px 22px;
  background: #f7f8fc; color: #8a8fa3; font-size: 12px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .cart-list-hd { display: none; }
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 100px 120px 72px;
  gap: 12px; align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #f0f2f7;
  transition: background .15s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fafbfe; }
@media (max-width: 700px) {
  .cart-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info info"
      "qty price"
      "ops ops";
  }
  .cart-item .ci-info { grid-area: info; }
  .cart-item .ci-qty { grid-area: qty; justify-self: start; }
  .cart-item .ci-price { grid-area: price; }
  .cart-item .ci-ops { grid-area: ops; text-align: right; }
}

.cart-item .ci-info { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.cart-item .thumb {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #4f8cff, #316eea);
  color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(49,110,234,.25);
}
.cart-item .thumb.t2 { background: linear-gradient(145deg, #5b8def, #254fd6); }
.cart-item .thumb.t3 { background: linear-gradient(145deg, #6ea0f5, #2a5fd4); }
.cart-item .body { min-width: 0; }
.cart-item .name {
  font-weight: 600; font-size: 15px; margin: 0 0 8px;
  color: #1e2736; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-item .tag {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  background: #eef3ff; color: var(--primary); font-size: 12px;
}
.cart-item .tag.soft { background: #f3f4f8; color: #74788d; }

.cart-item .ci-qty {
  text-align: center; color: #545968; font-size: 14px; font-weight: 500;
}
.qty-box {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid #e5e6eb; border-radius: 6px; overflow: hidden;
  background: #fff;
}
.qty-box button {
  width: 28px; height: 28px; border: 0; background: #f7f8fa;
  cursor: pointer; color: #4e5969; font-size: 14px; line-height: 1;
}
.qty-box button:hover { background: #eef3ff; color: var(--primary); }
.qty-box span {
  min-width: 28px; text-align: center; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.buy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-card .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stock-line {
  margin-top: 6px; font-size: 12px; color: #74788d; font-variant-numeric: tabular-nums;
}
.host-transfer-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px;
}
.host-transfer-bar input {
  height: 34px; border: 1px solid #e5e6eb; border-radius: 6px; padding: 0 10px;
}
.host-check { margin-right: 8px; display: inline-flex; align-items: center; }
.cart-item .ci-price {
  text-align: right; font-weight: 700; color: var(--price);
  font-size: 16px; font-variant-numeric: tabular-nums;
}
.cart-item .ci-ops { text-align: center; }
.cart-item .rm {
  border: none; background: none; color: #a0a4b3;
  cursor: pointer; font-size: 13px; padding: 4px 8px; border-radius: 4px;
}
.cart-item .rm:hover { color: #e64a19; background: rgba(230,74,25,.06); }

.cart-empty {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30, 39, 54, .04);
  padding: 80px 24px 72px; text-align: center;
}
.cart-empty .illus {
  width: 120px; height: 120px; margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8efff, #d6e4ff 55%, #c5d8ff);
  display: grid; place-items: center; position: relative;
}
.cart-empty .illus svg { width: 56px; height: 56px; color: var(--primary); opacity: .9; }
.cart-empty h3 { margin: 0 0 8px; font-size: 18px; color: #1e2736; font-weight: 600; }
.cart-empty p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.cart-empty .btn.primary { padding: 10px 28px; }

.cart-summary {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30, 39, 54, .04);
  overflow: hidden; position: sticky; top: 72px;
}
.cart-summary .sum-hd {
  background: linear-gradient(120deg, #1a56db 0%, #316eea 55%, #4f8cff 100%);
  color: #fff; padding: 18px 20px;
}
.cart-summary .sum-hd h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cart-summary .sum-hd p { margin: 6px 0 0; font-size: 12px; opacity: .85; }
.cart-summary .sum-bd { padding: 18px 20px 20px; }
.cart-summary .row-line {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 13px; color: #74788d;
}
.cart-summary .row-line em {
  font-style: normal; color: #1e2736; font-weight: 500;
}
.cart-summary .promo-box {
  margin: 4px 0 14px; padding: 12px; border-radius: 8px;
  background: #f6f8fc; border: 1px solid #e8ecf4;
}
.cart-summary .promo-box label {
  display: block; margin-bottom: 8px; font-size: 12px; color: #74788d;
}
.cart-summary .promo-row { display: flex; gap: 8px; }
.cart-summary .promo-row input {
  flex: 1; min-width: 0; height: 36px; padding: 0 10px;
  border: 1px solid #d9dee8; border-radius: 6px; font-size: 13px;
  outline: none; background: #fff;
}
.cart-summary .promo-row input:focus { border-color: var(--primary); }
.cart-summary .btn.promo-apply {
  flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--primary); background: #fff; color: var(--primary);
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.cart-summary .btn.promo-apply:hover { background: rgba(49,110,234,.06); }
.cart-summary .btn.promo-apply:disabled { opacity: .6; cursor: not-allowed; }
.cart-summary .promo-ok { margin: 8px 0 0; font-size: 12px; color: #2e7d32; }
.cart-summary .promo-tip { margin: 8px 0 0; font-size: 12px; color: #c62828; }
.cart-summary .total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 4px; margin-top: 4px;
  border-top: 1px dashed #e4e7ef; font-size: 14px; color: #1e2736;
}
.cart-summary .total strong {
  color: var(--price); font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.cart-summary .btn.settle {
  width: 100%; margin-top: 18px; padding: 13px;
  font-size: 15px; font-weight: 600; border-radius: 6px;
  background: linear-gradient(90deg, #316eea, #4f8cff) !important;
  color: #fff !important; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(49,110,234,.3);
  transition: transform .15s, box-shadow .15s;
}
.cart-summary .btn.settle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(49,110,234,.38);
}
.cart-summary .btn.more {
  width: 100%; margin-top: 10px; padding: 10px;
  background: #fff; border: 1px solid var(--border);
  color: #545968; border-radius: 6px; cursor: pointer;
}
.cart-summary .btn.more:hover { border-color: var(--primary); color: var(--primary); }
.cart-summary .tips {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 6px;
  background: #f7f8fc; color: #8a8fa3; font-size: 12px; line-height: 1.6;
}
.cart-summary .err { margin-top: 10px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--price); color: #fff; font-size: 11px;
}

/* ===== Host detail ===== */
.host-card { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.host-card:hover { box-shadow: 0 8px 24px rgba(49,110,234,.12); transform: translateY(-2px); }
.host-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.host-drawer-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 80;
}
.host-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: #fff; z-index: 90; box-shadow: -8px 0 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
.host-drawer-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.host-drawer-hd h2 { margin: 0; font-size: 16px; }
.host-drawer-bd { padding: 16px 18px; overflow: auto; flex: 1; }
.host-kv {
  display: grid; grid-template-columns: 88px 1fr; gap: 8px;
  padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.host-kv span { color: var(--muted); }
.host-kv b { font-weight: 500; word-break: break-all; }
.host-kv a { margin-left: 8px; font-size: 12px; font-weight: 400; }

.host-specs { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.host-specs-title { font-weight: 600; margin-bottom: 6px; color: var(--text); }
.host-reinstall {
  margin-top: 18px; padding: 14px; border-radius: 8px;
  background: #f7f8fc; border: 1px solid var(--border);
}
.host-reinstall .field { margin: 10px 0; }
.host-reinstall .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.host-reinstall select, .host-reinstall input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; background: #fff;
}
.host-reinstall .btn { margin-top: 6px; }
.host-reinstall .ok-msg { color: #1a7f37; font-size: 13px; margin-top: 8px; }
.host-reinstall .err { margin-top: 8px; }

.host-power, .host-charts {
  margin-top: 18px; padding: 14px; border-radius: 8px;
  background: #f7f8fc; border: 1px solid var(--border);
}
.host-power-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.host-power .btn.danger {
  background: #fff; border: 1px solid #e35d6a; color: #c62828;
}
.host-power .btn.danger:hover { background: #fff5f5; }
.host-power .ok-msg { color: #1a7f37; font-size: 13px; margin-top: 8px; }
.host-power .err { margin-top: 8px; }

.host-chart-card {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(49,110,234,.04);
}
.host-chart-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin-bottom: 8px;
}
.host-chart-hd b { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.host-chart-svg { width: 100%; height: 130px; display: block; }
.host-chart-svg .grid { stroke: #eef0f5; stroke-width: 1; }
.host-chart-svg .area { stroke: none; }
.host-chart-svg .line { fill: none; stroke: #316eea; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.host-chart-svg .dot { fill: #fff; stroke: #316eea; stroke-width: 1.5; }
.host-chart-svg.mem .line { stroke: #1a7f37; }
.host-chart-svg.mem .dot { stroke: #1a7f37; }
.host-chart-ft { font-size: 11px; margin-top: 6px; }

.ticket-thread { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ticket-msg {
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff;
}
.ticket-msg.me { background: #f3f7ff; border-color: #d6e4ff; }
.ticket-msg.staff { background: #f7f8fc; }
.ticket-msg-hd { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ticket-msg-bd { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.panel .ok-msg { color: #1a7f37; font-size: 13px; margin-top: 8px; }

.host-refund {
  margin-top: 18px; padding: 14px; border-radius: 8px;
  background: #fff8f6; border: 1px solid #f5d0c8;
}
.host-refund .host-specs-title { color: #c62828; }
.host-refund .btn.danger {
  margin-top: 10px; background: #c62828 !important; color: #fff !important;
  border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer;
}
.host-refund .btn.danger:disabled { opacity: .55; cursor: not-allowed; }
.host-refund .price-em { color: var(--price); font-weight: 700; }
.host-bar-input {
  height: 34px; border: 1px solid #e5e6eb; border-radius: 6px; padding: 0 10px;
  max-width: 240px; width: 100%;
}
.host-bar-input.sm { max-width: 160px; }
.btn.danger {
  background: #fff; border: 1px solid #e35d6a; color: #c62828;
}
.btn.danger:hover { background: #fff5f5; }

.nav-toggle {
  display: none; width: 40px; height: 36px; border: 1px solid var(--border);
  background: #fff; border-radius: 8px; cursor: pointer; padding: 8px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; background: #445; border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 900px) {
  .topbar-inner { height: auto; min-height: 56px; padding: 10px 14px; flex-wrap: wrap; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px 0 4px;
  }
  .nav.open { display: flex; }
  .nav button, .nav .btn { width: 100%; text-align: left; padding: 12px 14px; }
  .shell { padding: 16px 12px 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .host-drawer {
    width: 100vw; max-width: 100vw; border-radius: 0;
  }
  .host-kv { grid-template-columns: 76px 1fr; }
  .host-transfer-bar { flex-direction: column; align-items: stretch; }
  .host-bar-input, .host-bar-input.sm { max-width: none; }
  .host-power-btns .btn { flex: 1 1 calc(50% - 4px); }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .hero-simple h1 { font-size: 22px; }
  .pcard .pcard-foot { flex-direction: column; align-items: stretch; }
  .pcard .btn.buy { width: 100%; text-align: center; }
  .buy-row { width: 100%; justify-content: space-between; }
}

@media (max-width: 700px) {
  .brand { font-size: 16px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
  .home-banner h1 { font-size: 24px; line-height: 1.35; }
  .card, .panel { padding: 14px; }
  .field input, .field select, .field textarea { width: 100%; }
}

.agree-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.agreement-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100;
  display: grid; place-items: center; padding: 16px;
}
.agreement-box {
  background: #fff; border-radius: 10px; width: min(560px, 96vw); max-height: 80vh;
  display: flex; flex-direction: column; padding: 18px;
}
.agreement-box h3 { margin: 0 0 10px; }
.agreement-body { overflow: auto; flex: 1; font-size: 13px; line-height: 1.7; color: #445; margin-bottom: 14px; }

/* ===== 团购 ===== */
.gb-page { max-width: 1100px; margin: 0 auto; }
.gb-hero {
  border-radius: 16px; padding: 28px 24px; margin-bottom: 22px;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 55%, #38bdf8 100%);
  color: #fff; box-shadow: 0 12px 40px rgba(14,165,233,.25);
}
.gb-hero h1 { margin: 6px 0 8px; font-size: 28px; letter-spacing: .02em; }
.gb-hero p { margin: 0; opacity: .92; max-width: 520px; line-height: 1.6; }
.gb-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gb-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 4px 18px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gb-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.gb-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gb-card-top h3 { margin: 0; font-size: 17px; }
.gb-pill {
  flex-shrink: 0; font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: #ecfeff; color: #0e7490; font-weight: 600;
}
.gb-sub { margin: 0; color: var(--muted); font-size: 13px; }
.gb-price-row { display: flex; align-items: baseline; gap: 12px; }
.gb-price { font-size: 28px; font-weight: 700; color: #0f766e; }
.gb-price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.gb-orig { color: #94a3b8; text-decoration: line-through; font-size: 14px; }
.gb-meta { margin: 0; padding-left: 18px; color: #475569; font-size: 13px; line-height: 1.7; }
.gb-cta { margin-top: auto; width: 100%; }
.gb-mine { margin-top: 28px; }
.gb-mine h2 { font-size: 18px; margin: 0 0 12px; }
.gb-mine-list { display: flex; flex-direction: column; gap: 10px; }
.gb-mine-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px;
}
.gb-mine-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-status {
  display: inline-block; margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 6px;
  background: #f1f5f9; color: #475569;
}
.gb-status[data-st="pending"] { background: #fff7ed; color: #c2410c; }
.gb-status[data-st="success"] { background: #ecfdf5; color: #047857; }
.gb-status[data-st="waiting"] { background: #eff6ff; color: #1d4ed8; }
.gb-status[data-st="expired"] { background: #f8fafc; color: #94a3b8; }
.gb-join {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px;
  max-width: 640px; margin: 0 auto;
}
.gb-join-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gb-join h1 { margin: 0 0 12px; font-size: 24px; }
.gb-progress-wrap { margin: 16px 0 20px; }
.gb-progress-label { font-size: 14px; margin-bottom: 8px; }
.gb-progress-bar {
  height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 6px;
}
.gb-progress-bar i {
  display: block; height: 100%; background: linear-gradient(90deg, #0ea5e9, #14b8a6);
  border-radius: 999px; transition: width .4s ease;
}
.gb-members { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.gb-member {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 10px; background: #f8fafc; border: 1px dashed transparent;
}
.gb-member.empty { opacity: .65; border-color: #cbd5e1; background: transparent; }
.gb-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #0ea5e9; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.gb-member.empty .gb-avatar { background: #cbd5e1; }
.gb-member b { display: block; font-size: 14px; }
.gb-member small { color: var(--muted); font-size: 12px; }
.gb-invite label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.gb-invite-row { display: flex; gap: 8px; }
.gb-invite-row input {
  flex: 1; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: 13px;
}
.gb-join-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.gb-pay-box .gb-pay-amount { font-size: 16px; margin: 0 0 14px; }
.gb-pay-box .gb-pay-amount b { color: #ea580c; font-size: 22px; }
.gb-pay-modal .agreement-box { max-width: 420px; }
.host-renew, .host-refund {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.host-renew h4, .host-refund h4 { margin: 0 0 6px; font-size: 15px; }
.host-renew .price-em, .host-refund .price-em { color: #ea580c; }

/* ===== 欢乐大转盘 ===== */
.wheel-page { max-width: 920px; margin: 0 auto; text-align: center; }
.wheel-hero {
  border-radius: 18px; padding: 26px 20px 18px; margin-bottom: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(251,191,36,.35), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(249,115,22,.4), transparent 42%),
    linear-gradient(160deg, #1e1b4b 0%, #7c2d12 55%, #ea580c 100%);
  color: #fff;
}
.wheel-hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: .04em; }
.wheel-hero p { margin: 0 auto 12px; max-width: 420px; opacity: .9; }
.wheel-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.wheel-meta b { color: #fde68a; }
.wheel-stage {
  position: relative; width: 320px; height: 320px; margin: 28px auto 18px;
}
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 5;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 22px solid #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.wheel-rotate {
  width: 100%; height: 100%; border-radius: 50%;
  transition: transform 4.2s cubic-bezier(.12,.75,.18,1);
  will-change: transform;
}
.wheel-disk {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid #fff7ed; box-shadow: 0 12px 40px rgba(124,45,18,.35), inset 0 0 0 4px rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.wheel-label {
  position: absolute; left: 50%; top: 50%; width: 90px; margin-left: -45px; margin-top: -10px;
  transform-origin: center center; pointer-events: none;
}
.wheel-label span {
  display: block; font-size: 12px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35); line-height: 1.2;
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 6; width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid #fff; background: linear-gradient(160deg, #fbbf24, #ea580c);
  color: #431407; font-weight: 800; font-size: 16px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(234,88,12,.45);
}
.wheel-hub:disabled { opacity: .7; cursor: wait; }
.wheel-result {
  background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px;
  padding: 14px 16px; margin: 0 auto 18px; max-width: 480px;
}
.wheel-result b { font-size: 18px; color: #c2410c; }
.wheel-result p { margin: 6px 0 10px; color: #9a3412; }
.wheel-prizes, .wheel-logs { text-align: left; margin: 22px auto; max-width: 640px; }
.wheel-prizes h3, .wheel-logs h3 { font-size: 16px; margin: 0 0 10px; }
.wheel-prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wheel-prize-item {
  display: flex; gap: 10px; align-items: center; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px;
}
.wheel-prize-item i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.wheel-prize-item b { display: block; font-size: 14px; }
.wheel-prize-item small { color: var(--muted); font-size: 12px; }
.wheel-log-item {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}

/* 计费周期选择 */
.gc-cycles {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px;
}
.gc-cycles button, .cycle-chip {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 8px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; color: #475569;
}
.gc-cycles button.on, .cycle-chip.on {
  border-color: var(--primary, #2563eb); background: rgba(37,99,235,.08);
  color: var(--primary, #2563eb); font-weight: 600;
}
.cycle-select {
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 8px;
  font-size: 13px; background: #fff; max-width: 100%;
}

@media (max-width: 700px) {
  .gb-mine-item { flex-direction: column; align-items: stretch; }
  .wheel-stage { width: 280px; height: 280px; }
  .wheel-label { transform: none; }
}

/* ===== 介绍 / 关于页 ===== */
.about-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}
.about-hero {
  text-align: center;
  margin-bottom: 36px;
}
.about-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: .02em;
  color: var(--text, #1d2129);
}
.about-sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted, #86909c);
  line-height: 1.7;
  font-size: 15px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.about-card {
  background: #fff;
  border: 1px solid var(--border, #e5e6eb);
  border-radius: 12px;
  padding: 22px 20px;
}
.about-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text, #1d2129);
}
.about-card p {
  margin: 0;
  color: var(--muted, #86909c);
  font-size: 14px;
  line-height: 1.65;
}
.about-block {
  background: #fff;
  border: 1px solid var(--border, #e5e6eb);
  border-radius: 12px;
  padding: 28px 24px;
}
.about-block h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.about-block > p {
  margin: 0 0 20px;
  color: var(--muted, #86909c);
  line-height: 1.7;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 26px; }
}

/* 备案号 */
.theme-icp-foot,
.site-icp-foot {
  text-align: center;
  padding: 20px 16px 32px;
  color: var(--muted, #86909c);
  font-size: 13px;
}
.theme-icp-foot a.icp,
.site-icp-foot a.icp {
  color: inherit;
  text-decoration: none;
}
.theme-icp-foot a.icp:hover,
.site-icp-foot a.icp:hover {
  color: var(--primary, #165dff);
  text-decoration: underline;
}
.site-icp-foot {
  border-top: 1px solid var(--border, #e5e6eb);
  background: transparent;
}

.brand .site-logo,
.console-brand .site-logo {
  display: block;
  height: 28px;
  max-width: 140px;
  object-fit: contain;
}
.console-brand .site-logo.sm { height: 24px; max-width: 120px; }
.console-brand { display: flex; align-items: center; gap: 8px; }

.coupon-page {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.coupon-page .cp-hero {
  position: relative;
  border-radius: 20px;
  padding: 28px 28px 26px;
  margin-bottom: 22px;
  overflow: hidden;
  background:
    radial-gradient(900px 220px at 10% -20%, color-mix(in srgb, var(--primary, #165dff) 28%, transparent), transparent 60%),
    linear-gradient(135deg, #f7f9fc 0%, #eef3ff 55%, #f8fafc 100%);
  border: 1px solid color-mix(in srgb, var(--primary, #165dff) 16%, #e5e6eb);
}
.coupon-page .cp-hero.compact { padding: 20px 24px; }
.coupon-page .cp-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--primary, #165dff);
  font-weight: 700;
}
.coupon-page .cp-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -.02em;
}
.coupon-page .cp-hero p {
  margin: 0;
  color: var(--muted, #86909c);
  line-height: 1.6;
  max-width: 520px;
}
.coupon-page .cp-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.coupon-page .cp-link {
  border: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary, #165dff);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.coupon-page .cp-link.ghost {
  background: #fff;
  color: var(--text, #1d2129);
  border: 1px solid var(--border, #e5e6eb);
}
.coupon-page .coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.coupon-ticket {
  --ct: var(--primary, var(--c-blue, #165dff));
  position: relative;
  filter: drop-shadow(0 10px 22px rgba(22, 35, 74, .08));
}
.coupon-ticket.gift { --ct: #0f9f6e; }
.coupon-ticket.flash { --ct: #d97706; }
.coupon-ticket.locked { --ct: #8b95a5; }
.coupon-ticket.used { opacity: .72; --ct: #8b95a5; }
.coupon-ticket .ct-face {
  display: grid;
  grid-template-columns: 112px 14px 1fr;
  min-height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ct) 22%, #e5e6eb);
}
.coupon-ticket .ct-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  background:
    radial-gradient(120px 80px at 20% 20%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--ct) 88%, #fff) 0%, var(--ct) 100%);
  padding: 14px 8px;
}
.coupon-ticket .ct-amount b {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.coupon-ticket .ct-amount small {
  font-size: 16px;
  font-weight: 700;
  margin: 0 1px;
  opacity: .95;
}
.coupon-ticket .ct-amount em {
  font-style: normal;
  font-size: 11px;
  opacity: .9;
  letter-spacing: .04em;
}
.coupon-ticket .ct-dash {
  position: relative;
  background:
    radial-gradient(circle at left 50%, transparent 7px, #fff 7.5px) left center / 14px 100% no-repeat,
    radial-gradient(circle at right 50%, transparent 7px, #fff 7.5px) right center / 14px 100% no-repeat,
    repeating-linear-gradient(
      to bottom,
      transparent 0 6px,
      color-mix(in srgb, var(--ct) 35%, #d0d5dd) 6px 10px
    );
  background-color: #fff;
}
.coupon-ticket .ct-info {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.coupon-ticket .ct-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.coupon-ticket .ct-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  color: #1d2129;
}
.coupon-ticket .ct-tag {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ct) 12%, #fff);
  color: var(--ct);
  font-weight: 600;
  white-space: nowrap;
}
.coupon-ticket .ct-tag.warn {
  background: #fff1f0;
  color: #cf1322;
}
.coupon-ticket .ct-tag.ok {
  background: #f0f5ff;
  color: var(--primary, #165dff);
}
.coupon-ticket .ct-info p {
  margin: 0;
  font-size: 13px;
  color: #86909c;
  line-height: 1.5;
}
.coupon-ticket .ct-info p strong { color: #4e5969; font-weight: 600; }
.coupon-ticket .ct-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.coupon-ticket .ct-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e5e6eb;
  background: #fff;
  color: #1d2129;
  font-size: 13px;
  cursor: pointer;
}
.coupon-ticket .ct-btn.primary {
  border-color: transparent;
  background: var(--ct);
  color: #fff;
  font-weight: 600;
}
.coupon-ticket .ct-btn:hover { filter: brightness(1.03); }
.coupon-page .cp-empty {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  background: #fafbfc;
}
.coupon-page .cp-empty h3 { margin: 0 0 6px; }
.coupon-page .cp-empty p { margin: 0; color: #86909c; }
.gift-panel {
  margin-top: 28px;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border, #e5e6eb);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.gift-panel .gp-head h3 { margin: 0 0 6px; font-size: 18px; }
.gift-panel .gp-head p { margin: 0 0 16px; color: #86909c; font-size: 13px; }
.gift-panel .gp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gift-panel .gp-cost {
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary, #165dff) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary, #165dff) 18%, #e5e6eb);
  font-size: 14px;
}
.gift-panel .gp-cost strong {
  color: var(--primary, #165dff);
  font-size: 18px;
  margin: 0 4px;
}
@media (max-width: 720px) {
  .gift-panel .gp-form { grid-template-columns: 1fr; }
  .coupon-ticket .ct-face { grid-template-columns: 96px 12px 1fr; }
  .coupon-ticket .ct-amount b { font-size: 28px; }
}
.gift-panel .invitee-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border, #e5e6eb);
  border-radius: 12px;
  padding: 10px;
  background: #f7f8fa;
}
.gift-panel .invitee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  user-select: none;
}
.gift-panel .invitee-item:hover { background: #fff; }
.gift-panel .invitee-item.on { background: color-mix(in srgb, var(--primary, #165dff) 10%, #fff); }
.gift-panel .invitee-item input { position: absolute; opacity: 0; pointer-events: none; }
.gift-panel .invitee-item .tick {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid #c9cdd4;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
}
.gift-panel .invitee-item.on .tick {
  border-color: var(--primary, #165dff);
  background: var(--primary, #165dff);
}
.gift-panel .invitee-item.on .tick::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gift-panel .invitee-item .name { font-size: 14px; color: var(--text, #1d2129); }
.agent-center-page { max-width: 960px; }
.agent-center-page .ac-head h1 { margin: 0 0 12px; font-size: 28px; }
.agent-center-page .ac-notice {
  background: color-mix(in srgb, var(--primary, #165dff) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary, #165dff) 22%, #e5e6eb);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text, #1d2129);
  margin-bottom: 18px;
  line-height: 1.6;
}
.agent-center-page .ac-top {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: stretch;
}
.agent-center-page .ac-stat {
  border-radius: 14px;
  padding: 20px 22px;
  color: #fff;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.agent-center-page .ac-level {
  background: linear-gradient(135deg, #5b6cff 0%, #7a4dff 100%);
}
.agent-center-page .ac-spend {
  background: linear-gradient(135deg, #1bbf8a 0%, #12a06f 100%);
}
.agent-center-page .ac-stat-label { opacity: .9; font-size: 14px; margin-bottom: 8px; }
.agent-center-page .ac-stat-val { font-size: 28px; font-weight: 700; letter-spacing: .02em; }
.agent-center-page .ac-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.agent-center-page .ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e6eb);
  background: #fff;
  color: var(--text, #1d2129);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0 14px;
}
.agent-center-page .ac-btn-primary {
  background: var(--primary, var(--c-blue, #165dff));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.agent-center-page .ac-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e6eb);
  border-radius: 14px;
  padding: 18px 20px;
}
.agent-center-page .ac-card h3 { margin: 0 0 6px; }
.agent-center-page .ac-disc {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #12a06f 15%, #fff);
  color: #0f8a5f;
  font-weight: 600;
}
.agent-center-page .ac-modal-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.agent-center-page .ac-modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.agent-center-page .ac-modal h3 { margin: 0 0 10px; }
.agent-center-page .ac-modal-tip { margin: 0 0 12px; line-height: 1.6; }
.agent-center-page .ac-modal-ops { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.agent-center-page .ac-modal-x {
  position: absolute; right: 12px; top: 10px;
  border: 0; background: transparent; font-size: 22px; cursor: pointer; color: #86909c;
}
@media (max-width: 860px) {
  .agent-center-page .ac-top { grid-template-columns: 1fr; }
}


/* ===== Market rewrite (mk-*) ===== */
.mk{--mk-bg:#f4f7fb;--mk-panel:#fff;--mk-ink:#0f172a;--mk-muted:#64748b;--mk-line:#e2e8f0;--mk-brand:#1d4ed8;--mk-brand-2:#0b1f3a;max-width:1080px;margin:0 auto;padding:20px 20px 56px;color:var(--mk-ink)}
.mk *{box-sizing:border-box}
.mk-hero{display:flex;flex-wrap:wrap;justify-content:space-between;gap:22px;padding:28px;border-radius:20px;background:linear-gradient(135deg,var(--mk-brand-2) 0%,#123a6b 45%,var(--mk-brand) 100%);color:#fff;margin-bottom:18px}
.mk-eyebrow{margin:0 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;opacity:.72}
.mk-hero h1,.mk-pagehead h1{margin:0 0 10px;font-size:1.9rem;font-weight:800;letter-spacing:-.03em;line-height:1.15}
.mk-sub{margin:0 0 16px;max-width:34rem;line-height:1.6;opacity:.92;font-size:.95rem}
.mk-hero .mk-sub{color:rgba(255,255,255,.92)}
.mk-hero-aside{display:flex;gap:10px;align-items:stretch}
.mk-metric{min-width:92px;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.12);text-align:center}
.mk-metric strong{display:block;font-size:1.45rem;font-weight:800}
.mk-metric span{font-size:12px;opacity:.85}
.mk-pagehead{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:flex-end;margin-bottom:16px}
.mk-pagehead .mk-sub{margin-bottom:0;color:var(--mk-muted)}
.mk-link{border:0;background:transparent;color:var(--mk-brand);padding:0;margin:0 0 8px;cursor:pointer;font-size:13px}
.mk-hero .mk-link{color:#fff}
.mk-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mk-actions-center{justify-content:center}
.mk-btn{appearance:none;border:1px solid transparent;border-radius:12px;padding:10px 16px;font-size:14px;font-weight:600;cursor:pointer;line-height:1.2;transition:transform .12s,box-shadow .12s,background .12s}
.mk-btn:disabled{opacity:.55;cursor:not-allowed}
.mk-btn-primary{background:var(--mk-brand);color:#fff;box-shadow:0 8px 18px rgba(29,78,216,.25)}
.mk-btn-primary:hover:not(:disabled){transform:translateY(-1px)}
.mk-btn-ghost{background:#fff;border-color:var(--mk-line);color:var(--mk-ink)}
.mk-hero .mk-btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff}
.mk-btn-sm{padding:7px 12px;font-size:13px;border-radius:10px}
.mk-alert{margin:0 0 12px;padding:12px 14px;border-radius:12px;background:rgba(29,78,216,.08);border:1px solid rgba(29,78,216,.18);font-size:14px}
.mk-alert-warn{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35);color:#92400e}
.mk-err{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fef2f2;color:#b91c1c;font-size:14px}
.mk-search{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px;padding:12px;border:1px solid var(--mk-line);border-radius:16px;background:var(--mk-panel)}
.mk-input,.mk select.mk-input,textarea.mk-input{width:100%;display:block;border:1px solid var(--mk-line);border-radius:12px;padding:11px 13px;font:inherit;color:var(--mk-ink);background:#fff;outline:none}
.mk-input:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(29,78,216,.12)}
.mk-search .mk-input{flex:1;min-width:180px}
.mk-input-sm{flex:0 1 140px !important;min-width:120px !important}
.mk-textarea{min-height:120px;resize:vertical;line-height:1.55}
.mk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.mk-card{border:1px solid var(--mk-line);border-radius:16px;padding:16px;background:var(--mk-panel);cursor:pointer;transition:box-shadow .15s,transform .15s}
.mk-card:hover{box-shadow:0 12px 28px rgba(15,23,42,.08);transform:translateY(-2px)}
.mk-card-static{cursor:default}
.mk-card-static:hover{transform:none;box-shadow:none}
.mk-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.mk-card-title{margin:0 0 8px;font-size:1.05rem;line-height:1.35}
.mk-card-desc{margin:0 0 12px;color:var(--mk-muted);font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}
.mk-card-foot{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:12px;color:var(--mk-muted)}
.mk-price{font-weight:800;color:var(--mk-brand);font-size:1.1rem;white-space:nowrap}
.mk-tag{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:600}
.mk-tag-ok{background:rgba(16,185,129,.14);color:#047857}
.mk-tag-mute{background:#f1f5f9;color:#64748b}
.mk-empty{text-align:center;padding:48px 20px;border:1px dashed var(--mk-line);border-radius:18px;background:rgba(15,23,42,.02);margin:8px 0 18px}
.mk-empty-mark{width:56px;height:56px;margin:0 auto 12px;border-radius:16px;display:grid;place-items:center;font-weight:800;color:var(--mk-brand);background:rgba(29,78,216,.12)}
.mk-empty h3{margin:0 0 8px}
.mk-empty p{margin:0 auto 16px;max-width:26rem;color:var(--mk-muted);line-height:1.55}
.mk-panel{border:1px solid var(--mk-line);border-radius:18px;background:var(--mk-panel);padding:22px;margin-bottom:16px}
.mk-muted-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.mk-form{display:flex;flex-direction:column;gap:4px;max-width:720px}
.mk-field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;width:100%}
.mk-field label{font-size:13px;font-weight:600;color:#334155}
.mk-hint{margin:0;font-size:12px;color:var(--mk-muted)}
.mk-row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mk-detail-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
.mk-detail-title{margin:10px 0 8px;font-size:1.6rem;font-weight:800;letter-spacing:-.02em}
.mk-detail-price{font-size:2rem;font-weight:800;color:var(--mk-brand);line-height:1}
.mk-muted{color:var(--mk-muted);font-size:14px;margin:0}
.mk-block{margin:0 0 16px}
.mk-block h4{margin:0 0 8px;font-size:13px;color:var(--mk-muted);font-weight:600}
.mk-pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;background:#f8fafc;border:1px solid var(--mk-line);border-radius:12px;padding:12px 14px;line-height:1.55;font-size:14px}
.mk-quote{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 0 18px}
.mk-quote>div{padding:12px;border-radius:12px;background:#f8fafc;border:1px solid var(--mk-line)}
.mk-quote span{display:block;font-size:12px;color:var(--mk-muted);margin-bottom:4px}
.mk-quote b{font-size:15px}
.mk-report{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--mk-line)}
.mk-report .mk-input{flex:1;min-width:200px}
.mk-rules{margin-top:22px;padding:16px 18px;border-radius:16px;background:#fff;border:1px solid var(--mk-line)}
.mk-rules h3{margin:0 0 8px;font-size:15px}
.mk-rules pre{margin:0;white-space:pre-wrap;font-family:inherit;color:var(--mk-muted);font-size:13px;line-height:1.6}
.mk-section-title{margin:22px 0 12px;font-size:1.1rem}
.mk-list{display:flex;flex-direction:column;gap:12px}
.mk-want{border:1px solid var(--mk-line);border-radius:16px;padding:16px;background:#fff}
.mk-want-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;margin-bottom:6px}
.mk-want h3{margin:0;font-size:1.05rem}
@media (max-width:720px){
  .mk{padding:12px 14px 40px}
  .mk-hero{padding:20px}
  .mk-row2{grid-template-columns:1fr}
  .mk-grid{grid-template-columns:1fr}
  .mk-hero-aside{width:100%}
  .mk-metric{flex:1}
}

/* ===== Mail Relay console (mr) ===== */
.mr-creds{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px}
.mr-cred{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-radius:12px;background:#f8fafc;border:1px solid var(--mk-line,#e2e8f0)}
.mr-cred>span{font-size:12px;color:var(--mk-muted,#64748b);font-weight:600;min-width:56px}
.mr-cred code{flex:1;min-width:120px;font-size:12px;word-break:break-all;background:#fff;padding:6px 8px;border-radius:8px;border:1px solid var(--mk-line,#e2e8f0)}
.mr-cred-wide{grid-column:1/-1}
.mk-table-wrap{overflow:auto;padding:0}
.mk-table{width:100%;border-collapse:collapse;font-size:13px}
.mk-table th,.mk-table td{padding:12px 14px;border-bottom:1px solid var(--mk-line,#e2e8f0);text-align:left;vertical-align:top}
.mk-table th{color:var(--mk-muted,#64748b);font-weight:600;background:#f8fafc;position:sticky;top:0}
.mk-table tr:last-child td{border-bottom:0}
.mk-ellipsis{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-doc summary{cursor:pointer;font-weight:700;font-size:15px;list-style:none}
.mr-doc summary::-webkit-details-marker{display:none}
.mr-doc[open] summary{margin-bottom:12px}
.mr-doc-body p{margin:0 0 8px;font-size:14px}
.mr-doc-body code{font-size:12px;word-break:break-all}
.mk-hint{margin:0;font-size:12px;color:var(--mk-muted,#64748b)}
@media (max-width:720px){
  .mr-creds{grid-template-columns:1fr}
}

