/* 5LAOBAN-1781「DTP 模块轮播」样式（脚本见 showcase.js），放在首页首屏与「企业经营全景」之间（仁洲 10-27 选的摆法 B）。
   风格照仁洲给的参考视频：左边大标题逐模块翻动、中间玻璃立体主体、右边数据卡、菱形切换钮，整块背景随模块变色。
   类名、变量名一律 mt- 开头：首页原有样式已用 sc- 开头（产品演示场景），曾撞名串样式，见 tests/test_site_home_1781.py。
   系统开了「减少动态效果」时只换内容不做动画。 */

@property --mt-c1 { syntax: "<color>"; inherits: true; initial-value: #3b6bff; }
@property --mt-c2 { syntax: "<color>"; inherits: true; initial-value: #22b8ff; }
@property --mt-c3 { syntax: "<color>"; inherits: true; initial-value: #9fe3ff; }
@property --mt-bg { syntax: "<color>"; inherits: true; initial-value: #eef3ff; }
@property --mt-p { syntax: "<number>"; inherits: false; initial-value: 0; }

.mt {
  --mt-ink: #12152b;
  --mt-sub: rgba(18, 21, 43, .62);
  --mt-glass: rgba(255, 255, 255, .62);
  --mt-edge: rgba(255, 255, 255, .85);
  --mt-orb: clamp(190px, 16vw, 280px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(600px, calc(100svh - var(--header-height, 72px) - var(--contact-bar-height, 50px)));
  padding-block: clamp(20px, 4vh, 44px) clamp(14px, 2.4vh, 26px);
  color: var(--mt-ink);
  background: var(--mt-bg);
  transition: --mt-c1 .9s ease, --mt-c2 .9s ease, --mt-c3 .9s ease, --mt-bg .9s ease, color .6s ease;
}
.mt.is-dark {
  --mt-ink: #f3f4ff;
  --mt-sub: rgba(236, 238, 255, .66);
  --mt-glass: rgba(40, 34, 92, .55);
  --mt-edge: rgba(160, 150, 255, .28);
}
.mt *, .mt *::before, .mt *::after { box-sizing: border-box; }
.mt p { margin: 0; }

/* 背景：两团随模块变色的光 ＋ 点阵 */
.mt-bgfx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: mt-drift 16s ease-in-out infinite alternate;
}
.mt-blob.b1 { width: 52%; aspect-ratio: 1; right: 4%; top: -18%; background: var(--mt-c1); }
.mt-blob.b2 { width: 38%; aspect-ratio: 1; right: 30%; bottom: -26%; background: var(--mt-c2); animation-delay: -6s; opacity: .4; }
.mt.is-dark .mt-blob { opacity: .5; }
.mt-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--mt-ink) 14%, transparent) 1px, transparent 1.4px) 0 0 / 24px 24px;
  -webkit-mask: radial-gradient(70% 70% at 60% 50%, #000, transparent);
  mask: radial-gradient(70% 70% at 60% 50%, #000, transparent);
}
@keyframes mt-drift { to { translate: -6% 8%; scale: 1.12; } }

.mt-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(220px, .62fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "copy stage panel" "copy tiles panel";
  align-items: center;
  column-gap: clamp(16px, 2.4vw, 40px);
  width: min(1320px, 100% - 2 * clamp(20px, 4vw, 64px));
  margin-inline: auto;
}
.mt-copy { grid-area: copy; }
.mt-stage { grid-area: stage; }
.mt-panel { grid-area: panel; }
.mt-tiles { grid-area: tiles; justify-self: center; }

/* 左：文案 */
.mt-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--mt-sub); }
.mt-h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .01em;
}
.mt-h2 em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--mt-c1), var(--mt-c2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-step {
  margin-top: clamp(16px, 2.6vh, 30px) !important;
  font: 600 12px/1 Inter, sans-serif;
  letter-spacing: .16em;
  color: var(--mt-sub);
}
.mt-step b { color: var(--mt-c1); font-weight: 700; }
.mt-title {
  display: grid;
  margin-top: 12px !important;
  padding-bottom: .06em;
  overflow: hidden;
  font-size: clamp(44px, 4.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.mt-tl { grid-area: 1 / 1; display: flex; flex-direction: column; }
.mt-t1 { font-weight: 330; }
.mt-t2 {
  font-weight: 750;
  background: linear-gradient(90deg, var(--mt-ink) 30%, var(--mt-c1) 75%, var(--mt-c2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mt-tl.is-in { animation: mt-roll-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.mt-tl.is-in .mt-t2 { animation: mt-roll-in .7s .08s cubic-bezier(.2, .8, .2, 1) both; }
.mt-tl.is-out { animation: mt-roll-out .55s cubic-bezier(.6, 0, .8, .4) both; }
@keyframes mt-roll-in { from { transform: translateY(60%); opacity: 0; filter: blur(6px); } }
@keyframes mt-roll-out { to { transform: translateY(-60%); opacity: 0; filter: blur(6px); } }

/* 参考视频里标题下那道斜纹 */
.mt-rule {
  height: 14px;
  width: min(360px, 90%);
  margin-top: 16px !important;
  background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--mt-ink) 70%, transparent) 0 1.6px, transparent 1.6px 7px);
  -webkit-mask: linear-gradient(90deg, #000 55%, transparent);
  mask: linear-gradient(90deg, #000 55%, transparent);
}
.mt-desc {
  margin-top: 14px !important;
  max-width: 30em;
  min-height: 3.4em;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  color: var(--mt-sub);
}
.mt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 22px 6px 6px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--mt-c1), var(--mt-c2));
  box-shadow: 0 14px 30px -12px var(--mt-c1);
  transition: transform .25s, box-shadow .25s;
}
.mt-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px var(--mt-c1); }
.mt-btn-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

/* 左下：三项数据＋斜纹进度（参考视频左下角） */
.mt-stats { display: flex; gap: clamp(18px, 2.6vw, 44px); margin-top: clamp(20px, 3.4vh, 34px); }
.mt-stat { display: grid; gap: 4px; min-width: 96px; animation: mt-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.mt-stat:nth-child(2) { animation-delay: .06s; } .mt-stat:nth-child(3) { animation-delay: .12s; }
.mt-stat b { font: 600 clamp(20px, 1.7vw, 26px)/1.1 Inter, "Noto Sans SC", sans-serif; }
.mt-stat small { font-size: 12px; color: var(--mt-sub); letter-spacing: .06em; }
.mt-hatch {
  position: relative;
  display: block;
  height: 10px;
  margin-top: 4px;
  background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--mt-ink) 22%, transparent) 0 1.4px, transparent 1.4px 5px);
}
.mt-hatch i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--r) * 100%);
  background: repeating-linear-gradient(115deg, var(--mt-c1) 0 1.6px, transparent 1.6px 5px);
  animation: mt-fill 1s .2s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes mt-fill { from { width: 0; } }

/* 中：玻璃主体 */
.mt-stage {
  --mt-rx: 0deg;
  --mt-ry: 0deg;
  position: relative;
  height: min(480px, 52vh);
  min-height: 320px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
/* 主体后面交叉的两条胶囊色带（参考视频机器人身后的色块） */
.mt-stage::before, .mt-stage::after {
  content: "";
  position: absolute;
  width: 32%;
  height: 80%;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--mt-c1), var(--mt-c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  opacity: .9;
  transform: rotate(-34deg) translateX(-30%);
}
.mt-stage::after {
  height: 70%;
  background: linear-gradient(200deg, var(--mt-c2), var(--mt-c3));
  opacity: .6;
  transform: rotate(34deg) translate(34%, -6%);
}
.mt-orb-wrap {
  position: relative;
  z-index: 2;
  transform: rotateX(var(--mt-rx)) rotateY(var(--mt-ry));
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  animation: mt-float 6s ease-in-out infinite;
}
@keyframes mt-float { 50% { translate: 0 -14px; } }
.mt-orb {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  width: var(--mt-orb);
  aspect-ratio: 1;
  border-radius: 30%;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .55), transparent 45%),
    radial-gradient(90% 90% at 85% 90%, var(--mt-c2), transparent 70%),
    radial-gradient(80% 80% at 10% 95%, var(--mt-c3), transparent 65%),
    linear-gradient(145deg, var(--mt-c1), var(--mt-c2));
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .7),
    inset 0 -18px 40px -10px rgba(0, 0, 0, .18),
    0 40px 70px -24px color-mix(in srgb, var(--mt-c1) 80%, transparent),
    0 0 0 1px rgba(255, 255, 255, .35);
  transform: rotate(-14deg) rotateX(10deg);
}
.mt-orb > * { transform: rotate(14deg); }
.mt-orb-gloss {
  position: absolute;
  inset: 6%;
  border-radius: 28%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) .8px, transparent 1.3px) 0 0 / 9px 9px;
  -webkit-mask: radial-gradient(70% 60% at 70% 75%, #000, transparent);
  mask: radial-gradient(70% 60% at 70% 75%, #000, transparent);
  opacity: .7;
  pointer-events: none;
}
.mt-orb-icon svg { display: block; width: calc(var(--mt-orb) * .16); height: auto; opacity: .95; }
.mt-orb-v { font: 700 calc(var(--mt-orb) * .19)/1 Inter, "Noto Sans SC", sans-serif; letter-spacing: -.02em; text-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.mt-orb-l { font-size: calc(var(--mt-orb) * .062); font-weight: 600; letter-spacing: .08em; opacity: .9; }
.mt-orb.is-swap { animation: mt-swap .62s cubic-bezier(.5, 0, .3, 1); }
@keyframes mt-swap {
  0% { transform: rotate(-14deg) rotateX(10deg); }
  45% { transform: rotate(-40deg) rotateX(10deg) rotateY(80deg) scale(.72); filter: brightness(1.25); }
  100% { transform: rotate(-14deg) rotateX(10deg); }
}
/* 主体下方一串点（参考视频手表下方的光点） */
.mt-trail {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(50% + var(--mt-orb) * .42);
  display: grid;
  gap: 9px;
  transform: rotate(-24deg);
  transform-origin: top center;
}
.mt-trail i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mt-c1);
  opacity: 0;
  animation: mt-dot 2.4s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * .1s);
}
.mt-trail i:nth-child(odd) { margin-left: 12px; }
.mt-trail i:nth-child(3n) { margin-left: -10px; background: var(--mt-c2); }
@keyframes mt-dot { 0%, 100% { opacity: 0; transform: scale(.4); } 40% { opacity: .85; transform: scale(1); } }
.mt-floor {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 6%;
  width: calc(var(--mt-orb) * 1.1);
  height: 26px;
  border-radius: 50%;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mt-c1) 45%, transparent), transparent);
  filter: blur(6px);
  animation: mt-shadow 6s ease-in-out infinite;
}
@keyframes mt-shadow { 50% { scale: .82; opacity: .7; } }
.mt-spark {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--mt-c2) 45%, var(--mt-c1));
  box-shadow: 0 10px 22px -8px var(--mt-c1);
  animation: mt-bob 7s ease-in-out infinite;
}
.mt-spark.s1 { width: 34px; height: 34px; left: 12%; top: 22%; }
.mt-spark.s2 { width: 18px; height: 18px; right: 14%; top: 14%; animation-delay: -2s; }
.mt-spark.s3 { width: 24px; height: 24px; right: 10%; bottom: 20%; animation-delay: -4s; background: radial-gradient(circle at 30% 30%, #fff, var(--mt-c3) 45%, var(--mt-c2)); }
@keyframes mt-bob { 50% { translate: 6px -18px; } }

/* 右：数据卡 */
.mt-panel {
  align-self: center;
  padding: 22px 22px 18px;
  border-radius: 26px;
  background: var(--mt-glass);
  box-shadow: inset 0 0 0 1px var(--mt-edge), 0 30px 60px -30px rgba(20, 30, 90, .35);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.mt-panel.is-in > * { animation: mt-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.mt-panel.is-in > :nth-child(2) { animation-delay: .06s; }
.mt-panel.is-in > :nth-child(3) { animation-delay: .12s; }
@keyframes mt-up { from { transform: translateY(14px); opacity: 0; } }
.mt-pv { display: flex; align-items: flex-start; gap: 4px; }
.mt-pv b { font: 600 clamp(38px, 3.4vw, 54px)/1 Inter, "Noto Sans SC", sans-serif; letter-spacing: -.03em; }
.mt-pv sup { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--mt-sub); }
.mt-pl { margin-top: 8px !important; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--mt-sub); }
.mt-pl::before { content: "+ "; color: var(--mt-c1); }
.mt-chart { display: grid; align-items: end; height: 96px; margin-top: 18px; }
.mt-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mt-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--mt-c1), var(--mt-c2));
  transform-origin: bottom;
  animation: mt-grow .8s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--k, 0) * .05s);
}
@keyframes mt-grow { from { transform: scaleY(0); } }
.mt-ring { justify-self: start; width: 96px; height: 96px; transform: rotate(-90deg); }
.mt-ring circle { fill: none; stroke: color-mix(in srgb, var(--mt-ink) 10%, transparent); stroke-width: 9; }
.mt-ring .mt-ring-v { stroke: var(--mt-c1); stroke-linecap: round; animation: mt-ring 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mt-ring { from { stroke-dasharray: 0 214; } }
.mt-steps { display: grid; gap: 8px; align-self: center; margin: 0; padding: 0; list-style: none; }
.mt-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--mt-sub); }
.mt-steps li i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mt-ink) 20%, transparent); }
.mt-steps li.is-done { color: var(--mt-ink); }
.mt-steps li.is-done i { background: linear-gradient(135deg, var(--mt-c1), var(--mt-c2)); box-shadow: none; }
.mt-wave, .mt-line { width: 100%; height: 90px; overflow: visible; }
.mt-wave path, .mt-line polyline {
  fill: none;
  stroke: var(--mt-c2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  animation: mt-draw 1.4s cubic-bezier(.2, .8, .2, 1) both;
  filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--mt-c2) 60%, transparent));
}
.mt-line .mt-line-fill { stroke: none; fill: color-mix(in srgb, var(--mt-c1) 22%, transparent); filter: none; animation: mt-fade 1.2s .3s both; }
@keyframes mt-draw { from { stroke-dashoffset: 400; } }
@keyframes mt-fade { from { opacity: 0; } }
.mt-arrows { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px !important; }
.mt-arrows button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  font: 600 14px/1 Inter, sans-serif;
  color: var(--mt-ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mt-ink) 22%, transparent);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mt-arrows button:hover, .mt-arrows button:focus-visible { color: #fff; background: var(--mt-c1); box-shadow: none; outline: none; }

/* 主体下方：菱形切换钮 */
.mt-tiles { display: flex; align-items: center; gap: 18px; padding: 10px 10px 4px; }
.mt-tile {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  rotate: 45deg;
  cursor: pointer;
  color: var(--mt-ink);
  background: var(--mt-glass);
  box-shadow: inset 0 0 0 1px var(--mt-edge), 0 10px 22px -12px rgba(20, 30, 90, .4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: scale .35s cubic-bezier(.2, .8, .2, 1), background .35s, color .35s, box-shadow .35s;
}
.mt-tile span { display: block; rotate: -45deg; font: 700 11px/1 Inter, sans-serif; letter-spacing: .04em; }
.mt-tile:hover { scale: 1.08; }
.mt-tile:focus-visible { outline: 2px solid var(--mt-c1); outline-offset: 4px; }
.mt-tile.is-on {
  scale: 1.28;
  color: #fff;
  background: linear-gradient(135deg, var(--tc1), var(--tc2));
  box-shadow: 0 14px 28px -10px var(--tc1), inset 0 1px 1px rgba(255, 255, 255, .6);
}
/* 自动轮播倒计时：当前钮外圈描一圈 */
.mt-tile::after {
  content: "";
  position: absolute;
  inset: -6px;
  padding: 2px;
  border-radius: 17px;
  background: conic-gradient(var(--tc1) calc(var(--mt-p, 0) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
}
.mt-tile.is-timing::after { opacity: .9; animation: mt-timer var(--mt-dur, 5200ms) linear both; }
@keyframes mt-timer { from { --mt-p: 0; } to { --mt-p: 1; } }
.mt-demo {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  top: clamp(20px, 4vh, 44px);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--mt-sub);
  background: var(--mt-glass);
  box-shadow: inset 0 0 0 1px var(--mt-edge);
}

@media (max-width: 1100px) {
  .mt-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy stage" "copy tiles"; }
  .mt-panel { display: none; }
}
@media (max-width: 760px) {
  .mt { --mt-orb: 150px; min-height: 0; padding-block: 28px; }
  .mt-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "stage" "tiles" "copy"; }
  .mt-stage { height: 250px; min-height: 0; }
  .mt-tiles { gap: 14px; margin-bottom: 26px; }
  .mt-title { font-size: 44px; }
  .mt-stats { gap: 18px; }
  .mt-stat { min-width: 0; }
  .mt-demo { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt { transition: none; }
  .mt-blob, .mt-orb-wrap, .mt-trail i, .mt-floor, .mt-spark, .mt-bars i, .mt-ring .mt-ring-v,
  .mt-wave path, .mt-line polyline, .mt-stat, .mt-hatch i, .mt-panel.is-in > *, .mt-tl.is-in, .mt-tl.is-in .mt-t2, .mt-orb.is-swap { animation: none; }
  .mt-trail i { opacity: .5; }
  .mt-tile::after { display: none; }
}
