:root {
  --primary: #ff4d6d;
  --primary-dark: #c9184a;
  --primary-light: #ff8fa3;
  --secondary: #7b2cbf;
  --secondary-light: #c77dff;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.35);
  --bg-body: #faf7fb;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.68);
  --bg-footer: #1a1a2e;
  --text-main: #1d1d2b;
  --text-sub: #5a5a72;
  --text-light: #8e8ea8;
  --border-color: rgba(123, 44, 191, 0.12);
  --shadow-sm: 0 2px 8px rgba(123, 44, 191, 0.08);
  --shadow-md: 0 8px 28px rgba(123, 44, 191, 0.12);
  --shadow-lg: 0 18px 48px rgba(123, 44, 191, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --blur: 18px;
  --transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-hero: linear-gradient(135deg, #ff4d6d 0%, #7b2cbf 55%, #3a0ca3 100%);
  --gradient-accent: linear-gradient(90deg, #ff4d6d, #7b2cbf, #00d4ff);
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"],
body.dark-mode {
  --bg-body: #0f0f1a;
  --bg-card: rgba(30, 30, 48, 0.72);
  --bg-card-solid: #1a1a2e;
  --bg-header: rgba(18, 18, 32, 0.72);
  --bg-footer: #08080f;
  --text-main: #ececf5;
  --text-sub: #b0b0c8;
  --text-light: #7a7a96;
  --border-color: rgba(199, 125, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --accent-glow: rgba(0, 212, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-body: #0f0f1a;
    --bg-card: rgba(30, 30, 48, 0.72);
    --bg-card-solid: #1a1a2e;
    --bg-header: rgba(18, 18, 32, 0.72);
    --bg-footer: #08080f;
    --text-main: #ececf5;
    --text-sub: #b0b0c8;
    --text-light: #7a7a96;
    --border-color: rgba(199, 125, 255, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --accent-glow: rgba(0, 212, 255, 0.22);
  }
}

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

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

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 77, 109, 0.10), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(123, 44, 191, 0.10), transparent 44%),
    radial-gradient(circle at 50% 92%, rgba(0, 212, 255, 0.08), transparent 46%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--secondary);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  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-main);
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 0.9em;
  color: var(--text-sub);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-body);
}

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

#site-header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

#site-header nav > a {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  position: relative;
  padding: 0.25rem 0;
  transition: transform var(--transition);
}

#site-header nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#site-header nav > a:hover {
  transform: translateY(-1px);
}

#site-header nav > a:hover::after {
  transform: scaleX(1);
}

#site-header nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

#site-header nav ul li a {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

#site-header nav ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.14), rgba(123, 44, 191, 0.14));
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition), transform var(--transition);
  z-index: -1;
}

#site-header nav ul li a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

#site-header nav ul li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.4rem 3rem;
}

section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 84px;
}

section > h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 1.4rem;
  padding-left: 1rem;
  position: relative;
  display: inline-block;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.1em;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

section > h3 {
  font-size: clamp(1.12rem, 2.4vw, 1.35rem);
  margin: 1.8rem 0 0.8rem;
  color: var(--text-main);
  position: relative;
  padding-left: 0.85rem;
}

section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.16);
}

#hero {
  position: relative;
  margin: 1.6rem 0 3.5rem;
  padding: clamp(2.4rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 3.6rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  background-size: 200% 200%;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: heroGradient 14s ease infinite;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(0, 212, 255, 0.30), transparent 42%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);
  animation: heroShine 7s ease-in-out infinite;
  pointer-events: none;
}

#hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  line-height: 1.3;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.96rem, 1.7vw, 1.08rem);
  max-width: 62ch;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

#hero p:last-child {
  margin-bottom: 0;
}

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

@keyframes heroShine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

#brand-intro,
#products,
#solutions,
#cases,
#articles,
#faq,
#howto,
#news,
#contact,
#sitemap,
#links {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#brand-intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#news:hover,
#contact:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 44, 191, 0.24);
}

#products > h3,
#solutions > h3,
#cases > h3,
#contact > h3 {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.08), rgba(123, 44, 191, 0.08));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin-top: 1.6rem;
}

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

#products p,
#solutions p,
#brand-intro p {
  text-align: justify;
}

#articles > p {
  font-size: 0.95rem;
  color: var(--text-light);
  padding: 0.7rem 1rem;
  background: rgba(0, 212, 255, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-bottom: 1.6rem;
}

#articles article {
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#articles article::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 77, 109, 0.28);
}

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

#articles article:hover::after {
  opacity: 1;
}

#articles article h3 {
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
  padding-left: 0;
  transition: color var(--transition);
}

#articles article h3::before {
  display: none;
}

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

#articles article time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(123, 44, 191, 0.10);
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

#articles article p {
  font-size: 0.94rem;
  margin-bottom: 0.85rem;
  color: var(--text-sub);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 109, 0.08);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

#articles article a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.35);
}

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

#faq h3 {
  cursor: default;
  padding: 1rem 1.2rem 1rem 2.6rem;
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

#faq h3 + p {
  padding: 1rem 1.2rem 1.1rem 2.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  background: rgba(123, 44, 191, 0.04);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

#faq h3 + p::before {
  content: "A";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--secondary);
  background: rgba(123, 44, 191, 0.12);
  border-radius: 50%;
}

#faq h3:hover {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.06), rgba(123, 44, 191, 0.06));
  color: var(--primary);
}

#faq h3:hover + p {
  background: rgba(123, 44, 191, 0.07);
}

#howto h3 {
  margin-top: 1.8rem;
  color: var(--secondary);
}

#howto h3::before {
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.16);
}

#howto p {
  padding-left: 0.4rem;
}

#news ul {
  display: grid;
  gap: 0.85rem;
}

#news li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.8rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-sub);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.14);
  animation: pulseDot 2.4s ease-in-out infinite;
}

#news li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 212, 255, 0.35);
}

#news time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.5rem;
  letter-spacing: 0.03em;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(0, 212, 255, 0.05); }
}

#contact p {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  padding-left: 0.2rem;
}

#contact p:nth-of-type(1),
#contact p:nth-of-type(2),
#contact p:nth-of-type(3),
#contact p:nth-of-type(4) {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(123, 44, 191, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
  transition: background var(--transition), transform var(--transition);
}

#contact p:nth-of-type(1):hover,
#contact p:nth-of-type(2):hover,
#contact p:nth-of-type(3):hover,
#contact p:nth-of-type(4):hover {
  background: rgba(123, 44, 191, 0.10);
  transform: translateX(4px);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(123, 44, 191, 0.28);
}

footer {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 3.2rem) 1.4rem 2rem;
  background: var(--bg-footer);
  color: #c8c8dc;
  border-top: 1px solid rgba(199, 125, 255, 0.18);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  background-size: 200% 100%;
  animation: heroGradient 8s ease infinite;
}

footer section {
  max-width: 1200px;
  margin: 0 auto 1.6rem;
}

footer section h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.6rem;
  padding-left: 0.8rem;
  position: relative;
}

footer section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1em;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
}

footer section p {
  font-size: 0.88rem;
  color: #9a9ab8;
  line-height: 1.8;
  max-width: 78ch;
}

footer > p {
  max-width: 1200px;
  margin: 0 auto 0.4rem;
  font-size: 0.82rem;
  color: #7a7a96;
  text-align: center;
}

footer > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  #site-header nav {
    padding: 0.65rem 1rem;
  }

  #site-header nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 0.15rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.3rem;
  }

  #site-header nav ul li a {
    padding: 0.35rem 0.7rem;
    font-size: 0.86rem;
  }

  main {
    padding: 0 1rem 2.4rem;
  }

  section {
    margin-bottom: 2.4rem;
  }

  #hero {
    margin: 1rem 0 2.4rem;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  #site-header nav > a {
    font-size: 1.05rem;
  }

  #site-header nav ul li a {
    padding: 0.3rem 0.58rem;
    font-size: 0.8rem;
  }

  #brand-intro,
  #products,
  #solutions,
  #cases,
  #articles,
  #faq,
  #howto,
  #news,
  #contact,
  #sitemap,
  #links {
    padding: 1.25rem 1.05rem;
    border-radius: var(--radius-md);
  }

  section > h2 {
    font-size: 1.28rem;
    padding-left: 0.8rem;
  }

  section > h3 {
    font-size: 1.05rem;
  }

  #articles article {
    padding: 1.15rem 1.1rem;
  }

  #faq h3 {
    padding: 0.85rem 0.9rem 0.85rem 2.4rem;
    font-size: 0.95rem;
  }

  #faq h3 + p {
    padding: 0.85rem 0.9rem 0.95rem 2.4rem;
    font-size: 0.88rem;
  }

  #faq h3::before,
  #faq h3 + p::before {
    left: 0.75rem;
    width: 20px;
    height: 20px;
    font-size: 0.66rem;
  }

  #news li {
    padding: 0.85rem 0.9rem 0.85rem 2.5rem;
    font-size: 0.88rem;
  }

  #news li::before {
    left: 1rem;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 0.42rem 0.9rem;
    font-size: 0.84rem;
  }

  footer {
    padding: 1.8rem 1rem 1.6rem;
  }
}

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

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #site-header,
  #brand-intro,
  #products,
  #solutions,
  #cases,
  #articles,
  #faq,
  #howto,
  #news,
  #contact,
  #sitemap,
  #links {
    background: var(--bg-card-solid);
  }
}