:root {
  --bg: #f5f6fa;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.65);
  --text: #1b1f3b;
  --text-soft: #4a5070;
  --text-muted: #767c96;
  --brand: #ff5a5f;
  --brand-2: #3aa0ff;
  --brand-3: #ffc247;
  --accent: #6c5ce7;
  --border: rgba(27, 31, 59, 0.1);
  --shadow-sm: 0 2px 8px rgba(27, 31, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 31, 59, 0.1);
  --shadow-lg: 0 24px 60px rgba(27, 31, 59, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-hero: linear-gradient(135deg, #1b1f3b 0%, #2a2f5e 40%, #4a3b8c 75%, #ff5a5f 140%);
  --gradient-brand: linear-gradient(135deg, #ff5a5f 0%, #ff8a5c 50%, #ffc247 100%);
  --gradient-cool: linear-gradient(135deg, #3aa0ff 0%, #6c5ce7 100%);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --header-bg: rgba(245, 246, 250, 0.72);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

html[data-theme="dark"],
html.dark-mode,
body.dark-mode {
  --bg: #0e1122;
  --bg-soft: #161a30;
  --bg-elevated: rgba(30, 35, 60, 0.6);
  --text: #eef0f8;
  --text-soft: #b9bfd8;
  --text-muted: #8b92b0;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --gradient-hero: linear-gradient(135deg, #0a0d1f 0%, #1a1f45 45%, #3a2a6e 80%, #b83b52 150%);
  --glass-bg: rgba(30, 35, 60, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(14, 17, 34, 0.72);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0e1122;
    --bg-soft: #161a30;
    --bg-elevated: rgba(30, 35, 60, 0.6);
    --text: #eef0f8;
    --text-soft: #b9bfd8;
    --text-muted: #8b92b0;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --gradient-hero: linear-gradient(135deg, #0a0d1f 0%, #1a1f45 45%, #3a2a6e 80%, #b83b52 150%);
    --glass-bg: rgba(30, 35, 60, 0.45);
    --glass-border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(14, 17, 34, 0.72);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 15% -10%, rgba(255, 90, 95, 0.08), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(58, 160, 255, 0.08), transparent 45%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

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

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

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

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

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.5em; color: var(--text-soft); }

strong { color: var(--text); font-weight: 700; }

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

blockquote {
  margin: 1.5em 0;
  padding: 1.2em 1.5em;
  border-left: 4px solid var(--brand);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo svg {
  border-radius: 10px;
  transition: transform var(--transition);
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.35);
}

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

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

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

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

.nav-list li { margin: 0; }

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-list a:hover::after { width: 55%; }

.site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.site-search input[type="search"] {
  width: 170px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: width var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.site-search input[type="search"]:focus {
  outline: none;
  width: 220px;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.15);
}

.site-search button,
#theme-toggle,
#menu-toggle {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-cool);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 14px rgba(58, 160, 255, 0.28);
}

.site-search button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(58, 160, 255, 0.4);
}

.site-search button:active,
#theme-toggle:active,
#menu-toggle:active {
  transform: translateY(0);
}

#theme-toggle {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
}

#menu-toggle {
  display: none;
  background: var(--gradient-brand);
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.3);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.breadcrumb {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.85rem;
}

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

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
}

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

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

section {
  margin-bottom: 2.5rem;
  padding: 2rem 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  scroll-margin-top: 90px;
}

section:hover {
  box-shadow: var(--shadow-md);
}

section > h2 {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

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

h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--gradient-cool);
  vertical-align: middle;
}

#hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 90, 95, 0.35), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(58, 160, 255, 0.35), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 194, 71, 0.25), transparent 50%);
  filter: blur(40px);
  z-index: -1;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}

#hero h1 {
  color: #fff;
  margin-top: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

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

.banner-carousel {
  margin: 2rem 0 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition);
}

.banner-carousel:hover {
  transform: translateY(-4px) scale(1.005);
}

.banner-carousel figure {
  margin: 0;
  position: relative;
}

.banner-carousel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.2rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 13, 31, 0.85), transparent);
}

.hero-stats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-stats li {
  margin: 0;
  padding: 1rem 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition), background var(--transition);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.01em;
}

#products ul,
#solutions ul,
#howto ul,
#howto ol,
#knowledge ul,
#sitemap ul,
#links ul,
#editorial ul,
#contact ul {
  list-style: none;
  padding-left: 0;
}

#products > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

#products > ul li {
  margin: 0;
  padding: 1rem 1.1rem 1rem 2.6rem;
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#products > ul li::before {
  content: "✓";
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-cool);
  border-radius: 50%;
}

#products > ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(58, 160, 255, 0.4);
}

#news article {
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 95, 0.35);
}

#news article h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

#news article h3::before {
  display: none;
}

#news article h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--transition), color var(--transition);
}

#news article h3 a:hover {
  color: var(--brand);
  background-size: 100% 2px;
}

#news article p {
  margin-bottom: 0.5rem;
}

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

#news article p a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

#news article p a:hover {
  transform: translateX(3px);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(255, 90, 95, 0.35);
  color: #fff;
}

#howto ol {
  counter-reset: step;
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-cool);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(58, 160, 255, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(58, 160, 255, 0.4);
}

#howto ul li {
  position: relative;
  padding-left: 1.4rem;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gradient-brand);
}

#faq details {
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#faq details[open] {
  border-color: rgba(255, 90, 95, 0.4);
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: rgba(58, 160, 255, 0.4);
}

#faq summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition), background var(--transition);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  background: var(--gradient-cool);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

#faq details[open] summary {
  color: var(--brand);
}

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

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

#faq details p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--text-soft);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

#contact address {
  font-style: normal;
}

#contact address ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 1.5rem;
}

#contact address li {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.92rem;
  transition: transform var(--transition), border-color var(--transition);
}

#contact address li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 95, 0.4);
}

#contact address a { font-weight: 600; }

#editorial ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#editorial li {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), color var(--transition), border-color var(--transition), background var(--transition);
}

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

#cases blockquote {
  display: grid;
  gap: 0.5rem;
}

footer {
  margin-top: 2rem;
  padding: 2.5rem 1.25rem 1.5rem;
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 90, 95, 0.2), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(58, 160, 255, 0.2), transparent 45%);
  pointer-events: none;
}

footer > section,
footer > p {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

footer h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  position: relative;
}

footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-brand);
}

footer h3 {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.98rem;
  margin-top: 1rem;
}

footer h3::before { background: var(--gradient-brand); }

footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

footer section {
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

footer small {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

#back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  padding: 0.7rem 1.1rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 90, 95, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition);
}

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

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 90, 95, 0.55);
}

.reveal,
.fade-in,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible,
.fade-in.visible,
.animate-on-scroll.visible,
.reveal.in-view,
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal,
  .fade-in,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .header-inner { gap: 0.7rem; }
  .site-search input[type="search"] { width: 140px; }
  .site-search input[type="search"]:focus { width: 170px; }
  .nav-list a { padding: 0.4rem 0.55rem; font-size: 0.86rem; }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  #site-header nav {
    order: 10;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  #site-header nav.open,
  #site-header.nav-open nav {
    max-height: 520px;
    overflow: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
  }

  .nav-list a {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  .nav-list a::after { display: none; }

  .site-search {
    flex: 1 1 auto;
    order: 5;
  }

  .site-search input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .site-search input[type="search"]:focus { width: auto; }

  #menu-toggle { display: inline-block; order: 6; }

  #theme-toggle { order: 7; }

  section {
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius-md);
  }

  #hero {
    padding: 2.2rem 1.4rem;
    border-radius: var(--radius-lg);
  }

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

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

  main { padding: 1rem 0.85rem 2rem; }

  .header-inner { padding: 0.6rem 0.85rem; }

  .logo-text { font-size: 1rem; }

  .site-search button { padding: 0.5rem 0.75rem; font-size: 0.8rem; }

  #theme-toggle,
  #menu-toggle { padding: 0.5rem 0.7rem; font-size: 0.78rem; }

  section { padding: 1.3rem 1rem; }

  #hero { padding: 1.8rem 1.1rem; }

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

  #products > ul { grid-template-columns: 1fr; }

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

  #faq summary { padding: 0.85rem 2.8rem 0.85rem 1rem; font-size: 0.94rem; }

  #back-to-top { right: 0.8rem; bottom: 0.8rem; padding: 0.6rem 0.9rem; font-size: 0.78rem; }

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

  footer section { padding: 1.1rem 1rem; }
}

@media (hover: none) {
  section:hover { box-shadow: var(--shadow-sm); }
  #news article:hover,
  #products > ul li:hover,
  #contact address li:hover { transform: none; }
}