:root {
  --bg: #f6f4ff;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(109, 59, 245, 0.14);
  --text: #1c1830;
  --text-soft: #4a4566;
  --text-muted: #6f6a8a;
  --primary: #6d3bf5;
  --primary-2: #b14bf4;
  --primary-3: #ff5fa2;
  --accent: #23c8d6;
  --shadow-sm: 0 2px 8px rgba(38, 20, 90, 0.06);
  --shadow-md: 0 12px 32px rgba(38, 20, 90, 0.10);
  --shadow-lg: 0 24px 64px rgba(38, 20, 90, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b18;
    --bg-alt: #131022;
    --surface: rgba(30, 25, 52, 0.66);
    --surface-solid: #1a1530;
    --border: rgba(160, 130, 255, 0.18);
    --text: #f1eeff;
    --text-soft: #c7c0e4;
    --text-muted: #9a93bb;
    --primary: #8b5cff;
    --primary-2: #c46bff;
    --primary-3: #ff6fae;
    --accent: #3fe0ec;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(109, 59, 245, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 95, 162, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 100%, rgba(35, 200, 214, 0.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--primary-2);
}

a:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--primary), var(--primary-3));
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1.02rem;
  color: var(--text-soft);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

blockquote {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(109, 59, 245, 0.24);
  color: var(--text);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(109, 59, 245, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(109, 59, 245, 0.5);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(92deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  background: rgba(109, 59, 245, 0.10);
  transform: translateY(-1px);
}

/* ---------- Section base ---------- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 20px;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 88px 20px 96px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(109, 59, 245, 0.92) 0%, rgba(177, 75, 244, 0.88) 45%, rgba(255, 95, 162, 0.85) 100%);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -240px;
  right: -140px;
  background: radial-gradient(circle, rgba(35, 200, 214, 0.55), transparent 70%);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -28px, 0) scale(1.08); }
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(40, 10, 90, 0.35);
  animation: rise 0.8s var(--ease) both;
}

.hero-lead {
  max-width: 820px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(40, 10, 90, 0.28);
  animation: rise 0.8s 0.12s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: rise 0.8s 0.24s var(--ease) both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #f3ecff 100%);
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(30, 5, 70, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(30, 5, 70, 0.38);
  color: var(--primary-2);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(30, 5, 70, 0.3);
}

/* ---------- Cards ---------- */
.brand-intro,
.products,
.solutions,
.cases,
.news,
.articles,
.faq,
.howto,
.contact,
.sitemap,
.links,
.legal {
  position: relative;
}

.brand-intro > p,
.products > p,
.solutions > p,
.contact > p {
  max-width: 860px;
}

/* Card-like blocks for content groups */
.brand-intro h3,
.products h3,
.solutions h3,
.cases h3,
.news h3,
.howto h3 {
  margin-top: 1.6em;
  padding: 18px 22px 4px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand-intro h3 + p,
.products h3 + p,
.solutions h3 + p,
.cases h3 + p,
.news h3 + p,
.howto h3 + p {
  margin-top: 0;
  padding: 0 22px 20px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand-intro h3:hover,
.brand-intro h3 + p:hover,
.products h3:hover,
.products h3 + p:hover,
.solutions h3:hover,
.solutions h3 + p:hover,
.cases h3:hover,
.cases h3 + p:hover,
.news h3:hover,
.news h3 + p:hover,
.howto h3:hover,
.howto h3 + p:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* h4 subsections inside cards */
.brand-intro h4,
.products h4,
.solutions h4,
.howto h4 {
  margin: 1.4em 0 0.4em;
  padding-left: 14px;
  border-left: 3px solid var(--primary-2);
  color: var(--text);
}

/* ---------- Blockquote (客户评价) ---------- */
.cases blockquote {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.cases blockquote p {
  margin: 0;
  padding: 16px 20px 16px 48px;
  position: relative;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-style: italic;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cases blockquote p::before {
  content: "\201C";
  position: absolute;
  left: 14px;
  top: 2px;
  font-size: 2.4rem;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cases blockquote p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 59, 245, 0.35);
}

/* ---------- Articles ---------- */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.articles > h2 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.articles article {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.articles article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(109, 59, 245, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.articles article:hover,
.articles article:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109, 59, 245, 0.35);
}

.articles article:hover::after {
  opacity: 1;
}

.articles article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.articles article h3:hover {
  transform: none;
  box-shadow: none;
}

.articles .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.articles article p {
  flex: 1 0 auto;
  font-size: 0.94rem;
}

.articles article a {
  align-self: flex-start;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(109, 59, 245, 0.10);
  color: var(--primary);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.articles article a::after {
  content: " \2192";
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.articles article a:hover,
.articles article a:focus-visible {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  transform: translateX(2px);
}

.articles article a:hover::after {
  transform: translateX(4px);
}

/* ---------- FAQ ---------- */
.faq h3 {
  margin: 18px 0 0;
  padding: 18px 22px 18px 50px;
  position: relative;
  font-size: 1rem;
  cursor: default;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq h3::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: 0 4px 12px rgba(109, 59, 245, 0.35);
}

.faq h3:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 59, 245, 0.32);
}

.faq h3 + p {
  margin: 8px 0 0;
  padding: 16px 22px 16px 50px;
  position: relative;
  font-size: 0.94rem;
  color: var(--text-soft);
  border-left: 3px solid rgba(109, 59, 245, 0.35);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(109, 59, 245, 0.04);
  transition: background 0.3s var(--ease);
}

.faq h3 + p::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  border-radius: 8px;
  background: rgba(109, 59, 245, 0.12);
}

.faq h3 + p:hover {
  background: rgba(109, 59, 245, 0.08);
}

/* ---------- Contact ---------- */
.contact {
  text-align: left;
}

.contact p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin: 0 0 10px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 59, 245, 0.3);
}

/* ---------- Sitemap & Links ---------- */
.sitemap ul,
.links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sitemap a,
.links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sitemap a:hover,
.sitemap a:focus-visible,
.links a:hover,
.links a:focus-visible {
  transform: translateY(-3px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(109, 59, 245, 0.35);
}

/* ---------- Legal ---------- */
.legal h3 {
  margin-top: 1.5em;
  font-size: 1.05rem;
  color: var(--primary);
}

.legal h3 + p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 36px 20px 44px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(109, 59, 245, 0.06));
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.site-footer p:first-child {
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- Scroll reveal ---------- */
@supports (animation-timeline: view()) {
  section,
  .articles article,
  .faq h3,
  .cases blockquote p {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 7px 12px;
  }

  .hero {
    padding: 64px 18px 72px;
  }

  section {
    padding: 44px 18px;
  }

  .articles {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 52px 16px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 13px 20px;
  }

  section {
    padding: 38px 16px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  .articles {
    grid-template-columns: 1fr;
  }

  .brand-intro h3,
  .products h3,
  .solutions h3,
  .cases h3,
  .news h3,
  .howto h3 {
    padding: 14px 16px 2px;
  }

  .brand-intro h3 + p,
  .products h3 + p,
  .solutions h3 + p,
  .cases h3 + p,
  .news h3 + p,
  .howto h3 + p {
    padding: 0 16px 16px;
  }

  .faq h3 {
    padding: 15px 16px 15px 46px;
  }

  .faq h3 + p {
    padding: 14px 16px 14px 46px;
  }

  .contact p {
    padding: 11px 14px;
  }

  .sitemap ul,
  .links ul {
    gap: 8px;
  }

  .sitemap a,
  .links a {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}

@media (hover: none) {
  .articles article:hover,
  .faq h3:hover,
  .contact p:hover,
  .sitemap a:hover,
  .links a:hover,
  .cases blockquote p:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .sitemap,
  .links {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  section {
    padding: 16px 0;
    border-top: none;
  }
}