:root {
  --brand: #e8547c;
  --brand-dark: #c93a63;
  --brand-light: #ffd6e2;
  --accent: #8a5cf6;
  --accent-soft: #ede7ff;
  --bg: #fff7fa;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #2b2230;
  --text-soft: #6b5f70;
  --text-muted: #9a8fa0;
  --border: rgba(232, 84, 124, 0.16);
  --shadow-sm: 0 4px 14px rgba(201, 58, 99, 0.08);
  --shadow-md: 0 12px 32px rgba(201, 58, 99, 0.12);
  --shadow-lg: 0 24px 60px rgba(201, 58, 99, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --gradient-hero: linear-gradient(135deg, #ff8fb1 0%, #e8547c 45%, #8a5cf6 100%);
  --gradient-soft: linear-gradient(135deg, #fff0f5 0%, #f3edff 100%);
  --blur: saturate(160%) blur(16px);
  --maxw: 1180px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff7ba0;
    --brand-dark: #e8547c;
    --brand-light: #4a2434;
    --accent: #a98bff;
    --accent-soft: #2a2340;
    --bg: #14101a;
    --bg-alt: #1b1623;
    --surface: rgba(38, 30, 48, 0.68);
    --surface-solid: #241d30;
    --text: #f4eef7;
    --text-soft: #c3b8cc;
    --text-muted: #8f8499;
    --border: rgba(255, 123, 160, 0.2);
    --shadow-sm: 0 4px 14px 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);
    --gradient-hero: linear-gradient(135deg, #6a2f4a 0%, #a13a5c 45%, #4b3a86 100%);
    --gradient-soft: linear-gradient(135deg, #241a2a 0%, #1e1a30 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", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(232, 84, 124, 0.12), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(138, 92, 246, 0.12), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(255, 143, 177, 0.1), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

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

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

h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5em;
}

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

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 1.6em;
}

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 84, 124, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 10px 24px rgba(232, 84, 124, 0.5);
}

.brand-name {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand-dark);
  background: var(--brand-light);
  transform: translateY(-2px);
}

/* ============ LAYOUT ============ */
main {
  display: block;
}

main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.4rem 1.25rem;
}

main > section + section {
  border-top: 1px dashed var(--border);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease-in-out infinite;
  overflow: hidden;
  border-top: none !important;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -80px;
  background: rgba(255, 255, 255, 0.5);
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -60px;
  background: rgba(255, 214, 226, 0.6);
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem clamp(2.6rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 820px;
  margin: 1.2rem auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-answer {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  max-width: 780px;
  margin: 1.6rem auto;
  font-size: 0.95rem;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.hero-answer strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  will-change: transform;
}

.btn-primary {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--brand-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb [aria-current="page"] {
  color: var(--brand-dark);
  font-weight: 700;
}

/* ============ CARDS ============ */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#knowledge,
#contact,
#sitemap,
#links {
  animation: fadeUp 0.7s ease both;
}

#about > *,
#products > *,
#solutions > *,
#cases > *,
#news > *,
#howto > *,
#knowledge > *,
#contact > * {
  max-width: 100%;
}

#about,
#products,
#solutions,
#cases,
#news,
#howto,
#knowledge,
#contact {
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  padding: clamp(1.6rem, 3.5vw, 2.8rem) clamp(1.25rem, 3vw, 2.4rem);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#knowledge:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 84, 124, 0.3);
}

/* ============ ARTICLES ============ */
#articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

#articles > h2 {
  grid-column: 1 / -1;
}

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

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

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

#articles article .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-dark);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--brand-light);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

#articles article a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateX(2px);
}

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

/* ============ FAQ ============ */
#faq {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.8rem) clamp(1.25rem, 3vw, 2.4rem);
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}

#faq h3 {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

#faq h3:hover {
  border-color: var(--brand);
  transform: translateX(4px);
}

#faq h3 + p {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 0 0 0.8rem;
  font-size: 0.94rem;
}

/* ============ HOWTO ============ */
#howto {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.8rem) clamp(1.25rem, 3vw, 2.4rem);
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}

#howto h3 {
  position: relative;
  padding-left: 1.6rem;
}

#howto h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-hero);
  box-shadow: 0 0 0 4px var(--brand-light);
}

/* ============ CONTACT ============ */
#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  margin: 0;
}

#contact p:last-child {
  border-bottom: none;
}

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  transition: all var(--transition);
}

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

/* ============ FOOTER ============ */
footer {
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 2rem;
  background: var(--gradient-soft);
  border-top: 1px solid var(--border);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto;
}

footer > section + section {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px dashed var(--border);
}

footer h2 {
  font-size: 1.15rem;
  color: var(--text);
}

footer h3 {
  font-size: 0.98rem;
  color: var(--brand-dark);
  margin-top: 1.1em;
}

footer p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

footer p:last-child {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ SCROLL ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main > section {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.1s; }
main > section:nth-child(4) { animation-delay: 0.15s; }
main > section:nth-child(5) { animation-delay: 0.2s; }
main > section:nth-child(6) { animation-delay: 0.25s; }
main > section:nth-child(7) { animation-delay: 0.3s; }
main > section:nth-child(8) { animation-delay: 0.35s; }
main > section:nth-child(9) { animation-delay: 0.4s; }
main > section:nth-child(10) { animation-delay: 0.45s; }

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

/* ============ RESPONSIVE ============ */
@media (min-width: 720px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #articles {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  #articles article {
    padding: 1.7rem 1.8rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-list {
    justify-content: center;
  }

  .nav-list a {
    padding: 0.4rem 0.7rem;
    font-size: 0.86rem;
  }
}

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

  main > section {
    padding: 1.8rem 1rem;
  }

  .header-inner {
    padding: 0.6rem 0.9rem;
    gap: 0.6rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .nav-list {
    gap: 0.1rem;
  }

  .nav-list a {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .hero-inner {
    padding: 2.6rem 1rem 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.75rem 1.2rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #howto,
  #knowledge,
  #contact,
  #faq {
    border-radius: var(--radius-md);
    padding: 1.4rem 1.1rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #faq h3 {
    padding: 0.75rem 0.95rem;
    font-size: 0.94rem;
  }

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

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

@media (max-width: 380px) {
  .nav-list a {
    font-size: 0.74rem;
    padding: 0.3rem 0.5rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  .hero-actions,
  .breadcrumb {
    display: none;
  }

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

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