:root {
  --brand: #c8102e;
  --brand-dark: #a30d25;
  --brand-light: #ff4d6a;
  --accent: #1a2a5e;
  --accent-2: #0f6b4f;
  --gold: #f5b301;
  --bg: #f5f6f8;
  --bg-soft: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --text: #1c1f26;
  --text-soft: #5a6172;
  --text-mute: #8a91a3;
  --border: rgba(28, 31, 38, 0.1);
  --shadow-sm: 0 2px 8px rgba(28, 31, 38, 0.06);
  --shadow-md: 0 8px 28px rgba(28, 31, 38, 0.1);
  --shadow-lg: 0 18px 48px rgba(28, 31, 38, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0d1017;
  --bg-soft: #161b25;
  --bg-elev: rgba(22, 27, 37, 0.72);
  --text: #e8ebf2;
  --text-soft: #a7afc0;
  --text-mute: #6f7889;
  --border: rgba(232, 235, 242, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 500px at 90% -10%, rgba(200, 16, 46, 0.07), transparent 60%),
    radial-gradient(900px 480px at -10% 20%, rgba(26, 42, 94, 0.07), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-light);
}

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

h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
}

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

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

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

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
}

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

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

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px 20px;
  font-size: 0.78rem;
  color: var(--text-mute);
  border-bottom: 1px dashed var(--border);
}

.brandbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
}

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

.logo svg {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.logo-text {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-light) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-search {
  display: flex;
  flex: 1 1 260px;
  max-width: 460px;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
}

.site-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 0.94rem;
  color: var(--text);
  font-family: inherit;
}

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

.site-search button {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.42);
}

.site-search button:active {
  transform: translateY(0);
}

#theme-toggle,
#menu-toggle {
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  color: var(--brand);
  border-color: var(--brand);
}

#menu-toggle {
  display: none;
}

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

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

#main-nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.3);
}

/* ---------- Main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 20px 60px;
}

main > section {
  margin-bottom: 26px;
  padding: 28px 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: rise 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
  }
}

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

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-mute);
}

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

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

/* ---------- Banner / Carousel ---------- */
#banner {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#banner:hover {
  box-shadow: none;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand), var(--accent) 55%, var(--accent-2));
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28));
}

.carousel .slide {
  display: none;
}

.carousel .slide.active {
  display: block;
  animation: fadeSlide 0.7s var(--ease);
}

.carousel .slide svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.1);
}

/* ---------- Intro stats ---------- */
#intro {
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.06), rgba(26, 42, 94, 0.05)),
    var(--bg-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.stats li {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-soft);
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stats li:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: var(--shadow-md);
}

.stats .num {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  background: linear-gradient(120deg, var(--brand), var(--brand-light) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- About / History ---------- */
#about,
#history {
  position: relative;
  overflow: hidden;
}

#about::before,
#history::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.14), transparent 70%);
  pointer-events: none;
}

#history::before {
  left: -90px;
  right: auto;
  background: radial-gradient(circle, rgba(15, 107, 79, 0.16), transparent 70%);
}

#history h3 {
  padding-left: 14px;
  border-left: 4px solid var(--brand-light);
}

/* ---------- Products ---------- */
#products {
  background:
    linear-gradient(160deg, rgba(26, 42, 94, 0.05), transparent 60%),
    var(--bg-soft);
}

#products ul:last-of-type {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: 18px;
}

#products ul:last-of-type li {
  margin: 0;
  padding: 14px 16px 14px 42px;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul:last-of-type li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

#products ul:last-of-type li:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 16, 46, 0.4);
}

/* ---------- Solutions ---------- */
#solutions {
  background:
    linear-gradient(200deg, rgba(15, 107, 79, 0.07), transparent 55%),
    var(--bg-soft);
}

#solutions h3 {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 0.5em;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--brand);
  background: rgba(200, 16, 46, 0.09);
}

/* ---------- Cases ---------- */
#cases blockquote {
  margin: 14px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

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

/* ---------- News & Articles ---------- */
#news article,
#articles article {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: var(--shadow-md);
}

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

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

#news article p:last-child,
#articles article p {
  margin-bottom: 0.6em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(200, 16, 46, 0.08);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

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

/* ---------- HowTo ---------- */
#howto {
  background:
    linear-gradient(140deg, rgba(245, 179, 1, 0.08), transparent 55%),
    var(--bg-soft);
}

#howto ol {
  counter-reset: howto;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  margin-bottom: 10px;
  padding: 12px 16px 12px 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(200, 16, 46, 0.35);
}

/* ---------- FAQ ---------- */
#faq details {
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(200, 16, 46, 0.3);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  cursor: pointer;
  padding: 15px 48px 15px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  user-select: 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.1rem;
  font-weight: 400;
  color: var(--brand);
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

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

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

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

/* ---------- Contact ---------- */
#contact {
  background:
    linear-gradient(150deg, rgba(26, 42, 94, 0.08), rgba(200, 16, 46, 0.06)),
    var(--bg-soft);
}

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

#contact ul li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.4);
}

/* ---------- Sitemap & Links ---------- */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 15px;
  font-size: 0.88rem;
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  transform: translateY(-2px);
}

/* ---------- Privacy & Disclaimer ---------- */
#privacy,
#disclaimer {
  font-size: 0.93rem;
}

#privacy p,
#disclaimer p {
  text-align: justify;
}

/* ---------- Footer ---------- */
#site-footer {
  position: relative;
  color: #cfd5e2;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(200, 16, 46, 0.28), transparent 65%),
    linear-gradient(160deg, #141a26, #0b0e15);
  padding: 46px 20px 30px;
  margin-top: 20px;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--accent-2), var(--accent));
}

.footer-info,
#site-footer nav,
.copyright {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.footer-info p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #aab3c5;
}

.footer-info p:first-child {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

#site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 18px;
  padding: 0;
}

#site-footer nav a {
  display: inline-block;
  padding: 6px 15px;
  font-size: 0.85rem;
  border-radius: 999px;
  color: #cfd5e2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#site-footer nav a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.copyright {
  margin: 0;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #7d879b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.42);
  opacity: 0.92;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  opacity: 1;
  box-shadow: 0 16px 34px rgba(200, 16, 46, 0.55);
}

#back-to-top:active {
  transform: translateY(-1px) scale(1);
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 130px;
  }

  main > section {
    padding: 22px 20px;
    border-radius: var(--radius);
  }

  main {
    padding: 18px 14px 48px;
  }

  .topbar {
    font-size: 0.72rem;
  }

  .brandbar {
    padding: 10px 14px;
    gap: 10px;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  #theme-toggle,
  #menu-toggle {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

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

  #main-nav {
    padding: 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  #main-nav.open {
    max-height: 520px;
    padding-bottom: 12px;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #main-nav a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
  }

  .carousel-prev,
  .carousel-next {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 9px 14px;
    font-size: 0.76rem;
  }
}

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

  .topbar {
    justify-content: center;
    text-align: center;
    padding: 6px 12px;
  }

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

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .site-search button {
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  main > section {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

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

  .stats li {
    padding: 14px 10px;
    font-size: 0.78rem;
  }

  #products ul:last-of-type,
  #contact ul {
    grid-template-columns: 1fr;
  }

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

  .footer-info p {
    font-size: 0.82rem;
  }

  #site-footer {
    padding: 34px 16px 24px;
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  #back-to-top,
  .carousel-prev,
  .carousel-next,
  #site-footer nav {
    display: none !important;
  }

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

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