:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b7a;
  --secondary: #457b9d;
  --accent: #2a9d8f;
  --accent-warm: #f4a261;
  --bg: #f8f9fc;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #7a7a8a;
  --border: #e2e5ee;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.15);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #1a1a2e;
    --bg-card: #1e1e32;
    --bg-glass: rgba(30, 30, 50, 0.78);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text: #eaeaf0;
    --text-secondary: #b0b0c0;
    --text-muted: #787890;
    --border: #2e2e48;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--accent-warm), var(--primary));
  background-size: 300% 100%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header nav > div:first-child a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--transition);
}

header nav > div:first-child a:hover {
  transform: scale(1.04);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

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

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.06);
  transform: translateY(-1px);
}

header nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* ===== BREADCRUMB ===== */
main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 8px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

main > nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 8px;
}

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
  font-weight: 500;
}

main > nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--primary);
}

main > nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== SECTIONS ===== */
section {
  margin-top: 72px;
  animation: fadeInUp 0.8s ease both;
}

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

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}

section h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 10px;
  line-height: 1.4;
}

section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.95rem;
}

section p:last-child {
  margin-bottom: 0;
}

/* ===== HERO ===== */
#hero {
  margin-top: 32px;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 65%, #e63946 130%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { box-shadow: 0 20px 60px rgba(230, 57, 70, 0.2); }
  100% { box-shadow: 0 20px 80px rgba(69, 123, 157, 0.35); }
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

#hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd6da 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero > p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 780px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

#hero figure {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== CARDS (about, products, solutions, applications) ===== */
#about,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#faq,
#howto,
#contact {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#applications:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ===== PRODUCTS - feature grid ===== */
#products h3 + p {
  margin-bottom: 8px;
}

#products h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), rgba(69, 123, 157, 0.06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin: 10px 0;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

#products h4:hover {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(69, 123, 157, 0.12));
  transform: translateX(4px);
  border-left-color: var(--accent);
}

#products h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

#products h4 + p {
  padding-left: 26px;
  margin-bottom: 18px;
}

/* ===== SOLUTIONS & APPLICATIONS ===== */
#solutions h3,
#applications h3 {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.08), rgba(69, 123, 157, 0.06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin: 18px 0 12px;
  transition: background var(--transition), transform var(--transition);
}

#solutions h3:hover,
#applications h3:hover {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.15), rgba(69, 123, 157, 0.12));
  transform: translateX(4px);
}

#solutions h3 + p,
#applications h3 + p {
  padding-left: 4px;
}

/* ===== CASES ===== */
#cases h3 {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(230, 57, 70, 0.06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-warm);
  margin: 20px 0 12px;
  transition: background var(--transition), transform var(--transition);
}

#cases h3:hover {
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.18), rgba(230, 57, 70, 0.12));
  transform: translateX(4px);
}

#cases h3 + p {
  padding-left: 4px;
}

/* ===== REVIEWS ===== */
#reviews {
  margin-top: 72px;
}

#reviews h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  letter-spacing: -0.5px;
}

#reviews h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}

#reviews blockquote {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}

#reviews blockquote:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.25);
}

#reviews blockquote p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

#reviews blockquote cite {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  text-align: right;
}

#reviews blockquote cite::before {
  content: "— ";
}

/* ===== NEWS ===== */
#news article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition), border-color var(--transition);
}

#news article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#news article:first-of-type {
  padding-top: 0;
}

#news article:hover {
  padding-left: 12px;
}

#news article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  transition: color var(--transition);
  line-height: 1.5;
}

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

#news article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
  padding: 2px 10px;
  background: rgba(230, 57, 70, 0.06);
  border-radius: 20px;
}

#news article p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ===== ARTICLES ===== */
#articles article {
  padding: 22px 24px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(69, 123, 157, 0.04), rgba(42, 157, 143, 0.04));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#articles article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(69, 123, 157, 0.3);
  background: linear-gradient(135deg, rgba(69, 123, 157, 0.08), rgba(42, 157, 143, 0.08));
}

#articles article:hover::before {
  transform: scaleY(1);
}

#articles article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.5;
  transition: color var(--transition);
}

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

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

#articles article p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(230, 57, 70, 0.08);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

#articles article a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

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

/* ===== FAQ (details/summary) ===== */
#faq details {
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

#faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(230, 57, 70, 0.25);
  background: var(--bg-card);
}

#faq details:hover {
  border-color: rgba(230, 57, 70, 0.2);
}

#faq details summary {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition), background var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

#faq details summary::marker {
  display: none;
  content: "";
}

#faq details summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.08);
  transition: transform var(--transition), background var(--transition), color var(--transition);
  line-height: 1;
}

#faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

#faq details summary:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.04);
}

#faq details p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  animation: fadeInUp 0.35s ease both;
}

/* ===== HOWTO ===== */
#howto h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), rgba(244, 162, 97, 0.06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin: 22px 0 12px;
  transition: background var(--transition), transform var(--transition);
}

#howto h3:hover {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(244, 162, 97, 0.12));
  transform: translateX(4px);
}

#howto h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.06), rgba(69, 123, 157, 0.06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin: 14px 0 10px;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}

#howto h4:hover {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.12), rgba(69, 123, 157, 0.12));
  transform: translateX(4px);
}

#howto h4 + p {
  padding-left: 4px;
}

/* ===== CONTACT ===== */
#contact h3 {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), rgba(69, 123, 157, 0.06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin: 22px 0 12px;
  transition: background var(--transition), transform var(--transition);
}

#contact h3:hover {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(69, 123, 157, 0.12));
  transform: translateX(4px);
}

#contact p {
  padding: 4px 0;
  font-size: 0.92rem;
}

#contact p:first-of-type {
  font-weight: 600;
  color: var(--text);
}

/* ===== SITEMAP & LINKS ===== */
#sitemap {
  margin-top: 72px;
}

#sitemap h2,
#links h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
  letter-spacing: -0.5px;
}

#sitemap h2::before,
#links h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}

#sitemap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#sitemap ul li a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

#links {
  margin-top: 72px;
}

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

#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#links ul li a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(69, 123, 157, 0.3);
}

/* ===== FOOTER ===== */
footer {
  margin-top: 80px;
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--accent-warm), var(--primary));
  background-size: 300% 100%;
  animation: gradientShift 6s ease infinite;
}

footer section {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  animation: none;
}

footer section:last-of-type {
  margin-bottom: 0;
}

footer section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
  letter-spacing: -0.2px;
}

footer section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

footer section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
}

footer > p {
  max-width: var(--max-width);
  margin: 0 auto 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

footer > p:first-of-type {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== SCROLL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: fadeInUp 0.8s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  section#hero {
    animation: heroGlow 8s ease-in-out infinite alternate;
  }

  section#hero h1,
  section#hero > p,
  section#hero figure {
    animation: fadeInUp 0.9s ease both;
  }

  section#hero h1 {
    animation-delay: 0.05s;
  }

  section#hero > p {
    animation-delay: 0.15s;
  }

  section#hero figure {
    animation-delay: 0.25s;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  header nav ul li a {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  #hero {
    padding: 44px 32px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  header nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header nav ul {
    gap: 2px;
    justify-content: center;
    width: 100%;
    order: 2;
    padding-bottom: 4px;
  }

  header nav > div:first-child {
    order: 1;
    width: 100%;
    text-align: center;
    padding-bottom: 4px;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  main {
    padding: 0 16px 60px;
  }

  section {
    margin-top: 52px;
  }

  section h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  #hero {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
  }

  #hero h1 {
    font-size: 1.45rem;
  }

  #about,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  #reviews blockquote {
    padding: 22px 20px;
  }

  #reviews blockquote::before {
    font-size: 3rem;
    left: 14px;
  }

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

  #faq details summary {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

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

  footer {
    padding: 40px 16px 32px;
    margin-top: 60px;
  }
}

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

  header nav ul li a {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  #hero {
    padding: 28px 18px;
    border-radius: var(--radius);
  }

  #hero h1 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  #hero > p {
    font-size: 0.85rem;
  }

  section h2 {
    font-size: 1.2rem;
    padding-left: 16px;
  }

  section h2::before {
    width: 4px;
  }

  #about,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact {
    padding: 22px 16px;
  }

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

  #reviews blockquote {
    padding: 18px 16px;
  }

  #reviews blockquote p {
    font-size: 0.9rem;
  }

  #articles article a {
    font-size: 0.82rem;
    padding: 5px 14px;
  }

  footer section h2 {
    font-size: 0.95rem;
  }

  footer section p,
  footer > p {
    font-size: 0.78rem;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--accent));
}

/* ===== SELECTION ===== */
::selection {
  background: var(--primary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary);
  color: #ffffff;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

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