:root {
  --brand-primary: #c8102e;
  --brand-primary-dark: #9c0c23;
  --brand-primary-light: #e63950;
  --brand-accent: #ff7a45;
  --brand-accent-2: #ffb347;
  --brand-gradient: linear-gradient(135deg, #c8102e 0%, #7a0a1c 45%, #2b1a3d 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(200, 16, 46, 0.14) 0%, rgba(255, 122, 69, 0.10) 50%, rgba(43, 26, 61, 0.12) 100%);
  --bg-base: #f6f4f2;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.62);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --bg-subtle: #f0ecea;
  --text-main: #1f1a1c;
  --text-secondary: #4a4247;
  --text-muted: #7c7176;
  --border-color: rgba(31, 26, 28, 0.10);
  --border-strong: rgba(31, 26, 28, 0.18);
  --shadow-sm: 0 2px 8px rgba(31, 26, 28, 0.06);
  --shadow-md: 0 8px 28px rgba(31, 26, 28, 0.10);
  --shadow-lg: 0 18px 48px rgba(31, 26, 28, 0.16);
  --shadow-brand: 0 10px 32px rgba(200, 16, 46, 0.26);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.dark-mode {
  --brand-primary: #ff4d63;
  --brand-primary-dark: #d92e46;
  --brand-primary-light: #ff7a8c;
  --brand-accent: #ff9a5c;
  --brand-accent-2: #ffc46b;
  --brand-gradient: linear-gradient(135deg, #4a0713 0%, #2a0a1e 45%, #120d1f 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(255, 77, 99, 0.14) 0%, rgba(255, 154, 92, 0.08) 50%, rgba(120, 90, 200, 0.10) 100%);
  --bg-base: #0f0d12;
  --bg-elevated: #1a161c;
  --bg-glass: rgba(30, 25, 34, 0.62);
  --bg-glass-strong: rgba(30, 25, 34, 0.86);
  --bg-subtle: #221c26;
  --text-main: #f3eef1;
  --text-secondary: #c9bfc6;
  --text-muted: #938892;
  --border-color: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 10px 32px rgba(255, 77, 99, 0.28);
}

*,
*::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: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(200, 16, 46, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 122, 69, 0.10), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(43, 26, 61, 0.08), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

body.dark-mode {
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(255, 77, 99, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 154, 92, 0.08), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(120, 90, 200, 0.12), transparent 60%);
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: clamp(1.02rem, 1.5vw, 1.15rem); }

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote p {
  margin: 0;
  font-style: italic;
}

.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;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#site-header.is-stuck {
  background: var(--bg-glass-strong);
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

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

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

.brand:hover {
  color: var(--brand-primary);
}

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

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

.brand-name {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .brand-name {
  background: linear-gradient(135deg, #ff7a8c, #ffc46b);
  -webkit-background-clip: text;
  background-clip: text;
}

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

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

#main-nav li {
  margin: 0;
}

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

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

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

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

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

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

.site-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

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

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

.site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-gradient);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  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: var(--shadow-brand);
  filter: brightness(1.06);
}

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

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

#menu-toggle {
  display: none;
}

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 80px;
}

main section {
  margin-top: 64px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

main section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============ BREADCRUMB ============ */
.breadcrumb {
  margin-top: 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.7;
}

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

.breadcrumb a:hover {
  color: var(--brand-primary);
}

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

/* ============ HERO ============ */
.hero {
  position: relative;
  margin-top: 24px !important;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--brand-gradient);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  opacity: 1;
  transform: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(500px 320px at 10% 90%, rgba(255, 179, 71, 0.28), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
  z-index: -1;
  pointer-events: none;
  animation: heroOrbit 18s linear infinite;
}

@keyframes heroOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-track {
  position: relative;
  min-height: clamp(300px, 42vw, 360px);
}

.hero-slide {
  display: none;
  animation: heroFade 0.7s var(--ease);
}

.hero-slide.is-active {
  display: block;
}

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

.hero-slide h1,
.hero-slide h2 {
  color: #fff;
  max-width: 900px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-slide h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3;
}

.hero-lead,
.hero-note,
.hero-slide p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 860px;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 30px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--brand-primary-dark);
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

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

.hero-cta:hover {
  transform: translateY(-3px);
  color: var(--brand-primary-dark);
  background: #fff7f3;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

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

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
  color: transparent;
  font-size: 0;
  overflow: hidden;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dots button[aria-selected="true"] {
  width: 56px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px !important;
}

.stat-item {
  position: relative;
  padding: 26px 20px;
  text-align: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  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);
}

.stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-num {
  position: relative;
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

body.dark-mode .stat-num {
  background: linear-gradient(135deg, #ff7a8c, #ffc46b);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  position: relative;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ SECTION CARD BASE ============ */
#brand,
#products,
#solutions,
#cases,
#news,
#knowledge,
#howto,
#faq,
#contact,
#sitemap,
#links {
  padding: clamp(24px, 4vw, 44px);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#knowledge:hover,
#howto:hover,
#faq:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

#brand h2,
#products h2,
#solutions h2,
#cases h2,
#news h2,
#knowledge h2,
#howto h2,
#faq h2,
#contact h2,
#sitemap h2,
#links h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

#brand h2::after,
#products h2::after,
#solutions h2::after,
#cases h2::after,
#news h2::after,
#knowledge h2::after,
#howto h2::after,
#faq h2::after,
#contact h2::after,
#sitemap h2::after,
#links h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  box-shadow: 0 2px 10px rgba(200, 16, 46, 0.3);
}

#brand h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#knowledge h3,
#howto h3,
#contact h3 {
  margin-top: 1.6em;
  padding-left: 14px;
  border-left: 4px solid var(--brand-primary);
  color: var(--text-main);
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#howto h3:first-of-type {
  margin-top: 0.4em;
}

#brand h4,
#products h4,
#solutions h4 {
  margin-top: 1.4em;
  color: var(--brand-primary);
  font-weight: 700;
}

body.dark-mode #brand h4,
body.dark-mode #products h4,
body.dark-mode #solutions h4 {
  color: var(--brand-primary-light);
}

.section-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-accent);
  margin-bottom: 24px;
}

/* ============ NEWS ============ */
.news-item {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.news-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.news-item h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.news-item h3 a {
  color: var(--text-main);
  transition: color 0.25s var(--ease);
}

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

.news-item .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-item > p {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.news-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient-soft);
  color: var(--brand-primary);
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-item > a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.news-item > a:hover {
  color: #fff;
  background: var(--brand-gradient);
  transform: translateX(3px);
  box-shadow: var(--shadow-brand);
}

.news-item > a:hover::after {
  transform: translateX(4px);
}

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

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

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

#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 14px 18px 14px 58px;
  margin-bottom: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 50%;
  box-shadow: var(--shadow-brand);
}

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

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

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

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

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

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

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

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

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

#faq details p {
  margin: 0;
  padding: 4px 22px 20px;
  font-size: 0.94rem;
  animation: faqReveal 0.4s var(--ease);
}

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

/* ============ CONTACT ============ */
#contact p {
  font-size: 0.96rem;
  line-height: 2;
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

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

/* ============ FOOTER ============ */
#site-footer {
  position: relative;
  margin-top: 80px;
  padding: 60px 20px 30px;
  background: var(--brand-gradient);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(255, 179, 71, 0.18), transparent 60%),
    radial-gradient(600px 280px at 0% 100%, rgba(255, 77, 99, 0.20), transparent 60%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
}

.footer-col h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--brand-accent-2);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col strong {
  color: #fff;
}

.footer-col a {
  color: var(--brand-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a:hover {
  color: #fff;
}

.copyright {
  position: relative;
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(200, 16, 46, 0.42);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .site-search input { width: 120px; }
  #main-nav a { padding: 8px 9px; font-size: 0.88rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

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

  .header-inner { gap: 12px; }

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

  #main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 0 16px;
    background: var(--bg-glass-strong);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), visibility 0.35s var(--ease), padding 0.35s var(--ease);
  }

  #main-nav.is-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    padding: 12px 16px 20px;
  }

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

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

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

  .site-search { display: none; }

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

  .hero-track { min-height: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col:first-child { grid-column: auto; }
}

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

  main { padding: 0 14px 60px; }

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

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

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

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

  .breadcrumb ol { padding: 8px 12px; font-size: 0.78rem; }

  .hero {
    padding: 26px 20px;
    border-radius: var(--radius-lg);
  }

  .hero::after { display: none; }

  .hero-lead,
  .hero-note,
  .hero-slide p { font-size: 0.92rem; line-height: 1.8; }

  .hero-note { padding: 12px 14px; }

  .hero-cta { width: 100%; justify-content: center; padding: 13px 20px; }

  .hero-dots button { width: 28px; }
  .hero-dots button[aria-selected="true"] { width: 44px; }

  .stats { gap: 12px; }

  .stat-item { padding: 20px 12px; border-radius: var(--radius-md); }

  .stat-num { font-size: 1.6rem; }

  .stat-label { font-size: 0.76rem; }

  #brand,
  #products,
  #solutions,
  #cases,
  #news,
  #knowledge,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    margin-top: 44px;
  }

  main section { margin-top: 44px; }

  .news-item { padding: 18px 18px; }

  .news-item > a { width: 100%; justify-content: center; }

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

  #faq details p { padding: 2px 18px 18px; font-size: 0.9rem; }

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

  #sitemap a,
  #links a { padding: 7px 14px; font-size: 0.82rem; }

  #site-footer { padding: 44px 16px 26px; margin-top: 60px; }

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

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}

/* ============ HOVER CAPABLE ONLY ============ */
@media (hover: none) {
  .stat-item:hover,
  .news-item:hover,
  #sitemap a:hover,
  #links a:hover,
  #howto ol li:hover,
  #cases blockquote:hover {
    transform: none;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  #back-to-top,
  .hero-dots,
  #site-footer {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  main section { opacity: 1; transform: none; box-shadow: none; border: 1px solid #ccc; }
}