:root {
  --brand: #ff5a5f;
  --brand-dark: #e04146;
  --brand-light: #ff8a8d;
  --accent: #ffb400;
  --accent-2: #4a90e2;
  --accent-3: #2ec27e;
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-soft: #f0f2f5;
  --text: #1f2329;
  --text-soft: #4e5561;
  --text-muted: #8a919c;
  --border: #e6e8eb;
  --shadow-sm: 0 2px 8px rgba(31, 35, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 35, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(31, 35, 41, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #ff5a5f 0%, #ff8a5c 48%, #ffb400 100%);
  --grad-hero: linear-gradient(120deg, #ffe0e1 0%, #fff3e0 45%, #e0f0ff 100%);
  --grad-soft: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

html[data-theme="dark"] {
  --brand: #ff6b70;
  --brand-dark: #ff8a8d;
  --brand-light: #ffa1a4;
  --accent: #ffc233;
  --accent-2: #6aa9f0;
  --accent-3: #43d693;
  --bg: #0f1216;
  --bg-elev: #171b21;
  --bg-soft: #1d222a;
  --text: #eef1f5;
  --text-soft: #c2c8d1;
  --text-muted: #8b939f;
  --border: #262c35;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(23, 27, 33, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --grad-hero: linear-gradient(120deg, #2a1416 0%, #2a2214 45%, #14202e 100%);
  --grad-soft: linear-gradient(180deg, #171b21 0%, #0f1216 100%);
}

*,
*::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", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(255, 90, 95, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(74, 144, 226, 0.08), transparent 55%);
  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(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--brand-dark);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 0.6em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); font-weight: 800; }
h3 { font-size: clamp(1.08rem, 1.5vw, 1.3rem); font-weight: 700; }

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

ul, ol { padding-left: 1.35em; margin: 0 0 1em; color: var(--text-soft); }
li { margin-bottom: 0.45em; }

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

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.3em;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}

blockquote p { margin: 0; }

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.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(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

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

.brand-logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 90, 95, 0.35);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-size: 1.15rem;
  letter-spacing: 1px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.main-nav li { margin: 0; }

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 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-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(255, 90, 95, 0.08);
}

.main-nav a:hover::after { width: 40%; }

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.14);
  background: var(--bg-elev);
}

.site-search input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  width: 150px;
  padding: 6px 0;
  outline: none;
  font-family: inherit;
}

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

.site-search button {
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  font-family: inherit;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.site-search button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.site-search button:active { transform: translateY(0); }

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  border-color: var(--brand);
  background: rgba(255, 90, 95, 0.1);
}

#menu-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-hero);
  aspect-ratio: 1200 / 320;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 90, 95, 0.18), transparent 45%, rgba(74, 144, 226, 0.16));
  pointer-events: none;
  z-index: 2;
}

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

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

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

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 90, 95, 0.4);
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.slider-dots button.active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--brand);
}

.hero-content {
  animation: fadeUp 0.8s 0.15s var(--ease) both;
}

.hero-content h1 {
  background: linear-gradient(120deg, var(--text) 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em;
}

.hero-lead {
  font-size: 1.02rem;
}

.hero-answer {
  font-size: 0.94rem;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-anchors a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-anchors a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 90, 95, 0.32);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--text-muted); opacity: 0.6; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--brand); font-weight: 700; }

/* ============ SECTIONS ============ */
main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px;
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.1em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(255, 90, 95, 0.5);
}

main > section > h3 {
  margin-top: 1.6em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

main > section > h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.6);
  flex-shrink: 0;
}

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links {
  position: relative;
}

#about > p,
#products > p,
#solutions > p,
#howto > p {
  max-width: 78ch;
}

/* 卡片化区块 */
#about,
#products,
#solutions,
#cases,
#news,
#contact {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 28px;
  margin-bottom: 28px;
}

#about { background: var(--grad-soft); }

/* ============ NEWS ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.news-list li {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

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

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

#articles article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

#articles article:hover::after { transform: scaleX(1); }

#articles article h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

#articles article time { margin-bottom: 8px; }

#articles article p {
  font-size: 0.94rem;
  color: var(--text-soft);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 90, 95, 0.1);
  color: var(--brand);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

#articles article a:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateX(3px);
}

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

/* ============ HOWTO ============ */
#howto {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 28px;
  margin-bottom: 28px;
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 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: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.35);
}

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

#howto ul li {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-2);
  list-style: none;
  margin-left: 0;
  font-size: 0.94rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

#howto ul { padding-left: 0; }

#howto ul li:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateX(3px);
}

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

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

#faq details[open] {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(255, 90, 95, 0.14);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 90, 95, 0.12);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary:hover { color: var(--brand); background: rgba(255, 90, 95, 0.04); }

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

/* ============ CONTACT ============ */
#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-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  word-break: break-word;
}

#contact ul li strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

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

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

#links {
  padding-bottom: 64px;
}

/* ============ FOOTER ============ */
#site-footer {
  position: relative;
  margin-top: 40px;
  padding: 56px 20px 40px;
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(255, 90, 95, 0.14), transparent 60%),
    radial-gradient(700px 300px at 90% 100%, rgba(74, 144, 226, 0.12), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.footer-inner section {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.footer-inner section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.footer-inner h2 {
  font-size: 1rem;
  margin-bottom: 0.7em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-inner h2::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.footer-inner p {
  font-size: 0.88rem;
  margin: 0 0 0.6em;
  color: var(--text-soft);
}

.footer-inner p:last-child { margin-bottom: 0; }

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(255, 90, 95, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(255, 90, 95, 0.55);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
  .site-search input { width: 110px; }
}

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

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

  .main-nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease);
    opacity: 0;
  }

  .main-nav.open {
    max-height: 520px;
    opacity: 1;
    padding-top: 8px;
  }

  .main-nav ul { gap: 6px; }
  .main-nav a { background: var(--bg-soft); }

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

  .site-search input { width: 130px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 20px;
  }

  .hero-slider { order: -1; }

  main > section { padding: 36px 16px; }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #howto,
  #contact {
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px 20px;
  }

  .breadcrumb { padding: 0 16px; }

  .footer-inner { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

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

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

  .header-tools { gap: 8px; }

  .site-search {
    padding-left: 10px;
  }

  .site-search input {
    width: 96px;
    font-size: 0.8rem;
  }

  .site-search button {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  #theme-toggle,
  #menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .hero { padding: 0 14px; }

  .hero-content h1 { font-size: 1.42rem; }

  .hero-lead { font-size: 0.95rem; }

  .hero-answer { font-size: 0.86rem; padding: 10px 12px; }

  .hero-anchors { gap: 8px; }

  .hero-anchors a {
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  .slider-prev,
  .slider-next {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #howto,
  #contact {
    margin-left: 12px;
    margin-right: 12px;
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  main > section { padding: 30px 12px; }

  main > section > h2 {
    padding-left: 14px;
    font-size: 1.24rem;
  }

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

  #articles article h3 { font-size: 1.02rem; }

  #faq summary {
    padding: 15px 48px 15px 16px;
    font-size: 0.94rem;
  }

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

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

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

  .footer-inner { grid-template-columns: 1fr; gap: 16px; }

  #site-footer { padding: 36px 14px 28px; }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

@media (max-width: 400px) {
  .site-search input { width: 70px; }
  .brand-name { display: none; }
}

/* ============ DARK MODE EXTRAS ============ */
html[data-theme="dark"] .brand-logo svg {
  box-shadow: 0 6px 16px rgba(255, 90, 95, 0.28);
}

html[data-theme="dark"] .hero-slider::before {
  background: linear-gradient(140deg, rgba(255, 90, 95, 0.14), transparent 45%, rgba(74, 144, 226, 0.12));
}

html[data-theme="dark"] .slide svg rect[fill="#ffe0e1"] { fill: #2a1416; }
html[data-theme="dark"] .slide svg rect[fill="#e0f0ff"] { fill: #14202e; }
html[data-theme="dark"] .slide svg rect[fill="#e8ffe8"] { fill: #14261a; }

html[data-theme="dark"] #articles article a {
  background: rgba(255, 107, 112, 0.16);
}

html[data-theme="dark"] #faq summary::after {
  background: rgba(255, 107, 112, 0.18);
}

html[data-theme="dark"] .site-search {
  background: var(--bg-soft);
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

::selection {
  background: rgba(255, 90, 95, 0.28);
  color: var(--text);
}