:root {
  --primary: #e85d75;
  --primary-dark: #d14560;
  --primary-light: #f38ba0;
  --secondary: #6c5ce7;
  --accent: #00b894;
  --accent-warm: #fdcb6e;
  --bg: #fdf8f6;
  --bg-alt: #fff5f2;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.6);
  --text: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --header-bg: rgba(253, 248, 246, 0.82);
  --shadow: 0 8px 32px rgba(232, 93, 117, 0.1);
  --shadow-hover: 0 16px 48px rgba(232, 93, 117, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-banner: linear-gradient(135deg, #e85d75 0%, #6c5ce7 50%, #00b894 100%);
  --gradient-card: linear-gradient(135deg, rgba(232, 93, 117, 0.08), rgba(108, 92, 231, 0.08));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --primary: #f38ba0;
  --primary-dark: #e85d75;
  --primary-light: #f8b4c4;
  --secondary: #a29bfe;
  --accent: #55efc4;
  --accent-warm: #ffeaa7;
  --bg: #1a1a2e;
  --bg-alt: #16213e;
  --card-bg: rgba(30, 30, 50, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-secondary: #b2bec3;
  --text-light: #636e72;
  --header-bg: rgba(26, 26, 46, 0.85);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
  --gradient-banner: linear-gradient(135deg, #f38ba0 0%, #a29bfe 50%, #55efc4 100%);
  --gradient-card: linear-gradient(135deg, rgba(243, 139, 160, 0.1), rgba(162, 155, 254, 0.1));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #f38ba0;
    --primary-dark: #e85d75;
    --primary-light: #f8b4c4;
    --secondary: #a29bfe;
    --accent: #55efc4;
    --accent-warm: #ffeaa7;
    --bg: #1a1a2e;
    --bg-alt: #16213e;
    --card-bg: rgba(30, 30, 50, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f0f0f5;
    --text-secondary: #b2bec3;
    --text-light: #636e72;
    --header-bg: rgba(26, 26, 46, 0.85);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
    --gradient-banner: linear-gradient(135deg, #f38ba0 0%, #a29bfe 50%, #55efc4 100%);
    --gradient-card: linear-gradient(135deg, rgba(243, 139, 160, 0.1), rgba(162, 155, 254, 0.1));
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(232, 93, 117, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(108, 92, 231, 0.07), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0, 184, 148, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  font-size: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
}

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

#site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  white-space: nowrap;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

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

#site-header nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

#site-header nav ul li a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
}

#site-header nav ul li a:hover {
  color: var(--primary);
  background: var(--gradient-card);
}

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

#site-header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#site-header form[role="search"] input {
  width: 180px;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
  font-size: 0.85rem;
}

#site-header form[role="search"] input:focus {
  width: 220px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.15);
}

#site-header form[role="search"] input::placeholder {
  color: var(--text-light);
}

#site-header form[role="search"] button {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  background: var(--gradient-banner);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
  white-space: nowrap;
}

#site-header form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 93, 117, 0.35);
}

#theme-toggle {
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

#theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}

/* ========== MAIN ========== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ========== BREADCRUMB ========== */
main > nav[aria-label="面包屑导航"] {
  padding: 1rem 0;
  font-size: 0.85rem;
}

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

main > nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--text-light);
  opacity: 0.5;
}

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(--primary);
  font-weight: 600;
}

/* ========== SECTIONS ========== */
section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 80px;
}

section > h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1rem;
  letter-spacing: -0.3px;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-banner);
}

section > h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}

section > p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  max-width: 72ch;
}

/* ========== HERO ========== */
#hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  background: var(--gradient-banner);
  color: #fff;
  box-shadow: var(--shadow);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 50%);
  pointer-events: none;
}

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

#hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

#hero > p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 72ch;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

/* Banner Carousel */
#banner-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

#banner-carousel .slide {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition);
  cursor: default;
}

#banner-carousel .slide:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

#banner-carousel .slide h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding: 0;
  color: #fff;
}

#banner-carousel .slide h2::before {
  display: none;
}

#banner-carousel .slide p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Hero Stats */
#hero > ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

#hero > ul li {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

#hero > ul li:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

#hero > ul li strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

#hero > ul li span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

/* ========== ABOUT ========== */
#about {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

#about:hover {
  box-shadow: var(--shadow-hover);
}

#about h3 {
  color: var(--primary);
}

#about h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gradient-banner);
  border-radius: 2px;
  margin-top: 0.3rem;
}

/* ========== PRODUCTS ========== */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

#products > h2 {
  grid-column: 1 / -1;
}

#products > h3 {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

#products > p {
  grid-column: 1 / -1;
}

#products > ul {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

#products > ul li {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#products > ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-banner);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#products > ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

#products > ul li:hover::before {
  transform: scaleX(1);
}

/* ========== SOLUTIONS ========== */
#solutions {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

#solutions h3 {
  color: var(--secondary);
}

#solutions > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#solutions > ul li {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#solutions > ul li:hover {
  transform: translateX(4px);
  color: var(--text);
  border-color: var(--secondary);
}

/* ========== CASES ========== */
#cases {
  display: grid;
  gap: 1.5rem;
}

#cases > h2 {
  grid-column: 1 / -1;
}

#cases > h3 {
  margin-top: 0.5rem;
}

#cases > p {
  color: var(--text-secondary);
}

#cases blockquote {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

#cases blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

/* ========== ARTICLES ========== */
#articles {
  display: grid;
  gap: 1.25rem;
}

#articles > h2,
#articles > p {
  grid-column: 1 / -1;
}

#articles article {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-banner);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#articles article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

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

#articles article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}

#articles article p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

#articles article p:nth-of-type(2) {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--primary);
  transition: all var(--transition);
}

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

#articles article a:hover {
  gap: 0.5rem;
}

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

/* ========== FAQ ========== */
#faq {
  display: grid;
  gap: 0.75rem;
}

#faq > h2 {
  margin-bottom: 0.75rem;
}

#faq details {
  border-radius: var(--radius);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

#faq details:hover {
  box-shadow: var(--shadow-hover);
}

#faq details[open] {
  border-color: var(--primary);
}

#faq details summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

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

#faq details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-card);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

#faq details[open] summary::before {
  content: "−";
  background: var(--gradient-banner);
  color: #fff;
  transform: rotate(180deg);
}

#faq details summary:hover {
  color: var(--primary);
}

#faq details p {
  padding: 0 1.5rem 1.25rem 3.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  animation: fadeSlideIn 0.3s ease;
}

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

/* ========== HOWTO ========== */
#howto {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

#howto h3 {
  color: var(--accent);
}

#howto ul,
#howto ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

#howto ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#howto ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

#howto ol li {
  counter-increment: howto;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== CONTACT ========== */
#contact {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

#contact address p {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#contact address p:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

#contact h3 {
  color: var(--primary);
  margin-top: 1.5rem;
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--gradient-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========== LEGAL ========== */
#legal {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

#legal h3 {
  color: var(--text-light);
  font-size: 1rem;
}

#legal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-light);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0.4rem;
}

footer a {
  color: var(--primary);
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 93, 117, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 999;
  line-height: 1.2;
  text-align: center;
  padding: 0.3rem;
}

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

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(232, 93, 117, 0.5);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ========== SELECTION ========== */
::selection {
  background: rgba(232, 93, 117, 0.25);
  color: var(--text);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  #banner-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero > ul {
    grid-template-columns: repeat(4, 1fr);
  }

  #site-header form[role="search"] input {
    width: 140px;
  }

  #site-header form[role="search"] input:focus {
    width: 170px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  #site-header nav {
    order: 10;
    width: 100%;
    display: none;
  }

  #site-header nav.open {
    display: block;
    animation: fadeSlideIn 0.3s ease;
  }

  #site-header nav ul {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
  }

  #site-header nav ul li a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  #menu-toggle {
    display: block;
  }

  #site-header form[role="search"] input {
    width: 120px;
  }

  #site-header form[role="search"] input:focus {
    width: 150px;
  }

  #hero {
    padding: 2rem 1.5rem;
  }

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

  #banner-carousel {
    grid-template-columns: 1fr;
  }

  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero > ul li span {
    font-size: 1.25rem;
  }

  section > h2 {
    font-size: 1.4rem;
  }

  #about,
  #solutions,
  #howto,
  #contact,
  #legal {
    padding: 1.75rem;
  }

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

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

  main {
    padding: 0 1rem 3rem;
  }

  .header-inner {
    padding: 0.5rem 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  #site-header form[role="search"] {
    order: 5;
    width: 100%;
  }

  #site-header form[role="search"] input {
    flex: 1;
    width: auto;
  }

  #site-header form[role="search"] input:focus {
    width: auto;
  }

  #theme-toggle,
  #menu-toggle {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }

  #hero {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
  }

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

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

  #hero > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  #hero > ul li {
    padding: 0.75rem 0.4rem;
  }

  #hero > ul li span {
    font-size: 1.1rem;
  }

  section {
    margin-bottom: 2.5rem;
  }

  section > h2 {
    font-size: 1.25rem;
    padding-left: 0.75rem;
  }

  section > h3 {
    font-size: 1.05rem;
  }

  #about,
  #solutions,
  #howto,
  #contact,
  #legal {
    padding: 1.25rem;
    border-radius: var(--radius);
  }

  #articles article {
    padding: 1.25rem;
  }

  #faq details summary {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  #faq details p {
    padding: 0 1rem 1rem 3rem;
    font-size: 0.85rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 0.65rem;
  }

  #products {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 380px) {
  #hero > ul {
    grid-template-columns: 1fr;
  }

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

/* ========== PRINT ========== */
@media print {
  #site-header,
  #back-to-top,
  #theme-toggle,
  #menu-toggle,
  #banner-carousel {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    break-inside: avoid;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}