/* ============================================
   服务内页：外观设计 & 品牌创新（service-appearance）
   BEM 前缀：sa-；共用组件复用 sv- / services-hero
   ============================================ */

/* ============================================
   强制本页 header 使用深色文字（适应白色背景）
   ============================================ */
.service-appearance-page .main-header:not(.sticky) {
  background: transparent;
}

.service-appearance-page .main-header:not(.sticky) .nav__link,
.service-appearance-page .main-header:not(.sticky) .header-lang-toggle,
.service-appearance-page .main-header:not(.sticky) .header-fullscreen-toggle {
  color: #000000 !important;
}

.service-appearance-page .main-header:not(.sticky) .logo-img {
  filter: none !important;
}

.service-appearance-page .main-header:not(.sticky) .hamburger__line {
  background: #242424 !important;
}

/* 移动端 Hero：在扣除页眉安全区后居中，保持左右留白一致。 */
@media (max-width: 767px) {
  .service-appearance-page .services-hero {
    min-height: 80svh;
    box-sizing: border-box;
    padding: 92px 0 32px;
    align-items: center;
  }

  .service-appearance-page .services-hero__container {
    width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
    align-items: stretch;
    gap: 32px;
  }

  .service-appearance-page .services-hero__left,
  .service-appearance-page .services-hero__right {
    width: 100%;
    max-width: none;
    padding-bottom: 0;
  }

  .service-appearance-page .services-hero__services {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .service-appearance-page .services-hero {
    padding: 80px 0 24px;
  }

  .service-appearance-page .services-hero__container {
    padding: 0 24px;
    gap: 24px;
  }
}

/* ============================================
   Hero 面包屑
   ============================================ */
.sa-hero__crumb {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.04em;
  margin: 0 0 20px 0;
}

.sa-hero__crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sa-hero__crumb a:hover {
  color: #000000;
}

/* ============================================
   通用区块基座
   ============================================ */
.sa-section {
  position: relative;
  z-index: 10;
  padding: 100px 0;
}

/* 进入视口淡入（保持克制） */
.sa-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sa-reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sa-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   两大服务方向（白底）
   ============================================ */
.sa-directions {
  background: #ffffff;
}

.sa-directions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sa-direction-card {
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background 0.3s ease;
}

.sa-direction-card:hover {
  transform: translateY(-4px);
  background: #efefef;
}

.sa-direction-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaeaea;
}

.sa-direction-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sa-direction-card:hover .sa-direction-card__image img {
  transform: scale(1.04);
}

.sa-direction-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.sa-direction-card__index {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.3);
}

.sa-direction-card__title {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0;
}

.sa-direction-card__desc {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.8;
  margin: 0;
}

.sa-direction-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sa-direction-card__tags span {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
}

.sa-direction-card__deliverables {
  list-style: none;
  margin: auto 0 0 0;
  padding: 14px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-direction-card__deliverables li {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sa-direction-card__deliverables li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ============================================
   设计流程（#f5f5f5 底）
   ============================================ */
.sa-process {
  background: #f5f5f5;
}

.sa-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  row-gap: 40px;
  margin-top: 56px;
}

.sa-process__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sa-process__num {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.35);
  padding-top: 0;
  border-top: 0;
}

.sa-process__image {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #eaeaea;
}

.sa-process__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-process__name {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0;
}

.sa-process__desc {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.7;
  margin: 0;
}

/* 步骤英文名（紧随中文名称） */
.sa-process__en {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.35);
}

/* 第 8 格：与流程图片同尺寸的深色行动画面 */
.sa-process__summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sa-process__summary::before {
  content: '';
  display: block;
  flex: 0 0 17px;
  height: 17px;
}

.sa-process__summary-visual {
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: 5px;
  background: #111111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sa-process__summary-text {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.6;
  margin: 0;
}

.sa-process__summary-link {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.3s ease;
}

.sa-process__summary-link:hover {
  border-color: #ffffff;
}

/* ============================================
   CMF 交互材料库（白底）
   ============================================ */
.sa-cmf {
  background: #ffffff;
}

.sa-cmf__lead {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.9;
  margin: 18px 0 0 0;
  max-width: 640px;
}

/* 桌面左右两栏（约 5:7） */
.sa-cmf__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

/* 左：16 材料缩略图网格（桌面 3 列） */
.sa-cmf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sa-cmf__item {
  appearance: none;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #f7f7f7;
  padding: 14px;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.sa-cmf__item:hover {
  background: #efefef;
  transform: translateY(-2px);
}

.sa-cmf__item.is-active {
  border-color: #111111;
  background: #ffffff;
}

.sa-cmf__item:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.sa-cmf__item-ball {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  /* 与 WebGL 缩略图一致的中性浅灰渐变（上浅下深），浅色材料有轮廓 */
  background: linear-gradient(180deg, #f2f2f4 0%, #dbdbe0 100%);
  position: relative;
}

/* 实时渲染缩略图（JS 共享 renderer toDataURL 生成） */
.sa-cmf__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* WebGL 退化：缩略图变为名字文字块 */
.sa-cmf__item-ball::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
  padding: 6px;
}

.sa-cmf--no-webgl .sa-cmf__item-ball::after {
  display: flex;
}

.sa-cmf--no-webgl .sa-cmf__item-img {
  display: none;
}

.sa-cmf__item-name {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

.sa-cmf__item.is-active .sa-cmf__item-name {
  color: #111111;
}

/* 右：详情面板（随长网格粘性定位） */
.sa-cmf__detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  position: sticky;
  top: 96px;
}

/* 大球预览：Three.js canvas 容器 */
.sa-cmf__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #f2f2f2;
}

.sa-cmf__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.sa-cmf__canvas.is-dragging {
  cursor: grabbing;
}

/* 拖拽提示（WebGL 可用时由 JS 显示） */
.sa-cmf__preview-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 4px 12px;
  pointer-events: none;
}

/* WebGL 退化：预览区静态占位（圆球色块 + 名字 + 说明） */
.sa-cmf__preview-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.sa-cmf--no-webgl .sa-cmf__preview-fallback {
  display: flex;
}

.sa-cmf__fallback-ball {
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dcdcdc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s ease;
}

.sa-cmf__fallback-name {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #111111;
}

.sa-cmf__fallback-note {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.35);
}

/* 控制条：分段控件 + 颜色 swatch */
.sa-cmf__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sa-cmf__seg {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.sa-cmf__seg button {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 8px 22px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.sa-cmf__seg button:hover {
  color: #111111;
}

.sa-cmf__seg button.is-active {
  background: #111111;
  color: #ffffff;
}

.sa-cmf__seg button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.sa-cmf__swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sa-cmf__swatch {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-cmf__swatch:hover {
  transform: scale(1.12);
}

.sa-cmf__swatch.is-active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111111;
}

.sa-cmf__swatch:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

/* 信息区 */
.sa-cmf__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sa-cmf__name {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0;
}

.sa-cmf__en {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.35);
}

/* 分类标签 */
.sa-cmf__category {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  margin-left: 4px;
}

/* 材料描述 */
.sa-cmf__desc {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.8;
  margin: 0;
}

/* 特性键值 chips（properties JSON 对象） */
.sa-cmf__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-cmf__chip {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  background: #f0f0f0;
  border-radius: 6px;
  padding: 5px 10px;
  line-height: 1.5;
}

.sa-cmf__chip em {
  font-style: normal;
  color: rgba(0, 0, 0, 0.38);
  margin-right: 6px;
}

.sa-cmf__apps {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.8;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sa-cmf__apps-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.35);
}

/* meta 行：成本等级 / 耐温范围 */
.sa-cmf__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sa-cmf__meta-item {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.38);
}

.sa-cmf__meta-item strong {
  font-weight: 600;
  color: #111111;
  margin-left: 8px;
}

/* 无 JS 退化：全部材料静态文字列表 */
.sa-cmf__static-list {
  margin: 32px 0 0 0;
  padding: 24px 28px;
  background: #f5f5f5;
  border-radius: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sa-cmf__static-list li {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.8;
}

.sa-cmf__static-list strong {
  color: #111111;
}

/* ============================================
   品牌创新深色块（#f5f5f5 外 / #111 内）
   ============================================ */
.sa-brand {
  background: #f5f5f5;
}

.sa-brand__inner {
  background: #111111;
  border-radius: 24px;
  padding: 64px 56px;
}

.sa-brand__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}

.sa-brand .sv-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.sa-brand__title {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 20px 0;
}

.sa-brand__desc {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  margin: 0 0 32px 0;
}

.sa-brand__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sa-brand__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.sa-brand .sv-check-icon {
  color: #ffffff;
}

.sa-brand__image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
}

.sa-brand__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 数据亮点行（复用 sv-approach__stats 结构） */
.sa-brand__inner .sv-approach__stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   精选案例（白底）
   ============================================ */
.sa-cases {
  background: #ffffff;
}

.sa-cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.sa-cases__more {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.sa-cases__more:hover {
  border-color: #111111;
}

.sa-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 48px;
}

/* ============================================
   精选案例卡片（与 work 页一致）
   规则移植自 css/components.css（.card-project / .card-image /
   .card-overlay / .card-content / .card-tag / .card-title /
   .card-subtitle / .card-footer / .card-client / .btn-underline）
   与 css/work-v2.css（confidential 图标、整卡 hover 联动），
   作用域限定在 .sa-cases 下，避免影响其他页面。
   ============================================ */
.sa-cases .card-project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sa-cases .card-image {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  background-color: #F5F5F5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.sa-cases .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  border: none;
  outline: none;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.sa-cases .card-image:hover .card-overlay {
  opacity: 1;
}

.sa-cases .card-image .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.sa-cases .card-image:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

.sa-cases .card-image .card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: #111;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.sa-cases .card-image .card-title {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
}

.sa-cases .card-image .card-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
}

.sa-cases .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sa-cases .btn-underline {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
}

.sa-cases .btn-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #d4d4d4;
}

.sa-cases .btn-underline::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.sa-cases .btn-underline:hover::before {
  width: 100%;
}

.sa-cases .btn-underline:hover {
  color: #000;
}

.sa-cases .btn-underline--arrow {
  padding-right: 24px;
}

.sa-cases .btn-underline--arrow .btn-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.sa-cases .btn-underline--arrow:hover .btn-arrow {
  transform: translateY(-50%) translateX(4px);
}

.sa-cases .card-footer .btn-underline {
  font-size: 14px;
}

.sa-cases .card-footer .btn-underline--arrow {
  padding-right: 24px;
}

.sa-cases .card-footer .btn-underline--arrow .btn-arrow {
  width: 18px;
  height: 18px;
}

.sa-cases .card-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-cases .card-client-prefix {
  font-size: 14px;
  color: #666;
}

.sa-cases .card-client-icon {
  width: 48px;
  height: 48px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-cases .card-client-icon span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
}

.sa-cases .card-client-text {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* 保密客户图标（移植自 work-v2.css 的 confidential 模式） */
.sa-cases .card-client-icon--confidential {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}

.sa-cases .card-client-icon--confidential span {
  display: block;
  max-width: 42px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

/* 整卡 hover 联动「关于项目」下划线与箭头（移植自 work-v2.css） */
.sa-cases .card-project:hover .btn-underline::before,
.sa-cases .card-project:focus-within .btn-underline::before {
  width: 100%;
}

.sa-cases .card-project:hover .btn-underline,
.sa-cases .card-project:focus-within .btn-underline {
  color: #000;
}

.sa-cases .card-project:hover .btn-underline--arrow .btn-arrow,
.sa-cases .card-project:focus-within .btn-underline--arrow .btn-arrow {
  transform: translateY(-50%) translateX(4px);
}

/* 网格断点与 work 页 .cards-grid 对齐：1 / 2 / 3 / 4 列 */
@media (min-width: 768px) {
  .sa-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .sa-cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1816px) {
  .sa-cases__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1100px) {
  .sa-process__steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .sa-cmf__layout {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .sa-brand__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sa-brand__title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .sa-section {
    padding: 60px 0;
  }

  .sa-directions__grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .sa-process__steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  /* 移动端：单列流程，保持与桌面一致的无分割线结构 */
  .sa-process__step {
    padding-left: 0;
    padding-bottom: 36px;
    border-left: 0;
  }

  .sa-process__num {
    border-top: none;
    padding-top: 0;
  }

  .sa-process__summary {
    margin-left: 0;
    margin-top: 36px;
  }

  .sa-brand__inner {
    padding: 48px 28px;
  }

  .sa-cases__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* 材料库：上下堆叠，材料网格 4 列，详情面板在下 */
  .sa-cmf__layout {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }

  .sa-cmf__detail {
    position: static;
  }

  .sa-cmf__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sa-cmf__preview {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .sa-cmf__controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .sa-cmf__name {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .sa-brand__inner {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .sa-brand__title {
    font-size: 24px;
  }

  .sa-direction-card__body {
    padding: 22px 20px 26px;
  }

  .sa-cmf__grid {
    gap: 10px;
  }

  .sa-cmf__item {
    padding: 8px;
    border-radius: 10px;
  }

  .sa-cmf__item-name {
    font-size: 12px;
  }

  .sa-cmf__seg button {
    padding: 8px 18px;
  }
}

/* ============================================
   CMF 渲染升级（r160 + HDRI/PBR）：异步加载占位
   ============================================ */
/* HDRI/贴图加载中：大球与缩略图轻微呼吸（黑白灰纪律：仅透明度） */
@keyframes sa-cmf-breathe {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

.sa-cmf__preview.is-loading .sa-cmf__canvas {
  animation: sa-cmf-breathe 1.8s ease-in-out infinite;
}

.sa-cmf__grid.is-loading .sa-cmf__item-ball {
  animation: sa-cmf-breathe 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sa-cmf__preview.is-loading .sa-cmf__canvas,
  .sa-cmf__grid.is-loading .sa-cmf__item-ball {
    animation: none;
  }
}

/* ============================================
   CMF Studio v6：统一标准样件 + 材料族筛选
   ============================================ */
.sa-cmf {
  background: #f3f4f4;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sa-cmf .sv-services__header {
  max-width: 880px;
}

.sa-cmf__lead {
  max-width: 760px;
  color: #5c6264;
}

.sa-cmf__library {
  margin-top: 52px;
}

.sa-cmf__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.sa-cmf__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-cmf__filters button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 4px;
  background: transparent;
  color: #4e5456;
  font: 500 13px/1.2 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sa-cmf__filters button span {
  margin-left: 5px;
  color: #8a8f91;
  font-variant-numeric: tabular-nums;
}

.sa-cmf__filters button:hover {
  color: #111111;
  border-color: rgba(17, 17, 17, 0.38);
}

.sa-cmf__filters button.is-active {
  color: #ffffff;
  background: #16191a;
  border-color: #16191a;
}

.sa-cmf__filters button.is-active span {
  color: rgba(255, 255, 255, 0.62);
}

.sa-cmf__filters button:focus-visible {
  outline: 2px solid #16191a;
  outline-offset: 3px;
}

.sa-cmf__result {
  flex-shrink: 0;
  margin: 0 0 10px;
  color: #777d7f;
  font: 400 12px/1.2 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
}

.sa-cmf__result strong {
  color: #16191a;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.sa-cmf__layout {
  grid-template-columns: minmax(420px, 0.9fr) minmax(500px, 1.1fr);
  align-items: start;
  gap: 48px;
  margin-top: 32px;
}

.sa-cmf__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sa-cmf__item {
  min-width: 0;
  padding: 7px 7px 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sa-cmf__item[hidden] {
  display: none;
}

.sa-cmf__item:hover {
  transform: none;
  border-color: rgba(17, 17, 17, 0.34);
  background: #ffffff;
}

.sa-cmf__item.is-active {
  border-color: #16191a;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #16191a;
}

.sa-cmf__item-ball {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 3px;
  background: #e2e4e5;
}

.sa-cmf__item-img {
  border-radius: 3px;
}

.sa-cmf__item-copy {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 9px 3px 0;
}

.sa-cmf__item-name,
.sa-cmf__item-en {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-cmf__item-name {
  color: #25292a;
  font-size: 12px;
  font-weight: 600;
}

.sa-cmf__item-en {
  margin-top: 3px;
  color: #929799;
  font: 400 9px/1.3 Arial, sans-serif;
}

.sa-cmf__detail {
  top: 96px;
}

.sa-cmf__preview {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 6px;
  background: #e6e8e9;
}

.sa-cmf__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.sa-cmf__preview-label {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5e6466;
  font: 600 10px/1 Arial, sans-serif;
}

.sa-cmf__preview-label strong {
  padding-left: 9px;
  border-left: 1px solid rgba(17, 17, 17, 0.22);
  color: #171a1b;
  font-variant-numeric: tabular-nums;
}

.sa-cmf__preview-hint {
  width: 8px;
  height: 8px;
  right: 18px;
  bottom: 18px;
  left: auto;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.45);
  border-radius: 50%;
  background: transparent;
  transform: none;
}

.sa-cmf__controls {
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.sa-cmf__control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sa-cmf__control-group--colors {
  align-items: flex-end;
}

.sa-cmf__control-label {
  color: #7d8284;
  font: 500 10px/1.2 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
}

.sa-cmf__seg {
  padding: 3px;
  border-radius: 4px;
  background: #dfe1e1;
}

.sa-cmf__seg button {
  min-width: 64px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 12px;
}

.sa-cmf__swatches {
  min-height: 38px;
}

.sa-cmf__swatch {
  width: 32px;
  height: 32px;
}

.sa-cmf__info {
  gap: 16px;
  padding-top: 24px;
}

.sa-cmf__identity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 5px 12px;
}

.sa-cmf__category {
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 3px;
  color: #5c6264;
  letter-spacing: 0;
}

.sa-cmf__name {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.sa-cmf__en {
  margin: 0;
  color: #858b8d;
  font: 400 11px/1.35 Arial, sans-serif;
  letter-spacing: 0;
}

.sa-cmf__desc {
  max-width: 680px;
  color: #555b5d;
  line-height: 1.7;
}

.sa-cmf__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.sa-cmf__chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0;
  background: transparent;
  color: #25292a;
}

.sa-cmf__chip:nth-child(odd) {
  margin-right: 16px;
  border-right: 1px solid rgba(17, 17, 17, 0.1);
}

.sa-cmf__chip em {
  margin: 0;
  color: #858a8c;
}

.sa-cmf__chip strong {
  min-width: 0;
  color: #242829;
  font-weight: 600;
  text-align: right;
}

.sa-cmf__apps,
.sa-cmf__meta {
  border-top: 0;
  padding-top: 0;
}

.sa-cmf__apps {
  align-items: flex-start;
  color: #555b5d;
}

.sa-cmf__meta {
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

/* gpt-image-2 系列图已统一摄影指导，保留真实材质与 CMF 色彩。 */
.sa-direction-card,
.sa-process__image,
.sa-process__summary {
  border-radius: 6px;
}

.sa-direction-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #f1f2f2;
}

.sa-direction-card__image,
.sa-process__image {
  position: relative;
  border-radius: 0;
  background: #dfe2e3;
}

.sa-process__image {
  border-radius: 5px;
}

.sa-direction-card__image img,
.sa-process__image img {
  filter: none;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.sa-direction-card:hover .sa-direction-card__image img {
  filter: none;
  transform: scale(1.03);
}

@media (max-width: 1100px) {
  .sa-cmf__layout {
    grid-template-columns: minmax(360px, 0.85fr) minmax(440px, 1.15fr);
    gap: 28px;
  }

  .sa-cmf__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sa-cmf__toolbar {
    align-items: flex-start;
  }

  .sa-cmf__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sa-cmf__detail {
    position: static;
  }

  .sa-cmf__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sa-cmf__library {
    margin-top: 36px;
  }

  .sa-cmf__toolbar {
    display: block;
  }

  .sa-cmf__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 3px 10px;
    margin: -3px;
    scrollbar-width: none;
  }

  .sa-cmf__filters::-webkit-scrollbar,
  .sa-cmf__grid::-webkit-scrollbar {
    display: none;
  }

  .sa-cmf__filters button {
    flex: 0 0 auto;
  }

  .sa-cmf__result {
    margin: 8px 0 0;
  }

  .sa-cmf__grid {
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    overflow-x: auto;
    padding: 2px 2px 10px;
    margin: -2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .sa-cmf__item {
    scroll-snap-align: start;
  }

  .sa-cmf__controls {
    flex-direction: row;
    align-items: flex-start;
  }

  .sa-cmf__name {
    font-size: 24px;
  }

  .sa-cmf__chips {
    grid-template-columns: 1fr;
  }

  .sa-cmf__chip:nth-child(odd) {
    margin-right: 0;
    border-right: 0;
  }
}

@media (max-width: 420px) {
  .sa-cmf__controls {
    gap: 16px;
  }

  .sa-cmf__control-group--colors {
    align-items: flex-start;
  }

  .sa-cmf__swatches {
    gap: 8px;
  }
}

/* ============================================
   CMF Studio v10：左侧摄影棚预览 / 右侧纯文字材料清单
   ============================================ */
.sa-cmf__layout {
  grid-template-columns: minmax(520px, 1.18fr) minmax(360px, 0.82fr);
  gap: 48px;
}

.sa-cmf__detail {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.sa-cmf__warehouse {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.sa-cmf__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}

.sa-cmf__item {
  position: relative;
  display: block;
  min-height: 64px;
  padding: 9px 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.52);
}

.sa-cmf__item::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  background: transparent;
}

.sa-cmf__item.is-active::before {
  background: #16191a;
}

.sa-cmf__item-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 8px;
  padding: 0;
}

.sa-cmf__item-category {
  grid-column: 1;
  grid-row: 1;
  color: #979b9d;
  font: 500 9px/1.2 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  white-space: nowrap;
}

.sa-cmf__item-name {
  grid-column: 1;
  grid-row: 2;
  color: #202425;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.sa-cmf__item-en {
  grid-column: 1;
  grid-row: 3;
  margin-top: 1px;
  color: #858a8c;
  font-size: 10px;
  text-align: left;
}

.sa-cmf__preview {
  background: #d8d6d1;
}

.sa-cmf__preview-label {
  color: rgba(24, 27, 28, 0.58);
}

@media (max-width: 1100px) {
  .sa-cmf__layout {
    grid-template-columns: minmax(460px, 1fr) minmax(320px, 0.72fr);
    gap: 28px;
  }

  .sa-cmf__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sa-cmf__layout {
    grid-template-columns: 1fr;
  }

  .sa-cmf__detail {
    grid-column: 1;
    grid-row: 1;
  }

  .sa-cmf__warehouse {
    grid-column: 1;
    grid-row: 2;
  }

  .sa-cmf__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sa-cmf__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
    scroll-snap-type: none;
  }

  .sa-cmf__item {
    min-height: 62px;
    scroll-snap-align: none;
  }
}

/* ============================================
   CMF Studio v11：复用 Work / News 分类控件与招聘卡片语言
   ============================================ */
.sa-cmf__toolbar.filter-bar {
  min-height: 60px;
  padding: 5px;
  border: 0;
  align-items: center;
  gap: 5px;
}

.sa-cmf__filters {
  display: contents;
}

.sa-cmf__toolbar .filter-right-group {
  height: var(--filter-control-height);
  min-height: var(--filter-control-height);
  gap: 5px;
}

.sa-cmf__filters .filter-option {
  min-height: var(--filter-control-height);
  height: var(--filter-control-height);
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: rgb(250, 250, 250);
  color: #111111;
  font-size: 14px;
  font-weight: 500;
}

.sa-cmf__filters .filter-option:hover {
  color: #111111;
  border: 0;
  background: #ffffff;
}

.sa-cmf__filters .filter-option.is-active {
  border: 0;
  color: #ffffff;
  background: #111111;
}

.sa-cmf__filters .filter-option span,
.sa-cmf__filters .filter-option.is-active span {
  color: inherit;
}

.sa-cmf__result {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  min-height: 50px;
  margin: 0 0 0 auto;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  white-space: nowrap;
}

.sa-cmf__layout {
  --sa-cmf-viewport-height: clamp(480px, calc(100vh - 180px), 720px);
}

.sa-cmf__warehouse {
  height: var(--sa-cmf-viewport-height);
  max-height: var(--sa-cmf-viewport-height);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.sa-cmf__grid {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  align-content: start;
  padding: 1px;
}

.sa-cmf__item {
  height: 64px;
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.sa-cmf__item:hover {
  border: 0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sa-cmf__item.is-active {
  border: 0;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #111111;
}

.sa-cmf__pagination {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.sa-cmf__pagination[hidden] {
  display: none;
}

.sa-cmf__page-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f0f0f0;
  color: #111111;
  cursor: pointer;
}

.sa-cmf__page-button:hover:not(:disabled) {
  background: #111111;
  color: #ffffff;
}

.sa-cmf__page-button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.sa-cmf__page-button:disabled {
  color: #b7b7b7;
  cursor: default;
}

.sa-cmf__page-button svg {
  width: 18px;
  height: 18px;
}

.sa-cmf__page-status {
  min-width: 54px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: #8a8a8a;
  font-size: 12px;
}

.sa-cmf__page-status strong {
  color: #111111;
  font-size: 14px;
}

.sa-cmf__controls {
  padding: 18px 0 0;
  border: 0;
}

.sa-cmf__seg.filter-bar {
  width: auto;
  min-height: 52px;
  padding: 5px;
  border-radius: 10px;
  background: rgb(240, 240, 240);
}

.sa-cmf__seg .filter-option {
  min-width: 70px;
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: rgb(250, 250, 250);
  color: #111111;
}

.sa-cmf__seg .filter-option.is-active {
  color: #ffffff;
  background: #111111;
}

.sa-cmf__preview {
  height: var(--sa-cmf-viewport-height);
  max-height: var(--sa-cmf-viewport-height);
  aspect-ratio: auto;
  border-color: rgba(17, 17, 17, 0.08);
  background: #ffffff;
}

.sa-cmf__info {
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.04), 0 12px 36px rgba(0, 0, 0, 0.06);
}

.sa-cmf__category {
  align-self: start;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #f0f0f0;
  color: #111111;
  font-size: 12px;
  font-weight: 500;
}

.sa-cmf__chips {
  border: 0;
  gap: 14px 24px;
}

.sa-cmf__chip,
.sa-cmf__chip:nth-child(odd) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.sa-cmf__chip em {
  color: #999999;
  font-size: 11px;
}

.sa-cmf__chip strong {
  color: #222222;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.sa-cmf__apps,
.sa-cmf__meta {
  margin: 0;
  padding: 0;
  border: 0;
}

.sa-cmf__apps {
  color: #666666;
}

.sa-cmf__meta {
  gap: 12px 28px;
}

@media (max-width: 900px) {
  .sa-cmf__layout {
    --sa-cmf-viewport-height: 460px;
  }
}

@media (max-width: 640px) {
  .sa-cmf__toolbar.filter-bar {
    display: flex;
    flex-wrap: nowrap;
    min-height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sa-cmf__filters {
    display: contents;
  }

  .sa-cmf__result {
    flex-shrink: 0;
  }

  .sa-cmf__layout {
    --sa-cmf-viewport-height: 380px;
  }

  .sa-cmf__grid {
    overflow-y: hidden;
    padding: 1px;
  }

  .sa-cmf__info {
    padding: 20px;
    border-radius: 12px;
  }
}

/* ============================================
   CMF Studio v12：预览内嵌控制与半高信息抽屉
   ============================================ */
.sa-cmf__detail {
  height: var(--sa-cmf-viewport-height);
  gap: 0;
}

.sa-cmf__preview {
  --sa-cmf-preview-inset: 16px;
  box-sizing: border-box;
  isolation: isolate;
  padding: var(--sa-cmf-preview-inset);
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

.sa-cmf__stage {
  position: absolute;
  z-index: 1;
  top: 88px;
  right: var(--sa-cmf-preview-inset);
  bottom: 82px;
  left: var(--sa-cmf-preview-inset);
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
}

.sa-cmf__stage .sa-cmf__canvas {
  inset: 0;
  width: 100%;
  height: 100%;
}

.sa-cmf__preview > .sa-cmf__controls {
  position: absolute;
  z-index: 6;
  top: var(--sa-cmf-preview-inset);
  right: var(--sa-cmf-preview-inset);
  left: var(--sa-cmf-preview-inset);
  min-height: 60px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sa-cmf__preview > .sa-cmf__controls--colors-only {
  justify-content: flex-end;
}

.sa-cmf__preview .sa-cmf__control-group {
  gap: 6px;
}

.sa-cmf__preview .sa-cmf__control-label {
  color: #717678;
  font-size: 9px;
}

.sa-cmf__preview .sa-cmf__seg.filter-bar {
  --filter-control-height: 30px;
  height: 36px !important;
  min-height: 36px;
  max-height: 36px;
  padding: 3px;
  border-radius: 8px;
}

.sa-cmf__preview .sa-cmf__seg .filter-option {
  min-width: 58px;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11px;
}

.sa-cmf__preview .sa-cmf__swatches {
  min-height: 32px;
  gap: 8px;
}

.sa-cmf__preview .sa-cmf__swatch {
  width: 28px;
  height: 28px;
}

.sa-cmf__preview-label {
  z-index: 5;
  top: 94px;
  right: 24px;
  left: auto;
  padding: 7px 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sa-cmf__preview-fallback {
  z-index: 2;
  top: 88px;
  right: var(--sa-cmf-preview-inset);
  bottom: 82px;
  left: var(--sa-cmf-preview-inset);
}

.sa-cmf__preview-hint {
  z-index: 5;
  right: 24px;
  bottom: 88px;
}

.sa-cmf__drawer {
  position: absolute;
  z-index: 8;
  right: var(--sa-cmf-preview-inset);
  bottom: var(--sa-cmf-preview-inset);
  left: var(--sa-cmf-preview-inset);
  height: 58px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
}

.sa-cmf__drawer:hover,
.sa-cmf__drawer:focus-within,
.sa-cmf__drawer.is-open {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
}

.sa-cmf__drawer.is-open {
  height: 50%;
  box-shadow: none;
}

.sa-cmf__drawer-toggle {
  width: 100%;
  height: 57px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #171a1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.sa-cmf__drawer-toggle:focus-visible {
  outline: 2px solid #111111;
  outline-offset: -3px;
}

.sa-cmf__drawer-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.sa-cmf__drawer .sa-cmf__category {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 0;
  padding: 0 9px;
}

.sa-cmf__drawer .sa-cmf__name {
  grid-column: 2;
  grid-row: 1;
  display: block;
  overflow: hidden;
  color: #171a1b;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-cmf__drawer .sa-cmf__en {
  grid-column: 2;
  grid-row: 2;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-cmf__drawer-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 0.24s ease;
}

.sa-cmf__drawer.is-open .sa-cmf__drawer-icon {
  transform: rotate(180deg);
}

.sa-cmf__drawer-body {
  height: calc(100% - 58px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px 16px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.sa-cmf__drawer.is-open .sa-cmf__drawer-body {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.08s, 0s;
}

.sa-cmf__drawer .sa-cmf__info {
  gap: 14px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sa-cmf__drawer .sa-cmf__desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.65;
}

.sa-cmf__drawer .sa-cmf__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
}

.sa-cmf__engineering {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.sa-cmf__engineering-item {
  min-width: 0;
}

.sa-cmf__engineering-item--wide {
  grid-column: 1 / -1;
}

.sa-cmf__engineering dt {
  margin: 0 0 4px;
  color: #999999;
  font-size: 11px;
  font-weight: 400;
}

.sa-cmf__engineering dd {
  margin: 0;
  color: #333333;
  font-size: 12px;
  line-height: 1.65;
}

.sa-cmf__drawer .sa-cmf__meta {
  display: grid;
  grid-template-columns: 0.7fr 0.9fr 2fr;
  gap: 12px 18px;
}

.sa-cmf__drawer .sa-cmf__meta-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sa-cmf__drawer .sa-cmf__meta-item strong {
  margin-left: 0;
  letter-spacing: 0;
  line-height: 1.55;
}

/* 透明材料固定黑色摄影棚：只切换视窗底色，滚轮缩放仍仅作用于模型相机。 */
.sa-cmf__preview.is-transparent,
.sa-cmf__preview.is-transparent .sa-cmf__stage,
.sa-cmf__preview.is-transparent .sa-cmf__preview-fallback {
  background: #050505;
}

.sa-cmf__preview.is-transparent {
  border-color: #050505;
}

.sa-cmf__preview.is-transparent .sa-cmf__preview-label {
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
}

.sa-cmf__preview.is-transparent > .sa-cmf__controls {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.sa-cmf__preview.is-transparent .sa-cmf__control-label,
.sa-cmf__preview.is-transparent .sa-cmf__fallback-name,
.sa-cmf__preview.is-transparent .sa-cmf__fallback-note {
  color: rgba(255, 255, 255, 0.74);
}

.sa-cmf__preview.is-transparent .sa-cmf__seg.filter-bar {
  background: #272727;
}

.sa-cmf__preview.is-transparent .sa-cmf__seg .filter-option {
  background: #343434;
  color: #ffffff;
}

.sa-cmf__preview.is-transparent .sa-cmf__seg .filter-option.is-active {
  background: #ffffff;
  color: #111111;
}

.sa-cmf__preview.is-transparent .sa-cmf__drawer:not(:hover):not(:focus-within):not(.is-open) .sa-cmf__name,
.sa-cmf__preview.is-transparent .sa-cmf__drawer:not(:hover):not(:focus-within):not(.is-open) .sa-cmf__en,
.sa-cmf__preview.is-transparent .sa-cmf__drawer:not(:hover):not(:focus-within):not(.is-open) .sa-cmf__drawer-icon {
  color: #ffffff;
}

.sa-cmf__preview.is-transparent .sa-cmf__drawer:not(:hover):not(:focus-within):not(.is-open) .sa-cmf__category {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .sa-cmf__preview {
    --sa-cmf-preview-inset: 12px;
  }

  .sa-cmf__stage,
  .sa-cmf__preview-fallback {
    top: 82px;
    bottom: 76px;
  }

  .sa-cmf__engineering {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-cmf__engineering-item--wide {
    grid-column: 1 / -1;
  }

  .sa-cmf__drawer .sa-cmf__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-cmf__drawer .sa-cmf__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-cmf__drawer .sa-cmf__meta-item:last-child {
    grid-column: 1 / -1;
  }

  .sa-cmf__preview > .sa-cmf__controls {
    min-height: 58px;
    padding: 8px;
    gap: 10px;
  }

  .sa-cmf__preview .sa-cmf__seg .filter-option {
    min-width: 50px;
    padding: 0 9px;
  }

  .sa-cmf__preview .sa-cmf__swatches {
    gap: 6px;
  }

  .sa-cmf__preview .sa-cmf__swatch {
    width: 24px;
    height: 24px;
  }

  .sa-cmf__preview-label {
    top: 88px;
    right: 18px;
  }

  .sa-cmf__preview-hint {
    right: 18px;
    bottom: 82px;
  }

  .sa-cmf__drawer .sa-cmf__info {
    padding: 0;
  }
}
