:root {
  --primary: #e8547c;
  --primary-dark: #c93f63;
  --primary-light: #ff7fa0;
  --secondary: #7c4dff;
  --accent: #ffb347;
  --bg: #fdf5f7;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --text: #2b1f24;
  --text-soft: #5c4a52;
  --text-muted: #8a7680;
  --border: rgba(232, 84, 124, 0.14);
  --shadow-sm: 0 2px 10px rgba(180, 60, 90, 0.08);
  --shadow-md: 0 10px 30px rgba(180, 60, 90, 0.12);
  --shadow-lg: 0 20px 60px rgba(180, 60, 90, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --grad-hero: linear-gradient(135deg, #ff9a9e 0%, #e8547c 45%, #b14bff 100%);
  --grad-accent: linear-gradient(135deg, #ffd16b 0%, #ff8a5b 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.55));
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140b10;
    --bg-alt: #1c1118;
    --bg-card: rgba(38, 22, 30, 0.72);
    --text: #f5e9ee;
    --text-soft: #d3bfc8;
    --text-muted: #9d8792;
    --border: rgba(255, 127, 160, 0.18);
    --glass: rgba(40, 24, 32, 0.55);
    --glass-border: rgba(255, 127, 160, 0.16);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #5c1f38 0%, #a02e55 45%, #4b2a8a 100%);
    --grad-card: linear-gradient(160deg, rgba(60, 34, 46, 0.9), rgba(40, 22, 30, 0.55));
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(232, 84, 124, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(124, 77, 255, 0.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-hero);
  box-shadow: 0 0 14px rgba(232, 84, 124, 0.45);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  color: var(--primary-dark);
}

h4 {
  font-size: 1.02rem;
  color: var(--text);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

blockquote {
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* ============ Header / Nav ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 4px 24px rgba(180, 60, 90, 0.08);
}

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

nav > a {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  padding: 8px 0;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

nav > a:hover {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 4px 10px rgba(232, 84, 124, 0.35));
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

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

nav ul li a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--primary-dark);
  background: rgba(232, 84, 124, 0.09);
  transform: translateY(-1px);
}

nav ul li a:hover::after,
nav ul li a:focus-visible::after {
  transform: scaleX(1);
}

/* ============ Main layout ============ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

section {
  margin: 0 0 34px;
  padding: 34px clamp(18px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

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

section > h3 {
  margin-top: 1.4em;
}

section > h3:first-of-type {
  margin-top: 0.4em;
}

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 26px;
  padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 65%);
  filter: blur(10px);
  animation: floatBlob 12s ease-in-out infinite;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 107, 0.4), transparent 65%);
  filter: blur(14px);
  animation: floatBlob 15s ease-in-out infinite reverse;
  z-index: -1;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-24px, 30px, 0) scale(1.08);
  }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(90, 10, 40, 0.35);
  max-width: 900px;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 860px;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(90, 10, 40, 0.25);
}

/* ============ Cards for repeated blocks ============ */
#products h3,
#solutions h3 {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products h3:hover,
#solutions h3:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 124, 0.35);
}

#products h4,
#solutions h4 {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(232, 84, 124, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  margin-top: 1.2em;
  border: 1px solid rgba(232, 84, 124, 0.18);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

#products h4:hover,
#solutions h4:hover {
  background: rgba(232, 84, 124, 0.18);
  transform: translateY(-2px);
}

/* ============ Cases ============ */
#cases h3 {
  position: relative;
  padding-left: 34px;
}

#cases h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(255, 138, 91, 0.45);
}

#cases blockquote {
  margin: 14px 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

/* ============ News ============ */
#news h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25em;
}

#news h3 + p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#news h3 + p::before {
  content: "🕒 ";
}

#news h3 + p + p {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#news h3 + p + p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============ Articles ============ */
#articles article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--grad-card);
  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);
}

#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 124, 0.35);
}

#articles article h3 {
  margin-bottom: 0.4em;
  transition: color 0.3s var(--ease);
}

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

#articles article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5em;
}

#articles article p:nth-of-type(1)::before {
  content: "📅 ";
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 6px 18px rgba(232, 84, 124, 0.32);
  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);
  box-shadow: 0 10px 26px rgba(232, 84, 124, 0.45);
  filter: brightness(1.06);
}

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

/* ============ FAQ ============ */
#faq h3 {
  padding: 16px 20px 16px 52px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  position: relative;
  font-size: 1.02rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 4px 12px rgba(232, 84, 124, 0.4);
}

#faq h3:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 124, 0.35);
}

#faq h3 + p {
  padding: 0 8px 10px 52px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* ============ HowTo ============ */
#howto h3 {
  display: inline-block;
  padding: 8px 18px;
  margin-top: 1.4em;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: rgba(232, 84, 124, 0.1);
  border: 1px solid rgba(232, 84, 124, 0.18);
}

#howto h4 {
  position: relative;
  padding-left: 30px;
  margin-top: 1.2em;
}

#howto h4::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 4px 10px rgba(255, 138, 91, 0.4);
}

/* ============ Contact ============ */
#contact h3 + p {
  padding: 10px 18px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  color: var(--primary-dark);
  border-color: rgba(232, 84, 124, 0.4);
  box-shadow: var(--shadow-md);
}

/* ============ Legal ============ */
#legal h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  margin-top: 1.6em;
}

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

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

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 20px;
  padding: 40px 20px 48px;
  text-align: center;
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

footer p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

footer p:last-child {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-light), var(--secondary));
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

::selection {
  background: rgba(232, 84, 124, 0.28);
  color: var(--text);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  nav {
    justify-content: center;
    padding: 10px 16px;
    gap: 8px;
  }

  nav ul {
    justify-content: center;
    gap: 2px;
  }

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

  nav ul li a::after {
    left: 10px;
    right: 10px;
  }

  main {
    padding: 0 14px 28px;
  }

  section {
    padding: 26px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
  }

  #hero {
    margin-top: 18px;
    padding: 40px 22px;
    border-radius: var(--radius);
  }

  #faq h3 {
    padding: 14px 16px 14px 48px;
  }

  #faq h3 + p {
    padding-left: 16px;
    padding-right: 4px;
  }

  #cases blockquote:hover {
    transform: translateY(-3px);
  }
}

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

  nav > a {
    font-size: 1.1rem;
  }

  nav ul {
    max-height: 132px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav ul li a {
    padding: 6px 9px;
    font-size: 0.82rem;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #articles article {
    padding: 18px 16px;
  }

  #articles article a {
    width: 100%;
    justify-content: center;
  }

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

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

  blockquote {
    padding: 14px 16px;
  }

  footer {
    padding: 30px 16px 38px;
  }
}

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

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

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

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
}