:root {
  --primary: #e8547c;
  --primary-light: #f8a5be;
  --primary-dark: #c23b5f;
  --secondary: #7c5ce8;
  --accent: #ff8fa8;
  --warm: #ffb347;
  --bg: #fef7f9;
  --bg-alt: #fff0f4;
  --bg-card: #ffffff;
  --text: #2d1f28;
  --text-secondary: #6b5563;
  --text-muted: #9b8892;
  --border: #f0dce4;
  --shadow-sm: 0 2px 8px rgba(232, 84, 124, 0.06);
  --shadow-md: 0 8px 24px rgba(232, 84, 124, 0.1);
  --shadow-lg: 0 16px 48px rgba(232, 84, 124, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1218;
    --bg-alt: #221820;
    --bg-card: #2a1f28;
    --text: #f5edf1;
    --text-secondary: #c9b3bf;
    --text-muted: #8a7580;
    --border: #3d2c36;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(42, 31, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

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

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

body {
  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.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ===== HEADER / BANNER ===== */
header {
  position: relative;
  padding: 100px 24px 80px;
  background: linear-gradient(135deg, #e8547c 0%, #c23b5f 25%, #7c5ce8 60%, #5b3fa8 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 200, 220, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(124, 92, 232, 0.2) 0%, transparent 60%);
  animation: bannerFloat 20s ease-in-out infinite;
  pointer-events: none;
}

header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(70% 100% at 50% 100%);
  pointer-events: none;
}

@keyframes bannerFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out both;
}

header p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  line-height: 1.9;
  max-width: 780px;
  margin: 0 auto;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* ===== NAVIGATION ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav ul::-webkit-scrollbar {
  display: none;
}

nav ul li {
  flex-shrink: 0;
}

nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

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

nav ul li a:active {
  transform: translateY(0) scale(0.97);
}

/* ===== MAIN CONTAINER ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== SECTIONS ===== */
section {
  margin-top: 48px;
  animation: sectionReveal 0.7s ease-out both;
}

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

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

section > h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: 0.01em;
}

section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width 0.5s ease;
}

section:hover > h2::after {
  width: 80px;
}

section > h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  padding-left: 14px;
  position: relative;
}

section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

section > p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
}

section > ul {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

section > ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

section > ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  transition: transform var(--transition);
}

section > ul li:hover::before {
  transform: scale(1.4);
}

section > ol {
  counter-reset: item;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

section > ol li {
  position: relative;
  padding-left: 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  counter-increment: item;
}

section > ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  transition: transform var(--transition);
}

section > ol li:hover::before {
  transform: scale(1.15);
}

/* ===== CARDS ===== */
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#tech,
#knowledge {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

#products:hover,
#advantages:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#reviews:hover,
#news:hover,
#tech:hover,
#knowledge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== ARTICLE CARDS ===== */
article {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  background: var(--bg-card);
}

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  transition: color var(--transition);
}

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

article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

article a {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  gap: 4px;
  transition: all var(--transition);
}

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

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

article a:hover {
  color: var(--primary-dark);
}

/* ===== BLOCKQUOTE / REVIEWS ===== */
blockquote {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary-light);
  font-family: Georgia, serif;
  opacity: 0.6;
}

blockquote:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

blockquote p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ===== FAQ ===== */
#faq {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#faq h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  padding-right: 48px;
}

#faq h3::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
}

#faq h3:hover {
  background: rgba(232, 84, 124, 0.06);
  border-color: var(--primary-light);
  color: var(--primary);
}

#faq h3:hover::after {
  transform: translateY(-50%) rotate(90deg);
}

#faq p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
  padding: 0 20px 16px;
  margin-top: -8px;
}

/* ===== HOWTO ===== */
#howto {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#howto h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
  padding-left: 14px;
  position: relative;
}

#howto h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ===== CONTACT ===== */
#contact {
  background: linear-gradient(135deg, rgba(232, 84, 124, 0.04), rgba(124, 92, 232, 0.04));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
}

#contact h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
  padding-left: 14px;
  position: relative;
}

#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

#contact p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 8px;
}

/* ===== SITEMAP & LINKS ===== */
#sitemap,
#links {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== LEGAL ===== */
#legal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#legal h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

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

#legal p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #2d1f28 0%, #1a1218 100%);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 48px 24px 36px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

footer p {
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 6px;
  opacity: 0.8;
}

footer p:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== FOCUS ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    padding: 72px 20px 60px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  nav {
    padding: 0 8px;
  }

  nav ul {
    padding: 8px 0;
    gap: 2px;
  }

  nav ul li a {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 40px;
  }

  section {
    margin-top: 32px;
  }

  section > h2 {
    font-size: 1.25rem;
  }

  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #tech,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  article {
    padding: 18px;
  }

  blockquote {
    padding: 20px 22px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  footer {
    padding: 36px 20px 28px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 60px 16px 50px;
  }

  header h1 {
    font-size: 1.3rem;
  }

  main {
    padding: 0 12px 32px;
  }

  section > h2 {
    font-size: 1.15rem;
  }

  #products,
  #advantages,
  #solutions,
  #applications,
  #cases,
  #reviews,
  #news,
  #tech,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 20px 16px;
  }

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== PRINT ===== */
@media print {
  header {
    background: #fff;
    color: #000;
    padding: 20px;
  }

  header::before,
  header::after {
    display: none;
  }

  nav {
    display: none;
  }

  section {
    animation: none;
    box-shadow: none;
    border: 1px solid #ddd;
  }

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