/* ============================================================
   pages.css — 各页面专属样式（仅页面级；公共样式在 base/components）
   ============================================================ */

/* ═══════ 首页 ═══════ */

.me-hero {
  position: relative;
  padding: 84px 20px 64px;
  /*text-align: center;*/
  overflow: hidden;
}
.me-hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 20% 10%, var(--primary-weak), transparent),
    radial-gradient(500px 260px at 85% 25%, var(--info-bg), transparent);
}
.me-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.me-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--primary-weak);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.me-hero-badge .me-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: me-pulse 1.6s ease infinite;
}
@keyframes me-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--success-bg); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.me-hero h1 {
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, var(--text) 30%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.me-hero-sub {
  color: var(--text-2);
  font-size: clamp(14px, 1.8vw, 17px);
  max-width: 560px;
  margin: 0 auto 30px;
}
.me-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.me-home-section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 52px 20px;
}
.me-home-section-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 6px;
}
.me-home-section-sub {
  text-align: center;
  color: var(--text-3);
  margin-bottom: 30px;
  font-size: 14px;
}

.me-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--module-gap);
  max-width: 760px;
  margin: 44px auto 0;
}
.me-stat-num { font-size: 30px; font-weight: 800; color: var(--primary); }
.me-stat-label { color: var(--text-3); font-size: 13px; }

.me-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--module-gap);
}
.me-why-card {
  padding: calc(var(--module-gap) * 1.3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--dur-fast);
}
.me-why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.me-why-icon {
  width: 42px; height: 42px;
  border-radius: calc(var(--radius) * .8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.me-why-card h4 { margin-bottom: 6px; font-size: 15px; }
.me-why-card p { color: var(--text-3); font-size: 13px; }

/* 原 `.me-tabs-nav { display: none }` 已删除：首页模型生态轮播的分组 Tab 用的就是这类名，
   被整条隐藏后「国内 / 海外 / 多模态」三个 Tab 完全不可见（只能看到第一组，切不了）。
   现在统一用 base.css 的 `.me-tabs`（inline-flex 分段控件）。 */

.me-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--module-gap);
}
.me-step-card { text-align: center; padding: 22px 14px; }
.me-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-weak);
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 17px;
}

.me-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.me-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.me-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.me-faq-q svg { transition: transform var(--dur-fast); flex-shrink: 0; }
.me-faq-item.open .me-faq-q svg { transform: rotate(180deg); }
.me-faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); color: var(--text-3); font-size: 13px; }
.me-faq-item.open .me-faq-a { max-height: 200px; }
.me-faq-a > div { padding: 0 16px 14px; }

@media (max-width: 768px) {
  .me-stats-row { grid-template-columns: 1fr; gap: 10px; }
  .me-hero { padding: 52px 16px 40px; }
}

/* ═══════ 认证页（登录/注册/重置密码） ═══════ */

.me-auth-wrap {
  min-height: calc(100vh - var(--header-h) - var(--footer-h,200px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.me-auth-card {
  width: 400px;
  max-width: 100%;
  padding: 32px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow-lg);
}
.me-auth-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.me-auth-sub { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.me-auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}
.me-auth-links a { color: var(--primary); cursor: pointer; font-weight: 500; }
.me-auth-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.me-auth-row { display: flex; gap: 10px; }
.me-sms-btn { flex-shrink: 0; min-width: 104px; }
.me-auth-footer { text-align: center; margin-top: 14px; }
.me-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
  margin: 16px 0;
}
.me-auth-divider::before, .me-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.me-github-btn { width: 100%; }

/* ═══════ Playground 聊天 ═══════ */

.me-chat-area {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 1px);
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.me-chat-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-card);
}
.me-chat-title { font-weight: 700; font-size: 15px; margin-right: auto; }
.me-chat-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) * .8);
  background: var(--bg-input);
  cursor: pointer;
  font-size: 13px;
  position: relative;
  width: 140px;
}
.me-chat-select b { color: var(--primary); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chat-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  padding: 6px;
}
.me-chat-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: calc(var(--radius) * .7);
  cursor: pointer;
  font-size: 13px;
}
.me-chat-select-item:hover { background: var(--bg-hover); }
.me-chat-select-item.active { background: var(--primary-weak); color: var(--primary); }
/* 名称（模型名 / 密钥名）**恒为一行**，超出用省略号；`title` 属性提供完整文案（见 me-page-playground 模板）。
   ⚠️ `min-width: 0` 不能省：flex 子项默认 `min-width: auto` 不肯收缩，
      长模型名会把右侧副标题整个挤出菜单（菜单只有 220px 宽）。 */
.me-chat-select-item > b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 副标题（渠道 · 类型 / 脱敏密钥）：**固定 7 个字符宽**，让每行右对齐、列宽完全一致。
   `em` 相对自身字号（11px）→ `7em` = 77px。
   ⚠️ 用 `width` 而不是 `min-width`：`min-width` 只是「不小于」，超长文案（如
      「阿里云百炼(文生图) · 聊天」）仍会把这一列撑宽 → 该行与其它行的列不齐；
     固定宽度 + 省略号才能保证「列对齐 + 超长截断」，完整值由 `title` 提供。 */
.me-chat-select-item .me-cs-sub {
  color: var(--text-3);
  font-size: 11px;
  flex: none;
  width: 7em;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.me-msg { display: flex; gap: 12px; max-width: 86%; }
.me-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.me-msg-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.me-msg.assistant .me-msg-avatar { background: linear-gradient(135deg, var(--primary), var(--info)); }
.me-msg.user .me-msg-avatar { background: var(--success); }
.me-msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.me-msg.user .me-msg-bubble { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 流式等待光标（▍）：只在「最后一条助手气泡 + sending」时出现。
   节点常驻、由 CSS 动画闪烁 —— 打字机只在 .js-msg-text 上写内容，
   光标节点不会被替换，动画不会被打断重启（这正是"最小 DOM 更新"的收益）；
   prefers-reduced-motion 下由 tokens.css 统一降级为常亮，不会闪。 */
.me-msg-cursor {
  display: inline-block;
  opacity: 1;
  animation: me-cursor-blink 1s step-end infinite;
}
@keyframes me-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.me-msg-empty {
  margin: auto;
  text-align: center;
  color: var(--text-3);
}
.me-msg-empty svg { opacity: .35; margin-bottom: 12px; }

/* ── 图片生成调试（playground，仅图片类模型渲染） ──
   参数行放在输入框上方，与输入区同组（分隔线仍由 .me-chat-inputbar 提供，这里不加 border-top）。 */
.me-img-params {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 10px;
  flex-wrap: wrap;
  background: var(--bg-card);
}
.me-img-params .me-img-neg { flex: 1; min-width: 180px; }
.me-img-params input, .me-img-params select { min-width: 0; }

/* 生成结果：1~4 张自适应网格，点击放大（utils.previewImage） */
.me-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-width: 420px;
}
.me-img-grid img {
  width: 100%;
  border-radius: calc(var(--radius) * .8);
  cursor: zoom-in;
  background: var(--bg-soft);
}

/* 生成中占位 / 失败原因（都在助手气泡内） */
.me-img-pending { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.me-img-error { color: var(--danger); font-size: 13px; word-break: break-word; }
/* 对话里的**请求失败原因**：单独一块（不是正文的一部分，见 me-page-playground 的 fail() 与模板）。
   左侧竖线 + 淡红底 + 红字 —— 与「模型生成的内容」在视觉上一眼区分：
   用户要能立刻判断「这句是系统说的，不是模型胡说」。图片路径的 `.me-img-error` 是同一信息（纯文字版）。 */
.me-msg-error {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
  border-radius: 4px;
  word-break: break-word;
}

.me-chat-inputbar {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.me-chat-inputbar textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 140px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 14px;
  font: inherit;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.me-chat-inputbar textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }

/* ═══════ Keys ═══════ */

.me-key-value {
  font-family: Consolas, monospace;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.me-key-value .me-copy-btn {
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  padding: 3px;
  border-radius: 5px;
  display: inline-flex;
}
.me-key-value .me-copy-btn:hover { color: var(--primary); background: var(--primary-weak); }

/* ═══════ Wallet ═══════ */

.me-balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary), #7c5cf0 60%, #a855f7);
  color: #fff;
  border-radius: calc(var(--radius) * 1.4);
  padding: calc(var(--module-gap) * 1.6);
  box-shadow: var(--shadow-lg);
}
.me-balance-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.me-balance-label { font-size: 12px; opacity: .85; }
.me-balance-value { font-size: 34px; font-weight: 800; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.me-balance-vip { font-size: 12px; opacity: .9; }
.me-balance-actions { display: flex; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.me-balance-actions .me-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.me-balance-actions .me-btn:hover { background: #fff; color: var(--primary); border-color: #fff; }

.me-preset-amounts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.me-preset-amount {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--dur-fast);
}
.me-preset-amount.active { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); }

/* ═══════ Profile ═══════ */

.me-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: calc(var(--module-gap) * 1.3);
  margin-bottom: var(--module-gap);
  flex-wrap: wrap;
}
.me-profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  position: relative;
}
.me-profile-avatar:hover::after {
  content: "✎";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.me-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.me-profile-tabs { display: flex; gap: 6px; margin-bottom: var(--module-gap); flex-wrap: wrap; }
.me-profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: calc(var(--radius) * .8);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.me-profile-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); font-weight: 600; }

/* 个人资料页的面板组件宿主：自定义元素默认 display:inline，会给内部的块级卡片
   插入匿名行盒（多出缝隙）。页面切 Tab 时只改 style.display（'' → 回到这里的 block）。 */
me-profile-cert, me-profile-settings { display: block; }

.me-section-card { margin-bottom: var(--module-gap); }
.me-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.me-section-header h4 { font-size: 15px; }
.me-section-subtitle { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.me-section-icon {
  width: 40px; height: 40px;
  border-radius: calc(var(--radius) * .8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.me-section-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.me-binding-value { font-weight: 600; font-size: 14px; }
.me-binding-status { margin-left: 10px; font-size: 12px; border-radius: 99px; padding: 2px 10px; }
.me-binding-status.bound { background: var(--success-bg); color: var(--success); }
.me-binding-status.unbound { background: var(--bg-soft); color: var(--text-3); }
.me-btn-outline-sm { padding: 6px 14px; }

/* 表单行：**标签列按内容自适应**（原为固定 80px）——
   配合 `.me-form-label` 的 `min-width: 7em`，列宽 = max(7em, 最长标签)，于是
   ① 各行标签列等宽、输入框起点对齐；② 6 字标签（纳税人识别号 / 法人身份证号）不折行。
   固定 80px 时 `min-width: 7em`(91px) 会**溢出到 gap 里**，看起来像标签没对齐。
   ⚠️ 每个 `.me-form-row` 是**独立**网格，所以「多传一个子元素」会被排到第二行第一列、
      反过来把标签列撑宽 —— 提示类内容请与输入框包在同一个 div 里（见 me-profile-cert 电话行） */
.me-form-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
/* 表单标签：右对齐 + **最小宽度 7em**（13px 字号 ≈ 91px）——
   让各行的标签列宽度一致（短标签如「备注」不再让输入框起点参差），
   也刚好容下最长的 6 字标签（「纳税人识别号」「法人身份证号」）不折行。
   ⚠️ `min-width` 只保证标签**自身的盒子**不小于 7em；列宽是否跟着变取决于容器的列定义 ——
      `.me-form-row` 默认是固定 `80px 1fr`，标签会从 80px 列里向右溢出约 11px（仍在 12px 的 gap 内）；
      `.me-cert-form` 内已把列改成 `max-content 1fr`，所以那里会真正按 7em（或更长标签）撑开 */
.me-form-label { color: var(--text-2); font-size: 13px; text-align: right; min-width: 7em; }
.me-form-value { color: var(--text-2); font-size: 13px; }
/* 只读 / 禁用输入框的样式已统一到 `base.css`（`.me-input[readonly], .me-input:disabled`）——
   那里用「虚线边框 + 弱化文字 + not-allowed」三重区分，避免只改背景（与默认底色几乎同色）看不出来 */
/* 企业认证面板：标签**不折行**（`min-width: 7em` 已保证列宽足够，nowrap 保证长标签不会换行
   把必填 `*` 挤到第二行）。列宽规则已提到全局 `.me-form-row`，此处不再重复声明。 */
.me-cert-form .me-form-label { white-space: nowrap; }

.me-security-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) * .8);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background var(--dur-fast);
}
.me-security-item:hover { background: var(--bg-hover); }
.me-security-item.danger .me-sec-title { color: var(--danger); }
.me-sec-title { font-weight: 600; font-size: 13.5px; display: block; }
.me-sec-desc { font-size: 12px; color: var(--text-3); display: block; margin-top: 2px; }
.me-sec-chevron { margin-left: auto; color: var(--text-3); flex-shrink: 0; }

/* ═══════ Refund ═══════ */

.me-refund-balance-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(var(--module-gap) * 1.2);
  margin-bottom: var(--module-gap);
  background: linear-gradient(120deg, var(--warning-bg), transparent);
  border: 1px dashed var(--warning);
  border-radius: var(--radius);
}
.me-refund-amount-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--warning-bg);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.me-refund-amount-val { font-size: 24px; font-weight: 800; color: var(--warning); font-variant-numeric: tabular-nums; }
.me-refund-amount-label { font-size: 12px; color: var(--text-3); }
.me-refund-form-wrap { max-width: 560px; }
.me-refund-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.me-refund-readonly-input { background: var(--bg-soft) !important; }

/* ═══════ Dashboard ═══════ */

/* 图表区（数据源 GET /web/user/index 的 chart）：纯 CSS 柱状/条形，不引图表库。
   三张卡自适应排布（≥280px 一列，窄屏自动堆叠）。 */
.me-dash-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--module-gap);
  margin-bottom: var(--module-gap);
}
.me-dash-chart h3 { margin-bottom: 12px; font-size: 14px; }
.me-dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.me-dash-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.me-dash-bar-fill {
  width: 100%;
  min-height: 2px;                 /* 值为 0 时也留一条细线，避免整片空白像「坏了」 */
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  transition: height var(--dur) var(--ease);
}
.me-dash-bar-labels { display: flex; gap: 6px; margin-top: 6px; }
.me-dash-bar-labels span {
  flex: 1; text-align: center; font-size: 10px; color: var(--text-3); white-space: nowrap;
}
.me-dash-hbars { display: flex; flex-direction: column; gap: 8px; }
.me-dash-hbar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.me-dash-hbar-name {
  width: 96px; flex: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;   /* 长模型名单行省略 */
  color: var(--text-2);
}
.me-dash-hbar-track { flex: 1; min-width: 0; height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.me-dash-hbar-fill { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.me-dash-hbar-val { width: 64px; flex: none; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

.me-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--module-gap);
  margin-bottom: var(--module-gap);
}
.me-dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--module-gap);
}
.me-dist-bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.me-dist-bar-label { width: 130px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-dist-bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: var(--bg-soft);
  overflow: hidden;
}
.me-dist-bar-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width .6s var(--ease); }
.me-dist-bar-num { width: 60px; text-align: right; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 1024px) { .me-dash-grid { grid-template-columns: 1fr; } }

/* ═══════ Rankings / Pricing ═══════ */

.me-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  background: var(--bg-soft);
  color: var(--text-3);
}
.me-rank-badge.r1 { background: #fde68a; color: #92400e; }
.me-rank-badge.r2 { background: #e5e7eb; color: #4b5563; }
.me-rank-badge.r3 { background: #fed7aa; color: #9a3412; }

.me-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 卡并列均分（对齐旧版 .pricing-grid） */
  gap: var(--module-gap);
}
@media (max-width: 768px) {
  .me-pricing-grid { grid-template-columns: 1fr; }   /* 小屏每行 1 卡 */
}
.me-plan-card {
  position: relative;
  padding: calc(var(--module-gap) * 1.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--dur-fast);
}
.me-plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.me-plan-card.popular { border-color: var(--primary); box-shadow: 0 8px 24px var(--primary-weak); }
.me-plan-pop-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  padding: 3px 10px;
  font-weight: 600;
}
.me-plan-price { font-size: 28px; font-weight: 800; color: var(--primary); }
.me-plan-price small { font-size: 12px; color: var(--text-3); font-weight: 400; }
.me-plan-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.me-plan-feats li { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.me-plan-feats li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ═══════ About / Agreement ═══════ */

.me-article-page { max-width: 960px; margin: 0 auto; }
.me-article-content { line-height: 1.9; color: var(--text-2); font-size: 14px; }
.me-article-content h2, .me-article-content h3 { margin: 22px 0 10px; color: var(--text); }
.me-article-content p { margin: 10px 0; }
.me-article-content ul, .me-article-content ol { padding-left: 22px; margin: 10px 0; }

@media (max-width: 768px) { .me-article-page { max-width: 100%; } }

/* ═══════ 行业动态（me-page-news 列表 / me-page-news-detail 详情）═══════
   列表 = 缩略图 + 标题 + 摘要（副标题）+ 时间；详情 = 标题 + 时间 + 封面 + 富文本。
   正文富文本复用 `.me-article-content`（与关于我们 / 用户协议同一套排版）。 */

.me-news-page { max-width: 960px; }

.me-news-list { display: flex; flex-direction: column; gap: 14px; }
.me-news-card {
  display: flex; gap: 16px; align-items: stretch;
  /* 底线高度 = **图片高度(216×144 → 144) + 上下内边距(14×2)**：行高不小于图片 →
     右侧内容被 flex 拉伸到与图片等高（多出的空间由 `.me-news-meta` 的 `margin-top: auto` 吸收，
     时间贴底 → 与图片底边齐平）。⚠️ 改图片尺寸时这个值要跟着改（两处是一组）。 */
  min-height: 172px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
/* ⚠️ 卡片**本身不是链接**（只有缩略图与标题是，见 pages/me-page-news.js 的 `_card()`）：
   hover 只给「当前行」一个弱提示（描边 + 阴影），**不做上浮** —— 上浮会让人以为整卡可点。 */
.me-news-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* 缩略图：**固定尺寸 + 锁定比例（3:2）**，所有条目一致、窗口怎么缩放比例都不变。
   ⚠️ 这里**不能写 `align-self: stretch`**（上一版就是那样）：flex 拉伸会覆盖 `aspect-ratio`
      （`height: auto` 时以拉伸为准）→ 图片高度跟着文字换行变化，于是「每条卡片的图片大小不一」
      「窗口缩放时宽高比在变」两个问题都会出现。改成 `flex-start` + `aspect-ratio` 后，
      高度只由「固定 px 宽度 × 3:2」决定，与内容、与视口宽度都无关。
   `display: flex` 让 img 直接作为拉伸项撑满这个 3:2 的盒子（比给子元素写 percentage height 更稳）；
   无图时的 `.is-blank` 占位块同样撑满 → 版式与有图时完全一致。 */
.me-news-thumb-link {
  flex: none; align-self: flex-start; display: flex;
  width: 216px;                                   /* 固定 px（不跟 vw 走），所有条目一致 */
  aspect-ratio: 3 / 2;                            /* → 216 × 144，锁死比例 */
  border-radius: calc(var(--radius) * .85);
  overflow: hidden;                               /* 配合圆角裁掉图片溢出 */
}
.me-news-thumb {
  width: 100%; height: 100%;
  object-fit: cover;                              /* 尺寸固定，但来源图比例各异 → 用 cover 裁切而不是拉变形 */
  background: var(--bg-soft);                     /* 无图 / 加载中时的底色，避免版式出现空洞 */
  border-radius: inherit;
  transition: opacity var(--dur-fast);
}
.me-news-thumb-link:hover .me-news-thumb { opacity: .86; }   /* 可点区域只有图与标题：hover 反馈也只给这两处 */

.me-news-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.me-news-title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.5; color: var(--text); }
.me-news-title-link {
  color: inherit; text-decoration: none;
  /* 最多两行（标题过长时截断，列表版式才整齐）；-webkit-box 是这套行数截断的标准写法。
     截断放在 `<a>` 上而不是 `<h3>` 上 —— h3 里现在是**行内链接**，clamp 的容器要落在真正装文字的那个盒子上。
     `line-clamp` 与 `-webkit-line-clamp` 两个都写（同 `.me-mobile-link` 的写法）：新浏览器走标准属性，
     老内核只认 `-webkit-` 前缀那个 */
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.me-news-title-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.me-news-summary {
  margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.me-news-meta { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--text-3); }
/* 阅览次数（`read_num`）：**整段不可断行** —— 320px 下文字列只剩约 124px，
   「2026-09-24 · 104 次浏览」放不下，若允许任意断行会把「次浏/览」拆到两行（实测如此）。
   加上 nowrap 后，浏览器只能在**前面的空格**处断（分隔符 `·` 留在上一行末尾）：
   第一行「2026-09-24 ·」、第二行「104 次浏览」 —— 卡片高度由图片+内边距决定，实测不变。 */
.me-news-reads { white-space: nowrap; }
/* 元信息行分两种布局（两段是并列的 `span`，见 me-page-news.js 的 `_metaHtml`）：
   · **宽屏（≥769）**：flex + `margin-left:auto` ⇒ **两侧对齐**（发布时间贴左、阅览次数贴右）；
   · **窄屏（≤768）**：退回内联，分隔符 `·` 由 CSS 生成 —— 用 `+` 选择器只在该段前面
     **确实有时间**时插入，避免「只有阅览数」的数据出现前导「· 」（拼文本时踩过这个坑）。 */
@media (min-width: 769px) {
  .me-news-meta { display: flex; align-items: baseline; gap: 12px; }
  .me-news-reads { margin-left: auto; }
}
@media (max-width: 768px) {
  /* 分隔符挂在**时间那段**上（`.is-pair` 由 `_metaHtml` 在两段都在时加）：
     320px 折行时分隔符留在上一行末尾（`2026-09-24 ·` / `104 次浏览`），
     不会变成下一行的前导「· 」。`.me-news-time` 加 nowrap 保证「时间 + 分隔符」不被拆开。
     ⚠️ 写成 `.me-news-reads::before` 也能显示，但折行时那个点会跟着阅览数跑到行首（实测踩过）。 */
  .me-news-meta.is-pair .me-news-time { white-space: wrap; }
  .me-news-meta.is-pair .me-news-time::after { content: ' · '; }
}

.me-news-detail-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.4; }
.me-news-detail-meta { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.me-news-detail-cover {
  display: block; width: 100%; max-height: 360px; object-fit: cover;
  margin-top: 18px; border-radius: var(--radius);
}
.me-news-detail-content { margin-top: 18px; }
/* ⚠️ 正文里的 <img> 来自后台编辑器（接口返回的 content 自带大图）→ 必须限宽，
   否则一张宽图会把整页撑出横向滚动条 */
.me-news-detail-content img { max-width: 100%; height: auto; border-radius: calc(var(--radius) * .85); }
.me-news-detail-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  /* 窄屏：行高 = 图片高(132×2/3 = 88) + 内边距(12×2)（同桌面那组关系） */
  .me-news-card { gap: 12px; padding: 12px; min-height: 112px; }
  /* 小屏**图片占比再收一档**：152 → 132（3:2 不变，比例仍锁死）。
     ⚠️ 这里有个硬约束：`图高 ≥ 文字块高` 才能保持"图与内容等高"，而 3:2 下 图高 = 宽度 × 2/3，
        所以**想缩小图片就必须同时收紧文字块**（见下面三条：标题 15→14、摘要 12.5→12、时间 12→11，
        以及摘要上边距 6→4、时间上内边距 10→4）。只压图片宽度会让文字块反过来高出一截。 */
  .me-news-thumb-link { width: 132px; }
  .me-news-title { font-size: 14px; }
  .me-news-summary { margin-top: 4px; font-size: 12px; -webkit-line-clamp: 1; line-clamp: 1; }
  .me-news-meta { padding-top: 4px; font-size: 11px; }
  .me-news-detail-title { font-size: 20px; }
  .me-news-detail-cover { max-height: 220px; }
}
/* 超窄屏（≤360）：发布时间只留日期（见 pages/me-page-news.js 的 `_timeHtml`）。
   `2026-09-21 15:19:13` 在这个宽度下会折成两行 → 文字块被顶高约 17px，就不与图片等高齐平了。 */
@media (max-width: 360px) {
  .me-news-clock { display: none; }
}

/* ═══════ 404 ═══════ */

.me-notfound {
  text-align: center;
  padding: 110px 20px;
}
.me-notfound-code { font-size: 88px; font-weight: 900; color: var(--primary-weak); -webkit-text-stroke: 2px var(--primary); }

/* ═══════ 任务日志 ═══════ */

.me-task-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--module-gap); }
.me-task-chip { font-size: 12px; border-radius: 99px; padding: 4px 12px; background: var(--bg-soft); color: var(--text-2); }
.me-task-progress { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.me-task-progress-bar { flex: 1; height: 7px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.me-task-progress-fill { height: 100%; border-radius: 99px; background: var(--info); transition: width .5s var(--ease); }
.me-task-progress-fill.ok { background: var(--success); }
.me-task-progress-fill.err { background: var(--danger); }
.me-task-progress-num { font-size: 11px; color: var(--text-3); width: 32px; }
.me-task-time-cell span { display: block; }
.me-task-time-rel { font-size: 11px; color: var(--text-3); }

/* ═══════ 筛选栏（日志类页面公共） ═══════ */

.me-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: calc(var(--module-gap) * .9) calc(var(--module-gap) * 1.1);
  margin-bottom: var(--module-gap);
}
.me-filter-actions { margin-left: auto; display: flex; gap: 8px; }
.me-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: var(--module-gap);
}
.me-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.me-summary-item .me-sum-val { font-weight: 700; font-size: 15px; }
.me-summary-item .me-sum-lbl { font-size: 11px; color: var(--text-3); }
/* 企业数据统计页（/enterprise/stat）的分块小标题：账户概览 / 用量汇总 / 近 30 天趋势 / 子账号排行。
   该页**整页复用**看板与通用组件（`.me-summary-bar`、`.me-dash-charts`、`.me-dash-bars`、
   `.me-dash-hbar-*`、`.me-tbl`），所以只多这一条标题样式 —— 新页面不再另造一套卡片/图表外观。 */
.me-estat-h { margin: 0 0 10px; font-size: 14px; }

/* ── 首页：section-line / why 跑马灯 item ── */

.me-section-line {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.me-section-line .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.me-why-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.me-why-marquee-item::before {
  content: "✦";
  color: var(--primary);
}

/* ── WHY INT API 三卡无限轮播（槽位制：3 可见 + 前后各 1 个屏外占位） ──
   每张卡绝对定位在视口内，位置由 `[data-slot]` 决定：
     0 = 屏外左占位 · 1 = 左 · 2 = 中 · 3 = 右 · 4 = 屏外右占位
   切卡 = JS 把每张卡的 data-slot 沿环挪一格（只改样式，不动 DOM、不重建）；
   无 data-slot 的节点 = 环上待命（停在中心但 opacity:0 且不接收点击）。
   槽位偏移用「卡片宽度的百分比」表达（translate 的百分比相对元素自身宽度），
   因此「宽屏一屏三张」与「窄屏一屏一张」共用同一组规则。 */
.me-why-marquee { position: relative; --me-why-gap: 20px; }
/* 上下留出 12px：卡片绝对定位后 hover 阴影仍需要一点空间（overflow:hidden 会裁边），
   视口高度由 JS 写 min-height = 最高卡片 + 24px（两种 box-sizing 下都成立） */
.me-why-viewport { position: relative; overflow: hidden; width: 100%; padding: 12px 0; }

.me-why-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc((100% - var(--me-why-gap) * 2) / 3);
  padding: 30px 26px;
  overflow: hidden;
  opacity: 0;                                  /* 未入槽 / 屏外占位：不可见 */
  pointer-events: none;                        /* 不可见时不吃点击 */
  transform: translateX(-50%);
  will-change: transform;
  transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .6s, box-shadow var(--dur);
}
/* 首帧（组件渲染中）不做过渡：避免卡片从中心「飞」到各自槽位 */
.me-why-noanim .me-why-card { transition: none; }

/* 屏外占位（0 / 4）：两张「一屏」之外的位置，透明不可见，只为让进出场有连贯的位移方向 */
.me-why-card[data-slot="0"] { transform: translateX(calc(-50% - (100% + var(--me-why-gap)) * 2)); }
.me-why-card[data-slot="4"] { transform: translateX(calc(-50% + (100% + var(--me-why-gap)) * 2)); }
/* 可见三张（1 / 2 / 3）：位置与之前一致（三张等宽等距并排，不做缩放 / 淡化）——
   若想要「中间突出」的层叠感，在这里给 1/3 加 scale(.94) + opacity:.72 即可 */
.me-why-card[data-slot="1"] { transform: translateX(calc(-50% - 100% - var(--me-why-gap))); opacity: 1; pointer-events: auto; }
.me-why-card[data-slot="2"] { transform: translateX(-50%); opacity: 1; pointer-events: auto; z-index: 2; }
.me-why-card[data-slot="3"] { transform: translateX(calc(-50% + 100% + var(--me-why-gap))); opacity: 1; pointer-events: auto; }
/* hover 只加阴影：**不要再写 transform**（会覆盖槽位的 translateX，卡片会跳到屏幕中间） */
.me-why-card[data-slot]:hover { box-shadow: var(--shadow-lg); }
.me-why-card-title { font-size: 17px; font-weight: 800; color: var(--text); }
.me-why-card-divider { width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin: 12px 0 16px; }
.me-why-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.me-why-card-checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.me-why-card-checklist li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.me-why-card-checklist li svg { color: var(--success); flex-shrink: 0; }
.me-why-card-metric { margin-top: 18px; padding: 10px 14px; border-radius: var(--radius); background: var(--primary-weak); text-align: center; }
.me-why-card-metric span { font-size: 13px; font-weight: 700; color: var(--primary); }
.me-why-card-decor { position: absolute; right: 10px; bottom: 10px; opacity: .05; pointer-events: none; }
.me-why-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: .7;
  transition: all var(--dur-fast);
}
.me-why-nav:hover { opacity: 1; color: var(--primary); border-color: var(--primary); }
.me-why-nav.prev { left: 4px; }
.me-why-nav.next { right: 4px; }
@media (max-width: 768px) {
  /* 窄屏：一屏一张（可见槽位仍是 2，左右槽位因卡宽=100% 自然落到屏外） */
  .me-why-marquee { --me-why-gap: 12px; }
  .me-why-card { width: 100%; padding: 22px 18px; }
  .me-why-nav { width: 36px; height: 36px; }
  .me-why-nav.prev { left: 0; }
  .me-why-nav.next { right: 0; }
}
.me-hero-left { position: relative; z-index: 2; }
.me-hero-right { position: relative; z-index: 1; }

/* ── 首页 Pricing 预览 ── */

.me-home-section-sub { text-align: center; }

/* 日志详情展开行 */
.me-log-detail-panel { padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius); }
.me-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 16px;
}
.me-detail-item .me-detail-label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.me-detail-item code { font-size: 12px; }

/* ═══════════════════════════════════════════════
   以下为按 design.md 规格补充的页面样式（对齐原版）
   ═══════════════════════════════════════════════ */

/* ── 首页 Hero（内联 stats / 双行副标题 / orbit 轨道） ── */

.me-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  max-width: var(--page-max);   /* 与页面主体内容宽度一致 */
  margin: 0 auto;
}
.me-hero-title-sub { margin-top: 10px; font-size: clamp(15px, 2vw, 20px); font-weight: 600; line-height: 1.5; }
/* ⚠️ `.me-hero h1` 用了渐变文字（`-webkit-text-fill-color: transparent`，该属性会**继承**），
   子元素不重置成 `currentColor` 的话，这两行的 `color` 完全不生效（两行都变父级渐变色，甚至整行透明）。 */
.me-hero-title-sub .t1 { color: var(--primary); display: block; -webkit-text-fill-color: currentColor; }
.me-hero-title-sub .t2 { color: var(--text-2); display: block; -webkit-text-fill-color: currentColor; }
.me-hero-stats { display: flex; gap: 34px; margin: 26px 0 28px; flex-wrap: wrap; }
.me-hero-stats .hs-item .hs-val { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.me-hero-stats .hs-item .hs-lbl { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.me-orbit { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.me-orbit-glow {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-weak), transparent 70%);
}
.me-orbit-ring, .me-orbit-ring2 {
  position: absolute; inset: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  animation: me-orbit-spin 22s linear infinite;
}
.me-orbit-ring2 { inset: 14%; border-style: dashed; animation-duration: 15s; animation-direction: reverse; }
.me-orbit-ring::before, .me-orbit-ring2::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.me-orbit-center {
  position: absolute; inset: 38%;
  border-radius: 50%;
  background: var(--primary-weak);
  border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
}
@keyframes me-orbit-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .me-hero-grid { grid-template-columns: 1fr; } .me-orbit { display: none; } }

/* ── 首页 模型轮播（showcase，槽位制：可见列 + 前后各 1 个屏外占位） ──
   每张卡绝对定位，位置由 `[data-slot]` 决定：
     0 = 屏外左占位 · 1~4 = 可见列 · 5 = 屏外右占位
   槽位偏移 = `--me-sc-k × (卡片宽度 + gap)`（translate 的百分比相对元素自身宽度）。
   三种断点（可见列数由 CSS 决定，JS 不感知，见 dev-manual §10.9）：
     >1200px          一屏 4 列（基准，k = ∓0.5 / ±1.5 半步长对称）
     768 ~ 1199px     一屏 3 列（k = -1 / 0 / +1 整数对称）
     ≤768px           一屏 1 列（卡片满宽，k 与 3 列相同）
   切卡 = JS 把每张卡的 data-slot 沿环挪一格（只改样式，不动 DOM、不重建）。 */

.me-showcase { position: relative; --me-sc-gap: 28px; }
/* 上下留 12px 给 hover 阴影（overflow:hidden 会裁边）；高度由 JS 按最高卡 + 24 写 min-height */
.me-showcase-viewport { position: relative; overflow: hidden; padding: 12px 0; min-height: 364px; }

/* 卡片：对齐旧版 .showcase-model-col（一屏 4/3/1 列 / 垂直居中 / 等高；宽度断点见文件下方） */
.me-showcase-col {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc((100% - var(--me-sc-gap) * 3) / 4);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  opacity: 0;                                  /* 未入槽 / 屏外占位：不可见 */
  pointer-events: none;                        /* 不可见时不吃点击 */
  transform: translateX(calc(-50% + var(--me-sc-k, 0) * (100% + var(--me-sc-gap))));
  will-change: transform;
  transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .6s, box-shadow var(--dur);
}
/* 首帧（组件渲染中）不做过渡：避免卡片从中心「飞」到各自槽位 */
.me-showcase-noanim .me-showcase-col { transition: none; }

/* 宽屏：四列围绕视口中心对称（-1.5 / -0.5 / +0.5 / +1.5），0 与 5 在屏外 */
.me-showcase-col[data-slot="0"] { --me-sc-k: -2.5; }
.me-showcase-col[data-slot="1"] { --me-sc-k: -1.5; opacity: 1; pointer-events: auto; }
.me-showcase-col[data-slot="2"] { --me-sc-k: -0.5; opacity: 1; pointer-events: auto; }
.me-showcase-col[data-slot="3"] { --me-sc-k: .5;   opacity: 1; pointer-events: auto; }
.me-showcase-col[data-slot="4"] { --me-sc-k: 1.5;  opacity: 1; pointer-events: auto; }
.me-showcase-col[data-slot="5"] { --me-sc-k: 2.5; }
/* hover 只加阴影 / 边框：**不要再写 transform**（会覆盖槽位的 translateX，卡片会跳位置） */
.me-showcase-col[data-slot]:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.me-showcase-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--module-gap);
  margin-bottom: 22px;
}
.me-showcase-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.me-showcase-icon svg { width: 100%; height: 100%; display: block; }
.me-showcase-name { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; }
/* chips 固定 min-height 保证所有卡片等高（对齐旧版 .showcase-model-chips） */
.me-showcase-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-height: 120px;
}
.me-showcase-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-3);
  white-space: nowrap;
}
.me-showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--dur-fast);
}
.me-showcase-nav:hover { color: var(--primary); border-color: var(--primary); }
.me-showcase-nav.prev { left: -12px; }
.me-showcase-nav.next { right: -12px; }
/* 可见列数从 4 变 3（或 1）时，槽位偏移必须同时改成**整数**（-1 / 0 / +1 才对称居中）：
   沿用四列的 ±0.5 半步长的话，卡宽变大后只有 2 张能落进视口、且整体偏右。
   该组 k 值同时服务「一屏 3 列」与「一屏 1 列」两种布局。 */
@media (max-width: 1199px) {
  .me-showcase-col[data-slot="0"] { --me-sc-k: -2; }
  .me-showcase-col[data-slot="1"] { --me-sc-k: -1; }
  .me-showcase-col[data-slot="2"] { --me-sc-k: 0; }
  .me-showcase-col[data-slot="3"] { --me-sc-k: 1; }
  .me-showcase-col[data-slot="4"] { --me-sc-k: 2; }
  .me-showcase-col[data-slot="5"] { --me-sc-k: 3; }
}
/* 768 < 屏宽 < 1200：一屏三列（可见槽位 1/2/3 = k -1/0/+1，三张卡加两道 gap 正好铺满视口；
   屏外占位落在 k = -2（左）与 +2 / +3（右），切卡时卡片从右侧屏外进场、左侧屏外离场） */
@media (min-width: 769px) and (max-width: 1199px) {
  .me-showcase-col { width: calc((100% - var(--me-sc-gap) * 2) / 3); }
}
@media (max-width: 768px) {
  /* ≤768：一屏一张（卡片满宽，1/3 号槽位自然落到屏外；k 已在上面 1199 的查询里改成整数） */
  .me-showcase { --me-sc-gap: 12px; }
  .me-showcase-col { width: 100%; padding: 24px 16px; }
  .me-showcase-nav { width: 36px; height: 36px; }
  .me-showcase-nav.prev { left: -4px; }
  .me-showcase-nav.next { right: -4px; }
}

/* ── 首页 Pricing 预览卡 / Partners / 浮动拖拽球 / 联系弹窗 ── */

.me-home-plan-icon svg { width: 46px; height: 46px; }
.me-partners-row { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.me-partner-link {
  width: 180px; height: 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: all var(--dur-fast);
}
.me-partner-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.me-partner-link img { max-width: 82%; max-height: 70%; object-fit: contain; }

.me-float-cs { position: fixed; right: 22px; bottom: 86px; z-index: 85; }
.me-float-cs-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: grab;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.me-float-cs-btn:active { cursor: grabbing; }
.me-float-cs-tip {
  position: absolute;
  right: 52px; top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur-fast);
  pointer-events: none;
}
.me-float-cs:hover .me-float-cs-tip { opacity: 1; }

.me-contact-item { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 10px 0; font-size: 13.5px; }
.me-contact-item .label { color: var(--text-3); }

/* ── PricingPage 模型市场 ── */

.me-pricing-head { margin-bottom: calc(var(--module-gap) * 1.2); }
.me-pricing-eyebrow { font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: 1px; }
.me-pricing-head h2 { margin: 4px 0; font-size: 22px; }
.me-pricing-tip {
  margin: 0 0 var(--module-gap);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.me-ps-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.me-ps-title { font-size: 14px; font-weight: 700; }
.me-ps-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.me-ps-reset {
  border: none; background: transparent; color: var(--text-3);
  font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.me-ps-reset:hover:not([disabled]) { color: var(--primary); background: var(--primary-weak); }
.me-ps-section { margin-bottom: 6px; }
.me-ps-toggle {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  border: none; background: transparent; color: var(--text-2);
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 8px 6px; cursor: pointer; border-radius: 6px;
}
.me-ps-toggle:hover { background: var(--bg-hover); }
.me-ps-toggle svg { transition: transform var(--dur-fast); }
.me-ps-section.collapsed .me-ps-toggle svg { transform: rotate(-90deg); }
.me-ps-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 10px; }
.me-ps-chip {
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-2);
  border-radius: 99px;
  font: inherit;
  font-size: 12px;
  padding: 4px 11px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all var(--dur-fast);
}
.me-ps-chip:hover { border-color: var(--primary); color: var(--primary); }
.me-ps-chip.active { background: var(--primary-weak); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.me-ps-chip-count { font-size: 10px; color: var(--text-3); }

.me-pricing-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--module-gap);
}
/* 第一排：名称筛选 + 展示模式；第二排：供应商筛选（仅 >1 个供应商时出现）；第三排：分类标签筛选 */
.me-pt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-pt-row-main .me-pt-search { flex: 1 1 220px; }
.me-pt-row-provider, .me-pt-row-tags { border-top: 1px dashed var(--border); padding-top: 10px; }
.me-pt-tags-label, .me-pt-label { font-size: 12px; color: var(--text-3); white-space: nowrap;min-width: 4em; }
/* 供应商胶囊：与标签胶囊共用 `.me-pt-tag` 样式，只多一个品牌色小圆点（配色同模型卡，utils.providerColor） */
.me-pt-providers { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 200px; }
.me-pt-prov-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.me-pt-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 200px; }
.me-pt-tag {
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.me-pt-tag:hover { border-color: var(--primary); color: var(--primary); }
.me-pt-tag.active { background: var(--primary-weak); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.me-pt-reset {
  margin-left: auto;
  border: none; background: transparent; color: var(--text-3);
  font: inherit; font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.me-pt-reset:hover { color: var(--primary); background: var(--primary-weak); }
.me-pt-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}
.me-pt-search input {
  width: 100%;
  padding: 9px 60px 9px 36px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius);
  font: inherit;
  outline: none;
}
.me-pt-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.me-pt-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.me-pt-search .clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--text-3); cursor: pointer; padding: 2px;
  display: none;
}
.me-pt-search.has-value .clear { display: block; }
.me-pt-sep { width: 1px; height: 22px; background: var(--border); }
.me-pt-count { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.me-pt-count b { color: var(--text); }
.me-pt-unit button, .me-pt-sort, .me-pt-view button {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-2);
  border-radius: calc(var(--radius) * .7);
  font: inherit;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
}
.me-pt-unit button.active, .me-pt-view button.active {
  background: var(--primary-weak); border-color: var(--primary); color: var(--primary); font-weight: 600;
}
.me-pt-unit, .me-pt-view { display: inline-flex; gap: 4px; }
/* 展示模式切换按钮靠右对齐 */
.me-pt-view { margin-left: auto; }
/* 排序 / 价格单位：暂时隐藏（DOM、事件与逻辑均保留，删掉本规则即可恢复显示）
   用 .me-pt-row 提升特异性，避免被后文 .me-pt-sort 的 display 规则覆盖 */
.me-pt-row .me-pt-sort,
.me-pt-row .me-pt-unit,
.me-pt-row .me-pt-sep-opt { display: none; }
.me-pt-sort { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.me-pt-sort:hover { border-color: var(--primary); color: var(--primary); }

/* 网格：每行最多 3 个卡片（窄屏递减）；行内等高，保证卡片大小一致 */
.me-pci-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: var(--module-gap); }
@media (max-width: 1100px) { .me-pci-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .me-pci-grid { grid-template-columns: 1fr; } }

.me-pci {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--module-gap) * 1.1);
  cursor: pointer;
  transition: all var(--dur-fast);
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.me-pci:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* 1 图标 img + 名称（名称限制一行，超出省略） */
.me-pci-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me-pci-ico {
  width: 40px; height: 40px;
  border-radius: calc(var(--radius) * .7);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.me-pci-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.me-pci-ico-txt { color: #fff; font-weight: 800; font-size: 16px; }
.me-pci-title { flex: 1; min-width: 0; }
.me-pci-name {
  font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.me-pci-copy {
  margin-left: auto;
  border: none; background: transparent; color: var(--text-3);
  padding: 5px; border-radius: 6px; cursor: pointer;
  flex-shrink: 0;
}
.me-pci-copy:hover { color: var(--primary); background: var(--primary-weak); }

/* 2 供应渠道 */
.me-pci-channel { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.me-pci-channel b { color: var(--text-2); font-weight: 600; }

/* 3 富文本介绍：固定预留 3 行高度，超出隐藏（保证卡片高度一致） */
.me-pci-rich {
  font-size: 12.5px; color: var(--text-3); line-height: 1.65;
  height: calc(3 * 1.65em);      /* 恰好 3 行 */
  overflow: hidden;
}
.me-pci-rich p { margin: 0 0 4px; }
.me-pci-rich p:last-child { margin-bottom: 0; }
.me-pci-rich img { max-width: 100%; height: auto; }
.me-pci-rich a { color: var(--primary); }

/* 4 分类标签（预留一行高度，避免有无标签造成卡片高低不一） */
.me-pci-tags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 21px; }

/* 5 被使用数据（贴底 · 主题色透明背景） */
.me-pci-usage {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: calc(var(--radius) * .7);
  background: var(--primary-weak);
  font-size: 11.5px; color: var(--primary);
}
.me-pci-usage b { color: var(--primary); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

/* 6 详情按钮：加高 + 主题色透明背景，hover 变实心主题色 */
.me-pci .me-pci-detail {
  width: 100%;
  height: 38px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-weak);
  border: 1px solid transparent;
  color: var(--primary);
  font-weight: 600;
}
.me-pci .me-pci-detail:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── 模型详情面板（me-sheet）页面级样式 ── */
.me-sheet-name { font-size: 15px; font-weight: 700; }
.me-sheet-img {
  width: 44px; height: 44px;
  border-radius: calc(var(--radius) * .7);
  object-fit: contain;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.me-sheet-rich {
  margin-top: 12px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: calc(var(--radius) * .8);
}
.me-sheet-rich p { margin: 0 0 6px; }
.me-sheet-rich p:last-child { margin-bottom: 0; }
.me-sheet-rich img { max-width: 100%; height: auto; }
/* 头部：图标 + 名称 + 徽标 */
.me-sheet-sec {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.me-sheet-sec > div { min-width: 0; }
.me-sheet-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
/* 字段列表：名称左、值右，长值换行 */
.me-sheet-grid {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * .8);
  overflow: hidden;
}
.me-sheet-cell {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.me-sheet-cell:last-child { border-bottom: none; }
.me-sheet-cell span { color: var(--text-3); flex-shrink: 0; }
.me-sheet-cell b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
/* 底部操作 */
.me-sheet-actions {
  display: flex; gap: 8px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.me-sheet-actions .me-btn { flex: 1; }

/* ═══════════ 模型详情面板：**新版样式**（2026-09-20）═══════════
   ⚠️ 上面那一区块是「经典样式」，**一行未改**，用于回退：
   面板底部的「经典版 / 新版」按钮切换根节点类 `.me-pdv--classic` / `.me-pdv--new`
   （选择记忆在 localStorage 的 me-sheet-style），所以两套样式可随时互切、无需改代码。 */
.me-pdv--new .me-sheet-sec {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  box-shadow: var(--shadow-sm);
}
.me-pdv--new .me-sheet-img,
.me-pdv--new .me-sheet-ico { width: 52px; height: 52px; border-radius: 14px; }
.me-pdv--new .me-sheet-ico { font-size: 20px; }
.me-pdv--new .me-sheet-name { font-size: 17px; letter-spacing: .2px; }
.me-pdv--new .me-sheet-rich {
  border-left: 3px solid var(--primary);
  border-radius: 0 calc(var(--radius) * .8) calc(var(--radius) * .8) 0;
}
/* 字段：两列网格、标签在上（比「左标签 + 右值」更好扫读，长值也不挤） */
.me-pdv--new .me-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
}
.me-pdv--new .me-sheet-cell {
  display: block;
  padding: 10px 12px;
  border: none;
  background: var(--bg-card);
}
.me-pdv--new .me-sheet-cell span { display: block; font-size: 11px; margin-bottom: 3px; }
.me-pdv--new .me-sheet-cell b { display: block; text-align: left; font-size: 13.5px; }
/* 底部操作吸附：字段很长时也能随时「复制 / 切换 / 关闭」 */
.me-pdv--new .me-sheet-actions {
  position: sticky;
  bottom: -18px;                     /* 抵消 .me-sheet-body 的 18px 下内边距，与面板底边齐平 */
  padding: 12px 0;
  margin-top: 16px;
  background: var(--bg-card);
}
.me-pdv--new .me-sheet-style-btn { flex: 0 0 auto; padding-left: 12px; padding-right: 12px; }
@media (max-width: 480px) {
  .me-pdv--new .me-sheet-grid { grid-template-columns: 1fr; }
}
.me-pricing-copy {
  margin-left: auto;
  border: 1px solid var(--border-strong); background: var(--bg-card);
  color: var(--text-3); border-radius: 8px;
  height: 34px; width: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.me-pricing-copy:hover { border-color: var(--primary); color: var(--primary); }

.me-paging { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px 4px; }
.me-paging-info { font-size: 12px; color: var(--text-3); }
.me-paging-btns { display: flex; gap: 6px; }
.me-paging-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-2);
  border-radius: calc(var(--radius) * .6);
  padding: 6px 14px;
  font: inherit; font-size: 12.5px;
  cursor: pointer;
}
.me-paging-btn:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.me-paging-btn[disabled] { opacity: .45; cursor: not-allowed; }

@media (max-width: 900px) {
  .me-pt-row-main .me-pt-search { max-width: none; }
  .me-pt-reset { margin-left: 0; }
}

/* ── RankingsPage 图表区 ── */

.me-rk2-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--module-gap); margin-bottom: calc(var(--module-gap) * 1.4); }
@media (max-width: 900px) { .me-rk2-grid { grid-template-columns: 1fr; } }
.me-rk2-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: calc(var(--module-gap) * 1.1); }
.me-rk2-card-header { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.me-rk2-card-header .ico { color: var(--primary); flex-shrink: 0; }
.me-rk2-card-title { font-size: 14px; font-weight: 700; }
.me-rk2-card-desc { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.me-rk2-hbar-row { display: grid; grid-template-columns: 26px 128px 1fr 66px; gap: 10px; align-items: center; padding: 7px 0; }
.me-rk2-hbar-rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-3);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.me-rk2-hbar-rank.top1 { background: #fde68a; color: #92400e; }
.me-rk2-hbar-rank.top2 { background: #e5e7eb; color: #4b5563; }
.me-rk2-hbar-rank.top3 { background: #fed7aa; color: #9a3412; }
.me-rk2-hbar-info { min-width: 0; }
.me-rk2-hbar-name { font-size: 12.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-rk2-hbar-provider { font-size: 10.5px; color: var(--text-3); }
.me-rk2-hbar-track { height: 10px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.me-rk2-hbar-fill { height: 100%; border-radius: 99px; width: 0; transition: width .7s var(--ease); }
.me-rk2-hbar-val { font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.me-rk2-summary-main { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.me-rk2-summary-label { font-size: 11px; color: var(--text-3); letter-spacing: .5px; }
.me-rk2-summary-val { font-size: 26px; font-weight: 800; display: block; margin: 3px 0; font-variant-numeric: tabular-nums; }
.me-rk2-summary-period { font-size: 11px; color: var(--text-3); }
.me-rk2-summary-stats { display: flex; gap: 26px; }
.me-rk2-ss-num { font-size: 17px; font-weight: 700; display: block; }
.me-rk2-ss-label { font-size: 11px; color: var(--text-3); }
.me-rk2-vbars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.me-rk2-vbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.me-rk2-vbar-fill { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; height: 0; transition: height .7s var(--ease); }
.me-rk2-vbar-label { font-size: 10px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.me-rank-item {
  display: grid;
  grid-template-columns: 30px 36px minmax(120px, 1.2fr) 1.6fr 150px;
  gap: 12px;
  align-items: center;
  padding: 11px 10px;
  border-radius: var(--radius);
  transition: background var(--dur-fast);
}
.me-rank-item:hover { background: var(--bg-hover); }
.me-rank-pos {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft); color: var(--text-3);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.me-rank-pos.top1 { background: #fde68a; color: #92400e; }
.me-rank-pos.top2 { background: #e5e7eb; color: #4b5563; }
.me-rank-pos.top3 { background: #fed7aa; color: #9a3412; }
.me-rank-pico {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.me-rank-model-info { min-width: 0; }
.me-rank-model-name { font-size: 13px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-rank-model-sub { font-size: 11px; color: var(--text-3); }
/* 渠道名：仅作附注，弱化处理，不与模型名争夺视觉焦点 */
.me-prov-tag { font-size: 10px; color: var(--text-3); opacity: .68; font-weight: 400; }
.me-rank-bar-track { height: 9px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.me-rank-bar-fill { height: 100%; border-radius: 99px; width: 0; transition: width .7s var(--ease); }
.me-rank-stats { display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.me-rank-tokens { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-rank-tokens .unit { font-size: 10px; color: var(--text-3); margin-left: 2px; font-weight: 400; }
.me-rank-change { font-size: 11px; font-weight: 600; }
.me-rank-change.up { color: var(--success); }
.me-rank-change.down { color: var(--danger); }
.me-rank-showmore { text-align: center; padding-top: 6px; }

.me-rankings-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--module-gap); }
@media (max-width: 900px) { .me-rankings-grid2 { grid-template-columns: 1fr; } }
.me-trend-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--radius);
}
.me-trend-item:hover { background: var(--bg-hover); }
.me-trend-badge {
  font-size: 11.5px; font-weight: 700;
  border-radius: 99px; padding: 3px 10px;
}
.me-trend-badge.up { background: var(--success-bg); color: var(--success); }
.me-trend-badge.down { background: var(--danger-bg); color: var(--danger); }
.me-section-header2 { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.me-section-header2 h3 { font-size: 15px; }
.me-section-header2 .desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── DashboardOverview 欢迎区 / onboarding 步骤条 ── */

.me-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, var(--primary-weak), transparent 65%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--module-gap) * 1.4);
  margin-bottom: var(--module-gap);
}
.me-dash-hero h2 { font-size: 18px; font-weight: 800; }
.me-dash-hero p { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.me-dash-hero-deco {
  width: 120px; height: 76px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: none;
}
.me-dash-hero-deco::before {
  content: "{ }";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 22px;
  font-weight: 700;
}
@media (max-width: 700px) { .me-dash-hero-deco { display: none; } }

.me-onboard {
  margin-top: var(--module-gap);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(var(--module-gap) * 1.1);
}
.me-onboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.me-onboard-header h3 { font-size: 14px; }
.me-onboard-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-onboard-step { display: flex; gap: 10px; align-items: center; cursor: default; padding: 6px 10px; border-radius: var(--radius); }
.me-onboard-step.clickable { cursor: pointer; }
.me-onboard-step.clickable:hover { background: var(--primary-weak); }
.me-onboard-step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.me-onboard-step strong { font-size: 13px; display: block; }
.me-onboard-step p { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.me-onboard-arrow { color: var(--border-strong); flex-shrink: 0; }

/* ── DashboardModels 统计 + 双图表 ── */

.me-dm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--module-gap);
  margin-bottom: var(--module-gap);
}
.me-dm-stat-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.me-dm-cell-icon { color: var(--primary); margin-bottom: 6px; }
.me-dm-cell-label { font-size: 11px; color: var(--text-3); }
.me-dm-cell-val { font-size: 19px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.me-dm-cell-sub { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.me-dm-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--module-gap); margin-bottom: var(--module-gap); }
@media (max-width: 900px) { .me-dm-charts-row { grid-template-columns: 1fr; } }
.me-dm-chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: calc(var(--module-gap) * 1.05); }
.me-dm-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.me-dm-chart-title { font-size: 13.5px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.me-dm-chart-total { font-size: 12px; color: var(--text-3); }
.me-dm-hbar-row { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; padding: 6px 0; }
.me-dm-hbar-label { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-dm-hbar-track { height: 9px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.me-dm-hbar-fill { height: 100%; border-radius: 99px; width: 0; transition: width .7s var(--ease); }
.me-dm-hbar-val { font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.me-filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--module-gap); }
.me-filter-row input, .me-filter-row select {
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.me-filter-row input { flex: 1; min-width: 200px; }

/* ── WalletPage 交易表 / chip-grid / 支付 iframe ── */

.me-wallet-balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary), #7c5cf0 60%, #a855f7);
  color: #fff;
  border-radius: calc(var(--radius) * 1.4);
  padding: calc(var(--module-gap) * 1.5);
  margin-bottom: calc(var(--module-gap) * 1.2);
}
.me-wallet-balance-label { font-size: 12px; opacity: .85; }
.me-wallet-balance-amount { font-size: 32px; font-weight: 800; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.me-wallet-balance-amount span:first-child { font-size: 18px; margin-right: 2px; }
.me-wallet-balance-actions { display: flex; gap: 10px; }
.me-wallet-balance-actions .me-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.me-wallet-balance-actions .me-btn:hover { background: #fff; color: var(--primary); border-color: #fff; }
/* 按钮下方的余额说明行（2026-10-09）：文案来自 `profile.balance_hint`（退款 / 分配的金额口径，§5.2）。
   ⚠️ 卡片是**彩色渐变 + 白字** → 不能用 `.me-field-hint`（灰字在渐变上读不清）：
      这里用白色 + 降透明度，与上方 `.me-wallet-balance-label` 同一套处理；宽度上限避免宽屏拉成一整行。 */
.me-wallet-balance-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #fff;
  opacity: .82;
  max-width: 680px;
}
.me-tx-id {
  font-family: Consolas, monospace;
  font-size: 11.5px;
  cursor: help;
  color: var(--text-2);
}
.me-tx-amount-pos { color: var(--success); font-weight: 700; }
.me-tx-amount-neg { color: var(--danger); font-weight: 700; }
.me-tx-desc {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-3);
}
.me-chip-grid { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.me-chip {
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-2);
  border-radius: var(--radius);
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.me-chip:hover { border-color: var(--primary); }
.me-chip.active { background: var(--primary-weak); border-color: var(--primary); color: var(--primary); }
.me-chip small { font-weight: 400; }
.me-pay-iframe {
  width: 100%; height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.me-pay-blocked {
  margin-top: 14px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.me-pay-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* ═══════════ 新手指引页（me-page-guide） ═══════════ */

/* 外壳高度收窄为「视口 − 页头 − 页脚」（--footer-h 由 JS 按页脚实测高度写入） */
.me-shell.me-shell-fit { min-height: calc(100vh - var(--header-h) - var(--footer-h, 240px)); }
me-page-guide { display: block; }

/* ═══════════ 【新版】新手指引页（me-page-guide-v2，路由 /guide-v2） ═══════════
   与旧版 `.me-guide-*`（图片式指引）完全独立：本页是**结构化图文步骤**。
   高度：根节点 min-height 扣掉页头与页脚（`--footer-h` 由 me-footer 按实测高度写入）
        + 中段 `flex: 1` → **内容不足一屏时，下段导航栏落在视口底部**。 */
me-page-guide-v2 { display: block; }

.me-gv-page {
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 18px 0;
  min-height: calc(100vh - var(--header-h) - var(--footer-h, 240px));
  display: flex;
  flex-direction: column;
}

/* ── 上：标题区 ── */
.me-gv-head { text-align: center; }
.me-gv-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px;
}
.me-gv-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.me-gv-title { margin: 14px 0 0; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; line-height: 1.25; }
.me-gv-hl { color: var(--primary); padding: 0 6px; }
.me-gv-intro { max-width: 660px; margin: 10px auto 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.me-gv-quick { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* 进度索引：5 个节点 + 连线（done 绿 / active 主色 / todo 弱色；连线按「已走过」着色） */
.me-gv-steps { display: flex; justify-content: center; margin: 26px 0 0; padding: 0; list-style: none; }
.me-gv-step { position: relative; flex: 1 1 0; max-width: 150px; }
.me-gv-step::before,
.me-gv-step::after {
  content: ''; position: absolute; top: 15px; height: 2px; background: var(--border);
}
.me-gv-step::before { left: 0; right: 50%; }
.me-gv-step::after { left: 50%; right: 0; }
.me-gv-step:first-child::before { display: none; }
.me-gv-step:last-child::after { display: none; }
.me-gv-step.active::before, .me-gv-step.done::before, .me-gv-step.done::after { background: var(--success); }
.me-gv-step-btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit;
}
.me-gv-dot {
  position: relative; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 2px solid var(--border);
  color: var(--text-3); font-size: 12.5px; font-weight: 700;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.me-gv-step-btn:hover .me-gv-dot { border-color: var(--primary); color: var(--primary); }
.me-gv-step.active .me-gv-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-weak); }
.me-gv-step.done .me-gv-dot { border-color: var(--success); background: var(--success); color: #fff; }
.me-gv-step-lbl { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.me-gv-step.active .me-gv-step-lbl { color: var(--primary); font-weight: 600; }
.me-gv-step.done .me-gv-step-lbl { color: var(--success); }

/* ── 中：步骤内容 ──
   ⚠️ **5 个步骤在首渲染时一次性全部生成**（`.me-gv-step-pane[data-step]`），切步骤只切 `.is-active`
      （`me-page-guide-v2._setStep()`），**不再重建 DOM**：滚动位置 / 进入动画 / 第 5 步的标签选择都天然保留。
      隐藏用 `display` 而非 `hidden` 属性：不参与布局，其中的按钮也不会留在 Tab 焦点链上。
      `.me-gv-step-pane` 与进度索引的 `.me-gv-step` 是**两个不同的类名**（后者只在 `.me-gv-head` 里），不会互相命中。 */
.me-gv-step-pane { display: none; }
.me-gv-step-pane.is-active { display: block; animation: me-gv-pane-in .26s ease both; }
@keyframes me-gv-pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.me-gv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.me-gv-step-title { margin: 0; font-size: 20px; font-weight: 700; }
.me-gv-step-desc { margin: 8px 0 0; color: var(--text-3); font-size: 13.5px; line-height: 1.7; }

/* 2×2 条目网格（≤768 单列） */
.me-gv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.me-gv-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);          /* 比卡片底色深一档，形成条目层次 */
}
.me-gv-ic {
  flex: none; width: 38px; height: 38px;
  border-radius: calc(var(--radius) * .8);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-weak); color: var(--primary);
}
.me-gv-item-body { min-width: 0; }
.me-gv-item-t { font-size: 14px; font-weight: 600; }
.me-gv-item-d { margin-top: 4px; font-size: 12.5px; color: var(--text-3); line-height: 1.65; }
.me-gv-cta-row { display: flex; justify-content: center; margin-top: 22px; }
.me-gv-cta-row .me-btn,
.me-gv-foot .me-btn { display: inline-flex; align-items: center; gap: 6px; }

/* ── 中（第 5 步上块）：确认清单 ── */
.me-gv-checks { list-style: none; margin: 18px 0 0; padding: 0; }
.me-gv-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px dashed var(--border); }
.me-gv-check:first-child { border-top: 0; padding-top: 4px; }
.me-gv-check-ic {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--success-bg); color: var(--success);
}

/* ── 中（第 5 步下块）：接入方式（标签页 + 配置面板） ── */
.me-gv-connect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.me-gv-eyebrow { margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.me-gv-note { color: var(--text-3); font-size: 12.5px; }
.me-gv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.me-gv-tab {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2);
  font-size: 13px; cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.me-gv-tab:hover { border-color: var(--primary); color: var(--primary); }
.me-gv-tab.active { background: var(--primary-weak); border-color: var(--primary); color: var(--primary); font-weight: 600; }
/* 接入方式面板：6 个工具的面板**首渲染时全部生成**，切标签只切 `.is-active`（`_syncTabs()`），
   同样不重建 DOM —— 否则每次切标签都要重新拼 innerHTML，且面板内的滚动位置会归零。 */
.me-gv-panel {
  display: none;
  margin-top: 14px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft);
}
.me-gv-panel.is-active { display: block; }
.me-gv-panel-t { font-size: 15px; font-weight: 700; }
.me-gv-panel-d { margin-top: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.65; }
.me-gv-kvs { margin-top: 14px; }
/* 宽屏（≥769）：配置面板**横向两栏** —— 左「标题 + 说明」、右「配置项列表」（与设计稿一致）。
   `.me-gv-panel` 的两个子块正好是 `.me-gv-panel-head` 与 `.me-gv-kvs`，直接用 grid 分栏；
   窄屏（≤768）自动退回上下堆叠（见本文件末尾的媒体查询），无需额外规则。
   ⚠️ 左列用 `minmax(200px, 260px)` 固定区间：`1fr` 会把说明文字拉成一行超长（可读性差），
      `auto` 又会被长说明撑开挤压右侧配置值列。
   ⚠️ 选择器必须带 `.is-active`（而不是裸 `.me-gv-panel`）：裸写会覆盖上面的 `display: none`，
      让 6 个面板同时显示（媒体查询写在后面，同特异性下后者胜）。 */
@media (min-width: 769px) {
  .me-gv-panel.is-active {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 0 28px;
    align-items: start;
  }
  .me-gv-kvs { margin-top: 0; }          /* 两栏后不再需要「与上方标题拉开距离」 */
  .me-gv-panel-d { margin-top: 8px; }
}
.me-gv-kv { display: flex; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.me-gv-kv:first-child { border-top: 0; padding-top: 0; }
.me-gv-k { flex: none; width: 200px; font-size: 13px; color: var(--text-2); }
.me-gv-v {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px; color: var(--text); word-break: break-all;
}

/* ── 下：上一步 / 索引 / 下一步 ── */
.me-gv-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 18px 0 22px;
  border-top: 1px solid var(--border);
}
.me-gv-count { color: var(--text-3); font-size: 13px; }
/* 主按钮「下一步 →」↔「完成指引 ✓」：两份文案 + 两份图标都渲染好，由 `.me-gv-foot.is-last` 切换 ——
   切步骤既不重建 DOM、也不改 innerHTML（`_syncStep()` 只负责给 `.me-gv-foot` 加减 `is-last`）。 */
.me-gv-lbl-done, .me-gv-ic-done { display: none; }
.me-gv-foot.is-last .me-gv-lbl-next,
.me-gv-foot.is-last .me-gv-ic-next { display: none; }
.me-gv-foot.is-last .me-gv-lbl-done,
.me-gv-foot.is-last .me-gv-ic-done { display: inline-flex; align-items: center; }

@media (max-width: 768px) {
  /* ── 小屏收紧（2026-09-21）──
     ⚠️ 按钮**只缩字号与横向内边距，纵向内边距一律不动**：横向与字号是视觉重量，
        纵向决定**触控目标高度**（本页 `.me-btn` ≈ 14px×1.5+16 ≈ 37px、`.me-btn-lg` ≈ 11px×2+21 ≈ 43px，
        与「移动端优化」块 ⑥ 的「触控目标 ≥ 42–44px」约定配套）。
        压纵向会让按钮在拇指下变得难点 —— 那是实打实的可用性回退。 */
  .me-gv-page { padding: 24px 14px 0; }
  .me-gv-card { padding: 18px 16px; }
  .me-gv-grid { grid-template-columns: 1fr; }
  .me-gv-dot { width: 26px; height: 26px; font-size: 11.5px; }
  .me-gv-step::before, .me-gv-step::after { top: 13px; }
  .me-gv-step-lbl { font-size: 11px; }
  .me-gv-k { width: 118px; }

  /* 标题：桌面 `clamp(24px, 3.4vw, 36px)` → 小屏 `clamp(20px, 5.6vw, 26px)`
     （320px→20px / 375px→21px / ≥464px→26px，与桌面端 769px 处的 26.1px 平滑接续）。
     36px 的大标题在 375px 下要占两行半，会把「简介 + 两个按钮」挤出首屏 */
  .me-gv-title { font-size: clamp(20px, 5.6vw, 26px); margin-top: 12px; }
  .me-gv-badge { padding: 4px 10px; font-size: 11.5px; }
  .me-gv-quick { gap: 8px; margin-top: 14px; }
  /* 正文卡片标题（20px → 17px）与第 5 步配置面板标题（15px → 14px） */
  .me-gv-step-title { font-size: 17px; }
  .me-gv-panel-t { font-size: 14px; }

  /* 按钮：本页 CTA（快速链接 / 各步链接按钮）全是 `me-btn-lg`（15px / 横向 28px，移动端全局已收到 22px）
     → 再收到 14px / 横向 18px；纵向 11px 保持不动（≈43px 触控高度） */
  .me-gv-quick .me-btn-lg,
  .me-gv-cta-row .me-btn-lg { padding: 11px 18px; font-size: 14px; }
  /* 底部导航用的是默认尺寸按钮（8px 18px / 继承字号）→ 横向 14px、13.5px 字号；
     目的是让「上一步 · 步骤 n / 5 · 下一步」三者在一行内不换行（320px 宽也放得下） */
  .me-gv-foot { gap: 8px; padding: 14px 0 18px; }
  .me-gv-foot .me-btn { padding: 8px 14px; font-size: 13.5px; }
  .me-gv-count { font-size: 12.5px; }
  /* 6 个工具标签：只收横向（14px → 12px）与字号（13px → 12.5px），**纵向维持 7px**
     —— 实测纵向若跟着压到 6px，标签高度会从 33px 掉到 28px（本就低于 42px 触控线，不能再降）。
     行数不受影响（375px 下 6 个标签都是 2 行）。 */
  .me-gv-tab { padding: 7px 12px; font-size: 12.5px; }
  .me-gv-checks { margin-top: 14px; }
}

.me-guide-page { max-width: 1180px; }
/* 轮播放映模式：页面高度锁定为一屏，内部用 flex 把「标题区 / 指示点」之外的空间全给轮播区 */
.me-guide-page.is-carousel {
  box-sizing: border-box;
  height: calc(100vh - var(--header-h) - var(--footer-h, 240px));
  display: flex;
  flex-direction: column;
}

.me-guide-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: calc(var(--module-gap) * 1.4);
}
.me-guide-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary);
}
.me-guide-page-head h2 { font-size: 24px; margin: 5px 0 4px; }
.me-guide-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 模式切换（轮播放映 / 纵向列表） */
.me-guide-mode-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
}
.me-guide-mode-switch button {
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: calc(var(--radius) * .9);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.me-guide-mode-switch button:hover { color: var(--text); }
.me-guide-mode-switch button.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── 卡片：img 图片层 + 上层文本 / 按钮 ── */
.me-guide-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}
/* 真实 img：列表模式下 width:100% + height:auto，按原始比例完整展示、不裁剪 */
.me-guide-card-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
/* 底部渐变：固定高度（卡片高度差异极大，不能用百分比），快速衰减以减少对图片中部的压暗 */
.me-guide-card-shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 210px;
  min-height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,14,30,0) 0%, rgba(10,14,30,.08) 18%, rgba(10,14,30,.14) 74%, rgba(10,14,30,.16) 100%);
}
/* 文本层：叠在图片元素之上（贴卡片底部） */
.me-guide-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 24px 26px;
  color: #fff;
  display: none;
}
.me-guide-card:first-child .me-guide-card-body {
  display: flex;
  padding: 0;
  width: 100%;
  padding-top: 56.05%;
  box-sizing: border-box;
  left: 0;
  top: 0;;
  right: 0;
  bottom: auto;
}
.me-guide-card:first-child .me-guide-card-body img {
  width: 100%;
}
.me-guide-card:first-child .me-guide-card-actions {
  width: 100%;
  display: flex; gap: 10px; margin-top: 0px;
  aspect-ratio: 1366 / 97;
}
.me-guide-card:first-child .me-guide-card-actions .me-btn {
  background-color: transparent;
}
.me-guide-card-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.me-guide-card-title { font-size: 21px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.me-guide-card-desc {
  max-width: 640px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.me-guide-card-actions { display: flex; gap: 10px; margin-top: 15px; }
.me-guide-card-actions .me-btn-primary { box-shadow: 0 6px 18px rgba(0,0,0,.28); }

/* ── 轮播放映模式 ── */
/* 轮播区吃掉页面中间的剩余空间（标题区与指示点之外的弹性区域） */
.me-guide-carousel {
  position: relative;
  padding: 0 52px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.me-guide-carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(160deg, #0d1120, #181d2e);
}
.me-guide-carousel-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 20px;
  will-change: transform;
}
/* 卡片统一撑满放映区高度；图片 contain 等比缩放，限制在父容器内不溢出 */
.me-guide-carousel-track .me-guide-card {
  flex: 0 0 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.me-guide-carousel-track .me-guide-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;   /* 贴底 → 叠层文本始终落在图片像素之上 */
}
.me-guide-carousel-track .me-guide-card-actions {
  display: none;
  pointer-events: none;
  opacity: 0;
}
.me-guide-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: .9;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.me-guide-slide-nav:hover { opacity: 1; background: var(--primary); color: #fff; border-color: var(--primary); }
.me-guide-slide-nav.prev { left: 0; }
.me-guide-slide-nav.next { right: 0; }

.me-guide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.me-guide-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: var(--border-strong);
  cursor: pointer;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.me-guide-dot:hover { background: var(--text-3); }
.me-guide-dot.active { width: 24px; background: var(--primary); }

/* ── 纵向列表模式：卡片高度完全由图片原始比例决定（自动高度、完整展示） ── */
.me-guide-cards-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--module-gap) * 1.3);
}

@media (max-width: 768px) {
  .me-guide-page-head h2 { font-size: 20px; }
  .me-guide-carousel { padding: 0; }
  .me-guide-carousel-track { gap: 12px; }
  .me-guide-slide-nav { width: 36px; height: 36px; }
  .me-guide-slide-nav.prev { left: 8px; }
  .me-guide-slide-nav.next { right: 8px; }
  .me-guide-card-body { padding: 18px; }
  .me-guide-card-title { font-size: 17px; }
  .me-guide-card-shade { height: 170px; }
}

/* ═══════════ 账号类型切换（注册 / 登录 / 重置） ═══════════ */

.me-auth-type-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
}
.me-auth-type-switch button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: calc(var(--radius) * .9);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.me-auth-type-switch button:hover { color: var(--text); }
.me-auth-type-switch button.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.me-auth-card-wide { max-width: 520px; }
.me-field-hint { margin-top: 5px; font-size: 11.5px; color: var(--text-3); }

/* ═══════════ 企业员工账号 / 员工密钥 ═══════════ */

.me-search-box { position: relative; display: inline-flex; align-items: center; }
.me-search-box svg { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
.me-search-box .me-input { padding-left: 34px; min-width: 210px; }
.me-select-sm { padding: 8px 10px; font-size: 13px; width: auto; min-width: 150px; }
.me-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.me-td-actions { display: flex; gap: 8px; white-space: nowrap; }
.me-code-inline {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-soft);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ═══════════ 移动端优化（≤768，2026-09-20）═══════════
   为什么放在 pages.css：媒体查询规则与非媒体规则**权重相同 → 后加载者胜**，
   本文件最后加载，才能稳定压过 base.css / components.css 里的同选择器规则 */
@media (max-width: 768px) {
  .me-search-box .me-input { min-width: 0; }
  .me-row-2 { grid-template-columns: 1fr; }

  /* ② iOS 聚焦输入框会**自动放大整页**：可聚焦控件字号必须 ≥ 16px */
  input:not([type="checkbox"]):not([type="radio"]),
  select, textarea { font-size: 16px; }

  /* ⑥ 触控目标 ≥ 42–44px（原先图标按钮 36px、小按钮内边距 5px，拇指易误触） */
  .me-icon-btn { width: 42px; height: 42px; }
  .me-btn-sm { padding: 9px 14px; }
  .me-copy-btn { padding: 8px; }
  .me-td-actions { gap: 10px; flex-wrap: wrap; white-space: normal; }

  /* ⑦ 排行榜两处**固定列宽**在窄屏会顶破容器（实测 320px：`.me-rankings-popular` 卡片 328 > 视口 320、
     条形只剩 45px、列表项 `.me-rank-item` 的进度条被压成 **0 宽**）。收敛固定列：
       - `.me-rank-item` 原 5 列（30+36+120+150 + 间距 48 = 384px）→ 窄屏两行：
         第一行 名次/头像/模型名，第二行 进度条（跨前两列）+ 统计（右对齐）
       - `.me-rk2-hbar-row` 原 `26px 128px 1fr 66px` → 名字列改为可收缩（≤96px）、条形保底 40px */
  .me-rank-item { grid-template-columns: 26px 32px minmax(0, 1fr); gap: 8px 10px; padding: 10px 8px; }
  .me-rank-bar-track { grid-column: 1 / 3; }
  .me-rank-stats { grid-column: 3; justify-self: end; }
  .me-rk2-hbar-row { grid-template-columns: 22px minmax(0, 96px) minmax(40px, 1fr) 56px; gap: 8px; }
  /* ⚠️ 光收敛内层列还不够：grid/flex 子项默认 `min-width: auto`（= min-content），
     内层的固定列会**反过来把轨道顶宽** —— 实测卡片 328 > 容器 288，整页仍横向溢出 24px。
     给两层子项置 `min-width: 0`，卡片才能收缩到容器宽度。 */
  .me-rankings-grid2 > *, .me-rk2-grid > * { min-width: 0; }

  /* ⑤-a 宽表格（未卡片化的）：首列吸附，横向滚动时始终知道看的是哪一行 */
  /* :not([colspan]) —— 空态行 / 详情行是整行跨越的单元格，不参与首列吸附
     （否则它们会被钉在左侧且被强制加底色，与内容错位） */
  .me-tbl:not(.me-tbl-cards) th:first-child,
  .me-tbl:not(.me-tbl-cards) td:first-child:not([colspan]) {
    position: sticky; left: 0; z-index: 1;
    background: var(--bg-card);
  }
  .me-tbl:not(.me-tbl-cards) thead th:first-child { z-index: 2; }

  /* ⑤-b 卡片化：带 .me-tbl-cards 的表在手机上「每行一张卡」（字段名由 td[data-label] 提供） */
  .me-tbl-cards thead { display: none; }
  .me-tbl-cards tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--bg-card);
  }
  .me-tbl-cards tbody tr:last-child { margin-bottom: 0; }
  .me-tbl-cards tbody td {
    display: flex; align-items: flex-start; gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0; border: none;
  }
  .me-tbl-cards tbody td::before {
    content: attr(data-label);
    flex: 0 0 84px;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.7;
  }
  /* 展开的详情行（colspan）不显示字段名，整行铺开；其所在行也不该再画一张卡 */
  .me-tbl-cards tbody td[colspan] { display: block; }
  .me-tbl-cards tbody td[colspan]::before { content: none; }
  .me-tbl-cards tbody tr:has(td[colspan]) {
    border: none; background: none; padding: 0; margin: -6px 0 10px;
  }
  /* 操作行：独立一行 + 虚线分隔；不显示字段名（否则 ::before 会留出 84px 空白把按钮推歪） */
  .me-tbl-cards tbody td.me-td-actions {
    border-top: 1px dashed var(--border);
    margin-top: 8px; padding-top: 10px;
    flex-wrap: wrap;
  }
  .me-tbl-cards tbody td.me-td-actions::before,
  .me-tbl-cards-xsm tbody td.me-td-actions::before { content: none; }

  /* ── 密钥列表（MePageKeys）：小屏简化字段 + 行内展开详情 ──
     隐藏「密钥 / 创建时间 / 最后使用」三列（.me-col-sm-hide），只留 名称 + 状态 + 操作；
     详情通过点整行展开（数据在行里，不再请求接口） */
  .me-col-sm-hide { display: none; }
  .me-keys-row { cursor: pointer; }
  .me-keys-row .me-sm-caret {
    display: inline-block;
    margin-right: 6px;
    color: var(--text-3);
    transition: transform var(--dur-fast);
  }
  .me-keys-row .me-sm-caret.open { transform: rotate(90deg); }
  /* 展开行的详情面板：沿用日志详情样式，仅做外边距微调 */
  .me-keys-detail .me-log-detail-panel { margin-top: 2px; }
}
/* 桌面端：列已完整 → 不显示 ▸（展开逻辑在 JS 里同时按断点关闭，避免误触） */
@media (min-width: 769px) {
  .me-sm-caret { display: none; }
}

/* ── 超小屏（≤480，典型 375 / 390 / 430 手机）：钱包交易记录表改卡片 ──
   规则与上面 ≤768 的 .me-tbl-cards **完全一致**，只是断点更窄 ——
   CSS 没法让同一组声明挂两个不同断点，所以这里是有意的**重复**：改卡片样式时两处都要动 */
@media (max-width: 480px) {
  .me-tbl-cards-xsm thead { display: none; }
  .me-tbl-cards-xsm tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--bg-card);
  }
  .me-tbl-cards-xsm tbody tr:last-child { margin-bottom: 0; }
  .me-tbl-cards-xsm tbody td {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 4px 0; border: none;
  }
  .me-tbl-cards-xsm tbody td::before {
    content: attr(data-label);
    flex: 0 0 60px;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.7;
  }
  /* 描述可能较长：允许换行，别把卡片撑爆 */
  .me-tbl-cards-xsm .me-tx-desc { white-space: normal; word-break: break-word; }
  /* 退款原因同理（桌面端是单行省略，卡片态要给回换行） */
  .me-tbl-cards-xsm .me-refund-reason {
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word;
  }
  /* 空态行（colspan）：不显示字段名、不要画成一张空卡片 */
  .me-tbl-cards-xsm tbody td[colspan] { display: block; }
  .me-tbl-cards-xsm tbody td[colspan]::before { content: none; }
  .me-tbl-cards-xsm tbody tr:has(td[colspan]) {
    border: none; background: none; padding: 0; margin: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   吉程 Agent 介绍页 —— **两套皮肤**（2026-10-26）
     A. 科技风   `/agent`        pages/me-page-agent.js        样式前缀 `.mag-`
     B. 实用指南 `/agent/guide`  pages/me-page-agent-guide.js  样式前缀 `.magu-`
   · 科技风只有**封面区**固定深色（自带渐变 / 网格 / 扫光），其余区块仍走主题变量
     ⇒ 亮色与暗色主题下都成立；不要在这里写死全局背景色 ✗
   · 动效一律纯 CSS：全局「减弱动效」（tokens.css 的 data-reduce-motion 与
     prefers-reduced-motion）会把它们压成 0.01ms，页面无需再判断
   · 两套皮肤都**不新增图标字体**：图标是页面内联的 SVG（stroke: currentColor）
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── A. 科技风 ─────────────────────────── */

/* 封面：深色渐变 + 网格 + 极光扫光（::before 网格、::after 扫光，都不拦截鼠标） */
.mag-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--radius) + 8px);
  padding: 40px 40px 36px;
  margin-bottom: var(--module-gap);
  color: #eef2ff;
  /*
  background:
    radial-gradient(120% 130% at 84% 4%, rgba(91, 108, 240, .60) 0%, rgba(91, 108, 240, 0) 48%),
    radial-gradient(90% 95% at 4% 108%, rgba(0, 214, 255, .26) 0%, rgba(0, 214, 255, 0) 55%),
    linear-gradient(142deg, #06090f 0%, #0e1430 44%, #190f2e 100%);
    */
  box-shadow: 0 26px 60px -28px rgba(10, 16, 40, .75);
}
.mag-hero::before {                 /* 透视网格 */
  content: '';
  position: absolute; inset: -2px; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 100% at 50% -10%, #000 26%, transparent 76%);
  mask-image: radial-gradient(125% 100% at 50% -10%, #000 26%, transparent 76%);
  pointer-events: none;
}
.mag-hero::after {                  /* 旋转的极光扫光 */
  content: '';
  position: absolute; inset: -55% -15%; z-index: -1;
  background: conic-gradient(from 210deg at 66% 34%,
    transparent 0deg, rgba(122, 168, 255, .20) 52deg, transparent 132deg,
    rgba(0, 240, 255, .12) 214deg, transparent 300deg);
  animation: mag-sweep 22s linear infinite;
  pointer-events: none;
}
@keyframes mag-sweep { to { transform: rotate(1turn); } }

.mag-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 30px;
  align-items: center;
}
.mag-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(232, 238, 255, .82);
}
.mag-kicker i {                      /* 呼吸的指示灯 */
  width: 6px; height: 6px; border-radius: 50%;
  background: #58f0c4; box-shadow: 0 0 0 0 rgba(88, 240, 196, .7);
  animation: mag-pulse 2.4s var(--ease) infinite;
}
@keyframes mag-pulse {
  70% { box-shadow: 0 0 0 7px rgba(88, 240, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 240, 196, 0); }
}
.mag-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: #fff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .mag-title {
    background: linear-gradient(96deg, #ffffff 8%, #b8cdff 46%, #7ef0ff 92%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.mag-sub { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.85; color: rgba(226, 234, 255, .76); }

.mag-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.mag-stat {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .035);
}
.mag-stat-n {
  font-size: 25px; font-weight: 800; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .mag-stat-n {
    background: linear-gradient(120deg, #ffffff, #8fd8ff);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.mag-stat-l { margin-top: 2px; font-size: 11.5px; letter-spacing: .04em; color: rgba(226, 234, 255, .58); }

.mag-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mag-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 18px;
  border-radius: 9px; border: 0px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mag-btn-solid {
  color: #07101f;
  background: linear-gradient(118deg, #7c8cff, #46dcff);
  box-shadow: 0 12px 30px -12px rgba(90, 150, 255, .9);
}
.mag-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(90, 150, 255, 1); }
.mag-btn-ghost { color: #e8eeff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.mag-btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }

/* 封面右侧：模拟「会话窗口」（纯装饰，屏幕阅读器读 aria-hidden） */
.mag-term {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(8, 11, 20, .66);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .8);
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mag-term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mag-term-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mag-term-bar i:first-child { background: #ff6b6b; }
.mag-term-bar i:nth-child(2) { background: #ffd166; }
.mag-term-bar i:nth-child(3) { background: #4ade80; }
.mag-term-bar b { margin-left: 6px; font-size: 11px; font-weight: 500; color: rgba(226, 234, 255, .5); letter-spacing: .04em; }
.mag-term-body { padding: 12px 14px 16px; font-size: 12.5px; line-height: 2; color: rgba(226, 234, 255, .8); }
.mag-term-body p { margin: 0 0 6px; }
.mag-term-body p:last-child { margin-bottom: 0; }
.mag-tag { color: #7ef0ff; }
.mag-caret {
  display: inline-block; width: 7px; height: 13px; margin-left: 2px;
  background: #7ef0ff; vertical-align: -2px;
  animation: me-cursor-blink 1.05s step-end infinite;
}

/* 区块标题（科技风）：小号大写 + 左侧发光竖条 */
.mag-sec-h {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 14.5px; font-weight: 700;
}
.mag-sec-h::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), #46dcff);
  box-shadow: 0 0 10px rgba(70, 220, 255, .55);
}
.mag-sec-h span { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }

/* 能力卡：图标块 + 悬停上浮/光晕 */
.mag-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 12px; }
.mag-cap {
  position: relative; overflow: hidden;
  padding: 14px 15px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mag-cap::after {                    /* 悬停时的柔和光斑 */
  content: ''; position: absolute; right: -46px; bottom: -66px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-weak), transparent 68%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.mag-cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.mag-cap:hover::after { opacity: 1; }
.mag-cap-h { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.mag-ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #5b6cf0, #2ec5ff);
  box-shadow: 0 7px 16px -8px rgba(91, 108, 240, .85);
}
.mag-cap-h b { font-size: 13.5px; }
.mag-cap p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }

/* 面板磁贴：名称 + 路由（等宽） */
.mag-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; }
.mag-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mag-tile:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--bg-card); }
.mag-tile b { font-size: 13px; }
.mag-route {
  align-self: flex-start;
  padding: 1px 7px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--text-2);
  background: var(--bg-input); border: 1px solid var(--border);
}
.mag-tile i { font-size: 12px; font-style: normal; line-height: 1.7; color: var(--text-3); }

/* 画廊（`/agent` 专用）：**上大图 + 下无限轮播缩略图**，点缩略图切换大图。
   用 `--look` 修饰符而不是改 `.mag-gallery` 本体 —— 指南页那两格也用了这个类名，
   改本体就会把它一起改掉（那页只有 2 张图，不需要切换）。
   轮播轨道复制 **3 份**：`translateX(-33.3333%)` 正好是一份的宽度，
   3 份总宽（4×160px×3≈1920）≥ 容器(1240)+一份(640) ⇒ 任何宽度都不会露白。 */
.mag-gallery--look { gap: 12px; }
.mag-look-main {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-soft); box-shadow: var(--shadow-sm);
}
.mag-look-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; /*object-fit: cover;*/ }
.mag-look-cap {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-card);
}
.mag-look-cap b { font-size: 13px; }
.mag-look-cap span { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

/* 轮播条：照 `components/me-why-marquee.js` 的交互来 ——
   **离散步进 + 自动播放(3200ms) + 左右箭头 + 无限循环**（不是 CSS 匀速滚动）。
   无限循环靠「轨道复制多份 + 走完一组就把 index 归零且过渡瞬时」，
   因为每一组内容完全相同，归零那一瞬用户在视觉上看不出断点。 */
/* ⚠️ `min-width: 0` 必须写：轨道是 `width: max-content`（16 张 ≈ 2710px），
   而网格项默认 `min-width: auto` 不允许收缩 ⇒ 会把整页撑宽（实测横向溢出 1290px）。
   裁剪放在内层 `.mag-look-viewport`，外层仍须能收缩。 */
.mag-look-strip { position: relative; min-width: 0; }
.mag-gallery--look > * { min-width: 0; }
.mag-look-viewport {
  overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.mag-look-track {
  display: flex; gap: 10px; width: max-content;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.mag-look-track.is-jump { transition: none; }   /* 归零时瞬时复位，避免倒着飞回去 */

/* 左右导航（位置/尺寸/悬停语义对齐首页 .me-why-nav） */
.mag-look-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 30px; height: 30px; margin-top: -15px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-card); color: var(--text-2);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.mag-look-nav:hover { color: var(--primary); border-color: var(--primary); transform: scale(1.06); }
.mag-look-nav:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mag-look-nav.prev { left: 2px; }
.mag-look-nav.next { right: 2px; }

.mag-thumb {
  /* 宽度由 JS 按「一屏几张」写进 `--look-thumb`（宽屏 3 张 / 中屏 2 张 / 窄屏 1 张）；
     150px 只是 JS 未执行前的兜底 */
  flex: none; width: var(--look-thumb, 150px); padding: 0;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mag-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mag-thumb span {
  display: block; padding: 4px 7px;
  font-size: 10.5px; text-align: left; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mag-thumb:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.mag-thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mag-thumb.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.mag-thumb.is-on span { color: var(--primary); }

/* 减弱动效：去掉滑动过渡（自动播放由 JS 关闭），箭头仍可用 */
@media (prefers-reduced-motion: reduce) {
  .mag-look-track { transition: none; }
}
[data-reduce-motion="on"] .mag-look-track { transition: none; }

@media (max-width: 560px) {
  .mag-look-cap { padding: 8px 11px; }
  .mag-look-nav { width: 26px; height: 26px; margin-top: -13px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   A 版（`/` 首页）**移动端专项**（2026-11-03）
   审计（320/375/414）发现的问题与对应修法：
     ① 首屏 943px：hero 里那张**纯装饰**的模拟截图在手机上占 300–330px，把 CTA 挤出首屏
        → ≤760 直接隐藏（它本身 `aria-hidden`，无信息损失）
     ② 轮播箭头只有 26px（< 40px 触控下限）→ 移动端 40px，并贴边
     ③ 柱状图 8 根柱在 320–414 下每根仅 25–37px，**标签全被省略号吃掉** → 改横向可滚，
        每根固定 46px（8 根≈380px，略超屏宽即可滑），标签可读
     ④ 区块间距 38px 偏大 → 移动端收紧到 ~26px
   另外顺带：字号可读性（注解 13px、统计标签 12px）、装饰光斑在移动端降 blur（性能）
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* ① 首屏：装饰截图退出手机首屏 */
  .mag-hero .mag-shot-wrap { display: none; }
  .mag-hero { padding: 30px 18px 26px; }
  .mag-hero-grid { gap: 0; }

  /* ④ 移动端收紧区块间距（桌面仍用 24px 增强值）
     ⚠️ 这几条**必须带 `.mag-page` 前缀**：`.mag-bars` / `.mag-bar` / `.mag-block` 的基础规则
        写在本媒体块**之后**（文件里 .mag-* 分散在多个追加段），同权重会被后者覆盖 ——
        实测「规则写了但不生效」（柱状图仍是 flex:1、间距仍是 38px），提权后才作用。 */
  .mag-page .mag-block { margin-bottom: calc(var(--module-gap) + 6px); }   /* ≈20px，比桌面 38px 紧、又不至于挤成一坨 */

  /* ③ 柱状图横向可滚，标签不再被截断（56px ≈ 5 个汉字 @10px，实测 46px 仍会被省略号吃掉） */
  .mag-page .mag-bars { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .mag-page .mag-bars::-webkit-scrollbar { display: none; }
  .mag-page .mag-bar { flex: 0 0 56px; }
  .mag-page .mag-bar span { font-size: 10px; }

  /* ② 轮播箭头：触控目标 40px */
  .mag-look-nav { width: 40px; height: 40px; margin-top: -20px; }
  .mag-look-nav.prev { left: 0; }
  .mag-look-nav.next { right: 0; }
  .mag-look-strip { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }

  /* 字号可读性（`.mag-note` 的基础规则同样在本块之后 ⇒ 必须提权） */
  .mag-page .mag-note { font-size: 13px; line-height: 1.85; }
  .mag-stat-l { font-size: 12px; }

  /* 装饰光斑：移动端降 blur / 少一层，减少合成压力 */
  .mag-aurora i { filter: blur(40px); }
  .mag-aurora i:nth-child(3) { display: none; }
}

/* 平板区间（761–900）：手机那套「隐藏装饰截图 / 收紧间距」不必套用，
   但**柱状图标签与轮播箭头**同样偏小，单独补一档 */
@media (max-width: 900px) and (min-width: 761px) {
  .mag-look-nav { width: 36px; height: 36px; margin-top: -18px; }
  .mag-page .mag-bars { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .mag-page .mag-bars::-webkit-scrollbar { display: none; }
  .mag-page .mag-bar { flex: 0 0 52px; }
  .mag-page .mag-bar span { font-size: 10px; }
}

/* 极窄屏（≤360）**外壳补丁**：英文页头比中文宽（Sign in / Sign up），
   320px + EN 实测整页横向溢出 5px（`.me-header-actions` 右边界 325）。
   只收紧间距与按钮内边距，不影响其它宽度。 */
@media (max-width: 360px) {
  .me-header-actions { gap: 4px; }
  .me-header-actions .me-btn { padding-left: 8px; padding-right: 8px; font-size: 12.5px; }
}

@media (max-width: 400px) {
  .mag-page-title { font-size: 18px; }
  /* 320 + 英文时，加了页标题后 CTA 会掉出首屏 9px ⇒ 上边距/内距各收一点补回来 */
  .mag-page-head { margin-bottom: 8px; }
  .mag-hero { padding-top: 26px; }
  .mag-kicker { margin-bottom: 16px; }
  .mag-title { font-size: 30px; letter-spacing: -.03em; }
  .mag-stats { gap: 8px; }
  .mag-stat { padding: 10px 11px; }
  .mag-stat-n { font-size: 26px; }
  .mag-cta { gap: 8px; }
}

/* 页面底部「合作伙伴」：与首页同一组件（me-home-section + me-partners），这里只加一条分隔线 */
.mag-partners {
  margin-top: calc(var(--module-gap) + 12px);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mag-partners .me-home-section { margin-bottom: 0; }

/* 徽章流（插件 / 技能）+ 尾部说明 */
.mag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mag-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 12.5px; color: var(--text-2);
}
.mag-chip b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--primary); }
.mag-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--text-3); }

/* 尾部 CTA 带 */
.mag-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 100% 0%, var(--primary-weak), transparent 62%),
    var(--bg-card);
}
.mag-band-t { flex: 1; min-width: 220px; }
.mag-band-t b { display: block; font-size: 14px; margin-bottom: 4px; }
.mag-band-t span { font-size: 12.5px; color: var(--text-2); }
.mag-band .mag-btn-solid { color: #07101f; }   /* 亮色主题下仍保持深字（渐变底） */

@media (max-width: 900px) {
  .mag-hero { padding: 30px 22px 26px; }
  .mag-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .mag-term { display: none; }      /* 窄屏去掉装饰卡，信息密度优先 */
}
@media (max-width: 560px) {
  .mag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-title { font-size: 28px; }
  .mag-btn { flex: 1 1 100%; justify-content: center; }
}

/* ─────────────────────── B. 实用详细指南 ─────────────────────── */

.magu-head { margin-bottom: var(--module-gap); }
.magu-head h2 { margin: 0 0 6px; font-size: 24px; }
.magu-head p { margin: 0; max-width: 820px; font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.magu-head-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.magu-wrap {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
/* 左侧目录：桌面端吸附（页头是吸顶的，top 让开它的高度） */
.magu-toc {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  padding: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.magu-toc-t {
  margin: 2px 0 8px; padding: 0 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}
.magu-toc-i {
  display: block; width: 100%; text-align: left;
  padding: 7px 9px; margin-bottom: 2px;
  border: none; border-left: 2px solid transparent; border-radius: 0 7px 7px 0;
  background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; line-height: 1.5; color: var(--text-2);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.magu-toc-i em { font-style: normal; margin-right: 7px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.magu-toc-i:hover { background: var(--bg-hover); color: var(--text); }
.magu-toc-i.is-on {
  color: var(--primary); font-weight: 600;
  border-left-color: var(--primary); background: var(--primary-weak);
}
.magu-toc-i.is-on em { color: var(--primary); }

/* 章节卡 */
.magu-sec {
  padding: 18px 20px;
  margin-bottom: var(--module-gap);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.magu-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15.5px; }
.magu-n {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: var(--primary); background: var(--primary-weak);
}
.magu-sec p { margin: 0 0 10px; font-size: 13px; line-height: 1.9; color: var(--text-2); }
.magu-sec p:last-child { margin-bottom: 0; }

/* 行内路径 / 命令 */
.magu-code {
  padding: 1px 6px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--text); background: var(--bg-input);
  border: 1px solid var(--border);
  word-break: break-all;
}

/* 提示条（info 蓝 / warn 黄 / good 绿） */
.magu-callout {
  margin: 10px 0 0; padding: 10px 12px;
  border-left: 3px solid var(--info); border-radius: 0 8px 8px 0;
  background: var(--info-bg);
  font-size: 12.5px; line-height: 1.85; color: var(--text-2);
}
.magu-callout--warn { border-left-color: var(--warning); background: var(--warning-bg); }
.magu-callout--good { border-left-color: var(--success); background: var(--success-bg); }
.magu-callout b { color: var(--text); }

/* 上手步骤：圆号 + 验收行 */
.magu-steps { counter-reset: mgs; margin: 0; padding: 0; list-style: none; }
.magu-steps > li { position: relative; padding-left: 34px; margin-bottom: 16px; }
.magu-steps > li:last-child { margin-bottom: 0; }
.magu-steps > li::before {
  counter-increment: mgs; content: counter(mgs);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--primary);
}
.magu-steps b { display: block; margin-bottom: 4px; font-size: 13.5px; }
.magu-steps span { display: block; font-size: 13px; line-height: 1.85; color: var(--text-2); }
.magu-check {
  display: block; margin-top: 5px;
  font-size: 12.5px; line-height: 1.8; color: var(--success);
}
.magu-check::before { content: '✓ '; font-weight: 700; }

/* 两列小卡（常见任务） */
.magu-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); gap: 10px; }
.magu-card {
  padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-soft);
}
.magu-card b { display: block; margin-bottom: 4px; font-size: 13px; }
.magu-card span { font-size: 12.5px; line-height: 1.8; color: var(--text-2); }

/* FAQ */
.magu-faq { display: grid; gap: 8px; }
.magu-faq details {
  padding: 10px 13px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-soft);
}
.magu-faq summary {
  cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.magu-faq summary::-webkit-details-marker { display: none; }
.magu-faq summary::before { content: '+'; margin-right: 8px; font-weight: 700; color: var(--primary); }
.magu-faq details[open] summary::before { content: '−'; }
.magu-faq details p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--text-2); }

@media (max-width: 980px) {
  .magu-wrap { grid-template-columns: 1fr; gap: 0; }
  /* 目录改横向胶囊条，随页面滚动（不再吸附，避免占掉首屏） */
  .magu-toc {
    position: static; display: flex; gap: 6px; overflow-x: auto;
    padding: 8px; margin-bottom: 12px;
    border-radius: var(--radius);
    scrollbar-width: none;
  }
  .magu-toc::-webkit-scrollbar { display: none; }
  .magu-toc-t { display: none; }
  .magu-toc-i {
    flex: none; width: auto; margin: 0; padding: 6px 11px;
    border: 1px solid var(--border); border-radius: 999px;
    white-space: nowrap;
  }
  .magu-toc-i.is-on { border-color: var(--primary); }
}
@media (max-width: 560px) {
  .magu-sec { padding: 15px 14px; }
  .magu-head h2 { font-size: 21px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   A 版「光彩夺目」增强层（2026-10-26 第二轮）
     · 封面：三层极光光斑 + 点阵 + 渐变光环 + 模拟仪表盘「截图」
     · 图表：环形图 / 柱状图 / 条形图（纯 CSS 入场动画，无图表库）
     · 流程：HTML 流程图（窄屏竖排，不用 SVG 小字）
     · 跑马灯：供应商 / 平台名单（两侧渐隐遮罩，悬停暂停）
     · 入场：`.mag-reveal` 滚动渐显（JS 兜底：2s 后强制全显，避免观察器失效时页面空白）
   ⚠️ 图表用到的数据**全部是真实事实**（技能分类个数 / 插件分组个数 / 规模数字），
      不要为了好看编一条「每日请求」曲线 —— 那是在页面上说假话。
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 页面级标题（在封面之上、深色卡片之外） ──
   左侧一条强调色竖条做「页标题」标记；字号刻意**小于**封面里的 `.mag-title`，
   避免与封面大标题打架（两者文案相同，靠尺寸与位置区分层级）。 */
.mag-page-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; text-align: center; }
.mag-page-head::before {
  content: ''; flex: none;
  width: 4px; height: 1.05em; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), #46dcff);
}
.mag-page-title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  color: var(--text);
}

/* ── `me-hero` 的版式副本（`<me-hero-agent>`） ──
   外壳直接复用 `.mag-hero` 那套类名 ⇒ 内间距 / 字号 / 栅格 / 对齐 / 配色自动一致；
   这里只补三处差异：统计是 3 项（封面是 4 项）、右侧轨道居中略小、窄屏去掉装饰。 */
.me-hero-agent { position: relative; }
.me-hero-agent .mag-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.me-hero-agent .me-hero-agent-visual { display: grid; place-items: center; position: relative; z-index: 1; }
.me-hero-agent .me-orbit { width: 260px; height: 260px; }
/* 右侧粒子层：与 `me-hero` 相同的位置策略（右 60%、铺满高度、垫在最底层、不拦点击） */
.me-hero-agent-particles {
  position: absolute; top: 0; right: 0;
  width: 60%; height: 100%;
  z-index: 0; pointer-events: none;
}
/* 文案层压在粒子之上（只作用于副本，不影响页面自己的封面） */
.me-hero-agent .mag-hero-grid > div { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .me-hero-agent .me-hero-agent-visual { display: none; }
  .me-hero-agent .mag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 首页同款追加区（WHY INT API / 价格方案） ──
   副标题用站点名（`store.web_name`），字号比页首「吉程 Agent」小一档，
   靠 `.mag-page-head--sub` 区分主副；两块 `me-home-section` 的间距与原页保持一致。 */
.mag-more { margin-top: calc(var(--module-gap) + 8px); }
/* 副标题上方加一条**分隔线**：用 border-top（标题左侧那条 4px 竖条是 `::before`，两者互不干扰） */
.mag-page-head--sub {
  margin-top: calc(var(--module-gap) + 44px);
  margin-bottom: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mag-page-head--sub .mag-page-title { /*font-size: clamp(18px, 2.2vw, 24px); color: var(--text-2); */}
.mag-more .me-home-section { margin-bottom: calc(var(--module-gap) - 2px);padding: 20px; }
.mag-more .me-section-line {display:none;}
.mag-more .me-home-section-title {text-align:left;font-size: 20px;margin-bottom:1.2vw;}

/* ── 封面：更大、更有层次 ── */
.mag-hero { padding: 60px 52px 54px; border-radius: 26px; }
.mag-hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr); gap: 40px; }
.mag-title { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.03em; margin-bottom: 16px; }
.mag-sub { font-size: 15px; line-height: 1.9; max-width: 580px; }
.mag-kicker { margin-bottom: 22px; }
.mag-stats { margin-top: 30px; gap: 12px; }
.mag-stat { padding: 12px 14px; border-radius: 12px; }
.mag-stat-n { font-size: 30px; }
.mag-cta { margin-top: 30px; }
.mag-btn { height: 42px; padding: 0 22px; border-radius: 11px; font-size: 14px; }

/* 三层极光光斑（缓慢浮动） */
.mag-aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.mag-aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(52px); opacity: .72; }
.mag-aurora i:nth-child(1) {
  width: 560px; height: 560px; left: -150px; top: -210px;
  background: radial-gradient(circle, rgba(91, 108, 240, .95), transparent 62%);
  animation: mag-float 18s ease-in-out infinite;
}
.mag-aurora i:nth-child(2) {
  width: 480px; height: 480px; right: -130px; top: -110px;
  background: radial-gradient(circle, rgba(0, 226, 255, .55), transparent 64%);
  animation: mag-float 22s ease-in-out infinite reverse;
}
.mag-aurora i:nth-child(3) {
  width: 440px; height: 440px; left: 34%; bottom: -280px;
  background: radial-gradient(circle, rgba(255, 86, 201, .38), transparent 66%);
  animation: mag-float 26s ease-in-out infinite;
}
@keyframes mag-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -20px, 0) scale(1.09); }
}
/* 点阵纹理（叠在网格之上，朝中心渐隐） */
.mag-dots {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(72% 62% at 52% 38%, #000, transparent 76%);
  mask-image: radial-gradient(72% 62% at 52% 38%, #000, transparent 76%);
}

/* 模拟仪表盘「截图」（纯 DOM 绘制，不是位图；对读屏隐藏） */
.mag-shot-wrap { position: relative; border-radius:10px; }
.mag-ring-bg {
  position: absolute; width: 420px; height: 420px; right: -90px; top: -110px;
  border-radius: 50%; z-index: -1; filter: blur(16px); pointer-events: none;
  background: conic-gradient(from 0deg, rgba(109, 125, 255, .34), transparent 38%,
    rgba(65, 215, 255, .3) 66%, transparent 88%);
  animation: mag-sweep 28s linear infinite;
}
.mag-shot {
  opacity: 0;
  position: relative; overflow: hidden; border-radius: 10px;
  border: 0px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(255, 252, 252, .94), rgba(63, 75, 165, .97));
  box-shadow: 0 44px 96px -38px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .6s var(--ease);
}
.mag-shot:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
/* 覆盖在模拟界面之上的真实截图：绝对铺满 + `object-fit: cover`；
   `pointer-events: none` 让下方卡片的 hover 摆正仍然生效（它本身不需要交互） */
.mag-shot-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: block; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.mag-shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
}
.mag-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mag-shot-bar i:first-child { background: #ff6b6b; }
.mag-shot-bar i:nth-child(2) { background: #ffd166; }
.mag-shot-bar i:nth-child(3) { background: #4ade80; }
.mag-shot-bar b { margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: .05em; color: rgba(35, 92, 235, 0.5); }
.mag-shot-body { display: grid; grid-template-columns: 66px minmax(0, 1fr); min-height: 262px; }
.mag-shot-side {
  display: flex; flex-direction: column; gap: 9px;
  padding: 12px 10px; border-right: 1px solid rgba(255, 255, 255, .07);
}
.mag-shot-side i { display: block; height: 8px; border-radius: 3px; background: rgba(118, 70, 209, .23); }
.mag-shot-side i.on { background: linear-gradient(90deg, #6d7dff, #41d7ff); box-shadow: 0 0 12px rgba(65, 215, 255, .5); }
.mag-shot-main { display: flex; flex-direction: column; gap: 11px; padding: 13px 15px; }
.mag-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mag-kpi { padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; background: rgba(255, 255, 255, .035); }
.mag-kpi b { display: block; font-size: 16px; line-height: 1.2; color: #0003a3; font-variant-numeric: tabular-nums; }
.mag-kpi span { font-size: 10px; letter-spacing: .05em; color: rgb(51 76 127); }
.mag-area { display: block; width: 100%; height: 104px; }
.mag-area .grid-line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.mag-area .line {
  fill: none; stroke: #6fe3ff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: mag-draw 2.4s var(--ease) .2s forwards;
}
.mag-area .line2 {
  fill: none; stroke: rgba(255, 138, 181, .85); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: mag-draw 2.4s var(--ease) .45s forwards;
}
@keyframes mag-draw { to { stroke-dashoffset: 0; } }
.mag-shot-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.mag-pill {
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
  font-size: 10.5px; color: rgb(51 76 127);
}

/* ── 图表卡（A / B 两版共用；走主题变量，亮暗都成立） ── */
.mag-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 12px; }
.mag-chart {
  padding: 15px 16px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card);
}
.mag-chart-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.mag-chart-h b { font-size: 13.5px; }
.mag-chart-h span { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

/* 环形图 */
/* 圆环 + 图例：`flex-wrap` 必须开 —— 128 圆环 + 16 gap + 图例最小宽 118 = 262，
   在 320px 屏（内容区 ~254）会硬挤出去（实测整页溢出 5px，英文更明显）⇒ 窄屏自动换行 */
.mag-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mag-donut { flex: none; width: 128px; height: 128px; }
.mag-donut circle { fill: none; }
.mag-donut .slice { animation: mag-donut-in 1.1s var(--ease) both; }
@keyframes mag-donut-in {
  from { opacity: 0; transform: rotate(-26deg) scale(.86); }
  to { opacity: 1; transform: none; }
}
.mag-donut .center-n { fill: var(--text); font-size: 21px; font-weight: 700; font-family: inherit; }
.mag-donut .center-l { fill: var(--text-3); font-size: 9.5px; letter-spacing: .06em; font-family: inherit; }
.mag-legend { flex: 1 1 118px; min-width: 0; display: grid; gap: 6px; }
.mag-legend div { display: flex; align-items: center; min-width: 0; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.mag-legend i { width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; flex: none; }
.mag-legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }

/* 柱状图（高度用 --h，入场从 0 长到 --h）
   标签允许**两行**（短名仍可能因窄容器或英文长词换行）：容器高度 138→158 给第二行留位，
   用 `-webkit-line-clamp: 2` 兜住行数（超两行才省略），`max-height` 是给不支持 clamp 的浏览器的兜底。 */
.mag-bars { display: flex; align-items: flex-end; gap: 8px; height: 158px; }
.mag-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.mag-bar i {
  display: block; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #7c8cff, #35d0ff);
  box-shadow: 0 6px 16px -8px rgba(65, 215, 255, .8);
  animation: mag-grow-y 1s var(--ease) both;
}
@keyframes mag-grow-y { from { height: 0; opacity: .4; } }
.mag-bar b { font-size: 11px; text-align: center; color: var(--text); font-variant-numeric: tabular-nums; }
/* 标签允许两行：
   ⚠️ 不能用 `-webkit-box + line-clamp` —— 实测被同名的标准 `line-clamp` 覆盖成 `flow-root`，
      而且它作为 flex 子项会被 `flex-shrink` 压到 18px（半行被裁）。
      改为「**不收缩** + `max-height: 2.7em` 截到两行 + `overflow-wrap: anywhere` 断长单词」。 */
.mag-bar span {
  flex: none;
  max-height: 2.7em; overflow: hidden;
  font-size: 10.5px; line-height: 1.3; text-align: center; color: var(--text-3);
  white-space: normal; overflow-wrap: anywhere;
}

/* 条形图（宽度用 --w） */
.mag-hbars { display: grid; gap: 10px; }
.mag-hbar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 36px; align-items: center; gap: 9px; }
.mag-hbar span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mag-hbar u {
  display: block; height: 9px; border-radius: 99px; text-decoration: none;
  width: var(--w);
  background: linear-gradient(90deg, #5b6cf0, #41d7ff);
  box-shadow: 0 4px 14px -8px rgba(65, 215, 255, .9);
  animation: mag-grow-x 1.1s var(--ease) both;
}
@keyframes mag-grow-x { from { width: 0; } }
.mag-hbar b { font-size: 12px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── 流程图（HTML，不用 SVG：窄屏可竖排、字号正常） ── */
.mag-flow { display: flex; align-items: stretch; gap: 10px; }
.mag-fl-node {
  flex: 1; min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft);
}
.mag-fl-node b { display: block; margin-bottom: 3px; font-size: 12.5px; }
.mag-fl-node span { font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.mag-fl-node--c {
  border-color: var(--primary);
  background: var(--primary-weak);
  box-shadow: 0 8px 26px -14px var(--primary);
}
.mag-fl-node--c b { color: var(--primary); }
.mag-fl-arrow { flex: none; width: 26px; position: relative; }
.mag-fl-arrow::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 6px;
  border-top: 1.5px dashed var(--border-strong);
  animation: mag-dash-move 1.6s linear infinite;
}
.mag-fl-arrow::after {
  content: ''; position: absolute; top: 50%; right: 2px; margin-top: -3px;
  border: 4px solid transparent; border-left-color: var(--primary);
}
@keyframes mag-dash-move { to { transform: translateX(4px); } }

/* ── 跑马灯（名单流） ──
   ⚠️ `min-width: 0` 必须写：轨道是 `width: max-content`，而网格/弹性子项默认
      `min-width: auto` ⇒ 父级会被撑成轨道的宽度（实测整页横向溢出 **2537px**）。 */
.mag-mq-rows { display: grid; gap: 12px; min-width: 0; }
.mag-mq-rows > div { min-width: 0; }
.mag-marquee {
  overflow: hidden; padding: 2px 0; min-width: 0; max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mag-marquee-track { display: flex; gap: 9px; width: max-content; animation: me-marquee-scroll 42s linear infinite; }
.mag-marquee--rev .mag-marquee-track { animation-direction: reverse; animation-duration: 52s; }
.mag-marquee:hover .mag-marquee-track { animation-play-state: paused; }
.mag-mq-item {
  flex: none; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
}
.mag-mq-item.on { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); }

/* ── 滚动入场（JS 兜底：2s 后强制全显） ── */
.mag-reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.mag-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mag-reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 大区块标题（带序号水印，更「大气」） ── */
.mag-block { position: relative; margin-bottom: calc(var(--module-gap) + 24px); }
.mag-block-h { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.mag-block-h h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.mag-block-h span { margin-left: auto; font-size: 12px; color: var(--text-3);opacity:0; }
.mag-block-h em {
  font-style: normal; font-size: 34px; font-weight: 800; line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--border-strong);
  display:none;
}
@supports not ((-webkit-text-stroke: 1px red)) { .mag-block-h em { color: var(--border-strong); } }

/* ── 真实界面截图画廊（`/me/static/agent/*.jpg`，由仪表盘 UI 实拍而来） ──
   截图是 1440×900（16:10），容器用 `aspect-ratio: 16 / 10` ⇒ **不裁切**；只做圆角 + 悬停微浮。 */
.mag-gallery { display: grid; gap: 12px; }
.mag-gallery-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 12px; }
.mag-fig {
  margin: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-soft); box-shadow: var(--shadow-sm);
  padding: 10px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mag-fig:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.mag-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mag-fig-cap {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 12px; border-top: 1px solid var(--border); background: var(--bg-card);
}
.mag-fig-cap b { font-size: 12.5px; }
.mag-fig-cap span {
  margin-left: auto; font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 窄屏：说明文字允许换行（否则胶囊里全被省略号吃掉） */
@media (max-width: 560px) {
  .mag-fig-cap { flex-wrap: wrap; }
  .mag-fig-cap span { margin-left: 0; white-space: normal; }
}

/* ════════════════════════════════════════════════════════════════════════════
   C 版：**杂志 / Bento**（`/agent/showcase`，2026-10-26）
   与 A（深色霓虹封面）、B（文档手册）**刻意区分**：
     · 亮色优先：白卡 + 发丝线（1px）+ 大留白，用「编排」而不是「发光」制造气势
     · 非对称 12 栏 Bento：大图 7 栏、数字 5 栏、环形图 4 栏、面板清单 8 栏
     · 超大字号（clamp 到 76px）+ 负字距；强调色只给关键词与序号
     · 全部走主题变量 ⇒ 暗色主题下自动成立（不使用任何写死的浅色底）
   ════════════════════════════════════════════════════════════════════════════ */
.mex-page { --mex-line: var(--border); }

/* 报头 */
.mex-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 30px; align-items: end;
  padding: 6px 0 20px;
}
.mex-eyebrow {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 15px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
.mex-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--primary); }
.mex-title {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  color: var(--text);
}
.mex-title em { font-style: normal; color: var(--primary); }
.mex-mast-r { padding-bottom: 4px; }
.mex-lede { margin: 0 0 13px; font-size: 14px; line-height: 1.95; color: var(--text-2); }
.mex-meta {
  display: flex; flex-wrap: wrap; gap: 5px 16px;
  margin-bottom: 16px;
  font-size: 11.5px; letter-spacing: .04em; color: var(--text-3);
}
.mex-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.mex-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mex-rule { height: 1px; background: var(--mex-line); margin: 2px 0 calc(var(--module-gap) + 8px); }

/* Bento 网格 */
.mex-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: calc(var(--module-gap) + 10px);
}
.mex-tile {
  position: relative; min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--mex-line); border-radius: 14px;
  background: var(--bg-card);
}
.mex-tile--7 { grid-column: span 7; }
.mex-tile--5 { grid-column: span 5; }
.mex-tile--4 { grid-column: span 4; }
.mex-tile--8 { grid-column: span 8; }
.mex-tile--shot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mex-tile--accent {
  border-color: transparent;
  background:
    radial-gradient(130% 130% at 100% 0%, var(--primary-weak), transparent 62%),
    var(--bg-card);
}
.mex-t { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.mex-t span { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 11.5px; }
.mex-num {
  font-size: clamp(46px, 5.2vw, 68px); font-weight: 800; line-height: .88;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--text);
}
.mex-num small { margin-left: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.mex-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 16px; }
.mex-kv div { display: flex; align-items: baseline; gap: 7px; padding-top: 8px; border-top: 1px solid var(--mex-line); font-size: 12px; color: var(--text-2); }
.mex-kv b { color: var(--text); font-variant-numeric: tabular-nums; }
.mex-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mex-cap { display: flex; align-items: baseline; gap: 8px; padding: 10px 13px; border-top: 1px solid var(--mex-line); font-size: 11.5px; color: var(--text-3); }
.mex-cap b { font-size: 12.5px; color: var(--text); }
.mex-cap span { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 面板清单（两列，路由用等宽小字） */
.mex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.mex-list div { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--mex-line); font-size: 12.5px; }
.mex-list b { flex: none; }
.mex-list code {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; color: var(--text-3);
}

/* 案例三栏（发丝线分隔） */
.mex-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--mex-line); margin-bottom: calc(var(--module-gap) + 6px); }
.mex-case { padding: 18px 22px 8px 0; border-right: 1px solid var(--mex-line); min-width: 0; }
.mex-case:last-child { border-right: none; padding-right: 0; }
.mex-case-n { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--primary); }
.mex-case h4 { margin: 9px 0 8px; font-size: 15.5px; letter-spacing: -.01em; }
.mex-case p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--text-2); }

/* 规格表 */
.mex-spec { display: grid; grid-template-columns: 148px minmax(0, 1fr); margin: 0 0 calc(var(--module-gap) + 4px); font-size: 13px; }
.mex-spec dt { padding: 11px 0; border-top: 1px solid var(--mex-line); color: var(--text-3); }
.mex-spec dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--mex-line); color: var(--text); }
.mex-spec dd b { font-variant-numeric: tabular-nums; }

/* 页脚 */
.mex-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding-top: 16px; border-top: 1px solid var(--mex-line);
  font-size: 12px; color: var(--text-3);
}
.mex-foot button {
  border: none; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--primary);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
}
.mex-foot button:hover { border-bottom-color: var(--primary); }

/* 滚动入场（与 A 版同一套思路，独立类名，互不影响） */
.mex-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mex-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mex-reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 980px) {
  .mex-mast { grid-template-columns: 1fr; gap: 18px; }
  .mex-tile--7, .mex-tile--5, .mex-tile--4, .mex-tile--8 { grid-column: span 12; }
  .mex-cases { grid-template-columns: 1fr; }
  .mex-case { border-right: none; border-bottom: 1px solid var(--mex-line); padding: 16px 0 12px; }
  .mex-case:last-child { border-bottom: none; }
  .mex-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mex-spec { grid-template-columns: 1fr; }
  .mex-spec dt { border-top: 1px solid var(--mex-line); padding-bottom: 0; }
  .mex-spec dd { border-top: none; padding-top: 3px; }
  .mex-title { font-size: clamp(32px, 10vw, 44px); }
}

/* ════════════════════════════════════════════════════════════════════════════
   介绍页「同内容、多皮肤」构件层（`.agt-*`）+ 三套新皮肤（2026-10-27）
     D. 工程蓝图 `/agent/blueprint`  `.bp-page`  深蓝底 + 青色谱线 + 等宽标注
     E. 瑞士极简 `/agent/swiss`      `.sw-page`  纯白 + 单一红 + 零圆角 + 严格对齐
     F. 终端 CLI `/agent/terminal`   `.tm-page`  近黑 + 全等宽 + ASCII 分隔 + 光标
   构件层只做「结构」（栅格/间距/表格/图片比例），**不含视觉决策**：
   颜色、圆角、阴影、边框风格全部由皮肤覆盖 —— 所以同一份标记能长出三种完全不同的样子。
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 构件层（中性） ── */
.agt-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.agt-vars-l { margin-right: 3px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.agt-var-i {
  padding: 3px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 12px; cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.agt-var-i:hover { color: var(--text); border-color: var(--border-strong); }
.agt-var-i.is-on { color: var(--primary); border-color: var(--primary); }

.agt-hero { margin-bottom: calc(var(--module-gap) + 4px); }
.agt-eyebrow { margin-bottom: 13px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.agt-h1 { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; }
.agt-h1 em { font-style: normal; }
.agt-sub { margin: 0; max-width: 680px; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.agt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.agt-btn {
  height: 36px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.agt-btn:hover { transform: translateY(-1px); }
.agt-btn--p { background: var(--primary); border-color: var(--primary); color: #fff; }

.agt-sec { margin-bottom: calc(var(--module-gap) - 6px); }
.agt-sec-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.agt-no { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.agt-hint { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--text-3); }

.agt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.agt-stat { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.agt-n { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.agt-l { font-size: 11.5px; color: var(--text-3); }

.agt-tblw { overflow-x: auto; }
.agt-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.agt-tbl th, .agt-tbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.agt-tbl th { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.agt-tbl code, .agt-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--text-2);
}

.agt-list { list-style: none; margin: 0; padding: 0; }
.agt-list li { display: grid; grid-template-columns: 118px 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }

.agt-mx { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.agt-mx-i { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.agt-mx-i b { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.agt-mx-i b i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--primary); font-variant-numeric: tabular-nums; }
.agt-mx-i span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }

.agt-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.agt-chips span { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); font-size: 12px; color: var(--text-2); }
.agt-chips b { margin-left: 6px; color: var(--primary); font-variant-numeric: tabular-nums; }

.agt-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.agt-cap { padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.agt-cap b { display: block; margin-bottom: 4px; font-size: 13px; }
.agt-cap span { font-size: 12.5px; line-height: 1.75; color: var(--text-2); }

.agt-flow { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agt-flow li { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.agt-flow li b { display: block; margin-bottom: 3px; font-size: 12.5px; }
.agt-flow li span { font-size: 11.5px; line-height: 1.7; color: var(--text-3); }

.agt-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 10px; }
.agt-fig { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.agt-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.agt-fig figcaption { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
.agt-fig figcaption b { font-size: 12px; color: var(--text); }
.agt-fig figcaption span { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.agt-note { margin: 10px 0 0; font-size: 12px; line-height: 1.8; color: var(--text-3); }
.agt-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: calc(var(--module-gap) + 2px); padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card);
}
.agt-cta > div { flex: 1; min-width: 220px; }
.agt-cta b { display: block; margin-bottom: 3px; font-size: 13.5px; }
.agt-cta span { font-size: 12.5px; color: var(--text-2); }

@media (max-width: 760px) {
  .agt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agt-list li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .agt-list li span { grid-column: 1 / -1; }
  .agt-flow { flex-direction: column; }
}

/* 窄屏：版式切换条改成**单行横向滑动**（折两行要吃掉 60px 首屏高度） */
@media (max-width: 560px) {
  .agt-vars { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .agt-vars::-webkit-scrollbar { display: none; }
  .agt-vars > * { flex: none; }
  .agt-vars-l { position: sticky; left: 0; background: var(--bg); padding-right: 4px; }
}

/* ═══════════════ D. 工程蓝图 ═══════════════ */
.bp-page {
  --bp-line: rgba(122, 200, 255, .3);
  --bp-ink: #a9dcff;
  --bp-dim: #6f9fc4;
  padding: 22px 24px 26px;
  border-radius: 6px;
  color: #d9ecff;
  background:
    linear-gradient(rgba(122, 200, 255, .05) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(122, 200, 255, .05) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(rgba(122, 200, 255, .1) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(122, 200, 255, .1) 1px, transparent 1px) 0 0 / 120px 100%,
    #071320;
  box-shadow: inset 0 0 0 1px rgba(122, 200, 255, .28);
}
.bp-page .agt-vars-l, .bp-page .agt-note, .bp-page .agt-hint { color: var(--bp-dim); }
.bp-page .agt-var-i { border-color: var(--bp-line); border-radius: 3px; color: var(--bp-dim); }
.bp-page .agt-var-i:hover { color: #dff2ff; border-color: var(--bp-ink); }
.bp-page .agt-var-i.is-on { color: #06121d; background: var(--bp-ink); border-color: var(--bp-ink); }

.bp-page .agt-eyebrow {
  display: inline-block; padding: 3px 9px;
  border: 1px dashed var(--bp-line); color: var(--bp-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .1em;
}
.bp-page .agt-h1 { color: #f2fbff; font-weight: 700; letter-spacing: -.02em; }
.bp-page .agt-h1 em { color: var(--bp-ink); }
.bp-page .agt-sub { color: #a9c6dd; }
.bp-page .agt-btn { border-color: var(--bp-line); background: transparent; color: #cfe9ff; border-radius: 3px; }
.bp-page .agt-btn:hover { border-color: var(--bp-ink); background: rgba(122, 200, 255, .1); }
.bp-page .agt-btn--p { background: var(--bp-ink); border-color: var(--bp-ink); color: #06121d; }

.bp-page .agt-sec-h { color: #eaf7ff; font-size: 14px; letter-spacing: .02em; }
.bp-page .agt-sec-h::after { content: ''; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--bp-line) 0 6px, transparent 6px 11px); }
.bp-page .agt-hint { order: 3; margin-left: 8px; }
.bp-page .agt-no { color: var(--bp-ink); font-family: ui-monospace, Menlo, monospace; }
.bp-page .agt-no::before { content: '['; }
.bp-page .agt-no::after { content: ']'; }

/* 尺寸标注：四角刻度 + 顶部尺寸线 */
.bp-page .agt-stat { position: relative; border: 1px solid var(--bp-line); border-radius: 0; background: rgba(9, 26, 42, .65); }
.bp-page .agt-stat::before, .bp-page .agt-stat::after {
  content: ''; position: absolute; width: 5px; height: 5px;
  border: 1px solid var(--bp-ink); opacity: .8;
}
.bp-page .agt-stat::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.bp-page .agt-stat::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.bp-page .agt-n { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.bp-page .agt-l { color: var(--bp-dim); font-family: ui-monospace, Menlo, monospace; }

.bp-page .agt-tbl th { color: var(--bp-ink); border-bottom: 1px solid var(--bp-line); font-family: ui-monospace, Menlo, monospace; }
.bp-page .agt-tbl td { color: #c8e2f6; border-bottom: 1px dashed rgba(122, 200, 255, .16); }
.bp-page .agt-tbl code, .bp-page .agt-list code { color: var(--bp-ink); }
.bp-page .agt-list li { border-bottom: 1px dashed rgba(122, 200, 255, .16); color: #c8e2f6; }
.bp-page .agt-list code { font-family: ui-monospace, Menlo, monospace; }

.bp-page .agt-mx-i, .bp-page .agt-cap, .bp-page .agt-flow li { border: 1px solid var(--bp-line); border-radius: 0; background: rgba(9, 26, 42, .55); }
.bp-page .agt-mx-i b { color: #eaf7ff; }
.bp-page .agt-mx-i b i { color: var(--bp-ink); }
.bp-page .agt-mx-i span, .bp-page .agt-cap span, .bp-page .agt-flow li span { color: #9dbdd4; }
.bp-page .agt-cap b, .bp-page .agt-flow li b { color: #eaf7ff; }
.bp-page .agt-flow li.is-core { border-color: var(--bp-ink); box-shadow: 0 0 0 1px rgba(122, 200, 255, .3) inset; }

.bp-page .agt-chips span { border: 1px solid var(--bp-line); border-radius: 2px; background: transparent; color: #c8e2f6; }
.bp-page .agt-chips b { color: var(--bp-ink); }

.bp-page .agt-fig { border: 1px solid var(--bp-line); border-radius: 0; background: rgba(9, 26, 42, .7); }
.bp-page .agt-fig figcaption { border-top: 1px solid var(--bp-line); color: var(--bp-dim); font-family: ui-monospace, Menlo, monospace; }
.bp-page .agt-fig figcaption b { color: #dff2ff; }

.bp-page .agt-cta { border: 1px dashed var(--bp-line); border-radius: 0; background: rgba(9, 26, 42, .6); }
.bp-page .agt-cta b { color: #eaf7ff; }
.bp-page .agt-cta span { color: #9dbdd4; }

/* ═══════════════ E. 瑞士国际主义 ═══════════════ */
.sw-page {
  --sw-ink: #101215;
  --sw-red: #e2452b;
  --sw-line: #101215;
  --sw-mute: #6b6f76;
  padding: 4px 0 6px;
  color: var(--sw-ink);
  background: #fff;
  font-feature-settings: 'tnum' 1;
}
.sw-page .agt-vars { margin-bottom: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--sw-ink); }
.sw-page .agt-vars-l { color: var(--sw-mute); }
.sw-page .agt-var-i { border: none; border-radius: 0; padding: 0 2px; color: var(--sw-mute); text-decoration: underline; text-underline-offset: 3px; }
.sw-page .agt-var-i:hover { color: var(--sw-ink); }
.sw-page .agt-var-i.is-on { color: var(--sw-red); font-weight: 700; }

.sw-page .agt-eyebrow {
  padding-top: 9px; border-top: 3px solid var(--sw-ink);
  color: var(--sw-ink); letter-spacing: .26em; font-size: 10.5px;
}
.sw-page .agt-h1 { font-size: clamp(42px, 7.4vw, 88px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.sw-page .agt-h1 em { color: var(--sw-red); }
.sw-page .agt-sub { max-width: 560px; margin-top: 18px; color: var(--sw-mute); font-size: 14.5px; line-height: 1.85; }
.sw-page .agt-actions { margin-top: 22px; }
.sw-page .agt-btn { border: 1px solid var(--sw-ink); border-radius: 0; background: transparent; color: var(--sw-ink); font-weight: 600; letter-spacing: .01em; }
.sw-page .agt-btn:hover { background: var(--sw-ink); color: #fff; transform: none; }
.sw-page .agt-btn--p { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }
.sw-page .agt-btn--p:hover { background: var(--sw-red); border-color: var(--sw-red); }

.sw-page .agt-sec { margin-bottom: calc(var(--module-gap) + 2px); }
.sw-page .agt-sec-h {
  padding-top: 8px; border-top: 1px solid var(--sw-ink);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.sw-page .agt-no { color: var(--sw-red); font-size: 12px; letter-spacing: 0; }
.sw-page .agt-no::after { content: ' /'; }
.sw-page .agt-hint { color: var(--sw-mute); font-family: ui-monospace, Menlo, monospace; }

.sw-page .agt-stats { gap: 0; border-top: 1px solid var(--sw-ink); }
.sw-page .agt-stat { padding: 12px 0 4px; border: none; border-radius: 0; background: none; }
.sw-page .agt-stat + .agt-stat { padding-left: 16px; border-left: 1px solid #d8dade; }
.sw-page .agt-n { font-size: clamp(40px, 5.4vw, 66px); letter-spacing: -.05em; color: var(--sw-red); }
.sw-page .agt-l { color: var(--sw-ink); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.sw-page .agt-tbl th { border-bottom: 1px solid var(--sw-ink); border-top: none; color: var(--sw-ink); letter-spacing: .16em; }
.sw-page .agt-tbl td { border-bottom: 1px solid #e2e4e8; }
.sw-page .agt-tbl tr:hover td { background: #f6f6f7; }
.sw-page .agt-tbl code, .sw-page .agt-list code { color: var(--sw-mute); }

.sw-page .agt-cap, .sw-page .agt-mx-i {
  padding: 10px 0 6px; border: none; border-top: 1px solid var(--sw-ink);
  border-radius: 0; background: none;
}
.sw-page .agt-cap b, .sw-page .agt-mx-i b { font-size: 13px; letter-spacing: -.01em; }
.sw-page .agt-mx-i b i { color: var(--sw-red); font-weight: 700; }
.sw-page .agt-cap span, .sw-page .agt-mx-i span { color: var(--sw-mute); }
.sw-page .agt-caps, .sw-page .agt-mx { gap: 18px; }

.sw-page .agt-chips { gap: 0; }
.sw-page .agt-chips span {
  padding: 6px 12px 6px 0; margin-right: 12px;
  border: none; border-radius: 0; background: none;
  border-bottom: 1px solid #d8dade; font-size: 12.5px;
}
.sw-page .agt-chips b { color: var(--sw-red); }

.sw-page .agt-flow { gap: 0; border-top: 1px solid var(--sw-ink); }
.sw-page .agt-flow li { padding: 10px 14px 10px 0; border: none; border-radius: 0; background: none; }
.sw-page .agt-flow li + li { padding-left: 14px; border-left: 1px solid #d8dade; }
.sw-page .agt-flow li b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sw-page .agt-flow li.is-core b { color: var(--sw-red); }

.sw-page .agt-fig { border: 1px solid var(--sw-ink); border-radius: 0; background: #fff; }
.sw-page .agt-fig figcaption { border-top: 1px solid var(--sw-ink); color: var(--sw-mute); }
.sw-page .agt-fig figcaption b { color: var(--sw-ink); }

.sw-page .agt-note { color: var(--sw-mute); }
.sw-page .agt-cta { border: none; border-top: 3px solid var(--sw-ink); border-radius: 0; background: none; padding: 16px 0 0; }
.sw-page .agt-cta span { color: var(--sw-mute); }

/* ═══════════════ F. 终端 / CLI ═══════════════ */
.tm-page {
  --tm-bg: #060a08;
  --tm-fg: #aef3c4;
  --tm-dim: #5d8a70;
  --tm-amber: #ffcc66;
  --tm-line: #1c3b2a;
  padding: 20px 22px 24px;
  border-radius: 8px;
  background: var(--tm-bg);
  color: var(--tm-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 0 0 1px #16311f;
}
.tm-page .agt-vars { padding-bottom: 12px; border-bottom: 1px dashed var(--tm-line); }
.tm-page .agt-vars-l { color: var(--tm-dim); }
.tm-page .agt-var-i { border: 1px dashed var(--tm-line); border-radius: 3px; color: var(--tm-dim); }
.tm-page .agt-var-i:hover { color: var(--tm-fg); border-color: var(--tm-fg); }
.tm-page .agt-var-i.is-on { color: #060a08; background: var(--tm-fg); border-color: var(--tm-fg); }

.tm-page .agt-eyebrow { color: var(--tm-dim); letter-spacing: .06em; text-transform: none; }
.tm-page .agt-eyebrow::before { content: 'hermes@local:~$ '; color: var(--tm-amber); }
.tm-page .agt-h1 { color: #eafff1; font-size: clamp(26px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.01em; line-height: 1.16; }
.tm-page .agt-h1 em { color: var(--tm-amber); }
.tm-page .agt-sub { color: var(--tm-dim); font-size: 13px; line-height: 1.95; }
.tm-page .agt-sub::after { content: '▊'; margin-left: 3px; color: var(--tm-fg); animation: me-cursor-blink 1.05s step-end infinite; }
.tm-page .agt-btn { border: 1px dashed var(--tm-line); border-radius: 3px; background: transparent; color: var(--tm-fg); }
.tm-page .agt-btn:hover { border-color: var(--tm-fg); background: rgba(174, 243, 196, .08); transform: none; }
.tm-page .agt-btn::before { content: '[ '; color: var(--tm-dim); }
.tm-page .agt-btn::after { content: ' ]'; color: var(--tm-dim); }
.tm-page .agt-btn--p { background: transparent; border-color: var(--tm-fg); color: var(--tm-fg); }

.tm-page .agt-sec { margin-bottom: calc(var(--module-gap) - 8px); }
.tm-page .agt-sec-h { color: var(--tm-fg); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.tm-page .agt-sec-h::before { content: '❯ '; color: var(--tm-amber); }
.tm-page .agt-sec-h::after { content: ' ────────────────────────────────'; color: var(--tm-line); overflow: hidden; white-space: nowrap; }
.tm-page .agt-no { color: var(--tm-dim); font-size: 11px; }
.tm-page .agt-hint { color: var(--tm-amber); margin-left: 8px; }

/* 统计行：一行一条 `[34] 模型供应商` */
.tm-page .agt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.tm-page .agt-stat { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; border: none; border-radius: 0; background: none; }
.tm-page .agt-n { color: var(--tm-amber); font-size: 15px; font-weight: 700; }
.tm-page .agt-n::before { content: '['; color: var(--tm-dim); }
.tm-page .agt-n::after { content: ']'; color: var(--tm-dim); }
.tm-page .agt-l { color: var(--tm-dim); font-size: 12px; }

.tm-page .agt-tbl th { color: var(--tm-dim); border-bottom: 1px dashed var(--tm-line); }
.tm-page .agt-tbl td { border-bottom: 1px dashed var(--tm-line); color: var(--tm-fg); }
.tm-page .agt-tbl code, .tm-page .agt-list code { color: var(--tm-amber); }
.tm-page .agt-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 4px 0; border-bottom: 1px dashed var(--tm-line); color: var(--tm-fg); font-size: 12.5px; }
.tm-page .agt-list li b::before { content: '· '; color: var(--tm-dim); }
.tm-page .agt-list li span { color: var(--tm-dim); }

.tm-page .agt-mx { gap: 2px; }
.tm-page .agt-mx-i { padding: 4px 0; border: none; border-radius: 0; background: none; }
.tm-page .agt-mx-i + .agt-mx-i { border-top: 1px dashed var(--tm-line); }
.tm-page .agt-mx-i b { color: var(--tm-fg); font-size: 12.5px; }
.tm-page .agt-mx-i b::before { content: '• '; color: var(--tm-dim); }
.tm-page .agt-mx-i b i { color: var(--tm-amber); }
.tm-page .agt-mx-i span { color: var(--tm-dim); font-size: 11.5px; }

.tm-page .agt-chips { gap: 4px 14px; }
.tm-page .agt-chips span { padding: 3px 0; border: none; border-radius: 0; background: none; color: var(--tm-dim); font-size: 12px; }
.tm-page .agt-chips span::before { content: '· '; }
.tm-page .agt-chips b { color: var(--tm-amber); }
.tm-page .agt-chips b::before { content: '×'; color: var(--tm-dim); margin-right: 2px; }

.tm-page .agt-caps { gap: 2px; }
.tm-page .agt-cap { padding: 6px 0; border: none; border-radius: 0; background: none; }
.tm-page .agt-cap + .agt-cap { border-top: 1px dashed var(--tm-line); }
.tm-page .agt-cap b { color: var(--tm-fg); font-size: 12.5px; }
.tm-page .agt-cap b::before { content: '✓ '; color: var(--tm-fg); }
.tm-page .agt-cap span { color: var(--tm-dim); font-size: 11.5px; }

.tm-page .agt-flow { flex-direction: column; gap: 2px; }
.tm-page .agt-flow li { padding: 5px 0; border: none; border-radius: 0; background: none; }
.tm-page .agt-flow li b { color: var(--tm-fg); font-size: 12.5px; }
.tm-page .agt-flow li b::before { content: '→ '; color: var(--tm-amber); }
.tm-page .agt-flow li span { color: var(--tm-dim); }
.tm-page .agt-flow li.is-core b::before { content: '⟶ '; color: var(--tm-fg); }

.tm-page .agt-fig { border: 1px solid var(--tm-line); border-radius: 2px; background: #040705; }
.tm-page .agt-fig figcaption { border-top: 1px dashed var(--tm-line); color: var(--tm-dim); font-size: 11px; }
.tm-page .agt-fig figcaption b { color: var(--tm-fg); }
.tm-page .agt-fig figcaption b::before { content: '[img] '; color: var(--tm-dim); }

.tm-page .agt-note { color: var(--tm-dim); font-size: 11.5px; }
.tm-page .agt-note::before { content: '# '; }
.tm-page .agt-cta { border: 1px dashed var(--tm-line); border-radius: 3px; background: rgba(174, 243, 196, .04); }
.tm-page .agt-cta b { color: var(--tm-fg); }
.tm-page .agt-cta span { color: var(--tm-dim); }

@media (max-width: 760px) {
  .bp-page, .tm-page { padding: 16px 14px 18px; }
  .tm-page .agt-stats { grid-template-columns: 1fr; }
  .sw-page .agt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-page .agt-stat + .agt-stat { border-left: none; padding-left: 0; }
  .tm-page .agt-sec-h::after { display: none; }
}

/* ── 指南页：顶部阅读进度条 ── */
.magu-progress {
  position: fixed; left: 0; right: 0; top: var(--header-h); height: 3px;
  z-index: 40; pointer-events: none; background: transparent;
}
.magu-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), #41d7ff);
  box-shadow: 0 0 12px rgba(65, 215, 255, .65);
  transition: width .12s linear;
}

@media (max-width: 1100px) {
  .mag-hero { padding: 44px 30px 40px; border-radius: 20px; }
  .mag-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mag-shot { transform: none; }
}
@media (max-width: 760px) {
  .mag-hero { padding: 34px 20px 30px; }
  .mag-title { font-size: clamp(28px, 8vw, 38px); }
  .mag-shot-body { grid-template-columns: 1fr; }
  .mag-shot-side { display: none; }
  .mag-flow { flex-direction: column; }
  .mag-fl-arrow { width: auto; height: 20px; }
  .mag-fl-arrow::before { top: 0; bottom: 6px; left: 50%; right: auto; border-top: 0; border-left: 1.5px dashed var(--border-strong); }
  .mag-fl-arrow::after { top: auto; bottom: 0; left: 50%; right: auto; margin: 0 0 0 -4px; border-left-color: transparent; border-top-color: var(--primary); }
  .mag-block-h h3 { font-size: 17px; }
  .mag-block-h em { font-size: 26px; }
  .mag-donut-wrap { gap: 12px; }
  .mag-hbar { grid-template-columns: 78px minmax(0, 1fr) 34px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   **移动端覆盖（必须放在文件最末尾）**
   ⚠️ 这段不能上移：`.mag-*` 的增强层与它自己的 `@media` 都写在本文件更靠后的位置
   （`.mag-hero` 的 44px / 34px 两条分别是 3967 / 3972 行），同权重会覆盖这里。
   所以这里既放在最后、又统一加 `.mag-page` 前缀提权 —— 双保险。
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .mag-page .mag-hero { padding: 30px 18px 26px; }
  .mag-page .mag-title { font-size: clamp(28px, 8vw, 38px); }
}
/* 只对**极窄**（≤360，如 320/360）收紧：375/414 仍用 20px 标题 + 30px hero 内距 */
@media (max-width: 360px) {
  /* 加了页面级标题（`.mag-page-head`）后，320 + 英文会把 CTA 顶出首屏 9px，
     这里把页标题下边距、hero 上内距与 kicker 下边距各收一点补回来 */
  .mag-page-head { margin-bottom: 8px; }
  .mag-page-title { font-size: 18px; }
  .mag-page .mag-hero { padding-top: 26px; }
  .mag-page .mag-kicker { margin-bottom: 16px; }
  .mag-page .mag-title { font-size: 30px; letter-spacing: -.03em; }
}

/* ════════════════════════════════════════════════════════════════════════════
   `.mag-hero-grid` 内文字改**深色**（放在文件最末尾，压过前面的浅色规则）
   前提：`.mag-hero` 原来的深色渐变 `background` 已被注释掉（底色 = 页面底色
   `rgb(246,247,251)`），而文字还挂着浅色 / 渐变裁切 ⇒ 亮色主题下几乎看不见。
   做法：用**主题语义色**（`--text / --text-2 / --text-3`）而不是写死黑色：
   亮色主题下即「深色」（本次需求），暗色主题下自动变浅，不会出现「深底深字」。
   ⚠️ 两处渐变文字（`@supports` 里的 `-webkit-text-fill-color: transparent`）必须
   同时清 `background` 且把 `-webkit-text-fill-color` 重置成 `currentColor`，
   否则 `color` 不生效（该属性会继承，元素会整块透明）。
   ════════════════════════════════════════════════════════════════════════════ */
.mag-hero { color: var(--text); }
.mag-hero-grid { color: var(--text); }
.mag-hero-grid .mag-kicker {
  color: var(--text-2);
  border-color: var(--border);
  background: var(--bg-card);
}
.mag-hero-grid .mag-title {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.mag-hero-grid .mag-sub { color: var(--text-2); }
.mag-hero-grid .mag-stat { border-color: var(--border); background: var(--bg-card); }
.mag-hero-grid .mag-stat-n {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.mag-hero-grid .mag-stat-l { color: var(--text-3); }
.mag-hero-grid .mag-btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.mag-hero-grid .mag-btn-ghost:hover { background: var(--bg-hover); }
