:root {
  --primary: #ff6b9d;
  --primary-dark: #e84a7f;
  --primary-light: #ff9bbd;
  --secondary: #7b6bff;
  --secondary-light: #a89bff;
  --accent: #4ecdc4;
  --accent-light: #7ee8e0;
  --bg: #fef7f9;
  --bg-alt: #fff0f5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.9);
  --text: #2d1b2e;
  --text-secondary: #6b4c6e;
  --text-muted: #9a7d9e;
  --border: rgba(255, 107, 157, 0.15);
  --border-strong: rgba(255, 107, 157, 0.3);
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
  --shadow: 0 4px 20px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 8px 40px rgba(255, 107, 157, 0.18);
  --shadow-xl: 0 16px 60px rgba(255, 107, 157, 0.22);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #7b6bff 50%, #4ecdc4 100%);
  --gradient-banner: linear-gradient(135deg, #ff9bbd 0%, #ff6b9d 25%, #a89bff 65%, #7b6bff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(123, 107, 255, 0.08) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 240, 245, 0.75) 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

[data-theme="dark"] {
  --primary: #ff8db5;
  --primary-dark: #ff6b9d;
  --primary-light: #ffb3cc;
  --secondary: #9b8dff;
  --secondary-light: #b8adff;
  --accent: #5eddd4;
  --accent-light: #8aeee6;
  --bg: #1a1220;
  --bg-alt: #211628;
  --surface: rgba(45, 27, 46, 0.72);
  --surface-solid: #2d1b2e;
  --surface-hover: rgba(55, 35, 58, 0.9);
  --text: #f5eaf7;
  --text-secondary: #c9b0ce;
  --text-muted: #9a7d9e;
  --border: rgba(255, 141, 181, 0.15);
  --border-strong: rgba(255, 141, 181, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #ff8db5 0%, #9b8dff 50%, #5eddd4 100%);
  --gradient-banner: linear-gradient(135deg, #ff6b9d 0%, #7b6bff 50%, #4ecdc4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 141, 181, 0.1) 0%, rgba(155, 141, 255, 0.1) 100%);
  --gradient-card: linear-gradient(135deg, rgba(45, 27, 46, 0.85) 0%, rgba(33, 22, 40, 0.75) 100%);
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(123, 107, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(78, 205, 196, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(123, 107, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  color: var(--text);
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  transition: transform var(--transition), filter var(--transition);
  display: inline-block;
}

.logo a:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}

#main-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition);
  white-space: nowrap;
}

#main-menu li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}

#main-menu li a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

#main-menu li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#site-header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-search {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 180px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#site-search::placeholder {
  color: var(--text-muted);
}

#site-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
  width: 220px;
  background: var(--surface-hover);
}

#site-header form button[type="submit"] {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-family: var(--font);
  font-weight: 600;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

#site-header form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  filter: brightness(1.05);
}

#site-header form button[type="submit"]:active {
  transform: translateY(0);
}

#theme-toggle {
  padding: 10px 16px;
  font-size: 0.8rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 80px;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

section:nth-child(2) { animation-delay: 0.05s; }
section:nth-child(3) { animation-delay: 0.1s; }
section:nth-child(4) { animation-delay: 0.15s; }
section:nth-child(5) { animation-delay: 0.2s; }
section:nth-child(6) { animation-delay: 0.25s; }
section:nth-child(7) { animation-delay: 0.3s; }
section:nth-child(8) { animation-delay: 0.35s; }
section:nth-child(9) { animation-delay: 0.4s; }
section:nth-child(10) { animation-delay: 0.45s; }
section:nth-child(11) { animation-delay: 0.5s; }
section:nth-child(12) { animation-delay: 0.55s; }
section:nth-child(13) { animation-delay: 0.6s; }
section:nth-child(14) { animation-delay: 0.65s; }
section:nth-child(15) { animation-delay: 0.7s; }

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#hero {
  position: relative;
  padding: 80px 48px;
  margin-top: 40px;
  margin-bottom: 80px;
  border-radius: var(--radius-xl);
  background: var(--gradient-banner);
  background-size: 200% 200%;
  animation: fadeInUp 0.8s both, gradientShift 8s ease infinite;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

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

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

#hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal,
#breadcrumb {
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#intro:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover,
#sitemap:hover,
#links:hover,
#legal:hover,
#breadcrumb:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

#intro h3 {
  margin-top: 2rem;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  color: var(--primary);
}

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

#intro ul,
#products ul,
#solutions ul,
#howto ul {
  padding-left: 0;
}

#intro ul li,
#products ul li,
#solutions ul li,
#howto ul li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border);
  transition: all var(--transition);
}

#intro ul li:last-child,
#products ul li:last-child,
#solutions ul li:last-child,
#howto ul li:last-child {
  border-bottom: none;
}

#intro ul li::before,
#products ul li::before,
#solutions ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.4);
}

#intro ul li:hover,
#products ul li:hover,
#solutions ul li:hover,
#howto ul li:hover {
  padding-left: 40px;
  color: var(--primary);
}

#products h4 {
  position: relative;
  padding-left: 28px;
  margin-top: 1.75rem;
}

#products h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 4px;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

#solutions h4 {
  margin-top: 1.75rem;
  padding: 12px 20px;
  background: var(--gradient-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
  transition: all var(--transition);
}

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

#cases h3 {
  padding: 16px 24px;
  background: var(--gradient-soft);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}

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

#cases blockquote {
  position: relative;
  margin: 16px 0;
  padding: 24px 28px 24px 56px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

#cases blockquote:hover {
  transform: translateX(8px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

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

#news ul,
#articles {
  display: grid;
  gap: 20px;
}

#news ul li,
#articles article {
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

#news h3,
#articles h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

#news h3 a,
#articles h3 a {
  color: var(--text);
  transition: color var(--transition);
}

#news h3 a:hover,
#articles h3 a:hover {
  color: var(--primary);
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--gradient-soft);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

#articles article p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
}

#articles article > a:last-child::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles article > a:last-child:hover {
  gap: 10px;
}

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

#faq details {
  margin-bottom: 12px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

#faq details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

#faq summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
}

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

#faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  background: var(--gradient-soft);
  border-radius: 50%;
  transition: all var(--transition);
}

#faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  background: var(--gradient-primary);
  color: #fff;
}

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

#faq details p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.3s both;
}

#howto ol {
  counter-reset: step;
  padding-left: 0;
}

#howto ol li {
  position: relative;
  padding: 14px 0 14px 56px;
  color: var(--text-secondary);
  counter-increment: step;
  border-bottom: 1px dashed var(--border);
  transition: all var(--transition);
}

#howto ol li:last-child {
  border-bottom: none;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
  transition: all var(--transition);
}

#howto ol li:hover {
  padding-left: 64px;
  color: var(--primary);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.45);
}

#contact p {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

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

#contact p:hover {
  padding-left: 12px;
  color: var(--primary);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

#legal h3 {
  margin-top: 1.5rem;
  color: var(--secondary);
  padding-left: 16px;
  border-left: 4px solid var(--secondary);
}

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

#breadcrumb nav ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

#breadcrumb nav ol li {
  color: var(--text-muted);
}

#breadcrumb nav ol li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--border-strong);
}

#breadcrumb nav ol li a {
  color: var(--primary);
  transition: all var(--transition);
}

#breadcrumb nav ol li a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 60px;
  padding: 48px 24px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

footer p {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

footer a {
  color: var(--primary);
  transition: all var(--transition);
}

footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #fff;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#back-to-top::before {
  content: "\2191";
  font-size: 1.5rem;
  line-height: 1;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}

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

@media (max-width: 1024px) {
  #site-header nav {
    gap: 12px;
  }

  #main-menu li a {
    padding: 6px 10px;
    font-size: 0.825rem;
  }

  #site-search {
    width: 140px;
  }

  #site-search:focus {
    width: 180px;
  }

  section {
    margin-bottom: 60px;
  }

  #hero {
    padding: 60px 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  #site-header nav {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #site-header nav > .logo {
    text-align: center;
  }

  #main-menu {
    justify-content: center;
    gap: 2px;
    order: 3;
  }

  #main-menu li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  #site-header form[role="search"] {
    order: 2;
    width: 100%;
  }

  #site-search {
    flex: 1;
    width: auto;
  }

  #site-search:focus {
    width: auto;
  }

  #theme-toggle {
    order: 1;
    align-self: flex-end;
  }

  main {
    padding: 0 16px;
  }

  #hero {
    padding: 48px 20px;
    margin-top: 24px;
    border-radius: var(--radius-lg);
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #breadcrumb {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  section {
    margin-bottom: 48px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }

  #cases blockquote {
    padding: 20px 20px 20px 48px;
  }

  #cases blockquote::before {
    left: 14px;
    font-size: 2.5rem;
  }

  #faq summary {
    padding: 14px 18px;
    font-size: 0.925rem;
  }

  #faq details p {
    padding: 0 18px 16px;
  }

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

  #howto ol li::before {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }

  footer {
    padding: 32px 16px;
  }
}

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

  #main-menu li a {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  #hero {
    padding: 36px 16px;
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #legal,
  #breadcrumb {
    padding: 20px 16px;
  }

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

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

  #sitemap ul li a,
  #links ul li a {
    padding: 10px 12px;
    font-size: 0.825rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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