:root {
  --brand: #ff7a45;
  --brand-2: #ff4d6d;
  --brand-3: #7b5cff;
  --accent: #22d3ee;
  --bg: #0e0f1a;
  --bg-soft: #151726;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-solid: #1a1c2e;
  --text: #eef1f8;
  --text-soft: #a9b0c6;
  --text-mute: #7d8499;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #ff7a45 0%, #ff4d6d 48%, #7b5cff 100%);
  --grad-hero: radial-gradient(circle at 18% 20%, rgba(255, 122, 69, 0.35), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(123, 92, 255, 0.38), transparent 52%),
    radial-gradient(circle at 55% 90%, rgba(34, 211, 238, 0.22), transparent 58%),
    linear-gradient(160deg, #14162a 0%, #0e0f1a 62%, #101223 100%);
  --glass-blur: blur(18px) saturate(150%);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --text: #171a26;
    --text-soft: #4a5166;
    --text-mute: #6b7285;
    --line: rgba(20, 24, 40, 0.1);
    --line-strong: rgba(20, 24, 40, 0.16);
    --shadow: 0 18px 44px rgba(31, 38, 68, 0.14);
    --shadow-soft: 0 8px 22px rgba(31, 38, 68, 0.1);
    --grad-hero: radial-gradient(circle at 18% 20%, rgba(255, 122, 69, 0.22), transparent 55%),
      radial-gradient(circle at 82% 12%, rgba(123, 92, 255, 0.2), transparent 52%),
      radial-gradient(circle at 55% 90%, rgba(34, 211, 238, 0.16), transparent 58%),
      linear-gradient(160deg, #ffffff 0%, #f2f4fb 60%, #eef1fa 100%);
  }
}

*,
*::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;
  min-height: 100vh;
  background: var(--bg);
  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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--grad-hero);
  background-attachment: fixed;
  pointer-events: none;
}

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

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

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

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.75rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.5);
}

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

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

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

::selection {
  background: rgba(255, 77, 109, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 26, 0.62);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 6px 22px rgba(31, 38, 68, 0.08);
  }
}

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

header nav > a[aria-label] {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 8px 0;
  white-space: nowrap;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header nav > a[aria-label]:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

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

header nav ul li a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

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

section {
  position: relative;
  margin: 40px 0;
  padding: clamp(22px, 4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-soft);
  animation: rise 0.7s var(--ease) both;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

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

section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.35), transparent 40%, rgba(123, 92, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

section:hover::after {
  opacity: 1;
}

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

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.03);
  }
}

#hero {
  margin-top: 32px;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.18), rgba(123, 92, 255, 0.2) 55%, rgba(34, 211, 238, 0.16));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.55), transparent 65%);
  filter: blur(60px);
  z-index: -1;
  animation: floatGlow 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -35%;
  right: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.5), transparent 65%);
  filter: blur(70px);
  z-index: -1;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

#hero h1 {
  max-width: 22ch;
  background: linear-gradient(120deg, #ffffff 0%, #ffd7c9 40%, #d7c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 40px rgba(255, 122, 69, 0.25);
}

@media (prefers-color-scheme: light) {
  #hero h1 {
    background: linear-gradient(120deg, #1c1f2e 0%, #b23a12 45%, #4b32b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

#hero p {
  max-width: 78ch;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--text-soft);
  margin-bottom: 0;
}

#about p,
#products p,
#advantages p,
#solutions p,
#cases p,
#news p,
#articles p,
#faq p,
#howto p,
#contact p,
#legal p {
  max-width: 82ch;
}

#about h3,
#products h3,
#advantages h3,
#solutions h3,
#cases h3,
#howto h3,
#contact h3,
#legal h3 {
  margin-top: 1.6em;
  display: flex;
  align-items: center;
  gap: 10px;
}

#about h3::before,
#products h3::before,
#advantages h3::before,
#solutions h3::before,
#cases h3::before,
#howto h3::before,
#contact h3::before,
#legal h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.7);
}

#products h3,
#advantages h3,
#solutions h3 {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.1), rgba(123, 92, 255, 0.1));
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#products h3:hover,
#advantages h3:hover,
#solutions h3:hover {
  transform: translateX(6px);
  border-color: rgba(255, 122, 69, 0.45);
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.18), rgba(123, 92, 255, 0.16));
}

#products h3 + p,
#advantages h3 + p,
#solutions h3 + p {
  padding-left: 18px;
}

#cases h3 + p {
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 122, 69, 0.07);
}

#cases > p:last-of-type {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.14), rgba(34, 211, 238, 0.1));
  border: 1px dashed var(--line-strong);
  color: var(--text);
  line-height: 2.1;
}

#news article,
#articles article {
  position: relative;
  margin: 18px 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 92, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.08rem;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  display: inline-block;
  margin-bottom: 0.8em;
  padding: 2px 12px;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  padding: 4px 0;
}

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

#articles article a:hover::after {
  transform: translateX(5px);
}

#articles article p:last-of-type {
  margin-bottom: 0;
}

#faq details {
  margin: 12px 0;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

#faq details[open] {
  border-color: rgba(255, 122, 69, 0.5);
  box-shadow: 0 10px 30px rgba(255, 122, 69, 0.12);
}

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  border-radius: 50%;
  background: rgba(255, 122, 69, 0.12);
  border: 1px solid rgba(255, 122, 69, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-soft);
  animation: rise 0.4s var(--ease) both;
}

#howto {
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.08), rgba(123, 92, 255, 0.1));
}

#howto p {
  position: relative;
}

#howto h3 + p {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

#howto h3:last-of-type + p {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
  font-weight: 500;
}

#contact p {
  line-height: 2;
}

#contact h3 + p {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.32);
}

#links ul li a {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.3);
}

#links ul li a:hover {
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #7b5cff);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.3);
}

#legal {
  background: var(--bg-card);
  border-style: dashed;
}

#legal > p:last-of-type {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-mute);
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 36px 20px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

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

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

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, transparent, rgba(31, 38, 68, 0.05));
  }
}

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

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

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 6px 12px;
  }

  :root {
    --header-h: auto;
  }

  main {
    padding: 0 14px 60px;
  }

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

  #hero {
    margin-top: 22px;
    padding: 30px 20px;
  }
}

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

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

  #products h3 + p,
  #advantages h3 + p,
  #solutions h3 + p {
    padding-left: 0;
  }

  #news article,
  #articles article {
    padding: 16px;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.92rem;
  }

  #faq summary::after {
    right: 12px;
    width: 22px;
    height: 22px;
    font-size: 0.95rem;
  }

  #faq details p {
    padding: 0 16px 16px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 13px;
    font-size: 0.82rem;
  }
}

@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;
  }
}

@media print {
  header,
  footer,
  #hero::before,
  #hero::after,
  section::after {
    display: none !important;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}