:root {
  --bg: #0f0f1a;
  --bg-soft: #16162a;
  --surface: rgba(30, 30, 52, 0.72);
  --surface-solid: #1e1e34;
  --surface-hover: rgba(46, 46, 78, 0.85);
  --text: #ececf5;
  --text-muted: #a2a2bd;
  --primary: #e94560;
  --primary-soft: #ff6b81;
  --accent: #7b5cff;
  --accent-2: #00d4b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --glass-blur: blur(18px) saturate(160%);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 40%, #e94560 100%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #7b5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, 0.18), rgba(233, 69, 96, 0.14));
  --maxw: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="light"] {
  --bg: #f4f5fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.95);
  --text: #1a1a2e;
  --text-muted: #5c5c78;
  --border: rgba(26, 26, 46, 0.1);
  --border-strong: rgba(26, 26, 46, 0.18);
  --shadow-sm: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 10px 32px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.16);
  --grad-hero: linear-gradient(135deg, #eef0ff 0%, #ffe4ea 45%, #ffd0da 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, 0.1), rgba(233, 69, 96, 0.08));
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #f4f5fb;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --surface-hover: rgba(255, 255, 255, 0.95);
    --text: #1a1a2e;
    --text-muted: #5c5c78;
    --border: rgba(26, 26, 46, 0.1);
    --border-strong: rgba(26, 26, 46, 0.18);
    --shadow-sm: 0 4px 16px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 10px 32px rgba(26, 26, 46, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.16);
    --grad-hero: linear-gradient(135deg, #eef0ff 0%, #ffe4ea 45%, #ffd0da 100%);
    --grad-soft: linear-gradient(135deg, rgba(123, 92, 255, 0.1), rgba(233, 69, 96, 0.08));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(233, 69, 96, 0.16), transparent 60%),
    radial-gradient(800px 480px at 92% 4%, rgba(123, 92, 255, 0.16), transparent 62%),
    radial-gradient(700px 420px at 50% 100%, rgba(0, 212, 184, 0.08), transparent 65%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.32;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 700;
}

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

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  box-shadow: 0 0 18px rgba(233, 69, 96, 0.55);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--text);
}

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

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--primary);
}

time {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.85;
}

blockquote {
  margin: 1.2em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

blockquote p {
  margin: 0 0 0.7em;
  color: var(--text);
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

::selection {
  background: rgba(233, 69, 96, 0.4);
  color: #fff;
}

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

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

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

#site-header nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-actions form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions input[type="search"] {
  width: 210px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

.header-actions input[type="search"]::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.header-actions input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.22);
  width: 250px;
}

.header-actions button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.header-actions form button {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
}

.header-actions form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.5);
}

#theme-toggle {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

#theme-toggle:hover {
  transform: rotate(-18deg) scale(1.08);
  border-color: var(--primary);
}

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

main > section {
  margin-bottom: 56px;
  animation: fadeUp 0.7s var(--ease) 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; }

#hero {
  position: relative;
  padding: 40px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.55), transparent 68%);
  filter: blur(30px);
  z-index: -1;
  animation: floaty 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.5), transparent 68%);
  filter: blur(34px);
  z-index: -1;
  animation: floaty 11s ease-in-out infinite reverse;
}

html[data-theme="light"] #hero::before,
html[data-theme="light"] #hero::after {
  opacity: 0.5;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5em;
}

html[data-theme="light"] #hero h1 {
  color: #1a1a2e;
  text-shadow: none;
}

.hero-lead {
  max-width: 780px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .hero-lead {
  color: #3a3a55;
}

.hero-banner {
  margin: 26px 0 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-banner:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg);
}

.hero-banner svg {
  width: 100%;
  height: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

html[data-theme="light"] .stat-item {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(26, 26, 46, 0.12);
  color: #1a1a2e;
}

.stat-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .stat-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

.stat-number {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

.stat-item > span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  opacity: 0.82;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: 0.88rem;
  width: fit-content;
}

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb a {
  color: var(--text-muted);
}

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

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#articles article,
#news article {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

#articles article:hover,
#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.4);
}

#articles article h3,
#news article h3 {
  margin-bottom: 0.35em;
  transition: color 0.25s var(--ease);
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#articles article a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.45);
  color: #fff;
}

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

#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details:last-of-type {
  margin-bottom: 0;
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: var(--shadow-sm);
  background: var(--surface-hover);
}

#faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: 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%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  background: var(--grad-accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

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

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

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

#howto ol,
#howto ul {
  padding-left: 1.5em;
}

#howto ol > li {
  padding: 6px 0;
}

#howto ol > li::marker {
  color: var(--primary);
  font-weight: 700;
}

#contact address {
  font-style: normal;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  border: 1px solid var(--border);
}

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

#contact address li {
  margin: 0;
  padding: 4px 0;
  color: var(--text);
  font-size: 0.94rem;
}

#sitemap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}

#sitemap ul li {
  margin: 0;
}

#sitemap ul a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#sitemap ul a:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-hover);
}

#site-footer {
  position: relative;
  margin-top: 20px;
  padding: 48px 20px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.footer-col h3 {
  font-size: 1.02rem;
  margin-bottom: 0.7em;
  color: var(--text);
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
}

.footer-col p {
  font-size: 0.88rem;
  margin-bottom: 0.6em;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(233, 69, 96, 0.6);
}

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

@keyframes floaty {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.08);
  }
}

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

@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  .nav-list a {
    padding: 6px 9px;
    font-size: 0.86rem;
  }

  .header-actions input[type="search"] {
    width: 160px;
  }

  .header-actions input[type="search"]:focus {
    width: 190px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: auto;
  }

  .header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  #site-header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #site-header nav::-webkit-scrollbar {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 2px;
  }

  .nav-list a {
    white-space: nowrap;
    padding: 7px 13px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions input[type="search"] {
    width: 130px;
  }

  .header-actions input[type="search"]:focus {
    width: 150px;
  }

  .header-actions form button {
    padding: 8px 12px;
  }

  main {
    padding: 20px 16px 44px;
  }

  main > section {
    margin-bottom: 36px;
  }

  #hero {
    padding: 28px 20px 24px;
    border-radius: var(--radius-md);
  }

  .hero-banner {
    margin: 18px 0 22px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-item {
    padding: 14px 10px;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #articles article,
  #news article {
    padding: 16px 16px;
  }

  #contact address {
    padding: 18px;
  }

  #contact address ul {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 22px;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

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

  .brand-name {
    font-size: 1.05rem;
  }

  .header-actions form {
    display: none;
  }

  #hero {
    padding: 22px 16px 20px;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-item > span:last-child {
    font-size: 0.78rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap {
    padding: 18px 14px;
  }

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

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

  #sitemap ul a {
    padding: 5px 12px;
    font-size: 0.84rem;
  }

  .footer-bottom {
    font-size: 0.76rem;
    line-height: 1.6;
  }
}

@media (hover: none) {
  .hero-banner:hover,
  #articles article:hover,
  #news article:hover,
  .stat-item:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  #hero::before,
  #hero::after {
    display: none !important;
  }

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

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

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