
:root {
  --bg: #06090d;
  --bg-soft: #0d131a;
  --card: #111925;
  --text: #edf2f7;
  --muted: #9fb1c4;
  --brand: #2dc7cf;
  --brand-2: #5fdfe5;
  --line: #203144;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(1400px 700px at 80% -10%, rgba(45, 199, 207, 0.2), transparent 50%), linear-gradient(180deg, #04070b 0%, #091018 70%, #0a121b 100%);
  line-height: 1.6;
}
.container { width: min(1160px, 92vw); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(6, 10, 14, 0.88); border-bottom: 1px solid rgba(159, 177, 196, 0.18); }
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 24px; }
.nav-links a, .site-footer a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.site-header .nav-links a { color: #c3cfda; }
.nav-links a:hover, .site-footer a:hover { color: var(--brand-2); }
.site-header .nav-links a:hover { color: #62e7ee; }
.nav-links .nav-label { color: #c3cfda; cursor: default; }
.nav-actions { display: flex; gap: 10px; }
.btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-family: "Montserrat", sans-serif; cursor: pointer; transition: all 0.2s ease; }
.btn.big { padding: 12px 20px; }
.btn.solid { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #04252a; }
.btn.solid:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(45, 199, 207, 0.25); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(159, 177, 196, 0.35); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-2); }
.site-header .btn.ghost { color: #edf2f7; border-color: rgba(159, 177, 196, 0.35); }
.site-header .btn.ghost:hover { color: var(--brand-2); border-color: rgba(45, 199, 207, 0.6); }
.hero {
  position: relative;
  padding: 96px 0 78px;
  overflow: hidden;
  isolation: isolate;
  /* 默认背景：渐变底色，保证即使没有插图也很好看 */
  background:
    radial-gradient(1400px 700px at 80% -10%, rgba(45, 199, 207, 0.2), transparent 50%),
    linear-gradient(180deg, #04070b 0%, #091018 70%, #0a121b 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  /*
    HERO 背景图占位：
    - 在下面这一行，把 none 替换为 url("data:image/png;base64,....")
    - 例如：background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...");
    - 这张图会作为标题区域的【背景】，不会遮挡文字。
  */
  background-image: url('../images/home/asset-000.png');
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(680px 680px at 0% 100%, rgba(0, 0, 0, 0.4), transparent 55%),
              linear-gradient(180deg, rgba(4, 7, 14, 0.72), rgba(4, 7, 14, 0.18));
  pointer-events: none;
}
.hero-grid { max-width: 760px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-2); font-family: "Montserrat", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3, h4 { margin: 0; font-family: "Montserrat", sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 14px; }
.hero h1 { color: #edf2f7; font-weight: 700; }
.lead, .section-sub { color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-glow { position: absolute; right: -130px; top: -10px; width: 560px; height: 560px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(96, 227, 255, 0.2), rgba(123, 120, 255, 0.08), rgba(96, 227, 255, 0.2)), radial-gradient(circle, rgba(45, 199, 207, 0.26), rgba(77, 121, 255, 0.14) 38%, transparent 66%); filter: blur(14px); pointer-events: none; animation: ringRotate 22s linear infinite; }
@keyframes ringRotate { from { transform: rotate(0deg) scale(1);} to { transform: rotate(360deg) scale(1.04);} }
@keyframes quantumPulse { 0% { filter: saturate(1) brightness(1);} 50% { filter: saturate(1.15) brightness(1.06);} 100% { filter: saturate(1.05) brightness(1.02);} }
@keyframes particleShift { from { transform: translateX(0);} to { transform: translateX(-36px);} }
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(9, 14, 20, 0.72); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 24px 0; }
.metrics article { padding: 12px 8px; }
.metrics h4 { font-size: 1.55rem; color: var(--brand-2); font-weight: 700; }
.metrics p { margin: 6px 0 0; color: var(--muted); }
.products, .capabilities { padding: 70px 0; }
.why-naishu { padding: 54px 0 28px; }
.why-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }
.why-card { border: 1px solid rgba(95, 223, 229, 0.22); border-radius: 14px; padding: 18px; background: linear-gradient(165deg, rgba(18, 28, 42, 0.86), rgba(11, 17, 26, 0.86)); }
.why-card h3 { margin: 0 0 8px; font-size: 1.08rem; color: #edf2f7; font-weight: 700; }
.why-card p { margin: 0; color: var(--muted); }
.capabilities { position: relative; padding-top: 110px; overflow: hidden; }
.capabilities::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 64px; background: repeating-linear-gradient(90deg, rgba(95,223,229,0) 0 24px, rgba(95,223,229,0.32) 24px 48px, rgba(95,223,229,0) 48px 72px); background-size: 240px 100%; pointer-events: none; animation: capabilitiesBlocks 9s linear infinite; opacity: 0.85; }
.capabilities::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 68px; background: repeating-linear-gradient(90deg, rgba(167,139,250,0) 0 18px, rgba(167,139,250,0.18) 18px 36px, rgba(167,139,250,0) 36px 54px); background-size: 240px 100%; pointer-events: none; animation: capabilitiesBlocks 13s linear infinite reverse; opacity: 0.6; }
@keyframes lightSpeedDivider { from { background-position: center center, center center, 0 0; } to { background-position: center center, center center, 220px 0; } }
@keyframes corePulse { 0%,100% { opacity: 0.65; transform: scale(1);} 50% { opacity: 1; transform: scale(1.03);} }
@keyframes capabilitiesBlocks { from { background-position: 0 0; } to { background-position: 240px 0; } }
.featured-main { margin-top: 26px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; padding: 20px; border-radius: 18px; background: linear-gradient(165deg, rgba(18, 28, 42, 0.86), rgba(11, 17, 26, 0.86)); border: 1px solid rgba(95, 223, 229, 0.2); }
.featured-main-image { border-radius: 14px; overflow: hidden; background: #edf2f7; }
.featured-main-image img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.featured-main-copy { display: flex; flex-direction: column; justify-content: center; }
.featured-main-copy h3 { margin: 6px 0 12px; font-size: clamp(1.3rem, 2.4vw, 2rem); color: #edf2f7; font-weight: 700; }
.featured-main-copy p { margin: 0; color: var(--muted); }
.module-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }
.module-card { padding: 14px; border-radius: 14px; background: linear-gradient(165deg, rgba(18, 28, 42, 0.86), rgba(11, 17, 26, 0.86)); border: 1px solid rgba(159, 177, 196, 0.18); }
.module-card img { width: 100%; height: 290px; object-fit: contain; display: block; border-radius: 10px; background: #eef3f8; padding: 10px; }
.module-card h3 { margin: 12px 0 6px; color: #edf2f7; font-weight: 700; }
.module-card p { margin: 0; color: var(--muted); }
.instruction-set-header h2 { color: #edf2f7; font-weight: 700; }
.instruction-set-header h4 { color: #9fb1c4; font-weight: 400; }

/* ========== 大尺寸 Before/After 对比样式 ========== */
.compare-wrapper-large {
  margin-top: 40px;
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(95,223,229,0.2);
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: ew-resize;
}
.compare-wrapper-large.is-dragging { cursor: ew-resize; }
/* 双图同尺寸铺满容器；上层用 clip-path 裁切，拖拽时不再随窄条重算缩放 */
.compare-after-large,
.compare-before-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.compare-after-large {
  z-index: 1;
}
.compare-before-large {
  z-index: 2;
  -webkit-clip-path: inset(0 calc((1 - var(--compare-ratio, 0.5)) * 100%) 0 0);
  clip-path: inset(0 calc((1 - var(--compare-ratio, 0.5)) * 100%) 0 0);
}
.compare-before-large img,
.compare-after-large img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.compare-slider-large {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--compare-ratio, 0.5) * 100%);
  width: 3px;
  background: var(--brand-2);
  transform: translateX(-50%);
  z-index: 6;
  cursor: ew-resize;
}
.compare-slider-large::after {
  content: "⟷";
  position: absolute;
  top: 50%; left: 50%;
  width: 50px; height: 50px;
  background: var(--brand-2);
  color: #000;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(95,223,229,0.6);
}
.compare-label-large {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  z-index: 5;
}
.compare-label-large.left { left: 20px; }
.compare-label-large.right { right: 20px; }

/* ========== 滚动触发：代码块逐字展示 ==========
   这里的高亮不依赖第三方库：通过正则把 Python 关键词包进 span。
*/
.compare-code {
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid rgba(95,223,229,0.2);
  background: linear-gradient(165deg, rgba(18, 28, 42, 0.86), rgba(11, 17, 26, 0.86));
  overflow: hidden;
}
.compare-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
}
.compare-code code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 0.95;
  color: #e5e7eb;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.compare-code .tok-kw1 { color: #ff79c6; font-weight: 600; }
.compare-code .tok-kw2 { color: #ff79c6; font-weight: 600; }
.compare-code .tok-lit { color: #bd93f9; font-weight: 600; }
.compare-code .tok-num { color: #bd93f9; }
.compare-code .tok-comment { color: #6272a4; font-style: italic; }
.compare-code .tok-str { color: #f1fa8c; }
.compare-code .tok-builtin { color: #8be9fd; font-style: italic; }
.compare-code .tok-func { color: #8be9fd; }
.compare-code .tok-bracket { color: #f8f8f2; }
.compare-code .tok-op { color: #ff79c6; }
.compare-code .tok-self { color: #bd93f9; font-style: italic; }
.compare-code .tok-decorator { color: #ff79c6; }

.compare-code .code-line {
  display: block;
}
.compare-code .code-char {
  opacity: 0;
}
.compare-code.code-animate-start .code-char {
  animation: codeCharFadeIn 0.3s ease-out forwards;
}
@keyframes codeCharFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.compare-code.code-revealed .code-char {
  opacity: 1;
  animation: none;
}

.testimonial-wrap { position: relative; text-align: center; max-width: 980px; margin: 0 auto; padding: 30px 72px 10px; }
.testimonial-brand { margin: 0 0 22px; letter-spacing: 0.12em; color: #d6dde7; font-family: "Montserrat", sans-serif; font-size: 0.82rem; }
.testimonial-wrap blockquote { margin: 0 auto; max-width: 760px; color: #b4c2d0; font-size: clamp(1.05rem, 2.2vw, 1.75rem); line-height: 1.45; font-style: italic; font-weight: 500; }
.testimonial-arrow { position: absolute; top: 44%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(155, 173, 189, 0.38); background: rgba(10, 18, 28, 0.4); color: #9fb1c4; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.testimonial-arrow.right { right: 8px; border-color: rgba(45, 199, 207, 0.58); color: #5fdfe5; }
.testimonial-arrow.left { left: 8px; }
.testimonial-arrow:hover { background: rgba(24, 36, 52, 0.78); }
.testimonial-person { margin-top: 34px; }
.avatar { display: none; }
.testimonial-person h3 { font-size: 0.88rem; color: #edf2f7; font-weight: 700; }
.testimonial-person p { margin: 4px 0 0; color: #9fb1c4; font-size: 0.82rem; }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 0; background: #05090e; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding-bottom: 32px; }
.site-footer h4 { margin-bottom: 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: #5fdfe5; font-family: "Montserrat", sans-serif; font-weight: 600; }
.site-footer a { display: block; margin-bottom: 6px; }
.site-footer p { color: var(--muted); margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid rgba(159, 177, 196, 0.12); }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { color: var(--muted); margin: 0; font-size: 0.9rem; white-space: nowrap; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-top: 1px solid rgba(159, 177, 196, 0.12); }
.footer-bottom .copyright { margin: 0; font-size: 0.85rem; color: var(--muted); }
.footer-bottom .compliance-link { display: inline-block; font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer-bottom .compliance-link:hover { color: var(--brand-2); }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { flex-wrap: wrap; }
  .footer-brand p { white-space: normal; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .featured-main { grid-template-columns: 1fr; }
  .module-grid, .why-grid { grid-template-columns: 1fr; }
  .testimonial-wrap { padding: 26px 52px 6px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 640px) {
  .nav-actions { display: none; }
  .hero { padding-top: 62px; }
  .metrics-grid, .module-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .capabilities { padding-top: 138px; }
  .capabilities::before {
    top: 14px; height: 94px;
    background: repeating-linear-gradient(90deg, rgba(95,223,229,0) 0 20px, rgba(95,223,229,0.32) 20px 40px, rgba(95,223,229,0) 40px 60px);
    background-size: 240px 100%;
    animation: capabilitiesBlocks 11s linear infinite;
    opacity: 0.75;
  }
  .capabilities::after { top: 112px; animation: capabilitiesBlocks 15s linear infinite reverse; opacity: 0.55; }
  .testimonial-wrap { padding: 18px 6px 0; }
  .testimonial-arrow { display: none; }
  .testimonial-wrap blockquote { font-size: 0.92rem; }
  .compare-wrapper-large { height: 320px; }
}

/* ── Mega Menu ──────────────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  left: 0; right: 0;
  background: rgba(5,12,24,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(159,177,196,0.12);
  padding: 28px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 9;
}
.site-header:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  pointer-events: auto;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.mega-col h5 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5fdfe5;
  font-family: "Montserrat", sans-serif;
}
.mega-col-products h5 { text-align: left; }
.mega-products-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mega-products-inner ul { white-space: nowrap; }
.mega-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.mega-col li { margin-bottom: 6px; }
.mega-col a {
  color: #c3cfda;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.mega-col a:hover { color: #5fdfe5; }
.mega-menu-grid > .mega-col:not(:first-child) { border-left: 3px solid rgba(159,177,196,0.18); padding-left: 32px; }
.mega-empty { color: #64748b; font-size: 0.85rem; font-style: italic; margin: 0; }
.mega-coming-soon { color: #64748b; font-size: 0.85rem; font-style: italic; margin: 8px 0 0; }
@media (max-width: 960px) {
  .mega-menu { display: none; }
}
  