/**
 * model-common.css
 * 大模型详情页公共样式（U1-OCR / U2-ASR / U2-TTS / U2-TTS-Clone / U2-TTS-Design 等共用）
 *
 * 由 maas.unisound.com 各模型页的 Tailwind 工具类改写为语义化 class，
 * 尺寸、颜色、圆角、阴影等取值均与原站保持一致。
 *
 * 各页结构相同，故共用一套：
 *   .md-wrap        页面主容器（1360px 栅格）
 *   .md-intro       模型简介
 *   .md-stats       核心指标条
 *   .md-bench       评测柱状图（ASR 的 Tab 版扩展见 asr.css）
 *   .md-core        核心能力（分隔线列表）
 *   .md-highlight   优势亮点
 *   .md-scene       应用场景（卡片网格）
 *   .md-caps        能力清单
 *   .md-start       立即开始
 *   .md-cta         底部方案 CTA
 */

/* ========== 基础容器 ========== */
/* 大模型详情页整页背景（data-model-id 仅存在于 models/ 下的 8 个页面） */
body[data-model-id] {
  background-color: #fafafb;
}

/* ---- Hero 文案：对齐 maas 原站（型号名 32px/900、宣传语 38px/600、描述 22px/300）
   原站文案列宽 left:5.36% ~ right:25%（约 70%），此处放宽左列并撑满，
   避免左侧文字与右侧配图之间出现大片空白 ---- */
body[data-model-id] .solution-hero:not(.solution-hero--v2) .solution-hero__layout {
  grid-template-columns: 50% 1fr;
  gap: 24px;
}
body[data-model-id] .solution-hero__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.6084px;
  margin-bottom: 10px;
}
body[data-model-id] .solution-hero__subtitle {
  font-size: clamp(1.75rem, 2.9vw, 2.375rem);
  font-weight: 600;
  color: #0f172b;
  line-height: 1.1;
  letter-spacing: -0.6084px;
  margin-bottom: 14px;
}
body[data-model-id] .solution-hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  font-weight: 300;
  color: #0f172b;
  line-height: 1.5;
  max-width: none;
  margin-bottom: 28px;
}

/* 移动端：单列，避免上面的 62% 双列规则（含 body 前缀、优先级更高）压过 smart-home 的响应式 */
@media (max-width: 768px) {
  body[data-model-id] .solution-hero:not(.solution-hero--v2) .solution-hero__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body[data-model-id] .solution-hero__desc { margin-bottom: 20px; }
}

.md-wrap {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  position: relative;
  z-index: 10;
}

/* Block 化改造后，md-intro~md-start 每个区块各自独立输出一层 .md-wrap/.md-wrap__inner
   （原静态稿是同一个 .md-wrap__inner 用 flex+gap:88px 包住全部 section，外层 .md-wrap
   只在整个分组的最外侧有一次 48px 上下 padding）。这里把间距职责全部交给
   .md-wrap__inner，.md-wrap 本身不再有 padding，避免相邻 wrap 的 padding 与
   margin 相加导致间距变成两倍。 */
.md-wrap__inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 1360px;
  flex-direction: column;
  padding: 0 30px;
  margin-bottom: 88px;
}
.md-wrap:first-of-type .md-wrap__inner {
  padding-top: 88px;
}
.md-wrap:last-of-type .md-wrap__inner {
  padding-bottom: 88px;
  margin-bottom: 0;
}

/* 带图标的区块标题 */
.md-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #0F172B;
  margin: 0;
}

.md-sec-title img {
  width: 32px;
  height: 32px;
}

/* 区块标题（带描述的双行版，u2 页使用；与 .md-sec-title 并列的另一种形态） */
.md-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.md-head__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172B;
  margin: 0;
}
.md-head__desc {
  font-size: 18px;
  line-height: 1.8;
  color: #616D7E;
  margin: 0;
}
.md-start__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* 标题对齐（后台 block_type_field.titleAlign 可配，2026-09-11 新增）。
   模板必定输出 --left / --center 之一（未配置时按变体回落：u2→center，default→left），
   故这两条不是可选增强，而是承载了原先写死的对齐行为。
   ⚠️ 必须排在上方 .md-start__head / 下方 .md-sec-title 的基础规则之后：
   同为 (0,1,0) 权重，平手靠源码顺序决胜。 */
.md-start__head--left {
  align-items: flex-start;
  margin: 0;
  text-align: left;
}

.md-start__head--center {
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

/* md-sec-title 是 flex 行内布局（图标 + 文字），靠 justify-content 控制对齐 */
.md-sec-title--left {
  justify-content: flex-start;
}

.md-sec-title--center {
  justify-content: center;
}

/* u2 变体标题内的图标：md-head__title 是普通块级 h2，图标需内联对齐 */
.md-start__title-icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  vertical-align: -6px;
}

/* 白卡通用容器 */
.md-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* ========== 1. 模型简介 ========== */
.md-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.md-intro__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0F172B;
  margin: 0;
}

.md-intro__desc {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #616D7E;
  text-align: left;
}

/* ========== 2. 核心指标条 ========== */
.md-stats {
  display: flex;
  align-items: stretch;
  padding: 32px 16px;
}

.md-stats__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

/* 相邻项之间的竖线 */
.md-stats__item + .md-stats__item {
  border-left: 1px solid #f3f4f6;
}

.md-stats__value-box {
  display: flex;
  height: 48px;
  align-items: flex-end;
  justify-content: center;
}

.md-stats__value {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #0F172B;
}

.md-stats__rule {
  margin: 12px 0 16px;
  width: 24px;
  height: 3px;
  border-radius: 9999px;
  background: #165DFF;
}

.md-stats__label {
  font-size: 14px;
  line-height: 1.375;
  color: #616D7E;
  text-align: center;
  margin: 0;
}

/* ========== 3. 评测柱状图 ========== */
.md-bench {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 说明文字下方、图例上方的小标题（后台 captionBelow，不填不输出）。
   取值对齐静态页：居中、20px、semibold、#0F172B。 */
.md-bench__caption {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #0F172B;
}

.md-bench__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  line-height: 1;
  color: #0F172B;
}

.md-bench__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.md-bench__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.md-bench__swatch--u2 {
  background: #3067FF;
}

.md-bench__swatch--other {
  background: #D9DEE7;
}

.md-bench__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.md-bench__card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #BDDCFD;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  padding: 16px;
}

.md-bench__card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #0F172B;
  margin: 0;
}

.md-bench__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.md-bench__bar {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.md-bench__bar-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #212938;
}

.md-bench__bar--u2 .md-bench__bar-value {
  color: #3067FF;
}

.md-bench__bar-fill {
  width: 36px;
  border-radius: 8px 8px 0 0;
  background-image: linear-gradient(180deg, #EDF0F5 0%, #C7D1E0 100%);
}

.md-bench__bar--u2 .md-bench__bar-fill {
  background-image: linear-gradient(180deg, #8CB2FF 0%, #3067FF 100%);
}

.md-bench__bar-meta {
  display: flex;
  width: 100%;
  /* 原站固定 40px；名称最多三行时按需增高，避免文字被裁切 */
  min-height: 40px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  /* 名称过长时不挤压相邻柱 */
  overflow: hidden;
}

.md-bench__bar-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.md-bench__bar-name {
  /* 原站用 whitespace-pre-line 保留数据里的换行 */
  white-space: pre-line;
  width: 100%;
  text-align: center;
  font-size: 8px;
  line-height: 9px;
  color: #616D7E;
  /* 超长名称截断，避免与相邻柱重叠 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

/* ========== 4. 核心能力 ========== */
.md-core {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.md-core__list {
  padding: 8px 32px;
}

.md-core__item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 0;
}

/* 末项不要分隔线 */
.md-core__item:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.md-core__item > img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.md-core__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.md-core__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0F172B;
  margin: 0;
}

.md-core__desc {
  font-size: 15px;
  line-height: 1.625;
  color: #616D7E;
  margin: 0;
}

/* ========== 5. 优势亮点 ========== */
.md-highlight {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.md-highlight__list {
  padding: 8px 32px;
}

/* 技术结构图（可选，仅配置了 figureImage 的区块才有）。
   渐变底取自静态页 u2-tts 的技术亮点配图容器。 */
.md-highlight__figure {
  overflow: hidden;
  border-radius: 8px;
  padding: 16px 12px;
  background-image: linear-gradient(
    134.8deg,
    rgb(230, 242, 252) 28.492%,
    rgb(246, 250, 253) 40.899%,
    rgb(246, 250, 253) 49.169%,
    rgb(251, 253, 255) 64.566%,
    rgb(243, 247, 255) 70.063%
  );
}

.md-highlight__figure img {
  display: block;
  margin: 0 auto;
  height: auto;
  width: 100%;
  max-width: 480px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.md-highlight__item {
  display: flex;
  gap: 12px;
  padding: 20px 0;
}

.md-highlight__item:not(:last-child) {
  border-bottom: 1px solid #EBEBEB;
}

.md-highlight__item > img {
  margin-top: 2px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.md-highlight__title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172B;
  margin: 0;
}

.md-highlight__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: #616D7E;
}

/* ========== 6. 应用场景 ========== */
.md-scene {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.md-scene__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* 列数修饰类：由 model_scene.ftl 按 item 数自动输出，无需手工指定。
   规则：1条→cols-1 2条→cols-2 3条→cols-3 ≥4条→不加类走默认 4 列（超出换行）。
   ⚠️ 新增/修改任一 --cols-N 时，下方两个响应式媒体查询的选择器列表必须同步补齐，
      否则 (0,2,0) 的双类选择器会压过媒体查询里 (0,1,0) 的裸类，导致移动端降级失效。
   cols-5 / cols-6 为历史遗留（旧数据手配 gridCols=5），保留以防脏数据，新逻辑不再输出。 */
.md-scene__grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.md-scene__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md-scene__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-scene__grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.md-scene__grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.md-scene__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
  padding: 30px;
  transition: box-shadow 0.3s;
}

.md-scene__card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.md-scene__icon {
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
}

.md-scene__icon svg {
  width: 24px;
  height: 24px;
}

.md-scene__text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.md-scene__title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172B;
  margin: 0;
}

.md-scene__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #616D7E;
  margin: 0;
}

/* 右下角网点装饰 */
.md-scene__dots {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 80px;
  height: 80px;
  opacity: 0.3;
  pointer-events: none;
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to top left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to top left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* ========== 7. 能力清单 ========== */
.md-caps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.md-caps__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px 32px;
  list-style: none;
}

.md-caps__item {
  display: flex;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: #616D7E;
}

.md-caps__item img {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 部分页面的能力条目是「标题 + 描述」而非单行文本 */
.md-caps__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.md-caps__title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172B;
  margin: 0;
}

.md-caps__desc {
  font-size: 15px;
  line-height: 1.625;
  color: #616D7E;
  margin: 0;
}

/* ========== 8. 立即开始 ========== */
.md-start {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.md-start__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.md-start__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 卡片内容对齐（后台 block_type_field.cardAlign 可配，2026-09-11 新增）。
   模板必定输出 --left / --center 之一，未配置时回落 left（改造前的固定行为）。
   卡片是 flex 纵向容器，文字对齐要同时管 align-items（控制图标行等 flex 子项）
   和 text-align（控制文字换行后的对齐），只改一个会出现
   「标题居中但描述换行后左对齐」的错位。 */
.md-start__grid--align-left .md-start__card {
  align-items: flex-start;
  text-align: left;
}

.md-start__grid--align-center .md-start__card {
  align-items: center;
  text-align: center;
}

/* 卡片头是 图标+标题 的横向 flex，居中时需要整行居中 */
.md-start__grid--align-center .md-start__card-head {
  justify-content: center;
}

.md-start__card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 20px rgba(15, 23, 43, 0.06);
}

.md-start__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-start__card-head img {
  width: 20px;
  height: 20px;
}

.md-start__card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172B;
  margin: 0;
}

.md-start__card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #616D7E;
  margin: 0;
}

/* ========== 9. 底部 CTA ========== */
.md-cta {
  position: relative;
  z-index: 10;
  padding: 0 24px;
  margin-bottom: 96px;
}

.md-cta__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1344px;
  height: 340px;
  overflow: hidden;
  border-radius: 32px;
  text-align: center;
}

.md-cta__bg {
  position: absolute;
  inset: 0;
  background: #f1f5f9;
}

.md-cta__img {
  position: absolute;
  top: 0;
  height: 340px;
  mix-blend-mode: darken;
}

.md-cta__img--left {
  left: 0;
  width: 572px;
}

.md-cta__img--right {
  right: 0;
  width: 642px;
}

.md-cta__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transform-origin: right;
  transition: transform 0.7s ease-out;
}

.md-cta__inner:hover .md-cta__img img {
  transform: scale(1.1);
}

.md-cta__glow-wrap {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.md-cta__glow {
  position: absolute;
  border-radius: 9999px;
}

.md-cta__glow--1 {
  background: rgba(43, 127, 255, 0.15);
  filter: blur(120px);
  width: 840px;
  height: 624px;
  left: -168px;
  top: -62px;
  mix-blend-mode: color-burn;
}

.md-cta__glow--2 {
  background: rgba(97, 95, 255, 0.15);
  filter: blur(140px);
  width: 1007px;
  height: 728px;
  right: 0;
  top: 62px;
}

.md-cta__glow--3 {
  background: rgba(0, 211, 243, 0.3);
  filter: blur(100px);
  width: 672px;
  height: 416px;
  left: 336px;
  top: 208px;
  mix-blend-mode: color-burn;
}

.md-cta__content {
  position: absolute;
  left: 4.84%;
  right: 4.84%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.md-cta__title {
  width: 100%;
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -0.3172px;
  color: #0F172B;
  margin: 0;
}

.md-cta__btn {
  position: relative;
  width: 172px;
  height: 48px;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  border-radius: 28px;
  background: #0f172b;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.1504px;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.md-cta__btn:hover {
  background: #1a2540;
  box-shadow: 0 8px 32px rgba(15, 23, 43, 0.25);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
  /* ---- 评测图窄屏列数：按后台配置逐档收敛（2026-09-11 调整） ----
     原先这里把 .md-bench[class*="--cols-"] 统一压成 2 列，后果是后台无论配几列，
     ≤1200px 下都变 2 列；尤其配 1 列的场景（柱子多的卡片）反而越降越挤。
     现按档位给出明确规则：1 列保持 1 列；2/3 列保持不变（已足够窄）；
     4/5/6 列收敛到 2 列（否则单卡过窄，数值与模型名会重叠）。
     选择器需与 .md-bench[class*="--cols-"] 同为 (0,3,0) 权重。 */
  .md-bench.md-bench--cols-1 .md-bench__grid,
  .md-bench .md-bench__panel--cols-1 .md-bench__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .md-bench.md-bench--cols-2 .md-bench__grid,
  .md-bench .md-bench__panel--cols-2 .md-bench__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-bench.md-bench--cols-3 .md-bench__grid,
  .md-bench .md-bench__panel--cols-3 .md-bench__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md-bench.md-bench--cols-4 .md-bench__grid,
  .md-bench.md-bench--cols-5 .md-bench__grid,
  .md-bench.md-bench--cols-6 .md-bench__grid,
  .md-bench .md-bench__panel--cols-4 .md-bench__grid,
  .md-bench .md-bench__panel--cols-5 .md-bench__grid,
  .md-bench .md-bench__panel--cols-6 .md-bench__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-bench__grid,
  .md-scene__grid,
  .md-scene__grid.md-scene__grid--cols-2,
  .md-scene__grid.md-scene__grid--cols-3,
  .md-scene__grid.md-scene__grid--cols-5,
  .md-scene__grid.md-scene__grid--cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 只有 1 条时不参与 2 列降级，否则会留半行空位 */
  .md-scene__grid.md-scene__grid--cols-1 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .md-wrap__inner {
    gap: 56px;
    padding: 32px 16px;
  }

  .md-intro__title {
    font-size: 24px;
  }

  .md-intro__desc {
    font-size: 15px;
  }

  /* ---- 双行标题（md-head / md-start__head）窄屏降字号 ----
     这组 class 是 2026-09 随 u2 变体新增的，当时只补了桌面样式，
     漏了响应式，导致手机上标题仍是 32px（每行仅约 10 个汉字）、
     与已降到 24px 的 .md-intro__title 在同一页面上大小不一致。
     取值与 md-intro 对齐：标题 32→24、描述 18→15。
     使用方：model_bench / model_start / model_core_row / model_case_gallery。 */
  .md-head__title {
    font-size: 24px;
  }

  .md-head__desc {
    font-size: 15px;
    line-height: 1.7;
  }

  /* 带图标的单行区块标题，桌面 24px，窄屏与上面保持同一视觉层级 */
  .md-sec-title {
    font-size: 20px;
  }

  .md-sec-title img,
  .md-start__title-icon {
    width: 24px;
    height: 24px;
  }

  /* 图标 32→24 后，桌面那个 -6px 的基线补偿会显得偏低，按比例收到 -4px */
  .md-start__title-icon {
    vertical-align: -4px;
  }

  /* 评测图上方的小标题（captionBelow），桌面 20px */
  .md-bench__caption {
    font-size: 16px;
  }

  /* 指标条转为竖排，竖线改横线 */
  .md-stats {
    flex-direction: column;
    padding: 16px;
  }

  .md-stats__item {
    padding: 16px 0;
  }

  .md-stats__item + .md-stats__item {
    border-left: none;
    border-top: 1px solid #f3f4f6;
  }

  .md-stats__value {
    font-size: 36px;
  }

  /* ---- ≤900px：手机宽度，评测卡统一收到 1 列 ----
     此宽度下并排两张卡片，每张只剩 ~160px，4-6 根柱子必然重叠，
     故除后台明确配 2 列外一律单列；配 1 列的本就是单列，保持不变。 */
  .md-bench__grid,
  .md-bench.md-bench--cols-1 .md-bench__grid,
  .md-bench.md-bench--cols-3 .md-bench__grid,
  .md-bench.md-bench--cols-4 .md-bench__grid,
  .md-bench.md-bench--cols-5 .md-bench__grid,
  .md-bench.md-bench--cols-6 .md-bench__grid,
  .md-bench .md-bench__panel--cols-1 .md-bench__grid,
  .md-bench .md-bench__panel--cols-3 .md-bench__grid,
  .md-bench .md-bench__panel--cols-4 .md-bench__grid,
  .md-bench .md-bench__panel--cols-5 .md-bench__grid,
  .md-bench .md-bench__panel--cols-6 .md-bench__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .md-bench.md-bench--cols-2 .md-bench__grid,
  .md-bench .md-bench__panel--cols-2 .md-bench__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .md-core__list,
  .md-highlight__list {
    padding: 8px 20px;
  }

  .md-core__item {
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
  }

  .md-core__title {
    font-size: 18px;
  }

  .md-core__desc {
    font-size: 14px;
  }

  .md-highlight__title {
    font-size: 16px;
  }

  .md-highlight__desc {
    font-size: 13px;
    line-height: 22px;
  }

  .md-scene__grid,
  .md-scene__grid.md-scene__grid--cols-1,
  .md-scene__grid.md-scene__grid--cols-2,
  .md-scene__grid.md-scene__grid--cols-3,
  .md-scene__grid.md-scene__grid--cols-5,
  .md-scene__grid.md-scene__grid--cols-6,
  .md-start__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .md-scene__card {
    padding: 24px;
  }

  .md-caps__list {
    padding: 20px;
  }

  .md-cta {
    padding: 0 16px;
    margin-bottom: 56px;
  }

  .md-cta__inner {
    height: 280px;
    border-radius: 24px;
  }

  .md-cta__title {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ========== 评测柱状图：U2 风格变体 ==========
   U2 / U2-Med 页使用：卡片更紧凑、U2 柱为纯色蓝、其他模型为浅蓝渐变、柱顶全圆角 */
.md-bench--u2 .md-bench__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.md-bench--u2 .md-bench__card {
  min-height: 0;
  border-color: #B8D4F5;
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px 12px;
}

.md-bench--u2 .md-bench__card-title {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.md-bench--u2 .md-bench__bars {
  margin-top: 12px;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
}

/* ---- 单列（整行一张卡片）时的铺满修正 ----
   u2 变体的 justify-content:flex-start 与 bar-fill 的 max-width:22px
   都是为 3 列窄卡设计的；卡片变成整行宽之后，
   会出现「柱子又细又全挤在左侧、右边一大片空白」
   （u2-radimed 9 根柱子配 1 列时的表现）。这里针对 1 列放开。 */
.md-bench--cols-1 .md-bench__bars,
.md-bench .md-bench__panel--cols-1 .md-bench__bars {
  justify-content: space-between;
}

.md-bench--cols-1 .md-bench__bar-fill,
.md-bench .md-bench__panel--cols-1 .md-bench__bar-fill {
  max-width: 48px;
}

/* 柱区固定 140px 高，柱体底端对齐 */
.md-bench--u2 .md-bench__bar-col {
  display: flex;
  width: 100%;
  height: 140px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.md-bench--u2 .md-bench__bar-value {
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #0F172B;
}

.md-bench--u2 .md-bench__bar-fill {
  width: 100%;
  max-width: 22px;
  border-radius: 9999px 9999px 0 0;
  background-image: linear-gradient(to bottom, #ecf3ff, #5ca8ff);
}

.md-bench--u2 .md-bench__bar--u2 .md-bench__bar-fill {
  background-image: none;
  background-color: #2563EB;
}

.md-bench--u2 .md-bench__bar-meta {
  margin-top: 8px;
  min-height: 48px;
}

.md-bench--u2 .md-bench__bar-icon {
  width: 14px;
  height: 14px;
}

.md-bench--u2 .md-bench__bar-name {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.25;
}

/* ========== 评测柱状图：每行列数（后台 block_type_field.panelCols 可配） ==========
   适用 simple / u2 两个变体（tabbed 变体的列数挂在 .md-bench__panel--cols-N 上，
   规则在 asr.css，因该文件后加载故天然覆盖本节，互不干扰）。

   ⚠️ 位置要求：本节必须排在上方所有 .md-bench--u2 规则之后。
   .md-bench--cols-N .md-bench__grid 与 .md-bench--u2 .md-bench__grid 同为 (0,2,0)
   权重，平手时靠源码顺序决胜——写在前面会被 u2 的 3 列覆盖，导致 u2 页面配了
   列数不生效。新增规则时请勿把本节上移。

   模板对未填 / 脏数据按变体回落（simple→4 / u2→3 / tabbed→4），
   故老数据不带 panelCols 时外观与改造前完全一致。 */
/* 1 列：整行只放一张卡片。用于柱子很多的卡片（如 u2-radimed 的 9 根、
   u2-med 每张 8 根），多列下卡片被压窄会导致数值与模型名重叠/截断。 */
.md-bench--cols-1 .md-bench__grid {
  grid-template-columns: minmax(0, 1fr);
}

.md-bench--cols-2 .md-bench__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.md-bench--cols-3 .md-bench__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md-bench--cols-4 .md-bench__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.md-bench--cols-5 .md-bench__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.md-bench--cols-6 .md-bench__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 900px) {
  /* u2 变体未配置列数时默认 3 列，窄屏收敛为 1 列。
     配置了 panelCols 的走上方 ≤900px 的逐档规则，此处不重复。 */
  .md-bench--u2:not([class*="--cols-"]) .md-bench__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* ---- u2 柱状图窄屏放大字号/柱宽 ----
     u2 变体的 9px 名称、10px 数值和 max-width:22px 柱宽，都是为桌面 3 列
     窄卡设计的；≤900px 时卡片已收敛成整行（上方逐档规则），卡片宽度从
     约 210px 变成约 310px，却仍按 9px 渲染，手机上几乎看不清。
     tabbed 变体在 asr.css 里已有同样的处理（"避免手机上数值过小"），
     这里给 u2 补齐，取值对齐 md-bench__bar-name 的桌面基线。
     ⚠️ 本节必须留在文件末尾这个媒体查询里：与 .md-bench--u2 .md-bench__bar-name
     同为 (0,2,0) 权重，靠源码顺序取胜，上移会失效。 */
  .md-bench--u2 .md-bench__bar-name {
    font-size: 12px;
    line-height: 1.4;
  }

  .md-bench--u2 .md-bench__bar-value {
    font-size: 13px;
  }

  .md-bench--u2 .md-bench__bar-fill {
    max-width: 36px;
  }

  /* 名称放大后 3 行需要更多高度，否则末行被 -webkit-line-clamp 裁掉 */
  .md-bench--u2 .md-bench__bar-meta {
    min-height: 56px;
  }
}
