﻿:root {
  --background: #fafafa;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #0052ff;
  --accent-secondary: #4d7cff;
  --accent-foreground: #ffffff;
  --ring: #0052ff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container: min(72rem, calc(100% - 48px));
  --header-offset: clamp(74px, 8vw, 88px);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 14px rgba(0, 82, 255, 0.25);
  --shadow-accent-lg: 0 8px 24px rgba(0, 82, 255, 0.35);
}

[data-theme="dark"] {
  /* 中性偏暖的深灰底，减少 slate 蓝味 */
  --background: #121214;
  --foreground: #ececee;
  --muted: #1a1a1e;
  --muted-foreground: #9ca3af;
  --card: #1B1B1D;
  --border: #262628;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--foreground);
  background: var(--background);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.noise,
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -6;
}

.noise {
  opacity: 0.03;
  background-image: radial-gradient(circle at 20% 20%, rgba(0, 82, 255, 0.07) 0, transparent 42%), radial-gradient(circle at 80% 65%, rgba(77, 124, 255, 0.08) 0, transparent 46%);
}

.grid-bg {
  opacity: 0.05;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

[data-theme="dark"] .grid-bg {
  opacity: 0.055;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

[data-theme="dark"] .noise {
  opacity: 0.02;
  background-image: radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.05) 0, transparent 44%), radial-gradient(circle at 82% 68%, rgba(120, 125, 145, 0.05) 0, transparent 46%);
}

[data-theme="dark"] body::before {
  background: rgba(255, 255, 255, 0.038);
}

[data-theme="dark"] body::after {
  background: rgba(160, 162, 175, 0.045);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(140px);
  pointer-events: none;
  z-index: -5;
}

body::before {
  width: 700px;
  height: 700px;
  top: -240px;
  right: -160px;
  background: rgba(0, 82, 255, 0.09);
}

body::after {
  width: 620px;
  height: 620px;
  left: -220px;
  bottom: -260px;
  background: rgba(77, 124, 255, 0.08);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: all 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 90%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-grid {
  min-height: 74px;
  display: grid;
  align-items: center;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  border: 1px solid rgba(0, 82, 255, 0.35);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: var(--shadow-accent);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
}

.menu-icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: inline;
}

.nav--center,
.header-actions {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 96%, transparent);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a:not(.btn) {
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--muted-foreground);
}

.mobile-nav a:not(.btn):hover {
  background: var(--muted);
  color: var(--foreground);
}

.btn {
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.faq-item summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 5px color-mix(in srgb, var(--background) 70%, transparent);
}

.btn-primary {
  color: var(--accent-foreground);
  border-color: rgba(0, 82, 255, 0.2);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: var(--shadow-accent-lg);
}

.btn-ghost,
.btn-outline {
  color: var(--foreground);
  border-color: var(--border);
  background: var(--card);
}

.btn-ghost:hover,
.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 82, 255, 0.35);
  background: color-mix(in srgb, var(--muted) 75%, white);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.btn-lg {
  min-height: 42px;
  padding: 0 40px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.hero--marketing {
  position: relative;
  padding: var(--header-offset) 0 clamp(48px, 7vw, 88px);
  /* 透视/倾斜后截图会略超出盒子，不能用 hidden 否则右侧会被硬裁切 */
  overflow: visible;
}

.hero--marketing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 12% 12%, rgba(0, 82, 255, 0.08) 0, transparent 34%), radial-gradient(circle at 78% 30%, rgba(77, 124, 255, 0.1) 0, transparent 40%);
}

.hero-copy {
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
}

.hero-title--center {
  margin: 0 auto 16px;
  max-width: 20ch;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-accent,
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub--center {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.75;
}

/* 首屏按钮上方：与副标题同族字体，图标用品牌主色呼应主按钮与标题强调色 */
.hero-kicker-list {
  list-style: none;
  margin: clamp(14px, 2.4vw, 22px) auto clamp(12px, 2vw, 18px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  max-width: 52rem;
}

.hero-kicker-list__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-kicker-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: clamp(0.8rem, 1.4vw, 0.88rem);
  line-height: 1;
  opacity: 0.92;
}

.hero-kicker-list__icon i {
  display: block;
}

.hero-kicker-list__label {
  font-family: inherit;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--foreground) 22%, var(--muted-foreground));
  white-space: nowrap;
}

[data-theme="dark"] .hero-kicker-list__icon {
  color: color-mix(in srgb, var(--accent) 88%, white);
  opacity: 0.95;
}

[data-theme="dark"] .hero-kicker-list__label {
  color: color-mix(in srgb, var(--foreground) 35%, var(--muted-foreground));
}

.tag-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 255, 0.25);
  background: rgba(0, 82, 255, 0.05);
  color: color-mix(in srgb, var(--accent) 72%, var(--foreground));
  padding: 7px 14px;
  font-size: 0.8rem;
}

.hero-cta--center {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta__primary-wrap {
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(0, 82, 255, 0.45), rgba(77, 124, 255, 0.14));
}

.hero-stage {
  position: relative;
}

.hero-stage .container--hero {
  position: relative;
  z-index: 2;
}

/* 首屏底部：透视 + 倾斜的产品截图（对标 Tailark hero 底部展示，无额外 UI） */
.hero-product {
  position: relative;
  z-index: 1;
  /* 左右大留白，避免倾斜后在 body overflow-x:hidden 下像被裁切 */
  width: 100%;
  max-width: 100%;
  margin: clamp(22px, 4vw, 44px) 0 0;
  padding-inline: clamp(28px, 10vw, 140px);
  box-sizing: border-box;
  pointer-events: none;
}

.hero-product__fade-y {
  max-width: min(980px, 100%);
  margin: 0 auto;
  transform: scale(0.76);
  transform-origin: 50% 0;
}

.hero-product__perspective {
  perspective: 1400px;
  margin-right: 0;
  padding-left: 0;
}

.hero-product__rotate-x {
  transform: rotateX(13deg);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

.hero-product__skew {
  position: relative;
  transform: skewX(0.16rad);
  min-height: clamp(96px, 28vw, 12rem);
  /* 阴影随倾斜轮廓走，左右不易被「切平」 */
  filter: drop-shadow(0 40px 70px rgba(15, 23, 42, 0.14))
    drop-shadow(0 16px 32px rgba(15, 23, 42, 0.09));
}

.hero-product__shot {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 2880px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: none;
  /* 参考 Acme 式仪表盘：截图自下而上逐渐透明，融入页面底色 */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.98) 52%,
    rgba(0, 0, 0, 0.75) 66%,
    rgba(0, 0, 0, 0.35) 80%,
    rgba(0, 0, 0, 0.08) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.98) 52%,
    rgba(0, 0, 0, 0.75) 66%,
    rgba(0, 0, 0, 0.35) 80%,
    rgba(0, 0, 0, 0.08) 92%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

[data-theme="dark"] .hero-product__skew {
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55))
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}

.hero-product__shot--dark {
  display: none;
}

[data-theme="dark"] .hero-product__shot--light {
  display: none;
}

[data-theme="dark"] .hero-product__shot--dark {
  display: block;
}

@media (min-width: 1024px) {
  .hero-product {
    margin-top: clamp(28px, 4vw, 52px);
    padding-inline: clamp(40px, 12vw, 160px);
  }

  .hero-product__fade-y {
    max-width: min(1100px, 100%);
    transform: scale(0.84);
  }

  .hero-product__skew {
    min-height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product__fade-y {
    transform: none;
    max-width: min(960px, 100%);
  }

  .hero-product__rotate-x {
    transform: none;
  }

  .hero-product__skew {
    transform: none;
    min-height: 0;
    filter: none;
  }

  .hero-product__shot {
    box-shadow: var(--shadow-xl);
  }
}

.hero-logo-cloud {
  margin: clamp(28px, 4vw, 44px) auto 0;
  width: min(1120px, 100%);
}

.hero-logo-cloud--benefits {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

/* 首屏底部预览：与产品截图拉开间距，不加顶边线以免与截图区重复 */
.hero-logo-cloud--hero {
  position: relative;
  z-index: 1;
  margin-top: clamp(16px, 3vw, 36px);
  padding-bottom: 0;
}

.hero-logo-cloud--hero .hero-logo-cloud__title {
  margin-bottom: 2rem;
}

.hero-logo-cloud--hero .hero-logo-cloud__divider {
  margin: 20px auto;
}

.hero-logo-cloud__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.65;
  color: var(--foreground);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.hero-logo-cloud__title span {
  color: var(--muted-foreground);
}

.hero-logo-cloud__title strong {
  color: var(--foreground);
  font-weight: 600;
}

.hero-logo-cloud__divider {
  width: min(420px, 90%);
  height: 1px;
  margin: 14px auto;
  background: var(--border);
  mask-image: linear-gradient(to right, transparent, black, transparent);
}

.hero-logo-cloud__mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-logo-cloud__track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: logoCloudMarquee 26s linear infinite reverse;
}

.hero-logo-cloud__track img {
  height: 20px;
  width: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

[data-theme="dark"] .hero-logo-cloud__track img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.hero-scroll-gallery {
  position: relative;
  width: min(1120px, 100%);
  margin: clamp(28px, 4vw, 44px) auto 0;
  overflow: hidden;
  border-radius: 16px;
}

.hero-scroll-gallery__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 84px;
  z-index: 2;
  pointer-events: none;
}

.hero-scroll-gallery__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--background), rgba(250, 250, 250, 0));
}

.hero-scroll-gallery__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--background), rgba(250, 250, 250, 0));
}

[data-theme="dark"] .hero-scroll-gallery__fade--left {
  background: linear-gradient(90deg, var(--background), transparent);
}

[data-theme="dark"] .hero-scroll-gallery__fade--right {
  background: linear-gradient(270deg, var(--background), transparent);
}

.hero-scroll-gallery__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: heroImageMarquee 34s linear infinite;
}

.hero-scroll-gallery__track img {
  width: clamp(220px, 24vw, 310px);
  height: clamp(126px, 14vw, 178px);
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-showcase {
  width: min(1020px, 100%);
  margin: 48px auto 0;
  position: relative;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 22px;
  background: radial-gradient(circle at center, rgba(0, 82, 255, 0.12), transparent 60%);
  filter: blur(25px);
  z-index: 0;
}

.hero-showcase-shot {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: -38px auto auto -48px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 2px dashed rgba(0, 82, 255, 0.3);
  animation: orbit 60s linear infinite;
}

.section {
  position: relative;
  padding: clamp(88px, 11vw, 176px) 0;
}

/* Consistent separators between all main sections */
.page-main > section + section {
  border-top: 1px solid var(--border);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-alt::before {
  background: linear-gradient(180deg, rgba(0, 82, 255, 0.03), transparent 30%);
}

/* Strong visual separation for infrastructure section */
#tech.section-alt {
  position: relative;
  background: color-mix(in srgb, var(--muted) 72%, white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#tech.section-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme="dark"] #tech.section-alt {
  background: var(--muted);
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}

[data-theme="dark"] #tech.section-alt::after {
  opacity: 0.14;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.32) 1px, transparent 1px);
}

.section-head {
  margin-bottom: 34px;
  max-width: 760px;
}

.section-head::before {
  content: none;
  display: none;
}

/* 英文区块标签：胶囊 + 图标（替代原 data-kicker 伪元素） */
.section-head__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 255, 0.28);
  background: rgba(0, 82, 255, 0.06);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.section-head__pill > i {
  font-size: 11px;
  line-height: 1;
  opacity: 0.92;
}

.section-head__pill-label {
  line-height: 1;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0;
  color: var(--muted-foreground);
}

.section-benefits {
  background: #f8f9fb;
}

[data-theme="dark"] .section-benefits {
  background: var(--muted);
}

.benefits-split {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .benefits-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.benefits-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 255, 0.22);
  background: rgba(0, 82, 255, 0.06);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.benefits-kicker > i {
  font-size: 11px;
  line-height: 1;
  opacity: 0.92;
}

.benefits-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.benefits-sub {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  color: var(--muted-foreground);
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.benefits-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefits-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: var(--shadow-accent);
  margin-top: 2px;
}

.benefits-item__icon i.fa-solid {
  font-weight: 900 !important;
}

.benefits-item__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.benefits-item__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.benefits-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 8px;
}

.benefits-mock {
  width: min(100%, 380px);
  min-height: 320px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 24px 60px rgba(15, 23, 42, 0.08);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[data-theme="dark"] .benefits-mock {
  box-shadow: var(--shadow-lg), 0 24px 50px rgba(0, 0, 0, 0.35);
}

.benefits-mock__bar {
  height: 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--muted-foreground) 18%, transparent);
}

.benefits-mock__bar--long {
  width: 100%;
}

.benefits-mock__bar--mid {
  width: 78%;
}

.benefits-mock__bar--short {
  width: 52%;
}

.benefits-mock__media {
  margin-top: 6px;
  flex: 1;
  min-height: 132px;
  border-radius: 14px;
  border: 2px dashed rgba(0, 82, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.08), rgba(77, 124, 255, 0.06));
}

.section-head--gallery4 {
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.section-head--gallery4::before {
  display: none;
  content: none;
}

.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 255, 0.28);
  background: rgba(0, 82, 255, 0.06);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.section-head__kicker > i {
  font-size: 11px;
  line-height: 1;
  opacity: 0.92;
}

.section-head--gallery4 .section-lead {
  max-width: 680px;
}

.gallery4-nav {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.gallery4-nav__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.gallery4-nav__btn:hover:not(:disabled) {
  border-color: rgba(0, 82, 255, 0.4);
  color: var(--accent);
  transform: translateY(-1px);
}

.gallery4-nav__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery4 {
  width: 100%;
}

.gallery4-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(20px, calc((100vw - 1200px) / 2 + 20px));
  scroll-padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
}

.gallery4-track::-webkit-scrollbar {
  display: none;
}

.gallery4-item {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
}

.gallery4-item a {
  display: block;
}

.gallery4-card {
  position: relative;
  min-height: 27rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery4-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}

.gallery4-item:hover .gallery4-card img {
  transform: scale(1.06);
}

.gallery4-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 20%, rgba(15, 23, 42, 0.5) 62%, rgba(15, 23, 42, 0.88) 100%);
}

.gallery4-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: #fff;
}

.gallery4-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.gallery4-content p {
  margin: 0 0 20px;
  color: rgba(241, 245, 249, 0.9);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.gallery4-content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.gallery4-content span i {
  transition: transform 0.2s ease-out;
}

.gallery4-item:hover .gallery4-content span i {
  transform: translateX(4px);
}

.gallery4-dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery4-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  transition: all 0.2s ease-out;
}

.gallery4-dots button.is-active {
  width: 18px;
  background: var(--accent);
}

.feature-list,
.tech-list,
.case-list,
.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list,
.tech-list,
.case-list,
.quote-list,
.pricing-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

.feature-list {
  gap: clamp(18px, 2.2vw, 22px);
}

@media (min-width: 960px) {
  .tech-list,
  .case-list,
  .quote-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.feature-row,
.tech-item,
.case-card,
.quote-card,
.price-card,
.faq-item,
.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.feature-row:hover,
.tech-item:hover,
.case-card:hover,
.quote-card:hover,
.price-card:hover,
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease-out);
}

.feature-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .feature-row {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.feature-row__badge {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 92%, var(--foreground));
  border: 1px solid var(--border);
}

.feature-row__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.feature-row__titleline h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.25;
}

.feature-row__meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feature-row__desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.feature-tags {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags li {
  margin: 0;
}

.feature-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 88%, transparent);
  border: 1px solid var(--border);
}

.feature-tag::before {
  content: "#";
  margin-right: 1px;
  opacity: 0.5;
  font-weight: 600;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.feature-row--tone-0 .feature-icon {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  box-shadow: 0 6px 18px rgba(0, 82, 255, 0.12);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.feature-row--tone-1 .feature-icon {
  color: #6366f1;
  background: color-mix(in srgb, #6366f1 14%, var(--card));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.14);
  border-color: color-mix(in srgb, #6366f1 22%, transparent);
}

.feature-row--tone-2 .feature-icon {
  color: #0d9488;
  background: color-mix(in srgb, #0d9488 12%, var(--card));
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12);
  border-color: color-mix(in srgb, #0d9488 20%, transparent);
}

.feature-row--tone-3 .feature-icon {
  color: #7c3aed;
  background: color-mix(in srgb, #7c3aed 12%, var(--card));
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
  border-color: color-mix(in srgb, #7c3aed 20%, transparent);
}

.tech-item__desc,
.case-card p,
.price-note,
.price-features,
.quote-card > p,
.faq-item p {
  color: var(--muted-foreground);
}

.case-card,
.quote-card,
.price-card {
  padding: 24px;
}

.quote-icon,
.faq-chevron,
.case-top i {
  color: var(--accent);
}

/* 技术引擎卡片：纵向布局 + 与「核心能力」一致的圆角图标底（见 feature-icon） */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 28px) clamp(22px, 3vw, 28px);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .tech-item {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.tech-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-bottom: 16px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  box-shadow: 0 6px 18px rgba(0, 82, 255, 0.12);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

[data-theme="dark"] .tech-item__icon {
  box-shadow: 0 6px 18px rgba(0, 82, 255, 0.12);
}

.tech-item__title {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--foreground);
}

.tech-item__desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-badge {
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 82, 255, 0.3);
  background: rgba(0, 82, 255, 0.06);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 8px 0;
  font-size: 1.08rem;
}

.case-stats {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-stats span {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.74rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card h3 {
  margin: 0;
}

.price-card-featured {
  position: relative;
  transform: translateY(-10px);
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-secondary)) border-box;
  box-shadow: var(--shadow-accent-lg);
}

.price-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.price-tag {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-tag .currency {
  font-size: 1rem;
  vertical-align: super;
  margin-right: 4px;
  color: var(--muted-foreground);
}

.price-tag .suffix {
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

.price-features {
  list-style: none;
  margin: 0;
  padding: 8px 0 14px;
  display: grid;
  gap: 8px;
}

.price-features i {
  color: var(--accent);
}

.price-features .muted {
  opacity: 0.35;
}

.quote-card {
  position: relative;
}

.quote-icon {
  font-size: 2rem;
  opacity: 0.35;
}

.faq-item {
  padding: 10px 16px 16px;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--foreground);
  color: #f8fafc;
  padding: clamp(84px, 10vw, 132px) 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 32px 32px;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.22);
  filter: blur(140px);
  right: -120px;
  top: -180px;
}

.cta-inner {
  display: flex;
  justify-content: center;
}

.cta-actions {
  width: min(900px, 100%);
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.15;
}

.cta-sub {
  margin: 14px auto 0;
  max-width: 60ch;
  color: rgba(241, 245, 249, 0.86);
}

.cta-action-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band .btn-ghost {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.28);
  background: rgba(248, 250, 252, 0.08);
}

/* 暗色：CTA 不用 --foreground 作底（该 token 在暗色下为浅色），避免整段底部发灰、标题不可读 */
[data-theme="dark"] .cta-band {
  background: linear-gradient(168deg, #1e1e24 0%, #17171b 40%, #121214 100%);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cta-band::before {
  opacity: 0.035;
  background-image: radial-gradient(circle, rgba(248, 250, 252, 0.9) 1px, transparent 1px);
}

[data-theme="dark"] .cta-band::after {
  opacity: 0.85;
  right: -100px;
  top: -160px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 30px;
  background: color-mix(in srgb, var(--muted) 48%, white);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 120% 55% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(180deg, #1c1c20 0%, #141416 52%, #0e0e10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-tag,
.footer-col ul,
.footer-bottom {
  color: var(--muted-foreground);
}

.footer-heading {
  display: block;
  margin-bottom: 10px;
  color: var(--foreground);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 16px;
  font-size: 0.78rem;
}

.footer-copy {
  max-width: min(52rem, 100%);
  line-height: 1.55;
}

.footer-bottom-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  flex-shrink: 0;
}

.footer-bottom-sep {
  opacity: 0.45;
  user-select: none;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .footer-tag,
[data-theme="dark"] .footer-col ul,
[data-theme="dark"] .footer-bottom {
  color: #cbd5e1;
}

[data-theme="dark"] .footer-bottom-links a:hover,
[data-theme="dark"] .footer-bottom-links a:focus-visible {
  color: #f1f5f9;
}

.theme-toggle {
  min-width: 36px;
  padding: 0;
}

.auth-main.hero--marketing {
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top, 0px)) 0 max(28px, env(safe-area-inset-bottom, 0px));
}

.auth-layout {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.auth-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  margin-top: 10px;
}

.auth-back-home:hover,
.auth-back-home:focus-visible {
  color: var(--accent);
}

.auth-back-home:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}

.auth-back-home i {
  font-size: 0.85em;
  opacity: 0.9;
}

.auth-card-shell {
  position: relative;
  width: min(100%, 430px);
}

.auth-card-glow {
  position: absolute;
  inset: -22% -14%;
  border-radius: 999px;
  filter: blur(100px);
  background: radial-gradient(circle at center, rgba(0, 82, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  box-shadow: var(--shadow-xl);
  font-size: 12px;
}

.auth-card__head {
  text-align: center;
  margin-bottom: 16px;
}

.auth-card__head .logo-mark {
  margin: 0 auto 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%; 
  box-shadow:none;
}
.auth-card__head i{
  font-size: 1.5rem;
}

.auth-card__head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}
.auth-card__head p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.35;
}

.auth-card .btn {
  font-size: 1rem;
  margin-top: 8px;
  min-height: 45px;
}

.auth-form {
  display: none;
  gap: 10px;
}

.auth-form.is-active {
  display: grid;
}

.auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-field > span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-input-wrap {
  min-height: 45px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 55%, white);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.auth-input-wrap i {
  flex-shrink: 0;
  color: #64748b;
  font-size: 14px;
}

.auth-input-wrap:focus-within {
  background: transparent;
  border-color: rgba(0, 82, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 82, 255, 0.35), 0 0 0 4px rgba(0, 82, 255, 0.14);
}

.auth-input-wrap.is-error {
  border-color: rgba(239, 68, 68, 0.72);
  background: rgba(239, 68, 68, 0.09);
}

[data-theme="dark"] .auth-input-wrap.is-error {
  background: rgba(239, 68, 68, 0.16);
}

.auth-input-wrap input {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
}

.auth-input-wrap input::placeholder {
  color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
}

.auth-input-wrap input::selection {
  background-color: transparent;
}

.auth-input-wrap input::-moz-selection {
  background-color: transparent;
}

.auth-pass-toggle,
.auth-code-btn,
.auth-link-btn {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: inherit;
}

.auth-code-btn {
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 32px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.auth-code-btn:hover:not(:disabled) {
  color: color-mix(in srgb, var(--accent) 82%, white);
}

.auth-code-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.auth-link {
  color: var(--accent);
  font-size: 0.875rem;
}

.auth-register-entry {
  margin: 0;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 20px;
}

.auth-oauth {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.auth-oauth__label {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.06em;
}

.auth-oauth__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  flex-wrap: wrap;
}

.auth-oauth__btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: color-mix(in srgb, #64748b 88%, #1e293b);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms;
}

.auth-oauth__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.auth-oauth__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent);
}

.auth-oauth__btn i {
  font-size: 1.2rem;
  line-height: 1;
}

.auth-oauth__icon-svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

[data-theme="dark"] .auth-oauth__btn {
  background: color-mix(in srgb, #94a3b8 72%, #334155);
}

.auth-toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translate(-50%, -12px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  border: 0;
  background: #111827;
  padding: 13px 14px 13px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  z-index: 120;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-toast__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fff;
}

.auth-toast__icon i {
  font-size: 20px;
}

.auth-toast__text {
  min-width: 0;
}

.auth-toast.is-error {
  background: #111827;
}

.auth-toast.is-success {
  background: #111827;
}

.auth-toast.is-error .auth-toast__icon {
  color: #fff;
}

.auth-toast.is-success .auth-toast__icon {
  color: #fff;
}

@media (max-width: 640px) {
  .auth-toast {
    top: 14px;
    max-width: calc(100vw - 24px);
    padding: 12px 12px 12px 14px;
    font-size: 14px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 980px) {
  .nav-grid {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: none;
  }

  .nav--center {
    display: inline-flex;
    justify-content: center;
    gap: clamp(14px, 2vw, 28px);
    color: var(--muted-foreground);
    font-size: 0.9rem;
  }

  .nav--center a:hover {
    color: var(--foreground);
  }

  .header-actions {
    display: inline-flex;
    gap: 8px;
  }
}

@media (max-width: 980px) {
  .section-head--gallery4 {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-layout {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100%, calc(100% - 30px));
  }

  .hero-product {
    margin-top: clamp(16px, 4vw, 28px);
    padding-bottom: clamp(16px, 5vw, 40px);
    /* 减少左右留白，配合放大 scale，让截图在窄屏更醒目 */
    padding-inline: clamp(8px, 3.5vw, 20px);
  }

  .hero-logo-cloud--hero {
    margin-top: clamp(12px, 3vw, 24px);
  }

  .hero-kicker-list {
    gap: 10px 18px;
  }

  .hero-kicker-list__label {
    font-size: clamp(0.76rem, 2.8vw, 0.84rem);
  }

  .hero-kicker-list__icon {
    font-size: 0.8rem;
  }

  /* Hero 主 CTA：移动端同一行，Grid 两列等宽（避免 flex + inline-flex 宽度不一致） */
  .hero-cta--center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .hero-cta--center .hero-cta__primary-wrap {
    min-width: 0;
    display: flex;
    box-sizing: border-box;
  }

  .hero-cta--center .hero-cta__primary-wrap .btn {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-cta--center > .btn-hero-secondary {
    min-width: 0;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .gallery4-track {
    padding-inline: 16px;
    scroll-padding-left: 16px;
  }

  .gallery4-item {
    flex-basis: min(300px, 84vw);
  }

  .gallery4-card {
    min-height: 22rem;
  }

  .hero-logo-cloud {
    width: 100%;
    margin-top: 20px;
  }

  .hero-logo-cloud__title {
    font-size: clamp(1.125rem, 4.5vw, 1.45rem);
    line-height: 1.5;
  }

  .hero-logo-cloud__track {
    gap: 28px;
    animation-duration: 22s;
  }

  .hero-logo-cloud__track img {
    height: 16px;
  }

  .hero-showcase {
    margin-top: 34px;
  }

}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero-product__fade-y {
    max-width: 100%;
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes heroImageMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes logoCloudMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Testimonials: optimize to match provided reference */
#testimonials .quote-list {
  gap: 24px;
}

#testimonials .quote-card {
  position: relative;
  padding: 26px 26px 22px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

#testimonials .quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5b7cfa, #4d7cff);
}

#testimonials .quote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

#testimonials .quote-icon {
  display: inline-block;
  font-size: 1.8rem;
  line-height: 1;
  color: #cbd5e1;
  margin-bottom: 8px;
  opacity: 0.85;
}

#testimonials .quote-card > p {
  margin: 0 0 24px;
  color: #1f2937;
  font-size: clamp(1rem, 1.4vw, 1.04rem);
  line-height: 1.55;
  font-style: italic;
  letter-spacing: 0.01em;
}

#testimonials .quote-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

#testimonials .avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

#testimonials .quote-meta strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #111827;
}

#testimonials .quote-meta span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  #testimonials .quote-list {
    gap: 16px;
  }

  #testimonials .quote-card {
    padding: 20px 18px 18px;
  }

  #testimonials .quote-card > p {
    margin-bottom: 18px;
  }
}

[data-theme="dark"] #testimonials .quote-card {
  border-color: var(--border);
  background: var(--card);
}

[data-theme="dark"] #testimonials .quote-card::before {
  background: linear-gradient(90deg, #4d7cff, #7aa2ff);
}

[data-theme="dark"] #testimonials .quote-icon {
  color: #52525b;
}

[data-theme="dark"] #testimonials .quote-card > p {
  color: #d4d4d8;
}

[data-theme="dark"] #testimonials .avatar-img {
  border-color: var(--border);
}

[data-theme="dark"] #testimonials .quote-meta strong {
  color: #f1f5f9;
}

[data-theme="dark"] #testimonials .quote-meta span {
  color: #94a3b8;
}
