:root {
  --primary: #e94560;
  --primary-dark: #c62a47;
  --primary-light: #ff6b81;
  --secondary: #533483;
  --accent: #f5c542;
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.25);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #7a7a9a;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.14);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --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);
  --gradient-primary: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #533483 65%, #e94560 100%);
  --gradient-card: linear-gradient(135deg, rgba(233, 69, 96, 0.06) 0%, rgba(83, 52, 131, 0.06) 100%);
  --gradient-accent: linear-gradient(135deg, #f5c542 0%, #e94560 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 55, 0.78);
    --bg-glass: rgba(30, 30, 60, 0.35);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #eaeaf0;
    --text-secondary: #b0b0cc;
    --text-muted: #707090;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.35);
    --gradient-banner: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 30%, #2d1b4e 65%, #8b1a35 100%);
    --gradient-card: linear-gradient(135deg, rgba(233, 69, 96, 0.08) 0%, rgba(83, 52, 131, 0.08) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-slow);
}

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

h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition-slow);
}

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

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

header nav ul li {
  position: relative;
}

header nav ul li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  white-space: nowrap;
}

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

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(233, 69, 96, 0.06);
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

section {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }
section:nth-child(14) { animation-delay: 0.7s; }
section:nth-child(15) { animation-delay: 0.75s; }
section:nth-child(16) { animation-delay: 0.8s; }

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.35);
  }
}

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

#home {
  position: relative;
  background: var(--gradient-banner);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#home::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#home h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  animation: slideInLeft 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#home p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  max-width: 900px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  animation: slideInLeft 0.8s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#about,
#products,
#advantages,
#solutions,
#cases,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  border: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-slow), border-color var(--transition-slow);
}

#about:hover,
#products:hover,
#advantages:hover,
#solutions:hover,
#cases:hover,
#knowledge:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

#about h3,
#products h3,
#advantages h3,
#solutions h3,
#cases h3,
#knowledge h3,
#howto h3,
#contact h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--primary);
  transition: border-color var(--transition-base), padding-left var(--transition-base);
}

#about h3:hover,
#products h3:hover,
#advantages h3:hover,
#solutions h3:hover,
#cases h3:hover,
#knowledge h3:hover,
#howto h3:hover,
#contact h3:hover {
  border-color: var(--accent);
  padding-left: 1.2rem;
}

#about h3:first-of-type,
#products h3:first-of-type,
#advantages h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.5rem;
}

#news {
  background: transparent;
  padding: 0;
}

#news h2 {
  margin-bottom: 1.5rem;
}

#news article {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#news article:nth-child(1) { animation-delay: 0.05s; }
#news article:nth-child(2) { animation-delay: 0.1s; }
#news article:nth-child(3) { animation-delay: 0.15s; }
#news article:nth-child(4) { animation-delay: 0.2s; }
#news article:nth-child(5) { animation-delay: 0.25s; }
#news article:nth-child(6) { animation-delay: 0.3s; }
#news article:nth-child(7) { animation-delay: 0.35s; }
#news article:nth-child(8) { animation-delay: 0.4s; }
#news article:nth-child(9) { animation-delay: 0.45s; }
#news article:nth-child(10) { animation-delay: 0.5s; }

#news article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

#news article:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(233, 69, 96, 0.1);
}

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

#news article h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  border-left: none;
  padding-left: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

#news article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

#news article p:first-of-type::before {
  content: '📅';
  font-size: 0.75rem;
}

#news article p:nth-of-type(2) {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

#news article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: rgba(233, 69, 96, 0.08);
  transition: all var(--transition-base);
}

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

#news article a:hover {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
}

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

#faq details {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.25);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.08);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: 0 6px 24px rgba(233, 69, 96, 0.12);
  background: var(--bg-card);
}

#faq details summary {
  padding: 1rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  user-select: none;
}

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

#faq details summary::before {
  content: '▸';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.7rem;
  transition: transform var(--transition-base), background var(--transition-base);
}

#faq details[open] summary::before {
  transform: rotate(90deg);
  background: var(--gradient-accent);
}

#faq details summary:hover {
  background: rgba(233, 69, 96, 0.04);
}

#faq details p {
  padding: 0 1.3rem 1.2rem 3.1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease both;
}

#howto ol {
  counter-reset: howto-counter;
  padding-left: 0;
  margin: 1rem 0;
}

#howto ol li {
  counter-increment: howto-counter;
  position: relative;
  padding: 0.8rem 1rem 0.8rem 3.2rem;
  margin-bottom: 0.6rem;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#howto ol li:nth-child(1) { animation-delay: 0.05s; }
#howto ol li:nth-child(2) { animation-delay: 0.1s; }
#howto ol li:nth-child(3) { animation-delay: 0.15s; }
#howto ol li:nth-child(4) { animation-delay: 0.2s; }
#howto ol li:nth-child(5) { animation-delay: 0.25s; }
#howto ol li:nth-child(6) { animation-delay: 0.3s; }
#howto ol li:nth-child(7) { animation-delay: 0.35s; }

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.25);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.1);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.45);
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

#sitemap ul li,
#links ul li {
  animation: fadeIn 0.4s ease both;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: 50px;
}

#sitemap ul li a span,
#links ul li a span {
  position: relative;
  z-index: 1;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  opacity: 1;
}

#contact p {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  padding-left: 0;
  color: var(--text-secondary);
}

#contact p strong {
  color: var(--text-primary);
}

#cases p {
  font-size: 0.92rem;
  line-height: 1.8;
  padding: 0.6rem 0;
}

#cases p:nth-of-type(4n+1) {
  border-bottom: 1px dashed var(--border-color);
}

#cases h3 + p {
  padding-left: 0.5rem;
  border-left: 2px solid rgba(233, 69, 96, 0.2);
}

#cases p:last-of-type {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  margin-top: 0.5rem;
}

#author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--bg-glass-border);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 2rem;
  transition: background var(--transition-slow), border-color var(--transition-slow);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

footer > section {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

footer > section:hover {
  transform: none;
  box-shadow: none;
}

footer > section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

footer > section h2::after {
  width: 30px;
  height: 2px;
}

footer > section p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

footer > p {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

footer > p a::before {
  content: '↑';
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

footer > p a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.45);
  color: #fff;
}

footer > p a:hover::before {
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  main {
    padding: 0 1.2rem 2.5rem;
  }

  header nav ul {
    gap: 0;
  }

  header nav ul li a {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }

  #home {
    padding: 2.8rem 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  header nav {
    padding: 0 0.8rem;
  }

  header nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem 0;
    gap: 0.2rem;
  }

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

  header nav ul li a {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  main {
    padding: 0 0.9rem 2rem;
  }

  #home {
    padding: 2.2rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1.2rem;
    margin-bottom: 2rem;
  }

  #home::before {
    width: 300px;
    height: 300px;
    top: -30%;
    right: -30%;
  }

  #home::after {
    width: 250px;
    height: 250px;
    bottom: -30%;
    left: -20%;
  }

  #about,
  #products,
  #advantages,
  #solutions,
  #cases,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }

  #news article {
    padding: 1.2rem 1.2rem 1.2rem 1.5rem;
    border-radius: var(--radius-sm);
  }

  #news article::before {
    width: 3px;
  }

  #faq details summary {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    gap: 0.5rem;
  }

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

  #faq details p {
    padding: 0 1rem 1rem 2.8rem;
    font-size: 0.85rem;
  }

  #howto ol li {
    padding: 0.7rem 0.8rem 0.7rem 2.8rem;
    font-size: 0.88rem;
  }

  #howto ol li::before {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
    left: 0.6rem;
  }

  #sitemap ul,
  #links ul {
    gap: 0.45rem;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
  }

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

  footer > section h2 {
    font-size: 0.98rem;
  }

  footer > section p {
    font-size: 0.8rem;
  }

  footer > p a {
    padding: 0.45rem 1.2rem;
    font-size: 0.84rem;
  }
}

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

  #home {
    padding: 1.8rem 1.2rem;
    border-radius: var(--radius-md);
  }

  #home h1 {
    font-size: 1.3rem;
  }

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

  #about,
  #products,
  #advantages,
  #solutions,
  #cases,
  #knowledge,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    padding: 1.2rem 1rem;
    border-radius: var(--radius-sm);
  }

  h2 {
    font-size: 1.15rem;
  }

  h3 {
    font-size: 0.98rem;
  }

  #news article {
    padding: 1rem 1rem 1rem 1.2rem;
  }

  #news article h3 {
    font-size: 0.95rem;
  }

  #news article p:nth-of-type(2) {
    font-size: 0.85rem;
  }

  #news article a {
    font-size: 0.82rem;
    padding: 0.3rem 0.75rem;
  }

  #faq details summary {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  #faq details p {
    padding: 0 0.85rem 0.9rem 2.5rem;
    font-size: 0.82rem;
  }

  #howto ol li {
    padding: 0.6rem 0.7rem 0.6rem 2.5rem;
    font-size: 0.85rem;
  }

  #howto ol li::before {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
    left: 0.5rem;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 0.32rem 0.7rem;
    font-size: 0.78rem;
  }

  footer {
    padding: 1.5rem 0.8rem 1rem;
  }

  footer > section h2 {
    font-size: 0.92rem;
  }

  footer > section p {
    font-size: 0.76rem;
  }

  footer > p a {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 1400px) {
  main {
    max-width: 1320px;
  }

  header nav {
    max-width: 1320px;
  }
}

@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,
  footer,
  #home::before,
  #home::after {
    display: none;
  }

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

  #home {
    background: #f5f5f5;
    box-shadow: none;
  }

  #home h1,
  #home p {
    color: #000;
    text-shadow: none;
  }

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