/* ============================================================
   基础设计系统：全站统一风格（PC / H5 / 管理后台共用）
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --brand-100: #dbeafe;
  --success: #16a34a;
  --success-bg: #ecfdf3;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0891b2;
  --text: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --text-4: #9ca3af;
  --border: #e5e7eb;
  --border-2: #d1d5db;
  --bg: #f5f7fa;
  --bg-2: #fafbfc;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --header-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; }
.row.between { justify-content: space-between; }
.row.center { align-items: center; }
.col { display: flex; flex-direction: column; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--text-3); }
.muted-2 { color: var(--text-4); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }

/* ---------- 卡片 ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hd { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-hd h3 { font-size: 15px; }
.card-bd { padding: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--border-2);
  background: var(--white); color: var(--text-2); cursor: pointer; font-size: 14px;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-outline-danger { color: var(--danger); border-color: #fecaca; }
.btn-outline-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field-label .req { color: var(--danger); margin-right: 2px; }
.input, .textarea, .select {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-2);
  border-radius: 6px; background: var(--white); outline: none; transition: border-color .15s;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.input:disabled { background: var(--bg-2); }
.form-inline { display: flex; gap: 8px; }
.err-msg { color: var(--danger); font-size: 12px; margin-top: 4px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; background: var(--bg); color: var(--text-3); border: 1px solid var(--border);
}
.badge-primary { background: var(--brand-light); color: var(--brand); border-color: var(--brand-100); }
.badge-success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; }
.badge-warning { background: var(--warning-bg); color: #b45309; border-color: #fde68a; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.badge-info { background: #ecfeff; color: var(--info); border-color: #a5f3fc; }

/* ---------- 标签 ---------- */
.tag { display: inline-block; padding: 2px 8px; margin: 0 6px 6px 0; font-size: 12px; color: var(--text-3); background: var(--bg); border-radius: 4px; }
.tag.active { background: var(--brand-light); color: var(--brand); }

/* ---------- 表格 ---------- */
/* 表格滚动容器：列多时只让表格自己横向滚，不要把整页撑出横向滚动条 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-3); background: var(--bg-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: var(--bg-2); }

/* ---------- 空状态 / 加载 ---------- */
.empty { padding: 48px 16px; text-align: center; color: var(--text-4); }
.empty .ico { font-size: 40px; margin-bottom: 8px; opacity: .5; }
.loading { padding: 40px; text-align: center; color: var(--text-4); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 0; }
.pager .btn { min-width: 34px; height: 34px; padding: 0 10px; }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .info { color: var(--text-3); font-size: 13px; margin-left: 8px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 460px; max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-hd { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal-bd { padding: 20px; }
.modal-ft { padding: 12px 20px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { cursor: pointer; color: var(--text-4); font-size: 20px; line-height: 1; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 10px 18px; border-radius: 6px; background: rgba(17, 24, 39, .92); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); animation: fadeIn .18s; max-width: min(86vw, 420px); overflow-wrap: break-word; }
.toast.success { background: #16a34a; } .toast.error { background: #dc2626; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 价格 ---------- */
.price { color: var(--danger); font-weight: 600; }
.price .sym { font-size: .78em; margin-right: 1px; }
.price-lg { font-size: 26px; }

/* ---------- 上传 ---------- */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.uploader .item { position: relative; width: 92px; height: 92px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.uploader .item img { width: 100%; height: 100%; object-fit: cover; }
.uploader .item .del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; }
.uploader .add { width: 92px; height: 92px; border: 1px dashed var(--border-2); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-4); cursor: pointer; font-size: 12px; }
.uploader .add:hover { border-color: var(--brand); color: var(--brand); }
.uploader .add .plus { font-size: 22px; line-height: 1; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; }
.steps .step { display: flex; align-items: center; color: var(--text-4); font-size: 13px; }
.steps .step .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-right: 6px; }
.steps .step.done { color: var(--text-2); } .steps .step.done .dot { background: var(--success); }
.steps .step.cur { color: var(--brand); font-weight: 600; } .steps .step.cur .dot { background: var(--brand); }
.steps .line { flex: 1; height: 1px; background: var(--border); margin: 0 10px; min-width: 20px; }
.steps .line.done { background: var(--success); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline .item { position: relative; padding-bottom: 16px; }
.timeline .item::before { content: ''; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); border: 2px solid var(--white); }
.timeline .item.cur::before { background: var(--brand); }

/* ---------- 头像 ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }

/* ---------- 框架协议签署 + 订单居间条款（window.FA 组件） ---------- */
.fa-terms {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.fa-terms-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--white);
}
.fa-terms-body {
  max-height: 220px; overflow-y: auto; padding: 10px 12px; background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.fa-term { margin-bottom: 10px; }
.fa-term:last-child { margin-bottom: 0; }
.fa-term-t { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.fa-term-x { font-size: 12px; line-height: 1.7; color: var(--text-3); }
.fa-tip { font-size: 12px; color: var(--warning); margin-top: 8px; }
.fa-check {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); background: var(--white);
  font-size: 13px; line-height: 1.6; color: var(--text-2); cursor: pointer;
}
.fa-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; cursor: pointer; }
.fa-check a { color: var(--brand); }
/* 未勾选时的禁用态：既要 disabled 属性，也要视觉反馈 */
.btn.is-disabled,
button.is-disabled:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none;
}
.fa-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; line-height: 20px;
}
.fa-badge.ok { background: var(--success-bg); color: var(--success); }
.fa-badge.warn { background: var(--warning-bg); color: #b45309; }

/* ---------- 添加到手机桌面指引（window.IG 组件） ---------- */
.ig-page { padding-bottom: 20px; }
.ig-hero { text-align: center; padding: 8px 0 18px; }
.ig-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.ig-hero-t { font-size: 18px; font-weight: 600; margin-top: 10px; color: var(--text); }
.ig-hero-s { font-size: 13px; color: var(--text-3); margin-top: 4px; }
/*
 * 安卓 APK 直下卡片：放进「安卓手机」面板顶部，排在「添加到桌面」步骤之前。
 * 能装 App 就不必让用户走浏览器菜单，这是安卓用户最短的路径。
 */
.ig-app {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius);
  border: 1px solid var(--brand); background: var(--bg-2);
}
.ig-app-logo { flex: none; width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow); }
.ig-app-b { flex: 1; min-width: 0; }
.ig-app-t { font-size: 15px; font-weight: 600; color: var(--text); }
.ig-app-d { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.ig-app-btn { flex: none; }
/* 窄屏（小屏安卓机）按钮换到下一行，避免把标题挤成两三个字一行 */
@media (max-width: 420px) {
  .ig-app { flex-wrap: wrap; }
  .ig-app-btn { width: 100%; }
}
.ig-qr-box {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2);
}
.ig-qr {
  flex: none; background: var(--white); padding: 8px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ig-qr img { display: block; width: 180px; height: 180px; }
.ig-url { flex: 1; min-width: 220px; }
.ig-url-t { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.ig-url-v {
  font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px;
}
.ig-url-btns { display: flex; gap: 8px; margin-top: 8px; }
.ig-tabs { display: flex; gap: 8px; margin: 18px 0 12px; }
.ig-tab {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; cursor: pointer; background: var(--white); color: var(--text-2);
}
.ig-tab.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.ig-panel.hide { display: none; }
.ig-step { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.ig-step:last-child { border-bottom: none; }
.ig-step-i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 13px; font-weight: 600; text-align: center; line-height: 26px;
}
.ig-step-t { font-size: 14px; font-weight: 600; color: var(--text); }
.ig-step-d { font-size: 13px; line-height: 1.7; color: var(--text-3); margin-top: 2px; }
.ig-note {
  font-size: 13px; line-height: 1.7; padding: 10px 12px; border-radius: var(--radius);
  background: var(--brand-light); color: var(--text-2); margin: 10px 0;
}
.ig-note.warn { background: var(--warning-bg); color: #b45309; }
.ig-note.ok { background: var(--success-bg); color: var(--success); }
.ig-tips {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-2);
}
.ig-tips-t { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ig-tip { font-size: 12px; line-height: 1.8; color: var(--text-3); }

/* ---- 下单页：同游戏其他服务快速切换 ----
   买家在下单页发现「这款不合适」时直接换，已填内容会带过去。 */
.gf-sibling { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.sib-chip {
  flex: none; max-width: 190px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-2); cursor: pointer; transition: .15s;
}
.sib-chip:hover { border-color: var(--brand); background: var(--brand-light); }
.sib-chip.active { border-color: var(--brand); background: var(--brand-light); }
.sib-t {
  display: block; font-size: 13px; color: var(--text); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sib-p { display: block; font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 600; }
/* 表单模板编辑这类内容较宽的弹窗：默认 460px 会把多列挤成一团 */
.modal.wide { max-width: 1000px; }

/* ---- 协议确认弹窗（注册 / 下单 / 发单 / 接单）----
   协议要能就地读完：只给一个勾选框加外链，很难证明用户在勾选前确实知情。
   因此正文可展开，弹窗内滚动，不跳页、不依赖用户自己去点链接。 */
.ag-dlg { max-width: 620px; display: flex; flex-direction: column; }
.ag-dlg .modal-bd { max-height: 58vh; overflow: auto; }
.ag-dlg-tip {
  padding: 10px 12px; margin-bottom: 12px; border-radius: var(--radius);
  background: #fff7ed; color: #9a3412; font-size: 12.5px; line-height: 1.7;
}
.ag-row { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.ag-row-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: var(--bg-2, #f9fafb);
}
.ag-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; flex-wrap: wrap; }
.ag-check .ck { width: 16px; height: 16px; flex: none; }
.ag-name { font-weight: 600; }
.ag-toggle { color: var(--brand); cursor: pointer; white-space: nowrap; font-size: 12.5px; }
.ag-row-bd { max-height: 40vh; overflow: auto; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.ag-all {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer;
  border: 1px dashed var(--border); border-radius: var(--radius); font-size: 13px;
}
.ag-doc { font-size: 13px; line-height: 1.9; color: #374151; }
.ag-doc h1 { font-size: 15.5px; margin: 0 0 10px; }
.ag-doc h2 { font-size: 14px; margin: 14px 0 6px; }
.ag-doc h3 { font-size: 13.5px; margin: 12px 0 4px; }
.ag-doc p { margin: 6px 0; }
.ag-doc ul { margin: 6px 0; padding-left: 20px; }
.ag-doc li { margin: 3px 0; }
.ag-doc blockquote { margin: 8px 0; padding: 8px 12px; background: #f9fafb; border-left: 3px solid var(--border); color: #4b5563; }
.ag-read-link { color: var(--brand); text-decoration: underline; }

/* ---- 协议阅读器（浮层全文）----
   在发布 / 下单这类长表单里跳路由读协议 = 回来时表单全空。
   阅读器是浮层：不改 hash、不卸载页面、滚动位置原样保留，
   读完点「我已阅读」自动勾上对应项，直接接着填。必须盖在确认弹窗之上。 */
.ag-reader-mask { z-index: 1100; padding: 12px; }
.ag-reader { max-width: 780px; height: 88vh; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.ag-reader .modal-hd { flex: none; }
.ag-reader-title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ag-reader-ver { font-size: 11px; }
.ag-reader-bd { flex: 1; overflow: auto; padding: 16px 20px; background: #fff; -webkit-overflow-scrolling: touch; }
.ag-reader-doc { font-size: 13.5px; line-height: 1.95; color: var(--text-2, #374151); }
.ag-reader-doc h1 { font-size: 17px; margin: 0 0 12px; }
.ag-reader-doc h2 { font-size: 15px; margin: 16px 0 8px; }
.ag-reader-ft { flex: none; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-reader-ft .grow { flex: 1; }
.ag-reader-loading, .ag-reader-err { text-align: center; padding: 60px 0; color: #94a3b8; font-size: 13px; }
.ag-reader-err { color: var(--text-2, #64748b); }

/* ---- 发布服务页：折叠区 / 必填引导 ----
   发布页字段多但真正必填的只有六项，把九成卖家用不上的高级设置收进折叠区，
   首屏从「看着就累」变成「三步填完」。 */
.pub-fold { border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 0; background: #fff; overflow: hidden; }
.pub-fold-lg { margin-top: 16px; }
.pub-fold-hd {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 14px; cursor: pointer; background: var(--bg-2, #f9fafb); user-select: none;
}
.pub-fold-hd:hover { background: #f4f7fb; }
.pub-fold-hd:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pub-fold-t { font-size: 13.5px; font-weight: 600; }
.pub-fold-arrow { margin-left: auto; color: #94a3b8; transition: transform .15s; }
.pub-fold.open .pub-fold-arrow { transform: rotate(180deg); }
.pub-fold-bd { padding: 12px 14px; border-top: 1px solid var(--border); }
.pub-sub { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--border); }
.pub-sub:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.pub-sub-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pub-sub-hd b { font-size: 13px; }
.pub-guide {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px;
  border-radius: var(--radius); background: #eff6ff; border: 1px solid #d7e5fd; font-size: 12.5px;
}
.pub-guide.ok { background: #f0fdf4; border-color: #bbf7d0; }
.pub-guide-note { color: #1d4ed8; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pub-guide-prog { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.btn-xs { padding: 2px 8px; font-size: 11.5px; border-radius: 4px; }

/* 计价单位选择器：单位跟着游戏走，选中后下方给一句人话说明 */
.unit-pick { display: flex; flex-wrap: wrap; }
.unit-pick .unit-chip { cursor: pointer; user-select: none; }
.unit-pick .unit-chip[data-rec="1"] { border-color: #93b4f7; }
.unit-pick .unit-chip i { font-style: normal; font-size: 11px; opacity: .7; }
.unit-pick .unit-chip.active i { opacity: .85; }
.unit-tip { margin-top: 6px; min-height: 16px; line-height: 1.5; }
.admin-unit-pick .unit-chip { padding: 7px 13px; font-size: 13px; margin: 0 8px 8px 0; }
/* 自定义单位入口：视觉上做成「虚线添加」而不是一个候选词 */
.unit-pick .unit-custom-btn { border-style: dashed; color: var(--primary, #2563eb); }
.unit-pick .unit-chip[data-cus="1"] { border-color: #c4b5fd; }
.unit-pick .unit-chip[data-cus="1"].active { background: #f5f3ff; }

/* 客服工单：会话式对话流 */
.tk-wrap { display: flex; gap: 12px; align-items: flex-start; }
.tk-conv { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: var(--bg, #fff); overflow: hidden; }
.tk-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f7f8fa; min-height: 320px; max-height: 60vh; }
.tk-msg { display: flex; margin-bottom: 12px; }
.tk-msg.me { justify-content: flex-end; }
.tk-bubble { max-width: 74%; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.tk-msg.me .tk-bubble { background: #e8f0fe; border-color: #c6dafc; }
.tk-msg.sys { justify-content: center; }
.tk-msg.sys .tk-bubble { background: transparent; border: none; color: #8b8b8b; font-size: 12px; }
.tk-who { font-size: 11.5px; color: #888; margin: 0 6px 3px; }
.tk-editor { border-top: 1px solid var(--border); padding: 10px; background: #fff; }
.tk-editor .row { align-items: flex-end; }
.tk-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tk-side { width: 300px; flex: none; }
@media (max-width: 1100px) { .tk-wrap { flex-direction: column; } .tk-side { width: 100%; } }
/* 列表行内联回复 */
.tk-inline { background: #fafbfc; border-top: 1px dashed var(--border); }
.tk-inline .row { align-items: flex-start; padding: 8px 0; }
.tk-preview { font-size: 12.5px; color: #777; line-height: 1.6; }
.h5-pub-sec { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 14px; }
.h5-pub-sec:last-of-type { border-bottom: none; padding-bottom: 0; }
.h5-pub-hd { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }

/* ============ 订单轮番播报（首页成交氛围条，匿名：仅游戏/金额/状态） ============ */
.bc-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; margin-bottom: 16px;
  background: linear-gradient(90deg, #fff7ed, #fef3c7); border: 1px solid #fde68a; border-radius: var(--radius, 10px); overflow: hidden; }
.bc-ico { flex: none; font-size: 15px; }
.bc-title { flex: none; font-size: 13px; font-weight: 700; color: #b45309; }
.bc-viewport { flex: 1; height: 40px; overflow: hidden; position: relative; }
.bc-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #78350f;
  opacity: 0; transform: translateY(100%); transition: opacity .45s ease, transform .45s ease; white-space: nowrap; overflow: hidden; }
.bc-item.on { opacity: 1; transform: translateY(0); }
.bc-item.off { opacity: 0; transform: translateY(-100%); }
.bc-item b { color: #dc2626; font-weight: 700; }
.bc-item .bc-time { margin-left: auto; font-size: 12px; color: #a8a29e; flex: none; }

/* ============ 公告海报（对标代练通/代练妈妈公告版式） ============ */
.np-poster { border: 1px solid var(--border); border-radius: var(--radius, 10px); overflow: hidden; background: #fff; }
.np-banner { position: relative; padding: 26px 24px 22px; color: #fff;
  background: linear-gradient(120deg, #0f1f4b 0%, #1e3a8a 55%, #7f1d1d 130%); }
.np-banner::after { content: ''; position: absolute; right: 18px; top: 14px; width: 74px; height: 74px; border-radius: 50%;
  border: 5px solid rgba(239, 68, 68, .85); box-shadow: 0 0 18px rgba(239, 68, 68, .35) inset; opacity: .5; transform: rotate(-12deg); }
.np-brand { font-size: 12px; letter-spacing: .35em; opacity: .75; margin-bottom: 8px; }
.np-title { font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: .02em; position: relative; z-index: 1; }
.np-meta { display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: #f8fafc; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: #6b7280; }
.np-meta .np-tag { background: #dc2626; color: #fff; border-radius: 4px; padding: 1px 8px; font-size: 11.5px; font-weight: 600; }
.np-body { padding: 22px 26px; font-size: 14px; line-height: 2.05; color: #1f2937; }
.np-body p { margin: 0 0 12px; text-indent: 2em; }
.np-body p.np-salute { text-indent: 0; font-weight: 700; }
.np-body p b, .np-body p strong { color: #dc2626; }
.np-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #f8fafc;
  border-top: 1px solid var(--border); font-size: 12px; color: #9ca3af; letter-spacing: .12em; }
@media (max-width: 640px) { .np-title { font-size: 19px; } .np-body { padding: 16px; font-size: 13.5px; } }

/* ============ 公告海报轮播（750px 图片公告） ============ */
.ns-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #0b1020; margin-bottom: 10px; }
.ns-slide { display: none; }
.ns-slide.on { display: block; animation: ns-fade .45s ease; }
.ns-slide img { width: 100%; display: block; cursor: zoom-in; }
@keyframes ns-fade { from { opacity: .35; } to { opacity: 1; } }
.ns-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: rgba(15, 23, 42, .45); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ns-nav:hover { background: rgba(15, 23, 42, .7); }
.ns-prev { left: 10px; } .ns-next { right: 10px; }
.ns-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; gap: 6px; justify-content: center; }
.ns-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; transition: background .15s, width .15s; }
.ns-dot.on { background: #fff; width: 18px; border-radius: 4px; }
/* 大图查看 */
.ns-lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(2, 6, 23, .82); display: flex;
  align-items: flex-start; justify-content: center; overflow: auto; padding: 24px 12px; }
.ns-lightbox-body { position: relative; width: 100%; max-width: 750px; }
.ns-lightbox-body img { width: 100%; display: block; border-radius: 10px; }
.ns-lightbox-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; color: #e2e8f0; font-size: 14px; }
.ns-lightbox-link { color: #93c5fd; text-decoration: none; white-space: nowrap; }
.ns-lightbox-close { position: absolute; top: -14px; right: -6px; width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(15, 23, 42, .8); color: #fff; font-size: 20px; cursor: pointer; }
@media (hover: none) { .ns-nav { display: none; } } /* 触屏端隐藏箭头，用滑动切换 */

/* 公告列表（卡片化） */
.nt-card { display: block; padding: 13px 16px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius, 10px);
  background: #fff; transition: border-color .15s, box-shadow .15s; }
.nt-card:hover { border-color: var(--brand, #2563eb); box-shadow: 0 2px 10px rgba(37, 99, 235, .08); }
.nt-card .nt-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.nt-card .nt-title { font-weight: 600; font-size: 14px; color: #111827; }
.nt-card .nt-sum { font-size: 12.5px; color: #6b7280; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card .nt-date { margin-left: auto; flex: none; font-size: 12px; color: #9ca3af; }

/* ============ 会员 ============ */
.vip-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 700;
  background: linear-gradient(120deg, #f59e0b, #d97706); color: #fff; vertical-align: 2px; }
.vip-hero { border-radius: var(--radius, 10px); padding: 26px 24px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(120deg, #1c1407 0%, #78350f 55%, #b45309 130%); position: relative; overflow: hidden; }
.vip-hero::after { content: 'VIP'; position: absolute; right: 14px; top: -18px; font-size: 110px; font-weight: 900; font-style: italic;
  color: rgba(245, 158, 11, .14); letter-spacing: -.02em; }
.vip-hero h2 { font-size: 22px; margin-bottom: 6px; color: #fde68a; }
.vip-hero .vip-state { font-size: 13px; opacity: .9; }
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .vip-plans { grid-template-columns: 1fr; } }
.vip-plan { border: 2px solid var(--border); border-radius: var(--radius, 10px); padding: 18px 16px; text-align: center; background: #fff;
  cursor: pointer; transition: border-color .15s, transform .15s; position: relative; }
.vip-plan:hover { border-color: #f59e0b; transform: translateY(-2px); }
.vip-plan.sel { border-color: #f59e0b; box-shadow: 0 4px 16px rgba(245, 158, 11, .18); }
.vip-plan .vp-name { font-weight: 700; font-size: 15px; }
.vip-plan .vp-days { font-size: 12px; color: #9ca3af; margin: 2px 0 8px; }
.vip-plan .vp-price { font-size: 24px; font-weight: 800; color: #d97706; }
.vip-plan .vp-price small { font-size: 12px; font-weight: 400; color: #9ca3af; }
.vip-plan .vp-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #dc2626; color: #fff;
  font-size: 11px; padding: 1px 10px; border-radius: 8px; white-space: nowrap; }
.vip-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .vip-benefits { grid-template-columns: 1fr; } }
.vip-bf { border: 1px solid var(--border); border-radius: var(--radius, 10px); padding: 14px 16px; background: #fff; }
.vip-bf h4 { font-size: 14px; margin-bottom: 8px; }
.vip-bf li { font-size: 13px; color: #4b5563; line-height: 2; list-style: none; padding-left: 18px; position: relative; }
.vip-bf li::before { content: '✓'; position: absolute; left: 0; color: #d97706; font-weight: 700; }

/* ============================================================
 * 门户装修区块（后台编排 → 前台渲染，PC / H5 共用）
 * ============================================================ */
.pb-wrap { margin-bottom: 16px; }
.pb-sec { background: #fff; border: 1px solid var(--border); border-radius: var(--radius, 10px);
  padding: 16px; margin-bottom: 14px; }
.pb-sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pb-sec-hd h3 { font-size: 16px; margin: 0; }
.pb-more { font-size: 12px; color: var(--brand, #2563eb); }
.pb-bg-gray { background: #f8fafc; }
.pb-bg-brand { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; }
.pb-bg-brand .pb-sec-hd h3, .pb-bg-brand .pb-rich { color: #fff; }

/* 轮播横幅 */
.pb-banner { position: relative; overflow: hidden; border-radius: var(--radius, 10px);
  background: linear-gradient(135deg, #1e3a8a, #3b82f6); margin-bottom: 14px; }
.pb-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; opacity: 0; transition: opacity .5s; text-decoration: none; }
.pb-slide.active { opacity: 1; }
.pb-slide-txt { color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.pb-dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; }
.pb-dots i { display: inline-block; width: 16px; height: 4px; margin: 0 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .5); }
.pb-dots i.on { background: #fff; }

/* 金刚区 / 分类导航 */
.pb-nav-row { display: grid; gap: 10px; }
.pb-nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px;
  border-radius: 10px; background: #f8fafc; text-decoration: none; color: inherit; }
.pb-nav-item:hover { background: #eef2ff; }
.pb-ico { font-size: 22px; line-height: 1; }
/* 图标图片：运营上传的方图，与 emoji 二选一；圆形裁切，尺寸与 emoji 视觉对齐 */
.pb-ico img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ---- 单图上传控件（后台弹窗 / 装修区块编辑器共用）---- */
.imgf { display: block; }
.imgf .imgf-pv { display: block; max-width: 100%; max-height: 200px; border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--border); }
/* 装修列表行内的紧凑版：只留缩略图 + 一个上传按钮，别把行撑高 */
.imgf-sm .imgf-pv { max-height: 46px; margin-bottom: 4px; }
.imgf-sm [data-imgf-clear] { display: none; }
.imgf-sm .small.muted { display: none; }

/* 商品卡 */
.pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .pb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pb-grid { grid-template-columns: repeat(2, 1fr); } }
.pb-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
  text-decoration: none; color: inherit; display: block; }
.pb-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.pb-cover { height: 128px; background: #f1f5f9 center/cover no-repeat; }
.pb-card-bd { padding: 10px; }
.pb-title { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; margin-bottom: 6px; }
.pb-vip { color: #d97706; font-size: 11px; }

/* 公告行 */
.pb-notice { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border);
  text-decoration: none; color: inherit; }
.pb-notice:last-child { border-bottom: 0; }
.pb-notice-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pb-nbadge { background: #fee2e2; color: #dc2626; }

/* 榜单 */
.pb-rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border);
  text-decoration: none; color: inherit; }
.pb-rank:last-child { border-bottom: 0; }
.pb-no { width: 26px; text-align: center; font-weight: 700; }

/* 富文本 */
.pb-rich { font-size: 14px; line-height: 2; }

/* 活动条 */
.pb-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; font-size: 14px; }

/* ============================================================
 * 帮助中心：就地展开的问答（HB 组件）
 * ============================================================ */
.hb-group { margin-bottom: 14px; }
.hb-gt { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.hb-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.hb-q { display: flex; align-items: center; padding: 12px 14px; cursor: pointer; font-size: 14px; user-select: none; }
.hb-q:hover { background: #f8fafc; }
.hb-arrow { transition: transform .2s; color: #9ca3af; }
.hb-item[data-open="1"] .hb-arrow { transform: rotate(90deg); }
.hb-a { display: none; padding: 0 14px 12px; border-top: 1px dashed var(--border); }
.hb-item[data-open="1"] .hb-a { display: block; }
.hb-p { margin: 10px 0; font-size: 13px; line-height: 1.9; color: #374151; }
.hb-steps { margin: 8px 0; }
.hb-step { display: flex; gap: 8px; font-size: 13px; line-height: 1.9; color: #374151; }
.hb-step i { flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%;
  background: #fee2e2; color: #dc2626; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 4px; }
.hb-em { color: #dc2626; }
.hb-code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.hb-a-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px;
  padding-top: 8px; border-top: 1px solid var(--border); }

/* 首页内嵌 FAQ（装修区块里的常见问题） */
.pb-faq { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; background: #fff; overflow: hidden; }
.pb-faq-q { display: flex; align-items: center; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.pb-faq-a { display: none; padding: 0 12px 10px; font-size: 13px; line-height: 1.9; color: #4b5563; }
.pb-faq.open .pb-faq-a { display: block; }
.pb-faq.open .pb-arrow { transform: rotate(90deg); }
.pb-arrow { transition: transform .2s; color: #9ca3af; }
.pb-faq-g { margin-bottom: 10px; }
.pb-faq-gt { margin: 6px 0; }
