:root {
  --primary: #E8574A;
  --primary-light: #F07B70;
  --primary-dark: #C9453A;
  --primary-glow: rgba(232, 87, 74, 0.25);
  --secondary: #F5A623;
  --secondary-light: #FFC85C;
  --accent: #7B68EE;
  --accent-light: #9B8FFF;
  --bg: #FDF8F5;
  --bg-alt: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.5);
  --text: #2D2A26;
  --text-secondary: #6B6560;
  --text-tertiary: #9E9790;
  --border: #EDE6E0;
  --border-light: #F5F0EB;
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 42, 38, 0.12);
  --shadow-xl: 0 24px 64px rgba(45, 42, 38, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --max-width: 1140px;
  --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #F07B70;
    --primary-light: #FF9B92;
    --primary-dark: #E8574A;
    --primary-glow: rgba(240, 123, 112, 0.3);
    --secondary: #FFC85C;
    --secondary-light: #FFD98A;
    --accent: #9B8FFF;
    --accent-light: #B8AFFF;
    --bg: #141210;
    --bg-alt: #1C1917;
    --bg-card: #211E1B;
    --bg-glass: rgba(28, 25, 23, 0.78);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #F0EBE5;
    --text-secondary: #B0A8A0;
    --text-tertiary: #7A736C;
    --border: #2E2A26;
    --border-light: #262220;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  word-break: break-word;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

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

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  color: var(--text);
}

h4 {
  font-size: 1.05rem;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header:hover {
  box-shadow: var(--shadow-sm);
}

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

nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast);
}

nav > a:first-child::before {
  content: '♥';
  font-size: 1.1rem;
  color: var(--primary);
  animation: heartbeat 2s ease-in-out infinite;
}

nav > a:first-child:hover {
  transform: scale(1.03);
  opacity: 1;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

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

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

nav ul li a:hover {
  color: var(--primary);
  background: var(--primary-glow);
  opacity: 1;
}

nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

article > h1 {
  padding: 48px 0 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out both;
}

article > h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  -webkit-text-fill-color: initial;
  background-clip: border-box;
}

section {
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease-out both;
}

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

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

#intro {
  background: linear-gradient(135deg, rgba(232, 87, 74, 0.06) 0%, rgba(245, 166, 35, 0.06) 50%, rgba(123, 104, 238, 0.06) 100%);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  margin-top: 24px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

#intro::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.1); }
}

#intro p {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  line-height: 1.85;
}

#about,
#products,
#solutions,
#applications,
#cases,
#testimonials,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#author,
#legal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

#about:hover,
#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#testimonials:hover,
#news:hover,
#articles:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

#products h3,
#solutions h3,
#applications h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  margin-top: 1.2em;
  transition: all var(--transition-fast);
}

#products h3:hover,
#solutions h3:hover,
#applications h3:hover {
  border-left-color: var(--secondary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#products h3::before,
#solutions h3::before,
#applications h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

#cases h3 {
  padding: 8px 0 4px;
  color: var(--primary-dark);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

#testimonials h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.25em;
}

#testimonials h3::before {
  content: '“';
  font-size: 1.5em;
  color: var(--primary-light);
  margin-right: 2px;
  font-family: var(--font-serif);
}

#testimonials p {
  padding-left: 16px;
  border-left: 2px solid var(--border);
  font-style: italic;
  color: var(--text-secondary);
}

#news h3 {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 0.2em;
}

#news h3 + p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5em;
}

#news > h3 {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

#articles > article {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#articles > article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#articles > article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-glow);
}

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

#articles > article h3 {
  margin-top: 0;
  font-size: 1.08rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

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

#articles > article > p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 0.4em;
}

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

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

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

#faq h3 {
  font-size: 1.02rem;
  color: var(--text);
  padding: 14px 0 6px;
  margin-top: 1em;
  border-top: 1px solid var(--border-light);
  cursor: default;
  transition: color var(--transition-fast);
}

#faq h3:first-of-type {
  border-top: none;
  margin-top: 0;
}

#faq h3::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

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

#faq p {
  padding-left: 30px;
  font-size: 0.95rem;
  line-height: 1.8;
}

#howto h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 1rem;
  padding: 8px 0;
}

#howto h4::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

#howto h3 {
  color: var(--accent);
  font-size: 1.05rem;
  padding: 6px 0;
}

#contact p {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

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

#contact p strong {
  color: var(--text);
  font-weight: 600;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

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

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}

#author p {
  padding: 4px 0;
  font-size: 0.92rem;
}

#author p:first-of-type {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

#legal h2 {
  font-size: 1.15rem;
  margin-top: 1.8em;
}

#legal h2::after {
  width: 32px;
  height: 2px;
}

#legal p {
  font-size: 0.92rem;
  line-height: 1.8;
}

footer {
  margin-top: 48px;
  padding: 40px 20px 32px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  line-height: 1.7;
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 1024px) {
  :root {
    --max-width: 100%;
  }

  nav {
    padding: 0 16px;
  }

  main {
    padding: 0 16px;
  }

  #intro {
    padding: 32px 24px;
  }

  #about,
  #products,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #author,
  #legal {
    padding: 28px 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 15px;
  }

  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  nav > a:first-child {
    font-size: 1.2rem;
    align-self: flex-start;
  }

  nav ul {
    width: 100%;
    padding-bottom: 4px;
    gap: 2px;
  }

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

  article > h1 {
    padding: 32px 0 12px;
    font-size: 1.5rem;
  }

  article > h1::after {
    width: 60px;
    height: 3px;
    margin-top: 16px;
  }

  section {
    margin-bottom: 32px;
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 2em;
  }

  h2::after {
    width: 36px;
    height: 2px;
  }

  h3 {
    font-size: 1.05rem;
  }

  #intro {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    margin-top: 16px;
  }

  #intro p {
    font-size: 0.95rem;
  }

  #about,
  #products,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #author,
  #legal {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  #products h3,
  #solutions h3,
  #applications h3 {
    padding: 10px 14px;
    font-size: 1rem;
  }

  #articles > article {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
  }

  #articles > article h3 {
    font-size: 1rem;
  }

  #faq p {
    padding-left: 0;
    font-size: 0.9rem;
  }

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

  #faq h3::before {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

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

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

  footer {
    padding: 28px 16px 24px;
    margin-top: 32px;
  }

  footer p {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

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

  nav ul li a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  article > h1 {
    font-size: 1.3rem;
    padding: 24px 0 10px;
  }

  h2 {
    font-size: 1.15rem;
  }

  #intro {
    padding: 20px 14px;
  }

  #intro p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  #about,
  #products,
  #solutions,
  #applications,
  #cases,
  #testimonials,
  #news,
  #articles,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #author,
  #legal {
    padding: 18px 14px;
  }

  #products h3,
  #solutions h3,
  #applications h3 {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  #articles > article {
    padding: 14px 14px;
  }

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

  #contact p {
    font-size: 0.88rem;
  }
}

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

@media print {
  header {
    position: static;
    background: none;
    border-bottom: 1px solid #ccc;
  }

  nav ul {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

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

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

  footer {
    border-top: 1px solid #ccc;
  }
}