:root {
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --bg-elev: rgba(30, 30, 52, 0.55);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #eef0f6;
  --text-dim: #b6b9cc;
  --text-mute: #8a8da3;
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.16);
  --accent: #4cc9f0;
  --accent-soft: rgba(76, 201, 240, 0.14);
  --gold: #f9c74f;
  --purple: #7b61ff;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --maxw: 1160px;
  --grad-banner: linear-gradient(120deg, #e94560 0%, #7b61ff 48%, #4cc9f0 100%);
  --grad-text: linear-gradient(100deg, #f9c74f, #e94560 45%, #4cc9f0);
  --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", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fb;
    --bg-alt: #ffffff;
    --bg-elev: rgba(255, 255, 255, 0.72);
    --glass: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(20, 20, 50, 0.08);
    --text: #1c1e2e;
    --text-dim: #454a63;
    --text-mute: #6b7089;
    --border: rgba(20, 20, 60, 0.1);
    --shadow: 0 18px 46px rgba(40, 46, 90, 0.14);
    --shadow-sm: 0 8px 22px rgba(40, 46, 90, 0.1);
    --primary-soft: rgba(233, 69, 96, 0.1);
    --accent-soft: rgba(76, 201, 240, 0.12);
  }
}

*,
*::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.78;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(233, 69, 96, 0.16), transparent 60%),
    radial-gradient(900px 560px at 92% 4%, rgba(76, 201, 240, 0.14), transparent 60%),
    radial-gradient(800px 700px at 60% 100%, rgba(123, 97, 255, 0.12), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

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

#site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
}

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

.logo:hover svg {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 10px 26px rgba(76, 201, 240, 0.45);
}

.logo-text {
  font-size: 1.12rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

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

.nav-list a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

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

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 40px;
}

section {
  margin: 46px 0;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

section > h2 {
  font-size: clamp(1.42rem, 1.1rem + 1.4vw, 1.9rem);
  line-height: 1.35;
  margin: 0 0 20px;
  padding-left: 16px;
  position: relative;
  letter-spacing: 0.3px;
}

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

h3 {
  font-size: clamp(1.08rem, 0.98rem + 0.5vw, 1.26rem);
  line-height: 1.5;
  margin: 30px 0 12px;
  color: var(--text);
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 14px;
  color: var(--text-dim);
}

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

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
  color: var(--text-dim);
}

li {
  margin: 0 0 9px;
}

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

/* ---------- Hero ---------- */
#hero {
  position: relative;
  margin-top: 30px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(123, 97, 255, 0.16) 45%, rgba(76, 201, 240, 0.18)),
    var(--bg-elev);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 199, 79, 0.35), transparent 66%);
  filter: blur(18px);
  z-index: -1;
  animation: floaty 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.32), transparent 68%);
  filter: blur(20px);
  z-index: -1;
  animation: floaty 15s ease-in-out infinite reverse;
}

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

#hero-title {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 1.15rem + 2.4vw, 2.7rem);
  line-height: 1.28;
  letter-spacing: 0.4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-wrap: balance;
}

.hero-lead {
  max-width: 78ch;
  font-size: clamp(0.96rem, 0.92rem + 0.25vw, 1.06rem);
  color: var(--text-dim);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 26px 0 22px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 201, 240, 0.5);
  box-shadow: 0 14px 34px rgba(76, 201, 240, 0.2);
}

.stat .num {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  font-size: 0.86rem;
  color: var(--text-mute);
  letter-spacing: 0.3px;
}

/* ---------- Banner slides ---------- */
.banner {
  position: relative;
  display: grid;
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.banner-slide {
  grid-area: 1 / 1;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  animation: slideCycle 12s infinite var(--ease);
  border-left: 4px solid transparent;
  background: linear-gradient(90deg, var(--primary-soft), transparent 70%);
}

.banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slide:nth-child(2) { animation-delay: 4s; }
.banner-slide:nth-child(3) { animation-delay: 8s; }

@keyframes slideCycle {
  0% { opacity: 0; transform: translateY(10px); }
  4% { opacity: 1; transform: translateY(0); }
  28% { opacity: 1; transform: translateY(0); }
  33.33% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin: 22px 0 0;
  font-size: 0.86rem;
}

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

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

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

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Cards / content blocks ---------- */
#intro,
#products,
#scenes,
#cases,
#news,
#articles,
#knowledge,
#howto,
#contact,
#sitemap,
#links,
#legal {
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
}

.section-desc {
  color: var(--text-mute);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

/* Products list card feel */
#products ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
  margin-top: 18px;
}

#products ul li {
  position: relative;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--grad-banner);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.7);
}

#products ul li:hover {
  transform: translateX(4px);
  border-color: rgba(76, 201, 240, 0.45);
  background: var(--accent-soft);
}

/* ---------- Cases / blockquotes ---------- */
blockquote {
  margin: 14px 0;
  padding: 18px 20px 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  background: linear-gradient(120deg, var(--primary-soft), transparent 75%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dim);
  font-style: normal;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
}

/* ---------- News ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-dim);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 199, 79, 0.5);
  background: rgba(249, 199, 79, 0.07);
}

.news-list time {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* ---------- Articles ---------- */
#articles article {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 22px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--glass), transparent 85%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 6px;
  background: var(--grad-banner);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 97, 255, 0.45);
  box-shadow: var(--shadow-sm);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

#articles article h3 + .meta {
  color: var(--text-mute);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

#articles article .meta time {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#articles article a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.4);
  background: var(--accent-soft);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

#articles article a:hover {
  color: #fff;
  background: var(--accent);
  transform: translateX(3px);
}

/* ---------- FAQ ---------- */
#faq {
  display: grid;
  gap: 12px;
}

#faq > h2 {
  margin-bottom: 4px;
}

#faq details {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.45);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.6);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.16);
  background: linear-gradient(120deg, var(--primary-soft), var(--glass) 60%);
}

#faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: color 0.25s var(--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%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-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);
  color: #fff;
  background: var(--primary);
}

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

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

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

/* ---------- HowTo ---------- */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 54px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--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%;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-banner);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(123, 97, 255, 0.45);
}

#howto ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

#howto ul li {
  position: relative;
  padding-left: 24px;
  margin: 0;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.85;
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.contact-list li {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 0.94rem;
  word-break: break-word;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 201, 240, 0.5);
}

.contact-list a {
  font-weight: 600;
}

/* ---------- Sitemap & links ---------- */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

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

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

#sitemap a:hover,
#links a:hover {
  color: var(--text);
  background: var(--primary-soft);
  border-color: rgba(233, 69, 96, 0.4);
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 20px;
  padding: 34px 22px 44px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(123, 97, 255, 0.08));
}

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

footer p:first-child {
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--grad-banner);
  background-size: 200% 200%;
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-position 0.6s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(76, 201, 240, 0.45);
  background-position: 100% 50%;
}

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

/* ---------- Scroll reveal ---------- */
main > section {
  animation: reveal 0.7s var(--ease) both;
}

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.05s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.11s; }
main > section:nth-of-type(5) { animation-delay: 0.14s; }
main > section:nth-of-type(6) { animation-delay: 0.17s; }
main > section:nth-of-type(7) { animation-delay: 0.2s; }
main > section:nth-of-type(8) { animation-delay: 0.23s; }
main > section:nth-of-type(9) { animation-delay: 0.26s; }
main > section:nth-of-type(10) { animation-delay: 0.29s; }
main > section:nth-of-type(11) { animation-delay: 0.32s; }
main > section:nth-of-type(12) { animation-delay: 0.35s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-list {
    gap: 2px;
  }

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

  main {
    padding: 0 16px 32px;
  }

  #hero {
    margin-top: 20px;
  }
}

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

  body {
    font-size: 15px;
    line-height: 1.72;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list li {
    flex: 0 0 auto;
  }

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

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

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

  .stat {
    padding: 14px 10px;
  }

  .banner-slide {
    font-size: 0.88rem;
    padding: 14px;
  }

  #intro,
  #products,
  #scenes,
  #cases,
  #news,
  #articles,
  #knowledge,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  section {
    margin: 32px 0;
  }

  #articles article {
    padding: 18px 16px 14px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Motion & contrast preferences ---------- */
@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;
  }

  .banner-slide {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-dim: #d6d9e8;
    --text-mute: #b9bccd;
    --border: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(255, 255, 255, 0.32);
  }
}

@media print {
  #site-header,
  #back-to-top,
  .banner {
    display: none;
  }

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

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