/* ============================================================
   小星火 xiaostarfire.cn 全局设计体系
   ------------------------------------------------------------
   设计语言：创意创作者平台的「暖紫 × 焰橙」体系
   - 字体分层：LXGW 文楷(正文/标题/导航/按钮) + Space Grotesk(数字/价格/数据标注)
   - 圆角 / 阴影 / 间距使用统一 CSS 变量，覆盖 Bootstrap 默认观感
   - 移动端优先：触控目标 ≥44px、表单适配、表格横向滚动
   - 无障碍：全局可见焦点环、足够的对比度
   ============================================================ */

/* —— 设计令牌 —— */
:root {
  /* 品牌色 */
  --xh-primary: #5e35b1;
  --xh-primary-dark: #4527a0;
  --xh-primary-light: #7e57c2;
  --xh-primary-soft: rgba(94, 53, 177, 0.08);

  --xh-accent: #ff7043;
  --xh-accent-dark: #c0392b;
  --xh-accent-soft: rgba(255, 112, 67, 0.12);

  /* 中性色 */
  --xh-bg-dark: #1a1a2e;
  --xh-ink: #23212f;          /* 标题墨色 */
  --xh-body-text: #3f3d4e;    /* 正文 */
  --xh-muted: #6c7280;        /* 辅助信息 */
  --xh-border: #ece9f2;       /* 分隔线 */
  --xh-body-bg: #f7f6fb;      /* 页面背景 */
  --xh-card-bg: #ffffff;

  /* 语义色 */
  --xh-success: #12a57a;
  --xh-warning: #e8a028;
  --xh-danger: #d9534f;
  --xh-info: #3a7bd5;

  /* 形状 */
  --xh-radius-sm: 0.5rem;
  --xh-radius: 0.875rem;
  --xh-radius-lg: 1.25rem;
  --xh-radius-pill: 999px;

  /* 阴影 */
  --xh-shadow-sm: 0 2px 10px rgba(35, 33, 47, 0.06);
  --xh-shadow: 0 6px 24px rgba(35, 33, 47, 0.08);
  --xh-shadow-lg: 0 16px 40px rgba(35, 33, 47, 0.12);

  /* 间距 */
  --xh-space-1: 0.25rem;
  --xh-space-2: 0.5rem;
  --xh-space-3: 0.75rem;
  --xh-space-4: 1rem;
  --xh-space-5: 1.5rem;
  --xh-space-6: 2rem;
  --xh-space-7: 3rem;

  /* 字体（分层） */
  --xh-font-body: "LXGW WenKai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --xh-font-heading: "LXGW WenKai", "PingFang SC", "Microsoft YaHei", sans-serif;
  --xh-font-numeric: "Space Grotesk", "LXGW WenKai", "Segoe UI", sans-serif;

  /* 覆盖 Bootstrap 变量，让第三方组件也走同一套视觉 */
  --bs-body-bg: var(--xh-body-bg);
  --bs-body-color: var(--xh-body-text);
  --bs-primary: var(--xh-primary);
  --bs-primary-rgb: 94, 53, 177;
  --bs-secondary: #6c7280;
  /* 语义色取可达对比度版本，保证白底文字 ≥4.5:1 */
  --bs-success: #0b7a59;
  --bs-success-rgb: 11, 122, 89;
  --bs-danger: #b3372f;
  --bs-danger-rgb: 179, 55, 47;
  --bs-warning: #9a6b0a;
  --bs-warning-rgb: 154, 107, 10;
  --bs-info: #2b62a8;
  --bs-info-rgb: 43, 98, 168;
  --bs-border-radius: var(--xh-radius);
  --bs-border-radius-sm: var(--xh-radius-sm);
  --bs-border-radius-lg: var(--xh-radius-lg);
  --bs-font-sans-serif: var(--xh-font-body);
}

/* —— 基础 —— */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* 固定导航下方留出空间 */
}

body {
  font-family: var(--xh-font-body);
  font-size: 1rem;
  line-height: 1.75;
  background-color: var(--xh-body-bg);
  color: var(--xh-body-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

/* 标题层级 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--xh-font-heading);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--xh-ink);
}

/* 数字 / 价格 / 数据标注统一用 Space Grotesk 拉开质感 */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.price-tag,
.stat-card .h3,
.stat-card .h4,
.stat-card p.h4,
.stat-card p.h3,
.h1.fw-bold,
.h3.fw-bold,
.display-price,
.amount,
.price,
.currency {
  font-family: var(--xh-font-numeric);
  letter-spacing: -0.01em;
}

/* 无障碍：跳转到主内容的链接（聚焦时可见） */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.6rem 1.1rem;
  background: var(--xh-primary);
  color: #fff;
  border-radius: var(--xh-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 可访问性：可见焦点环 */
:focus-visible {
  outline: 3px solid var(--xh-primary-light);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

a:focus-visible,
button:focus-visible {
  outline-offset: 3px;
}

::selection {
  background: rgba(94, 53, 177, 0.18);
}

code {
  font-family: var(--xh-font-numeric);
  font-size: 0.9em;
  background: var(--xh-primary-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  color: var(--xh-primary-dark);
}

/* 滚动条（桌面） */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(94, 53, 177, 0.25);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* —— 导航栏 —— */
.navbar.sticky-top {
  z-index: 1030;
}

.navbar {
  background: linear-gradient(90deg, var(--xh-primary) 0%, var(--xh-primary-dark) 100%);
  box-shadow: 0 2px 20px rgba(94, 53, 177, 0.28);
}

.navbar-brand {
  font-family: var(--xh-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar .nav-link {
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s ease, background 0.15s ease;
  border-radius: var(--xh-radius-pill);
  padding: 0.5rem 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

/* 导航汉堡按钮：文字「菜单」替代 icon */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--xh-radius-pill);
}

.navbar-toggler-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.1rem 0.4rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar .form-control,
.navbar .input-group-text {
  border-radius: var(--xh-radius-pill);
}

.navbar .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.navbar .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* 通知铃铛（纯文字角标） */
.navbar .notif-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: var(--xh-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.navbar .notif-bell:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* —— 按钮 —— */
.btn {
  font-weight: 600;
  border-radius: var(--xh-radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-accent {
  /* 深橙渐变：白字对比度达 WCAG AA（≥4.5:1） */
  background: linear-gradient(135deg, #e64a19 0%, #d84315 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(216, 67, 21, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(216, 67, 21, 0.45);
  color: #fff;
  filter: brightness(1.03);
}

.btn-primary {
  background-color: var(--xh-primary);
  border-color: var(--xh-primary);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--xh-primary-dark);
  border-color: var(--xh-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(94, 53, 177, 0.28);
}

.btn-outline-primary {
  color: var(--xh-primary);
  border-color: var(--xh-primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--xh-primary);
  border-color: var(--xh-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(94, 53, 177, 0.22);
}

.btn-outline-light {
  font-weight: 600;
}

.btn-outline-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-soft {
  background-color: var(--xh-primary-soft);
  color: var(--xh-primary);
  border: none;
  font-weight: 600;
}

.btn-soft:hover {
  background-color: rgba(94, 53, 177, 0.16);
  color: var(--xh-primary-dark);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  color: #565b66;
  border-color: #6c7280;
  font-weight: 600;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #565b66;
  border-color: #565b66;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-success {
  background-color: #0b7a59;
  border-color: #0b7a59;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #0a6a4e;
  border-color: #0a6a4e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 122, 89, 0.28);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 72vh;
  color: var(--xh-text-light, #f8f9fa);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.195c446c4e3a.jpg") center/cover no-repeat;
  filter: brightness(0.52) contrast(1.05) saturate(1.05);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.86) 0%, rgba(26, 26, 46, 0.6) 50%, rgba(26, 26, 46, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  animation: hero-fade-in 0.7s ease both;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 无障碍：用户偏好减弱动态时关闭动画/过渡 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 4px 28px rgba(0, 0, 0, 0.6), 0 0 48px rgba(0, 0, 0, 0.4);
}

.hero .lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  opacity: 0.98;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero .stat-label,
.hero .h3 {
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero .h3 {
  font-family: var(--xh-font-numeric);
  letter-spacing: -0.01em;
}

.hero .stat-label {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* —— 章节标题 —— */
.section-title {
  font-family: var(--xh-font-heading);
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--xh-accent), var(--xh-accent-dark));
  border-radius: 2px;
  margin-top: 0.75rem;
}

.section-title-center {
  display: block;
  text-align: center;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* —— 卡片 —— */
.card {
  border: 1px solid rgba(35, 33, 47, 0.04);
  border-radius: var(--xh-radius-lg);
  background: var(--xh-card-bg);
  box-shadow: var(--xh-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xh-shadow);
}

/* 运营后台 / 数据面板等不需要悬停抬升的卡片 */
.card.static-card:hover,
.card.table-card:hover {
  transform: none;
}

.card.sticky-top:hover {
  transform: none;
}

.card.border-primary {
  border-color: var(--xh-primary) !important;
  box-shadow: 0 0 0 1px rgba(94, 53, 177, 0.25), var(--xh-shadow-sm);
}

.table-responsive.card:hover {
  transform: none;
}

.card:hover:has(> .table-responsive) {
  transform: none;
}

.card-title {
  font-weight: 700;
  line-height: 1.35;
}

.card-header {
  background: var(--xh-body-bg);
  border-bottom-color: var(--xh-border);
  font-weight: 700;
  color: var(--xh-ink);
}

/* 商品卡片 */
.product-card .card-body {
  padding: 0.9rem 1rem 1rem;
}

.product-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  color: var(--xh-ink);
}

.product-card .card-text {
  font-size: 13px;
  line-height: 1.5;
}

.product-card .price-tag {
  font-size: 15px;
}

.product-card .badge-type {
  font-size: 11px;
  font-weight: 600;
  padding: 0.28em 0.6em;
}

.product-card small {
  font-size: 12px;
}

.card-text {
  line-height: 1.65;
}

/* 商品封面：图片 + 优雅底色 */
.card-img-top {
  border-top-left-radius: var(--xh-radius-lg);
  border-top-right-radius: var(--xh-radius-lg);
  height: 200px;
  object-fit: cover;
  background-color: #eef0f6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top,
.card:hover .card-img-top {
  transform: scale(1.04);
}

.product-card,
.product-card .card-img-top,
.card .card-img-top {
  overflow: hidden;
}

.card-img-top-sm {
  height: 150px;
}

/* —— 头像 —— */
.avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.avatar-lg {
  width: 88px;
  height: 88px;
}

.avatar-xl {
  width: 120px;
  height: 120px;
}

/* —— 创作者封面横幅 —— */
.cover-banner {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--xh-radius-lg);
  overflow: hidden;
  box-shadow: var(--xh-shadow-sm);
}

.cover-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.88) 0%, rgba(26, 26, 46, 0.38) 55%, rgba(26, 26, 46, 0.12) 100%);
}

.cover-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  color: #fff;
}

.cover-banner-clean {
  height: 220px;
  border-radius: var(--xh-radius-lg) var(--xh-radius-lg) 0 0;
}

.creator-info-card {
  border-radius: 0 0 var(--xh-radius-lg) var(--xh-radius-lg);
  border-top: 0;
  padding: 1.5rem;
  position: relative;
}

.creator-info-avatar {
  margin-top: -4rem;
  background: #fff;
  flex-shrink: 0;
}

/* —— 价格标签 —— */
.price-tag {
  color: var(--xh-accent-dark);
  font-weight: 700;
  font-size: 1.15rem;
}

/* —— 徽章 / 标签 —— */
.badge-category {
  background-color: var(--xh-primary-soft);
  color: var(--xh-primary);
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: var(--xh-radius-pill);
}

.badge-type {
  background-color: var(--xh-accent-soft);
  color: var(--xh-accent-dark);
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: var(--xh-radius-pill);
}

.badge {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* 订单状态徽章：柔和的圆角胶囊 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.85em;
  border-radius: var(--xh-radius-pill);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.bg-success { background: rgba(18, 165, 122, 0.12) !important; color: #0a6e50 !important; }
.status-badge.bg-warning { background: rgba(232, 160, 40, 0.14) !important; color: #8a5f08 !important; }
.status-badge.bg-secondary { background: rgba(108, 114, 128, 0.12) !important; color: #4a4e57 !important; }
.status-badge.bg-danger { background: rgba(217, 83, 79, 0.12) !important; color: #a8322d !important; }

/* 权益列表：CSS 色点（几何形状，非 icon） */
.benefit-list .benefit-item {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.benefit-list .benefit-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--xh-primary);
  box-shadow: 0 0 0 3px var(--xh-primary-soft);
}

/* 支付品牌 logo（真实官方品牌图，统一尺寸方形容器内显示） */
.payment-logo {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.375rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--xh-border);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.payment-logo-lg {
  width: 4rem;
  height: 4rem;
  padding: 0.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--xh-border);
  border-radius: 0.75rem;
}

/* 支付方式选择卡 */
.payment-method-label {
  transition: all 0.18s ease;
  cursor: pointer;
  border: 2px solid var(--xh-border) !important;
  border-radius: var(--xh-radius);
  box-shadow: var(--xh-shadow-sm);
}

.payment-method-label:hover {
  border-color: var(--xh-primary-light) !important;
  box-shadow: var(--xh-shadow);
}

.payment-method-label:has(input[type="radio"]:checked) {
  border-color: var(--xh-primary) !important;
  background: var(--xh-primary-soft);
}

.payment-method-label input[type="radio"] {
  accent-color: var(--xh-primary);
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.25rem;
}

/* 首页三种变现方式卡片配图 */
.monetize-img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.monetize-img:hover {
  transform: scale(1.04);
}

/* —— 数据卡片 —— */
.stat-card {
  border-left: 4px solid var(--xh-primary);
  border-radius: var(--xh-radius);
  box-shadow: var(--xh-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--xh-shadow);
}

.stat-card.accent {
  border-left-color: var(--xh-accent);
}

.stat-card .h4,
.stat-card .h3 {
  font-family: var(--xh-font-numeric);
}

/* —— 二维码 —— */
.qr-box {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border-radius: var(--xh-radius);
  box-shadow: var(--xh-shadow);
}

/* —— 空状态 —— */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
}

.empty-state .empty-state-img {
  display: inline-block;
  width: 11rem;
  height: 8.25rem;
  border-radius: var(--xh-radius-lg);
  object-fit: cover;
  box-shadow: var(--xh-shadow);
  margin-bottom: 1.5rem;
  border: 4px solid #fff;
  background: #eef0f6;
}

.empty-state h5 {
  font-weight: 700;
}

.empty-state p {
  color: var(--xh-muted);
}

/* —— 表单 —— */
.form-control,
.form-select {
  border-radius: var(--xh-radius);
  border-color: #dedbe6;
  padding: 0.6rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--xh-primary-light);
  box-shadow: 0 0 0 0.22rem rgba(94, 53, 177, 0.16);
}

.form-label {
  font-weight: 600;
  color: var(--xh-ink);
}

.form-check-input:checked {
  background-color: var(--xh-primary);
  border-color: var(--xh-primary);
}

.input-group-text {
  border-radius: var(--xh-radius);
  color: var(--xh-muted);
}

/* —— 导航胶囊（storefront tab） —— */
.nav-pills .nav-link.active {
  background-color: var(--xh-primary);
}

.nav-pills .nav-link {
  color: var(--xh-primary);
  font-weight: 600;
  border-radius: var(--xh-radius-pill);
  padding: 0.55rem 1.2rem;
}

.nav-tabs .nav-link {
  font-weight: 600;
  color: var(--xh-muted);
}

.nav-tabs .nav-link.active {
  color: var(--xh-primary);
}

/* —— 分页 —— */
.page-link {
  color: var(--xh-primary);
  border-radius: var(--xh-radius-sm) !important;
  margin: 0 0.15rem;
}

.page-item.active .page-link {
  background-color: var(--xh-primary);
  border-color: var(--xh-primary);
}

.text-accent {
  color: var(--xh-accent-dark) !important;
}

/* —— 渐变文字 —— */
.text-gradient {
  background: linear-gradient(135deg, var(--xh-primary) 0%, var(--xh-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* —— 柔和背景 —— */
.bg-soft {
  background-color: rgba(94, 53, 177, 0.045);
}

/* —— 表格 —— */
.table {
  --bs-table-hover-bg: rgba(94, 53, 177, 0.035);
}

.table thead th {
  font-weight: 700;
  color: var(--xh-ink);
  border-bottom-width: 1px;
}

.table-responsive {
  border-radius: var(--xh-radius);
}

/* —— 面包屑 —— */
.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--xh-primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* —— 帮助文档 —— */
.help-doc h1,
.help-doc h2,
.help-doc h3,
.help-doc h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.help-doc h1 {
  font-size: 2rem;
  margin-top: 0;
}

.help-doc p {
  margin-bottom: 1rem;
}

.help-doc ul,
.help-doc ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.help-doc li {
  margin-bottom: 0.35rem;
}

.help-doc code {
  background: var(--xh-primary-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  color: var(--xh-primary-dark);
}

.help-doc pre {
  background: var(--xh-bg-dark);
  color: #f8f9fa;
  padding: 1rem;
  border-radius: var(--xh-radius);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.help-doc pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.help-doc table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.help-doc th,
.help-doc td {
  padding: 0.75rem;
  border: 1px solid #e6e3ec;
}

.help-doc th {
  background: var(--xh-primary-soft);
  font-weight: 700;
}

/* —— 移动端固定底部购买栏（商品详情） —— */
.mobile-buybar {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-buybar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--xh-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  }

  .mobile-buybar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
  }

  .mobile-buybar .btn {
    min-width: 9rem;
    min-height: 48px;
  }

  /* 有底部购买栏时，「回到顶部」上移避让、页面底部留白防遮挡 */
  body:has(.mobile-buybar) .back-to-top {
    bottom: 5.5rem;
  }

  body:has(.mobile-buybar) {
    padding-bottom: 4.5rem;
  }
}

/* —— 回到顶部按钮 —— */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.8rem;
  border: none;
  border-radius: var(--xh-radius-pill);
  background: var(--xh-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--xh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--xh-primary-dark);
}

/* —— 页脚 —— */
footer {
  background-color: var(--xh-bg-dark);
  color: rgba(255, 255, 255, 0.75);
}

footer h5,
footer h6 {
  color: #fff;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

footer a:hover {
  color: #fff;
  opacity: 1;
}

/* 关闭按钮（文字替代 × icon） */
.btn-close-text {
  border: 0;
  background: transparent;
  color: var(--xh-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--xh-radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-close-text:hover {
  color: var(--xh-ink);
  background: rgba(35, 33, 47, 0.06);
}

/* —— 弹窗 —— */
.modal-content {
  border: none;
  border-radius: var(--xh-radius-lg);
  box-shadow: var(--xh-shadow-lg);
}

.modal-header {
  border-bottom-color: var(--xh-border);
}

.modal-footer {
  border-top-color: var(--xh-border);
}

/* —— 提示框 —— */
.alert {
  border: none;
  border-radius: var(--xh-radius);
}

/* —— 单页分步发布向导（product_form） —— */
.product-wizard-card {
  box-shadow: var(--xh-shadow);
}

.wizard-steps-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--xh-border);
}

.wizard-steps-list .wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: var(--xh-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: default;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.wizard-steps-list .wizard-step.is-active {
  color: var(--xh-primary);
  border-bottom-color: var(--xh-primary);
}

.wizard-steps-list .wizard-step.is-done {
  color: var(--xh-success);
}

.wizard-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #eef0f6;
  color: var(--xh-muted);
  font-family: var(--xh-font-numeric);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wizard-step.is-active .wizard-step-num {
  background: var(--xh-primary);
  color: #fff;
}

.wizard-step.is-done .wizard-step-num {
  background: var(--xh-success);
  color: #fff;
}

.wizard-pane {
  padding-top: 0.5rem;
}

.wizard-pane-head h3 {
  font-weight: 700;
}

.wizard-actions {
  border-top-color: var(--xh-border) !important;
}

/* —— 步骤条（发布向导） —— */
.wizard-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}
.wizard-stepper::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9e6f0;
  z-index: 0;
}
.wizard-stepper-progress {
  position: absolute;
  top: 1.25rem;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--xh-primary), var(--xh-accent));
  z-index: 0;
  transition: width 0.3s ease;
}
.wizard-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.wizard-step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e9e6f0;
  color: var(--xh-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xh-font-numeric);
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}
.wizard-step-label {
  display: block;
  font-size: 0.85rem;
  color: var(--xh-muted);
  font-weight: 600;
}
.wizard-step.is-active .wizard-step-dot {
  border-color: var(--xh-primary);
  background: var(--xh-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(94, 53, 177, 0.3);
}
.wizard-step.is-active .wizard-step-label {
  color: var(--xh-primary);
  font-weight: 700;
}
.wizard-step.is-done .wizard-step-dot {
  border-color: var(--xh-primary-light);
  background: var(--xh-primary-soft);
  color: var(--xh-primary);
}
.wizard-step.is-done .wizard-step-label {
  color: var(--xh-primary);
}

/* 类型选择卡（发布向导） */
.type-pill {
  cursor: pointer;
  border: 2px solid #e9e6f0;
  border-radius: var(--xh-radius);
  padding: 1rem 1.25rem;
  transition: all 0.15s ease;
  background: #fff;
}
.type-pill:hover {
  border-color: var(--xh-primary-light);
  box-shadow: var(--xh-shadow-sm);
}
.type-pill.is-selected {
  border-color: var(--xh-primary);
  background: var(--xh-primary-soft);
  box-shadow: 0 4px 14px rgba(94, 53, 177, 0.14);
}
.type-pill input {
  position: absolute;
  opacity: 0;
}

/* 文件拖拽区（发布向导） */
.file-dropzone {
  border: 2px dashed #dedbe6;
  border-radius: var(--xh-radius);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.15s ease;
  cursor: pointer;
  background: #fff;
}
.file-dropzone:hover,
.file-dropzone.is-dragover {
  border-color: var(--xh-primary);
  background: var(--xh-primary-soft);
}
.file-dropzone input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
}
.file-dropzone-inner i {
  font-size: 2rem;
  color: var(--xh-primary);
  margin-bottom: 0.35rem;
}

/* 拖拽区顶部文字标记（替代上传 icon） */
.dropzone-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--xh-primary-soft);
  color: var(--xh-primary);
  font-family: var(--xh-font-numeric);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.file-selected-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.file-selected-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e9e6f0;
  border-radius: var(--xh-radius-sm);
  margin-bottom: 0.5rem;
  font-family: var(--xh-font-numeric);
  font-size: 0.9rem;
}
.file-selected-list li em {
  margin-left: auto;
  color: var(--xh-muted);
  font-size: 0.8rem;
  font-style: normal;
}

/* —— 发布向导（面包多风格横向布局，沿用既有 mbx 类） —— */
.mbd-create {
  --mbd-orange: #ff6a00;
  --mbd-orange-dark: #e85f00;
  --mbd-ink: #222;
  --mbd-muted: #8c8c8c;
  --mbd-line: #eee;
  --mbd-bg: #fafafa;
  display: flex;
  min-height: calc(100vh - 72px);
  background: #fff;
}

.mbd-create-side {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--mbd-line);
  background: #fff;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.mbd-create-side-top {
  padding: 0 1.35rem 1.5rem;
}

.mbd-create-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--mbd-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mbd-create-exit:hover {
  color: var(--mbd-ink);
}

.mbd-create-side-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mbd-muted);
  letter-spacing: 0.04em;
}

.mbd-create-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.75rem;
}

.mbd-create-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.7rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: var(--mbd-ink);
  transition: background 0.15s ease;
}

a.mbd-create-nav-item:hover {
  background: #f7f7f7;
}

.mbd-create-nav-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mbd-create-nav-item.is-active {
  background: rgba(255, 106, 0, 0.08);
}

.mbd-create-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: #ddd;
  flex-shrink: 0;
}

.mbd-create-nav-item.is-active .mbd-create-nav-dot {
  background: var(--mbd-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.mbd-create-nav-item.is-done .mbd-create-nav-dot {
  background: #52c41a;
}

.mbd-create-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mbd-create-nav-text strong {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--mbd-ink);
}

.mbd-create-nav-item.is-active .mbd-create-nav-text strong {
  color: var(--mbd-orange);
}

.mbd-create-nav-text small {
  color: var(--mbd-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mbd-create-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  display: flex;
  justify-content: center;
}

.mbd-create-main-inner {
  width: 100%;
  max-width: 720px;
  padding: 2.5rem 2rem 4rem;
}

.mbd-create-h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--mbd-ink);
  letter-spacing: -0.02em;
}

.mbd-create-lead {
  margin: 0 0 1.5rem;
  color: var(--mbd-muted);
  font-size: 0.95rem;
}

.mbd-create-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.mbd-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mbd-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mbd-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.mbd-title-input,
.mbd-create-form .pw-title-input {
  border: 0 !important;
  border-bottom: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  padding: 0.65rem 0 !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.mbd-title-input:focus,
.mbd-create-form .pw-title-input:focus {
  border-bottom-color: var(--mbd-orange) !important;
  box-shadow: none !important;
}

.mbd-input,
.mbd-create-form .pw-input,
.mbd-create-form .form-control,
.mbd-create-form .form-select {
  border: 1px solid #e6e6e6;
  border-radius: var(--xh-radius-sm);
  padding: 0.7rem 0.85rem;
  background: #fff;
  box-shadow: none;
  color: var(--mbd-ink);
}

.mbd-create-form .form-control:focus,
.mbd-create-form .form-select:focus,
.mbd-create-form .pw-input:focus {
  border-color: var(--mbd-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.pw-desc-input {
  min-height: 360px;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  padding: 1rem 1.1rem !important;
  resize: vertical;
  border-radius: 0.65rem !important;
}

.mbd-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mbd-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: var(--xh-radius-pill);
  border: 1px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  color: #555;
  transition: all 0.15s ease;
}

.mbd-type-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mbd-type-pill:hover {
  border-color: #ccc;
}

.mbd-type-pill.is-selected {
  border-color: var(--mbd-orange);
  color: var(--mbd-orange);
  background: rgba(255, 106, 0, 0.06);
  font-weight: 600;
}

.mbd-details summary {
  cursor: pointer;
  color: var(--mbd-muted);
  font-size: 0.92rem;
}

.mbd-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mbd-line);
  border-radius: 0.65rem;
  overflow: hidden;
}

.mbd-file-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--mbd-line);
  font-size: 0.95rem;
}

.mbd-file-list li:last-child {
  border-bottom: 0;
}

.mbd-file-list li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbd-file-list li em {
  font-style: normal;
  color: var(--mbd-muted);
  font-size: 0.85rem;
}

.mbd-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e6e6e6;
  border-radius: var(--xh-radius-sm);
  padding: 0 0.85rem;
  max-width: 240px;
}

.mbd-price > span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mbd-ink);
}

.mbd-price .form-control,
.mbd-price .pw-price {
  border: 0 !important;
  box-shadow: none !important;
  font-size: 1.35rem !important;
  font-weight: 700;
  padding-left: 0 !important;
}

.mbd-switch {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--mbd-line);
  border-radius: 0.65rem;
  cursor: pointer;
}

.mbd-switch .form-check-input {
  width: 2.4rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

.mbd-switch strong {
  display: block;
  color: var(--mbd-ink);
}

.mbd-switch small {
  color: var(--mbd-muted);
}

.mbd-muted {
  color: var(--mbd-muted);
  margin: 0;
}

.mbd-create-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mbd-line);
}

.mbd-btn-ghost {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  padding: 0.55rem 0.2rem;
}

.mbd-btn-ghost:hover {
  color: var(--mbd-ink);
}

.mbd-btn-primary {
  border: 0;
  border-radius: var(--xh-radius-sm);
  padding: 0.7rem 1.6rem;
  background: var(--mbd-orange);
  color: #fff;
  font-weight: 650;
  font-size: 0.98rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mbd-btn-primary:hover {
  background: var(--mbd-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   移动端
   ============================================================ */
@media (max-width: 767.98px) {
  /* 移动端 hero 用更小的背景图，减少带宽 */
  .hero::before {
    background-image: url("../images/hero-bg-mobile.bd444d6c68b3.jpg");
  }

  /* —— 通用节奏 —— */
  body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* —— 顶部导航 —— */
  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar .nav-link {
    padding: 0.7rem 1rem;
    min-height: 44px; /* 触控目标 */
  }

  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  /* —— Hero —— */
  .hero {
    min-height: 60vh;
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.18;
    margin-bottom: 1rem !important;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem !important;
  }

  .hero .d-flex.flex-wrap .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    width: 100%;
    min-height: 48px;
  }

  .hero .d-flex.flex-wrap {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .hero .h3 {
    font-size: 1.35rem;
    margin-bottom: 0.1rem !important;
  }

  .hero .stat-label {
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  .hero .row.mt-5 {
    margin-top: 2rem !important;
    padding-top: 1rem !important;
  }

  /* —— 章节标题 + 操作按钮 —— */
  .section-title {
    font-size: 1.45rem;
    margin-bottom: 1rem;
  }

  .d-flex.justify-content-between.align-items-end {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .d-flex.justify-content-between.align-items-end > a {
    align-self: flex-start;
  }

  /* —— 卡片 —— */
  .card {
    border-radius: var(--xh-radius);
  }

  .card-img-top {
    height: 160px;
  }

  .card-img-top-sm {
    height: 130px;
  }

  .product-card-title {
    font-size: 14px;
  }

  .product-card .card-text {
    font-size: 12px;
  }

  .product-card .price-tag {
    font-size: 14px;
  }

  .price-tag {
    font-size: 1.05rem;
  }

  .avatar {
    width: 44px;
    height: 44px;
  }

  /* —— 创作者分类 2 列卡片 —— */
  .category-card {
    padding: 0.85rem 0.5rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-card h6 {
    font-size: 0.85rem;
  }

  /* —— section 间距 —— */
  section.container.py-5,
  section.bg-soft.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .row.g-4 {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }

  /* —— 三种变现方式 —— */
  .card.p-4 {
    padding: 1.25rem !important;
  }

  /* —— 创作者横幅 —— */
  .cover-banner {
    height: 200px;
  }

  .cover-banner-content {
    padding: 1rem 1.1rem;
  }

  .cover-banner-content h1,
  .cover-banner-content h2 {
    font-size: 1.35rem;
  }

  .creator-info-card {
    padding: 1rem;
  }

  .creator-info-avatar {
    margin-top: -3rem;
  }

  .avatar-lg {
    width: 72px;
    height: 72px;
  }

  .avatar-xl {
    width: 96px;
    height: 96px;
  }

  /* —— 支付方式选择卡：触控友好 —— */
  .payment-method-label {
    padding: 1rem 1rem;
    min-height: 56px;
    align-items: center;
  }

  .payment-method-label .form-check-label,
  .payment-method-label > span {
    font-size: 1rem;
  }

  /* —— Footer —— */
  footer {
    text-align: left;
  }

  footer .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  footer .row.g-4 {
    --bs-gutter-y: 1.25rem;
  }

  footer h5 {
    font-size: 1.1rem;
  }

  footer h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* —— 按钮宽度 —— */
  .btn-lg {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-sm {
    min-height: 36px;
  }

  /* —— alerts —— */
  .alert {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  /* —— 表单控件触控高度 —— */
  .form-control,
  .form-select {
    min-height: 46px;
  }

  /* 移动端禁用 sticky 购买卡/表单卡，避免遮挡滚动 */
  .sticky-top {
    position: static !important;
  }

  /* 导航胶囊：移动端触控高度 */
  .nav-pills .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* 发布向导步骤条：横向滚动，避免撑破页面 */
  .wizard-steps-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .wizard-steps-list .wizard-step {
    flex-shrink: 0;
    padding: 0.75rem 0.85rem;
  }

  /* —— 表格横向滚动（移动端） —— */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 720px;
  }

  /* —— 发布向导 —— */
  .wizard-step-label {
    font-size: 0.72rem;
  }

  .wizard-step-dot {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .mbd-create {
    flex-direction: column;
  }

  .mbd-create-side {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--mbd-line);
    padding-bottom: 0.75rem;
  }

  .mbd-create-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .mbd-create-nav-item {
    min-width: 8.5rem;
  }

  .mbd-create-nav-text small {
    display: none;
  }

  .mbd-create-main-inner {
    padding: 1.5rem 1.15rem 3rem;
  }

  .mbd-field-grid {
    grid-template-columns: 1fr;
  }

  .pw-desc-input {
    min-height: 280px;
  }
}

/* —— 订单进度指示器 —— */
.order-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-steps::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: #e9e6f0;
  z-index: 0;
}

.order-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.order-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e9e6f0;
  color: var(--xh-muted);
  font-family: var(--xh-font-numeric);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.order-step-label {
  display: block;
  font-size: 0.8rem;
  color: var(--xh-muted);
  font-weight: 600;
}

.order-step.is-done .order-step-dot {
  border-color: var(--xh-success);
  background: var(--xh-success);
  color: #fff;
}

.order-step.is-done .order-step-label {
  color: #0a6e50;
}

.order-step.is-active .order-step-dot {
  border-color: var(--xh-primary);
  background: var(--xh-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--xh-primary-soft);
}

.order-step.is-active .order-step-label {
  color: var(--xh-primary);
  font-weight: 700;
}

/* —— 桌面端额外打磨 —— */
@media (min-width: 768px) {
  .payment-method-label {
    padding: 1rem 1.1rem;
  }
}
