:root {
  --bg: #f4f5f9;
  --bg-alt: #ffffff;
  --bg-soft: #eef0f7;
  --text: #1a1a2e;
  --text-soft: #5a5f74;
  --text-mute: #8a8fa3;
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.12);
  --primary-deep: #c9304a;
  --accent: #5b6cff;
  --accent-soft: rgba(91, 108, 255, 0.12);
  --navy: #1a1a2e;
  --border: rgba(26, 26, 46, 0.1);
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --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 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 45%, #e94560 130%);
  --grad-accent: linear-gradient(120deg, #e94560 0%, #5b6cff 100%);
}

html[data-theme="dark"],
html.dark {
  --bg: #0e0e1a;
  --bg-alt: #16162a;
  --bg-soft: #1c1c33;
  --text: #eef0f7;
  --text-soft: #b6bad0;
  --text-mute: #7d829c;
  --primary: #ff5c77;
  --primary-soft: rgba(255, 92, 119, 0.16);
  --primary-deep: #ff8095;
  --accent: #7c8bff;
  --accent-soft: rgba(124, 139, 255, 0.16);
  --navy: #0a0a14;
  --border: rgba(238, 240, 247, 0.12);
  --card: #191930;
  --glass: rgba(25, 25, 48, 0.68);
  --glass-border: rgba(255, 255, 255, 0.08);
  --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);
  --grad-hero: linear-gradient(135deg, #0a0a14 0%, #1e1b3d 45%, #b02c47 130%);
}

*,
*::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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, var(--accent-soft), 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%;
  display: block;
}

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

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

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.7em;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 1.6em 0 0.6em;
}

h4 {
  font-size: 1.02rem;
  margin: 1.2em 0 0.4em;
  color: var(--primary);
}

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

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

li {
  margin-bottom: 0.45em;
}

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
  color: var(--text);
}

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--bg-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 0.6em;
}

address {
  font-style: normal;
}

.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 ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass);
  -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: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand svg {
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--primary-soft);
  transition: transform 0.4s var(--ease);
}

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

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

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

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#main-nav ul::-webkit-scrollbar {
  display: none;
}

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

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

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

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

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

.site-search input {
  width: 150px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
  padding: 4px 0;
  font-family: inherit;
}

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  font-family: inherit;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: rotate(12deg) scale(1.06);
  border-color: var(--primary);
  background: var(--primary-soft);
}

#menu-toggle {
  display: none;
}

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

main > section {
  margin: 56px 0;
  animation: fadeUp 0.7s var(--ease) both;
}

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

/* ============ Hero ============ */
#hero {
  margin-top: 32px;
  display: grid;
  gap: 22px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: heroShift 16s ease infinite;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

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

.hero-slider::before,
.hero-slider::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}

.hero-slider::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -100px;
  background: var(--primary);
}

.hero-slider::after {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: -120px;
  background: var(--accent);
}

.slide {
  display: none;
  animation: slideIn 0.6s var(--ease) both;
}

.slide.is-active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #fff;
  padding-left: 0;
}

.slide h1::before,
.slide h2::before {
  display: none;
}

.slide p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.cta {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.cta:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(233, 69, 96, 0.5);
  filter: brightness(1.08);
}

.slider-controls {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(20px, 4vw, 36px);
  display: flex;
  gap: 10px;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

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

.stat {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat .num {
  display: inline-block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat .unit {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-left: 2px;
}

.stat .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 26px 0 0;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-mute);
}

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

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

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

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

/* ============ Content sections as cards ============ */
#brand-intro,
#concept,
#industry,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#knowledge,
#resources,
#contact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

#brand-intro:hover,
#concept:hover,
#industry:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#knowledge:hover,
#resources:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

/* ============ Articles ============ */
#articles {
  display: grid;
  gap: 18px;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

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

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

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

#articles article p {
  font-size: 0.92rem;
  margin-bottom: 0.8em;
}

#articles article a {
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

/* ============ News ============ */
#news article {
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}

#news article:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

#news article h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

#news article p {
  margin: 0;
  font-size: 0.92rem;
}

/* ============ FAQ ============ */
#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 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: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--primary);
  box-shadow: 0 6px 22px var(--primary-soft);
  background: var(--card);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 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: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

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

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

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

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

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

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

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

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

#resources ul li {
  margin: 0;
}

#resources ul li a {
  display: block;
  padding: 10px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

#resources ul li a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-soft);
}

/* ============ Contact ============ */
#contact address p {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

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

/* ============ Footer ============ */
#site-footer {
  margin-top: 60px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.3s var(--ease);
}

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

#back-to-top:hover {
  background: var(--grad-accent);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .site-search input {
    width: 110px;
  }
  #main-nav a {
    padding: 8px 8px;
    font-size: 0.86rem;
  }
}

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

  .header-inner {
    gap: 10px;
    padding: 0 14px;
  }

  #menu-toggle {
    display: grid;
  }

  .site-search {
    display: none;
  }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px 14px 20px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

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

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  #main-nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

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

  .slider-controls {
    position: static;
    justify-content: flex-end;
    margin-top: 22px;
  }

  main > section {
    margin: 40px 0;
  }
}

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

  main {
    padding: 0 14px 30px;
  }

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

  .hero-slider {
    border-radius: var(--radius-lg);
    padding: 24px 20px;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat {
    padding: 14px 8px;
  }

  #brand-intro,
  #concept,
  #industry,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #knowledge,
  #resources,
  #contact {
    border-radius: var(--radius);
    padding: 20px 16px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

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

  #howto ol li {
    padding-left: 50px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

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

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  .slider-controls,
  .hero-stats {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}