:root {
  --bg: #0f1020;
  --bg-alt: #16172b;
  --bg-soft: #1d1f38;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #eef0ff;
  --text-soft: #b9bcd6;
  --text-dim: #8a8dab;
  --brand: #7c5cff;
  --brand-2: #ff5c8a;
  --brand-3: #29d3c2;
  --accent: #ffb84d;
  --grad-main: linear-gradient(135deg, #7c5cff 0%, #b04cff 45%, #ff5c8a 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 92, 138, 0.14));
  --grad-banner: radial-gradient(circle at 18% 20%, rgba(124, 92, 255, 0.55), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(255, 92, 138, 0.45), transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(41, 211, 194, 0.35), transparent 58%),
    linear-gradient(140deg, #1a1a2e 0%, #241b45 50%, #2a1730 100%);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --blur: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --max-w: 1180px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fc;
    --bg-alt: #ffffff;
    --bg-soft: #eceefb;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.88);
    --border: rgba(26, 26, 46, 0.1);
    --border-strong: rgba(26, 26, 46, 0.18);
    --text: #1a1a2e;
    --text-soft: #4a4d6b;
    --text-dim: #6f7392;
    --grad-banner: radial-gradient(circle at 18% 20%, rgba(124, 92, 255, 0.4), transparent 55%),
      radial-gradient(circle at 82% 12%, rgba(255, 92, 138, 0.32), transparent 52%),
      radial-gradient(circle at 50% 100%, rgba(41, 211, 194, 0.28), transparent 58%),
      linear-gradient(140deg, #eef0ff 0%, #f3e9ff 50%, #ffeef4 100%);
    --shadow-sm: 0 4px 16px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 12px 34px rgba(26, 26, 46, 0.12);
    --shadow-lg: 0 24px 60px rgba(26, 26, 46, 0.18);
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(124, 92, 255, 0.14), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 92, 138, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(41, 211, 194, 0.08), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(124, 92, 255, 0.45);
  color: #fff;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-3);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

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

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  position: relative;
  padding-bottom: 0.55em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-main);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.55);
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--text);
}

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

strong {
  color: var(--text);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav > a {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

nav > a::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--grad-main);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.8);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
}

nav > a:hover::before {
  transform: rotate(135deg) scale(1.15);
}

nav > a:hover {
  color: var(--brand-3);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

nav ul li a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
}

section {
  position: relative;
  margin: 32px 0;
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 42%);
  pointer-events: none;
}

section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

section > * {
  position: relative;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

#hero {
  margin-top: 26px;
  padding: clamp(30px, 5vw, 64px);
  background: var(--grad-banner);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: left;
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  filter: blur(6px);
  animation: floatY 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

#hero h1 {
  max-width: 18em;
  background: linear-gradient(100deg, #ffffff 0%, #e7dcff 40%, #ffd9e6 70%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 9s linear infinite;
  text-shadow: 0 2px 30px rgba(124, 92, 255, 0.25);
}

@media (prefers-color-scheme: light) {
  #hero h1 {
    background: linear-gradient(100deg, #2a1a5e 0%, #6a3bd6 38%, #d63b6f 68%, #2a1a5e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

#hero p {
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  margin-bottom: 0;
}

#hero p::first-letter {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--brand-3);
}

#concept,
#industry,
#services,
#scenarios,
#applications,
#articles,
#faq,
#howto,
#notes,
#sitemap,
#links,
#legal {
  background: var(--surface);
}

#products,
#solutions,
#cases,
#news,
#contact {
  background: var(--grad-soft), var(--surface);
}

#about h3,
#concept h3,
#industry h3,
#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#applications h3,
#cases h3,
#news h3,
#articles h3,
#faq h3,
#howto h3,
#notes h3,
#contact h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5em;
  padding-left: 14px;
  border-left: 3px solid transparent;
  border-image: var(--grad-main) 1;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

#about h3:hover,
#concept h3:hover,
#industry h3:hover,
#products h3:hover,
#services h3:hover,
#scenarios h3:hover,
#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#news h3:hover,
#articles h3:hover,
#faq h3:hover,
#howto h3:hover,
#notes h3:hover,
#contact h3:hover {
  transform: translateX(4px);
  color: var(--brand-3);
}

article {
  position: relative;
  margin: 18px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
}

article::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

article:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

article:hover::after {
  transform: scaleX(1);
}

article h3 {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
}

article h3:hover {
  transform: none;
  color: var(--text);
}

article p {
  margin-bottom: 0.55em;
  font-size: 0.95rem;
}

article p:first-of-type {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 0.8em;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

article a:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(255, 92, 138, 0.4);
}

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

#faq h3 {
  margin-top: 1.6em;
  padding: 14px 18px;
  border-left: none;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 1rem;
  cursor: default;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border-radius: 8px;
  background: var(--grad-main);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.45);
}

#faq h3:hover {
  transform: translateX(0);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq h3 + p {
  margin: 10px 0 22px;
  padding: 0 4px 0 34px;
  position: relative;
  font-size: 0.96rem;
  color: var(--text-soft);
}

#faq h3 + p::before {
  content: "A";
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-3);
}

#howto p {
  position: relative;
}

#howto h3 + p {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-3);
}

#howto p:nth-of-type(3) {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
}

#contact p {
  line-height: 2;
}

#contact p br {
  content: "";
}

#contact h3 + p {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: all 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  background: var(--grad-soft), var(--surface-strong);
}

#links ul li a {
  color: var(--brand-3);
}

#legal h2 {
  margin-top: 1.4em;
}

#legal h2:first-of-type {
  margin-top: 0;
}

#legal p {
  font-size: 0.94rem;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

#cases h3 + p,
#news h3 + p {
  position: relative;
  padding-left: 18px;
}

#cases h3 + p::before,
#news h3 + p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.7);
}

#news h3 + p {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-left: 0;
}

#news h3 + p::before {
  display: none;
}

#news h3 {
  margin-bottom: 0.15em;
}

#news h3 + p + p {
  margin-top: 0.4em;
}

#cases p:last-child,
#cases p:nth-last-child(2),
#cases p:nth-last-child(3) {
  position: relative;
  padding: 16px 20px 16px 46px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-style: italic;
  color: var(--text-soft);
}

#cases p:last-child::before,
#cases p:nth-last-child(2)::before,
#cases p:nth-last-child(3)::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 2px;
  font-size: 2.4rem;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#products h3,
#services h3,
#solutions h3,
#applications h3,
#scenarios h3 {
  margin-top: 1.6em;
}

#products h3 + p,
#services h3 + p,
#solutions h3 + p,
#applications h3 + p,
#scenarios h3 + p {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#products h3 + p:hover,
#services h3 + p:hover,
#solutions h3 + p:hover,
#applications h3 + p:hover,
#scenarios h3 + p:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 20px 46px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}

footer p {
  margin: 4px 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

footer p:first-child {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  nav {
    padding: 10px 16px;
    gap: 10px;
  }

  nav ul {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  nav ul::-webkit-scrollbar {
    height: 4px;
  }

  nav ul::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-pill);
  }

  nav ul li a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  main {
    padding: 0 14px 30px;
  }

  section {
    margin: 22px 0;
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  #hero {
    padding: 28px 20px;
    margin-top: 18px;
    border-radius: var(--radius-lg);
  }

  h2::after {
    width: 44px;
    height: 3px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #faq h3 + p {
    padding-left: 4px;
  }

  #faq h3 + p::before {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.72;
  }

  nav > a {
    font-size: 1rem;
  }

  section {
    padding: 18px 14px;
    margin: 16px 0;
  }

  #hero {
    padding: 22px 16px;
  }

  h2 {
    padding-bottom: 0.5em;
  }

  article {
    padding: 16px 15px;
  }

  article::after {
    left: 15px;
    right: 15px;
  }

  #faq h3 {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  #contact p br {
    display: none;
  }

  #contact h3 + p {
    padding: 14px 15px;
  }

  #cases p:last-child,
  #cases p:nth-last-child(2),
  #cases p:nth-last-child(3) {
    padding: 14px 15px 14px 38px;
  }

  footer {
    padding: 24px 16px 38px;
  }
}

@media (hover: none) {
  section:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
  }

  article:hover {
    transform: none;
  }

  nav ul li a:hover {
    transform: none;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  section {
    animation: none;
  }
}

@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }

  h2::after {
    background: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}