:root {
  --brand: #8B1A4F;
  --brand-2: #C94F7C;
  --brand-3: #E8A0BF;
  --brand-4: #F5D0E0;
  --ink: #1f1420;
  --ink-2: #4a3a46;
  --ink-3: #7a6a76;
  --bg: #fff7fb;
  --bg-2: #fdeef5;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(139, 26, 79, 0.12);
  --shadow: 0 10px 30px rgba(139, 26, 79, 0.10);
  --shadow-lg: 0 20px 50px rgba(139, 26, 79, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --glass-blur: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff6fae;
    --brand-2: #d94a86;
    --brand-3: #a83a68;
    --brand-4: #4a1e35;
    --ink: #f4eaf1;
    --ink-2: #cbb9c6;
    --ink-3: #9c8897;
    --bg: #140d13;
    --bg-2: #1c1119;
    --card: rgba(38, 24, 34, 0.62);
    --card-solid: #221620;
    --border: rgba(255, 111, 174, 0.16);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 79, 124, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(232, 160, 191, 0.20), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
}

h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

ul, ol {
  color: var(--ink-2);
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--ink);
}

blockquote {
  margin: 1em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand-2);
  background: var(--card);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
}

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

/* ============ Header / Nav ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(139, 26, 79, 0.06);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header nav p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  white-space: nowrap;
}

header nav p strong {
  font-size: 1.05rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

header nav ul li a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 26, 79, 0.25);
}

/* ============ Breadcrumb ============ */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

body > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  background: var(--card);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  width: fit-content;
  box-shadow: var(--shadow);
}

body > nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  color: var(--ink-3);
}

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

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

main > section {
  position: relative;
  margin: 28px 0;
  padding: clamp(20px, 3.5vw, 40px);
  background: var(--card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s var(--ease) both;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 79, 124, 0.28);
}

/* Scroll-driven reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  main > section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

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

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

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #8B1A4F 0%, #C94F7C 45%, #E8A0BF 100%);
  border: none;
  color: #fff;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 10% 110%, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

#hero h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

#hero figure {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ============ About / Products / Solutions ============ */
#about h3,
#products h3,
#solutions h3,
#knowledge h3,
#howto h3,
#contact h3 {
  margin-top: 1.4em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-3);
}

#about h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.4em;
}

#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#products ul li {
  margin: 0;
  padding: 16px 18px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(139, 26, 79, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 79, 124, 0.35);
}

#products ul li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
}

/* ============ Cases ============ */
#cases blockquote {
  margin: 14px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201, 79, 124, 0.08), rgba(232, 160, 191, 0.10));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

/* ============ News ============ */
#news h3 {
  margin-top: 1.5em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

#news h3 + p {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* ============ Articles ============ */
#articles {
  display: grid;
  gap: 0;
}

#articles article {
  margin: 0 0 18px;
  padding: 20px 22px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(139, 26, 79, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#articles article:last-child {
  margin-bottom: 0;
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 79, 124, 0.32);
}

#articles article h3 {
  margin-top: 0;
  color: var(--brand);
}

#articles article h3 + p {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 8px;
}

#articles article p {
  margin-bottom: 0.7em;
}

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

#articles article p a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

#articles article p a:hover,
#articles article p a:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 26, 79, 0.32);
  filter: brightness(1.06);
}

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 12px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px rgba(139, 26, 79, 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(201, 79, 124, 0.32);
  box-shadow: var(--shadow);
}

#faq details[open] {
  border-color: rgba(201, 79, 124, 0.4);
  box-shadow: var(--shadow);
}

#faq summary {
  position: relative;
  padding: 15px 46px 15px 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-2);
  transition: transform 0.3s var(--ease);
}

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

#faq summary:hover {
  background: linear-gradient(120deg, rgba(201, 79, 124, 0.08), rgba(232, 160, 191, 0.10));
  color: var(--brand);
}

#faq details > p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-2);
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 56px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px rgba(139, 26, 79, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(139, 26, 79, 0.3);
}

#howto ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

#howto ul li {
  margin: 0;
  padding: 12px 16px 12px 38px;
  position: relative;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--brand-2);
  font-weight: 700;
}

/* ============ Contact ============ */
#contact p {
  margin-bottom: 0.5em;
}

#contact h3 + p {
  padding: 10px 16px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#contact h3 + p:hover {
  border-color: rgba(201, 79, 124, 0.35);
  transform: translateX(3px);
}

/* ============ 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 li a,
#links ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 999px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

#sitemap ul li a:hover,
#links ul li a:hover,
#sitemap ul li a:focus-visible,
#links ul li a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(139, 26, 79, 0.28);
}

/* ============ Author ============ */
#author {
  background: linear-gradient(135deg, rgba(139, 26, 79, 0.06), rgba(232, 160, 191, 0.10));
}

#author p {
  margin-bottom: 0.4em;
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 50px) clamp(16px, 4vw, 40px) 40px;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(201, 79, 124, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(139, 26, 79, 0.06), rgba(139, 26, 79, 0.02));
  border-top: 1px solid var(--border);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 18px;
  padding: 18px 22px;
  background: var(--card);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

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

footer > section h2 {
  font-size: 1.05rem;
  padding-left: 12px;
  margin-bottom: 8px;
}

footer > section h2::before {
  width: 4px;
}

footer > section p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-3);
}

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

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  header nav ul::-webkit-scrollbar {
    height: 4px;
  }

  header nav ul::-webkit-scrollbar-thumb {
    background: var(--brand-3);
    border-radius: 4px;
  }

  header nav ul li a {
    white-space: nowrap;
  }

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

  #hero {
    border-radius: var(--radius);
  }
}

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

  main {
    padding-top: 12px;
    padding-bottom: 40px;
  }

  main > section {
    margin: 18px 0;
    padding: 20px 16px;
  }

  #hero {
    padding: 24px 18px;
  }

  #hero figure {
    margin-top: 20px;
  }

  #products ul,
  #howto ul {
    grid-template-columns: 1fr;
  }

  #articles article {
    padding: 16px;
  }

  #faq summary {
    padding: 13px 42px 13px 14px;
    font-size: 0.95rem;
  }

  #faq details > p {
    padding: 0 14px 14px;
  }

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

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

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

  #sitemap ul li a,
  #links ul li a {
    padding: 7px 13px;
    font-size: 0.82rem;
  }

  footer > section {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  header nav p {
    font-size: 0.85rem;
  }

  header nav p strong {
    font-size: 0.95rem;
  }
}

/* ============ Print ============ */
@media print {
  header,
  body > nav[aria-label="面包屑导航"],
  #hero figure,
  footer {
    display: none !important;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
    animation: none;
  }

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