:root {
  --brand: #5b21b6;
  --brand-2: #7c3aed;
  --brand-3: #a78bfa;
  --accent: #fbbf24;
  --accent-2: #f59e0b;
  --bg: #f7f5ff;
  --bg-soft: #efeaff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #1e1b2e;
  --text-soft: #4b4763;
  --text-muted: #6f6a86;
  --border: rgba(91, 33, 182, 0.14);
  --border-strong: rgba(91, 33, 182, 0.24);
  --shadow-sm: 0 2px 8px rgba(46, 16, 101, 0.06);
  --shadow-md: 0 10px 30px rgba(46, 16, 101, 0.1);
  --shadow-lg: 0 24px 60px rgba(46, 16, 101, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 42%, #a855f7 78%, #f0abfc 100%);
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d0a18;
  --bg-soft: #15102a;
  --surface: #1a1430;
  --surface-glass: rgba(32, 24, 58, 0.66);
  --surface-glass-strong: rgba(38, 29, 68, 0.88);
  --text: #f2eefc;
  --text-soft: #d3cbe8;
  --text-muted: #a79ec2;
  --border: rgba(167, 139, 250, 0.18);
  --border-strong: rgba(167, 139, 250, 0.32);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #1b1036 0%, #2e1a5e 40%, #4c1d95 75%, #7c3aed 100%);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(251, 191, 36, 0.1), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(168, 85, 247, 0.1), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-2);
}

html[data-theme="dark"] a {
  color: var(--brand-3);
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus-visible {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  background: linear-gradient(120deg, #ffffff 0%, #fde68a 55%, #fbcfe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  color: var(--text);
}

h4 {
  font-size: 1.05rem;
}

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

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

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--brand-2);
}

html[data-theme="dark"] li::marker {
  color: var(--accent);
}

section {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.4rem, 3.2vw, 2.6rem);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(0.9rem, 3vw, 2rem) 3rem;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass-strong);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 4px 24px rgba(46, 16, 101, 0.08);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.6rem clamp(0.9rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.4);
}

.brand-name {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

html[data-theme="dark"] .brand-name {
  background: linear-gradient(135deg, #c4b5fd 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 0.42rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-1px);
}

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

html[data-theme="dark"] #main-nav a:hover,
html[data-theme="dark"] #main-nav a:focus-visible {
  color: var(--accent);
  background: rgba(251, 191, 36, 0.1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.2rem 0.2rem 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-search:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16);
}

#search-input {
  width: 150px;
  max-width: 100%;
  padding: 0.4rem 0.2rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}

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

#site-search button {
  padding: 0.42rem 0.95rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
  filter: brightness(1.06);
}

#theme-toggle,
#menu-toggle {
  padding: 0.48rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

html[data-theme="dark"] #theme-toggle,
html[data-theme="dark"] #menu-toggle {
  color: var(--accent);
  background: var(--surface);
}

html[data-theme="dark"] #theme-toggle:hover,
html[data-theme="dark"] #menu-toggle:hover {
  color: #1a1430;
  background: var(--grad-accent);
}

#menu-toggle {
  display: none;
}

#breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem clamp(0.9rem, 3vw, 2rem) 0;
}

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

#breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

#breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--brand-3);
  font-weight: 700;
}

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

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  color: #fff;
  isolation: isolate;
}

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

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.75), transparent 70%);
  animation: floatOrb 14s ease-in-out infinite;
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -80px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.7), transparent 70%);
  animation: floatOrb 18s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 28px, 0) scale(1.08); }
}

.hero-slides {
  position: relative;
  min-height: 220px;
}

.hero-slide {
  animation: fadeSlide 0.7s var(--ease) both;
}

.hero-slide[hidden] {
  display: none;
}

.hero-slide h1,
.hero-slide h2 {
  color: #fff;
  padding-left: 0;
  margin-bottom: 0.7rem;
}

.hero-slide h1 {
  background: linear-gradient(120deg, #ffffff 0%, #fde68a 60%, #fbcfe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

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

.hero-slide p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
}

.hero-slide .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.72rem 1.6rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: #3b1d00;
  background: var(--grad-accent);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.hero-slide .cta::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.hero-slide .cta:hover,
.hero-slide .cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(251, 191, 36, 0.6);
  filter: brightness(1.05);
  color: #3b1d00;
}

.hero-slide .cta:hover::after {
  transform: translateX(4px);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.9rem 0.6rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.stat-num {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: clamp(0.72rem, 1.4vw, 0.84rem);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

#intro,
#about,
#products,
#services,
#scenes,
#cases,
#solutions,
#articles,
#knowledge,
#faq,
#howto,
#notice,
#contact,
#sitemap,
#links {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#products ul,
#howto ul,
#howto ol,
#contact ul,
#sitemap ul,
#links ul {
  display: grid;
  gap: 0.5rem;
}

#products ul {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-left: 0;
  list-style: none;
}

#products ul li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0.9rem 0.7rem 2.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #3b1d00;
  background: var(--grad-accent);
  border-radius: 50%;
}

#products ul li:hover {
  transform: translateY(-3px);
  border-color: var(--brand-3);
  box-shadow: var(--shadow-md);
}

#scenes h3,
#cases h3,
#solutions h3,
#services h3,
#about h3,
#intro h3,
#knowledge h3,
#howto h3,
#notice h3 {
  margin-top: 1.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border-strong);
}

#scenes h3:first-of-type,
#cases h3:first-of-type,
#solutions h3:first-of-type,
#services h3:first-of-type,
#about h3:first-of-type,
#intro h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#notice h3:first-of-type {
  margin-top: 0.6rem;
}

blockquote {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem 1rem 1.4rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0 0 0.6rem;
  font-style: italic;
  color: var(--text-soft);
}

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

html[data-theme="dark"] blockquote {
  background: rgba(124, 58, 237, 0.14);
  border-left-color: var(--accent);
}

#articles > p:first-of-type {
  margin-bottom: 1.6rem;
}

.article-card {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 1.2rem 1.3rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-3);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card h3 {
  margin-bottom: 0.35rem;
  transition: color 0.3s var(--ease);
}

.article-card:hover h3 {
  color: var(--brand-2);
}

html[data-theme="dark"] .article-card:hover h3 {
  color: var(--accent);
}

.article-card .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.article-card p:not(.meta) {
  margin-bottom: 0.8rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-2);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.read-more:hover,
.read-more:focus-visible {
  background: var(--grad-brand);
  color: #fff;
  transform: translateX(2px);
}

.read-more:hover::after {
  transform: translateX(3px);
}

html[data-theme="dark"] .read-more {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent);
}

html[data-theme="dark"] .read-more:hover {
  background: var(--grad-accent);
  color: #1a1430;
}

#faq details {
  margin: 0 0 0.7rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--brand-3);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--brand-2);
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-md);
}

#faq summary {
  position: relative;
  padding-right: 2rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

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

html[data-theme="dark"] #faq summary:hover {
  color: var(--accent);
}

#faq details p {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  animation: fadeSlide 0.35s var(--ease) both;
}

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

#howto ol li {
  position: relative;
  margin: 0 0 0.6rem;
  padding: 0.7rem 0.9rem 0.7rem 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.82rem;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 8px;
}

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

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

#howto ul li {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 1.4rem;
}

#howto ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.62rem;
  color: var(--accent-2);
}

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

#contact ul li {
  margin: 0;
  padding: 0.7rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: var(--brand-3);
  box-shadow: var(--shadow-md);
}

#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-left: 0;
  list-style: none;
}

#sitemap ul li,
#links ul li {
  margin: 0;
}

#sitemap ul a,
#links ul a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

#sitemap ul a:hover,
#links ul a:hover,
#sitemap ul a:focus-visible,
#links ul a:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
}

html[data-theme="dark"] #sitemap ul a:hover,
html[data-theme="dark"] #links ul a:hover {
  color: #1a1430;
  background: var(--grad-accent);
}

#site-footer {
  margin-top: 2rem;
  padding: clamp(1.8rem, 4vw, 3rem) 0 1.6rem;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(160deg, #2a1259 0%, #3b1a7a 45%, #1c0f3a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(0.9rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner section {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-inner section:hover {
  box-shadow: none;
  border-color: transparent;
}

.footer-inner h2 {
  font-size: 1rem;
  padding-left: 0;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-inner h2::before {
  display: none;
}

.footer-inner p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner .copyright {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.02em;
}

#back-to-top {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  bottom: clamp(0.9rem, 2.5vw, 1.6rem);
  z-index: 90;
}

#back-to-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(91, 33, 182, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#back-to-top a:hover,
#back-to-top a:focus-visible {
  transform: translateY(-4px) scale(1.06);
  background: var(--grad-accent);
  color: #3b1d00;
  box-shadow: 0 16px 34px rgba(251, 191, 36, 0.5);
}

.js-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal[data-delay="1"] { transition-delay: 0.08s; }
.js-reveal[data-delay="2"] { transition-delay: 0.16s; }
.js-reveal[data-delay="3"] { transition-delay: 0.24s; }

@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;
  }
  .js-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  #main-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.84rem;
  }
  #search-input {
    width: 120px;
  }
}

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

  .header-inner {
    gap: 0.6rem;
  }

  #menu-toggle {
    display: inline-flex;
  }

  #main-nav {
    flex: 1 1 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease);
  }

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

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--surface-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  #main-nav a {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  #main-nav a::after {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  #site-search {
    order: 2;
    flex: 1 1 100%;
    margin-top: 0.3rem;
  }

  #search-input {
    width: 100%;
    flex: 1 1 auto;
  }

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

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

  .brand-name {
    font-size: 0.92rem;
    max-width: 150px;
    white-space: normal;
    line-height: 1.2;
  }

  .header-inner {
    padding: 0.5rem 0.8rem;
  }

  main {
    padding: 0.9rem 0.75rem 2.4rem;
  }

  section {
    border-radius: var(--radius-md);
    padding: 1.1rem 0.95rem;
  }

  .hero {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius-lg);
  }

  .hero-slide .cta {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 0.55rem;
  }

  .stat {
    padding: 0.7rem 0.45rem;
  }

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

  .article-card {
    padding: 1rem 0.95rem;
  }

  #faq details {
    padding: 0.75rem 0.85rem;
  }

  #back-to-top a {
    width: 44px;
    height: 44px;
    font-size: 0.66rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 400px) {
  #theme-toggle,
  #menu-toggle {
    padding: 0.42rem 0.62rem;
    font-size: 0.78rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }
}

@media (hover: none) {
  section:hover,
  .article-card:hover,
  .stat:hover,
  #products ul li:hover,
  #contact ul li:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #breadcrumb,
  #back-to-top,
  .hero-stats,
  .header-tools {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    backdrop-filter: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}