:root {
  --primary: #e94560;
  --primary-dark: #c7304a;
  --secondary: #0f3460;
  --accent: #533483;
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --border-glass: rgba(255, 255, 255, 0.4);
  --text: #1a1a2e;
  --text-soft: #4a4a5e;
  --text-muted: #7a7a8c;
  --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.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #0f3460 45%, #533483 100%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --gradient-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.12) 0%, rgba(83, 52, 131, 0.12) 100%);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"],
body.dark-mode {
  --bg: #12121f;
  --bg-alt: #1a1a2e;
  --bg-glass: rgba(26, 26, 46, 0.6);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-soft: #c8c8d6;
  --text-muted: #8a8a9e;
  --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.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(233, 69, 96, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(83, 52, 131, 0.1) 0%, transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(15, 52, 96, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition), border-color var(--transition);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px clamp(16px, 4vw, 48px);
  font-size: 13px;
  color: #f5f5f5;
  background: var(--gradient-banner);
  letter-spacing: 0.02em;
}

nav[aria-label="主导航"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px clamp(16px, 4vw, 48px);
}

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

.brand svg {
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

nav[aria-label="主导航"] > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  flex: 1 1 auto;
}

nav[aria-label="主导航"] > ul li a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

nav[aria-label="主导航"] > ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

nav[aria-label="主导航"] > ul li a:hover,
nav[aria-label="主导航"] > ul li a:focus-visible {
  color: var(--primary);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

nav[aria-label="主导航"] > ul li a:hover::after {
  width: 60%;
}

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 320px;
  min-width: 200px;
}

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

form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

form[role="search"] input[type="search"]::placeholder {
  color: var(--text-muted);
}

form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
}

form[role="search"] button[type="submit"] {
  padding: 9px 20px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

form[role="search"] button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 69, 96, 0.45);
  filter: brightness(1.06);
}

form[role="search"] button[type="submit"]:active {
  transform: translateY(0);
}

#theme-toggle,
#menu-toggle {
  padding: 9px 16px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

#menu-toggle {
  display: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 64px;
}

main > section {
  margin-top: clamp(40px, 6vw, 72px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@supports (animation-timeline: view()) {
  main > section {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(36px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

h1 {
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  margin: 24px 0 16px;
}

h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 800;
  margin-bottom: 22px;
  padding-bottom: 14px;
  position: relative;
}

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

h3 {
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 700;
  margin: 26px 0 12px;
  color: var(--text);
}

p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

main > section > p,
main > section > ul,
main > section > ol {
  max-width: 900px;
}

#hero {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  margin-top: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--gradient-banner);
  color: #f5f5f5;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 12%, rgba(233, 69, 96, 0.45) 0%, transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(83, 52, 131, 0.5) 0%, transparent 50%);
  animation: heroFloat 14s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-12px, -8px);
  }
}

#hero h1 {
  color: #fff;
  margin-top: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero p {
  color: rgba(245, 245, 245, 0.88);
  max-width: 860px;
}

#hero > p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  font-size: 15px;
}

#hero > p:last-of-type a {
  display: inline-block;
  padding: 10px 24px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

#hero > p:last-of-type a:first-child {
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.45);
}

#hero > p:last-of-type a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  color: #fff;
}

#hero > p:last-of-type a:first-child:hover {
  background: var(--gradient-accent);
  filter: brightness(1.1);
}

.carousel {
  position: relative;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.carousel .slide {
  display: none;
  animation: slideFade 0.8s ease both;
}

.carousel .slide.active {
  display: block;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel .slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

nav[aria-label="面包屑导航"] {
  margin-top: 24px;
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] li {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

#stats ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

#stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 18px;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#stats li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.4);
}

#stats strong {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

#stats span {
  font-size: 14px;
  color: var(--text-muted);
}

#about ul,
#products ul,
#solutions ul,
#howto ul,
#howto ol,
#contact ul,
#knowledge ul {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

#about > ul li,
#products > ul li,
#solutions > ul li,
#howto > ul li,
#howto > ol li,
#contact > ul li {
  position: relative;
  padding: 12px 18px 12px 44px;
  font-size: 15px;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#about > ul li:hover,
#products > ul li:hover,
#solutions > ul li:hover,
#howto > ul li:hover,
#howto > ol li:hover,
#contact > ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.35);
}

#about > ul li::before,
#products > ul li::before,
#solutions > ul li::before,
#howto > ul li::before,
#contact > ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient-accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
}

#howto > ol {
  counter-reset: howto;
}

#howto > ol li {
  padding-left: 52px;
  counter-increment: howto;
}

#howto > ol li::before {
  content: counter(howto);
  left: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 3px 10px rgba(233, 69, 96, 0.35);
}

#about > ul li strong,
#products > ul li strong,
#solutions > ul li strong,
#howto > ul li strong,
#howto > ol li strong {
  color: var(--text);
}

#contact > ul li strong {
  color: var(--text);
  margin-right: 6px;
}

#news {
  display: grid;
  gap: 18px;
}

#news article,
#articles article {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.35);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(16px, 1.8vw, 19px);
  transition: color var(--transition);
}

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

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

#articles article p {
  font-size: 14.5px;
  margin-bottom: 10px;
}

#articles article p:last-child {
  margin-bottom: 0;
}

#articles article p:last-child a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  border: 1px solid rgba(233, 69, 96, 0.3);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#articles article p:last-child a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
}

#knowledge {
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#knowledge h3 {
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  border-radius: 2px;
}

#faq {
  display: grid;
  gap: 12px;
}

#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

#faq details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.3);
}

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

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

#faq details[open] summary {
  color: var(--primary);
  background: var(--gradient-soft);
}

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

#faq details p {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--text-soft);
  animation: faqOpen 0.35s ease both;
}

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

#howto ol {
  counter-reset: none;
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#contact h3 {
  margin-top: 32px;
}

#contact > h3 + ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#contact > h3 + ul li {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
}

#contact > h3 + ul li::before {
  display: none;
}

#contact > h3 + ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-md);
}

#contact > h3 + ul li a {
  font-weight: 600;
}

#author-info {
  padding: clamp(22px, 3.4vw, 34px);
  background: var(--gradient-banner);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

#author-info::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

#author-info h2 {
  color: #fff;
}

#author-info h2::after {
  background: #fff;
  opacity: 0.85;
}

#author-info p {
  color: rgba(245, 245, 245, 0.85);
  position: relative;
  z-index: 1;
}

#author-info strong {
  color: #fff;
}

#author-info p:last-child {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13.5px;
  color: rgba(245, 245, 245, 0.7);
}

#legal {
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#legal h3 {
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  border-radius: 2px;
}

footer {
  position: relative;
  margin-top: 48px;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px);
  text-align: center;
  color: rgba(245, 245, 245, 0.82);
  background: var(--gradient-banner);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  color: rgba(245, 245, 245, 0.82);
  margin-bottom: 8px;
  font-size: 14px;
}

footer p:first-child {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

#back-to-top {
  margin-top: 18px;
  padding: 10px 28px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.55);
  filter: brightness(1.08);
}

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

@media (max-width: 1024px) {
  form[role="search"] {
    flex-basis: 100%;
    order: 5;
  }

  nav[aria-label="主导航"] > ul {
    flex-basis: 100%;
    order: 4;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }

  .topbar {
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }

  nav[aria-label="主导航"] {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 17px;
  }

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

  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  nav[aria-label="主导航"] > ul {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    gap: 4px;
    padding: 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  nav[aria-label="主导航"] > ul.open {
    display: flex;
    animation: fadeUp 0.35s ease both;
  }

  nav[aria-label="主导航"] > ul li a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
  }

  nav[aria-label="主导航"] > ul li a::after {
    display: none;
  }

  form[role="search"] {
    flex-basis: 100%;
    min-width: 0;
  }

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

  #hero > p:last-of-type {
    gap: 10px;
  }

  #hero > p:last-of-type a {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 16px;
  }

  #stats ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #stats li {
    padding: 20px 12px;
  }

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

  h2::after {
    width: 48px;
  }

  #about > ul li,
  #products > ul li,
  #solutions > ul li,
  #howto > ul li,
  #howto > ol li,
  #contact > ul li {
    padding: 11px 14px 11px 38px;
    font-size: 14.5px;
  }

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

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

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

  #stats strong {
    font-size: 30px;
  }

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

  #faq details p {
    padding: 0 16px 16px;
    font-size: 14px;
  }

  #hero > p:last-of-type a {
    flex-basis: 100%;
  }
}

@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 {
  header,
  footer,
  #back-to-top,
  #hero > p:last-of-type {
    display: none;
  }

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

  main > section {
    animation: none;
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}