/* ═══════════════════════════════════════════════════════════════
   Veyrun 悦跑 · 高级代理（分销）
   ───────────────────────────────────────────────────────────────
   这一页刻意做成浅色：它是一张「对外招代理」的落地页，白底深字读起来
   像一张合同，比深紫玻璃更像正经生意。所以整页自带一套 token，
   只在 .agp 里生效，不会污染其它页面的深色体系。
   ═══════════════════════════════════════════════════════════════ */

/* 页面底色：外壳是深色的，这一页要一块自己的浅色画布 */
body.page-agent { background: #f5f6f8; }
body.page-agent .vmain { background: #f5f6f8; }

.agp {
  --ag-ink: #111827;
  --ag-ink-2: #1f2937;
  --ag-muted: #6b7280;
  --ag-faint: #9aa1ad;
  --ag-line: #eceef3;
  --ag-line-2: #eef0f4;
  --ag-soft: #f7f8fa;
  --ag-soft-2: #f8f9fb;
  --ag-navy: #0f172a;
  --ag-hot-bg: #fdf0ec;
  --ag-hot-ink: #b5543a;
  --ag-hot-line: #f7ded6;

  /* .wrap 自带 margin:0 auto，而 .vmain 是纵向 flex —— auto 外边距会把
     这一列按内容宽度缩起来，工作台就缩成中间一条。显式撑满再靠 max-width 收口。 */
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 56px;
  color: var(--ag-ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
/* 外壳的通用卡片/文字颜色会渗进来，这一页统一改写 */
.agp h1, .agp h2, .agp h3, .agp b, .agp strong { color: var(--ag-ink); }
.agp p { margin: 0; }

/* ─────────────────────── 页头 ─────────────────────── */

.agp-hd { margin-bottom: 22px; }
.agp-hd h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -.022em; line-height: 1.2;
}
.agp-hd p { margin-top: 7px; font-size: 14px; color: var(--ag-faint); }

/* ─────────────────────── Hero ─────────────────────── */

.agp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 40px;
  align-items: center;
  padding: 40px 42px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 26px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -36px rgba(16, 24, 40, .22);
}

.agp-eyebrow {
  font-size: 12.5px; font-weight: 600; color: var(--ag-faint);
  letter-spacing: .01em; margin-bottom: 16px;
}
.agp-hero h2 {
  font-size: clamp(29px, 3.4vw, 42px);
  line-height: 1.15; letter-spacing: -.028em; font-weight: 800;
  margin-bottom: 18px;
}
.agp-lede {
  font-size: 15.5px; line-height: 1.95; color: var(--ag-muted);
  max-width: 33em; margin-bottom: 22px;
}

.agp-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.agp-tags span {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 13px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--ag-muted);
  background: #fff; border: 1px solid var(--ag-line);
}
.agp-tags span.hot {
  color: var(--ag-hot-ink); background: var(--ag-hot-bg); border-color: var(--ag-hot-line);
}

.agp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px;
  border: 0; border-radius: 12px; cursor: pointer;
  font: 650 14.5px/1 -apple-system, "PingFang SC", system-ui, sans-serif;
  letter-spacing: -.005em;
  color: #fff; background: var(--ag-navy);
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, .9);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.agp-cta:hover { background: #1b2740; box-shadow: 0 14px 26px -14px rgba(15, 23, 42, .95); }
.agp-cta:active { transform: scale(.975); }
.agp-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.agp-cta.wide { width: 100%; }
.agp-cta svg { flex: none; }

/* 晋升路线：六枚盾牌 */
.agp-ladder {
  background: var(--ag-soft-2);
  border: 1px solid var(--ag-line-2);
  border-radius: 20px;
  padding: 22px 24px 24px;
}
.agp-ladder-t { font-size: 12.5px; font-weight: 600; color: var(--ag-faint); margin-bottom: 18px; }
.agp-ladder-g {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px 10px;
}
.agp-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.agp-shield { position: relative; width: 38px; height: 44px; display: grid; place-items: center; }
.agp-shield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.agp-shield i {
  position: relative; font-style: normal;
  font: 800 13px/1 ui-rounded, -apple-system, system-ui, sans-serif;
  color: #fff; margin-top: -4px;
}
.agp-step-p {
  margin-top: 9px;
  font-size: 16.5px; font-weight: 800; letter-spacing: -.02em;
  color: #1f2937; font-variant-numeric: tabular-nums;
}
.agp-step-n { margin-top: 5px; font-size: 11.5px; color: #99a1ae; }

/* ─────────────────────── 下面两张卡 ─────────────────────── */

.agp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .92fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}
.agp-card {
  padding: 30px 32px 32px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035), 0 20px 40px -34px rgba(16, 24, 40, .2);
}
.agp-card-h { display: flex; align-items: center; gap: 9px; }
.agp-card-h h3 {
  font-size: 17.5px; font-weight: 800; letter-spacing: -.018em;
  display: inline-flex; align-items: center; gap: 8px;
}
.agp-card-sub { margin-top: 8px; font-size: 13px; color: var(--ag-faint); }

/* 六条理由 */
.agp-why-g {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 13px; margin-top: 22px;
}
.agp-why-i {
  padding: 16px 18px 17px;
  background: var(--ag-soft);
  border: 1px solid var(--ag-line-2);
  border-radius: 14px;
}
.agp-why-t {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: #1f2937; letter-spacing: -.008em;
}
.agp-why-t svg { flex: none; }
.agp-why-i p {
  margin-top: 7px; font-size: 12.5px; line-height: 1.72; color: #8e95a2;
}

/* 申请流程 */
.agp-flow-l { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 22px; }
.agp-flow-l li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 13px; }
.agp-flow-n {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 11.5px/1 -apple-system, system-ui, sans-serif;
  color: #6b7280; background: var(--ag-soft); border: 1px solid var(--ag-line-2);
}
.agp-flow-l b { display: block; font-size: 14px; font-weight: 700; color: #1f2937; letter-spacing: -.01em; }
.agp-flow-l p { margin-top: 6px; font-size: 12.5px; line-height: 1.75; color: #8e95a2; }
.agp-note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--ag-faint); }

/* ─────────────────────── 已开通：工作台 ─────────────────────── */

.agp-work-hd { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.agp-work-hd h1 { display: flex; align-items: center; gap: 10px; }
.agp-work-hd .agp-shield.hd { width: 27px; height: 31px; flex: none; }
.agp-work-hd .agp-shield.hd i { font-size: 11.5px; margin-top: -3px; }
.agp-code {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1px dashed #cfd5df;
  font: 700 13px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .12em; color: var(--ag-ink);
  transition: border-color 180ms ease, background 180ms ease;
}
.agp-code:hover { border-color: #9aa3b2; background: #fcfcfd; }

.agp-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--ag-line); border-radius: 20px;
  overflow: hidden; margin-bottom: 22px;
}
.agp-kpi > div { padding: 20px 22px; border-right: 1px solid var(--ag-line-2); }
.agp-kpi > div:last-child { border-right: 0; }
.agp-kpi b {
  display: block; font-size: 22px; font-weight: 800; letter-spacing: -.024em;
  font-variant-numeric: tabular-nums; color: var(--ag-ink);
}
.agp-kpi span { display: block; margin-top: 5px; font-size: 12px; color: var(--ag-faint); }

.agp-prog { background: #fff; border: 1px solid var(--ag-line); border-radius: 20px; padding: 20px 22px; margin-bottom: 22px; }
.agp-prog-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.agp-prog-h b { font-size: 13.5px; font-weight: 700; color: var(--ag-ink-2); }
.agp-prog-h span { font-size: 12px; color: var(--ag-faint); }
.agp-prog-bar { height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.agp-prog-bar i {
  display: block; height: 100%; border-radius: 99px; background: var(--ag-navy);
  transition: width 900ms cubic-bezier(.32, .72, 0, 1);
}
.agp-prog-f { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12px; color: var(--ag-faint); }

.agp-inv {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--ag-line); border-radius: 20px;
  padding: 22px; margin-bottom: 22px;
}
.agp-inv-qr {
  width: 104px; height: 104px; border-radius: 14px; background: #fff;
  display: grid; place-items: center; border: 1px solid var(--ag-line-2);
}
.agp-inv-r b { display: block; font-size: 13.5px; color: var(--ag-ink-2); margin-bottom: 9px; }
.agp-inv-r code {
  display: block; padding: 10px 12px; border-radius: 10px;
  background: var(--ag-soft); border: 1px solid var(--ag-line-2);
  font: 500 12.5px/1.4 ui-monospace, Menlo, monospace; color: #4b5563;
  overflow-wrap: anywhere;
}
.agp-inv-b { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.agp-inv-tip { display: block; margin-top: 10px; font-size: 11.5px; color: var(--ag-faint); }

.agp-btn {
  height: 38px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  font: 650 13px/1 -apple-system, "PingFang SC", system-ui, sans-serif;
  color: #fff; background: var(--ag-navy); border: 0;
  transition: background 180ms ease, transform 160ms ease;
}
.agp-btn:hover { background: #1b2740; }
.agp-btn:active { transform: scale(.97); }
.agp-btn.ghost { background: #fff; color: #374151; border: 1px solid #d8dce4; }
.agp-btn.ghost:hover { background: var(--ag-soft); }

/* 三个页签 */
.agp-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: #eef0f4; border-radius: 12px; margin-bottom: 16px;
  width: fit-content;
}
.agp-tab {
  height: 34px; padding: 0 18px; border: 0; border-radius: 9px; cursor: pointer;
  font: 650 13px/1 -apple-system, "PingFang SC", system-ui, sans-serif;
  color: #6b7280; background: transparent;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.agp-tab.on { background: #fff; color: var(--ag-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }

/* 列表 */
.agp-panel {
  background: #fff; border: 1px solid var(--ag-line); border-radius: 20px; padding: 6px 22px;
}
.agp-row {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 0; border-bottom: 1px solid var(--ag-line-2);
}
.agp-row:last-child { border-bottom: 0; }
.agp-av {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #374151;
  background: var(--ag-soft); border: 1px solid var(--ag-line-2);
}
.agp-av.com { color: #0f766e; background: #effaf7; border-color: #d6efea; }
.agp-row-m { min-width: 0; flex: 1; }
.agp-row-m b { display: block; font-size: 13.5px; color: var(--ag-ink-2); }
.agp-row-m span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ag-faint); }
.agp-row-r { text-align: right; flex: none; }
.agp-row-r b { font-size: 13px; color: #374151; }
.agp-row-r span { font-size: 11px; color: var(--ag-faint); margin-left: 2px; }
.agp-row-r em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: #0f766e; }
.agp-row-r em.big { font-size: 15px; }

/* 规则表 */
.agp-tbl { width: 100%; border-collapse: collapse; margin: 4px 0 18px; }
.agp-tbl th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ag-faint);
  padding: 10px 0; border-bottom: 1px solid var(--ag-line-2);
}
.agp-tbl td { padding: 12px 0; font-size: 13px; color: #4b5563; border-bottom: 1px solid var(--ag-line-2); }
.agp-tbl tr.on td { color: var(--ag-ink); font-weight: 700; background: #fbfcfd; }
.agp-ol { margin: 0; padding-left: 18px; }
.agp-ol li { font-size: 12.5px; line-height: 1.85; color: #6b7280; margin-bottom: 6px; }

.agp-empty { padding: 40px 10px; text-align: center; }
.agp-empty b { display: block; font-size: 14px; color: var(--ag-ink-2); margin-bottom: 7px; }
.agp-empty span { font-size: 12.5px; color: var(--ag-faint); line-height: 1.7; }

/* 骨架屏 */
.agp-skel { display: grid; gap: 14px; }
.agp-sk {
  border-radius: 18px; background: #eceef3;
  animation: agpPulse 1.3s ease-in-out infinite;
}
@keyframes agpPulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }

/* ─────────────────────── 窄屏 ─────────────────────── */

@media (max-width: 980px) {
  .agp-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 24px 30px; }
  .agp-ladder { padding: 20px; }
  .agp-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .agp-why-g { grid-template-columns: 1fr; }
  .agp-kpi { grid-template-columns: 1fr 1fr; }
  .agp-kpi > div:nth-child(2) { border-right: 0; }
  .agp-kpi > div:nth-child(1), .agp-kpi > div:nth-child(2) { border-bottom: 1px solid var(--ag-line-2); }
  .agp-inv { grid-template-columns: minmax(0, 1fr); }
  .agp-inv-qr { display: none; }
}

@media (max-width: 720px) {
  .agp { padding: 20px 14px 40px; }
  .agp-hd h1 { font-size: 22px; }
  .agp-hd p { font-size: 13px; }
  .agp-hero { padding: 24px 20px 26px; border-radius: 20px; }
  .agp-hero h2 { font-size: 25px; margin-bottom: 14px; }
  .agp-lede { font-size: 14px; line-height: 1.85; }
  .agp-tags { gap: 7px; margin-bottom: 22px; }
  .agp-tags span { height: 27px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
  .agp-cta { width: 100%; height: 44px; }
  .agp-card { padding: 22px 18px 24px; border-radius: 18px; }
  .agp-card-h h3 { font-size: 15.5px; }
  .agp-why-g { gap: 10px; margin-top: 16px; }
  .agp-why-i { padding: 14px 15px; border-radius: 12px; }
  .agp-panel { padding: 2px 15px; border-radius: 16px; }
  .agp-row-r em.big { font-size: 14px; }
  .agp-tabs { width: 100%; }
  .agp-tab { flex: 1; padding: 0 8px; }
  .agp-work-hd { gap: 12px; }
  .agp-code { margin-left: 0; width: 100%; justify-content: center; }
  .agp-kpi b { font-size: 18px; }
  .agp-kpi > div { padding: 15px 16px; }
}
