:root {
  --bg: #0b0e1a;
  --bg-soft: #121629;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.085);
  --glass: rgba(18, 22, 41, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #e8eaf2;
  --text-soft: #a9b0c7;
  --text-dim: #7b8299;
  --brand: #e94560;
  --brand-2: #ff7a5c;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --grad-brand: linear-gradient(135deg, #e94560 0%, #ff7a5c 55%, #ffb35c 100%);
  --grad-accent: linear-gradient(135deg, #4f8cff 0%, #7c5cff 100%);
  --grad-hero: radial-gradient(1200px 500px at 15% -10%, rgba(233, 69, 96, 0.35), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(79, 140, 255, 0.3), transparent 55%),
    linear-gradient(160deg, #161a33 0%, #0b0e1a 60%, #0a0c16 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fb;
    --bg-soft: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(20, 26, 50, 0.08);
    --text: #171b2e;
    --text-soft: #4b526b;
    --text-dim: #737a92;
    --line: rgba(20, 26, 50, 0.1);
    --shadow: 0 18px 45px rgba(30, 38, 70, 0.14);
    --shadow-soft: 0 10px 26px rgba(30, 38, 70, 0.1);
    --grad-hero: radial-gradient(1000px 460px at 12% -10%, rgba(233, 69, 96, 0.18), transparent 60%),
      radial-gradient(820px 400px at 92% 0%, rgba(79, 140, 255, 0.18), transparent 55%),
      linear-gradient(160deg, #ffffff 0%, #eef1fa 60%, #e7ebf7 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% -5%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(233, 69, 96, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  position: relative;
  padding-left: 16px;
}

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

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

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--text-soft);
}

li {
  margin: 0.35em 0;
}

li::marker {
  color: var(--brand);
}

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

::selection {
  background: rgba(233, 69, 96, 0.35);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(233, 69, 96, 0.7), rgba(79, 140, 255, 0.7));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ============ Header ============ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

header > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > div > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

header > div > a:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 14px rgba(233, 69, 96, 0.45));
}

nav[aria-label="主导航"] {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

nav[aria-label="主导航"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav[aria-label="主导航"] li {
  margin: 0;
}

nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 999px;
  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);
}

nav[aria-label="主导航"] a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: var(--glass-border);
  transform: translateY(-2px);
}

/* ============ Main layout ============ */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

main > section {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.2vw, 36px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: rise 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), background 0.4s var(--ease);
}

main > section:hover {
  border-color: rgba(233, 69, 96, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
    opacity: 1;
  }
}

/* ============ Breadcrumb ============ */

nav[aria-label="面包屑导航"] {
  margin-top: 18px;
  font-size: 0.86rem;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

nav[aria-label="面包屑导航"] li {
  margin: 0;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-dim);
  opacity: 0.6;
}

nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
}

/* ============ Hero ============ */

#hero {
  background: var(--grad-hero);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background: conic-gradient(
    from 120deg at 30% 20%,
    rgba(233, 69, 96, 0.22),
    rgba(124, 92, 255, 0.18),
    rgba(79, 140, 255, 0.2),
    rgba(233, 69, 96, 0.22)
  );
  filter: blur(60px);
  opacity: 0.75;
  z-index: -1;
  animation: aurora 18s linear infinite;
}

@keyframes aurora {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.15);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

#hero h1 {
  background: linear-gradient(100deg, var(--text) 20%, var(--brand) 55%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em;
}

#hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  max-width: 78ch;
}

#hero figure {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}

/* ============ Products / feature lists ============ */

#products ul,
#solutions ul,
#howto ul,
#knowledge ul,
#contact ul,
#sitemap ul {
  list-style: none;
  padding-left: 0;
}

#products > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

#products > ul li {
  position: relative;
  padding: 16px 18px 16px 46px;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#products > ul li::before {
  content: "◆";
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 0.85rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#products > ul li:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

#brand ul,
#howto ul,
#knowledge ul {
  padding-left: 0;
  list-style: none;
}

#brand ul li,
#howto ul li,
#knowledge ul li {
  position: relative;
  padding-left: 22px;
}

#brand ul li::before,
#howto ul li::before,
#knowledge ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-accent);
  transform: rotate(45deg);
  opacity: 0.85;
}

/* ============ Cases / blockquote ============ */

#cases blockquote {
  margin: 16px 0;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #e94560, #7c5cff) 1;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-style: italic;
  position: relative;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 12px;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.7;
  font-family: Georgia, serif;
}

#cases blockquote p {
  margin: 0;
  color: var(--text-soft);
}

#cases blockquote:hover {
  transform: translateX(4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-soft);
}

/* ============ News ============ */

#news > ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

#news > ul > li {
  margin: 0;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#news > ul > li:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(79, 140, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

#news h3 {
  margin-bottom: 6px;
}

#news p {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

#news p:first-of-type {
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ============ Articles ============ */

#articles {
  display: block;
}

#articles > p {
  margin-bottom: 20px;
}

#articles article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

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

#articles article h3 {
  margin-bottom: 6px;
}

#articles article p {
  font-size: 0.94rem;
}

#articles article p:nth-of-type(1) {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--text);
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    filter 0.3s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.45);
  filter: brightness(1.06);
}

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

/* ============ FAQ ============ */

#faq h3 {
  margin-top: 22px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
  cursor: default;
}

#faq h3:hover {
  background: var(--bg-card-hover);
  border-color: rgba(79, 140, 255, 0.35);
  transform: translateX(3px);
}

#faq h3 + p {
  margin: 10px 0 6px;
  padding: 0 4px;
  font-size: 0.95rem;
}

/* ============ HowTo ============ */

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.4);
}

#howto ol li:hover {
  transform: translateX(4px);
  background: var(--bg-card-hover);
  border-color: rgba(79, 140, 255, 0.35);
}

/* ============ Contact ============ */

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

#contact ul li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 44px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#contact ul li::before {
  content: "✦";
  position: absolute;
  left: 16px;
  top: 13px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#contact ul li:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(233, 69, 96, 0.3);
}

/* ============ Sitemap ============ */

#sitemap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.88rem;
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  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 ul a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.35);
}

/* ============ Footer ============ */

footer {
  margin-top: 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 44px;
}

footer h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

footer h3 {
  font-size: 1rem;
  margin-top: 22px;
  color: var(--text);
}

footer p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

footer p:last-child {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ============ Responsive ============ */

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

  nav[aria-label="主导航"] {
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  nav[aria-label="主导航"]::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] ul {
    flex-wrap: nowrap;
  }

  nav[aria-label="主导航"] a {
    white-space: nowrap;
    font-size: 0.85rem;
  }

  main {
    padding: 0 14px 30px;
    gap: 18px;
  }

  main > section {
    border-radius: var(--radius);
  }

  #hero figure {
    margin-top: 18px;
  }

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

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

  header > div > a {
    font-size: 1rem;
  }

  nav[aria-label="面包屑导航"] ol {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  #products > ul {
    grid-template-columns: 1fr;
  }

  #contact ul {
    grid-template-columns: 1fr;
  }

  #howto ol li {
    padding-left: 50px;
  }

  #howto ol li::before {
    width: 26px;
    height: 26px;
    left: 12px;
    font-size: 0.78rem;
  }

  #cases blockquote {
    padding: 16px 16px;
  }

  footer > section {
    padding: 28px 14px 34px;
  }
}

@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,
  nav[aria-label="主导航"] {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    animation: none;
  }
}