:root {
  --primary: #e94560;
  --primary-dark: #c73049;
  --primary-light: #ff6b81;
  --secondary: #533483;
  --accent: #0f3460;
  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #1a1a2e;
  --text-muted: #5a5f73;
  --text-soft: #8a8fa3;
  --border: rgba(26, 26, 46, 0.08);
  --border-strong: rgba(26, 26, 46, 0.14);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  --shadow-glow: 0 8px 32px rgba(233, 69, 96, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #533483 75%, #e94560 130%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #c73049 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(83, 52, 131, 0.1) 100%);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

html[data-theme="dark"] {
  --primary: #ff5c77;
  --primary-dark: #e94560;
  --primary-light: #ff8a9b;
  --secondary: #7c5cbf;
  --accent: #4a7fc1;
  --bg: #0e0f1a;
  --bg-alt: #151726;
  --surface: #1a1c2e;
  --surface-glass: rgba(26, 28, 46, 0.72);
  --surface-glass-strong: rgba(26, 28, 46, 0.92);
  --text: #eef0f8;
  --text-muted: #a8adc4;
  --text-soft: #767c96;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(255, 92, 119, 0.3);
  --grad-hero: linear-gradient(135deg, #0e0f1a 0%, #1a1c2e 40%, #3a2b5e 75%, #7a2a3e 130%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 119, 0.12) 0%, rgba(124, 92, 191, 0.12) 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

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

.brand-logo svg {
  border-radius: 10px;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--grad-primary);
  -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: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background-color var(--transition);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

#main-nav a:hover::after {
  transform: scaleX(1);
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
  background: var(--surface);
}

.site-search input {
  width: 180px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  padding: 6px 0;
  outline: none;
}

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

.site-search button {
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.site-search button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

#theme-toggle,
#menu-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  background: var(--grad-soft);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ============ HERO ============ */
#hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 96px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  animation: floatBlob 14s ease-in-out infinite;
}

#hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.6), transparent 70%);
  top: -120px;
  right: -80px;
}

#hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.7), transparent 70%);
  bottom: -120px;
  left: -60px;
  animation-delay: -7s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

#hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  background: linear-gradient(120deg, #fff 30%, #ffd0d8 60%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 780px;
  margin: 0 auto 36px;
  animation: fadeUp 0.9s var(--ease) 0.12s both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeUp 0.9s var(--ease) 0.24s both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn-primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(233, 69, 96, 0.45);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: fadeUp 0.9s var(--ease) 0.36s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition), transform var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.stat-num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.5px;
}

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

/* ============ BREADCRUMB ============ */
#breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

#breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-soft);
}

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

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

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

/* ============ MAIN SECTIONS ============ */
main {
  display: block;
}

main > section,
main > nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px;
}

main > section + section,
main > section + nav,
main > nav + section {
  padding-top: 0;
}

main > section > h2,
main > nav > h2 {
  position: relative;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 28px;
  padding-left: 18px;
  letter-spacing: -0.3px;
}

main > section > h2::before,
main > nav > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}

main h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  line-height: 1.45;
}

main h3:first-of-type {
  margin-top: 0;
}

main h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin: 22px 0 10px;
  line-height: 1.5;
}

main p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.85;
}

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

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

/* ============ CARDS ============ */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#copyright,
#privacy,
#disclaimer,
#editor-info {
  position: relative;
}

#about,
#products,
#solutions,
#cases,
#knowledge,
#howto,
#contact {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
  margin-bottom: 8px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

main > #about,
main > #products,
main > #solutions,
main > #cases,
main > #knowledge,
main > #howto,
main > #contact {
  padding: 44px 40px;
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#knowledge:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
}

/* ============ NEWS & ARTICLES ============ */
#news article,
#articles article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

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

#news article h3,
#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--text);
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#articles article p:nth-of-type(1) {
  font-size: 0.82rem;
  color: var(--text-soft);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

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

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

/* ============ CASES ============ */
#cases blockquote {
  position: relative;
  background: var(--grad-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px 20px 28px;
  margin: 16px 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 3.2rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.35;
  line-height: 1;
}

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

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

/* ============ FAQ ============ */
#faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition), color var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  background: var(--grad-soft);
  border-radius: 50%;
  transition: transform var(--transition), background-color var(--transition);
}

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

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

#faq details > p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-muted);
  animation: fadeIn 0.35s ease;
}

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

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ============ CONTACT ============ */
#contact p {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

#contact p:last-child {
  border-bottom: none;
}

#contact p:nth-of-type(1),
#contact p:nth-of-type(2),
#contact p:nth-of-type(3),
#contact p:nth-of-type(4),
#contact p:nth-of-type(5),
#contact p:nth-of-type(6),
#contact p:nth-of-type(7) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ FOOTER ============ */
#site-footer {
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 40px;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.footer-inner p {
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner p:last-child {
  margin-bottom: 0;
  margin-top: 16px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-inner a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
  z-index: 999;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 40px rgba(233, 69, 96, 0.5);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  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;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  #main-nav a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }
  .site-search input {
    width: 140px;
  }
  main > #about,
  main > #products,
  main > #solutions,
  main > #cases,
  main > #knowledge,
  main > #howto,
  main > #contact {
    padding: 36px 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }
  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface-glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
    z-index: 999;
  }
  #main-nav.open {
    max-height: 480px;
    overflow-y: auto;
  }
  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    overflow: visible;
  }
  #main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  #main-nav a::after {
    display: none;
  }
  #main-nav a:hover {
    background: var(--grad-soft);
  }
  #menu-toggle {
    display: flex;
  }
  .site-search {
    display: none;
  }
  #hero {
    padding: 64px 20px 56px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 16px;
  }
  main > section,
  main > nav {
    padding: 40px 20px;
  }
  main > #about,
  main > #products,
  main > #solutions,
  main > #cases,
  main > #knowledge,
  main > #howto,
  main > #contact {
    padding: 28px 22px;
  }
  #news article,
  #articles article {
    padding: 20px 20px 20px 22px;
  }
  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-logo svg {
    width: 34px;
    height: 34px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 13px 24px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 12px;
  }
  .stat-num {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  main > section > h2,
  main > nav > h2 {
    font-size: 1.25rem;
    padding-left: 14px;
    margin-bottom: 20px;
  }
  main > section > h2::before,
  main > nav > h2::before {
    width: 4px;
  }
  main h3 {
    font-size: 1.05rem;
    margin-top: 24px;
  }
  #faq summary {
    padding: 15px 50px 15px 18px;
    font-size: 0.94rem;
  }
  #faq summary::after {
    right: 16px;
    width: 24px;
    height: 24px;
  }
  #faq details > p {
    padding: 0 18px 16px;
  }
  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  #news article,
  #articles article {
    padding: 18px 18px 18px 20px;
  }
  .footer-inner p {
    font-size: 0.78rem;
  }
}

/* ============ DARK MODE TOGGLE ICON ============ */
html[data-theme="dark"] #theme-toggle {
  background: rgba(255, 255, 255, 0.08);
}

/* ============ SELECTION ============ */
::selection {
  background: rgba(233, 69, 96, 0.3);
  color: var(--text);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  #back-to-top,
  .header-tools,
  #main-nav,
  .hero-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  #hero {
    background: #fff;
    color: #000;
    padding: 20px 0;
  }
  #hero h1 {
    -webkit-text-fill-color: #000;
    background: none;
    color: #000;
  }
  .hero-sub {
    color: #333;
  }
  main > section,
  main > nav {
    padding: 20px 0;
    box-shadow: none;
    border: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}