:root {
  --bg: #0f0f1a;
  --bg-alt: #1a1a2e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(26, 26, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #e8e8f0;
  --text-soft: #b4b4c8;
  --text-muted: #8a8aa0;
  --accent: #e94560;
  --accent-2: #f2a65a;
  --accent-3: #4a90d9;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #f2a65a 100%);
  --gradient-line: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.6), transparent);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 48px rgba(233, 69, 96, 0.18);
  --maxw: 1180px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fa;
    --bg-alt: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(26, 26, 46, 0.08);
    --text: #1a1a2e;
    --text-soft: #3d3d55;
    --text-muted: #6b6b82;
    --gradient-hero: linear-gradient(135deg, #eef1f8 0%, #e3e9f5 45%, #dbe4f5 100%);
    --shadow: 0 8px 32px rgba(26, 26, 46, 0.1);
    --shadow-hover: 0 16px 48px rgba(233, 69, 96, 0.15);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
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);
}

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform var(--transition);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#site-header nav {
  flex: 1;
  min-width: 0;
}

#site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
  list-style: none;
}

#site-header nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

#site-header nav a:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============ Main layout ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 64px;
}

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

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

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

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

/* ============ Sections ============ */
section {
  margin-top: clamp(40px, 6vw, 72px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

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

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

section h2 {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  padding-bottom: 14px;
  letter-spacing: 0.01em;
}

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

section h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--accent-2);
  letter-spacing: 0.01em;
}

section p {
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 78ch;
}

section ul,
section ol {
  padding-left: 1.4em;
  color: var(--text-soft);
}

section li {
  margin-bottom: 8px;
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(233, 69, 96, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(74, 144, 217, 0.3), transparent 45%),
    radial-gradient(circle at 60% 10%, rgba(242, 166, 90, 0.25), transparent 40%);
  filter: blur(20px);
  animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(4%, 3%, 0) scale(1.12);
  }
}

#hero h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-2) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  max-width: 72ch;
  color: var(--text-soft);
}

#hero > svg {
  width: 100%;
  max-width: 640px;
  margin: 32px auto 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero > svg:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.updated {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============ Cards: product / service / scenario / solution / case ============ */
#products,
#services,
#scenarios,
#solutions,
#cases,
#testimonials,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#intro {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

#products h3,
#services h3,
#scenarios h3,
#solutions h3,
#cases h3 {
  padding: 18px 20px;
  margin: 18px 0 0;
  border-radius: var(--radius);
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#products h3:hover,
#services h3:hover,
#scenarios h3:hover,
#solutions h3:hover,
#cases h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--accent-2);
}

#products h3 + p,
#services h3 + p,
#scenarios h3 + p,
#solutions h3 + p,
#cases h3 + p {
  padding: 0 20px 4px;
}

/* ============ Testimonials ============ */
#testimonials blockquote {
  position: relative;
  margin: 18px 0;
  padding: 24px 24px 24px 56px;
  border-radius: var(--radius);
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#testimonials blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

#testimonials blockquote p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
}

#testimonials blockquote footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* ============ News & Articles ============ */
#news article,
#articles article {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 69, 96, 0.4);
}

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

#news article h3::before,
#articles article h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  vertical-align: middle;
}

#news article p,
#articles article p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

#articles article a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233, 69, 96, 0.5);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

#articles article a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: var(--shadow-hover);
}

#faq summary {
  position: relative;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  transition: color var(--transition), background var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq summary:hover {
  color: var(--accent);
  background: var(--bg-card);
}

#faq details p {
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ HowTo steps ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 14px 18px 14px 60px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

/* ============ Contact & Sitemap & Links ============ */
#contact p {
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border-left: 3px solid var(--accent-3);
  font-size: 0.94rem;
  transition: border-color var(--transition), transform var(--transition);
}

#contact p:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

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

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

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

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ============ Footer ============ */
footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--glass-border);
}

footer section {
  margin-top: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  animation: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

footer h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-2);
  padding-bottom: 8px;
  position: relative;
}

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

footer p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

footer > p {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  #site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  #site-header nav {
    width: 100%;
  }

  #site-header nav ul {
    justify-content: flex-start;
    gap: 4px;
    max-height: 132px;
    overflow-y: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  #site-header nav a {
    font-size: 0.84rem;
    padding: 5px 10px;
  }

  html {
    scroll-padding-top: 140px;
  }
}

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

  main {
    padding: 0 14px 48px;
  }

  #hero {
    padding: 28px 18px;
    border-radius: var(--radius);
  }

  #hero > svg {
    margin-top: 24px;
  }

  #products,
  #services,
  #scenarios,
  #solutions,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #intro {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

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

  #products h3 + p,
  #services h3 + p,
  #scenarios h3 + p,
  #solutions h3 + p,
  #cases h3 + p {
    padding: 0 16px 4px;
  }

  #testimonials blockquote {
    padding: 20px 18px 20px 48px;
  }

  #testimonials blockquote::before {
    left: 12px;
    font-size: 2.6rem;
  }

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

  #faq summary {
    padding: 14px 42px 14px 16px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding: 0 16px 16px;
  }

  #howto ol li {
    padding: 12px 14px 12px 52px;
  }

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

  footer {
    padding: 32px 14px 28px;
    gap: 16px;
  }

  footer section {
    padding: 16px;
  }
}

/* ============ Motion & a11y ============ */
@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;
  }
}

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

@media print {
  #site-header,
  #hero::before,
  footer section {
    display: none;
  }

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

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