:root {
  --brand: #e63946;
  --brand-dark: #c1121f;
  --brand-soft: rgba(230, 57, 70, 0.12);
  --accent: #ff8a5c;
  --accent-2: #7b2cbf;
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.62);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #1f1d22;
  --text-soft: #5a5560;
  --text-mute: #8a8492;
  --border: rgba(31, 29, 34, 0.1);
  --border-soft: rgba(31, 29, 34, 0.06);
  --shadow-sm: 0 2px 8px rgba(31, 29, 34, 0.06);
  --shadow: 0 10px 30px rgba(31, 29, 34, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 29, 34, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #e63946 0%, #ff8a5c 48%, #7b2cbf 100%);
  --grad-brand: linear-gradient(135deg, #e63946, #ff6b6b);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --grad-text: linear-gradient(120deg, #e63946, #7b2cbf);
  --header-h: 68px;
  --maxw: 1200px;
  --ease: 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;
}

html[data-theme="dark"] {
  --bg: #0f0e13;
  --bg-alt: #17161d;
  --bg-glass: rgba(23, 22, 29, 0.6);
  --bg-glass-strong: rgba(23, 22, 29, 0.86);
  --text: #f2eff5;
  --text-soft: #b9b3c2;
  --text-mute: #837d8f;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-card: linear-gradient(160deg, rgba(40, 38, 50, 0.85), rgba(23, 22, 29, 0.6));
  --brand-soft: rgba(230, 57, 70, 0.22);
}

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

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

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(1200px 600px at 100% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(123, 44, 191, 0.1), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 800;
  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-brand);
}

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

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

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

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-style: italic;
}

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

address {
  font-style: normal;
}

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

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

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

/* ============ Header ============ */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s ease, background-color 0.4s ease;
}

#siteHeader.is-scrolled {
  box-shadow: var(--shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

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

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

.brand-name {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#mainNav {
  flex: 1 1 auto;
  min-width: 0;
}

#mainNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#mainNav li {
  margin: 0;
}

#mainNav a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

#mainNav a:hover,
#mainNav a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.site-search input {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  width: 180px;
  min-width: 0;
  border-radius: var(--radius-pill);
}

.site-search input::placeholder {
  color: var(--text-mute);
}

.site-search input:focus {
  outline: none;
}

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: filter 0.25s ease, transform 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#themeToggle,
#menuToggle {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

#themeToggle:hover,
#menuToggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

#menuToggle {
  display: none;
}

/* ============ Main / Layout ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin-top: 20px;
  font-size: 0.85rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-mute);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

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

/* ============ Hero ============ */
#hero {
  position: relative;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 14s ease infinite;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(500px 260px at 10% 100%, rgba(0, 0, 0, 0.22), transparent 65%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
  max-width: 22ch;
}

#hero .lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  max-width: 70ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hero-slider .slide {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.hero-slider .slide:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.hero-slider .slide svg {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 320;
  object-fit: cover;
}

.hero-slider figcaption {
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

/* ============ Generic card sections ============ */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#copyright {
  background: var(--grad-card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease), border-color 0.4s ease;
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-soft);
}

#about h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#articles h3,
#howto h3,
#contact h3 {
  margin-top: 1.4em;
  padding-bottom: 0.3em;
  border-bottom: 1px dashed var(--border);
}

#about h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#articles h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.4em;
}

/* ============ News / Articles cards ============ */
#news article,
#articles article {
  position: relative;
  margin: 18px 0;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-soft);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

#news article p,
#articles article p {
  font-size: 0.93rem;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  transition: background-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

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

#articles article a:hover {
  text-decoration: none;
  background: var(--brand);
  color: #fff;
}

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

/* ============ HowTo list ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 54px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--brand-soft);
}

/* ============ FAQ ============ */
#faq {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#faq details {
  margin: 10px 0;
  background: var(--grad-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

#faq details[open] {
  box-shadow: var(--shadow);
  border-color: var(--brand-soft);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

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

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

#faq details > p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 0.94rem;
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ Contact ============ */
#contact address {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
  margin-bottom: 1.4em;
}

#contact address p {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

#contact address p:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
}

/* ============ Sitemap / Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), background-color 0.25s ease;
}

#sitemap a:hover,
#links a:hover {
  text-decoration: none;
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 28px;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-mute);
}

.footer-inner p:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

footer nav ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

footer nav li {
  margin: 0;
}

footer nav a {
  color: var(--text-soft);
  font-size: 0.86rem;
}

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

/* ============ Back to top ============ */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(230, 57, 70, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s ease, filter 0.25s ease;
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  #mainNav a {
    padding: 7px 8px;
    font-size: 0.84rem;
  }
  .site-search input {
    width: 140px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

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

  #menuToggle {
    display: inline-block;
  }

  #mainNav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s ease;
  }

  #mainNav.is-open {
    max-height: 640px;
    opacity: 1;
    overflow-y: auto;
  }

  #mainNav ul {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 12px;
  }

  #mainNav a {
    display: block;
    padding: 11px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  .site-search {
    flex: 1 1 160px;
  }

  .site-search input {
    width: 100%;
    flex: 1 1 auto;
  }

  .hero-slider {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-slider .slide svg {
    aspect-ratio: 800 / 260;
  }

  main > section {
    margin-top: 40px;
  }
}

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

  main {
    padding: 0 14px 44px;
  }

  #hero {
    padding: 24px 18px;
    border-radius: var(--radius);
  }

  #hero h1 {
    max-width: none;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #howto,
  #contact,
  #sitemap,
  #links,
  #privacy,
  #disclaimer,
  #copyright {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    margin-top: 4px;
  }

  .site-search input {
    width: 100%;
  }

  .header-tools {
    gap: 8px;
  }

  #themeToggle,
  #menuToggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

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

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

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

  #backToTop {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .footer-inner {
    padding: 28px 16px 22px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1rem;
  }
  #themeToggle,
  #menuToggle {
    padding: 6px 10px;
  }
}

@media print {
  #siteHeader,
  #backToTop,
  .site-search,
  #themeToggle,
  #menuToggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}