:root {
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #1b1f3b;
  --text-soft: #4a5170;
  --text-muted: #6b7394;
  --brand: #1b1f3b;
  --accent: #f2b544;
  --accent-deep: #d99a24;
  --accent-soft: #fdf3dd;
  --line: rgba(27, 31, 59, 0.1);
  --line-strong: rgba(27, 31, 59, 0.18);
  --shadow-sm: 0 4px 14px rgba(27, 31, 59, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 31, 59, 0.1);
  --shadow-lg: 0 24px 60px rgba(27, 31, 59, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #1b1f3b 0%, #2a2f55 45%, #3b3266 100%);
  --grad-accent: linear-gradient(135deg, #f2b544 0%, #f7d488 100%);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] {
  --bg: #0e1122;
  --bg-alt: #151a30;
  --bg-soft: rgba(21, 26, 48, 0.72);
  --surface: #171c33;
  --surface-2: #1f2542;
  --text: #eef1fb;
  --text-soft: #c3c9e0;
  --text-muted: #9aa2c2;
  --brand: #eef1fb;
  --accent: #f2b544;
  --accent-deep: #f7c96a;
  --accent-soft: rgba(242, 181, 68, 0.14);
  --line: rgba(238, 241, 251, 0.1);
  --line-strong: rgba(238, 241, 251, 0.2);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #0b0e1d 0%, #1a1f3d 50%, #2a2450 100%);
  --glass: rgba(23, 28, 51, 0.55);
  --glass-border: rgba(238, 241, 251, 0.12);
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(242, 181, 68, 0.1), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(59, 50, 102, 0.12), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  padding-left: 1.35em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

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

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.9em;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(242, 181, 68, 0.5);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  margin: 1.4em 0 0.6em;
}

h3:first-child {
  margin-top: 0;
}

blockquote {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

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

::selection {
  background: var(--accent);
  color: #1b1f3b;
}

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.3s var(--ease), border-color 0.4s var(--ease);
}

#site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#main-nav {
  margin-left: auto;
}

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

#search-input {
  width: 150px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: width 0.3s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#search-input:focus {
  width: 200px;
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.18);
}

#site-search button,
#theme-toggle,
#menu-toggle {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#site-search button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

#site-search button {
  background: var(--grad-accent);
  color: #1b1f3b;
  border-color: transparent;
  font-weight: 700;
}

#theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
}

#menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

/* ============ Main / sections ============ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin: 0 0 28px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

main article {
  color: var(--text-soft);
}

main article p {
  font-size: 1rem;
}

.meta-line {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  border-top: 1px dashed var(--line-strong);
  padding-top: 10px;
  margin-top: 18px;
}

/* ============ Hero ============ */
#hero {
  margin-top: 24px !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--grad-hero) !important;
  border: none !important;
  color: #eef1fb;
  position: relative;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 181, 68, 0.28), transparent 46%),
    radial-gradient(circle at 8% 90%, rgba(120, 110, 220, 0.28), transparent 48%);
  pointer-events: none;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero > nav {
  padding: 22px 32px 0;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb li {
  margin: 0;
  color: rgba(238, 241, 251, 0.7);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(238, 241, 251, 0.4);
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  color: #fff;
}

.hero-content {
  padding: 20px 32px 8px;
  max-width: 860px;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  color: rgba(238, 241, 251, 0.86);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-accent);
  color: #1b1f3b;
  box-shadow: 0 8px 24px rgba(242, 181, 68, 0.4);
}

.btn-primary:hover {
  color: #1b1f3b;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(242, 181, 68, 0.55);
}

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

.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-banner {
  position: relative;
  margin: 26px 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 800 / 320;
  background: #141731;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.banner-slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 23, 49, 0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.banner-controls button:hover {
  background: var(--accent);
  color: #1b1f3b;
  border-color: transparent;
  transform: scale(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px 32px 34px;
}

.hero-stats .stat {
  padding: 18px 12px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(242, 181, 68, 0.5);
}

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

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(238, 241, 251, 0.72);
  letter-spacing: 0.04em;
}

/* ============ Products / lists ============ */
#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

#products ul li {
  margin: 0;
  padding: 14px 16px 14px 42px;
  position: relative;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

/* ============ Cases ============ */
#cases blockquote {
  position: relative;
  padding-left: 46px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 4px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

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

/* ============ Articles ============ */
#articles {
  display: block;
}

#articles > article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

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

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  background: var(--surface);
}

#articles > article h3 {
  margin-top: 0;
  color: var(--text);
}

#articles > article a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-deep);
  position: relative;
  padding-right: 16px;
}

#articles > article a::after {
  content: "→";
  position: absolute;
  right: 0;
  transition: transform 0.3s var(--ease);
}

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

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

#faq details:last-child {
  margin-bottom: 0;
}

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

#faq details[open] {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.1rem;
  line-height: 24px;
  text-align: center;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary:hover {
  color: var(--accent-deep);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeIn 0.35s var(--ease);
}

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #1b1f3b;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(242, 181, 68, 0.35);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============ Contact / sitemap / links ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  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(--accent);
  box-shadow: var(--shadow-sm);
}

#sitemap nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap nav li {
  margin: 0;
}

#sitemap nav a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap nav a:hover {
  background: var(--grad-accent);
  color: #1b1f3b;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 181, 68, 0.35);
}

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

#links li {
  margin: 0;
}

#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#links a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============ Footer ============ */
#site-footer {
  background: var(--grad-hero);
  color: rgba(238, 241, 251, 0.8);
  padding: 48px 20px 28px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(242, 181, 68, 0.16), transparent 50%);
  pointer-events: none;
}

#site-footer > section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-footer > section:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 181, 68, 0.35);
}

#site-footer h3 {
  color: var(--accent);
  font-size: 1rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

#site-footer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(238, 241, 251, 0.72);
}

.footer-copy {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.82rem !important;
  color: rgba(238, 241, 251, 0.6) !important;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--grad-accent);
  color: #1b1f3b;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  box-shadow: 0 10px 28px rgba(242, 181, 68, 0.45);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(242, 181, 68, 0.6);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  #main-nav ul {
    gap: 0;
  }
  #main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
  #search-input {
    width: 120px;
  }
  #search-input:focus {
    width: 150px;
  }
}

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

  #menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: var(--bg-soft);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  #main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  #main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  #main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  #site-search {
    display: none;
  }

  main > section {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  #hero > nav {
    padding: 18px 20px 0;
  }

  .hero-content {
    padding: 16px 20px 8px;
  }

  .hero-banner {
    margin: 20px 20px 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 20px 26px;
  }

  #site-footer > section {
    padding: 18px 18px;
  }
}

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

  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

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

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

  main {
    padding: 0 14px 44px;
  }

  main > section {
    padding: 20px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  #hero {
    border-radius: var(--radius-lg) !important;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 22px;
    font-size: 0.9rem;
  }

  .hero-banner {
    margin: 16px 14px 0;
    border-radius: var(--radius-md);
  }

  .banner-controls {
    right: 10px;
    bottom: 10px;
  }

  .banner-controls button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero-stats {
    padding: 16px 14px 22px;
    gap: 10px;
  }

  .hero-stats .stat {
    padding: 14px 8px;
  }

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

  #articles > article {
    padding: 18px 16px;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.94rem;
  }

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

  #howto ol li {
    padding: 12px 14px 12px 50px;
  }

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

  #site-footer {
    padding: 32px 14px 22px;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</function>