:root {
  --brand: #c8102e;
  --brand-dark: #a00d24;
  --brand-light: #e63a52;
  --accent: #f4b400;
  --accent-2: #2a9d8f;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --ink-mute: #7a7a8e;
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(26, 26, 46, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 50px rgba(26, 26, 46, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 72px;
  --grad-hero: linear-gradient(135deg, #c8102e 0%, #e63a52 42%, #f4b400 100%);
  --grad-soft: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(244, 180, 0, 0.1));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --brand: #ff5c72;
  --brand-dark: #e63a52;
  --brand-light: #ff8095;
  --accent: #ffc93c;
  --accent-2: #4ecdc4;
  --ink: #f2f2f7;
  --ink-soft: #c8c8d6;
  --ink-mute: #8e8ea6;
  --bg: #101018;
  --bg-alt: #17171f;
  --card: rgba(30, 30, 42, 0.66);
  --card-solid: #1c1c28;
  --border: rgba(255, 255, 255, 0.1);
  --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 50px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(24, 24, 34, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --grad-hero: linear-gradient(135deg, #7a0a1c 0%, #b01834 45%, #8a5a00 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 114, 0.1), rgba(255, 201, 60, 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(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 100% 0%, rgba(200, 16, 46, 0.06), transparent 60%),
    radial-gradient(50vw 50vw at 0% 30%, rgba(244, 180, 0, 0.07), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; }

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

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

li { margin-bottom: 0.35em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  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;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}

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

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

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

#main-nav li { margin: 0; }

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: var(--grad-soft);
  color: var(--brand);
  transform: translateY(-2px);
}

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

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  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 3px rgba(200, 16, 46, 0.15);
}

#search-input {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  width: 150px;
  outline: none;
}

#search-input::placeholder { color: var(--ink-mute); }

#site-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#site-search button:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--card-solid);
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#menu-toggle { display: none; }

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

main > section {
  margin: 40px 0;
  padding: 40px clamp(20px, 4vw, 48px);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}

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

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

#hero {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--grad-hero);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: #fff;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 85% 15%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(0, 0, 0, 0.18), transparent 70%);
  pointer-events: none;
}

#hero:hover { box-shadow: var(--shadow-lg); }

.hero-text,
.hero-media {
  position: relative;
  z-index: 1;
}

#hero h1,
#hero p,
#hero dt,
#hero dd {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}

#hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  color: var(--brand-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: translateY(-3px);
}

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

.hero-stats > div {
  padding: 14px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats dt {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.2);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 20px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

#breadcrumb {
  margin: 20px 0 0;
  font-size: 0.86rem;
}

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

#breadcrumb li { margin: 0; }

#breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-mute);
}

#breadcrumb a { color: var(--ink-soft); }
#breadcrumb a:hover { color: var(--brand); }

#anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  margin: 18px 0 8px;
  padding: 10px 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

#anchor-nav::-webkit-scrollbar { display: none; }

#anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

#anchor-nav li { margin: 0; flex-shrink: 0; }

#anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

#anchor-nav a:hover {
  background: var(--grad-soft);
  color: var(--brand);
}

#products,
#solutions,
#cases,
#news,
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

#products > h2,
#solutions > h2,
#cases > h2,
#news > h2,
#articles > h2,
#products > p,
#solutions > p,
#articles > p {
  grid-column: 1 / -1;
}

#products article,
#solutions article,
#cases article,
#news article,
#articles article {
  margin: 0;
  padding: 24px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#products article::before,
#solutions article::before,
#cases article::before,
#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#products article:hover,
#solutions article:hover,
#cases article:hover,
#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.25);
}

#products article:hover::before,
#solutions article:hover::before,
#cases article:hover::before,
#news article:hover::before,
#articles article:hover::before {
  transform: scaleX(1);
}

#products article h3,
#solutions article h3,
#cases article h3,
#news article h3,
#articles article h3 {
  margin-bottom: 10px;
  color: var(--ink);
}

#products article p,
#solutions article p,
#cases article p,
#news article p,
#articles article p {
  margin-bottom: 0.6em;
  font-size: 0.94rem;
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--grad-soft);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#articles article a {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  position: relative;
}

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

#articles article a:hover::after { margin-left: 12px; }

#advantages ul,
#applications ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

#advantages li,
#applications li {
  margin: 0;
  padding: 22px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-left-color 0.35s var(--ease);
}

#advantages li:hover,
#applications li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

#advantages li h3,
#applications li h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

#advantages li p,
#applications li p {
  margin: 0;
  font-size: 0.92rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.timeline li {
  position: relative;
  margin: 0 0 26px;
  padding: 18px 22px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.timeline li:last-child { margin-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 24px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.timeline li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.timeline li:hover::before {
  transform: scale(1.25);
  background: var(--accent);
}

.timeline li h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.timeline li p {
  margin: 0;
  font-size: 0.93rem;
}

#reviews blockquote {
  margin: 0 0 20px;
  padding: 26px 28px 20px;
  position: relative;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#reviews blockquote:last-child { margin-bottom: 0; }

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 18px;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.22;
  font-family: Georgia, serif;
}

#reviews blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

#reviews blockquote p {
  font-size: 1.02rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 12px;
}

#reviews blockquote footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-align: right;
}

#knowledge h3 {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

#faq details {
  margin: 0 0 12px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

#faq summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--grad-soft);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  animation: faqFade 0.35s var(--ease);
}

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

#howto h3 {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}

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

#howto ol > li {
  counter-increment: step;
  position: relative;
  margin: 0 0 16px;
  padding: 18px 22px 18px 64px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#howto ol > li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

#howto ol > li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#howto ol > li h4 {
  margin-bottom: 4px;
}

#howto ol > li p {
  margin: 0;
  font-size: 0.93rem;
}

#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

#contact address p {
  margin: 0;
  padding: 16px 20px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.93rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#contact h3 {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

#legal h3 {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}

#meta-info p {
  padding: 10px 16px;
  margin: 0 0 8px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

#site-footer {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 32px 24px;
  text-align: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#site-footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--ink-mute);
}

#site-footer p:last-child { margin-bottom: 0; }

#site-footer a {
  color: var(--ink-soft);
  font-weight: 500;
}

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

#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(200, 16, 46, 0.5);
}

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

@media (max-width: 1080px) {
  #main-nav ul { justify-content: flex-start; }
  #search-input { width: 120px; }
}

@media (max-width: 920px) {
  .header-inner {
    gap: 12px;
    padding: 10px 16px;
  }

  #main-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
  }

  #main-nav.is-open {
    display: block;
    animation: navDrop 0.35s var(--ease);
  }

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

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

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

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

  #site-search { display: none; }

  #hero {
    grid-template-columns: 1fr;
  }

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

  main { padding: 0 16px 40px; }

  main > section {
    margin: 26px 0;
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  #anchor-nav { top: var(--header-h); }
}

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

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

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

  .header-inner { min-height: 62px; }

  :root { --header-h: 62px; }

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

  .hero-actions { gap: 10px; }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 18px;
  }

  .hero-stats { gap: 8px; }

  .hero-stats > div { padding: 10px 6px; }

  #products,
  #solutions,
  #cases,
  #news,
  #articles {
    grid-template-columns: 1fr;
  }

  #advantages ul,
  #applications ul {
    grid-template-columns: 1fr;
  }

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

  .timeline { padding-left: 22px; }

  .timeline li::before { left: -22px; }

  #howto ol > li { padding: 16px 16px 16px 56px; }

  #howto ol > li::before { left: 14px; top: 16px; }

  #back-to-top {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
    font-size: 0.66rem;
  }

  #site-footer {
    margin: 0 16px 24px;
    padding: 24px 18px;
  }
}

@media (hover: none) {
  #products article:hover,
  #solutions article:hover,
  #cases article:hover,
  #news article:hover,
  #articles article:hover,
  #advantages li:hover,
  #applications li:hover,
  .timeline li:hover,
  #reviews blockquote:hover,
  #howto ol > li:hover,
  #contact address p:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #anchor-nav,
  #back-to-top,
  #site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

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

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