:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --text: #1a1a2e;
  --text-soft: #4a4a5a;
  --text-muted: #7a7a8c;
  --primary: #e94560;
  --primary-dark: #c9304a;
  --secondary: #0f3460;
  --accent: #16213e;
  --dark-bg: #1a1a2e;
  --border: rgba(26, 26, 46, 0.08);
  --card-bg: rgba(255, 255, 255, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 140%);
  --gradient-accent: linear-gradient(135deg, #e94560 0%, #c9304a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(15, 52, 96, 0.12));
  --transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e1a;
    --bg-alt: #16162a;
    --text: #eceef5;
    --text-soft: #c2c4d4;
    --text-muted: #8a8ca0;
    --primary: #ff5c78;
    --primary-dark: #e94560;
    --secondary: #1f3b6e;
    --accent: #0a0a18;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 52, 0.7);
    --glass-bg: rgba(22, 22, 42, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --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.55);
    --gradient-hero: linear-gradient(135deg, #0a0a18 0%, #16213e 45%, #0f3460 75%, #e94560 150%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 92, 120, 0.1), rgba(31, 59, 110, 0.16));
  }
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(233, 69, 96, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 12%, rgba(15, 52, 96, 0.1), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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);
}

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  background: linear-gradient(120deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: var(--gradient-accent);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 1.4rem 0 0.6rem;
}

p {
  margin-bottom: 0.9rem;
  color: var(--text-soft);
}

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

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  max-width: 100%;
  padding: 12px clamp(16px, 4vw, 48px);
  min-height: var(--header-h);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

header > div {
  flex-shrink: 0;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

header > div > a svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

header > div > a:hover svg {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

header > div > a span {
  background: linear-gradient(120deg, var(--text) 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

header nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

header form {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

header form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
}

header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form input {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text);
  width: 190px;
  font-family: inherit;
  border-radius: 999px;
}

header form input::placeholder {
  color: var(--text-muted);
}

header form input:focus {
  outline: none;
}

header form button {
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

header form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.4);
  filter: brightness(1.05);
}

header form button:active {
  transform: translateY(0) scale(0.97);
}

/* ============ Main layout ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 60px;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 20px;
}

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

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

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

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
  padding: 2px 4px;
  border-radius: 4px;
}

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

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

/* ============ Sections ============ */
section {
  margin-bottom: clamp(32px, 5vw, 56px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============ Hero ============ */
#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(233, 69, 96, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(15, 52, 96, 0.6), transparent 50%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: floatY 8s ease-in-out infinite;
  z-index: -1;
}

#hero h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

#hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  max-width: 780px;
  margin-bottom: 1.6rem;
}

#hero figure {
  margin: 0 0 1.8rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

#hero figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#hero ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

#hero ul li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

#hero ul li:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(233, 69, 96, 0.5);
  transform: translateY(-3px);
}

#hero ul li strong {
  color: #fff;
}

/* ============ Generic content cards ============ */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.2);
}

#about ul,
#products ul,
#solutions ul,
#news ul,
#howto ul,
#howto ol,
#sitemap ul,
#links ul {
  display: grid;
  gap: 10px;
  margin: 0.8rem 0 1.2rem;
}

#about ul li,
#products ul li,
#solutions ul li,
#howto ul li,
#howto ol li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

#about ul li::before,
#products ul li::before,
#solutions ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
}

#howto ol {
  counter-reset: step;
}

#howto ol li {
  counter-increment: step;
  padding-left: 52px;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

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

/* ============ News list ============ */
#news ul {
  list-style: none;
}

#news ul li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border-left: 3px solid var(--primary);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news ul li::before {
  content: "📰";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.85;
}

#news ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-dark);
}

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

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

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

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

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

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

#articles article h3 + p {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gradient-soft);
  margin-bottom: 10px;
}

#articles article p {
  font-size: 0.94rem;
  line-height: 1.8;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

#articles article a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateY(-1px);
}

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

/* ============ Cases blockquote ============ */
#cases blockquote {
  position: relative;
  margin: 14px 0;
  padding: 18px 22px 18px 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-style: normal;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

#cases blockquote p {
  margin: 0;
  font-size: 0.94rem;
}

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

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md);
}

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

#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.2rem;
  font-weight: 400;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

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

#faq summary:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  animation: fadeUp 0.4s ease both;
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 8px;
  margin-bottom: 1.2rem;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
}

#contact address p {
  margin: 0;
  font-size: 0.94rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#contact address a {
  font-weight: 600;
  word-break: break-all;
}

#contact address a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

#sitemap ul li,
#links ul li {
  padding: 0;
}

#sitemap a,
#links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.3);
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 40px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px) 28px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--dark-bg) 100%);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

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

footer h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  padding-left: 14px;
}

footer h2::before {
  width: 3px;
  background: var(--gradient-accent);
}

footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

footer > p:last-child {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

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

footer a:hover {
  color: #fff;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header {
    gap: 12px 20px;
  }

  header form input {
    width: 150px;
  }

  header nav a {
    padding: 5px 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: auto;
  }

  header {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  header nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav ul {
    flex-wrap: nowrap;
    width: max-content;
  }

  header form {
    margin-left: auto;
  }

  header form input {
    width: 130px;
  }
}

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

  header > div > a {
    font-size: 1.1rem;
  }

  header > div > a svg {
    width: 34px;
    height: 34px;
  }

  header form {
    width: 100%;
    order: 4;
  }

  header form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  header form button {
    padding: 8px 14px;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

  #hero ul li {
    padding: 12px 14px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

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

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

  #articles article a {
    font-size: 0.84rem;
  }

  #cases blockquote {
    padding: 16px 16px 16px 44px;
  }

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

  #faq details p {
    padding: 0 16px 16px;
  }

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

  footer {
    padding: 28px 16px 20px;
  }
}

@media (max-width: 380px) {
  header nav a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* ============ Motion & accessibility ============ */
@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;
  }
}

::selection {
  background: rgba(233, 69, 96, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

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

@supports (scrollbar-color: red blue) {
  * {
    scrollbar-color: var(--primary) transparent;
    scrollbar-width: thin;
  }
}

/* ============ Print ============ */
@media print {
  header,
  footer,
  #sitemap,
  #links,
  form {
    display: none;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    animation: none;
    break-inside: avoid;
  }
}