/* =========================================================
   曲速教育科技有限公司 官方网站
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --line: #e6ecf5;
  --text: #0f1c3a;
  --text-2: #4b5875;
  --text-3: #8a96ae;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --blue-soft: #eaf1ff;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --radius: 20px;
  --container: 1180px;
  --header-h: 72px;
  --shadow: 0 24px 60px -28px rgba(30, 64, 175, .28);
  --shadow-sm: 0 10px 30px -16px rgba(30, 64, 175, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Segoe UI", "Helvetica Neue", Roboto, Arial, var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(37, 99, 235, .18); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}

.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .7);
}

.btn-primary:hover {
  background: #1d4fd8;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .75);
}

.btn-primary:hover .icon { transform: translateX(4px); }

.btn-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, .4);
  transform: translateY(-2px);
}

/* ---------- 滚动显现 ---------- */
.js .reveal { opacity: 0; }

.js .reveal.is-visible {
  opacity: 1;
  animation: reveal .9s var(--ease) var(--d, 0s) both;
}

@keyframes reveal {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0; }
}

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}

.nav { display: flex; gap: 4px; }

.nav-link {
  position: relative;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-2);
  transition: color .25s, background-color .25s;
}

.nav-link:hover { color: var(--blue); }

.nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-toggle { display: none; }

/* =========================================================
   首屏
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .6;
  animation: blob-drift 20s ease-in-out infinite alternate;
}

.blob-1 { width: 560px; height: 560px; top: -180px; right: -120px; background: #c9dcff; }
.blob-2 { width: 440px; height: 440px; bottom: -200px; left: -140px; background: #c8f1fa; animation-delay: -7s; }
.blob-3 { width: 320px; height: 320px; top: 25%; left: 42%; background: #e1e8ff; animation-delay: -13s; }

@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 10px) scale(.95); }
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, .16) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: ping 2.4s infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
  70%  { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: .03em;
}

.hero-title .line { display: block; }

.hero-desc {
  margin-top: 24px;
  max-width: 480px;
  color: var(--text-2);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-anim { animation: hero-in .9s var(--ease) var(--d, 0s) both; }
.hero-visual.hero-anim { animation-name: hero-visual-in; animation-duration: 1.2s; }

@keyframes hero-in { from { opacity: 0; translate: 0 20px; } }
@keyframes hero-visual-in { from { opacity: 0; scale: .94; } }

/* 首屏插画 */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / .9;
  justify-self: center;
}

.hv-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(37, 99, 235, .2);
  animation: spin 60s linear infinite;
}

.hv-ring::before,
.hv-ring::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, .15);
}

.hv-ring::before { top: 12%; left: 12%; }
.hv-ring::after  { bottom: 6%; right: 26%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(6, 182, 212, .15); }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hv-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hv-title { font-size: 13px; font-weight: 600; color: var(--text); }

.hv-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-soft);
}

.card-main { left: 0; top: 18%; width: 62%; z-index: 2; }
.card-table { right: 0; top: 0; width: 35%; animation-delay: -2.5s; }
.card-cube { right: 2%; bottom: 6%; width: 42%; display: flex; align-items: center; gap: 14px; z-index: 3; animation-delay: -5s; }

.hv-chart { width: 100%; height: auto; }

.hv-bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: grow-y 1s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + .6s);
}

.hv-line {
  stroke-dasharray: 1;
  animation: draw 1.6s var(--ease) 1s both;
}

.hv-area { animation: fade-in 1s ease 1.8s both; }
.hv-dot  { animation: fade-in .4s ease 2.4s both; }

.hv-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
}

.hv-legend span { display: flex; align-items: center; gap: 6px; }
.hv-legend i { width: 8px; height: 8px; border-radius: 2px; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mini-grid i {
  height: 20px;
  border-radius: 5px;
  background: transparent;
  border: 1px dashed #dbe3f1;
}

.mini-grid i.b { background: #dbe7ff; border: 1px solid #bcd1fb; }
.mini-grid i.c { background: #d6f5fb; border: 1px solid #a9e7f3; }
.mini-grid i.t { background: #d5f5ef; border: 1px solid #a6e5da; }
.mini-grid i.pulse { animation: cell-pulse 2.4s ease-in-out var(--p, 0s) infinite; }

@keyframes cell-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
}

.mini-cube-wrap {
  flex: none;
  width: 44px;
  height: 44px;
  perspective: 400px;
}

.mini-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-rotate 10s linear infinite;
}

.mini-cube span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(37, 99, 235, .75);
  background: rgba(37, 99, 235, .08);
}

.mini-cube .f1 { transform: translateZ(22px); }
.mini-cube .f2 { transform: rotateY(180deg) translateZ(22px); }
.mini-cube .f3 { transform: rotateY(90deg) translateZ(22px); }
.mini-cube .f4 { transform: rotateY(-90deg) translateZ(22px); }
.mini-cube .f5 { transform: rotateX(90deg) translateZ(22px); background: rgba(6, 182, 212, .2); }
.mini-cube .f6 { transform: rotateX(-90deg) translateZ(22px); }

.cube-info { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }

.progress {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: #eef2f9;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: progress 3.6s var(--ease) infinite;
}

@keyframes progress {
  0%   { width: 8%; }
  80%  { width: 100%; }
  100% { width: 100%; }
}

.hv-toast {
  position: absolute;
  left: 6%;
  bottom: 12%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: float 6s ease-in-out -1.5s infinite;
}

.toast-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #10b981;
}

.toast-icon .icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* 快捷入口 */
.quick-links {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.quick-link:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .3);
  box-shadow: var(--shadow);
}

.ql-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  transition: background-color .3s, color .3s;
}

.quick-link:hover .ql-icon { color: #fff; background: var(--blue); }

.ql-icon .icon { width: 22px; height: 22px; }

.ql-text { display: flex; flex-direction: column; min-width: 0; }
.ql-text strong { font-size: 15px; font-weight: 600; }
.ql-text em { font-style: normal; font-size: 13px; color: var(--text-3); }

/* =========================================================
   通用区块
   ========================================================= */
.section { position: relative; padding: 112px 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
}

/* =========================================================
   核心服务
   ========================================================= */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 72px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-row + .service-row { margin-top: 120px; }

.service-row.is-reverse .service-text { order: 2; }

.service-index {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
}

.service-index::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.service-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}

.service-lead {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.9;
}

.adv-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.adv-list li { display: flex; gap: 14px; }

.adv-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
}

.adv-icon .icon { width: 20px; height: 20px; }

.adv-list h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
}

.adv-list p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

/* 服务插画 */
.service-visual {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, .12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, .12), transparent 50%),
    var(--bg-soft);
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(37, 99, 235, .12) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
  mask-image: linear-gradient(135deg, #000, transparent 70%);
  pointer-events: none;
}

.window {
  position: relative;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #eef2f9;
}

.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e3e9f3;
}

.window-bar i:nth-child(1) { background: #fca5a5; }
.window-bar i:nth-child(2) { background: #fcd34d; }
.window-bar i:nth-child(3) { background: #86efac; }

.window-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.viz {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 8px 8px;
}

.float-tag {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8eef8;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-tag i { width: 8px; height: 8px; border-radius: 50%; }

.tag-a { right: 12px; bottom: 14px; }
.tag-b { left: 12px; bottom: 14px; animation-delay: -2s; }
.tag-c { right: 12px; top: 14px; animation-delay: -4s; }

@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade-in { from { opacity: 0; } }

/* 01 学情分析 */
.v1-bars rect { transform-box: fill-box; transform-origin: 50% 100%; }

.is-visible .v1-bars rect {
  animation: grow-y 1s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + .3s);
}

.v1-line { stroke-dasharray: 1; }
.is-visible .v1-line { animation: draw 1.8s var(--ease) .6s both; }
.is-visible .v1-area { animation: fade-in 1s ease 1.4s both; }
.is-visible .v1-donut { animation: donut 1.4s var(--ease) .4s both; }
.is-visible .v1-donut-2 { animation: fade-in .6s ease 1.6s both; }

@keyframes donut { from { stroke-dasharray: 0 100; } }

.v1-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.4s ease-out infinite;
}

@keyframes halo {
  from { transform: scale(.6); opacity: .4; }
  to   { transform: scale(1.9); opacity: 0; }
}

.is-visible .v1-list { animation: fade-in .8s ease 1s both; }

/* 02 走班排课 */
.v2-empty rect {
  fill: none;
  stroke: #dbe3f1;
  stroke-dasharray: 4 4;
}

.v2-cell { transform-box: fill-box; transform-origin: center; }

.c-b > rect:first-child { fill: #e3ecff; stroke: #bcd1fb; }
.c-c > rect:first-child { fill: #dcf6fb; stroke: #a9e7f3; }
.c-t > rect:first-child { fill: #dbf6f1; stroke: #a6e5da; }
.c-b .ln { fill: #3b82f6; }
.c-c .ln { fill: #06b6d4; }
.c-t .ln { fill: #14b8a6; }

.is-visible .v2-cell {
  animation: cell-in .6s var(--ease) both;
  animation-delay: calc(var(--i) * 50ms + .2s);
}

.is-visible .v2-cell.hl {
  animation:
    cell-in .6s var(--ease) calc(var(--i) * 50ms + .2s) both,
    cell-glow 3.2s ease-in-out var(--h, 0s) infinite;
}

@keyframes cell-in { from { opacity: 0; transform: scale(.6); } }

@keyframes cell-glow {
  0%, 100% { filter: none; }
  50%      { filter: drop-shadow(0 4px 10px rgba(37, 99, 235, .45)); }
}

.v2-scan { animation: scan-col 10s var(--ease) infinite; }

@keyframes scan-col {
  0%, 14%   { transform: translateX(0); }
  20%, 34%  { transform: translateX(76px); }
  40%, 54%  { transform: translateX(152px); }
  60%, 74%  { transform: translateX(228px); }
  80%, 94%  { transform: translateX(304px); }
  100%      { transform: translateX(0); }
}

/* 03 3D动画编程 */
.viz-3d { position: relative; }

.is-visible .v3-blocks rect { animation: block-in .6s var(--ease) both; }
.is-visible .v3-blocks rect:nth-child(3), .is-visible .v3-blocks rect:nth-child(4) { animation-delay: .15s; }
.is-visible .v3-blocks rect:nth-child(5), .is-visible .v3-blocks rect:nth-child(6) { animation-delay: .3s; }
.is-visible .v3-blocks rect:nth-child(7) { animation-delay: .45s; }

@keyframes block-in { from { opacity: 0; transform: translateX(-16px); } }

.v3-playhead { animation: playhead 5s cubic-bezier(.45, 0, .55, 1) infinite; }

@keyframes playhead { to { transform: translateX(400px); } }

.cube-wrap {
  position: absolute;
  left: 66%;
  top: 34%;
  width: 18%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  perspective: 600px;
  --s: 64px;
}

.cube {
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: cube-rotate 14s linear infinite;
}

@keyframes cube-rotate {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

.face {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(37, 99, 235, .7);
  background-color: rgba(37, 99, 235, .05);
  background-image:
    linear-gradient(rgba(37, 99, 235, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .16) 1px, transparent 1px);
  background-size: 25% 25%;
}

.f-front  { transform: translateZ(calc(var(--s) / 2)); }
.f-back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f-right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f-left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f-top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background-color: rgba(6, 182, 212, .16); }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.cube-shadow {
  position: absolute;
  left: 66%;
  top: 56%;
  width: 22%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .2), transparent);
}

/* =========================================================
   关于我们
   ========================================================= */
.about { background: var(--bg-soft); }

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 80px;
  align-items: center;
}

.about-text .section-title { margin-bottom: 20px; }

.about-text p:not(.section-kicker) {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 2;
}

.about-points { display: grid; gap: 16px; }

.about-points li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.about-points li:hover {
  transform: translateX(6px);
  border-color: rgba(37, 99, 235, .3);
  box-shadow: var(--shadow-sm);
}

.ap-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.ap-icon .icon { width: 22px; height: 22px; }

.about-points h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.about-points p  { color: var(--text-2); font-size: 14px; }

/* =========================================================
   联系我们
   ========================================================= */
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 42px;
  border-radius: 28px;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(180deg, rgba(37, 99, 235, .04) 0%, rgba(6, 182, 212, .06) 100%);
  border: 1px solid rgba(37, 99, 235, .08);
  box-shadow: 0 24px 56px -34px rgba(15, 23, 42, .18);
}

.contact-panel::before,
.contact-panel::after {
  content: none;
}

.contact-intro {
  max-width: 680px;
}

.contact-intro p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 20px 42px -34px rgba(15, 23, 42, .34);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px -34px rgba(15, 23, 42, .42);
  border-color: rgba(37, 99, 235, .18);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(37, 99, 235, .08);
}

.contact-icon .icon { width: 20px; height: 20px; }

.contact-label { font-size: 13px; color: var(--muted); }
.contact-value { margin-top: 2px; font-size: 18px; font-weight: 600; color: var(--text); word-break: break-all; }
.contact-value.placeholder { opacity: .75; }

/* ---------- 微信公众号二维码（使用原始二维码图片，保证清晰可扫码） ---------- */
.contact-item-wechat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.wechat-details { display: grid; gap: 6px; }
.wechat-qr-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  line-height: 0;
  border: 1px solid rgba(148, 163, 184, .16);
}
.wechat-qr-link:focus-visible { outline: 3px solid rgba(37, 99, 235, .24); outline-offset: 3px; }
.wechat-qr-image {
  display: block;
  width: 156px;
  height: 156px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13.5px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  text-align: center;
}

.beian-link { display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.beian-link:hover { color: var(--blue); }
.beian-link img { width: 16px; height: 16px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .service-row { gap: 48px; }
  .adv-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact-panel { gap: 28px; }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 460px; }

  .quick-links { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 48px auto 0; }

  .service-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .service-row.is-reverse .service-text { order: 0; }
  .service-row + .service-row { margin-top: 88px; }
  .adv-list { grid-template-columns: 1fr 1fr; }

  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 1.6px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .3s;
  }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .site-header.nav-open {
    background: #fff;
    border-bottom-color: var(--line);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 28, 58, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }

  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  .nav-link { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }

  .brand-name { font-size: 16px; letter-spacing: .03em; }

  .hero { padding-bottom: 56px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hv-card { padding: 12px 14px; border-radius: 14px; }
  .hv-title { font-size: 12px; }
  .hv-toast { font-size: 12px; padding: 8px 14px 8px 8px; }
  .toast-icon { width: 22px; height: 22px; }
  .mini-grid i { height: 14px; }
  .mini-cube-wrap { width: 34px; height: 34px; }
  .mini-cube .f1 { transform: translateZ(17px); }
  .mini-cube .f2 { transform: rotateY(180deg) translateZ(17px); }
  .mini-cube .f3 { transform: rotateY(90deg) translateZ(17px); }
  .mini-cube .f4 { transform: rotateY(-90deg) translateZ(17px); }
  .mini-cube .f5 { transform: rotateX(90deg) translateZ(17px); }
  .mini-cube .f6 { transform: rotateX(-90deg) translateZ(17px); }

  .service-visual { padding: 20px; border-radius: 22px; }
  .window-bar { height: 34px; }
  .float-tag { font-size: 12px; padding: 7px 12px; }
  .cube-wrap { --s: 40px; }
  .adv-list { grid-template-columns: minmax(0, 1fr); }

  .contact-panel { padding: 32px 22px; border-radius: 22px; }
  .contact-list { grid-template-columns: minmax(0, 1fr); }
  .contact-item { padding: 18px; }

}

@media (max-width: 360px) {
  .brand-name { font-size: 15px; letter-spacing: .01em; }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal { opacity: 1; }
}

/* 微信区域在窄屏保持独立二维码卡片 */
@media (max-width: 640px) {
  .contact-item-wechat { grid-template-columns: minmax(0, 1fr); }
  .wechat-qr-link { flex: none; }
  .wechat-qr-image { width: 164px; height: 164px; }
}
