:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --text: #1f2a3d;
  --text-soft: #5a6b85;
  --text-mute: #8a97ad;
  --primary: #5b7cfa;
  --primary-deep: #3d5bd9;
  --accent: #ff8fb1;
  --accent-deep: #f56a95;
  --mint: #4ecdc4;
  --line: rgba(31, 42, 61, 0.1);
  --line-strong: rgba(31, 42, 61, 0.18);
  --shadow-sm: 0 4px 14px rgba(31, 42, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 42, 61, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 42, 61, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #5b7cfa 0%, #8a6bff 42%, #ff8fb1 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91, 124, 250, 0.14), rgba(255, 143, 177, 0.14));
  --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
  --blur: saturate(180%) blur(18px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --bg-soft: #131b2a;
    --surface: rgba(28, 38, 56, 0.68);
    --surface-strong: rgba(32, 44, 64, 0.86);
    --surface-solid: #1a2434;
    --text: #e8edf7;
    --text-soft: #b3c0d6;
    --text-mute: #7f8da6;
    --primary: #7c96ff;
    --primary-deep: #5f7bf0;
    --accent: #ff9fbe;
    --accent-deep: #ff7fa8;
    --mint: #58d8cf;
    --line: rgba(232, 237, 247, 0.12);
    --line-strong: rgba(232, 237, 247, 0.22);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #2f4bb8 0%, #5741c0 42%, #c2517c 100%);
    --gradient-soft: linear-gradient(135deg, rgba(124, 150, 255, 0.18), rgba(255, 159, 190, 0.18));
    --gradient-card: linear-gradient(160deg, rgba(38, 50, 72, 0.92), rgba(28, 38, 56, 0.68));
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(91, 124, 250, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 143, 177, 0.16), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(78, 205, 196, 0.1), transparent 46%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--accent-deep);
}

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

ul {
  list-style: none;
}

::selection {
  background: rgba(91, 124, 250, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: content-box;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.6s var(--ease) both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-hero);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

header nav ul li a:hover {
  color: var(--primary-deep);
  background: var(--gradient-soft);
  transform: translateY(-1px);
}

header nav ul li a:hover::after {
  width: 60%;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

main > section {
  position: relative;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 16px);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

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

main > section:nth-of-type(1) {
  animation-delay: 0.05s;
}
main > section:nth-of-type(2) {
  animation-delay: 0.1s;
}
main > section:nth-of-type(3) {
  animation-delay: 0.15s;
}
main > section:nth-of-type(4) {
  animation-delay: 0.2s;
}
main > section:nth-of-type(5) {
  animation-delay: 0.25s;
}
main > section:nth-of-type(6) {
  animation-delay: 0.3s;
}
main > section:nth-of-type(7) {
  animation-delay: 0.35s;
}
main > section:nth-of-type(8) {
  animation-delay: 0.4s;
}
main > section:nth-of-type(9) {
  animation-delay: 0.45s;
}
main > section:nth-of-type(10) {
  animation-delay: 0.5s;
}
main > section:nth-of-type(11) {
  animation-delay: 0.55s;
}
main > section:nth-of-type(12) {
  animation-delay: 0.6s;
}
main > section:nth-of-type(13) {
  animation-delay: 0.65s;
}
main > section:nth-of-type(14) {
  animation-delay: 0.7s;
}

#home {
  background: var(--gradient-hero);
  border: none;
  color: #ffffff;
  overflow: hidden;
  padding: 64px 40px;
  box-shadow: var(--shadow-lg);
}

#home::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite;
}

#home::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 11s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.06);
  }
}

#home h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

#home p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 14px;
}

#home p:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 750;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 22px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 0.01em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-hero);
  transition: width 0.45s var(--ease);
}

main > section:hover h2::after {
  width: 110px;
}

h3 {
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--text);
  margin: 22px 0 8px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 4px var(--gradient-soft);
}

p {
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.85;
}

p:last-child {
  margin-bottom: 0;
}

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

#products,
#solutions,
#cases,
#news,
#faq,
#howto {
  background: var(--gradient-card);
}

#products h3,
#solutions h3,
#howto h3 {
  padding: 14px 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  margin-top: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products h3::before,
#solutions h3::before,
#howto h3::before {
  display: none;
}

#products h3:hover,
#solutions h3:hover,
#howto h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}

#products h3 + p,
#solutions h3 + p,
#howto h3 + p {
  padding-left: 22px;
}

#cases p {
  padding: 14px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

#cases p:nth-of-type(3),
#cases p:nth-of-type(4) {
  border-left: 4px solid var(--accent);
  font-style: italic;
  color: var(--text);
}

#news h3 {
  margin-top: 18px;
}

#news h3 + p {
  font-size: 0.93rem;
  color: var(--text-mute);
  padding-left: 18px;
}

#articles {
  display: block;
}

#articles article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

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

#articles article:hover::before {
  transform: scaleY(1);
}

#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

#articles article h3::before {
  background: var(--accent);
}

#articles article p {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin: 0;
}

#faq h3 {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  font-size: 1.02rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq h3::before {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.16);
}

#faq h3:hover {
  background: var(--gradient-soft);
  color: var(--primary-deep);
}

#faq h3 + p {
  padding: 16px 20px;
  margin: 0 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.95rem;
  transition: box-shadow 0.3s var(--ease);
}

#faq h3 + p:hover {
  box-shadow: var(--shadow-sm);
}

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

#sitemap ul li a,
#links ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap ul li a::before,
#links ul li a::before {
  content: "→";
  font-size: 0.9em;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  color: var(--primary-deep);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  transform: translateX(4px);
}

#contact p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  margin-bottom: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

#contact p::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-hero);
  flex: 0 0 auto;
}

#legal h3 {
  color: var(--primary-deep);
}

#legal h3::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.16);
}

#legal p {
  font-size: 0.95rem;
}

footer {
  margin-top: 16px;
  padding: 36px 24px;
  text-align: center;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1.9;
}

footer p {
  color: var(--text-mute);
  margin-bottom: 6px;
}

footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  main {
    padding: 24px 18px 48px;
    gap: 20px;
  }

  main > section {
    padding: 30px 24px;
    border-radius: var(--radius-md);
  }

  #home {
    padding: 46px 26px;
  }

  #articles article {
    padding: 18px 20px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  header nav {
    padding: 8px 14px;
  }

  header nav ul {
    gap: 2px;
    justify-content: flex-start;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 13px;
  }

  main {
    padding: 18px 12px 40px;
    gap: 16px;
  }

  main > section {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  #home {
    padding: 36px 20px;
  }

  #home h1 {
    font-size: 1.5rem;
  }

  #home p {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  h3 {
    font-size: 1.02rem;
  }

  #products h3,
  #solutions h3,
  #howto h3 {
    padding: 12px 14px;
  }

  #products h3 + p,
  #solutions h3 + p,
  #howto h3 + p {
    padding-left: 14px;
  }

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

  #sitemap ul li a,
  #links ul li a {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  #contact p {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  footer {
    padding: 26px 16px;
    font-size: 0.84rem;
  }
}

@media (max-width: 400px) {
  header nav ul li a {
    padding: 5px 8px;
    font-size: 12px;
  }

  #home h1 {
    font-size: 1.32rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

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