/* =========================================================
   平台总览页首幕 · MasterGo 风格改版（v1）
   作用域：全部规则锁在 body.platform-overview 的 .mg-hero 内，
   不影响其它页面；本文件只被 platforms/index.html 引用。
   ========================================================= */

/* 导航字号已统一到 assets/site.css（全站 14px，对齐首页），此处不再单独覆盖 */
/* ---------- 首幕容器 ---------- */
body.platform-overview .mg-hero{
  position:relative;
  min-height:100svh;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(58% 46% at 50% 62%, rgba(28,72,170,.30) 0%, rgba(16,44,125,.12) 45%, transparent 72%),
    radial-gradient(34% 30% at 12% 8%,  rgba(32,66,150,.12) 0%, transparent 65%),
    radial-gradient(30% 26% at 88% 10%, rgba(26,66,150,.15) 0%, transparent 65%),
    radial-gradient(40% 34% at 84% 88%, rgba(12,64,115,.09) 0%, transparent 70%),
    linear-gradient(180deg,#050d15 0%, #030b13 46%, #02060a 100%);
}
/* 底部渐隐进下一幕 */
body.platform-overview .mg-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:120px;
  background:linear-gradient(180deg,transparent,rgba(3,6,10,.92));
  pointer-events:none;z-index:2;
}
/* 细网格质感 */
body.platform-overview .mg-hero-grid{
  position:absolute;inset:0;opacity:.05;pointer-events:none;z-index:0;
  background-image:
    linear-gradient(rgba(120,170,255,.5) 1px,transparent 1px),
    linear-gradient(90deg,rgba(120,170,255,.5) 1px,transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(60% 55% at 50% 55%,#000 30%,transparent 75%);
  mask-image:radial-gradient(60% 55% at 50% 55%,#000 30%,transparent 75%);
}

/* ---------- 中央内容 ---------- */
body.platform-overview .mg-stage{
  position:relative;width:min(1100px,92vw);text-align:center;z-index:3;
  padding:calc(72px + 40px) 0 60px;
}
body.platform-overview .mg-title{
  position:relative;z-index:3;font-weight:800;line-height:1.18;letter-spacing:.02em;margin:0;
}
body.platform-overview .mg-title .l1{
  display:block;font-size:clamp(30px,3.6vw,52px);font-weight:700;color:rgba(255,255,255,.94);
}
body.platform-overview .mg-title .l2{
  display:block;font-size:clamp(44px,5.6vw,84px);font-weight:900;margin-top:.12em;
  background:linear-gradient(180deg,#ffffff 55%,#bcd6ff);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
body.platform-overview .mg-sub{
  position:relative;z-index:3;margin-top:26px;
  font-size:clamp(15px,1.35vw,19px);color:rgba(255,255,255,.72);letter-spacing:.12em;
}
body.platform-overview .mg-cta{
  position:relative;z-index:3;display:inline-flex;align-items:center;gap:10px;margin-top:40px;
  color:#fff;text-decoration:none;font-size:17px;font-weight:600;letter-spacing:.04em;
  background:linear-gradient(135deg,#3f83ff 0%,#2153f2 100%);
  padding:15px 44px;border-radius:999px;
  box-shadow:0 10px 34px rgba(40,90,255,.45),inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .3s,box-shadow .3s,filter .3s;
}
body.platform-overview .mg-cta:hover{transform:translateY(-3px);filter:brightness(1.1);box-shadow:0 16px 44px rgba(40,90,255,.6)}
body.platform-overview .mg-cta .arr{transition:transform .3s}
body.platform-overview .mg-cta:hover .arr{transform:translateX(5px)}

/* ---------- 轨道 ---------- */
body.platform-overview .mg-orbit{
  position:absolute;left:50%;top:44%;z-index:2;width:0;height:0;pointer-events:none;
}
body.platform-overview .mg-orbit svg{position:absolute;overflow:visible}
body.platform-overview .mg-ring-ellipse{fill:none;stroke:url(#mgRingGrad);stroke-width:2.5}
body.platform-overview .mg-ring-glow{fill:none;stroke:url(#mgRingGrad);stroke-width:7;filter:blur(6px);opacity:.55}
body.platform-overview .mg-ring-dash{fill:none;stroke:rgba(150,200,255,.9);stroke-width:2.5;stroke-dasharray:90 1600;filter:blur(.4px)}

/* 纸飞机 */
body.platform-overview .mg-plane{position:absolute;pointer-events:none;will-change:transform}
body.platform-overview .mg-plane svg{display:block;filter:drop-shadow(0 0 14px rgba(80,140,255,.55))}
body.platform-overview .mg-plane-orange svg{filter:drop-shadow(0 0 10px rgba(255,150,60,.5))}
@keyframes mgFloaty{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-12px) rotate(3deg)}}
/* 浮动动画挂内层 svg，避免覆盖外层 JS 定位 transform */
body.platform-overview .mg-plane-big svg{animation:mgFloaty 5.2s ease-in-out infinite}
body.platform-overview .mg-plane-orange svg{animation:mgFloaty 4.1s ease-in-out .8s infinite}

/* ---------- 入场动效（有脚本才隐藏，兜底可见） ---------- */
html.js body.platform-overview .mg-rise{opacity:0;transform:translateY(34px)}
html.js.armed body.platform-overview .mg-rise{
  opacity:1;transform:none;
  transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);
}
html.js.armed body.platform-overview .mg-rise.d1{transition-delay:.1s}
html.js.armed body.platform-overview .mg-rise.d2{transition-delay:.24s}
html.js.armed body.platform-overview .mg-rise.d3{transition-delay:.4s}
html.js.armed body.platform-overview .mg-rise.d4{transition-delay:.55s}
html.js body.platform-overview .mg-orbit{opacity:0;transform:scale(.86)}
html.js.armed body.platform-overview .mg-orbit{opacity:1;transform:none;transition:opacity 1.2s .35s,transform 1.2s .35s cubic-bezier(.2,.7,.2,1)}

/* ---------- 响应式 ---------- */
@media (max-width:780px){
  body.platform-overview .mg-stage{padding-top:calc(64px + 28px)}
  body.platform-overview .mg-cta{padding:13px 34px;font-size:16px}
  body.platform-overview .mg-sub{letter-spacing:.06em}
  /* 小屏：环变小，飞机同步缩小避免压住文字 */
  body.platform-overview .mg-plane-big svg{width:44px;height:44px}
  body.platform-overview .mg-plane-orange svg{width:24px;height:24px}
}
@media (prefers-reduced-motion:reduce){
  body.platform-overview .mg-plane svg{animation:none!important}
  html.js body.platform-overview .mg-rise,
  html.js body.platform-overview .mg-orbit{opacity:1;transform:none;transition:none!important}
}
