:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #16162a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(22, 22, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(120, 120, 255, 0.35);
  --text-primary: #f0f0f8;
  --text-secondary: #a8a8c0;
  --text-muted: #6e6e8a;
  --accent: #7c6cff;
  --accent-2: #ff6b9d;
  --accent-3: #4ecdc4;
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #2a1a4e 70%, #1a1a2e 100%);
  --gradient-accent: linear-gradient(135deg, #7c6cff 0%, #ff6b9d 100%);
  --gradient-accent-2: linear-gradient(135deg, #4ecdc4 0%, #7c6cff 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(124, 108, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.65);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(124, 108, 255, 0.4);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8888a0;
    --gradient-banner: linear-gradient(135deg, #e8e6ff 0%, #f0e6ff 35%, #e6f0ff 70%, #f5f5fa 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(124, 108, 255, 0.08);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

blockquote {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  margin: 1.25rem 0;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

blockquote p {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background 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;
  justify-content: space-between;
  gap: 24px;
}

header nav > a:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

header nav > a:first-child:hover {
  opacity: 0.85;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

header nav ul li {
  flex-shrink: 0;
}

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

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

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

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

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

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

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

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

section {
  padding: 48px 0;
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

section + section {
  border-top: 1px solid var(--border-color);
}

#hero {
  position: relative;
  padding: 72px 48px;
  margin: 16px 0 32px;
  background: var(--gradient-banner);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.85;
}

#hero p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2rem;
  margin-bottom: 0;
}

#hero p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
}

#hero p:last-child a:first-child {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 108, 255, 0.35);
}

#hero p:last-child a:first-child:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(124, 108, 255, 0.5);
}

#hero p:last-child a:last-child {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#hero p:last-child a:last-child:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px) scale(1.02);
}

#about h3,
#products h3,
#services h3,
#solutions h3,
#cases h3,
#news h3,
#articles h3,
#faq h3,
#howto h3,
#contact h3,
#legal h2,
#meta-info h2 {
  position: relative;
  padding-left: 16px;
}

#about h3::before,
#products h3::before,
#services h3::before,
#solutions h3::before,
#cases h3::before,
#news h3::before,
#articles h3::before,
#faq h3::before,
#howto h3::before,
#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--gradient-accent);
  border-radius: 2px;
}

#products > p,
#services > p,
#articles > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

#products h3 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 20px 12px 32px;
  margin-top: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

#products h3:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#products h3 + p {
  padding: 0 20px 20px 32px;
  margin-top: -4px;
  margin-bottom: 0;
}

#products > p:last-of-type {
  margin-top: 1.5rem;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1.85;
}

#cases article,
#news article,
#articles article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#cases article::before,
#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

#cases article:hover,
#news article:hover,
#articles article:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

#cases article:hover::before,
#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#cases article h3,
#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

#news article p:first-of-type::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  display: inline-block;
}

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0;
  transition: gap var(--transition), color var(--transition);
}

#articles article p:last-child a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles article p:last-child a:hover {
  gap: 8px;
  color: var(--accent-2);
}

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

#cases blockquote {
  margin: 16px 0;
}

#faq h3 {
  cursor: default;
  padding: 18px 18px 18px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
  margin-top: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

#faq h3:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

#faq h3 + p {
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: 0;
  margin-bottom: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.925rem;
  line-height: 1.8;
}

#howto h3 {
  color: var(--accent-3);
}

#howto h3 + p {
  padding-left: 16px;
  border-left: 2px solid var(--border-color);
}

#howto p {
  line-height: 1.85;
}

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

#contact ul li {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

#contact ul li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#contact ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gradient-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

#contact h3 + p {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 3px solid var(--accent-3);
}

#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: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 108, 255, 0.35);
}

#legal h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  padding-left: 0;
}

#legal h2::after {
  display: none;
}

#legal p {
  font-size: 0.9rem;
  line-height: 1.85;
}

#meta-info ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

#meta-info ul li {
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

footer {
  margin-top: 48px;
  padding: 40px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

footer p:last-child {
  margin-top: 16px;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: all var(--transition);
}

footer a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 108, 255, 0.35);
}

footer a::before {
  content: "\2191";
}

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

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 20px) scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }

@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: 64px;
  }

  header nav {
    padding: 0 16px;
    gap: 16px;
  }

  header nav > a:first-child {
    font-size: 1.15rem;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px;
  }

  #hero {
    padding: 56px 32px;
    border-radius: var(--radius-lg);
  }

  section {
    padding: 36px 0;
  }
}

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

  html {
    font-size: 15px;
  }

  header nav {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  header nav > a:first-child {
    font-size: 1.1rem;
    align-self: flex-start;
  }

  header nav ul {
    width: 100%;
    gap: 2px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  main {
    padding: 0 12px;
  }

  #hero {
    padding: 40px 20px;
    margin: 8px 0 16px;
    border-radius: var(--radius-md);
  }

  #hero p:last-child {
    flex-direction: column;
    gap: 10px;
  }

  #hero p:last-child a {
    width: 100%;
    padding: 14px 24px;
  }

  section {
    padding: 28px 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  #cases article,
  #news article,
  #articles article {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  #products h3 {
    padding: 16px 16px 10px 28px;
  }

  #products h3 + p {
    padding: 0 16px 16px 28px;
  }

  #products > p:last-of-type {
    padding: 18px;
  }

  #faq h3 {
    padding: 14px 14px 14px 28px;
    font-size: 0.95rem;
  }

  #faq h3 + p {
    padding: 14px 18px;
    font-size: 0.875rem;
  }

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

  #contact ul li {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

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

  footer {
    padding: 28px 16px;
    margin-top: 32px;
  }

  footer p {
    font-size: 0.75rem;
  }

  blockquote {
    padding: 1rem 1rem 1rem 1.75rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  #hero {
    padding: 32px 16px;
  }

  #hero::before {
    width: 300px;
    height: 300px;
  }

  #hero::after {
    width: 250px;
    height: 250px;
  }

  #sitemap ul,
  #links ul {
    gap: 8px;
  }

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

  #meta-info ul li {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (hover: none) {
  #products h3:hover,
  #cases article:hover,
  #news article:hover,
  #articles article:hover,
  #contact ul li:hover,
  #sitemap ul li a:hover,
  #links ul li a:hover,
  footer a:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  #hero p:last-child,
  nav[aria-label="面包屑导航"] {
    display: none;
  }

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

  section {
    break-inside: avoid;
    padding: 16px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}