:root {
  --peach-50: #fff5f8;
  --peach-100: #ffe4ec;
  --peach-200: #ffc9d9;
  --peach-300: #ffa8c0;
  --peach-400: #ff7d9c;
  --peach-500: #f95d82;
  --peach-600: #e8436b;
  --peach-700: #c22f55;
  --plum-800: #5c2a3d;
  --plum-900: #3b1a28;
  --cream: #fffaf6;
  --ink: #3a2a30;
  --ink-soft: #6b5560;
  --ink-mute: #9a8590;
  --line: rgba(255, 125, 156, 0.22);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #fffdfd;
  --shadow-sm: 0 4px 16px rgba(194, 47, 85, 0.08);
  --shadow-md: 0 12px 32px rgba(194, 47, 85, 0.12);
  --shadow-lg: 0 24px 60px rgba(194, 47, 85, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --grad-banner: linear-gradient(135deg, #ffd0de 0%, #ffb0c8 32%, #ff8fb0 64%, #f96f97 100%);
  --grad-accent: linear-gradient(120deg, #ff7d9c 0%, #ff9f7a 100%);
  --grad-soft: linear-gradient(160deg, rgba(255,255,255,0.9) 0%, rgba(255,236,242,0.75) 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --peach-50: #2a1a22;
    --peach-100: #3a2230;
    --peach-200: #4d2c3d;
    --cream: #1b1116;
    --ink: #f6e9ee;
    --ink-soft: #d3bcc6;
    --ink-mute: #a98e9a;
    --line: rgba(255, 168, 192, 0.18);
    --glass: rgba(58, 34, 48, 0.5);
    --glass-strong: rgba(58, 34, 48, 0.78);
    --card: rgba(58, 34, 48, 0.6);
    --card-solid: #2a1a22;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --grad-banner: linear-gradient(135deg, #4d2c3d 0%, #6a3550 32%, #8f3f60 64%, #b04a6e 100%);
    --grad-soft: linear-gradient(160deg, rgba(58,34,48,0.9) 0%, rgba(42,26,34,0.75) 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -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", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(255, 168, 192, 0.35), transparent 60%),
    radial-gradient(900px 500px at 92% 4%, rgba(255, 159, 122, 0.22), transparent 58%),
    radial-gradient(800px 700px at 50% 110%, rgba(255, 125, 156, 0.18), transparent 62%),
    var(--cream);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--peach-600);
  text-decoration: none;
  transition: color 0.28s var(--ease), opacity 0.28s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--peach-500);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid rgba(255, 125, 156, 0.5);
  outline-offset: 3px;
  border-radius: 6px;
}

ul,
ol {
  padding-left: 1.35em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1.05em;
}

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

h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.85rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(249, 93, 130, 0.35);
}

h3 {
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  color: var(--peach-700);
}

@media (prefers-color-scheme: dark) {
  h3 { color: var(--peach-200); }
}

h4 {
  font-size: 1.05rem;
}

blockquote {
  margin: 0;
}

::selection {
  background: rgba(255, 125, 156, 0.35);
  color: var(--plum-900);
}

/* ---------- Header / Nav ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(14px, 3vw, 32px);
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(194, 47, 85, 0.06);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

header:hover {
  box-shadow: 0 10px 34px rgba(194, 47, 85, 0.12);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  flex-wrap: wrap;
}

header nav > a {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--peach-600);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), color 0.3s var(--ease);
}

header nav > a:hover,
header nav > a:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-md);
  color: var(--peach-500);
  text-decoration: none;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

header nav ul li {
  margin: 0;
}

header nav ul a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

header nav ul a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}

header nav ul a:hover,
header nav ul a:focus-visible {
  color: var(--peach-600);
  background: rgba(255, 125, 156, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

header nav ul a:hover::after,
header nav ul a:focus-visible::after {
  width: 60%;
}

/* ---------- Main layout ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(14px, 3vw, 32px) clamp(40px, 6vw, 80px);
  display: block;
}

main > h1 {
  margin: 0 auto clamp(22px, 4vw, 40px);
  padding: clamp(30px, 6vw, 64px) clamp(20px, 5vw, 56px);
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 22px rgba(120, 20, 50, 0.35);
  background: var(--grad-banner);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

main > h1::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent 70%) 18% 22% / 42% 60% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent 70%) 82% 78% / 50% 66% no-repeat;
  z-index: -1;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

main > h1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
  z-index: -1;
}

@keyframes floatGlow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -3%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02); }
}

section {
  margin: 0 0 clamp(22px, 4vw, 40px);
  padding: clamp(20px, 4vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 125, 156, 0.4);
}

section:hover::before {
  opacity: 1;
}

section > h2 {
  margin-top: 0;
}

section h3 {
  margin-top: 1.5em;
}

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

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  section,
  main > h1 {
    opacity: 0;
    transform: translateY(26px);
    animation: revealUp 0.9s var(--ease) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }

  main > h1 {
    animation: revealUp 0.9s var(--ease) forwards;
    animation-timeline: auto;
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Intro highlight ---------- */

#intro {
  background: var(--grad-soft);
}

#intro p:first-of-type {
  font-size: 1.06rem;
  color: var(--ink);
}

/* ---------- Products / Solutions / Applications cards ---------- */

#products h3,
#solutions h3,
#applications h3,
#cases h3,
#howto h3 {
  display: inline-block;
  padding: 4px 16px 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 125, 156, 0.12);
  border-left: 4px solid var(--peach-400);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#products h3:hover,
#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#howto h3:hover {
  transform: translateX(6px);
  background: rgba(255, 125, 156, 0.2);
  box-shadow: var(--shadow-sm);
}

/* ---------- Testimonials ---------- */

#testimonials blockquote {
  position: relative;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px) clamp(18px, 3vw, 26px) clamp(52px, 7vw, 68px);
  margin-bottom: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  left: clamp(14px, 2.4vw, 22px);
  top: 2px;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--peach-300);
  opacity: 0.85;
}

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

#testimonials blockquote p {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- News & Articles ---------- */

#news article,
#articles article {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

#news article::after,
#articles article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateX(6px) translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 125, 156, 0.42);
}

#news article:hover::after,
#articles article:hover::after {
  transform: scaleY(1);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  color: var(--peach-700);
  background: none;
  border: none;
  padding: 0;
  display: block;
}

#news article h3:hover,
#articles article h3:hover {
  transform: none;
  background: none;
  box-shadow: none;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.86rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 125, 156, 0.12);
  color: var(--peach-600);
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#articles article a::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}

#articles article a:hover,
#articles article a:focus-visible {
  background: var(--grad-accent);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(249, 93, 130, 0.32);
  text-decoration: none;
}

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

/* ---------- FAQ ---------- */

#faq h3 {
  margin-top: 1.7em;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 125, 156, 0.09);
  border: 1px solid var(--line);
  border-left: 4px solid var(--peach-400);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#faq h3:hover {
  background: rgba(255, 125, 156, 0.18);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

#faq h3 + p {
  padding: 0 4px 0 22px;
  color: var(--ink-soft);
  animation: fadeIn 0.6s var(--ease);
}

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

/* ---------- HowTo steps ---------- */

#howto ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 62px;
  margin-bottom: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(249, 93, 130, 0.35);
  transition: transform 0.4s var(--ease-bounce);
}

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

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.14) rotate(-8deg);
}

/* ---------- Contact ---------- */

#contact p {
  padding: 10px 16px;
  margin-bottom: 10px;
  background: var(--glass-strong);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--peach-300);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#contact p:hover {
  transform: translateX(6px);
  border-color: var(--peach-500);
  background: rgba(255, 125, 156, 0.12);
}

#contact p:first-of-type {
  font-weight: 800;
  color: var(--peach-700);
}

/* ---------- Sitemap / Links ---------- */

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

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

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-bounce), color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

#sitemap ul a:hover,
#sitemap ul a:focus-visible,
#links ul a:hover,
#links ul a:focus-visible {
  transform: translateY(-4px) scale(1.05);
  background: var(--grad-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(249, 93, 130, 0.35);
  text-decoration: none;
}

/* ---------- Legal ---------- */

#legal {
  background: var(--grad-soft);
}

#legal h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-top: 1.4em;
}

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

#legal h2::after {
  width: 40px;
  height: 3px;
}

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

/* ---------- Meta ---------- */

#meta p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

#meta p:last-child {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--peach-600);
  font-weight: 700;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 20px;
  padding: clamp(26px, 4vw, 44px) clamp(16px, 3vw, 32px);
  background: var(--glass-strong);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 -6px 26px rgba(194, 47, 85, 0.07);
  text-align: center;
}

footer p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

footer nav a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 125, 156, 0.1);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--ease-bounce), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

footer nav a:hover,
footer nav a:focus-visible {
  transform: translateY(-3px);
  background: var(--grad-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(249, 93, 130, 0.3);
  text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  header nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  header nav > a {
    align-self: flex-start;
  }

  header nav ul {
    justify-content: flex-start;
  }

  main > h1 {
    border-radius: var(--radius-md);
  }

  section {
    border-radius: var(--radius-md);
  }
}

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

  header {
    padding: 10px 12px;
  }

  header nav ul {
    gap: 2px 4px;
  }

  header nav ul a {
    padding: 6px 11px;
    font-size: 0.86rem;
  }

  main {
    padding: 16px 12px 48px;
  }

  main > h1 {
    padding: 28px 18px;
    border-radius: var(--radius-md);
  }

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

  section:hover {
    transform: none;
  }

  h2::after {
    width: 48px;
    height: 4px;
  }

  #testimonials blockquote {
    padding-left: 48px;
  }

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

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

  #howto ol li::before {
    left: 11px;
    width: 30px;
    height: 30px;
    font-size: 0.86rem;
  }

  #sitemap ul a,
  #links ul a,
  footer nav a {
    padding: 7px 14px;
    font-size: 0.86rem;
  }
}

@media (max-width: 380px) {
  header nav ul a {
    padding: 5px 9px;
    font-size: 0.82rem;
  }

  main > h1 {
    font-size: 1.45rem;
  }
}

/* ---------- Motion safety ---------- */

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

/* ---------- Print ---------- */

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

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

  section,
  main > h1 {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    break-inside: avoid;
  }

  main > h1 {
    color: #000;
    text-shadow: none;
  }
}