:root {
  --brand: #5B4FE9;
  --brand-dark: #4338CA;
  --brand-light: #818CF8;
  --accent: #F472B6;
  --accent-2: #38BDF8;
  --bg: #F5F6FB;
  --bg-soft: #FFFFFF;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1A1B2E;
  --text-soft: #4B4D66;
  --text-muted: #7C7F99;
  --border: rgba(91, 79, 233, 0.14);
  --border-soft: rgba(26, 27, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 27, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 27, 46, 0.1);
  --shadow-lg: 0 18px 48px rgba(26, 27, 46, 0.14);
  --shadow-brand: 0 12px 32px rgba(91, 79, 233, 0.28);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-banner: linear-gradient(135deg, #5B4FE9 0%, #7C5CFF 38%, #B44FE9 72%, #F472B6 100%);
  --grad-brand: linear-gradient(135deg, #5B4FE9, #8B5CF6);
  --grad-soft: linear-gradient(135deg, rgba(91, 79, 233, 0.1), rgba(244, 114, 182, 0.1));
  --glass-blur: saturate(180%) blur(18px);
}

[data-theme="dark"] {
  --brand: #8B7CFF;
  --brand-dark: #6D5DF0;
  --brand-light: #A5A0FF;
  --accent: #F472B6;
  --accent-2: #38BDF8;
  --bg: #0C0D18;
  --bg-soft: #14162A;
  --bg-elevated: rgba(24, 26, 48, 0.72);
  --text: #EDEEF7;
  --text-soft: #B6B9D0;
  --text-muted: #8589A8;
  --border: rgba(139, 124, 255, 0.22);
  --border-soft: rgba(237, 238, 247, 0.09);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 12px 32px rgba(109, 93, 240, 0.35);
  --grad-banner: linear-gradient(135deg, #1E1B4B 0%, #3B2E8F 38%, #6D28D9 72%, #9D2D7A 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 124, 255, 0.14), rgba(244, 114, 182, 0.12));
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
  background-image:
    radial-gradient(1000px 520px at 8% -8%, rgba(91, 79, 233, 0.12), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(244, 114, 182, 0.1), transparent 60%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(1000px 520px at 8% -8%, rgba(109, 93, 240, 0.2), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(244, 114, 182, 0.12), transparent 60%);
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
button {
  outline: none;
}

::selection {
  background: rgba(91, 79, 233, 0.28);
  color: var(--text);
}

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-elevated);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo svg {
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.5s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.logo-text {
  font-size: 1.22rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

#main-nav ul::-webkit-scrollbar {
  display: none;
}

#main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  position: relative;
  transition: color 0.25s var(--ease), background 0.3s var(--ease);
}

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

#main-nav a:hover {
  color: var(--brand);
  background: var(--grad-soft);
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 79, 233, 0.16), var(--shadow-sm);
  transform: translateY(-1px);
}

.site-search input {
  width: 170px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 0;
}

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

.site-search button {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-brand);
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

#theme-toggle,
#menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
}

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

#menu-toggle {
  display: none;
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > section {
  margin-top: 56px;
}

main > section:first-of-type {
  margin-top: 32px;
}

/* ============ Breadcrumb ============ */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  transition: all 0.3s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.breadcrumb li[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* ============ Banner ============ */
#banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-banner);
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px 68px;
  isolation: isolate;
}

#banner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.2), transparent 46%);
  animation: bannerFloat 14s ease-in-out infinite alternate;
  z-index: -1;
}

#banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28));
  z-index: -1;
}

@keyframes bannerFloat {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.banner-slides {
  position: relative;
  min-height: 150px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.banner-slide h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  margin-bottom: 14px;
  max-width: 720px;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.94rem, 1.6vw, 1.08rem);
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.banner-dots {
  position: absolute;
  left: 44px;
  bottom: 30px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-dots button {
  width: 34px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}

.banner-dots button[aria-selected="true"] {
  width: 60px;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.75);
}

/* ============ Typography ============ */
h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(91, 79, 233, 0.5);
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--text);
}

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

.lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  line-height: 1.85;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
}

/* ============ Sections as glass cards ============ */
#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

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

/* ============ Lists ============ */
#products ul,
#howto ul,
#howto ol,
#sitemap ul,
#links ul,
address ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

#products ul li,
#howto ul li,
#sitemap ul li,
#links ul li,
address ul li {
  position: relative;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#products ul li::before,
#howto ul li::before,
#sitemap ul li::before,
#links ul li::before,
address ul li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(91, 79, 233, 0.12);
}

#products ul li:hover,
#howto ul li:hover,
#sitemap ul li:hover,
#links ul li:hover,
address ul li:hover {
  transform: translateX(6px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  background: var(--grad-soft);
}

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

#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
}

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

/* ============ News ============ */
.news-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.news-list li {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.news-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

.news-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.news-list li:hover::after {
  transform: scaleY(1);
}

.news-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.news-list h3 a {
  color: var(--text);
}

.news-list h3 a:hover {
  color: var(--brand);
}

.news-list time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  background: var(--grad-soft);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  font-weight: 600;
}

.news-list p {
  margin: 0;
  font-size: 0.94rem;
}

/* ============ Articles ============ */
#articles article {
  padding: 24px 26px;
  margin-top: 18px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

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

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

#articles article h3 {
  margin-top: 0;
  font-size: 1.12rem;
  color: var(--text);
}

#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}

#articles article a::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

#articles article a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

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

/* ============ Blockquote ============ */
blockquote {
  margin: 18px 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 20px;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.18;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

blockquote p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 8px;
}

blockquote cite {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--brand);
  font-weight: 600;
}

/* ============ FAQ ============ */
#faq details {
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

#faq details:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-weight: 650;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

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

#faq summary:hover {
  background: var(--grad-soft);
  color: var(--brand);
}

#faq details p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  animation: faqIn 0.45s var(--ease);
}

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

/* ============ Contact ============ */
address {
  font-style: normal;
  margin: 18px 0;
}

address a {
  font-weight: 600;
}

/* ============ Footer ============ */
#site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 32px;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-banner);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 750;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

#site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

#site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

#site-footer nav a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: all 0.35s var(--ease);
}

#site-footer nav a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

#site-footer section {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

#site-footer section h2 {
  font-size: 1rem;
  padding-left: 14px;
  margin-bottom: 12px;
}

#site-footer section h2::before {
  width: 4px;
}

#site-footer section p {
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.copyright {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.84rem !important;
  color: var(--text-muted) !important;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease), filter 0.3s var(--ease);
  z-index: 900;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.1);
}

/* ============ 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) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .site-search input {
    width: 130px;
  }
  #main-nav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

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

  .header-inner {
    padding: 0 18px;
    gap: 12px;
  }

  #menu-toggle {
    display: grid;
  }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.4s var(--ease);
    padding: 0 18px;
  }

  #main-nav.is-open {
    max-height: 70vh;
    overflow-y: auto;
    padding: 14px 18px 20px;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

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

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

  .site-search {
    display: none;
  }

  #banner {
    padding: 36px 24px 62px;
    min-height: 280px;
  }

  .banner-dots {
    left: 24px;
    bottom: 24px;
  }

  main {
    padding: 0 18px 64px;
  }

  main > section {
    margin-top: 40px;
  }

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

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

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

  .logo-text {
    font-size: 1.05rem;
  }

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

  h1 {
    font-size: 1.5rem;
  }

  .lead {
    padding: 16px 18px;
    font-size: 1rem;
  }

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

  .banner-slide p {
    font-size: 0.92rem;
  }

  #articles article,
  .news-list li {
    padding: 18px 18px;
  }

  #faq summary {
    padding: 16px 50px 16px 18px;
    font-size: 0.95rem;
  }

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

  #site-footer {
    padding: 40px 18px 26px;
  }

  #site-footer nav ul {
    gap: 8px;
  }

  #site-footer nav a {
    padding: 6px 13px;
    font-size: 0.84rem;
  }
}