/* ============================================================================
 * portal.css —— 五通易更名官网 · 门户业务层样式（统一前缀 wp-）
 * ============================================================================
 * 设计：深色科技风 / 玻璃拟态 / 霓虹渐变 / 卡片悬浮 / 按钮微交互 / 移动端友好。
 * 完全自包含，不依赖 main.css；所有类以 wp- 开头，避免与官网其它样式冲突。
 * 仅对 .wp-root 及其子元素做重置，Toast / Modal 挂在 body 上单独定义。
 * ==========================================================================*/

:root {
  --wp-bg: #070b16;
  --wp-bg-2: #0b1224;
  --wp-panel: rgba(20, 30, 54, 0.62);
  --wp-panel-2: rgba(28, 40, 70, 0.55);
  --wp-border: rgba(120, 160, 230, 0.16);
  --wp-border-strong: rgba(120, 200, 255, 0.36);
  --wp-text: #e8f0ff;
  --wp-muted: #8a9bc0;
  --wp-dim: #5d6f96;
  --wp-cyan: #37e6c9;
  --wp-blue: #4d8dff;
  --wp-purple: #9a6bff;
  --wp-pink: #ff6ba8;
  --wp-green: #46e39b;
  --wp-red: #ff6b6b;
  --wp-amber: #ffc46b;
  --wp-grad: linear-gradient(135deg, #37e6c9 0%, #4d8dff 52%, #9a6bff 100%);
  --wp-grad-soft: linear-gradient(135deg, rgba(55, 230, 201, .16), rgba(154, 107, 255, .16));
  --wp-radius: 16px;
  --wp-radius-sm: 10px;
  --wp-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  --wp-glow: 0 0 0 1px rgba(80, 220, 220, .18), 0 12px 40px rgba(35, 130, 220, .18);
  --wp-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wp-mono: "SFMono-Regular", "Consolas", "Cascadia Code", "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------------------
 * 作用域内重置（不影响 main.css）
 * ------------------------------------------------------------------------- */
.wp-root,
.wp-root *,
.wp-root *::before,
.wp-root *::after { box-sizing: border-box; }

.wp-root {
  color: var(--wp-text);
  font-family: var(--wp-font);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  width: 100%;
  min-height: 200px;
  animation: wp-fade-in .35s ease both;
}
.wp-root h2, .wp-root h3, .wp-root p, .wp-root ul { margin: 0; }
.wp-root ul { padding: 0; list-style: none; }
.wp-root button, .wp-root input, .wp-root select, .wp-root textarea { font-family: inherit; }
.wp-root [hidden] { display: none !important; }
.wp-root code, .wp-root .wp-mono { font-family: var(--wp-mono); }

/* ---------------------------------------------------------------------------
 * 动画
 * ------------------------------------------------------------------------- */
@keyframes wp-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wp-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wp-spin { to { transform: rotate(360deg); } }
@keyframes wp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes wp-scan { 0% { top: 4%; } 100% { top: 92%; } }
@keyframes wp-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---------------------------------------------------------------------------
 * 通用：玻璃卡片 / 徽标 / 按钮 / 表单 / 表格 / 状态
 * ------------------------------------------------------------------------- */
.wp-glass {
  background: var(--wp-panel);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--wp-shadow);
  position: relative;
  overflow: hidden;
}
.wp-glass::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 220, 255, .5), transparent);
  opacity: .7;
}
.wp-card { padding: 20px 22px; margin-bottom: 18px; }
.wp-card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.wp-card-hover:hover { transform: translateY(-4px); border-color: var(--wp-border-strong); box-shadow: var(--wp-glow); }
.wp-card-title { font-size: 16px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wp-card-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--wp-grad); }
.wp-sub-title { margin-top: 22px; }

.wp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.wp-badge-live { color: var(--wp-green); background: rgba(70, 227, 155, .1); border-color: rgba(70, 227, 155, .3); }
.wp-badge-demo { color: var(--wp-blue); background: rgba(77, 141, 255, .1); border-color: rgba(77, 141, 255, .3); }
.wp-badge-warn { color: var(--wp-amber); background: rgba(255, 196, 107, .12); border-color: rgba(255, 196, 107, .32); }
.wp-badge-info, .wp-badge-success { color: var(--wp-cyan); background: rgba(55, 230, 201, .1); border-color: rgba(55, 230, 201, .3); }

.wp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--wp-radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  border: 1px solid transparent; color: var(--wp-text);
  background: var(--wp-panel-2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease, opacity .18s ease;
  white-space: nowrap; user-select: none;
}
.wp-btn:hover:not(:disabled) { transform: translateY(-2px); }
.wp-btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.wp-btn:disabled, .wp-btn.wp-is-loading { opacity: .55; cursor: not-allowed; }
.wp-btn-primary { background: var(--wp-grad); color: #06121a; border-color: rgba(255, 255, 255, .18); box-shadow: 0 8px 24px rgba(55, 160, 220, .28); }
.wp-btn-primary:hover:not(:disabled) { box-shadow: 0 12px 32px rgba(55, 200, 220, .45); filter: brightness(1.08); }
.wp-btn-soft { background: rgba(77, 141, 255, .14); border-color: rgba(77, 141, 255, .34); color: #bcd4ff; }
.wp-btn-soft:hover:not(:disabled) { background: rgba(77, 141, 255, .24); box-shadow: 0 8px 22px rgba(77, 141, 255, .22); }
.wp-btn-ghost { background: transparent; border-color: var(--wp-border); color: var(--wp-muted); }
.wp-btn-ghost:hover:not(:disabled) { color: var(--wp-text); border-color: var(--wp-border-strong); }
.wp-btn-danger { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.wp-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.wp-btn-block { width: 100%; }
.wp-btn.wp-is-loading::after {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: wp-spin .7s linear infinite;
}

.wp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wp-label { font-size: 12px; color: var(--wp-muted); font-weight: 600; letter-spacing: .3px; }
.wp-label i { color: var(--wp-pink); font-style: normal; }
.wp-input, .wp-select, .wp-textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--wp-radius-sm);
  background: rgba(8, 14, 28, .62); border: 1px solid var(--wp-border);
  color: var(--wp-text); font-size: 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wp-input::placeholder, .wp-textarea::placeholder { color: var(--wp-dim); }
.wp-input:focus, .wp-select:focus, .wp-textarea:focus {
  border-color: var(--wp-cyan); box-shadow: 0 0 0 3px rgba(55, 230, 201, .14); background: rgba(10, 18, 34, .85);
}
.wp-select option { background: #0b1224; color: var(--wp-text); }
.wp-input-sm { padding: 6px 8px; font-size: 12px; }
.wp-field-inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.wp-field-inline .wp-label { flex: 0 0 88px; }
.wp-field-inline .wp-input, .wp-field-inline .wp-select { flex: 1; }
.wp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.wp-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wp-text); cursor: pointer; margin: 4px 0 14px; }
.wp-checkbox input { width: 16px; height: 16px; accent-color: var(--wp-cyan); }
.wp-checkbox .wp-muted { font-weight: 400; }

.wp-grid { display: grid; gap: 16px; }
.wp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wp-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-flex { display: flex; gap: 12px; }
.wp-muted { color: var(--wp-muted); font-size: 12px; }
.wp-dim { color: var(--wp-dim); }
.wp-hint { color: var(--wp-dim); font-size: 12px; margin-top: 10px; line-height: 1.7; }
.wp-hint b { color: var(--wp-cyan); }
.wp-plus { color: var(--wp-green); font-weight: 700; }
.wp-minus { color: var(--wp-red); font-weight: 700; }
.wp-ellipsis { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.wp-divider { height: 1px; background: var(--wp-border); margin: 10px 0; }
.wp-empty { text-align: center; color: var(--wp-dim); padding: 28px 12px; font-size: 13px; }
.wp-check { color: var(--wp-cyan); font-weight: 800; margin-right: 6px; }
.wp-mono { font-family: var(--wp-mono); font-size: .92em; letter-spacing: .2px; }

.wp-table-wrap { width: 100%; overflow-x: auto; border-radius: var(--wp-radius-sm); }
/* ★ 同 main.css 的 .wt-table：运营中心的表格同样不能设 min-width。
   订单/会员列表里最长的字段是「订单号」「机器码」，靠折行而不是横向滚动来呈现，
   否则窄屏（含 1366 笔记本开侧栏）必然出现那根灰条，右侧数据被裁。 */
.wp-table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 13px; }
.wp-table th, .wp-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--wp-border); white-space: normal; overflow-wrap: anywhere; }
/* 只有需要逐位核对的短字段（金额、状态）保持单行；长串一律折行。 */
.wp-table td.wp-num, .wp-table th.wp-num { white-space: nowrap; }
.wp-table th { color: var(--wp-muted); font-weight: 600; font-size: 12px; background: rgba(255, 255, 255, .02); }
.wp-table tbody tr { transition: background .18s ease; }
.wp-table tbody tr:hover { background: rgba(120, 180, 255, .06); }
.wp-table tbody tr:last-child td { border-bottom: none; }
.wp-table .wp-empty { white-space: normal; }

/* ---------------------------------------------------------------------------
 * 列表分页条（2026-11 新增，见 assets/js/paging.js）
 *
 * ★ 为什么放在 portal.css 而不是 console.css：
 *   会员中心（index.html）不加载 console.css，而客户要求「所有页面的列表都要分页」，
 *   两边都必须有这套样式。portal.css 是两条脚本链唯一共用的样式表。
 *
 * ★ 布局要点：左边条数摘要、右边每页条数 + 翻页按钮，
 *   窄屏用 flex-wrap 自动折成两行，不做横向滚动（后台弹窗刚修过这类问题）。
 * ------------------------------------------------------------------------- */
.wt-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 14px; flex-wrap: wrap; margin-top: 12px;
}
.wt-pager-info { font-size: 12px; color: var(--wp-muted); }
.wt-pager-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wt-pager-size {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--wp-muted);
}
.wt-pager-select {
  width: auto; min-width: 62px; height: 30px; padding: 3px 8px;
  font-family: inherit; font-size: 12px; line-height: 1.2;
  color: var(--wp-text); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--wp-border); border-radius: var(--wp-radius-sm);
  cursor: pointer;
}
.wt-pager-select:hover { border-color: var(--wp-border-strong); }
.wt-pager-select:focus-visible { outline: 2px solid rgba(120, 200, 255, .5); outline-offset: 1px; }
.wt-pager-select option { color: #0b1224; background: #e8f0ff; }

.wp-status { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.wp-status-paid { color: var(--wp-green); background: rgba(70, 227, 155, .12); }
.wp-status-pending { color: var(--wp-amber); background: rgba(255, 196, 107, .12); }
.wp-status-expired { color: var(--wp-muted); background: rgba(140, 155, 190, .12); }
.wp-status-closed { color: var(--wp-red); background: rgba(255, 107, 107, .12); }

.wp-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 12px; color: var(--wp-muted); font-size: 13px; }
.wp-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(120, 180, 255, .2); border-top-color: var(--wp-cyan); animation: wp-spin .8s linear infinite; }

/* ---------------------------------------------------------------------------
 * 页面骨架
 * ------------------------------------------------------------------------- */
.wp-page { max-width: 1180px; margin: 0 auto; animation: wp-fade-up .4s ease both; }
.wp-admin { min-width: 0; }
.wp-order-panel, .wp-qr-panel, .wp-success-panel { scroll-margin-top: 20px; }
.wp-page-head { margin-bottom: 20px; }
.wp-title { font-size: 26px; font-weight: 800; letter-spacing: 1px; background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-page-head .wp-muted { margin-top: 4px; font-size: 13px; }
.wp-foot-note { text-align: center; color: var(--wp-dim); font-size: 11px; padding: 14px 0 4px; letter-spacing: .3px; }

/* ---------------------------------------------------------------------------
 * 会员中心
 * ------------------------------------------------------------------------- */
.wp-hero { display: flex; align-items: center; gap: 20px; padding: 24px 26px; margin-bottom: 18px; }
.wp-avatar {
  width: 62px; height: 62px; flex: 0 0 62px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #06121a;
  background: var(--wp-grad); box-shadow: 0 10px 28px rgba(55, 160, 220, .35);
}
.wp-hero-main { flex: 1; min-width: 0; }
.wp-hero-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.wp-level { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--wp-cyan); background: rgba(55, 230, 201, .12); border: 1px solid rgba(55, 230, 201, .28); }
.wp-hero-points { text-align: right; display: flex; flex-direction: column; }
.wp-kpi-num { font-size: 30px; font-weight: 800; line-height: 1.1; background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-kpi-label { font-size: 12px; color: var(--wp-muted); margin-top: 4px; }
.wp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed rgba(120, 160, 230, .1); }
.wp-row:last-child { border-bottom: none; }
.wp-value { color: var(--wp-text); text-align: right; }
.wp-invite-box { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 8px 10px; border-radius: var(--wp-radius-sm); background: rgba(8, 14, 28, .55); border: 1px solid var(--wp-border); }
.wp-invite-box code { flex: 1; min-width: 0; color: var(--wp-cyan); font-size: 13px; }
/* ★ 统计卡按数量自适应列数：原来固定 3 列，放 4 个指标时会变成 3+1，
   第二行孤零零一张卡，视觉上很不整齐。 */
.wp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.wp-stat { padding: 14px; border-radius: var(--wp-radius-sm); background: rgba(8, 14, 28, .5); border: 1px solid var(--wp-border); display: flex; flex-direction: column; gap: 4px; transition: transform .2s ease, border-color .2s ease; }
.wp-stat:hover { transform: translateY(-3px); border-color: var(--wp-border-strong); }
.wp-stat-num { font-size: 18px; font-weight: 800; color: var(--wp-text); }
.wp-stat-label { font-size: 11px; color: var(--wp-muted); }
/* ★ 2026-11：原来固定 3 列，7 个入口会在第三行只剩一个、右下角空一大块。
   改成自适应：每格最小 176px，列数由容器宽度自己算，任何屏幕都排得满。 */
.wp-quick { margin-top: 2px; display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 10px; }
.wp-quick-btn {
  text-align: left; padding: 16px; border-radius: var(--wp-radius-sm); cursor: pointer;
  background: var(--wp-grad-soft); border: 1px solid var(--wp-border); color: var(--wp-text);
  display: flex; flex-direction: column; gap: 6px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  /* ★ 这个类同时用在 <button> 与 <a> 上（方案市场、我的方案是链接，能直接分享/新窗口打开）。
     不给 <a> 去掉下划线，点过的链接会带一条蓝线，视觉上比按钮脏一截。 */
  text-decoration: none;
}
.wp-quick-btn:hover { transform: translateY(-4px); border-color: var(--wp-border-strong); box-shadow: var(--wp-glow); }
.wp-quick-btn b { font-size: 15px; }
.wp-quick-btn span { font-size: 12px; color: var(--wp-muted); }

/* 登录 / 注册 */
.wp-auth { max-width: 460px; margin: 24px auto; padding: 30px; border-radius: 20px; }
.wp-auth-head { text-align: center; margin-bottom: 22px; }
.wp-auth-logo { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #06121a; background: var(--wp-grad); box-shadow: 0 10px 26px rgba(55, 160, 220, .35); }
.wp-auth-title { font-size: 22px; font-weight: 800; }
.wp-auth-sub { color: var(--wp-muted); font-size: 12px; margin-top: 6px; }
.wp-auth-form { margin-top: 18px; }
.wp-auth-demo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.wp-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--wp-border); overflow-x: auto; }
.wp-tab { padding: 9px 16px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--wp-muted); cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .18s ease, border-color .18s ease; }
.wp-tab:hover { color: var(--wp-text); }
.wp-tab-active { color: var(--wp-cyan); border-bottom-color: var(--wp-cyan); }
.wp-auth-tabs { justify-content: center; }

/* ---------------------------------------------------------------------------
 * 在线订阅
 * ------------------------------------------------------------------------- */
.wp-price-note { margin: -8px 0 16px; }
/* ---------------------------------------------------------------------------
 * 订阅卡栅格（2026-11-16）
 *
 * ★ 客户要求"最左侧固定一个免费试用框，后面才是后台的套餐框"，卡片数会变成 3 / 4 / 5 张。
 *   原来靠 .wp-grid-4 写死四列：只有 2 个套餐时会剩两格空白、4 张卡时每张又被压得很窄。
 *   改成 auto-fit 后列数跟着数量走，少卡不空、多卡不挤。
 * ★ 位置放在 .wp-grid-4 之后（同权重、后者生效），手机上仍由下方媒体查询覆盖成 2 列 / 1 列。
 * ------------------------------------------------------------------------- */
.wp-plan-grid {
  margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.wp-plan { padding: 20px 18px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
/* ---------------------------------------------------------------------------
 * 后台推荐的套餐必须"非常醒目"（2026-11-16 客户要求）
 *
 * 原来只有一圈淡青色描边 + 一个右上角小角标，一排四张卡里几乎看不出哪张是推荐的。
 * 现在给三重强调：
 *   ① 更强的双层描边 + 外发光（不占布局，不会把栅格撑歪）；
 *   ② 角标加大、加投影，比普通角标更"跳"；
 *   ③ 卡片顶部加一条渐变高光，扫视时第一眼就落在它身上。
 * ★ 只做视觉强调，不动价格 / 文案 / 点击逻辑 —— 推荐不等于改价，避免误导。
 * ------------------------------------------------------------------------- */
.wp-plan-recommended {
  border-color: rgba(55, 230, 201, .72);
  box-shadow: 0 0 0 1px rgba(55, 230, 201, .2),
              0 0 30px -6px rgba(55, 230, 201, .45),
              0 18px 44px rgba(20, 120, 160, .3);
}
.wp-plan-recommended::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: var(--wp-radius) var(--wp-radius) 0 0;
  background: var(--wp-grad);
}
.wp-plan-selected { border-color: var(--wp-cyan) !important; box-shadow: 0 0 0 2px rgba(55, 230, 201, .3), var(--wp-glow) !important; }
.wp-plan-ribbon { position: absolute; top: 0; right: 0; padding: 4px 14px; font-size: 11px; font-weight: 800; color: #06121a; background: var(--wp-grad); border-radius: 0 var(--wp-radius) 0 12px; }
.wp-plan-recommended .wp-plan-ribbon {
  font-size: 11.5px;
  padding: 5px 15px;
  letter-spacing: .3px;
  box-shadow: 0 8px 22px -10px rgba(55, 230, 201, .95);
}
.wp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wp-plan-name { font-size: 17px; font-weight: 800; }
.wp-plan-tag { font-size: 11px; color: var(--wp-purple); background: rgba(154, 107, 255, .12); border: 1px solid rgba(154, 107, 255, .3); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.wp-plan-price { font-size: 30px; font-weight: 800; margin: 14px 0 2px; background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-plan-cycle { font-size: 12px; color: var(--wp-muted); -webkit-text-fill-color: var(--wp-muted); font-weight: 500; }
.wp-plan-old { font-size: 12px; color: var(--wp-dim); text-decoration: line-through; }
.wp-plan-desc { font-size: 12px; color: var(--wp-muted); margin: 10px 0 12px; min-height: 40px; }
.wp-plan-features { flex: 1; margin: 4px 0 16px; font-size: 12px; color: var(--wp-text); }
.wp-plan-features li { padding: 3px 0; }
.wp-order-summary { padding: 14px; border-radius: var(--wp-radius-sm); background: rgba(8, 14, 28, .5); border: 1px solid var(--wp-border); margin-bottom: 14px; }
.wp-payable { font-size: 20px; font-weight: 800; color: var(--wp-cyan); }

/* ---------------------------------------------------------------------------
 * 版本切换标签（订单确认页顶部）
 *
 * ★ 它不是「再选一次版本」，而是让用户在确认页就地换档，不必退回列表重选。
 *   所以视觉刻意做得比卡片轻：一条贴合的 segmented control，
 *   不抢下方订单表单的注意力；选中态靠描边 + 底色区分，不加大面积高亮。
 * ------------------------------------------------------------------------- */
.wp-plan-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.wp-plan-tab {
  position: relative; flex: 1 1 180px; min-width: 150px; text-align: left;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit;
  background: rgba(12, 20, 38, .55); border: 1px solid var(--wp-border);
  color: var(--wp-text); transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.wp-plan-tab:hover { border-color: rgba(55, 230, 201, .45); transform: translateY(-1px); }
.wp-plan-tab-on {
  border-color: var(--wp-cyan);
  background: rgba(55, 230, 201, .1);
  box-shadow: 0 0 0 1px rgba(55, 230, 201, .25);
}
.wp-plan-tab-name { display: block; font-size: 14px; font-weight: 800; }
.wp-plan-tab-price { display: block; margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--wp-cyan); }
.wp-plan-tab-price i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--wp-muted); }
.wp-plan-tab-trial { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--wp-cyan); opacity: .85; }
/* 选中角标用纯文字，避免对字体图标/伪元素内容产生依赖 */
.wp-plan-tab-on::after { content: '已选'; position: absolute; top: 8px; right: 10px; font-size: 10px; color: var(--wp-cyan); }

/* 三步引导（订阅页底部，说明"选版本 → 确认 → 支付"的先后关系） */
.wp-checkout-steps { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.wp-checkout-step {
  flex: 1 1 200px; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(12, 20, 38, .4); border: 1px dashed var(--wp-border);
}
.wp-checkout-step b { font-size: 16px; color: var(--wp-cyan); }
.wp-checkout-step span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.wp-checkout-step i { font-style: normal; font-size: 11.5px; color: var(--wp-muted); }

/* 支付二维码 */
.wp-qr-body { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.wp-qr-frame { position: relative; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.wp-qr { width: 190px; height: 190px; }
.wp-qr-svg { width: 100%; height: 100%; display: block; border-radius: 4px; }
.wp-qr-scan { position: absolute; left: 12px; right: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--wp-cyan), transparent); box-shadow: 0 0 12px var(--wp-cyan); animation: wp-scan 2.4s ease-in-out infinite alternate; }
.wp-qr-info { flex: 1; min-width: 220px; }
.wp-success-icon { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #06121a; background: var(--wp-grad); box-shadow: 0 10px 30px rgba(55, 200, 160, .35); animation: wp-fade-up .4s ease both; }
.wp-success-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.wp-success-panel > .wp-muted { text-align: center; display: block; margin-bottom: 16px; }
.wp-license-box { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 16px; margin: 10px 0 16px; border-radius: var(--wp-radius-sm); background: rgba(55, 230, 201, .08); border: 1px dashed rgba(55, 230, 201, .4); }
.wp-license-box code { font-size: 17px; font-weight: 700; color: var(--wp-cyan); letter-spacing: 1px; }

/* ---------------------------------------------------------------------------
 * 线下转账面板（在线支付通道不可用时的兜底）
 *
 * 视觉上和二维码面板刻意做出区分：二维码是"你自己动手扫"，
 * 转账是"抄一串数字去银行 App 里操作"。用琥珀色而不是品牌青蓝，
 * 是为了让客户一眼看出"这里要多做几步"，而不是误以为还在等二维码刷新。
 * ------------------------------------------------------------------------- */
.wp-offline-panel { border-color: rgba(255, 196, 92, .28); }
.wp-offline-panel .wp-card-title::before { background: linear-gradient(135deg, #ffc45c, #ff9d3c); }
.wp-offline-tip { font-size: 13px; line-height: 1.7; color: #ffd79a; background: rgba(255, 196, 92, .08); border: 1px solid rgba(255, 196, 92, .24); border-radius: var(--wp-radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.wp-offline-amount { color: #ffc45c; font-weight: 800; font-size: 17px; }
.wp-offline-box { margin: 12px 0; padding: 14px 16px; border-radius: var(--wp-radius-sm); background: rgba(8, 14, 28, .55); border: 1px dashed rgba(255, 196, 92, .3); }
.wp-offline-box .wp-label { min-width: 76px; }
.wp-offline-note { font-size: 12px; line-height: 1.75; color: var(--wp-muted); margin: 10px 0 14px; padding-left: 12px; border-left: 2px solid rgba(255, 196, 92, .35); }
.wp-offline-note:empty { display: none; }

/* ---------------------------------------------------------------------------
 * 积分商城 / 时间线
 * ------------------------------------------------------------------------- */
.wp-points-hero { justify-content: space-between; }
.wp-hero-rule { font-size: 13px; color: var(--wp-cyan); background: rgba(55, 230, 201, .1); border: 1px solid rgba(55, 230, 201, .26); padding: 8px 14px; border-radius: 999px; }
.wp-rule-list li { position: relative; padding: 6px 0 6px 18px; font-size: 13px; color: var(--wp-text); }
.wp-rule-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--wp-grad); }
.wp-rule-list b, .wp-rule-list code { color: var(--wp-cyan); }
.wp-redeem { padding: 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.wp-redeem-disabled { filter: grayscale(.5); opacity: .72; }
.wp-redeem-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.wp-redeem-points { font-size: 26px; font-weight: 800; color: var(--wp-cyan); }
.wp-redeem-points small { font-size: 12px; color: var(--wp-muted); }
.wp-redeem .wp-btn { margin-top: 6px; }
.wp-timeline { position: relative; padding-left: 22px; }
.wp-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--wp-cyan), var(--wp-purple)); opacity: .35; }
.wp-timeline-item { position: relative; padding: 10px 0 14px; }
.wp-timeline-dot { position: absolute; left: -20px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--wp-bg); }
.wp-dot-plus { background: var(--wp-green); box-shadow: 0 0 10px var(--wp-green); }
.wp-dot-minus { background: var(--wp-red); box-shadow: 0 0 10px var(--wp-red); }
.wp-timeline-body { font-size: 13px; }
.wp-timeline-body b { font-weight: 600; }

/* ---------------------------------------------------------------------------
 * 推荐有礼 / 分享 / 海报
 * ------------------------------------------------------------------------- */
.wp-invite-hero { justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.wp-invite-code { font-size: 26px; font-weight: 800; color: var(--wp-cyan); letter-spacing: 2px; margin-top: 4px; }
.wp-invite-link { flex: 1; min-width: 260px; max-width: 520px; }
.wp-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wp-share-btn { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--wp-radius-sm); cursor: pointer; background: rgba(8, 14, 28, .5); border: 1px solid var(--wp-border); color: var(--wp-text); text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wp-share-btn:hover { transform: translateY(-3px); border-color: var(--wp-border-strong); box-shadow: var(--wp-glow); }
.wp-share-btn:disabled { opacity: .55; cursor: wait; }
.wp-share-glyph { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: #06121a; }
.wp-share-wechat { background: linear-gradient(135deg, #46e39b, #37e6c9); }
.wp-share-weibo { background: linear-gradient(135deg, #ffb36b, #ff6ba8); }
.wp-share-link { background: linear-gradient(135deg, #4d8dff, #6fb0ff); }
.wp-share-poster { background: linear-gradient(135deg, #9a6bff, #c58bff); }
.wp-share-text { display: flex; flex-direction: column; min-width: 0; }
.wp-share-text b { font-size: 14px; }
.wp-share-text small { font-size: 11px; color: var(--wp-muted); }
.wp-poster { position: relative; text-align: center; padding: 28px 20px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(55, 230, 201, .22), transparent 60%), linear-gradient(160deg, #0d1830, #10122a); border: 1px solid var(--wp-border-strong); }
.wp-poster-glow { position: absolute; inset: -40% 30% auto 30%; height: 200px; background: radial-gradient(circle, rgba(120, 120, 255, .35), transparent 70%); filter: blur(30px); }
.wp-poster-title { position: relative; font-size: 24px; font-weight: 800; background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-poster-sub { position: relative; font-size: 12px; color: var(--wp-muted); margin: 4px 0 18px; }
.wp-poster-qr { position: relative; width: 160px; height: 160px; margin: 0 auto 14px; padding: 10px; border-radius: 12px; background: #fff; }
.wp-poster-code { position: relative; font-size: 14px; }
.wp-poster-code b { color: var(--wp-cyan); letter-spacing: 1px; }
.wp-poster .wp-muted { display: block; margin: 8px 0 14px; }
.wp-poster .wp-actions { justify-content: center; }

/* ---------------------------------------------------------------------------
 * 后台管理
 * ------------------------------------------------------------------------- */
.wp-admin-token { max-width: 560px; justify-content: flex-end; }
.wp-token-input { width: 230px; font-size: 12px; }
/* ★ 主 KPI 固定 6 张：3 列 × 2 行最整齐。
   早先用 4 列会变成 4+2，最后一行左边两格右边一大片空，看起来像没加载完。 */
.wp-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.wp-kpi-card { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.wp-kpi-card .wp-kpi-num { font-size: 26px; }
.wp-kpi-a { border-top: 2px solid var(--wp-cyan); }
.wp-kpi-b { border-top: 2px solid var(--wp-blue); }
.wp-kpi-c { border-top: 2px solid var(--wp-purple); }
.wp-kpi-d { border-top: 2px solid var(--wp-pink); }
.wp-trend-card { padding: 18px 22px; }
.wp-trend-svg { width: 100%; height: auto; display: block; }
.wp-grid-line { stroke: rgba(140, 170, 220, .12); stroke-width: 1; }
.wp-trend-line { fill: none; stroke: var(--wp-cyan); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(55, 230, 201, .55)); }
.wp-trend-dot { fill: #0b1224; stroke: var(--wp-cyan); stroke-width: 1.6; }
.wp-trend-label { fill: var(--wp-dim); font-size: 10px; }
.wp-trend-max { fill: var(--wp-muted); font-size: 11px; font-weight: 700; }
.wp-admin-tabs { margin-bottom: 16px; }
.wp-admin-content { min-height: 220px; }
.wp-toolbar { margin-bottom: 14px; }
.wp-search { max-width: 260px; }
.wp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.wp-rules-grid { margin-bottom: 8px; }
.wp-ri-table { min-width: 0; }
.wp-ri-table .wp-input { min-width: 80px; }

/* ---------------------------------------------------------------------------
 * Toast（挂 body，独立定义）
 * ------------------------------------------------------------------------- */
.wp-toast-host { position: fixed; top: 22px; right: 22px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: min(90vw, 380px); }
.wp-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; cursor: pointer;
  font-family: var(--wp-font); font-size: 13px; color: var(--wp-text);
  background: rgba(16, 24, 44, .94); border: 1px solid var(--wp-border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(12px);
  opacity: 0; transform: translateX(24px); transition: opacity .24s ease, transform .24s ease;
}
.wp-toast-in { opacity: 1; transform: none; }
.wp-toast-out { opacity: 0; transform: translateX(24px); }
.wp-toast-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.wp-toast-success .wp-toast-dot { background: var(--wp-green); box-shadow: 0 0 10px var(--wp-green); }
.wp-toast-error .wp-toast-dot { background: var(--wp-red); box-shadow: 0 0 10px var(--wp-red); }
.wp-toast-warn .wp-toast-dot { background: var(--wp-amber); box-shadow: 0 0 10px var(--wp-amber); }
.wp-toast-info .wp-toast-dot { background: var(--wp-blue); box-shadow: 0 0 10px var(--wp-blue); }
.wp-toast-msg { line-height: 1.5; }

/* ---------------------------------------------------------------------------
 * Modal（挂 body，独立定义）
 * ------------------------------------------------------------------------- */
body.wp-modal-open { overflow: hidden; }
.wp-modal-overlay {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 8, 18, .72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.wp-modal-overlay.wp-modal-in { opacity: 1; }
.wp-modal-overlay.wp-modal-out { opacity: 0; }
.wp-modal {
  width: min(560px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  color: var(--wp-text); font-family: var(--wp-font); font-size: 14px;
  transform: translateY(16px) scale(.98); transition: transform .2s ease;
  animation: wp-fade-in .2s ease both;
}
.wp-modal-overlay.wp-modal-in .wp-modal { transform: none; }
.wp-modal-wide { width: min(960px, 100%); }

/* ---------------------------------------------------------------------------
 * 运营后台：概览 / 详情弹窗 / 引导态
 * ------------------------------------------------------------------------- */
.wp-kpi-grid-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 18px; }
.wp-kpi-grid-sm .wp-kpi-card { padding: 14px 16px; }
.wp-kpi-grid-sm .wp-kpi-num { font-size: 22px; }

.wp-empty-guide { padding: 26px 22px; text-align: left; }
.wp-empty-guide p { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.wp-empty-guide p:last-child { margin-bottom: 0; font-size: 13px; }

.wp-row-actions { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.wp-rule-val { color: var(--wp-cyan); font-weight: 700; }
.wp-delta-up { color: var(--wp-green, #3ddc97); font-weight: 700; }
.wp-delta-down { color: var(--wp-red); font-weight: 700; }

/* 详情弹窗：两列信息网格 + 下方表格 */
.wp-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 18px; margin-bottom: 6px;
}
.wp-detail-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(8, 14, 28, .45); border: 1px solid var(--wp-border); }
.wp-detail-item .wp-label { font-size: 11px; color: var(--wp-muted); }
.wp-detail-item .wp-value { font-size: 14px; font-weight: 700; }
.wp-detail-grid + .wp-card-title,
.wp-detail-grid ~ .wp-card-title { margin-top: 18px; }

/* 运营令牌门禁：没有平台 JWT 时的引导卡，替代"空转 + 一串 401" */
.wp-admin-gate { max-width: 720px; padding: 28px 30px; }
.wp-gate-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; color: var(--wp-text);
}
.wp-gate-title svg { color: var(--wp-cyan); flex: none; }
.wp-gate-desc { margin: 12px 0 16px; font-size: 13.5px; line-height: 1.9; color: var(--wp-muted); }
.wp-gate-desc b { color: var(--wp-text); }
.wp-gate-form { display: flex; gap: 10px; align-items: stretch; }
.wp-gate-form .wp-token-input { flex: 1; min-width: 0; width: auto; }
.wp-gate-form .wp-btn { flex: none; white-space: nowrap; }
.wp-gate-note { margin: 12px 0 0; font-size: 12px; color: var(--wp-muted); line-height: 1.8; }
.wp-gate-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--wp-border); }

/* 门禁的两种取令牌方式：账号直登（内网）/ 跳转后台（公网） */
.wp-gate-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 4px; }
.wp-gate-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wp-gate-field .wp-label { font-size: 11.5px; color: var(--wp-muted); }
.wp-gate-field .wp-input { width: 100%; }
.wp-gate-login .wp-btn { min-height: 38px; }
.wp-gate-hint { grid-column: 1 / -1; font-size: 11.5px; color: var(--wp-muted); margin: -2px 0 0; }
.wp-gate-remote { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 2px; }
.wp-gate-remote .wp-gate-hint { font-size: 12px; }
/* 分隔线：比再放一个标题更轻，不抢主操作 */
.wp-gate-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--wp-muted); font-size: 11.5px; }
.wp-gate-or::before, .wp-gate-or::after { content: ''; flex: 1; height: 1px; background: var(--wp-border); }

@media (max-width: 720px) {
  .wp-kpi-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 门禁卡在窄屏必须竖排，否则输入框会被按钮挤到只剩几十像素 */
  .wp-admin-gate { padding: 20px 18px; }
  .wp-gate-form, .wp-gate-login { grid-template-columns: minmax(0, 1fr); flex-direction: column; align-items: stretch; }
  .wp-gate-form .wp-btn, .wp-gate-login .wp-btn { width: 100%; }
  .wp-modal-wide { width: 100%; }
}
.wp-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--wp-border); }
.wp-modal-title { font-size: 17px; font-weight: 800; }
.wp-modal-close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--wp-border); background: transparent; color: var(--wp-muted); font-size: 20px; line-height: 1; cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.wp-modal-close:hover { color: var(--wp-red); border-color: var(--wp-red); }
.wp-modal-body { padding: 20px; overflow-y: auto; line-height: 1.7; }
.wp-modal-body .wp-muted { font-size: 13px; }
.wp-modal-body .wp-field { margin-bottom: 12px; }
.wp-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--wp-border); }
.wp-modal .wp-btn { font-family: var(--wp-font); }

/* ---------------------------------------------------------------------------
 * ★ v1.1 机器码绑定 / 设备管理
 * ------------------------------------------------------------------------- */
.wp-btn-xs { padding: 4px 10px; font-size: 11.5px; border-radius: 7px; line-height: 1.5; }

/* —— 设备卡片 —— */
/* ★ 设备卡改为弹性均分（2026-11）：
   原来 auto-fill(minmax(300px,1fr)) 在 1180px 容器里会产生 3 列，
   只绑了 2 台设备时右边空掉整整一列，看起来像"缺了一张卡"。
   flex 让实际存在的卡均分整行，1/2/3 张都排得整齐。 */
.wp-dev-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
/* ★ 所有直接子元素（设备卡 / 空态卡）都参与均分：
   只写 .wp-dev 时，未绑定设备显示的 .wp-dev-empty 仍按默认宽度占三分之一，
   右边空一大块，看起来像"少了一张卡"。 */
.wp-dev-grid > * { flex: 1 1 320px; min-width: 0; }
.wp-dev {
  position: relative; padding: 16px; border-radius: var(--wp-radius);
  border: 1px solid var(--wp-border); background: var(--wp-panel);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wp-dev:hover { transform: translateY(-3px); border-color: var(--wp-border-strong); box-shadow: var(--wp-glow); }
.wp-dev-primary { border-color: rgba(55, 230, 201, .38); background: linear-gradient(180deg, rgba(55, 230, 201, .07), var(--wp-panel) 42%); }
.wp-dev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wp-dev-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wp-dev-title > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.wp-dev-title b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-dev-title small { font-size: 11.5px; color: var(--wp-muted); letter-spacing: .4px; }
.wp-dev-icon {
  width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px;
  font-size: 15px; color: #06121a; background: var(--wp-grad); box-shadow: 0 6px 16px rgba(55, 160, 220, .28);
}
.wp-dev-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.wp-dev-tag {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  color: var(--wp-muted); background: rgba(120, 160, 230, .1); border: 1px solid var(--wp-border);
}
.wp-dev-tag-primary { color: var(--wp-cyan); background: rgba(55, 230, 201, .12); border-color: rgba(55, 230, 201, .3); }
.wp-dev-tag-ok { color: var(--wp-green); background: rgba(70, 227, 155, .12); border-color: rgba(70, 227, 155, .3); }
.wp-dev-tag-warn { color: var(--wp-amber); background: rgba(255, 196, 107, .12); border-color: rgba(255, 196, 107, .3); }
.wp-dev-rows .wp-row { font-size: 12.5px; }
.wp-dev-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed rgba(120, 160, 230, .14); }
.wp-dev-primary-note { font-size: 11.5px; color: var(--wp-cyan); display: inline-flex; align-items: center; }
.wp-dev-expire-out { color: var(--wp-red) !important; }
.wp-dev-expire-soon { color: var(--wp-amber) !important; }
.wp-dev-expire-none { color: var(--wp-dim) !important; }

.wp-dev-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.wp-dev-empty {
  grid-column: 1 / -1; padding: 34px 22px; text-align: center; border-radius: var(--wp-radius);
  border: 1px dashed var(--wp-border-strong); background: rgba(8, 14, 28, .4);
}
.wp-dev-empty b { display: block; font-size: 16px; margin-bottom: 8px; }
.wp-dev-empty p { color: var(--wp-muted); font-size: 13px; max-width: 560px; margin: 0 auto 6px; line-height: 1.8; }
.wp-dev-empty .wp-btn { margin-top: 16px; }

/* —— 设备内联摘要 —— */
.wp-dev-compact {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 10px 12px;
  border-radius: var(--wp-radius-sm); background: rgba(8, 14, 28, .5); border: 1px solid var(--wp-border);
  font-size: 12.5px;
}
.wp-dev-compact b { font-size: 13px; }

/* —— 设备单选器 —— */
.wp-dev-picker { display: grid; gap: 8px; margin: 10px 0; }
.wp-dev-picker-title { font-size: 12.5px; font-weight: 700; color: var(--wp-muted); margin-bottom: 2px; }
.wp-dev-pick {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--wp-radius-sm);
  border: 1px solid var(--wp-border); background: rgba(8, 14, 28, .45); cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.wp-dev-pick:hover { border-color: var(--wp-border-strong); transform: translateX(2px); }
.wp-dev-pick:has(input:checked) { border-color: rgba(55, 230, 201, .55); background: rgba(55, 230, 201, .08); }
.wp-dev-pick input { accent-color: var(--wp-cyan); width: 15px; height: 15px; flex: 0 0 15px; margin: 0; }
.wp-dev-pick-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-width: 0; }
.wp-dev-pick-name { font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.wp-dev-pick-star {
  font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px;
  color: var(--wp-cyan); background: rgba(55, 230, 201, .14); border: 1px solid rgba(55, 230, 201, .3);
}
.wp-dev-pick-meta { font-size: 11.5px; color: var(--wp-muted); }

/* —— 下单页授权目标区块 —— */
.wp-dev-target { margin-bottom: 18px; }
.wp-dev-target-box { padding: 14px 16px; border-radius: var(--wp-radius); border: 1px solid var(--wp-border); background: rgba(8, 14, 28, .38); }
.wp-dev-target-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wp-dev-target-head b { font-size: 13.5px; }
.wp-dev-target-head .wp-muted { font-size: 11.5px; }
.wp-dev-target p { font-size: 12.5px; color: var(--wp-muted); line-height: 1.8; }
.wp-dev-target-new { border-color: rgba(55, 230, 201, .38); background: linear-gradient(180deg, rgba(55, 230, 201, .07), rgba(8, 14, 28, .38) 60%); }
.wp-dev-target-warn { border-color: rgba(255, 196, 107, .36); background: linear-gradient(180deg, rgba(255, 196, 107, .07), rgba(8, 14, 28, .38) 60%); }
.wp-dev-target-box .wp-dev-target-head { margin-top: 0; }

/* —— 顶部提示条 —— */
.wp-dev-notice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin-bottom: 16px;
  border-radius: var(--wp-radius-sm); font-size: 12.5px;
  background: rgba(55, 230, 201, .08); border: 1px solid rgba(55, 230, 201, .3);
}
.wp-dev-notice b { color: var(--wp-cyan); }
.wp-dev-notice .wp-btn { margin-left: auto; }

/* —— 绑定弹窗 —— */
.wp-bind-tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 16px; border-radius: 11px; background: rgba(8, 14, 28, .6); border: 1px solid var(--wp-border); }
.wp-bind-tab {
  flex: 1; padding: 8px 6px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  color: var(--wp-muted); font-size: 12.5px; font-weight: 650; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.wp-bind-tab:hover { color: var(--wp-text); }
.wp-bind-tab-active { color: #06121a; background: var(--wp-grad); box-shadow: 0 6px 18px rgba(55, 160, 220, .25); }
.wp-bind-pane { font-size: 13px; line-height: 1.8; }
.wp-bind-pane p { color: var(--wp-muted); margin-bottom: 10px; }
.wp-bind-pane p b { color: var(--wp-text); }
.wp-bind-ok { padding: 13px 14px; border-radius: var(--wp-radius-sm); background: rgba(70, 227, 155, .08); border: 1px solid rgba(70, 227, 155, .3); }
.wp-bind-ok > b { display: block; color: var(--wp-green); margin-bottom: 8px; font-size: 13px; }
.wp-bind-empty { padding: 14px; border-radius: var(--wp-radius-sm); background: rgba(8, 14, 28, .45); border: 1px dashed var(--wp-border); }
.wp-bind-code-state { text-align: center; }
.wp-bind-code {
  font-family: var(--wp-mono); font-size: 34px; font-weight: 800; letter-spacing: 10px;
  padding: 16px 10px 16px 20px; margin: 6px 0 12px; border-radius: var(--wp-radius);
  color: var(--wp-cyan); background: rgba(55, 230, 201, .07); border: 1px dashed rgba(55, 230, 201, .4);
  cursor: pointer; user-select: all; transition: background .18s ease;
}
.wp-bind-code:hover { background: rgba(55, 230, 201, .13); }
.wp-bind-code-tip { font-size: 12.5px; color: var(--wp-text) !important; margin-bottom: 6px; }
.wp-bind-code-done .wp-bind-code { display: none; }

/* —— 三种方式说明卡 —— */
.wp-bind-methods { margin-bottom: 4px; }
.wp-bind-method {
  display: flex; flex-direction: column; gap: 8px; padding: 15px; border-radius: var(--wp-radius-sm);
  background: rgba(8, 14, 28, .45); border: 1px solid var(--wp-border);
  transition: border-color .2s ease, transform .2s ease;
}
.wp-bind-method:hover { border-color: var(--wp-border-strong); transform: translateY(-3px); }
.wp-bind-method > b { font-size: 13.5px; }
.wp-bind-method p { font-size: 12.5px; color: var(--wp-muted); line-height: 1.8; flex: 1; }
.wp-bind-method .wp-btn { align-self: flex-start; }
.wp-bind-badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  color: var(--wp-cyan); background: rgba(55, 230, 201, .12); border: 1px solid rgba(55, 230, 201, .28);
}

/* —— 注册表单里的机器码区块 —— */
.wp-reg-dev { margin: 4px 0 16px; padding: 13px 14px; border-radius: var(--wp-radius-sm); border: 1px solid var(--wp-border); background: rgba(8, 14, 28, .4); }
.wp-reg-dev-ok { border-color: rgba(55, 230, 201, .35); background: rgba(55, 230, 201, .07); }
.wp-reg-dev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.wp-reg-dev-head b { font-size: 12.5px; }
.wp-reg-dev .wp-field { margin-bottom: 0; }
.wp-reg-dev .wp-hint { margin-top: 8px; font-size: 11.5px; }

/* —— 窄屏适配 —— */
@media (max-width: 1000px) {
  .wp-dev-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wp-dev-grid > * { flex-basis: 100%; }
  .wp-dev-head { flex-direction: column; }
  .wp-dev-tags { justify-content: flex-start; }
  .wp-bind-tabs { flex-wrap: wrap; }
  .wp-bind-tab { flex: 1 1 45%; }
  .wp-bind-code { font-size: 27px; letter-spacing: 7px; padding-left: 12px; }
  .wp-dev-notice .wp-btn { margin-left: 0; }
}
@media (max-width: 440px) {
  .wp-dev-kpi { grid-template-columns: minmax(0, 1fr); }
  .wp-bind-code { font-size: 23px; letter-spacing: 5px; }
}

/* ---------------------------------------------------------------------------
 * 响应式
 * ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .wp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wp-root { font-size: 13px; }
  .wp-grid-2, .wp-grid-3, .wp-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .wp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .wp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-page-head { flex-direction: column; align-items: flex-start; }
  .wp-title { font-size: 22px; }
  .wp-hero { flex-wrap: wrap; padding: 18px; }
  .wp-hero-points { text-align: left; }
  .wp-points-hero, .wp-invite-hero { flex-direction: column; align-items: flex-start; }
  .wp-admin-token { max-width: 100%; justify-content: flex-start; }
  .wp-token-input { width: 100%; }
  .wp-qr-body { flex-direction: column; align-items: center; }
  .wp-qr-info { width: 100%; }
  .wp-field-inline { flex-direction: column; align-items: stretch; }
  .wp-field-inline .wp-label { flex: none; }
  .wp-toast-host { top: 12px; right: 12px; left: 12px; max-width: none; }
  .wp-card { padding: 16px; }
}
@media (max-width: 440px) {
  .wp-share-grid, .wp-stat-grid, .wp-kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .wp-auth { padding: 22px 18px; margin: 12px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-root, .wp-page, .wp-success-icon { animation: none; }
  .wp-btn, .wp-card-hover, .wp-plan, .wp-share-btn, .wp-quick-btn, .wp-stat { transition: none; }
  .wp-qr-scan { animation: none; }
}

/* ==========================================================================
   统一登录（五通通行证）入口
   ★ 默认 display:none —— 只有在 /api/wtorg/portal/sso/config 返回
     ssoAvailable=true 时，member.js 才会给 body 加 .wtorg-sso-enabled。
     这样「未启用统一登录」的站点上，登录面板与升级前完全一致，
     不会多出一条点了没反应的按钮。
   ========================================================================== */
.wp-auth-sso { display: none; }
body.wtorg-sso-enabled .wp-auth-sso { display: block; }

/* 分隔线：左右各一条细线，中间「或」字 */
.wp-auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--wp-muted);
  font-size: 12px;
  line-height: 1;
}
.wp-auth-or::before,
.wp-auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .22;
}

/* ============================================================================
 * 运营中心（独立管理界面）· 前缀 wt-
 * ============================================================================
 * 为什么要一套新前缀而不是复用 wp-：
 *   运营中心是「登录后的独立工作区」，布局是固定的左侧导航 + 右侧内容，
 *   与官网的卡片流完全不同。混用会让 .wp-card 的悬浮动效、栅格宽度
 *   到处打架，最后只能靠一堆 !important 压制 —— 那是维护灾难的开始。
 *
 * ★ 安全相关的一条样式：.wt-gate-wrap 用 min-height + 居中，
 *   保证「未登录」这一屏不会露出上下方的页面框架与任何业务模块。
 * ==========================================================================*/

/* ---------------------------- 登录门禁 ---------------------------- */
.wt-gate-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: 40px 16px;
}
.wt-gate-card {
  width: 100%;
  max-width: 392px;
  padding: 30px 30px 22px;
  border-radius: 18px;
  border: 1px solid var(--wp-border);
  background: linear-gradient(160deg, rgba(22, 33, 58, .92), rgba(12, 19, 36, .96));
  box-shadow: var(--wp-shadow), 0 0 0 1px rgba(80, 220, 220, .08) inset;
  backdrop-filter: blur(14px);
}
.wt-gate-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--wp-cyan);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wt-gate-title {
  margin: 14px 0 6px;
  font-size: 21px;
  font-weight: 650;
  color: var(--wp-text);
  letter-spacing: .01em;
}
.wt-gate-sub {
  margin: 0 0 20px;
  color: var(--wp-muted);
  font-size: 13px;
  line-height: 1.7;
}
.wt-gate-field { display: block; margin-bottom: 13px; }
.wt-gate-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--wp-muted);
  font-size: 12.5px;
}
.wt-gate-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--wp-border);
  background: rgba(8, 13, 26, .82);
  color: var(--wp-text);
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.wt-gate-field input:focus {
  border-color: var(--wp-border-strong);
  box-shadow: 0 0 0 3px rgba(55, 230, 201, .12);
}
.wt-gate-btn { width: 100%; height: 44px; margin-top: 6px; font-size: 14.5px; }
.wt-gate-msg {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--wp-muted);
}
.wt-gate-msg.is-error { color: var(--wp-red); }
.wt-gate-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--wp-border);
  color: var(--wp-dim);
  font-size: 11.5px;
  line-height: 1.6;
}
.wt-gate-demo { color: var(--wp-amber); }

/* ---------------------------- 控制台外壳 ---------------------------- */
/*
 * ★ 侧栏改 position:fixed 后已脱离文档流，grid 会把它当"不存在"，
 *   只剩 main 一个 in-flow 子项，会被自动塞进第一列（216px）挤成窄条。
 *   因此外壳直接改 block：side 靠 fixed 固定，main 靠 margin-left 让位。
 */
.wt-console {
  display: block;
  margin: 18px 0 40px;
}
.wt-console-side {
  /* ★ 彻底脱离文档流：sticky 在 grid 容器里仍会被长内容撑出视口，fixed 才真正"钉死"。
     left:20px 对齐 .wt-console 的左右内边距（body 已 margin:0）；
     top:18px 对齐外壳 margin-top；高度锁在视口内，外层不滚，
     溢出只交给内部 .wt-console-nav 独立滚动，brand 与 side-foot 常驻不滚。 */
  position: fixed;
  left: 20px;
  top: 18px;
  width: 216px;
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  /* ★ box-sizing 必须补：后台 DOM 不在 .wp-root 作用域内、没有 border-box 重置，
     不写的话 width:216px 是 content-box，再加 padding+border 实际占 242px，
     与 .wt-console-main 的 margin-left:234px 对不上、会重叠。 */
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid var(--wp-border);
  background: linear-gradient(170deg, rgba(20, 30, 54, .86), rgba(10, 16, 31, .92));
  box-shadow: var(--wp-shadow);
}
.wt-console-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; border-bottom: 1px solid var(--wp-border); }
.wt-console-brand-mark {
  /* ★ 2026-11 品牌统一：容器不再画渐变底和文字，改由内部官网同款 SVG 呈现，
     这里只保留尺寸、圆角与裁剪（SVG 自带深底与描边，多画一层底会露边）。 */
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  overflow: hidden;
  flex: 0 0 auto;
}
.wt-console-brand-mark svg { display: block; width: 100%; height: 100%; }
.wt-console-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.wt-console-brand-text b { font-size: 13.5px; color: var(--wp-text); }
.wt-console-brand-text i { font-style: normal; font-size: 11.5px; color: var(--wp-muted); letter-spacing: .06em; }

.wt-console-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* ★ flex 子项要能滚，必须 min-height:0（默认 auto 会被内容撑高而不出滚动条） */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 160, 230, .35) transparent;
}
.wt-console-nav::-webkit-scrollbar { width: 6px; }
.wt-console-nav::-webkit-scrollbar-track { background: transparent; }
.wt-console-nav::-webkit-scrollbar-thumb { background: rgba(120, 160, 230, .28); border-radius: 999px; }
.wt-console-nav::-webkit-scrollbar-thumb:hover { background: rgba(120, 160, 230, .5); }
.wt-console-nav-group { display: flex; flex-direction: column; gap: 2px; }
.wt-console-nav-group-title {
  padding: 6px 8px 4px;
  color: var(--wp-dim);
  font-size: 11px;
  letter-spacing: .1em;
}
.wt-console-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--wp-muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .16s, color .16s, transform .16s;
}
.wt-console-nav-item:hover { background: rgba(120, 160, 230, .1); color: var(--wp-text); }
.wt-console-nav-item.is-active {
  background: linear-gradient(135deg, rgba(55, 230, 201, .18), rgba(77, 141, 255, .16));
  color: var(--wp-text);
  box-shadow: inset 0 0 0 1px rgba(80, 220, 220, .22);
}
.wt-console-nav-item svg { flex: none; opacity: .92; }
.wt-console-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--wp-border); }
.wt-console-side-foot .wp-btn { width: 100%; }

/* ★ 侧栏 fixed 后不再占 grid 列，main 用 margin-left 让出 216px 栏宽 + 18px 间隙。
   绝不能加 overflow:hidden/auto，否则标签栏的 sticky 会失效。 */
.wt-console-main { min-width: 0; margin-left: 234px; }
.wt-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 0 2px;
}
.wt-top-left { display: flex; align-items: center; gap: 10px; }
.wt-top-title { margin: 0; font-size: 19px; font-weight: 650; color: var(--wp-text); }
.wt-top-right { display: flex; align-items: center; gap: 10px; }
.wt-top-time { font-size: 12px; font-variant-numeric: tabular-nums; }

.wt-console-body { min-height: 340px; }
.wt-stack { display: flex; flex-direction: column; gap: 14px; }
.wt-console-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

/* 列表页提示语：窄屏会被挤成一条长线，给个上限 */
.wt-tip-inline { font-size: 12px; max-width: 58%; text-align: right; }
.wt-list-card .wp-toolbar { margin-bottom: 10px; }

/* ---------------------------- 报表条 ---------------------------- */
.wt-bar-row {
  display: grid;
  grid-template-columns: minmax(84px, 1.1fr) minmax(80px, 2.4fr) 92px 44px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
}
.wt-bar-label { color: var(--wp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-bar-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(120, 160, 230, .14);
  overflow: hidden;
}
.wt-bar-track > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--wp-grad);
  transition: width .4s ease;
}
.wt-bar-val { text-align: right; color: var(--wp-text); }
.wt-bar-pct { text-align: right; font-variant-numeric: tabular-nums; }

/* KPI 补充说明 */
.wp-kpi-hint { display: block; margin-top: 2px; font-size: 11.5px; color: var(--wp-dim); }

/* ---------------------------- 设置表单 ---------------------------- */
.wt-settings-tip { margin: -4px 0 16px; font-size: 12.5px; }
.wt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px 18px;
}
.wt-form-row { display: flex; flex-direction: column; gap: 6px; }
.wt-form-row.is-wide { grid-column: 1 / -1; }
.wt-form-label { font-size: 12.5px; color: var(--wp-muted); }
.wt-form-hint { font-size: 11.5px; color: var(--wp-dim); line-height: 1.55; }
.wt-textarea { height: auto; padding: 10px 12px; line-height: 1.65; resize: vertical; }
.wt-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--wp-border);
  flex-wrap: wrap;
}
.wt-save-msg { font-size: 12px; }

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 860px) {
  /* ★ 与 console.css 的 900px 断点同向：侧栏回退成横向滚动条、main 取消让位。
     两个文件断点不同但规则一致，谁生效都不会把菜单压成看不见的窄带。 */
  .wt-console { padding: 0 12px; }
  .wt-console-side {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .wt-console-main { margin-left: 0; }
  .wt-console-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; flex: 0 1 auto; min-height: 0; overflow: visible; }
  .wt-console-nav-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .wt-console-nav-group-title { display: none; }
  .wt-console-nav-item { width: auto; padding: 7px 11px; font-size: 12.5px; }
  .wt-tip-inline { max-width: 100%; text-align: left; }
  .wt-bar-row { grid-template-columns: minmax(70px, 1fr) minmax(60px, 1.6fr) 78px 40px; }
}

/* ══════════════════════════════════════════════════════════════════
   ★ 会员中心 · 我的授权与换机迁移（2026-11）

   客户要求「醒目提示会员还有几次机会」——所以剩余次数不是一行灰字，
   而是【大号数字 + 进度条 + 颜色分级】：剩 0 次是红色（要额外买），
   剩 1 次是橙色（最后一次，请慎重），2 次以上是绿色（还宽裕）。
   颜色本身就是信息，客户不需要读文字就知道自己处在哪个阶段。
   ══════════════════════════════════════════════════════════════════ */
.wp-lic { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 0; }
.wp-lic:first-child { border-top: 0; padding-top: 4px; }
.wp-lic-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.wp-lic-key { font-family: var(--Wtorg_Mono, ui-monospace, Menlo, Consolas, monospace); font-size: 13px; letter-spacing: .4px; }
.wp-lic-meta { font-size: 12px; color: var(--Wtorg_Text_Muted, #8fa3bb); margin-top: 4px; }
.wp-lic-quota { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; }
.wp-quota-num { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.wp-quota-num small { font-size: 12px; font-weight: 500; margin-left: 4px; opacity: .75; letter-spacing: 0; }
.wp-quota-txt { font-size: 12px; line-height: 1.5; color: var(--Wtorg_Text_Muted, #8fa3bb); }
.wp-quota-bar { flex: 1; min-width: 90px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.wp-quota-fill { display: block; height: 100%; border-radius: 999px; transition: width .35s cubic-bezier(.22,.8,.3,1); }
.wp-quota-ok   { color: #7ee2a8; } .wp-quota-ok   .wp-quota-fill { background: linear-gradient(90deg,#34d399,#22d3ee); }
.wp-quota-warn { color: #ffcf85; } .wp-quota-warn .wp-quota-fill { background: linear-gradient(90deg,#fbbf24,#fb923c); }
.wp-quota-bad  { color: #ff9b9b; } .wp-quota-bad  .wp-quota-fill { background: linear-gradient(90deg,#f87171,#ef4444); }
.wp-lic-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-note-box {
  border-radius: 12px; padding: 11px 13px; font-size: 12.5px; line-height: 1.75;
  border: 1px solid rgba(34,211,238,.22); background: rgba(34,211,238,.07); color: #cfe6ff;
}
.wp-note-box.is-warn { border-color: rgba(255,190,90,.30); background: rgba(255,180,80,.08); color: #ffe0b2; }
.wp-fb-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; margin-top: 10px; }
.wp-fb-form .wp-fb-full { grid-column: 1 / -1; }
.wp-fb-form label { display: block; font-size: 12px; color: var(--Wtorg_Text_Muted, #8fa3bb); margin-bottom: 5px; }
@media (max-width: 640px) { .wp-fb-form { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   ★ 方案市场 / 我的方案 / 收益提现（2026-11 客户需求）
   —— 配套 assets/js/market.js

   设计取舍（这三条决定了下面为什么这么写）：

   ① **封面图必须是固定比例**（16:10）。卡片高度由封面决定，
      否则用户传一张竖图，整个列表就出现一根突兀的"高个子"，
      下面所有卡片被推歪，一眼看上去就像页面坏了。
      用 aspect-ratio 而不是 padding-top 百分比，代码短且不用算。

   ② **价格用品牌渐变字**。方案市场是"卖东西"的地方，
      价格是第一眼要看到的信息。用灰字它就会被标题压过去，
      用户会以为这是免费的文档区。

   ③ **金额一律等宽字体 + 右对齐**。作者对账时会逐行比对个位数，
      比例字体的 1 和 7 宽度不同，竖着一列看过去会错位，
      这是财务界面的基本要求，不是审美偏好。
   ══════════════════════════════════════════════════════════════════ */

/* ── 页头副标题（各业务页共用，之前只在 wp-page-head 里隐式定位过） ── */
.wp-sub { font-size: 13.5px; line-height: 1.7; color: var(--wp-muted); margin-top: 6px; max-width: 760px; }

/* ── 返回条 ── */
.wp-back { margin-bottom: 14px; }
.wp-back a, .wp-back button {
  color: var(--wp-muted); font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; transition: color .18s ease, transform .18s ease;
}
.wp-back a:hover, .wp-back button:hover { color: var(--wp-cyan); transform: translateX(-3px); }

/* ── 市场首页 Hero：一句话说清"能买也能卖" ── */
.wp-market-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 18px 0 16px; padding: 18px 22px; border-radius: var(--wp-radius);
  border: 1px solid rgba(55, 230, 201, .22);
  background: linear-gradient(135deg, rgba(55, 230, 201, .1), rgba(154, 107, 255, .1));
  position: relative; overflow: hidden;
}
/* 扫光装饰：静态渐变太"平"，加一道斜向高光才有科技感；pointer-events 关掉以免挡住按钮 */
.wp-market-hero::after {
  content: ""; position: absolute; inset: -60% -20% auto auto; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(55, 230, 201, .18), transparent 65%);
  pointer-events: none;
}
.wp-market-hero-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 320px; position: relative; z-index: 1; }
.wp-market-hero-text b { font-size: 15.5px; letter-spacing: .4px; color: var(--wp-text); }
.wp-market-hero-text span { font-size: 12.8px; line-height: 1.75; color: var(--wp-muted); }

/* ── 工具栏：搜索 + 分类 + 排序 ── */
.wp-market-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.wp-market-toolbar .wp-input { flex: 1 1 240px; min-width: 0; }
.wp-market-toolbar .wp-input-sm { flex: 0 0 auto; width: auto; min-width: 120px; }

/* ── 方案卡片栅格 ── */
.wp-plan-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.wp-plan-card {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--wp-radius); overflow: hidden; text-decoration: none;
  background: var(--wp-panel); border: 1px solid var(--wp-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wp-plan-card:hover { transform: translateY(-4px); border-color: var(--wp-border-strong); box-shadow: var(--wp-glow); }
.wp-plan-card:focus-visible { outline: 2px solid var(--wp-cyan); outline-offset: 2px; }

/* 封面：固定 16:10，图片 cover 裁切，避免竖图把卡片撑成"高个子" */
.wp-plan-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  overflow: hidden; background: rgba(8, 14, 28, .8);
}
.wp-plan-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}
.wp-plan-card:hover .wp-plan-cover img { transform: scale(1.045); }
/* 无封面占位：品牌渐变 + 方案名前两字，比空白灰块体面得多 */
.wp-plan-cover-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--wp-grad-soft);
  border-bottom: 1px solid var(--wp-border);
}
.wp-plan-cover-empty span {
  font-size: 30px; font-weight: 800; letter-spacing: 2px;
  background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .85;
}

.wp-plan-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1 1 auto; min-width: 0; }
.wp-plan-title {
  font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--wp-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wp-plan-sum {
  font-size: 12.5px; line-height: 1.65; color: var(--wp-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 41px;
}
.wp-plan-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; }
.wp-plan-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--wp-border);
}

/* ── 价格 ── */
.wp-price {
  font-family: var(--wp-mono); font-size: 18px; font-weight: 800; letter-spacing: .3px;
  background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wp-price-free { font-size: 16px; }
.wp-price-points {
  display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--wp-amber); white-space: nowrap;
}

/* ── 状态小标签（方案状态 / 提现状态） ── */
.wp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--wp-muted); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--wp-border);
}
.wp-chip.ok { color: var(--wp-green); background: rgba(70, 227, 155, .1); border-color: rgba(70, 227, 155, .3); }
.wp-chip.warn { color: var(--wp-amber); background: rgba(255, 196, 107, .11); border-color: rgba(255, 196, 107, .3); }
.wp-chip.bad { color: var(--wp-red); background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .3); }

/* ── 详情页两栏 ── */
.wp-plan-detail {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
.wp-plan-detail-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* 详情页的封面是"宣传图"，比列表卡片大得多，仍保持 16:10 一致比例 */
.wp-plan-detail-main .wp-plan-cover { border-radius: var(--wp-radius); border: 1px solid var(--wp-border); }
.wp-plan-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wp-plan-previews img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-radius: var(--wp-radius-sm); border: 1px solid var(--wp-border);
  transition: border-color .2s ease, transform .2s ease;
}
.wp-plan-previews img:hover { border-color: var(--wp-border-strong); transform: translateY(-2px); }
.wp-plan-desc-body { font-size: 13.5px; line-height: 1.9; color: var(--wp-text); white-space: pre-wrap; overflow-wrap: anywhere; }

/* 右侧购买栏：随滚动吸顶，长方案翻到底也能随时下单 */
.wp-plan-detail-side { position: sticky; top: 92px; min-width: 0; }
.wp-plan-detail-side .wp-card { margin-bottom: 0; }
.wp-plan-detail-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.wp-plan-detail-price { padding: 10px 0 14px; border-bottom: 1px solid var(--wp-border); margin-bottom: 12px; }
.wp-plan-buy { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.wp-plan-tip { font-size: 11.5px; line-height: 1.7; margin-top: 12px; }

/* ── 键值对行（详情侧栏 / 概览） ── */
.wp-kv {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 12.8px; border-bottom: 1px dashed rgba(120, 160, 230, .12);
}
.wp-kv:last-of-type { border-bottom: none; }
.wp-kv span { color: var(--wp-muted); flex: 0 0 auto; }
.wp-kv b { color: var(--wp-text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ── KPI 卡片行（我的方案 / 收益 / 数据看板） ── */
.wp-kpi-row {
  display: grid; gap: 12px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}
.wp-kpi {
  padding: 14px 16px; border-radius: var(--wp-radius);
  background: var(--wp-panel); border: 1px solid var(--wp-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s ease, transform .2s ease;
}
.wp-kpi:hover { border-color: var(--wp-border-strong); transform: translateY(-2px); }
.wp-kpi-num {
  font-family: var(--wp-mono); font-size: 21px; font-weight: 800; letter-spacing: .2px;
  background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.3; overflow-wrap: anywhere;
}
.wp-kpi-label { font-size: 12.5px; font-weight: 600; color: var(--wp-text); margin-top: 4px; }
.wp-kpi-hint { font-size: 11px; line-height: 1.6; color: var(--wp-dim); margin-top: 3px; }

/* ── 表格单元格：主标题 + 补充说明 + 操作按钮列 ── */
.wp-cell-main { font-weight: 600; color: var(--wp-text); overflow-wrap: anywhere; }
.wp-cell-note { font-size: 11.5px; line-height: 1.6; color: var(--wp-amber); margin-top: 3px; }
.wp-cell-actions { display: flex; gap: 6px; flex-wrap: wrap; white-space: nowrap; }
.wp-cell-actions .wp-btn { padding: 5px 10px; font-size: 11.5px; border-radius: 7px; }

/* ── 金额正负：涨红跌绿是行情习惯，但这里是"收入/支出"，
      沿用账本习惯——收入青绿、支出红；作者一眼能分辨进账出账。 ── */
.wp-amount-pos { color: var(--wp-green); font-family: var(--wp-mono); font-weight: 700; white-space: nowrap; }
.wp-amount-neg { color: var(--wp-red); font-family: var(--wp-mono); font-weight: 700; white-space: nowrap; }

/* ── 空态增强（market.js 的 Wtorg_EmptyHtml 比基础 .wp-empty 多一层标题） ── */
.wp-empty-title { font-size: 14.5px; font-weight: 700; color: var(--wp-text); margin-bottom: 6px; }
.wp-empty-desc { font-size: 12.5px; line-height: 1.8; color: var(--wp-muted); max-width: 560px; margin: 0 auto; }

/* ── 表单：两列栅格 + 跨列 + 底部操作条 ── */
.wp-form-grid .wp-field > span, .wp-form-row .wp-field > span {
  display: block; font-size: 12px; color: var(--wp-muted); font-weight: 600; margin-bottom: 5px;
}
.wp-field-wide { grid-column: 1 / -1; }
.wp-form-row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.wp-form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--wp-border);
}
.wp-form-foot .wp-muted { font-size: 11.5px; line-height: 1.7; }

/* 宣传图预览：与列表封面同比例，作者传完就能看到"上架后长什么样" */
.wp-cover-preview {
  margin-top: 8px; width: 100%; max-width: 320px; aspect-ratio: 16 / 10;
  border-radius: var(--wp-radius-sm); overflow: hidden;
  border: 1px dashed var(--wp-border); background: rgba(8, 14, 28, .5);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; color: var(--wp-dim);
}
.wp-cover-preview:empty::after { content: "尚未选择宣传图（建议 1200×750 以上）"; padding: 0 12px; text-align: center; }
.wp-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   发布状态开关（2026-11 客户需求 #6）
   ──────────────────────────────────────────────────────────────────────────
   为什么用开关而不是"发布/下架"两个按钮：
     「是否上架」是方案的一个**属性**，不是两个动作。两个按钮会让作者
     在列表里来回找"我现在到底是开还是关"，而开关一眼就能看出当前状态。
   ★ 轨道用 flex + transition 做滑块，不依赖 JS 计算坐标 —— 缩放/换字号都不会错位。
   ══════════════════════════════════════════════════════════════════════════ */
.wp-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.wp-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.wp-switch-track {
  position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 40px;
  border-radius: 999px; background: rgba(120, 135, 160, .35);
  border: 1px solid rgba(140, 160, 190, .28);
  transition: background .18s ease, border-color .18s ease;
}
.wp-switch-knob {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .18s ease;
}
.wp-switch input:checked + .wp-switch-track {
  background: var(--wp-grad, linear-gradient(90deg, #22d3ee, #3b82f6));
  border-color: transparent;
}
.wp-switch input:checked + .wp-switch-track .wp-switch-knob { transform: translateX(18px); }
.wp-switch input:disabled + .wp-switch-track { opacity: .55; cursor: progress; }
.wp-switch-lg .wp-switch-track { width: 46px; height: 25px; flex: 0 0 46px; }
.wp-switch-lg .wp-switch-knob { width: 19px; height: 19px; }
.wp-switch-lg input:checked + .wp-switch-track .wp-switch-knob { transform: translateX(21px); }
.wp-switch-label { font-size: 12.5px; color: var(--wp-muted); }
.wp-switch-hint { font-size: 11.5px; color: var(--wp-dim); margin-top: 4px; }
.wp-switch-hint-bad { color: #ff9a9a; }

/* 三步操作指引（「怎么上传方案？」） */
.wp-steps { display: flex; flex-direction: column; gap: 8px; }
.wp-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--wp-text); }
.wp-step b {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: rgba(60, 130, 246, .18); color: var(--wp-cyan, #22d3ee);
}

/* 「方案文件已在云端」的只读状态条 */
.wp-filebox {
  padding: 10px 12px; border-radius: var(--wp-radius-sm); font-size: 12.5px;
  border: 1px dashed var(--wp-border); background: rgba(8, 14, 28, .35);
  color: var(--wp-text);
}
.wp-filebox b { color: var(--wp-cyan, #22d3ee); }

/* 顶部正向提示条（PC 端上传完成后跳过来的那一条） */
.wp-note {
  padding: 10px 12px; border-radius: var(--wp-radius-sm); font-size: 13px; line-height: 1.75;
  border: 1px solid rgba(120, 160, 220, .28); background: rgba(60, 130, 246, .10); color: var(--wp-text);
}
.wp-note-ok { border-color: rgba(80, 210, 160, .32); background: rgba(60, 200, 150, .10); }
.wp-note-ok b { color: #6ee7b7; }

/* ── 支付面板 ── */
.wp-pay-qr {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; margin: 0 auto 12px; width: 248px; max-width: 100%;
  border-radius: var(--wp-radius-sm); background: #fff;
}
.wp-pay-qr img { width: 224px; height: 224px; display: block; }
.wp-pay-amount {
  text-align: center; font-family: var(--wp-mono); font-size: 24px; font-weight: 800;
  letter-spacing: .5px; margin-bottom: 6px;
  background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wp-pay-manual { text-align: center; padding: 8px 0 4px; }
.wp-pay-manual .wp-muted { font-size: 12.5px; line-height: 1.8; }
.wp-pay-orderno {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--wp-border);
  font-size: 11.5px; text-align: center; font-family: var(--wp-mono); overflow-wrap: anywhere;
}
/* 拿不到二维码时的兜底：把支付链接原样给用户，比画一个扫不出来的假码强 */
.wp-pay-link {
  padding: 12px; border-radius: var(--wp-radius-sm);
  border: 1px dashed var(--wp-border-strong); background: rgba(8, 14, 28, .6);
  font-size: 12px; line-height: 1.7; color: var(--wp-text);
  font-family: var(--wp-mono); overflow-wrap: anywhere; word-break: break-all;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  /* 详情页两栏在窄屏合并：右侧购买栏不能吸顶，否则会盖住正文 */
  .wp-plan-detail { grid-template-columns: minmax(0, 1fr); }
  .wp-plan-detail-side { position: static; top: auto; }
}
@media (max-width: 640px) {
  .wp-plan-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .wp-plan-body { padding: 12px 13px 14px; gap: 6px; }
  .wp-plan-title { font-size: 13.5px; }
  .wp-plan-sum { font-size: 11.5px; min-height: 0; -webkit-line-clamp: 2; }
  .wp-price { font-size: 15.5px; }
  .wp-price-points { font-size: 10.5px; }
  .wp-plan-meta { font-size: 10.5px; gap: 6px; }
  .wp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .wp-form-foot { flex-direction: column; align-items: stretch; }
  .wp-form-foot .wp-btn { width: 100%; }
  .wp-kpi-row { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
  .wp-kpi { padding: 12px 13px; }
  .wp-kpi-num { font-size: 18px; }
  .wp-market-hero { padding: 15px 16px; }
  .wp-pay-qr { width: 100%; max-width: 248px; }
}

/* ══════════════════════════════════════════════════════════════════════════
 * 活动促销与代金券（2026-11 客户需求 #8 · 官网侧）
 *
 * ★ 设计取向：活动条与算价面板都是"钱的旁边"，必须比普通卡片更"实" ——
 *   用实色描边 + 渐变底色，不用纯玻璃拟态，避免在深色底上糊成一团。
 * ★ 金额一律用等宽数字（tabular-nums）：原价 68.00 与 减 6.80 竖排时
 *   小数点必须对齐，否则一眼看不出省了多少。
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── 活动横向条 ── */
.wp-promo-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.wp-promo-strip::-webkit-scrollbar { height: 6px; }
.wp-promo-strip::-webkit-scrollbar-thumb { background: rgba(120, 160, 230, .25); border-radius: 4px; }
.wp-promo-card {
  flex: 0 0 auto; display: flex; align-items: stretch; gap: 11px;
  min-width: 244px; max-width: 300px; padding: 10px 13px 10px 10px;
  border-radius: 14px; text-decoration: none; scroll-snap-align: start;
  border: 1px solid rgba(120, 200, 255, .26);
  background: linear-gradient(135deg, rgba(55, 230, 201, .10), rgba(154, 107, 255, .10));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wp-promo-card:hover {
  transform: translateY(-2px); border-color: rgba(120, 200, 255, .5);
  box-shadow: 0 10px 26px rgba(4, 10, 22, .5);
}
.wp-promo-card-img {
  flex: 0 0 62px; height: 62px; border-radius: 10px; background-size: cover;
  background-position: center; background-color: rgba(120, 160, 230, .14);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--wp-cyan);
}
.wp-promo-card-img-empty { background: var(--wp-grad-soft); border: 1px dashed rgba(120, 200, 255, .28); }
.wp-promo-card-body { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.wp-promo-card-body b { font-size: 13px; color: var(--wp-text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wp-promo-card-body em { font-style: normal; font-size: 12px; color: var(--wp-cyan); font-weight: 600; }
.wp-promo-card-body i { font-style: normal; font-size: 11px; color: var(--wp-muted); }

/* ── 算价面板 ── */
.wp-quote {
  margin: 12px 0 4px; padding: 12px 13px; border-radius: 12px;
  border: 1px solid var(--wp-border); background: rgba(10, 18, 34, .55);
}
.wp-quote-on { border-color: rgba(255, 196, 107, .38); background: rgba(255, 196, 107, .07); }
.wp-quote-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--wp-muted); padding: 3px 0;
}
.wp-quote-row s { color: var(--wp-dim); }
.wp-quote-row b, .wp-quote-pay b { font-variant-numeric: tabular-nums; }
.wp-quote-cut b { color: var(--wp-amber); }
.wp-quote-tip { font-size: 11.5px; color: var(--wp-amber); line-height: 1.7; padding: 3px 0; }
.wp-quote-pay {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--wp-border);
  font-size: 12.5px; color: var(--wp-text);
}
.wp-quote-pay b { font-size: 21px; font-weight: 800; color: var(--wp-cyan); letter-spacing: -.4px; }
.wp-quote-coupons { margin-top: 11px; }
.wp-quote-coupons-title { font-size: 12px; color: var(--wp-muted); margin-bottom: 6px; }
.wp-quote-coupon {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; border-radius: 9px;
  cursor: pointer; border: 1px solid transparent; transition: background .16s ease, border-color .16s ease;
}
.wp-quote-coupon:hover { background: rgba(120, 160, 230, .09); border-color: var(--wp-border); }
.wp-quote-coupon.is-off { opacity: .5; cursor: not-allowed; }
.wp-quote-coupon input { margin-top: 3px; accent-color: #37e6c9; }
.wp-quote-coupon-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wp-quote-coupon-main b { font-size: 13px; color: var(--wp-amber); font-variant-numeric: tabular-nums; }
.wp-quote-coupon-main em { font-style: normal; font-size: 12px; color: var(--wp-text); }
.wp-quote-coupon-main i { font-style: normal; font-size: 11px; color: var(--wp-muted); }
.wp-quote-foot {
  margin-top: 10px; font-size: 11px; line-height: 1.75; color: var(--wp-dim);
}
.wp-quote-foot a { color: var(--wp-cyan); text-decoration: none; }
.wp-quote-foot a:hover { text-decoration: underline; }

/* ── 活动落地页（#/promo） ── */
.wp-promo-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0;
  border-radius: 18px; overflow: hidden; margin-bottom: 18px;
  border: 1px solid rgba(120, 200, 255, .22);
  background: linear-gradient(120deg, rgba(55, 230, 201, .12), rgba(154, 107, 255, .12));
}
.wp-promo-hero-img {
  min-height: 260px; background-size: cover; background-position: center;
  background-color: rgba(10, 18, 34, .6);
}
.wp-promo-hero-img-empty { display: flex; align-items: center; justify-content: center; }
.wp-promo-hero-img-empty span {
  font-size: 40px; font-weight: 800; letter-spacing: 6px; color: transparent;
  background: var(--wp-grad); -webkit-background-clip: text; background-clip: text; opacity: .55;
}
.wp-promo-hero-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.wp-promo-hero-theme {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px; color: #061018;
  background: var(--wp-grad);
}
.wp-promo-hero-title { margin: 0; font-size: 25px; line-height: 1.35; color: var(--wp-text); letter-spacing: -.3px; }
.wp-promo-hero-sum { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--wp-muted); }
.wp-promo-hero-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.wp-promo-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.wp-promo-lower { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 18px; align-items: start; }
.wp-promo-content { padding: 20px 22px; }
.wp-promo-rich { font-size: 13.5px; line-height: 1.95; color: var(--wp-text); }
.wp-promo-rich p { margin: 0 0 12px; }
.wp-promo-rich img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.wp-promo-rich ul, .wp-promo-rich ol { margin: 0 0 12px; padding-left: 22px; }
.wp-promo-rich li { margin: 4px 0; }
.wp-promo-rich a { color: var(--wp-cyan); }
.wp-promo-share { padding: 18px; text-align: center; position: sticky; top: 88px; }
.wp-promo-qr {
  width: 168px; margin: 4px auto 10px; padding: 9px; border-radius: 12px; background: #fff;
}
.wp-promo-qr svg { display: block; width: 100%; height: auto; }
.wp-promo-share-tip { font-size: 12px; color: var(--wp-amber); margin-bottom: 10px; }

/* ── 领券中心 / 我的券 ── */
.wp-coupon-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.wp-coupon-card {
  position: relative; display: flex; align-items: stretch; gap: 12px; padding: 13px 14px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 196, 107, .3);
  background: linear-gradient(120deg, rgba(255, 196, 107, .10), rgba(55, 230, 201, .07));
}
.wp-coupon-card.is-off { opacity: .55; filter: grayscale(.4); }
/* 左侧锯齿：券的形状语义（"撕下来一张"），纯装饰，不参与布局 */
.wp-coupon-card::before, .wp-coupon-card::after {
  content: ''; position: absolute; left: 88px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--wp-bg);
}
.wp-coupon-card::before { top: -6px; }
.wp-coupon-card::after { bottom: -6px; }
.wp-coupon-amt {
  flex: 0 0 82px; display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 800; color: var(--wp-amber);
  font-variant-numeric: tabular-nums; letter-spacing: -.6px;
  border-right: 1px dashed rgba(255, 196, 107, .32); padding-right: 10px;
}
.wp-coupon-amt em { font-style: normal; font-size: 14px; font-weight: 700; margin-right: 1px; }
.wp-coupon-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wp-coupon-body b { font-size: 13px; color: var(--wp-text); line-height: 1.45; }
.wp-coupon-body i { font-style: normal; font-size: 11.5px; color: var(--wp-muted); }
.wp-coupon-off { font-size: 11px; color: var(--wp-red); }
.wp-coupon-claim { margin-top: 6px; align-self: flex-start; }
.wp-coupon-code {
  position: absolute; right: 12px; bottom: 9px; font-size: 10.5px; letter-spacing: .6px;
  color: var(--wp-dim); font-family: ui-monospace, Consolas, monospace;
}

@media (max-width: 980px) {
  .wp-promo-hero { grid-template-columns: minmax(0, 1fr); }
  .wp-promo-hero-img { min-height: 180px; }
  .wp-promo-lower { grid-template-columns: minmax(0, 1fr); }
  .wp-promo-share { position: static; }
}
@media (max-width: 640px) {
  .wp-promo-card { min-width: 214px; }
  .wp-promo-hero-title { font-size: 20px; }
  .wp-promo-hero-body { padding: 18px 16px; }
  .wp-coupon-grid { grid-template-columns: minmax(0, 1fr); }
  .wp-coupon-card::before, .wp-coupon-card::after { left: 82px; }
  .wp-quote-pay b { font-size: 19px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   会员中心 · 分区布局（2026-11 客户报障：页面非常乱、没有层次感）
   --------------------------------------------------------------------------
   【问题】
     原来会员中心是「一个大标题 + 十几个等宽卡片垂直堆叠」：
     卡片之间只有 18px，整页看下来像一堵墙，客户要滚三屏，
     而且哪些卡片讲同一件事（账户？钱？设备？）全靠自己猜。

   【解法：分段 + 分栏，而不是再加边框和阴影】
     · .wp-mc-sec     —— 一个分区。分区之间 30px，卡片之间 14px。
        ★ 距离本身就是层次：同一分区的卡片挨得近，跨分区的隔得远，
          眼睛扫一遍就知道"这几块是一组的"，不需要额外的分割线。
     · .wp-mc-sec-title —— 分区标题。12px、灰色、加字距、前置 3px 竖条。
        它不做大，因为页面主角是数据不是标题；
        但它必须有，因为"这一段在讲什么"是客户滑到一半最想知道的一句话。
     · .wp-mc-cols    —— 分区内的两列等高栅格。
        等高很关键：左卡三行、右卡两行时，右边空出来的那块白会让整屏显得没做完。
   ══════════════════════════════════════════════════════════════════════════ */

.wp-mc .wp-page-head { margin-bottom: 0; }

/* ── 页头：标题 / 主操作 / 次级操作三层 ── */
.wp-mc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.wp-mc-head-main { min-width: 220px; }
.wp-mc-head-main .wp-title { margin: 0; }
/* 页头副标题原来靠 .wp-page-head .wp-muted 生效；改成分区布局后那层容器没了，
   这里补回同样的字号与间距，避免副标题缩成 12px 贴在标题下面。 */
.wp-mc-head-main .wp-muted { margin-top: 4px; font-size: 13px; }
.wp-mc-head-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-mc-head-acts .wp-btn { margin: 0; }

/* 次级操作（我的数据 / 通知 / 退出）：一行小字，不再和主按钮抢注意力 */
.wp-mc-head-sub {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-size: 12px; color: var(--wp-muted); margin-top: -4px;
}
.wp-mc-head-sub .wp-link {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: var(--wp-muted); font: inherit; text-decoration: none;
  border-bottom: 1px dashed transparent; transition: color .16s, border-color .16s;
}
.wp-mc-head-sub .wp-link:hover { color: var(--wp-cyan); border-bottom-color: var(--wp-cyan); }
.wp-mc-dot { color: var(--wp-dim); }

/* ── 分区 ── */
/* ★ 间距只由分区控制：hero 自己的 18px 底距必须去掉，
   否则「18 + 30 = 48px」会在页面最上方留出一条莫名其妙的空白。 */
.wp-mc .wp-hero { margin-bottom: 0; }
.wp-mc-sec { margin-top: 30px; }
.wp-mc-sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--wp-muted); text-transform: none;
  margin: 0 0 12px 2px;
}
.wp-mc-sec-title::before {
  content: ""; width: 3px; height: 12px; border-radius: 3px;
  background: var(--wp-grad); flex: 0 0 auto;
}

/* 分区内两列：等高、等宽，窄屏自动单列 */
.wp-mc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.wp-mc-cols > * { margin-bottom: 0 !important; height: 100%; }
.wp-mc-cols > .wp-card { display: flex; flex-direction: column; }
.wp-mc-cols > .wp-card > .wp-table-wrap { flex: 1 1 auto; }

/* 分区里"两列之后还要一张通栏卡"时用（例如数据概览） */
.wp-mc-cols + .wp-card, .wp-mc-cols + .wp-grid { margin-top: 14px; }

/* 单列分区里的卡片也不再用原来的 18px 底距 */
.wp-mc-sec > .wp-card { margin-bottom: 0; }

@media (max-width: 900px) {
  .wp-mc-cols { grid-template-columns: minmax(0, 1fr); }
  .wp-mc-head { flex-direction: column; align-items: stretch; }
  .wp-mc-head-acts { justify-content: flex-start; }
}

/* ── 折叠块：把"想看的人点开、不想看的人不挡路"的长内容收起来 ──
   ★ 会员中心已到期状态原来把功能清单全铺开，一屏里一半是客户当下用不上的信息。
     用原生 <details> 而不是 JS 折叠：不需要额外状态、键盘可达、打印时自动展开。 */
.wp-more { margin: 4px 0 12px; }
.wp-more > summary {
  cursor: pointer; font-size: 12.5px; color: var(--wp-cyan);
  list-style: none; padding: 4px 0; user-select: none;
}
.wp-more > summary::-webkit-details-marker { display: none; }
.wp-more > summary::before {
  content: "▸"; display: inline-block; margin-right: 6px;
  transition: transform .16s ease;
}
.wp-more[open] > summary::before { transform: rotate(90deg); }
.wp-more > summary:hover { color: var(--wp-text); }
