/* ---------------------------------------------------------------------------
 * OjToken「模型与接入」(/model-access) 页面样式
 *
 * 这是**本地重建**的静态页面（不再是 lanox.ai 那套 Next.js 页面的镜像），
 * 模型与价格数据来自 价格源 的模型价格页，全部按人民币展示。
 * 设计令牌与 /invoice、/enterprise 保持一致（--ink / --brand / --brand-grad …），
 * 页头 / 页脚标记本身取自镜像页面，所以观感与官网其余页面一致。
 * ------------------------------------------------------------------------- */

.ma-page {
  --ink: #1e2136;
  --ink-2: #5b6178;
  --ink-3: #9096ad;
  --line: #e8e6f6;
  --line-2: #dcd9f0;
  --surface: #fff;
  --fill-2: #ecebfa;
  --brand: #6b4ef0;
  --brand-2: #2f74f5;
  --brand-grad: linear-gradient(118deg, #2f74f5 0%, #5b53ee 48%, #9a6ff2 100%);
  --price: #2f74f5;
  --save: #f08019;
  --save-bg: #fdf0e2;
  --shadow: 0 12px 30px #5442a81a;
  max-width: 1248px;
  color: var(--ink);
  margin: 0 auto;
  padding: 24px 32px 72px;
}

.ma-page h1,
.ma-page h2,
.ma-page h3 {
  color: var(--ink);
  letter-spacing: 0;
}

/* 吸顶页头：静态页面自己补一份毛玻璃背景（官网是靠 JS 加的） */
header.is-scrolled {
  background-color: #fffffff0;
  border-bottom-color: #e8e6f6;
  box-shadow: 0 18px 40px -34px #1e2136b3;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 页头的「资源 / 合作」「语言」在镜像里是 React 菜单，静态页面上补同款观感的下拉 */
header .ma-menu-host {
  position: relative;
  display: inline-flex;
}

header .ma-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  padding: 8px;
  border: 1px solid #e8e6f6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 50px -26px #1e213659;
}

header .ma-menu.is-open {
  display: flex;
}

header .ma-menu a,
header .ma-menu__item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1e2136;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

header .ma-menu a:hover,
header .ma-menu__item:hover {
  background: #ecebfa;
  color: #6b4ef0;
}

header .ma-menu--lang {
  top: calc(100% + 6px);
  min-width: 130px;
  border-color: #dfe0ec;
  box-shadow: 0 20px 44px -22px #353b7047;
}

header .ma-menu__item.is-selected {
  background: #786ef024;
  color: #5b6cff;
}

.ma-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.ma-mobile-nav.is-open {
  display: flex;
}

.ma-mobile-nav a {
  padding: 11px 6px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.ma-mobile-nav a:hover {
  background: var(--fill-2);
  color: var(--brand);
}

/* ------------------------------------------------------------------ hero */

/* 控制台版：内容区已经在控制台外壳里，不再需要整页居中与宽边距 */
.ma-page--console {
  max-width: 100%;
  padding: 4px 4px 48px;
}

/* 控制台内容区比官网窄，页签与 chip 里的文字别折行 */
.ma-page--console .model-access-page-module__l_qKfW__pricingTypeTab,
.ma-page--console .model-access-page-module__l_qKfW__pricingBrandTab {
  white-space: nowrap;
}

.ma-page--console .model-access-page-module__l_qKfW__pricingTypeTab > span:first-child {
  white-space: nowrap;
}

.ma-console {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ma-console__title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.ma-console__title p {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.ma-console__title a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.ma-console__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ma-status {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfe;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ma-status--ok {
  border-color: #cdeed6;
  background: #f0fbf3;
  color: #1f8a45;
}

.ma-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 46px 44px 40px;
  border: 1px solid #eceafa;
  border-radius: 26px;
  background:
    radial-gradient(120% 130% at 0% 0%, #eef4ff 0%, #ffffff 52%, #f7f3ff 100%),
    #fff;
}

.ma-hero__glow {
  position: absolute;
  inset: auto -12% -60% 42%;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(45% 60% at 20% 40%, #2f74f526, transparent 70%),
    radial-gradient(40% 55% at 70% 60%, #9a6ff22e, transparent 72%);
  filter: blur(6px);
}

.ma-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.ma-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ma-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.ma-title em {
  color: var(--brand);
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ma-sub {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.ma-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.ma-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffffcc;
}

.ma-stat strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.ma-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.ma-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ma-btn:hover {
  border-color: #b9b2ee;
  color: var(--brand);
}

.ma-btn--primary {
  border: 0;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 14px 26px -12px #5b53eeb8;
}

.ma-btn--primary:hover {
  color: #fff;
  box-shadow: 0 18px 30px -12px #5b53eec4;
}

/* --------------------------------------------------------------- 目录工具条 */

.ma-catalog {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
}

.ma-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ma-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ma-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ma-tab b {
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.ma-tab:hover {
  color: var(--brand);
}

.ma-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.ma-tab.is-active b {
  color: var(--brand);
}

.ma-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  height: 40px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fbfaff;
}

.ma-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  stroke-linecap: round;
}

.ma-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  outline: none;
}

.ma-vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 4px;
}

.ma-vendor-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ma-vendor-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.ma-vendor-chip em {
  color: var(--ink-3);
  font-style: normal;
  font-size: 12px;
}

.ma-vendor-chip:hover {
  border-color: #b9b2ee;
  color: var(--brand);
}

.ma-vendor-chip.is-active {
  border-color: transparent;
  background: #f0eeff;
  color: var(--brand);
}

.ma-hint {
  margin: 12px 0 0;
  color: var(--ink-3, #9096ad);
  font-size: 12.5px;
  line-height: 1.7;
}

.ma-source {
  margin: 18px 0 0;
  color: var(--ink-3, #9096ad);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------------------------------------------------- 价格表里的标签 / 明细表 */
/* 「标签」列：跟 价格源 那边的标签列一样，用小胶囊显示（模型标签本身是中文数据） */
.ma-tagcell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ma-tagchip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #e4e2f3;
  border-radius: 6px;
  background: #f7f6fd;
  color: #5b6178;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

/* 价格里的明细小表（分辨率 / 时长 → 单价），排版照 价格源 那一版 */
.ma-nested {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  /* 价格源 明细表自己的样式就是：11px、灰色、居中、细网格 */
  color: #808080;
  font-size: 11px;
  /* 固定布局 + 下面两列比例（功能 24% / 规格自适应 / 价格 30%），
     规格列要能一行放下 "SVG · editable_text"，和 价格源 那张明细表观感一致 */
  table-layout: fixed;
}

.ma-nested th,
.ma-nested td {
  padding: 6px 7px;
  /* 网格线加深（原来 #eeecf7 太浅，看着像没有线） */
  border: 1px solid #b4c0da !important;
  /* 首列（功能 / 分辨率）左对齐、其余居中，和 价格源 一致 */
  text-align: center;
  vertical-align: middle;
  /* ⚠️ 站点自带的 `.model-access-page-module__l_qKfW__table td`（优先级 (0,2,1)）
     把表里每个 td 都设成了 15px + overflow-wrap:anywhere，
     我们的明细表也嵌在那张表里，所以这里必须 !important 才能压住它：
     否则明细表字大到 15px、还会从词中间劈开（"1000d pi"）。 */
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* ⚠️ 站点自带的 CSS 里有
   `:is(.__table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:first-child …)`
   这类规则（优先级 (0,4,3)），因为我们的明细表就嵌在那张 6 列大表**里面**，
   所以它们的 `th/td` 也会被这些规则命中、列宽被强行改成 18/17/17…。
   下面按 价格源 的观感重新指定：先清掉宽度，再给首/末列比例，中间列自适应。 */
.ma-nested th,
.ma-nested td {
  width: auto !important;
}

.ma-nested:has(th:nth-child(3)) th:first-child,
.ma-nested:has(th:nth-child(3)) td:first-child {
  width: 16% !important;
}

.ma-nested:has(th:nth-child(3)) th:last-child,
.ma-nested:has(th:nth-child(3)) td:last-child {
  width: 32% !important;
}

/* 两列明细表（分辨率 | 单价）：左边宽一点 */
.ma-nested:not(:has(th:nth-child(3))) th:first-child,
.ma-nested:not(:has(th:nth-child(3))) td:first-child {
  width: 58% !important;
}

.ma-nested th {
  background: #eef0f8;
  color: #7b8296;
  font-weight: 600;
}

.ma-nested td:last-child,
.ma-nested th:last-child {
  text-align: right;
}

/* 「说明」列：模型介绍，长文按行折，别把表格撑太宽 */
.ma-note-cell {
  margin: 0;
  color: #5b6178;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: normal;
}

/* 加了「标签 / 折扣 / 说明」之后列变多了，原来 860px 的最小宽度不够，
   会把说明列挤成一列竖排字；这里给表格放宽并让卡片内部横向滚动。 */
.model-access-page-module__l_qKfW__tableWrap {
  overflow-x: auto;
}

.model-access-page-module__l_qKfW__tableWrap table.model-access-page-module__l_qKfW__table {
  min-width: 1180px;
}

.model-access-page-module__l_qKfW__tableWrap table + table.model-access-page-module__l_qKfW__table {
  min-width: 1040px;
}

/* 折扣：角标右侧补一个等价的百分比 */
.ma-discount-note {
  display: block;
  margin-top: 4px;
  color: #9096ad;
  font-size: 11.5px;
  font-style: normal;
  text-align: center;
}

/* 同一张卡里可能上下两张表（token 计价 + 按张/秒计价） */
.model-access-page-module__l_qKfW__tableWrap > table + table {
  margin-top: 14px;
}

/* 大表的行分隔线也加深：站点默认是 #edf1fb，颜色太浅几乎看不清 */
.model-access-page-module__l_qKfW__tableWrap table.ma-model-table th,
.model-access-page-module__l_qKfW__tableWrap table.ma-model-table td {
  border-bottom: 1px solid #b4c0da;
}

.model-access-page-module__l_qKfW__tableWrap table.ma-model-table thead th {
  border-bottom: 2px solid #9fadcc;
}

/* ------------------------------------------------ 价格源 版式的六列表格 */
/* 模型名称 / 厂商 / 标签 / 厂商原价 / OjToken价格（含税6%）/ 说明 */
.model-access-page-module__l_qKfW__tableWrap table.ma-model-table {
  min-width: 1100px;
  /* 固定布局 + colgroup 列宽：价格列里的明细小表不会再把列撑开 */
  table-layout: fixed;
}

.ma-model-table .ma-nested {
  width: 100%;
  max-width: 100%;
}

.ma-model-table th,
.ma-model-table td {
  vertical-align: top;
}

.ma-model-cell {
  /* 列宽交给外层 <colgroup> 的百分比；这里再加 min-width 会把它顶掉 */
}

.ma-model-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ma-model-name span {
  color: #14855f;
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-all;
}

.ma-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #e4e2f3;
  border-radius: 6px;
  background: #fff;
  color: #9096ad;
  cursor: pointer;
}

.ma-copy svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ma-copy:hover {
  border-color: #b9b2ee;
  color: #6b4ef0;
}

.ma-copy.is-done {
  border-color: #14855f;
  color: #14855f;
}

.ma-model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ma-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f8ff;
  color: #4b6b9c;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 厂商 chip 上的模型数（价格源 的厂商卡就是「图标 + 名称 + N 个模型」） */
.ma-vendor-count {
  color: #9096ad;
  font-size: 11.5px;
  font-weight: 500;
}

.ma-vendor-cell {
  color: #1e2136;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ma-price-col {
  font-size: 12.5px;
  line-height: 1.6;
}

/* 模式标签（分段计价 / 分时计费 / 动态计费） */
.ma-mode {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 1px 8px;
  border: 1px solid #e4e2f3;
  border-radius: 6px;
  background: #f7f6fd;
  color: #6b4ef0;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ma-mode-discount {
  vertical-align: middle;
}

/* 时段 / 时区这类说明文字 */
.ma-period {
  margin-top: 6px;
  color: #9096ad;
  font-size: 11.5px;
}

/* 一行价格：输入价格： ￥1.9 / M tokens */
.ma-pline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: #5b6178;
  font-size: 12.5px;
}

.ma-pline__label {
  color: #9096ad;
}

.ma-pline b {
  color: #1e2136;
  font-size: 13px;
  font-weight: 700;
}

.ma-price-col--ours .ma-pline b {
  color: #2f74f5;
}

.ma-pline em {
  color: #9096ad;
  font-style: normal;
  font-size: 11.5px;
}

/* ------------------------------------------------------------ 厂商分区表格 */

.ma-list {
  margin-top: 14px;
}

.ma-loading,
.ma-empty {
  padding: 40px 0;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
}

.ma-vendor {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.ma-vendor:first-child {
  margin-top: 6px;
}

.ma-vendor__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #eef3ff 0%, #f4f1ff 100%);
}

.ma-vendor__head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.ma-vendor__head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
}

.ma-vendor__head span {
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}

.ma-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.05fr) minmax(120px, 0.72fr) minmax(200px, 1.15fr) minmax(220px, 1.25fr) minmax(200px, 1.1fr);
  gap: 14px;
  padding: 16px;
  border-top: 1px solid #f1f0fa;
  align-items: start;
}

.ma-row--head {
  padding: 11px 16px;
  border-top: 0;
  background: #fbfbfe;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.ma-row:hover:not(.ma-row--head) {
  background: #fcfcff;
}

.ma-model strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-all;
}

.ma-model code {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  word-break: break-all;
}

.ma-model__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ma-model__meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f3fd;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.ma-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ma-tag {
  padding: 3px 9px;
  border-radius: 8px;
  background: #f2f1fb;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.ma-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.ma-price__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--ink-2);
}

.ma-price__line b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.ma-price--now .ma-price__line b {
  color: var(--price);
}

.ma-price__line em {
  color: var(--ink-3);
  font-style: normal;
  font-size: 11.5px;
}

.ma-price__line--plain {
  color: var(--ink-2);
}

.ma-price__line--plain b {
  color: var(--ink);
}

.ma-price__label {
  min-width: 84px;
  color: var(--ink-3);
  font-size: 12px;
}

.ma-price__old b {
  color: var(--ink-3);
  font-weight: 700;
  text-decoration: line-through;
}

.ma-discount {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--save-bg);
  color: var(--save);
  font-size: 11.5px;
  font-weight: 800;
}

.ma-ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  color: var(--ink-2);
}

.ma-ptable th,
.ma-ptable td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f0fa;
  text-align: left;
  white-space: nowrap;
}

.ma-ptable th {
  color: var(--ink-3);
  font-weight: 700;
}

.ma-more {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ma-note {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.ma-source {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}

/* -------------------------------------------------------------- 开发者接入 */

.ma-dev {
  margin-top: 28px;
  padding: 30px 32px 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ma-dev__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.ma-dev__sub {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.ma-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ma-steps li {
  position: relative;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fdfdff;
}

.ma-step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f0eeff;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 800;
}

.ma-steps strong {
  display: block;
  font-size: 14.5px;
}

.ma-steps li > span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.ma-steps code,
.ma-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ma-code {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #1b1d2b;
  color: #dfe3ff;
  font-size: 12.5px;
  line-height: 1.8;
  overflow-x: auto;
}

.ma-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ma-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 14px;
  background: #fdfdff;
  text-decoration: none;
}

.ma-card strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
}

.ma-card span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.ma-card:hover {
  border-color: #cfc8f5;
  background: #faf9ff;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1180px) {
  .ma-row {
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr) minmax(200px, 1.1fr) minmax(190px, 1fr);
  }
  .ma-row > :nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .ma-page {
    padding: 18px 20px 56px;
  }
  .ma-hero {
    padding: 32px 24px 30px;
  }
  .ma-title {
    font-size: 31px;
  }
  .ma-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ma-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .ma-search {
    margin-left: 0;
    max-width: none;
  }
  .ma-row,
  .ma-row--head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ma-row--head {
    display: none;
  }
  .ma-steps,
  .ma-cards {
    grid-template-columns: 1fr;
  }
}

/* The source stylesheet hides the wide table on phones. The generated list
   includes a compact price view so model prices remain readable there. */
@media (max-width: 768px) {
  .model-access-page-module__l_qKfW__pricingTypeTabs {
    width: 100%;
    min-width: 0;
    flex: none;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .model-access-page-module__l_qKfW__pricingTypeTab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .model-access-page-module__l_qKfW__pricingBrandTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 12px;
    padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
  }

  .model-access-page-module__l_qKfW__pricingBrandTab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .model-access-page-module__l_qKfW__mobileCards {
    display: block;
  }

  .ma-mobile-model {
    padding: 16px;
    border-bottom: 1px solid #dfe5f1;
  }

  .ma-mobile-model:last-child {
    border-bottom: 0;
  }

  .ma-mobile-model__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ma-mobile-model__head strong {
    min-width: 0;
    color: #14855f;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .ma-mobile-model__head > span {
    flex: none;
    color: #5b6178;
    font-size: 12px;
  }

  .ma-mobile-model__prices {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .ma-mobile-model__price {
    min-width: 0;
    overflow-x: auto;
    color: #5b6178;
    font-size: 12.5px;
  }

  .ma-mobile-model__price + .ma-mobile-model__price {
    border-top: 1px solid #e8ebf3;
    padding-top: 12px;
  }

  .ma-mobile-model__price h4 {
    margin: 0 0 6px;
    color: #4d5872;
    font-size: 12px;
    font-weight: 700;
  }

  .ma-mobile-model__price.ma-price-col--ours h4 {
    color: #2f74f5;
  }

  .ma-mobile-model .ma-note-cell {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e8ebf3;
  }
}
