/* ============================================================
   设备模型和动画 · services/model.html 专用样式
   接在 aw.css 之后，只用 aw.css 已有的 token（--pad / --sec-gap /
   --r-card / --r-media / --accent / --violet / --ease …），不另起色板。

   这一页的主视觉全是公司自己的三维动画成片（assets/video/model/），
   所以版式让位给画面：深色舞台放片子、浅底大留白放字，一屏一件事。
   彩色只在爆点上出现（青柠圆点 / 紫罗兰高亮词 / 章节序号）。
   ============================================================ */

/* ------------------------------------------------------------
   首屏 · 满屏视频（片源是「磨粉机爆炸开又合上」的无缝往返循环）
   结构照 aw.css 的 .hero 抄了一份，但文案居中偏左、字阶更大，
   而且要在自己的 CSS 里点亮顶栏磨砂底（.hero 那条 :has 只命中首页）。
   ------------------------------------------------------------ */
.mv-hero {
  position: relative;
  margin-top: calc(-1 * (var(--header-h) + 8px));
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0e1014;
  isolation: isolate;
}

.mv-hero__media { position: absolute; inset: 0; z-index: 0; }
.mv-hero__media img,
.mv-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
}
.mv-hero__poster { transition: opacity 0.8s var(--ease); }
.mv-hero.is-playing .mv-hero__poster { opacity: 0; }
.mv-hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease); }
.mv-hero.is-playing .mv-hero__video { opacity: 1; }

/* 片子本身是中灰演播室背景，白字直接压上去只有 2.5:1。
   压暗分四层：左下文案暗袋 / 顶栏收边 / 底边收边 / 整屏薄压。
   实测合成后文案最暗处 Y≈62（白字对比度 9:1），画面右上仍是片子原样。 */
.mv-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 78% 76% at 2% 74%,
      rgba(8, 10, 14, 0.72) 0%,
      rgba(8, 10, 14, 0.56) 38%,
      rgba(8, 10, 14, 0.2) 70%,
      rgba(8, 10, 14, 0) 88%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.42) 0%, rgba(8, 10, 14, 0) 24%),
    linear-gradient(0deg, rgba(8, 10, 14, 0.46) 0%, rgba(8, 10, 14, 0) 42%),
    linear-gradient(rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.12));
}

.mv-hero__inner {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(56px, 9vh, 108px);
  color: #fff;
}

.mv-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.74);
}
.mv-hero__eyebrow .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

/* 巨标：中文方块字在这个字号下要收字距，行高压到 1.02 才立得住 */
.mv-hero__title {
  font-size: clamp(46px, 8.2vw, 132px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 60px rgba(8, 10, 14, 0.4);
  max-width: 14ch;
}

.mv-hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.mv-hero__acts {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.mv-hero__acts .link-underlined { color: rgba(255, 255, 255, 0.86); }
.mv-hero__acts .link-underlined:hover { color: #fff; }

/* 右下角一行「正在播放」：告诉访客这不是买来的素材，是自己的成片 */
.mv-hero__now {
  position: absolute;
  /* 右边留出 88px：右下角浮着 chat.js 的 AI 助手，压在一起就看不清了 */
  right: calc(var(--pad) + 88px);
  bottom: clamp(56px, 9vh, 108px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}
.mv-hero__now i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: mv-live 2.4s var(--ease) infinite;
}
@keyframes mv-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* 顶栏：深色首屏下墨色菜单字读不出来，让磨砂底在页顶就亮着。
   :has(.mv-hero) 只命中这一页，其它页顶栏行为不变。 */
body:has(.mv-hero) .header-main::before { opacity: 1; top: -8px; }

@media (max-width: 1000px) {
  .mv-hero__title { max-width: 11ch; }
  .mv-hero__now { display: none; }
}
@media (max-width: 760px) {
  .mv-hero { height: 90svh; }
  .mv-hero__sub { font-size: 15px; }
  /* 窄屏文案几乎顶满整行宽，左侧那个椭圆暗袋的横向衰减刚好落在字上，
     所以换成一条横向铺满、纵向罩住文案的带子（跟首页 .hero__scrim 一个路数） */
  .mv-hero__scrim {
    background:
      linear-gradient(0deg,
        rgba(8, 10, 14, 0.82) 0%,
        rgba(8, 10, 14, 0.7) 34%,
        rgba(8, 10, 14, 0.34) 62%,
        rgba(8, 10, 14, 0) 84%),
      linear-gradient(180deg, rgba(8, 10, 14, 0.4) 0%, rgba(8, 10, 14, 0) 20%);
  }
  /* 引题第三段（建模·渲染·动画）在 375 上会挤成两行，收掉 */
  .mv-hero__eyebrow > :nth-child(4),
  .mv-hero__eyebrow > :nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-hero__poster, .mv-hero__video { transition: none; }
  .mv-hero__now i { animation: none; }
}

/* 本页的大字导语比 aw.css 默认的 22ch 宽一档：
   「设备的价值，八成藏在壳子里。」14 个汉字，22ch 会把最后两个字挤成孤行 */
.lede--wide { max-width: 34ch; }

/* ------------------------------------------------------------
   01 · 说不清楚的成本（浅底三栏）
   ------------------------------------------------------------ */
.mv-pain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.mv-pain__c {
  padding: 30px 28px 34px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.mv-pain__q {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.mv-pain__c p { font-size: 15px; line-height: 26px; color: var(--mut); }
.mv-pain__c p + p { margin-top: 10px; }

.mv-turn {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 0.5px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mv-turn__i {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}
.mv-turn__i i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.mv-turn__i:nth-child(2) i { background: var(--violet); }
.mv-turn__i b { font-weight: 500; }

@media (max-width: 900px) {
  .mv-pain, .mv-turn { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------
   02 · 六种表达方式（章节：一块大画面 + 一列文字，左右交替）
   画面是 16:9 的静音循环，进视口才播，离开就暂停（model.js）。

   ⚠️ 画框叫 __view 不叫 __media：fx.js 会把类名含 __media / __cover / __pic /
   __fig / __shot 的图框自动套上 .fx-mask，那层是 clip-path 裁切的，
   被裁的元素 IntersectionObserver 恒不相交（fx.js 里也写了这条），
   于是章节视频永远等不到「进视口」，既不下载也不播。改名就绕开了。
   首屏的 .mv-hero__media 保留原名——它在首屏，fx 的 rAF 兜底会立刻揭开，
   顺带得到一层自下而上抹开的入场。
   ------------------------------------------------------------ */
.mv-caps { margin-top: 64px; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 132px); }

.mv-cap {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.mv-cap:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); }
.mv-cap:nth-child(even) .mv-cap__view { order: 2; }

.mv-cap__view {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-media);
  overflow: hidden;
  background: #2b3138;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}
.mv-cap__view video,
.mv-cap__view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mv-cap__view video { opacity: 0; transition: opacity 0.6s var(--ease); }
.mv-cap__view.is-playing video { opacity: 1; }

/* 画面右下角的英文小标签，像片子里的镜头号 */
.mv-cap__stamp {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.mv-cap__n {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mut-2);
  margin-bottom: 14px;
}
.mv-cap__t {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.mv-cap__t small {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mut-2);
  text-transform: uppercase;
}
.mv-cap__say {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.012em;
}
.mv-cap__p { margin-top: 12px; font-size: 15px; line-height: 27px; color: var(--mut); max-width: 40ch; }
.mv-cap__p b { font-weight: 500; color: var(--ink); }

.mv-cap__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mv-cap__tags span {
  font-size: 12.5px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--mut);
  box-shadow: inset 0 0 0 0.5px var(--line);
}

@media (max-width: 980px) {
  .mv-cap,
  .mv-cap:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mv-cap:nth-child(even) .mv-cap__view { order: 0; }
  .mv-cap__p { max-width: none; }
}

/* ------------------------------------------------------------
   03 · 完整作品（深色舞台 · 点开带声音看）
   ------------------------------------------------------------ */
.mv-stage {
  margin-top: var(--sec-gap);
  padding: clamp(64px, 8vw, 118px) 0 clamp(64px, 8vw, 118px);
  background: #0e1014;
  color: #fff;
}
.mv-stage .sec__label { color: rgba(255, 255, 255, 0.56); }
.mv-stage .display { color: #fff; }
.mv-stage__lead {
  max-width: 44ch;
  margin-top: 4px;
  font-size: 17px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.68);
}

.mv-films { margin-top: 52px; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }

.mv-film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-media);
  overflow: hidden;
  background: #16191f;
}
.mv-film__frame img,
.mv-film__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-film__frame video { opacity: 0; transition: opacity 0.5s var(--ease); }
.mv-film.is-on .mv-film__frame video { opacity: 1; }
.mv-film.is-on .mv-film__frame img { opacity: 0; transition: opacity 0.5s var(--ease); }

.mv-film__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(8, 10, 14, 0.24) 0%, rgba(8, 10, 14, 0) 70%),
    linear-gradient(0deg, rgba(8, 10, 14, 0.34) 0%, rgba(8, 10, 14, 0) 46%);
  transition: opacity 0.4s var(--ease);
  cursor: pointer;
}
.mv-film.is-on .mv-film__play { opacity: 0; pointer-events: none; }

.mv-film__btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 15px 26px 15px 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.mv-film__play:hover .mv-film__btn { transform: scale(1.045); background: #fff; }
.mv-film__btn svg { width: 15px; height: 17px; fill: currentColor; }

.mv-film__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.mv-film__t { font-size: clamp(20px, 1.9vw, 27px); font-weight: 600; letter-spacing: -0.018em; }
.mv-film__t em { font-style: normal; color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.mv-film__facts {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.52);
}
.mv-film__desc { margin-top: 12px; max-width: 62ch; font-size: 15px; line-height: 27px; color: rgba(255, 255, 255, 0.62); }
.mv-film__desc b { font-weight: 500; color: rgba(255, 255, 255, 0.92); }

/* ------------------------------------------------------------
   04 · 多元化的团队
   ------------------------------------------------------------ */
.mv-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: 52px;
  align-items: start;
}
.mv-team__p { font-size: 16px; line-height: 30px; color: var(--mut); max-width: 46ch; }
.mv-team__p + .mv-team__p { margin-top: 16px; }
.mv-team__p b { font-weight: 500; color: var(--ink); }

.mv-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mv-role {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: inset 0 0 0 0.5px var(--line);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.3s var(--ease);
}
.mv-role:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24); }
.mv-role small { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; color: var(--mut-2); }
.mv-role--on { background: var(--accent); box-shadow: none; }
.mv-role--on small { color: rgba(34, 34, 34, 0.62); }

@media (max-width: 900px) {
  .mv-team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .mv-roles { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------
   05 · 一套模型，处处复用
   ------------------------------------------------------------ */
.mv-use {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.mv-use__c {
  background: var(--ground);
  padding: 30px 26px 34px;
  transition: background 0.35s var(--ease);
}
.mv-use__c:hover { background: var(--card); }
.mv-use__c h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mv-use__c p { margin-top: 8px; font-size: 14px; line-height: 25px; color: var(--mut); }
.mv-use__c i {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin-bottom: 18px;
  opacity: 0.16;
}
.mv-use__c:nth-child(3n+1) i { background: var(--accent); opacity: 1; }
.mv-use__c:nth-child(3n+2) i { background: var(--violet); opacity: 1; }

@media (max-width: 900px) { .mv-use { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mv-use { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------
   06 · 从图纸到成片（六步横向时间轴）
   ------------------------------------------------------------ */
.mv-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.mv-step { position: relative; padding-top: 24px; }
.mv-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.mv-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.mv-step.is-in::after { width: 100%; }
.mv-step:last-child::after { background: var(--accent); }
.mv-step__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mut-2); }
.mv-step h3 { margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mv-step p { margin-top: 8px; font-size: 13.5px; line-height: 23px; color: var(--mut); }

@media (max-width: 1200px) { .mv-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 640px) { .mv-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .mv-step::after { transition: none; width: 100%; } }

/* ------------------------------------------------------------
   07 · 交付规格
   ------------------------------------------------------------ */
.mv-spec { margin-top: 52px; border-top: 0.5px solid var(--line); }
.mv-spec__r {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--line);
  align-items: baseline;
}
.mv-spec__k { font-size: 14px; font-weight: 500; }
.mv-spec__k small { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; color: var(--mut-2); }
.mv-spec__v { font-size: 15px; line-height: 27px; color: var(--mut); }
.mv-spec__v b { font-weight: 500; color: var(--ink); }
.mv-spec__note { margin-top: 22px; font-size: 13.5px; line-height: 24px; color: var(--mut-2); }

@media (max-width: 700px) {
  .mv-spec__r { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ------------------------------------------------------------
   08 · 与 HMI 合体（深色横幅 · 左片右字）
   ------------------------------------------------------------ */
.mv-tie {
  margin-top: var(--sec-gap);
  background: #0e1014;
  color: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}
.mv-tie__view { position: relative; min-height: 320px; }
.mv-tie__view video,
.mv-tie__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-tie__view video { opacity: 0; transition: opacity 0.6s var(--ease); }
.mv-tie__view.is-playing video { opacity: 1; }

.mv-tie__txt { padding: clamp(34px, 4.4vw, 68px); align-self: center; }
.mv-tie__txt .sec__label { color: rgba(255, 255, 255, 0.56); }
.mv-tie__txt h2 { margin-top: 10px; font-size: clamp(24px, 2.5vw, 38px); font-weight: 600; line-height: 1.24; letter-spacing: -0.022em; }
.mv-tie__txt p { margin-top: 16px; max-width: 40ch; font-size: 15px; line-height: 28px; color: rgba(255, 255, 255, 0.66); }
.mv-tie__txt p b { font-weight: 500; color: #fff; }
.mv-tie__txt .link-underlined { display: inline-block; margin-top: 24px; color: var(--accent); }
.mv-tie__txt .link-underlined:hover { color: var(--accent); }

@media (max-width: 900px) {
  .mv-tie { grid-template-columns: minmax(0, 1fr); }
  .mv-tie__view { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ------------------------------------------------------------
   深色区块里的滚动进场：aw.css 的 [data-reveal] 通用，不用重写
   ------------------------------------------------------------ */
.mv-stage .mv-film__frame,
.mv-cap__view { will-change: opacity; }

/* 英文版式：巨标的 -0.04em 是给汉字收的，英文还原 */
html[data-lang="en"] .mv-hero__title { letter-spacing: -0.02em; max-width: 18ch; }

/* ------------------------------------------------------------
   章节之间的满幅电影条（自动润滑那段粒子）
   不放在 .inner 里 —— 它要通到屏幕两边，只有说明文字对齐容器
   ------------------------------------------------------------ */
.mv-strip {
  position: relative;
  margin-top: var(--sec-gap);
  height: clamp(220px, 40vw, 520px);
  overflow: hidden;
  background: #0e1014;
}
.mv-strip video,
.mv-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-strip video { opacity: 0; transition: opacity 0.6s var(--ease); }
.mv-strip.is-playing video { opacity: 1; }
.mv-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.62) 0%, rgba(8, 10, 14, 0) 52%);
}
.mv-strip__cap {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  color: #fff;
}
.mv-strip__cap b { font-size: clamp(17px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.016em; }
.mv-strip__cap span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.58); }
