/* 官网首页（index.html）页面样式：变量 / 页头 / Hero / 页脚 / 关于 / 业务卡片 */
/* 自 index.html 内联 <style> 外置；与 corp.css 并列，先于 home-works.css 加载 */

@property --top-glow-x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --left-glow-x { syntax: "<percentage>"; inherits: true; initial-value: 7%; }
@property --left-glow-y { syntax: "<percentage>"; inherits: true; initial-value: 96%; }
@property --right-glow-x { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
@property --right-glow-y { syntax: "<percentage>"; inherits: true; initial-value: 72%; }
:root {
  color-scheme: dark;
  --text: #f7f7f9;
  --muted: rgba(255, 255, 255, .65);
  --line: rgba(255, 255, 255, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --title-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --label-font: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --top-glow-x: 50%;
  --left-glow-x: 7%;
  --left-glow-y: 96%;
  --right-glow-x: 100%;
  --right-glow-y: 72%;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: none;
  scroll-behavior: smooth;
  background: #101018;
}
body {
  width: 100%;
  height: 100%;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #101018;
}
.corp-header, .site-pages {
  -webkit-user-select: none;
  user-select: none;
}

.header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(22, 22, 31, .85);
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.header.is-scrolled {
  border-color: var(--line);
  background: rgba(14, 14, 22, .72);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  padding: 0 32px;
  height: 100%;
  margin: auto;
  gap: 40px;
  position: relative;
}
.brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}
nav {
  display: flex;
  flex: 1;
  gap: 32px;
}
nav a, .portal {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
}
nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
nav a:hover, nav a.active { color: var(--text); }
nav a:hover::after, nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.portal {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .3s ease, background .3s ease;
}
.portal:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.theme-switch {
  position: relative;
  width: 68px;
  height: 34px;
  flex-shrink: 0;
  user-select: none;
}
.theme-switch input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}
.theme-switch-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.theme-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  content: "";
  border-radius: 50%;
  background: #2a3350;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transition: transform .25s, background .25s;
}
.theme-switch-icon {
  z-index: 1;
  width: 16px;
  height: 16px;
  color: #c8e0ff;
}
.theme-switch-icon:last-child { color: #f0a500; }
.theme-switch input:checked + .theme-switch-track {
  border-color: #4a6cf7;
  background: rgba(74,108,247,.12);
}
.theme-switch input:checked + .theme-switch-track::after {
  background: #f5b942;
  transform: translateX(34px);
}
[data-theme="light"] {
  color-scheme: light;
  --text: #1a1a24;
  --muted: rgba(0,0,0,.62);
  --line: rgba(0,0,0,.1);
}
[data-theme="light"] body { background: #dfe4eb; }
[data-theme="light"] .header {
  border-color: rgba(0,0,0,.08);
  background: rgba(248,249,252,.88);
}
[data-theme="light"] .header.is-scrolled { background: rgba(248,249,252,.96); }
[data-theme="light"] .site-pages {
  animation: light-background-shift 32s ease-in-out infinite alternate, gradient-swing 44s ease-in-out infinite alternate;
  background-color: #d5e2f3;
  background-image:
    radial-gradient(ellipse 78% 68% at var(--top-glow-x) 5%, rgba(120, 154, 235, .32), transparent 72%),
    radial-gradient(ellipse 68% 62% at var(--left-glow-x) var(--left-glow-y), rgba(226, 164, 106, .24), transparent 72%),
    radial-gradient(ellipse 62% 68% at var(--right-glow-x) var(--right-glow-y), rgba(180, 135, 222, .18), transparent 72%);
}
[data-theme="light"] .logo {
  opacity: .96;
  animation: float 8s ease-in-out 1.2s infinite, shadow-breathe 5.5s ease-in-out infinite;
}
[data-theme="light"] .logo-echo { display: none; }
[data-theme="light"] .logo-halo { display: none; }
[data-theme="light"] .orbit { border-color: rgba(44,64,125,.14); box-shadow: inset 0 0 80px rgba(83,106,204,.08); }
[data-theme="light"] .orbit--inner { border-color: rgba(154,111,43,.14); }
[data-theme="light"] .orbit::before {
  background: #294278;
  box-shadow: 0 0 14px 4px rgba(54,88,158,.38);
}
[data-theme="light"] .orbit::after {
  background: #8f5a22;
  box-shadow: 0 0 12px 3px rgba(172,112,48,.32);
}
[data-theme="light"] .tagline { color: rgba(0,0,0,.56); }
[data-theme="light"] .content-card {
  border-color: rgba(36,48,96,.2);
  background: rgba(20,27,57,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(40,53,101,.06);
}
[data-theme="light"] .service-card {
  border-color: color-mix(in srgb, var(--service-color) 62%, rgba(36,48,96,.2));
  background:
    radial-gradient(circle at 22% 10%, var(--service-glow), transparent 55%),
    rgba(255,255,255,.06);
}
[data-theme="light"] .service-card p {
  color: rgba(15,23,52,.74);
  text-shadow: none;
}
[data-theme="light"] .service-card h3 {
  opacity: .82;
  filter: saturate(1.16);
  text-shadow: 0 1px 18px color-mix(in srgb, var(--service-color) 28%, transparent);
}
[data-theme="light"] .service-icon { filter: saturate(1.16); }
[data-theme="light"] .service-card:hover {
  border-color: color-mix(in srgb, var(--service-color) 82%, white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--service-color) 42%, transparent), 0 14px 28px color-mix(in srgb, var(--service-color) 20%, transparent);
}
[data-theme="light"] .works-filters button {
  border-color: color-mix(in srgb, var(--filter-color) 36%, rgba(28,38,78,.2));
  background: rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  color: rgba(22,32,70,.72);
}
[data-theme="light"] .works-filters button.active,
[data-theme="light"] .works-filters button:hover {
  border-color: color-mix(in srgb, var(--filter-color) 72%, rgba(22,32,70,.3));
  background: color-mix(in srgb, var(--filter-color) 17%, rgba(255,255,255,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 20px color-mix(in srgb, var(--filter-color) 18%, transparent);
  color: rgba(13,22,58,.92);
}
[data-theme="light"] .works-pagination button {
  border-color: rgba(29,40,82,.28);
  background: rgba(255,255,255,.3);
  color: rgba(22,32,70,.72);
}
[data-theme="light"] .works-pagination button:disabled { color: rgba(22,32,70,.42); }
[data-theme="light"] .works-pagination span { color: rgba(22,32,70,.7); }
[data-theme="light"] .work-card-caption span,
[data-theme="light"] .work-card-caption b,
[data-theme="light"] .work-card-caption i { color: #fff; }
[data-theme="light"] .contact-email {
  color: rgba(14,23,54,.9);
  text-shadow: 0 1px 1px rgba(255,255,255,.56);
}
[data-theme="light"] .contact-card {
  border-color: color-mix(in srgb, var(--contact-color) 60%, rgba(36,48,96,.2));
  background:
    radial-gradient(circle at 22% 10%, var(--contact-glow), transparent 55%),
    rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
[data-theme="light"] .contact-card:hover {
  border-color: color-mix(in srgb, var(--contact-color) 82%, white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--contact-color) 40%, transparent), 0 14px 28px color-mix(in srgb, var(--contact-color) 18%, transparent);
}
[data-theme="light"] .contact-card-label { color: color-mix(in srgb, var(--contact-color) 82%, rgba(18,30,70,.6)); }
[data-theme="light"] .contact-card strong { color: rgba(14,23,54,.92); }
[data-theme="light"] .contact-card p { color: rgba(15,23,52,.72); }
.corp-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.corp-header.scrolled { background: transparent; }
[data-theme="light"] .corp-header {
  background: transparent;
  border-bottom-color: transparent;
}
.site-pages {
  position: relative;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #101018;
  background-image:
    radial-gradient(ellipse 78% 68% at var(--top-glow-x) 5%, rgba(70, 106, 244, .38), transparent 72%),
    radial-gradient(ellipse 68% 62% at var(--left-glow-x) var(--left-glow-y), rgba(202, 151, 78, .26), transparent 72%),
    radial-gradient(ellipse 62% 68% at var(--right-glow-x) var(--right-glow-y), rgba(132, 76, 198, .22), transparent 72%);
  animation: background-shift 32s ease-in-out infinite alternate, gradient-swing 44s ease-in-out infinite alternate;
}
.page {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  z-index: 1;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility 0s .7s;
}
.page.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 88px 24px 28px;
  overflow: hidden;
  place-items: center;
}
.energy-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .9;
}
.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero-content {
  display: grid;
  width: min(100%, 645px);
  margin-top: -64px; /* 常驻页脚占据底部后，logo 上移保持视觉重心 */
  animation: reveal 1.25s var(--ease-out) both;
  place-items: center;
}
.logo-halo {
  position: absolute;
  width: min(80vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .62;
  background: radial-gradient(circle, rgba(175, 196, 255, .25), rgba(114, 87, 214, .08) 36%, transparent 68%);
  filter: blur(14px);
  animation: breathe 5.5s ease-in-out infinite;
}
.orbit {
  position: absolute;
  width: min(76vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 200, 255, .09);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(108, 104, 255, .05), 0 0 60px rgba(70, 111, 255, .04);
  animation: spin 20s linear infinite;
}
.orbit::before, .orbit::after {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #ced8ff;
  box-shadow: 0 0 16px 5px rgba(125, 154, 255, .38);
}
.orbit::after {
  top: auto;
  bottom: 15%;
  width: 3px;
  height: 3px;
  background: #edc578;
  box-shadow: 0 0 14px 4px rgba(215, 167, 83, .35);
}
.orbit--inner {
  width: min(60vw, 500px);
  border-color: rgba(229, 198, 129, .08);
  transform: rotate(60deg);
  animation: spin-reverse 16s linear infinite;
}
.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(80vw, 540px);
  max-height: calc(100svh - 220px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 14px rgba(174, 195, 255, .2))
    drop-shadow(0 0 38px rgba(123, 94, 218, .09));
  animation: float 8s ease-in-out 1.2s infinite;
}
.logo-echo {
  position: absolute;
  z-index: 0;
  width: min(80vw, 540px);
  max-height: calc(100svh - 220px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  filter:
    blur(18px)
    brightness(1.75)
    drop-shadow(0 0 26px rgba(108, 139, 255, .8))
    drop-shadow(0 0 70px rgba(187, 128, 255, .58));
  animation: logo-aura 12s ease-in-out 1s infinite;
  mix-blend-mode: screen;
}
.hero-footer {
  position: absolute;
  bottom: 112px; /* 抬高到常驻页脚之上 */
  width: 100%;
  display: grid;
  gap: 13px;
  text-align: center;
  animation: reveal 1s .55s var(--ease-out) both;
}
.tagline {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  letter-spacing: .26em;
}
/* 常驻页脚：固定在视口底部，切换页面不消失；细半透明分隔线 + 三行居中堆叠，版本号由 fetch /api/version 填充 */
/* 配色全部走 --line 与 corp.css 的 --corp-text-* 变量，明暗主题自动适配 */
.corp-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5; /* 页面内容(1)之上、顶栏(10)与高清预览(9999)之下 */
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 24px 14px;
  gap: 6px;
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.content-page {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 108px 24px 150px; /* 底部预留常驻页脚高度 */
  overflow-y: auto;
  background: transparent;
  place-items: center;
}
.page-content {
  width: min(100%, 1080px);
  animation: reveal .8s var(--ease-out) both;
}
.eyebrow {
  margin: 0 0 16px;
  color: #c8d4ff;
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.14;
}
html:not(.fonts-ready) .page-title,
html:not(.fonts-ready) .eyebrow {
  opacity: 0;
}
html.fonts-ready .page-title,
html.fonts-ready .eyebrow {
  animation: title-font-reveal .36s ease-out both;
}
[data-theme="light"] .eyebrow,
html[data-theme="light"]:not(.fonts-ready) .eyebrow {
  opacity: 1;
  color: rgba(20,32,72,.74);
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(255,255,255,.5);
}
.page-lead { max-width: 670px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 2; letter-spacing: .06em; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.content-card {
  min-height: 170px;
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.content-card small { color: #b9c9ff; letter-spacing: .12em; }
.content-card h3 { margin: 16px 0 9px; font-size: 21px; font-weight: 500; letter-spacing: .08em; }
.content-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  flex-direction: column;
  border-color: rgba(176, 194, 255, .16);
  background:
    radial-gradient(circle at 22% 10%, var(--service-glow), transparent 45%),
    rgba(255,255,255,.025);
  transition: transform .4s var(--ease-out), border-color .4s ease, background .4s ease;
}
.service-card::after {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 118px;
  height: 118px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--service-color) 34%, transparent);
  border-radius: 50%;
  opacity: .8;
}
.service-card:hover {
  border-color: color-mix(in srgb, var(--service-color) 72%, transparent);
  background:
    radial-gradient(circle at 22% 10%, var(--service-glow), transparent 55%),
    rgba(255,255,255,.06);
  transform: translateY(-8px);
}
.service-card:nth-child(1) { --service-color: #8da8ff; --service-glow: rgba(91, 124, 255, .28); }
.service-card:nth-child(2) { --service-color: #df9cff; --service-glow: rgba(183, 92, 255, .25); }
.service-card:nth-child(3) { --service-color: #ffd479; --service-glow: rgba(255, 177, 65, .23); }
.service-card:nth-child(4) { --service-color: #ffad88; --service-glow: rgba(255, 112, 81, .24); }
.service-icon {
  position: relative;
  z-index: 1;
  display: flex;
  width: 68px;
  height: 68px;
  margin: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--service-color) 45%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--service-color) 12%, transparent);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--service-color) 13%, transparent);
  font-size: 34px;
  line-height: 1;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.service-icon-svg {
  display: block;
  width: 34px;
  height: 34px;
  stroke: var(--service-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  fill: none;
}
.service-card h3 {
  position: absolute;
  z-index: 0;
  top: 27px;
  right: 22px;
  max-width: calc(100% - 116px);
  margin: 0;
  color: var(--service-color);
  font-family: var(--body);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.04;
  opacity: .52;
  text-align: right;
  text-shadow: 0 0 26px color-mix(in srgb, var(--service-color) 38%, transparent);
}
.service-card p {
  position: absolute;
  z-index: 1;
  top: 176px;
  right: 24px;
  left: 24px;
  font-size: 15px;
  line-height: 1.72;
}
