:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --primary-light: #4b7bec;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --gradient-1: linear-gradient(135deg, #1a56db 0%, #7c3aed 50%, #db2777 100%);
  --gradient-2: linear-gradient(120deg, #1a56db 0%, #4b7bec 100%);
  --gradient-3: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #1a1f2e;
  --text-secondary: #4a5468;
  --text-muted: #7a8499;
  --border: rgba(26, 86, 219, 0.12);
  --border-strong: rgba(26, 86, 219, 0.22);
  --shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 31, 46, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 31, 46, 0.12);
  --shadow-glow: 0 8px 32px rgba(26, 86, 219, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4b7bec;
    --primary-dark: #1a56db;
    --primary-light: #7aa5f5;
    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --gradient-1: linear-gradient(135deg, #1e3a8a 0%, #5b21b6 50%, #9d174d 100%);
    --gradient-2: linear-gradient(120deg, #1e3a8a 0%, #2563eb 100%);
    --gradient-3: linear-gradient(135deg, #5b21b6 0%, #9d174d 100%);
    --bg: #0b0f1a;
    --bg-alt: #121826;
    --bg-glass: rgba(18, 24, 38, 0.65);
    --bg-glass-strong: rgba(18, 24, 38, 0.85);
    --text: #e8ecf4;
    --text-secondary: #b0b9cc;
    --text-muted: #7a8499;
    --border: rgba(75, 123, 236, 0.18);
    --border-strong: rgba(75, 123, 236, 0.32);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(75, 123, 236, 0.3);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 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;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(26, 86, 219, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(219, 39, 119, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

p {
  color: var(--text-secondary);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), box-shadow var(--transition);
}

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

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

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-2);
  border-radius: var(--radius-full);
  transition: transform var(--transition);
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(26, 86, 219, 0.08);
}

header nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 8px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
}

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

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

main > nav[aria-label="面包屑导航"] ol li:last-child {
  color: var(--text-secondary);
  font-weight: 500;
}

section {
  margin-top: 56px;
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

section > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  letter-spacing: -0.02em;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(26, 86, 219, 0.4);
}

section > h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

section > h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-3);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

section > p {
  margin-bottom: 16px;
  font-size: 15.5px;
}

#hero {
  position: relative;
  margin-top: 24px;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-1);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite, fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  color: #fff;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#hero > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  max-width: 820px;
  margin-bottom: 32px;
}

#hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-slow);
}

#hero img:hover {
  transform: translateY(-4px) scale(1.01);
}

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#meta {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover,
#meta:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

#products h3,
#solutions h3,
#cases h3 {
  padding: 16px 20px;
  background: rgba(26, 86, 219, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  transition: background var(--transition), transform var(--transition);
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover {
  background: rgba(26, 86, 219, 0.1);
  transform: translateX(4px);
}

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

#news article,
#articles article {
  position: relative;
  padding: 24px 24px 24px 28px;
  margin-bottom: 16px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

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

#news article h3,
#articles article h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text);
  transition: color var(--transition);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--primary);
}

#news article p,
#articles article p {
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

#articles article a:hover {
  gap: 10px;
  color: var(--accent);
}

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

#faq dl {
  display: grid;
  gap: 12px;
}

#faq dt {
  position: relative;
  padding: 16px 20px 16px 52px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: default;
  transition: all var(--transition);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-2);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.35);
}

#faq dt:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  background: var(--bg-glass);
}

#faq dd {
  position: relative;
  padding: 14px 20px 16px 52px;
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(26, 86, 219, 0.1);
  border-radius: 50%;
  border: 1.5px solid rgba(26, 86, 219, 0.3);
}

#howto {
  counter-reset: step;
}

#howto h3 {
  counter-increment: step;
}

#howto h3::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-1);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

#howto p {
  padding-left: 36px;
  font-size: 15px;
}

#contact {
  background: var(--gradient-2);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#contact h2 {
  color: #fff;
}

#contact h2::before {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

#contact > p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

#contact h3 {
  color: #fff;
  margin-top: 28px;
}

#contact h3::before {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-2);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

#legal h2,
#meta h2 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

#legal h2:first-child,
#meta h2:first-child {
  margin-top: 0;
}

#legal p,
#meta p {
  font-size: 14.5px;
}

footer {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
}

footer p {
  color: var(--text-muted);
  margin: 4px 0;
  font-size: 13.5px;
}

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

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

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

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

@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
  }

  #hero {
    padding: 44px 32px;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #meta {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 16px;
    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;
    width: max-content;
    min-width: 100%;
  }

  header nav ul li a {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  main {
    padding: 0 16px 56px;
  }

  section {
    margin-top: 36px;
  }

  section > h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
    padding-left: 16px;
  }

  section > h2::before {
    width: 5px;
  }

  section > h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
  }

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

  #hero h1 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  #hero > p {
    font-size: 14.5px;
    margin-bottom: 24px;
  }

  #hero img {
    border-radius: var(--radius-md);
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #meta {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  #products h3,
  #solutions h3,
  #cases h3 {
    padding: 12px 14px;
    font-size: 1rem;
  }

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

  #news article h3,
  #articles article h3 {
    font-size: 1rem;
  }

  #faq dt {
    padding: 14px 16px 14px 46px;
    font-size: 14.5px;
  }

  #faq dt::before,
  #faq dd::before {
    left: 12px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  #faq dd {
    padding: 12px 16px 14px 46px;
    font-size: 14px;
  }

  #howto p {
    padding-left: 32px;
    font-size: 14.5px;
  }

  #howto h3::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  #contact > p {
    font-size: 14.5px;
  }

  #legal h2,
  #meta h2 {
    font-size: 1.15rem;
  }

  footer {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 28px 16px;
  }

  #hero h1 {
    font-size: 1.3rem;
  }

  section > h2 {
    font-size: 1.2rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #meta {
    padding: 20px 14px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 6px 14px;
    font-size: 13px;
  }
}

@media print {
  header,
  footer,
  #hero img {
    display: none;
  }

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

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