:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent: #0e9f6e;
  --accent-light: #34d399;
  --warn: #f59e0b;
  --purple: #7c3aed;
  --danger: #dc2626;
  --cyan: #0891b2;
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-soft: #eef4ff;
  --text: #111827;
  --text-soft: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 28px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 86, 219, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #111a2e;
    --bg-soft: #16213a;
    --text: #e8edf7;
    --text-soft: #c3cbdc;
    --text-muted: #94a3b8;
    --border: #24304a;
    --card-bg: rgba(22, 33, 58, 0.62);
    --glass-border: rgba(120, 150, 220, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --primary-light: #60a5fa;
  }
}

*,
*::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;
  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;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(26, 86, 219, 0.14), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(14, 159, 110, 0.12), transparent 60%),
    radial-gradient(680px 420px at 50% 108%, rgba(124, 58, 237, 0.1), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(26, 86, 219, 0.22);
  color: var(--text);
}

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

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

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

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  letter-spacing: -0.01em;
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

h3 {
  font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.32rem);
  color: var(--text);
  margin-top: 1.6em;
}

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

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

li {
  margin-bottom: 0.45em;
}

figure {
  margin: 1.6em 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

figure svg {
  width: 100%;
  border-radius: var(--radius-sm);
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

@media (prefers-color-scheme: dark) {
  header {
    background: rgba(11, 17, 32, 0.72);
  }
}

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

header nav > a {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

header nav > a::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
  flex: none;
}

header nav > a:hover {
  color: var(--primary);
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

header nav ul li {
  margin: 0;
}

header nav ul a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul a:hover {
  background: rgba(26, 86, 219, 0.1);
  color: var(--primary);
  transform: translateY(-1px);
}

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

main > section {
  position: relative;
  margin: 34px 0;
  padding: 30px 32px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 86, 219, 0.28);
}

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }

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

#hero {
  margin-top: 24px;
  padding: 48px 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.92) 0%, rgba(14, 159, 110, 0.85) 52%, rgba(124, 58, 237, 0.9) 100%);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite, fadeUp 0.7s var(--ease) both;
  color: #f8fbff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 300px at 82% 6%, rgba(255, 255, 255, 0.24), transparent 62%),
    radial-gradient(420px 260px at 6% 96%, rgba(255, 255, 255, 0.16), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

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

#hero h1,
#hero p {
  color: #ffffff;
}

#hero h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  max-width: 26ch;
}

#hero p {
  color: rgba(248, 251, 255, 0.92);
  max-width: 72ch;
}

#hero figure {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
}

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

main > nav[aria-label="面包屑"] {
  margin: 18px 0 6px;
}

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

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

main > nav[aria-label="面包屑"] li:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

main > nav[aria-label="面包屑"] a {
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

main > nav[aria-label="面包屑"] a:hover {
  color: var(--primary);
  background: rgba(26, 86, 219, 0.08);
}

main > nav[aria-label="面包屑"] li:last-child {
  color: var(--text-soft);
  font-weight: 600;
}

#products h3,
#solutions h3,
#brand h3,
#knowledge h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#products h3::before,
#solutions h3::before,
#brand h3::before,
#knowledge h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex: none;
  transform: rotate(45deg);
}

#cases h3 {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.07), rgba(14, 159, 110, 0.07));
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent);
  margin-bottom: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#cases h3:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#cases p:last-of-type {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px dashed rgba(26, 86, 219, 0.3);
  color: var(--text-soft);
  font-style: normal;
}

#news h3 {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

#news p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

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

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 86, 219, 0.3);
}

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

#articles article h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--text);
}

#articles article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.08);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 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);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(26, 86, 219, 0.38);
}

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

#faq details {
  margin: 0 0 12px;
  padding: 4px 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(26, 86, 219, 0.32);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(26, 86, 219, 0.4);
  background: linear-gradient(180deg, rgba(26, 86, 219, 0.05), transparent 60%), var(--bg-alt);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(26, 86, 219, 0.1);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

#faq summary:hover {
  color: var(--primary);
}

#faq details p {
  margin: 0 0 16px;
  padding-top: 2px;
  font-size: 0.95rem;
  color: var(--text-soft);
  animation: fadeUp 0.45s var(--ease) both;
}

#howto {
  background:
    linear-gradient(135deg, rgba(14, 159, 110, 0.08), rgba(26, 86, 219, 0.08)),
    var(--card-bg);
}

#howto h3 {
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  #howto h3 {
    color: var(--primary-light);
  }
}

#contact p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin: 0 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  font-size: 0.96rem;
}

#contact p:hover {
  transform: translateX(4px);
  border-color: rgba(26, 86, 219, 0.32);
  box-shadow: var(--shadow-sm);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.3);
}

footer {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 34px 20px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer section {
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

footer section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

footer h2 {
  font-size: 1.05rem;
  padding-left: 14px;
  margin-bottom: 12px;
}

footer h2::before {
  width: 4px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

footer > p:last-child {
  text-align: center;
  padding-top: 12px;
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
}

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

  header nav ul {
    gap: 2px;
  }

  header nav ul a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  main {
    padding: 0 16px 30px;
  }

  main > section {
    padding: 24px 20px;
    margin: 22px 0;
    border-radius: var(--radius);
  }

  #hero {
    padding: 34px 22px 30px;
  }

  #hero h1 {
    max-width: none;
  }
}

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

  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px 10px;
  }

  header nav > a {
    font-size: 1.12rem;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  header nav ul a {
    white-space: nowrap;
  }

  main {
    padding: 0 12px 24px;
  }

  main > section {
    padding: 20px 16px;
    margin: 16px 0;
    border-radius: var(--radius);
  }

  #hero {
    padding: 28px 18px 24px;
    margin-top: 14px;
  }

  h2 {
    padding-left: 13px;
  }

  h2::before {
    width: 4px;
  }

  figure {
    padding: 10px;
    margin: 1.2em 0;
  }

  #articles article {
    padding: 16px;
  }

  #faq details {
    padding: 2px 14px;
  }

  #faq summary {
    padding: 14px 34px 14px 0;
    font-size: 0.95rem;
  }

  #contact p {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  footer {
    padding: 24px 12px 32px;
  }

  footer section {
    padding: 18px 16px;
  }
}

@media (hover: none) {
  figure:hover,
  main > section:hover,
  #articles article:hover,
  #contact p:hover,
  footer section:hover,
  #cases h3:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

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

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