:root {
  --xx-primary: #f7a1c4;
  --xx-primary-dark: #d46b8c;
  --xx-primary-light: #fce4ec;
  --xx-secondary: #b388ff;
  --xx-secondary-light: #ede7f6;
  --xx-accent: #ff8a65;
  --xx-accent-light: #fbe9e7;
  --xx-mint: #80cbc4;
  --xx-mint-light: #e0f2f1;
  --xx-gold: #ffd54f;
  --xx-bg: #fff8fb;
  --xx-bg-alt: #fdf2f7;
  --xx-surface: #ffffff;
  --xx-surface-glass: rgba(255, 255, 255, 0.72);
  --xx-border: rgba(247, 161, 196, 0.28);
  --xx-text: #3a2e35;
  --xx-text-soft: #7a6b73;
  --xx-text-muted: #a898a1;
  --xx-shadow-sm: 0 2px 10px rgba(214, 107, 140, 0.08);
  --xx-shadow-md: 0 8px 30px rgba(214, 107, 140, 0.12);
  --xx-shadow-lg: 0 18px 50px rgba(214, 107, 140, 0.18);
  --xx-radius-sm: 10px;
  --xx-radius-md: 18px;
  --xx-radius-lg: 28px;
  --xx-radius-pill: 999px;
  --xx-gradient-brand: linear-gradient(135deg, #f7a1c4 0%, #b388ff 55%, #80cbc4 100%);
  --xx-gradient-soft: linear-gradient(135deg, #fce4ec 0%, #ede7f6 50%, #e0f2f1 100%);
  --xx-gradient-banner: linear-gradient(120deg, #f7a1c4 0%, #b388ff 45%, #80cbc4 100%);
  --xx-gradient-warm: linear-gradient(135deg, #ffd54f 0%, #ff8a65 100%);
  --xx-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --xx-transition: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  --xx-header-h: 72px;
}

[data-theme="dark"] {
  --xx-bg: #1a1418;
  --xx-bg-alt: #221a1f;
  --xx-surface: #2a2026;
  --xx-surface-glass: rgba(42, 32, 38, 0.72);
  --xx-border: rgba(247, 161, 196, 0.18);
  --xx-text: #f3e9ee;
  --xx-text-soft: #c9b6c0;
  --xx-text-muted: #9a8792;
  --xx-primary-light: #3a2630;
  --xx-secondary-light: #2e2740;
  --xx-accent-light: #3a2a24;
  --xx-mint-light: #1f2e2c;
  --xx-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --xx-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --xx-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --xx-gradient-soft: linear-gradient(135deg, #3a2630 0%, #2e2740 50%, #1f2e2c 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --xx-bg: #1a1418;
    --xx-bg-alt: #221a1f;
    --xx-surface: #2a2026;
    --xx-surface-glass: rgba(42, 32, 38, 0.72);
    --xx-border: rgba(247, 161, 196, 0.18);
    --xx-text: #f3e9ee;
    --xx-text-soft: #c9b6c0;
    --xx-text-muted: #9a8792;
    --xx-primary-light: #3a2630;
    --xx-secondary-light: #2e2740;
    --xx-accent-light: #3a2a24;
    --xx-mint-light: #1f2e2c;
    --xx-gradient-soft: linear-gradient(135deg, #3a2630 0%, #2e2740 50%, #1f2e2c 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--xx-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--xx-text);
  background-color: var(--xx-bg);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(247, 161, 196, 0.14), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(179, 136, 255, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(128, 203, 196, 0.12), transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--xx-transition), color var(--xx-transition);
}

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

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

a:hover {
  color: var(--xx-secondary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--xx-secondary);
  outline-offset: 2px;
  border-radius: 6px;
}

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

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  position: relative;
  padding-left: 0.85em;
}

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

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--xx-primary-dark);
}

[data-theme="dark"] h3 {
  color: var(--xx-primary);
}

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

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

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--xx-primary);
  font-weight: 700;
}

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

time {
  color: var(--xx-text-muted);
  font-size: 0.85em;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.3em;
  border-left: 4px solid var(--xx-primary);
  border-radius: 0 var(--xx-radius-md) var(--xx-radius-md) 0;
  background: var(--xx-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--xx-shadow-sm);
  color: var(--xx-text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

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

#skip-to-content {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--xx-primary);
  color: #fff;
  border-radius: var(--xx-radius-pill);
  font-weight: 700;
  box-shadow: var(--xx-shadow-md);
  transition: top var(--xx-transition);
}

#skip-to-content:focus {
  top: 12px;
  color: #fff;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--xx-surface-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--xx-border);
  box-shadow: 0 4px 24px rgba(214, 107, 140, 0.07);
  transition: background var(--xx-transition), box-shadow var(--xx-transition);
}

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

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--xx-text);
  font-weight: 800;
}

.brand svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(247, 161, 196, 0.45);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition);
}

.brand a:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(247, 161, 196, 0.65);
}

.brand-name {
  font-size: 1.3rem;
  background: var(--xx-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--xx-radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xx-text-soft);
  position: relative;
  transition: color var(--xx-transition), background var(--xx-transition), transform var(--xx-transition);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--xx-radius-pill);
  background: var(--xx-gradient-brand);
  transform: translateX(-50%);
  transition: width var(--xx-transition);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--xx-primary-dark);
  background: var(--xx-primary-light);
  transform: translateY(-2px);
}

[data-theme="dark"] #main-nav a:hover,
[data-theme="dark"] #main-nav a:focus-visible {
  color: var(--xx-primary);
}

#main-nav a:hover::after {
  width: 60%;
}

.search-box {
  flex: 0 1 260px;
}

.search-box form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--xx-surface);
  border: 1.5px solid var(--xx-border);
  border-radius: var(--xx-radius-pill);
  overflow: hidden;
  transition: border-color var(--xx-transition), box-shadow var(--xx-transition), transform var(--xx-transition);
}

.search-box form:focus-within {
  border-color: var(--xx-primary);
  box-shadow: 0 0 0 4px rgba(247, 161, 196, 0.2);
  transform: translateY(-1px);
}

.search-box input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--xx-text);
}

.search-box input[type="search"]::placeholder {
  color: var(--xx-text-muted);
}

.search-box input[type="search"]:focus {
  outline: none;
}

.search-box button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--xx-primary-dark);
  cursor: pointer;
  transition: background var(--xx-transition), color var(--xx-transition);
}

.search-box button:hover {
  background: var(--xx-primary-light);
  color: var(--xx-secondary);
}

#theme-toggle,
#mobile-menu-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--xx-border);
  border-radius: 50%;
  background: var(--xx-surface);
  color: var(--xx-primary-dark);
  cursor: pointer;
  transition: transform var(--xx-transition), background var(--xx-transition), color var(--xx-transition), box-shadow var(--xx-transition);
}

#theme-toggle:hover,
#mobile-menu-toggle:hover {
  background: var(--xx-primary-light);
  color: var(--xx-secondary);
  transform: rotate(12deg) scale(1.06);
  box-shadow: var(--xx-shadow-sm);
}

#mobile-menu-toggle {
  display: none;
}

#breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 0;
}

#breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--xx-text-muted);
}

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

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

#breadcrumb a {
  color: var(--xx-primary-dark);
  font-weight: 600;
}

#main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

#main-content > section {
  margin-bottom: 44px;
  padding: 30px 28px;
  background: var(--xx-surface-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-lg);
  box-shadow: var(--xx-shadow-sm);
  transition: box-shadow var(--xx-transition), transform var(--xx-transition), border-color var(--xx-transition);
  animation: xx-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

#main-content > section:hover {
  box-shadow: var(--xx-shadow-md);
  border-color: rgba(247, 161, 196, 0.5);
}

@keyframes xx-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#main-content > section:nth-child(2) { animation-delay: 0.05s; }
#main-content > section:nth-child(3) { animation-delay: 0.1s; }
#main-content > section:nth-child(4) { animation-delay: 0.15s; }
#main-content > section:nth-child(5) { animation-delay: 0.2s; }
#main-content > section:nth-child(6) { animation-delay: 0.25s; }
#main-content > section:nth-child(7) { animation-delay: 0.3s; }
#main-content > section:nth-child(8) { animation-delay: 0.35s; }
#main-content > section:nth-child(9) { animation-delay: 0.4s; }
#main-content > section:nth-child(10) { animation-delay: 0.45s; }

#home {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#home:hover {
  box-shadow: none !important;
}

.banner-carousel {
  position: relative;
  border-radius: var(--xx-radius-lg);
  overflow: hidden;
  background: var(--xx-gradient-banner);
  background-size: 200% 200%;
  animation: xx-gradient-shift 12s ease infinite;
  box-shadow: var(--xx-shadow-lg);
  padding: 40px 36px 64px;
  color: #fff;
}

@keyframes xx-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.banner-slide {
  position: relative;
  z-index: 1;
  display: none;
  animation: xx-slide-in 0.6s ease both;
}

.banner-slide:first-child {
  display: block;
}

@keyframes xx-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.banner-slide h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  padding-left: 0;
  margin-bottom: 0.4em;
  text-shadow: 0 4px 18px rgba(60, 20, 40, 0.25);
}

.banner-slide h2::before {
  display: none;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  max-width: 640px;
  margin-bottom: 1.4em;
  text-shadow: 0 2px 10px rgba(60, 20, 40, 0.2);
}

.banner-slide svg {
  display: block;
  width: min(100%, 600px);
  border-radius: var(--xx-radius-md);
  box-shadow: 0 14px 40px rgba(60, 20, 40, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.carousel-controls {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--xx-primary-dark);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--xx-transition), background var(--xx-transition), box-shadow var(--xx-transition);
}

.carousel-controls button:hover {
  background: #fff;
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(60, 20, 40, 0.28);
}

.carousel-indicators {
  position: absolute;
  left: 36px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.carousel-indicators button {
  width: 34px;
  height: 8px;
  border: none;
  border-radius: var(--xx-radius-pill);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width var(--xx-transition), background var(--xx-transition);
}

.carousel-indicators button[aria-selected="true"] {
  width: 52px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(60, 20, 40, 0.3);
}

#main-content article {
  padding: 22px 24px;
  margin-bottom: 20px;
  background: var(--xx-surface);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-md);
  box-shadow: var(--xx-shadow-sm);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition), border-color var(--xx-transition);
}

#main-content article:hover {
  transform: translateY(-5px);
  box-shadow: var(--xx-shadow-md);
  border-color: rgba(179, 136, 255, 0.5);
}

#main-content article:last-child {
  margin-bottom: 0;
}

#brand-intro article {
  background: linear-gradient(160deg, var(--xx-surface) 0%, var(--xx-primary-light) 160%);
}

#brand-intro ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 20px;
  list-style: none;
  padding-left: 0;
}

#brand-intro ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}

#brand-intro ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--xx-primary);
  font-weight: 700;
}

#products article:nth-of-type(1) {
  border-top: 4px solid var(--xx-primary);
}

#products article:nth-of-type(2) {
  border-top: 4px solid var(--xx-secondary);
}

#products article:nth-of-type(3) {
  border-top: 4px solid var(--xx-mint);
}

#products h4 {
  display: inline-block;
  margin: 0.6em 0 0.5em;
  padding: 4px 14px;
  font-size: 0.92rem;
  color: var(--xx-primary-dark);
  background: var(--xx-primary-light);
  border-radius: var(--xx-radius-pill);
}

[data-theme="dark"] #products h4 {
  color: var(--xx-primary);
}

#products ul {
  list-style: none;
  padding-left: 0;
}

#products ul li {
  position: relative;
  padding-left: 28px;
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--xx-gradient-brand);
  border-radius: 50%;
}

#solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

#solutions h2 {
  grid-column: 1 / -1;
}

#solutions article {
  margin-bottom: 0;
}

#solutions article:nth-of-type(odd) {
  background: linear-gradient(160deg, var(--xx-surface) 0%, var(--xx-secondary-light) 170%);
}

#solutions article:nth-of-type(even) {
  background: linear-gradient(160deg, var(--xx-surface) 0%, var(--xx-mint-light) 170%);
}

#industry-applications ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

#industry-applications li {
  padding: 14px 18px;
  margin: 0;
  background: var(--xx-surface);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-md);
  box-shadow: var(--xx-shadow-sm);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition);
}

#industry-applications li:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--xx-shadow-md);
}

#cases article {
  position: relative;
  padding-left: 28px;
}

#cases article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: var(--xx-radius-pill);
  background: var(--xx-gradient-brand);
}

#testimonials blockquote {
  position: relative;
  padding-left: 3.2em;
  border-left: none;
  background: linear-gradient(135deg, var(--xx-primary-light) 0%, var(--xx-surface) 70%);
  border-radius: var(--xx-radius-md);
}

#testimonials blockquote::before {
  content: "“";
  position: absolute;
  left: 0.35em;
  top: 0.05em;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--xx-primary);
  opacity: 0.55;
}

#news article,
#articles article {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#news article h3 a,
#articles article h3 a {
  color: var(--xx-text);
  background-image: linear-gradient(var(--xx-primary), var(--xx-primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--xx-transition), color var(--xx-transition);
}

#news article h3 a:hover,
#articles article h3 a:hover {
  color: var(--xx-primary-dark);
  background-size: 100% 2px;
}

#news article > a:last-child,
#articles article > a:last-child {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--xx-gradient-brand);
  background-size: 180% 180%;
  border-radius: var(--xx-radius-pill);
  box-shadow: 0 6px 18px rgba(247, 161, 196, 0.4);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition), background-position var(--xx-transition);
}

#news article > a:last-child::after,
#articles article > a:last-child::after {
  content: "→";
  transition: transform var(--xx-transition);
}

#news article > a:last-child:hover,
#articles article > a:last-child:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(247, 161, 196, 0.55);
  background-position: 100% 50%;
}

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

#faq details {
  margin-bottom: 12px;
  padding: 0;
  background: var(--xx-surface);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-md);
  overflow: hidden;
  transition: box-shadow var(--xx-transition), border-color var(--xx-transition), transform var(--xx-transition);
}

#faq details:hover {
  box-shadow: var(--xx-shadow-sm);
  border-color: rgba(247, 161, 196, 0.55);
}

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

#faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--xx-text);
  cursor: pointer;
  list-style: none;
  transition: background var(--xx-transition), color var(--xx-transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--xx-primary-dark);
  background: var(--xx-primary-light);
  border-radius: 50%;
  transition: transform var(--xx-transition), background var(--xx-transition), color var(--xx-transition);
}

#faq details[open] summary {
  background: var(--xx-primary-light);
  color: var(--xx-primary-dark);
}

[data-theme="dark"] #faq details[open] summary {
  color: var(--xx-primary);
}

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

#faq summary:hover {
  background: var(--xx-primary-light);
}

#faq details p {
  padding: 4px 20px 18px;
  margin: 0;
  animation: xx-fade-up 0.4s ease both;
}

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

#howto ol li {
  position: relative;
  counter-increment: xx-howto;
  padding: 10px 0 10px 52px;
  margin-bottom: 8px;
}

#howto ol li::before {
  content: counter(xx-howto);
  position: absolute;
  left: 0;
  top: 8px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: var(--xx-gradient-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(247, 161, 196, 0.45);
}

#howto ul {
  list-style: none;
  padding-left: 0;
}

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

#howto ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--xx-secondary);
  font-weight: 800;
}

#contact address {
  padding: 22px 24px;
  background: linear-gradient(150deg, var(--xx-primary-light) 0%, var(--xx-surface) 75%);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-md);
  margin-bottom: 20px;
}

#contact address p {
  margin-bottom: 0.55em;
}

#contact address a {
  font-weight: 700;
  border-bottom: 1px dashed var(--xx-primary);
}

#contact svg {
  display: block;
  width: min(100%, 400px);
  border-radius: var(--xx-radius-md);
  box-shadow: var(--xx-shadow-sm);
  transition: transform var(--xx-transition), box-shadow var(--xx-transition);
}

#contact svg:hover {
  transform: scale(1.02);
  box-shadow: var(--xx-shadow-md);
}

#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

#sitemap nav a {
  display: block;
  padding: 10px 16px;
  background: var(--xx-surface);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-sm);
  font-weight: 600;
  color: var(--xx-text-soft);
  transition: transform var(--xx-transition), background var(--xx-transition), color var(--xx-transition), box-shadow var(--xx-transition);
}

#sitemap nav a:hover {
  transform: translateX(5px);
  background: var(--xx-primary-light);
  color: var(--xx-primary-dark);
  box-shadow: var(--xx-shadow-sm);
}

#friend-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding-left: 0;
}

#friend-links a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--xx-surface);
  border: 1px solid var(--xx-border);
  border-radius: var(--xx-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--xx-text-soft);
  transition: transform var(--xx-transition), background var(--xx-transition), color var(--xx-transition), box-shadow var(--xx-transition);
}

#friend-links a:hover {
  transform: translateY(-3px);
  background: var(--xx-gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(247, 161, 196, 0.45);
}

#site-footer {
  position: relative;
  margin-top: 20px;
  padding: 46px 20px 34px;
  background: linear-gradient(160deg, var(--xx-primary-light) 0%, var(--xx-secondary-light) 55%, var(--xx-mint-light) 100%);
  border-top: 1px solid var(--xx-border);
  color: var(--xx-text-soft);
}

[data-theme="dark"] #site-footer {
  background: linear-gradient(160deg, #2a2026 0%, #2e2740 55%, #1f2e2c 100%);
}

.footer-links {
  max-width: 1280px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.footer-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--xx-text-soft);
  padding: 4px 2px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: var(--xx-radius-pill);
  background: var(--xx-gradient-brand);
  transition: width var(--xx-transition);
}

.footer-links a:hover {
  color: var(--xx-primary-dark);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copyright,
.footer-security {
  max-width: 1000px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--xx-text-muted);
}

.footer-copyright p,
.footer-security p {
  margin: 0 0 4px;
  color: inherit;
}

.footer-security {
  padding-top: 14px;
  border-top: 1px dashed var(--xx-border);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  padding: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  background: var(--xx-gradient-brand);
  background-size: 180% 180%;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(247, 161, 196, 0.55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--xx-transition), transform var(--xx-transition), visibility var(--xx-transition), box-shadow var(--xx-transition), background-position var(--xx-transition);
}

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

#back-to-top:hover,
#back-to-top:focus-visible {
  background-position: 100% 50%;
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 16px 34px rgba(247, 161, 196, 0.7);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

#main-content a[href^="/news/"],
#main-content a[href^="/article/"] {
  font-weight: 600;
}

#news article,
#articles article {
  animation: xx-fade-up 0.6s ease both;
}

#news article:nth-of-type(2),
#articles article:nth-of-type(2) { animation-delay: 0.06s; }
#news article:nth-of-type(3),
#articles article:nth-of-type(3) { animation-delay: 0.12s; }
#articles article:nth-of-type(4) { animation-delay: 0.18s; }
#articles article:nth-of-type(5) { animation-delay: 0.24s; }
#articles article:nth-of-type(6) { animation-delay: 0.3s; }
#articles article:nth-of-type(7) { animation-delay: 0.36s; }
#articles article:nth-of-type(8) { animation-delay: 0.42s; }
#articles article:nth-of-type(9) { animation-delay: 0.48s; }
#articles article:nth-of-type(10) { animation-delay: 0.54s; }

@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  .search-box {
    flex: 1 1 200px;
  }

  #main-nav a {
    padding: 7px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 860px) {
  :root {
    --xx-header-h: 64px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  #mobile-menu-toggle {
    display: inline-flex;
    order: 3;
  }

  #theme-toggle {
    order: 2;
  }

  .search-box {
    order: 4;
    flex: 1 1 100%;
  }

  #main-nav {
    order: 5;
    flex: 1 1 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
  }

  #main-nav.is-open {
    max-height: 520px;
    opacity: 1;
  }

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

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

  .banner-carousel {
    padding: 28px 20px 58px;
  }

  .carousel-indicators {
    left: 20px;
    bottom: 20px;
  }

  .carousel-controls {
    right: 16px;
    bottom: 14px;
  }

  #main-content {
    padding: 18px 14px 48px;
  }

  #main-content > section {
    padding: 22px 18px;
    border-radius: var(--xx-radius-md);
    margin-bottom: 30px;
  }

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

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

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

  .brand svg {
    width: 40px;
    height: 40px;
  }

  h2 {
    font-size: 1.35rem;
  }

  .banner-slide h2 {
    font-size: 1.4rem;
  }

  .banner-carousel {
    padding: 22px 16px 54px;
  }

  .carousel-indicators button {
    width: 24px;
  }

  .carousel-indicators button[aria-selected="true"] {
    width: 40px;
  }

  #main-content article {
    padding: 18px 16px;
  }

  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.95rem;
  }

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

  .footer-links {
    gap: 6px 14px;
  }
}

@media (hover: none) {
  #main-content article:hover,
  #industry-applications li:hover,
  #contact svg:hover {
    transform: none;
  }
}

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

@media print {
  #site-header,
  #breadcrumb,
  #back-to-top,
  .carousel-controls,
  .carousel-indicators,
  #friend-links,
  #site-footer {
    display: none !important;
  }

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

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