:root {
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #fbbf24;
  --accent-pink: #f472b6;
  --accent-cyan: #22d3ee;
  --bg: #f8f7fc;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1e1b2e;
  --text-secondary: #4b4560;
  --text-muted: #7c7791;
  --border: rgba(109, 40, 217, 0.12);
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 24px rgba(76, 29, 149, 0.1);
  --shadow-lg: 0 16px 48px rgba(76, 29, 149, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 68px;
  --max-w: 1200px;
  --gradient-hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 35%, #8b5cf6 65%, #c084fc 100%);
  --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f472b6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
}

[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-light: #c4b5fd;
  --primary-dark: #7c3aed;
  --accent: #fcd34d;
  --accent-pink: #f9a8d4;
  --accent-cyan: #67e8f9;
  --bg: #0f0d1a;
  --bg-alt: #1a1728;
  --bg-card: rgba(30, 27, 46, 0.72);
  --bg-glass: rgba(30, 27, 46, 0.55);
  --text: #f0eef8;
  --text-secondary: #c4bfd6;
  --text-muted: #8b85a3;
  --border: rgba(167, 139, 250, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 35%, #6d28d9 65%, #8b5cf6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(30,27,46,0.7) 0%, rgba(30,27,46,0.3) 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(244, 114, 182, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  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);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

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

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

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.45);
}

.brand-name {
  font-size: 1.15rem;
  background: var(--gradient-hero);
  -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;
  -ms-overflow-style: none;
}

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

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

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

#main-nav a:hover {
  color: var(--primary);
  background: rgba(109, 40, 217, 0.06);
}

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

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

#search-input {
  width: 160px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

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

#site-search button {
  padding: 8px 16px;
  border: none;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition), transform var(--transition);
}

#site-search button:hover {
  opacity: 0.9;
}

#site-search button:active {
  transform: scale(0.96);
}

#menu-toggle,
#theme-toggle {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

#theme-toggle {
  display: block;
  flex-shrink: 0;
}

#menu-toggle:hover,
#theme-toggle:hover {
  background: rgba(109, 40, 217, 0.08);
  border-color: var(--primary);
}

#menu-toggle:active,
#theme-toggle:active {
  transform: scale(0.95);
}

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

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

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

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

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

/* ========== SECTIONS ========== */
section {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }
section:nth-of-type(9) { animation-delay: 0.45s; }
section:nth-of-type(10) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: -0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-accent);
}

section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--primary);
}

section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ========== BANNER ========== */
#banner {
  position: relative;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 1;
  transform: none;
  animation: none;
}

#banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

#banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

#banner h1 {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

#banner > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.banner-slides {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.slide {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.slide:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.2);
}

.slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slide h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.slide p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

/* ========== INTRO ========== */
#intro {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#intro:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

/* ========== PRODUCTS ========== */
#products {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#products:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#products h4 {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
  font-size: 0.95rem;
}

[data-theme="dark"] #products h4 {
  background: rgba(167, 139, 250, 0.12);
}

/* ========== SOLUTIONS ========== */
#solutions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#solutions:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#solutions h3 {
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  border-radius: 2px;
}

/* ========== CASES ========== */
#cases {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#cases:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#cases blockquote {
  position: relative;
  margin: 16px 0;
  padding: 20px 24px 20px 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.6;
}

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

#cases blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ========== NEWS ========== */
#news {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#news:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

/* ========== ARTICLES ========== */
#articles {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#articles:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#articles article {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.25);
}

#articles article h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--text);
  transition: color var(--transition);
}

#articles article:hover h3 {
  color: var(--primary);
}

#articles article > p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#articles article > p:nth-of-type(2) {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

#articles article a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles article a:hover {
  gap: 8px;
  color: var(--primary-light);
}

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

/* ========== FAQ ========== */
#faq {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#faq dl {
  display: grid;
  gap: 12px;
}

#faq dt {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
  padding-left: 40px;
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#faq dt:hover {
  background: rgba(109, 40, 217, 0.05);
  color: var(--primary);
}

#faq dd {
  padding: 12px 18px 16px 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 4px;
  position: relative;
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gradient-accent);
  color: #1e1b2e;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ========== HOWTO ========== */
#howto {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#howto:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#howto ol {
  counter-reset: howto;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding: 16px 18px 16px 60px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.25);
}

/* ========== CONTACT ========== */
#contact {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#contact p {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0;
}

#contact p:last-of-type {
  border-bottom: none;
}

/* ========== SITEMAP ========== */
#sitemap {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#sitemap:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

#sitemap a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

#sitemap a:hover {
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary);
  border-color: rgba(109, 40, 217, 0.25);
  transform: translateY(-2px);
}

/* ========== LINKS ========== */
#links {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#links:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

#links a:hover {
  background: var(--gradient-hero);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.3);
}

/* ========== PRIVACY / DISCLAIMER / EDITOR ========== */
#privacy,
#disclaimer,
#editor {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#privacy:hover,
#disclaimer:hover,
#editor:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 40, 217, 0.2);
}

#editor p {
  font-size: 0.92rem;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  margin-top: 48px;
  padding: 48px 20px 32px;
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

footer p {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}

footer nav {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

footer nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  position: relative;
  transition: color var(--transition);
}

footer nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

footer nav a:hover {
  color: #fff;
}

footer nav a:hover::after {
  width: 100%;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
  border-radius: 2px;
}

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

#back-to-top:hover {
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.55);
  transform: translateY(-4px) scale(1.06);
}

#back-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #main-nav a {
    padding: 8px 8px;
    font-size: 0.82rem;
  }

  #search-input {
    width: 120px;
  }

  #banner h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 860px) {
  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition);
    padding: 0 20px;
    z-index: 999;
  }

  #main-nav.open {
    max-height: 480px;
    padding: 12px 20px 20px;
    overflow-y: auto;
  }

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

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

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

  #menu-toggle {
    display: block;
  }

  #site-search {
    order: 10;
    width: 100%;
    margin-top: 8px;
  }

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

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

  #site-header {
    position: sticky;
  }

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

  #banner {
    padding: 32px 20px;
  }

  #banner h1 {
    font-size: 1.5rem;
  }

  #banner > p {
    font-size: 0.92rem;
  }

  .banner-slides {
    grid-template-columns: 1fr;
  }

  section h2 {
    font-size: 1.4rem;
  }

  section h3 {
    font-size: 1.1rem;
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links,
  #privacy,
  #disclaimer,
  #editor {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  #sitemap ul {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

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

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

  main {
    padding: 12px;
  }

  #banner {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  #banner h1 {
    font-size: 1.3rem;
  }

  .slide {
    padding: 12px;
  }

  .slide h3 {
    font-size: 0.95rem;
  }

  section h2 {
    font-size: 1.25rem;
  }

  #faq dt {
    padding: 12px 14px 12px 36px;
    font-size: 0.92rem;
  }

  #faq dd {
    padding: 10px 14px 14px 36px;
    font-size: 0.88rem;
  }

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

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

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

  footer {
    padding: 36px 16px 24px;
  }

  footer nav ul {
    gap: 6px 16px;
  }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(109, 40, 217, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(109, 40, 217, 0.45);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.25);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.45);
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(109, 40, 217, 0.25);
  color: var(--text);
}

[data-theme="dark"] ::selection {
  background: rgba(167, 139, 250, 0.35);
}

/* ========== FOCUS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== REDUCED MOTION ========== */
@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;
  }

  section {
    opacity: 1;
    transform: none;
  }
}