/* ─────────────────────────────────────────────────────────────
   Jevon Zhu · 站点入口
   方向：亮色产品页。Power BI 黄作签名色，一屏一站。
   ───────────────────────────────────────────────────────────── */

/* 拉丁字形自托管：单文件 24KB，只覆盖拉丁/数字子集，中日韩文字走系统字体 */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* 底色：白为主，两级浅底只差一点色温，靠明度分层而不是靠边框 */
  --bg: #ffffff;
  --soft: #f5f5f2;
  --lilac: #f3f2f7;

  /* 墨色：中性无偏色，白底对比度 7:1 以上；--muted 用于次级说明，--faint 只做装饰 */
  --ink: #141413;
  --ink-soft: #3d3d36;
  --muted: #57574f;
  --faint: #8a8a82;

  /* 品牌黄：只出现在动作与区块底，文字一律压深 */
  --accent: #f2c811;
  --accent-hover: #ffd633;
  --accent-ink: #1c1908;
  --on-accent: #3a341d;

  /* 深色区 */
  --dark: #111110;
  --dark-ink: #f5f5f2;
  --dark-muted: #b3b3aa;

  --gutter: 24px;
  --maxw: 1320px;
  --nav-h: 68px;
  --edge: max(0px, (100vw - var(--maxw)) / 2);
  --r: 20px;
  --r-control: 999px;

  /* 五级字号：巨、标题、导语、正文、辅助。没有第六级，模拟界面的小字另走 --fs-mini */
  --fs-display: clamp(3.25rem, 8vw, 7.25rem);
  --fs-head: clamp(2.125rem, 4.2vw, 4rem);
  --fs-lead: clamp(1.1875rem, 1.4vw, 1.375rem);
  --fs-body: 1.125rem;
  --fs-small: 0.875rem;
  --fs-mini: 0.8125rem;

  --lh-body: 1.72;
  --lh-lead: 1.68;

  /* 中文优先 macOS / 鸿蒙 / 小米 / Windows 各自的正文无衬线，拉丁字形统一走 Manrope */
  --latin: 'Manrope Variable', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  --cjk: 'Manrope Variable', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--cjk);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, figure, figcaption { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
picture { display: contents; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.closing :focus-visible { outline-color: var(--accent); }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-small);
}
.skip:focus { left: var(--gutter); top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── 导航 ─────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
  padding-inline: var(--gutter);
  background: var(--bg);
  transition: box-shadow 0.25s var(--ease);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(16, 16, 16, 0.07);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--latin);
  font-weight: 800;
  font-size: var(--fs-body);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-avatar {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }

.nav-links a.is-active { font-weight: 600; }

.nav-cta {
  padding: 9px 20px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-small);
  text-decoration: none;
  border-radius: var(--r-control);
  transition: background 0.2s var(--ease);
}

.nav-cta:hover { background: #2b2b28; }

.nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--progress, 0%);
  height: 3px;
  background: var(--accent);
}

/* 移动端菜单：汉堡按钮 + 抽屉，桌面端不出现 */

.nav-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 2px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.nav-toggle:hover { background: rgba(16, 16, 16, 0.06); }

.nav-toggle-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), translate 0.24s var(--ease);
}

.nav-toggle-bar:nth-child(1) { translate: 0 -4px; }
.nav-toggle-bar:nth-child(2) { translate: 0 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  translate: 0 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  translate: 0 0;
  transform: rotate(-45deg);
}

.nav-drawer { display: none; }

/* ── 首屏 ─────────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 96px 0 72px;
  overflow-x: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-text {
  grid-column: 1 / span 5;
  transform: translate3d(0, calc(var(--ho, 0) * -46px), 0);
}

.hero h1 {
  --ls: -0.02em;
  font-family: var(--cjk);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: var(--ls);
  text-wrap: balance;
}

/* 解码动效：单字锁定 1em 宽，乱跳的数字不会撑动排版。
   字间距改用 margin —— letter-spacing 不作用于 inline-block 之间 */
.decode .ch {
  display: inline-block;
  width: 1em;
  margin-right: var(--ls, 0);
  text-align: center;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.28s var(--ease), opacity 0.28s var(--ease);
}

.decode .ch.is-scrambling {
  color: var(--muted);
  opacity: 0.75;
}

.hero-sub {
  margin-top: 26px;
  max-width: 30em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--ink);
  color: #fff;
  font-family: var(--cjk);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-control);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn .arr {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 44px;
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.hero-stats dt,
.about-facts dt,
.panel-facts dt {
  font-size: var(--fs-small);
  color: var(--muted);
}

.hero-stats dd {
  margin-top: 0;
  font-family: var(--latin);
  font-size: var(--fs-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

/* 单位退一级：数字是主体，汉字只做注解，不跟数字抢同一档字号 */
.hero-stats dd .unit {
  margin-left: 0.1em;
  font-family: var(--cjk);
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 0.06em;
  color: var(--muted);
}

.hero-visual {
  grid-column: 6 / span 7;
  padding: 26px 26px 56px;
  background: var(--accent);
  border-radius: var(--r);
  perspective: 1200px;
}

.deck {
  position: relative;
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--sy, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.deck-card {
  --dx: clamp(34px, 4.5vw, 64px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86%;
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.deck-card--a img,
.deck-card--b img {
  filter: brightness(0.82) blur(1.4px);
}

.deck-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.deck-card--a {
  width: 78%;
  opacity: 0.92;
  transform: translate(-50%, -50%) translate3d(calc(var(--dx) * -1), 30px, -70px) rotate(-5deg);
}
.deck-card--b {
  width: 78%;
  opacity: 0.92;
  transform: translate(-50%, -50%) translate3d(var(--dx), 15px, -40px) rotate(5deg);
}
.deck-card--c { width: 90%; transform: translate(-50%, -50%) translate3d(0, 0, 10px); }

@media (hover: hover) {
  .hero-visual:hover .deck-card--a { transform: translate(-50%, -50%) translate3d(calc(var(--dx) * -1.2), 38px, -70px) rotate(-6deg); }
  .hero-visual:hover .deck-card--b { transform: translate(-50%, -50%) translate3d(calc(var(--dx) * 1.2), 19px, -40px) rotate(6deg); }
  .hero-visual:hover .deck-card--c { transform: translate(-50%, -50%) translate3d(0, 0, 24px); }
}

/* ── 站点屏 ───────────────────────────────────────────────── */

.panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 104px 0;
  scroll-margin-top: 68px;
  overflow: clip;
}

/* 三站各用一种纯色场地：黄、暖白、深紫。不用渐变，靠色本身分场 */
#site-ipowerbi {
  background: var(--accent);
}

#site-portfolio {
  background: #f4eef3;
}

#site-platform {
  color: var(--dark-ink);
  background: #130f1c;
}

/* 背景纹理层：文字与图片叠在同一场景里 */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#site-ipowerbi::after {
  background-image: repeating-linear-gradient(135deg, rgba(16, 16, 16, 0.035) 0 1px, transparent 1px 15px);
  mask-image: radial-gradient(90% 80% at 84% 16%, #000 5%, transparent 72%);
}

#site-portfolio::after {
  background-image: radial-gradient(rgba(16, 16, 16, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

#site-platform::after {
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(90% 90% at 50% 40%, #000 10%, transparent 85%);
}

.panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.panel-text {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 5;
}

.panel-visual {
  grid-column: 6 / span 7;
  border-radius: var(--r);
}

/* 视觉区向文字区收拢，让标题、后景卡与窗口叠在一起 */
.panel:not(.is-flipped) .panel-visual {
  margin-left: -56px;
  margin-right: calc(-1 * (var(--edge) + var(--gutter)));
}

.panel.is-flipped .panel-visual {
  margin-right: -56px;
  margin-left: calc(-1 * (var(--edge) + var(--gutter)));
}

.panel:not(.is-flipped) .stage { border-radius: var(--r) 0 0 var(--r); }
.panel.is-flipped .stage { border-radius: 0 var(--r) var(--r) 0; }

/* ── 站点舞台：浏览器窗口 · 分层卡片 · 扇形报表 ───────────── */

.stage {
  --mx: 0;
  --my: 0;
  --sp: 0;
  position: relative;
  display: block;
  overflow: visible;
  border-radius: var(--r);
  text-decoration: none;
  isolation: isolate;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}

.stage-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 4.5deg));
}

/* 浏览器窗口 */
.window {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 52px 90px -42px rgba(16, 16, 16, 0.55),
    0 16px 32px -20px rgba(16, 16, 16, 0.3);
  scale: 1;
  transition: scale 0.6s var(--ease);
  will-change: transform;
}

.stage:hover .window { scale: 1.012; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: clamp(26px, 2.6vw, 36px);
  padding-inline: clamp(8px, 1vw, 14px);
  background: #f4f4f0;
  border-bottom: 1px solid rgba(16, 16, 16, 0.07);
}

.window-dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.window-dots i {
  width: clamp(6px, 0.72vw, 9px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8d8d2;
}

.window-dots i:nth-child(1) { background: #ee9a90; }
.window-dots i:nth-child(2) { background: #f0cb7d; }
.window-dots i:nth-child(3) { background: #9fd49d; }

.window-url {
  display: grid;
  place-items: center;
  flex: 1;
  min-width: 0;
  padding: 3px 12px;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: var(--r-control);
  font-family: var(--latin);
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.window-url > span {
  grid-area: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.url-hot {
  color: var(--ink);
  font-weight: 600;
  opacity: 0;
  transform: translateY(7px);
}

.stage:hover .url-idle { opacity: 0; transform: translateY(-7px); }
.stage:hover .url-hot { opacity: 1; transform: none; }

.window-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
}

.window-shot {
  position: relative;
  overflow: hidden;
}

.window-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.window-glare {
  position: absolute;
  inset: -30% -70%;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 42%, rgba(255, 255, 255, 0.4) 50%, transparent 58%);
  transform: translateX(-58%);
  transition: transform 1.05s var(--ease);
}

.stage:hover .window-glare { transform: translateX(58%); }

/* 跟随光标 */
.stage-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-control);
  font-size: var(--fs-mini);
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  scale: var(--cs, 0);
  opacity: 0;
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) translate(-50%, -50%);
  transition: scale 0.3s var(--ease), opacity 0.25s var(--ease);
}

.stage-cursor b {
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.stage:hover .stage-cursor b { transform: translate(2px, -2px); }

@media (hover: hover) and (pointer: fine) {
  .stage-cursor { display: inline-flex; }
  .stage:hover .stage-cursor { --cs: 1; opacity: 1; }
}

/* ── 站点一：官网（黄底，卡组散开） ─────────────────────── */

.stage--ip {
  aspect-ratio: 16 / 10.4;
}

.stage--ip .window {
  left: 14%;
  top: 10%;
  width: 72%;
  rotate: -1.6deg;
  transition: rotate 0.6s var(--ease), scale 0.6s var(--ease);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px + var(--sp) * -26px), 0);
}

.stage--ip:hover .window { rotate: -0.4deg; }

.chip {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 5px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 46px -26px rgba(16, 16, 16, 0.48);
  transition: transform 0.5s var(--ease), translate 0.5s var(--ease);
  will-change: transform;
}

.chip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.chip--a {
  top: 6%;
  left: 5.5%;
  width: 33%;
  rotate: -8deg;
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -16px + var(--sp) * 34px), 0) translateZ(-12px);
}

.chip--b {
  right: -10%;
  bottom: 4%;
  width: 34%;
  rotate: 6deg;
  transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 18px + var(--sp) * 40px), 0);
}

@media (hover: hover) {
  .stage--ip:hover .chip--a { translate: -14px -12px; }
  .stage--ip:hover .chip--b { translate: 16px 12px; }
}

.stage-tag {
  position: absolute;
  left: 16%;
  bottom: 9%;
  z-index: 4;
  padding: 9px 16px 10px;
  background: #fff;
  border-radius: var(--r-control);
  font-size: clamp(10.5px, 1vw, 13.5px);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 26px -14px rgba(16, 16, 16, 0.4);
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 14px), 0) translateZ(70px);
}

/* ── 站点二：作品集（扇形报表卡） ───────────────────────── */

.stage--pf {
  aspect-ratio: 16 / 9.8;
}

.stage--pf .window {
  left: 5%;
  top: 4%;
  width: 88%;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px + var(--sp) * -20px), 0) translateZ(24px);
}

/* 窗口里放宣传片：黑场承接视频自带的深色背景 */
.window-shot--video { background: #0b0b12; }

.stage-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b0b12;
}

.fan {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: translateZ(40px);
  pointer-events: none;
}

.fan-card {
  --x: 0%;
  --y: 30px;
  --fr: 0deg;
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 32%;
  margin: 0;
  padding: 4px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 24px 46px -22px rgba(34, 22, 64, 0.4);
  pointer-events: auto;
  translate: calc(-50% + var(--x)) var(--y);
  rotate: var(--fr);
  scale: 0.92;
  transition:
    translate 0.85s var(--ease),
    rotate 0.7s var(--ease),
    scale 0.6s var(--ease),
    opacity 0.6s var(--ease);
  will-change: translate;
}

.fan-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 475;
  object-fit: cover;
  border-radius: 7px;
}

.js .fan-card { opacity: 0; }

.js .wipe.is-in .fan-card { opacity: 1; scale: 1; }
.js .wipe.is-in .fan-card--1 { --x: -104%; --y: -6px; --fr: -10deg; transition-delay: 0.04s; }
.js .wipe.is-in .fan-card--2 { --x: 0%; --y: 18px; --fr: 0deg; z-index: 2; transition-delay: 0.14s; }
.js .wipe.is-in .fan-card--3 { --x: 104%; --y: -6px; --fr: 10deg; transition-delay: 0.24s; }

@media (hover: hover) {
  .js .stage--pf:hover .fan-card { transition-delay: 0s; }
  .js .stage--pf:hover .fan-card--1 { --x: -124%; --fr: -14deg; }
  .js .stage--pf:hover .fan-card--2 { --y: 4px; }
  .js .stage--pf:hover .fan-card--3 { --x: 124%; --fr: 14deg; }
  .js .stage--pf:hover .fan-card:hover { --y: -18px; scale: 1.07; z-index: 4; }
}

.stage-badge {
  position: absolute;
  left: 4%;
  top: 5%;
  z-index: 6;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: var(--r-control);
  backdrop-filter: blur(10px);
  font-size: clamp(10.5px, 1vw, 13.5px);
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(16, 16, 16, 0.24);
  transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 16px), 0) translateZ(60px);
}

.stage--pf .stage-badge {
  top: auto;
  right: auto;
  bottom: 8%;
  left: 6%;
  transform: translate3d(calc(var(--mx) * 24px), calc(var(--my) * 18px), 0) translateZ(80px);
}

/* ── 站点三：平台（深色聚光） ───────────────────────────── */

.stage--l2 {
  aspect-ratio: 16 / 10.4;
}

.stage--l2 .window {
  left: 7.5%;
  top: 8%;
  width: 85%;
  border: 1px solid rgba(167, 139, 250, 0.16);
  box-shadow:
    0 60px 110px -46px rgba(0, 0, 0, 0.9),
    0 0 70px rgba(124, 82, 226, 0.16);
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px + var(--sp) * -20px), 0) translateZ(26px);
}

.window--dark { background: #161022; }
.window--dark .window-bar { background: #1c1530; border-bottom-color: rgba(255, 255, 255, 0.07); }
.window--dark .window-url {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
  color: #9d95bb;
}
.window--dark .url-hot { color: #ebe6ff; }
.window--dark .window-go { color: #b7aede; }
.window--dark .window-shot img {
  filter: saturate(1.06) brightness(0.95);
  transition: filter 0.6s var(--ease);
}

.stage--l2:hover .window--dark .window-shot img { filter: saturate(1.14) brightness(1.03); }

.stage-glow {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--gx, 50%) var(--gy, 42%),
    rgba(167, 139, 250, 0.34),
    rgba(139, 92, 246, 0.1) 45%,
    transparent 72%
  );
  mix-blend-mode: screen;
  opacity: 0.4;
  transition: opacity 0.5s var(--ease);
}

.stage--l2:hover .stage-glow { opacity: 1; }

.window-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(167, 139, 250, 0.1) 55%, rgba(196, 181, 253, 0.3) 92%, transparent);
  mix-blend-mode: screen;
  animation: window-scan 6.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes window-scan {
  from { transform: translateY(-110%); }
  to { transform: translateY(320%); }
}

.stage--l2 .stage-cursor { background: #c4b5fd; color: #140f1e; }

.stage-badge--l2 {
  top: auto;
  bottom: 6%;
  left: 4%;
  background: rgba(24, 18, 38, 0.72);
  border-color: rgba(167, 139, 250, 0.28);
  color: #ddd6f6;
  transform: translate3d(calc(var(--mx) * 20px), calc(var(--my) * 15px), 0) translateZ(70px);
}
.panel.is-flipped .panel-text { grid-column: 8 / span 5; }
.panel.is-flipped .panel-visual { grid-column: 1 / span 7; grid-row: 1; }
.panel.is-flipped .panel-text { grid-row: 1; }

.panel h2 {
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.panel-desc {
  margin-top: 22px;
  max-width: 27em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.panel-facts {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.panel-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.panel-facts dt {
  font-weight: 500;
  color: var(--ink);
}

.panel-facts dd {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.panel .btn { margin-top: 42px; }

.panel-alt {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--muted);
}

.panel-alt a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

.panel-alt a:hover { text-decoration-color: var(--ink); }

/* 站点三：深色面板上的文字与按钮 */
#site-platform h2 { color: var(--dark-ink); }
#site-platform .panel-desc { color: #c3bbdb; }
#site-platform .panel-facts dt { color: #ece8f8; }
#site-platform .panel-facts dd { color: #b7afd0; }
#site-platform .btn { background: #c4b5fd; color: #140f1e; }
#site-platform .btn:hover { background: var(--accent); color: var(--accent-ink); }
#site-platform .panel-alt { color: #a79fc4; }
#site-platform .panel-alt a { color: #ece8f8; text-decoration-color: #c4b5fd; }
#site-platform .panel-alt a:hover { text-decoration-color: var(--accent); }
#site-platform :focus-visible { outline-color: #c4b5fd; }

/* 站点一：黄色面板上的正文加深，保证对比度 */
#site-ipowerbi .panel-desc,
#site-ipowerbi .panel-facts dd { color: var(--on-accent); }

/* ── 方法 ─────────────────────────────────────────────────── */

.method {
  padding: 128px 0;
  background: var(--soft);
  scroll-margin-top: 68px;
}

.method-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.method-head h2 {
  grid-column: 1 / span 4;
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.method-head p {
  grid-column: 6 / span 6;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.steps h3 {
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

/* ── 关于 ─────────────────────────────────────────────────── */

.about {
  padding: 128px 0;
  scroll-margin-top: 68px;
}

.about-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.about-top h2 {
  grid-column: 1 / span 4;
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about-body { grid-column: 6 / span 7; }

.about-facts {
  display: grid;
  /* 第四列（行业）文案最长，单独加宽，保证四项都是单行 */
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.9fr);
  gap: 24px;
  margin-top: 64px;
}

.about-facts dd {
  margin-top: 2px;
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* 1120 以下四列已经挤不下一行，提前切成两列 */
@media (max-width: 1120px) {
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: -0.01em;
}

.about-note {
  margin-top: 22px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.about-stack {
  margin-top: 32px;
  font-family: var(--latin);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ── 服务 ─────────────────────────────────────────────────── */

.services {
  padding: 128px 0;
  scroll-margin-top: 68px;
}

.services-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.services-head h2,
.faq-head h2 {
  grid-column: 1 / span 4;
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.services-head p,
.faq-head p {
  grid-column: 6 / span 6;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.service-no {
  display: block;
  margin-bottom: 16px;
  font-family: var(--latin);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.service-grid h3 {
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.service-grid p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

/* 技术栈：一行一个工具，短说明跟着名字走，避免变成关键词列表 */
.stack {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(20, 20, 19, 0.14);
}

.stack h3 {
  font-family: var(--latin);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-list strong {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stack-list span {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .stack { margin-top: 56px; }

  .stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 430px) {
  .stack-list { grid-template-columns: 1fr; }
}

/* ── 常见问题 ─────────────────────────────────────────────── */

.faq {
  padding: 128px 0;
  background: var(--soft);
  scroll-margin-top: 68px;
}

.faq-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 56px;
  margin: 72px 0 0;
}

.faq-list > div {
  padding-top: 24px;
  border-top: 1px solid rgba(20, 20, 19, 0.14);
}

.faq-list dt {
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq-list dd {
  margin: 12px 0 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .services,
  .faq { padding: 96px 0; }

  .services-head,
  .faq-head { grid-template-columns: 1fr; gap: 24px; }

  .services-head h2,
  .services-head p,
  .faq-head h2,
  .faq-head p { grid-column: 1 / -1; }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    margin-top: 48px;
  }

  .faq-list {
    gap: 40px 32px;
    margin-top: 48px;
  }
}

@media (max-width: 720px) {
  .service-grid,
  .faq-list { grid-template-columns: 1fr; }

  .service-grid { gap: 36px; }
  .faq-list { gap: 32px; }
}

/* ── 联系 + 页脚 ──────────────────────────────────────────── */

.closing {
  padding: 120px 0 40px;
  background: var(--dark);
  color: var(--dark-ink);
  scroll-margin-top: 68px;
}

.closing h2 {
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.closing-note {
  margin-top: 16px;
  font-size: var(--fs-lead);
  color: var(--dark-muted);
}

.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.cells a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 108px;
  padding: 22px 26px;
  background: #1c1c1a;
  color: var(--dark-ink);
  text-decoration: none;
  border-radius: var(--r);
  transition: background 0.2s var(--ease);
}

.cells a:hover { background: #262623; }

.cells span {
  font-size: var(--fs-small);
  color: var(--dark-muted);
}

.cells strong {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
}

.cells .is-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.cells .is-accent span { color: rgba(16, 16, 16, 0.68); }
.cells .is-accent:hover { background: var(--accent-hover); }

/* 微信卡片：二维码白底居中，点开可看原图、长按保存 */
.cells .is-wechat {
  gap: 12px;
  padding: 24px;
  align-items: center;
  text-align: center;
}

.cells .is-wechat img {
  display: block;
  width: 144px;
  height: 144px;
  max-width: 100%;
  border-radius: 10px;
  background: #fff;
}

.foot { margin-top: 96px; }

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-name {
  font-family: var(--latin);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 244, 241, 0.55);
}

.foot nav {
  display: flex;
  gap: 26px;
  font-size: var(--fs-small);
}

.foot a {
  color: var(--dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.foot a:hover { color: var(--dark-ink); }

.foot-copy {
  margin-top: 18px;
  font-size: var(--fs-small);
  color: #8d8d84;
}

/* ── 入场 ─────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal].mask {
  opacity: 1;
  transform: translateY(0.16em);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].mask.is-in {
  clip-path: inset(0 0 -2% 0);
  transform: none;
}

.js [data-reveal].wipe {
  opacity: 0.35;
  transform: perspective(1000px) rotateY(var(--flip, 0deg)) rotateX(6deg) translateZ(-90px) scale(0.92);
  transition:
    opacity 0.5s var(--ease),
    transform 1.25s cubic-bezier(0.19, 1.06, 0.22, 1);
  transition-delay: 90ms;
}

.js [data-reveal].wipe-r { --flip: -22deg; }
.js [data-reveal].wipe-l { --flip: 22deg; }

.js [data-reveal].wipe.is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal].wipe .stage {
  scale: 1.035;
  transition: scale 1.2s var(--ease);
}

.js [data-reveal].wipe.is-in .stage { scale: 1; }

/* ── 窄屏 ─────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero,
  .panel { min-height: auto; padding: 72px 0; }

  .hero { padding-top: 56px; }

  .hero-inner,
  .panel-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero-text,
  .hero-visual,
  .panel-text,
  .panel-visual,
  .panel.is-flipped .panel-text,
  .panel.is-flipped .panel-visual { grid-column: 1 / -1; grid-row: auto; }

  .hero-visual { order: 2; }
  .panel-visual { order: 2; }

  .panel:not(.is-flipped) .panel-visual,
  .panel.is-flipped .panel-visual {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }

  .panel:not(.is-flipped) .stage,
  .panel.is-flipped .stage { border-radius: 0; }

  /* 窄屏没有后景卡，窗口直接由视频撑开，占满整行 */
  .stage--pf { aspect-ratio: auto; }
  .stage--pf .stage-scene { position: relative; inset: auto; }
  .stage--pf .window {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }
  .stage--pf .stage-badge { display: none; }

  .hero-sub { max-width: 42ch; }

  .panel-desc { max-width: 46ch; }

  .about-top { grid-template-columns: 1fr; gap: 24px; }

  .about-top h2,
  .about-body { grid-column: 1 / -1; }

  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  .method { padding: 96px 0; }

  .method-head { grid-template-columns: 1fr; gap: 24px; }

  .method-head h2,
  .method-head p { grid-column: 1 / -1; }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    margin-top: 48px;
  }

  .closing { padding-top: 96px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }

  .nav { gap: 12px; height: 60px; }

  .wordmark { gap: 8px; }
  .wordmark-avatar { width: 22px; height: 22px; }

  .nav-links { display: none; }
  .nav-cta { margin-left: auto; white-space: nowrap; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-drawer {
    display: block;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid rgba(16, 16, 16, 0.08);
    box-shadow: 0 26px 40px -30px rgba(16, 16, 16, 0.45);
    opacity: 0;
    visibility: hidden;
    translate: 0 -10px;
    transition: opacity 0.22s var(--ease), translate 0.22s var(--ease), visibility 0.22s;
  }

  .nav-drawer > nav { display: grid; }

  .nav-drawer a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(16, 16, 16, 0.07);
    color: var(--ink);
    font-size: var(--fs-body);
    text-decoration: none;
  }

  .nav-drawer a:last-child { border-bottom: 0; }

  .nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 44px;
  }

  .hero-visual { padding: 16px 16px 44px; }

  .deck-card--a,
  .deck-card--b { display: none; }

  .panel-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .panel-facts dt { font-size: var(--fs-small); }

  .steps { grid-template-columns: 1fr; gap: 28px; }

  .stage--ip .window { left: 8%; top: 12%; width: 84%; }
  .stage--pf .window { left: 4%; top: 7%; width: 92%; }
  .stage--l2 .window { left: 5%; top: 12%; width: 90%; }

  .chip--a { left: -10%; width: 38%; }
  .chip--b { right: -10%; width: 38%; }

  .stage-tag,
  .stage-badge { display: none; }

  .fan-card { width: 34%; }

  .cells { grid-template-columns: 1fr; }
  .cells a { min-height: 88px; }

  .foot-top { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (max-width: 430px) {
  .nav { gap: 10px; }
  .nav-cta { padding-inline: 12px; }
  .wordmark { gap: 6px; font-size: var(--fs-small); }
  .wordmark-avatar { width: 20px; height: 20px; }

  .stage--ip,
  .stage--l2 { aspect-ratio: 16 / 12; }
  .stage--pf { aspect-ratio: 16 / 12.5; }

  .stage--ip .window { left: 8%; width: 84%; }
  .stage--pf .window { left: 4%; width: 92%; }
  .stage--l2 .window { left: 5%; width: 90%; }

  .fan-card { width: 37%; }
}

@media (max-width: 380px) {
  .nav { gap: 8px; }
}

/* ── 降低动态 ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js [data-reveal].mask { clip-path: none; }

  .js [data-reveal].wipe { clip-path: none; transform: none; opacity: 1; }

  .js [data-reveal].wipe .stage { scale: 1; transition: none; }

  .stage-cursor { display: none; }
  .window-scan { display: none; }
  .stage-glow { opacity: 0.55; }

  .window,
  .window-glare,
  .chip,
  .fan-card,
  .deck,
  .deck-card { transition: none; }

  .btn,
  .cells a { transition: none; }
}
