:root {
  --c-primary: #e63946;
  --c-primary-dark: #c1121f;
  --c-primary-light: #ff6b7a;
  --c-secondary: #457b9d;
  --c-accent: #f4a261;
  --c-bg: #f7f8fc;
  --c-bg-alt: #eef1f8;
  --c-surface: #ffffff;
  --c-surface-glass: rgba(255, 255, 255, 0.72);
  --c-text: #1d2433;
  --c-text-soft: #4a5568;
  --c-text-muted: #7a8599;
  --c-border: rgba(29, 36, 51, 0.09);
  --c-shadow: rgba(29, 36, 51, 0.08);
  --c-shadow-strong: rgba(29, 36, 51, 0.16);
  --grad-hero: linear-gradient(135deg, #1d3557 0%, #457b9d 45%, #e63946 100%);
  --grad-brand: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(69, 123, 157, 0.08) 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0e1116;
    --c-bg-alt: #141922;
    --c-surface: #1a212c;
    --c-surface-glass: rgba(26, 33, 44, 0.68);
    --c-text: #e8edf5;
    --c-text-soft: #b6c0cf;
    --c-text-muted: #8b96a8;
    --c-border: rgba(232, 237, 245, 0.1);
    --c-shadow: rgba(0, 0, 0, 0.35);
    --c-shadow-strong: rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #0b1220 0%, #1d3557 50%, #7a1f28 100%);
    --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.14) 0%, rgba(69, 123, 157, 0.14) 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(230, 57, 70, 0.1), transparent 60%),
    radial-gradient(900px 500px at -5% 15%, rgba(69, 123, 157, 0.1), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--c-primary);
  color: #fff;
}

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

a:hover {
  color: var(--c-primary-dark);
}

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

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

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

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

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  position: relative;
  padding-left: var(--space-4);
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--c-text);
}

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

p {
  margin: 0 0 var(--space-4);
  color: var(--c-text-soft);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--c-text-soft);
}

li {
  margin-bottom: var(--space-2);
}

blockquote {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--grad-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-style: italic;
  color: var(--c-text-soft);
}

blockquote p {
  margin-bottom: var(--space-2);
}

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

figure {
  margin: 0;
}

figcaption {
  margin-top: var(--space-3);
  font-size: 0.86rem;
  color: var(--c-text-muted);
  text-align: center;
}

aside {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.86rem;
  color: var(--c-text-muted);
}

aside p {
  margin: 0;
  color: var(--c-text-muted);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) clamp(16px, 4vw, 40px);
  background: var(--c-surface-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 24px -12px var(--c-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand svg {
  border-radius: 10px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 6px 18px -6px rgba(230, 57, 70, 0.6);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px -6px rgba(230, 57, 70, 0.75);
}

.brand a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity var(--dur) var(--ease);
}

.brand a:hover {
  opacity: 0.82;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-soft);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

header nav a:hover {
  color: #fff;
  background: var(--grad-brand);
  transform: translateY(-2px);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) var(--space-8);
}

main > nav[aria-label="面包屑导航"] {
  padding: var(--space-4) 0;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

main > nav[aria-label="面包屑导航"] li {
  display: flex;
  align-items: center;
  margin: 0;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--c-text-muted);
  opacity: 0.6;
}

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

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--c-primary);
}

section {
  margin-bottom: var(--space-7);
  scroll-margin-top: 90px;
}

section > h2 {
  margin-bottom: var(--space-5);
}

section > h3 {
  margin-top: var(--space-5);
}

section > h3:first-of-type {
  margin-top: 0;
}

#hero {
  position: relative;
  margin-bottom: var(--space-8);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: gradientShift 14s ease infinite;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px var(--c-shadow-strong);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 255, 255, 0.22), transparent 65%),
    radial-gradient(500px 260px at 5% 90%, rgba(244, 162, 97, 0.28), transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -110px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: floatBlob 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 26px) scale(1.08); }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  margin-bottom: var(--space-4);
}

#hero > p {
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

#hero figure {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 34px 66px -24px rgba(0, 0, 0, 0.7);
}

#hero figure svg {
  border-radius: var(--radius-md);
  width: 100%;
}

#hero figcaption {
  color: rgba(255, 255, 255, 0.82);
}

#brand,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#contact,
#sitemap,
#links,
#legal {
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: 0 18px 40px -28px var(--c-shadow-strong);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover {
  box-shadow: 0 26px 54px -28px var(--c-shadow-strong);
}

#products h3,
#solutions h3,
#cases h3,
#news h3,
#knowledge h3,
#contact h3,
#legal h3,
#howto h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

#products h3::before,
#solutions h3::before,
#cases h3::before,
#news h3::before,
#knowledge h3::before,
#contact h3::before,
#legal h3::before,
#howto h3::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.14);
}

#products h4 {
  position: relative;
  padding-left: var(--space-4);
  margin-top: var(--space-5);
}

#products h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c-secondary);
  transform: rotate(45deg);
}

#products h4 + p {
  margin-bottom: var(--space-3);
}

#cases blockquote {
  position: relative;
  padding-left: var(--space-6);
  border-left: 0;
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: var(--space-3);
  top: 0;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--c-primary);
  opacity: 0.5;
}

#cases blockquote:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px -18px var(--c-shadow-strong);
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#articles:hover {
  box-shadow: none;
}

#articles > h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

#articles article {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: 0 16px 36px -26px var(--c-shadow-strong);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.32);
  box-shadow: 0 28px 54px -26px var(--c-shadow-strong);
}

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

#articles article h3 {
  font-size: 1.06rem;
  margin-bottom: var(--space-3);
}

#articles article p {
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--c-border);
}

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

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

#articles article a::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}

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

#articles > section {
  grid-column: 1 / -1;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  margin-bottom: 0;
  scroll-margin-top: 90px;
}

#articles > section h3 {
  font-size: 1.12rem;
}

#articles > section p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

#faq h3 {
  position: relative;
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  cursor: default;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
}

#faq h3:hover {
  background: var(--grad-soft);
  color: var(--c-primary);
  box-shadow: 0 10px 24px -18px var(--c-shadow-strong);
  transform: translateX(3px);
}

#faq h3 + p {
  padding: 0 var(--space-3) var(--space-2) var(--space-6);
  margin-bottom: var(--space-4);
  font-size: 0.93rem;
}

#howto h4 {
  position: relative;
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  border-left: 4px solid var(--c-primary);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

#howto h4:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 24px -18px var(--c-shadow-strong);
}

#howto h4 + p {
  font-size: 0.93rem;
  padding-left: var(--space-2);
}

#contact p,
#legal p {
  font-size: 0.93rem;
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--c-text-soft);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(230, 57, 70, 0.7);
}

#legal {
  background: var(--grad-soft);
}

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

footer {
  padding: var(--space-7) clamp(16px, 4vw, 40px) var(--space-6);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  text-align: center;
}

footer p {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  margin-bottom: var(--space-2);
}

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

footer nav {
  margin-top: var(--space-4);
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

footer nav li {
  margin: 0;
}

footer nav a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--c-text-muted);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

footer nav a:hover {
  color: var(--c-primary);
  background: var(--grad-soft);
}

@media (max-width: 1024px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav ul {
    justify-content: center;
  }
}

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

  header {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }

  .brand a {
    font-size: 1.1rem;
  }

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

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

  header nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    padding-bottom: 2px;
  }

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

  main {
    padding: 0 var(--space-4) var(--space-7);
  }

  #hero {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }

  #hero figure {
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-md);
  }

  #articles {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  #articles article {
    padding: var(--space-4);
  }

  #faq h3 {
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6);
    font-size: 1rem;
  }

  #faq h3 + p {
    padding-left: var(--space-4);
  }

  h2 {
    padding-left: var(--space-3);
  }

  h2::before {
    width: 4px;
  }

  section {
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.5rem;
  }

  #hero > p {
    font-size: 0.9rem;
  }

  #sitemap a,
  #links a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  footer p {
    font-size: 0.78rem;
  }
}

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header,
  aside,
  #hero figure,
  blockquote {
    background: var(--c-surface);
  }

  #hero figure {
    background: rgba(255, 255, 255, 0.12);
  }
}

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

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

section {
  animation: fadeUp 0.7s var(--ease) both;
}

#hero {
  animation: fadeUp 0.8s var(--ease) both, gradientShift 14s ease infinite;
}

#articles article {
  animation: fadeUp 0.6s var(--ease) both;
}

#articles article:nth-child(2) { animation-delay: 0.04s; }
#articles article:nth-child(3) { animation-delay: 0.08s; }
#articles article:nth-child(4) { animation-delay: 0.12s; }
#articles article:nth-child(5) { animation-delay: 0.16s; }
#articles article:nth-child(6) { animation-delay: 0.2s; }
#articles article:nth-child(7) { animation-delay: 0.24s; }
#articles article:nth-child(8) { animation-delay: 0.28s; }
#articles article:nth-child(9) { animation-delay: 0.32s; }
#articles article:nth-child(10) { animation-delay: 0.36s; }
#articles article:nth-child(11) { animation-delay: 0.4s; }