:root {
  --primary: #e94560;
  --primary-dark: #c73650;
  --primary-light: #ff6b85;
  --secondary: #0f3460;
  --accent: #533483;
  --accent-light: #7b5ea7;
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --bg-elevated: #1e2a45;
  --text-primary: #eaeaea;
  --text-secondary: #a8b2c1;
  --text-muted: #6b7a8f;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(22, 33, 62, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%);
  --gradient-accent: linear-gradient(135deg, #e94560, #533483);
  --gradient-card: linear-gradient(145deg, rgba(22, 33, 62, 0.9), rgba(15, 52, 96, 0.5));
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: light) {
  :root {
    --primary: #d6336c;
    --primary-dark: #b02a5b;
    --primary-light: #ff6b9d;
    --secondary: #1a4b8c;
    --accent: #6b3fa0;
    --accent-light: #8b5fc7;
    --bg-dark: #f5f7fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f3fa;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #8896a8;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --gradient-hero: linear-gradient(135deg, #f5f7fb 0%, #e8ecf5 30%, #dce4f5 60%, #e8dff5 100%);
    --gradient-accent: linear-gradient(135deg, #d6336c, #6b3fa0);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 243, 250, 0.8));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(214, 51, 108, 0.15);
  }
}

*,
*::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%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

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

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

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

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

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width var(--transition-slow);
}

section:hover > h2::after {
  width: 100px;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

h4 {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-bottom: 0.65rem;
  color: var(--accent-light);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote p {
  margin-bottom: 0.5rem;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header nav > div:first-child a {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  display: inline-block;
}

header nav > div:first-child a:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header nav ul li a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

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

header nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.08);
}

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

main {
  padding-top: var(--header-height);
  overflow-x: hidden;
}

main > article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  padding: 3.5rem 0;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }
section:nth-child(14) { animation-delay: 0.7s; }
section:nth-child(15) { animation-delay: 0.75s; }
section:nth-child(16) { animation-delay: 0.8s; }
section:nth-child(17) { animation-delay: 0.85s; }
section:nth-child(18) { animation-delay: 0.9s; }
section:nth-child(19) { animation-delay: 0.95s; }
section:nth-child(20) { animation-delay: 1s; }

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

#hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(83, 52, 131, 0.15) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 3%) rotate(3deg); }
}

#hero h1 {
  text-align: center;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
}

#hero > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--text-secondary);
}

#hero figure {
  margin: 2rem auto 0;
  max-width: 800px;
  padding: 0 1.5rem;
  position: relative;
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  border: 1px solid var(--glass-border);
}

#hero figure:hover svg {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(233, 69, 96, 0.4);
}

#hero figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

#brand-intro,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#author-info,
#team,
#disclaimer,
#privacy,
#copyright,
#friendship-links {
  position: relative;
}

#brand-intro > p,
#products > p,
#solutions > p,
#applications > p,
#cases > p,
#news > p,
#articles > p,
#knowledge > p,
#faq > p,
#howto > p,
#contact > p {
  max-width: 900px;
}

#brand-intro ul,
#products ul,
#howto ul {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

#brand-intro ul li,
#products ul li,
#howto ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

#brand-intro ul li::before,
#products ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#brand-intro ul li:hover,
#products ul li:hover,
#howto ul li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

#brand-intro ul li:hover::before,
#products ul li:hover::before,
#howto ul li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.6);
}

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

#products ul li {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem 1rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

#products ul li::before {
  left: 1rem;
  top: 1.35em;
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(233, 69, 96, 0.3);
  background: var(--bg-card-hover);
}

#solutions h3,
#applications h3,
#cases h3,
#knowledge h3,
#howto h3,
#contact h3,
#products h3,
#brand-intro h3 {
  margin-top: 1.75rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--primary);
  transition: border-color var(--transition-fast), padding-left var(--transition-fast);
}

#solutions h3:hover,
#applications h3:hover,
#cases h3:hover,
#knowledge h3:hover,
#howto h3:hover,
#contact h3:hover,
#products h3:hover,
#brand-intro h3:hover {
  border-color: var(--accent-light);
  padding-left: 1.1rem;
}

#news article,
#articles article {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-left: none;
  padding-left: 0;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

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

#news article time,
#articles article time {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.65rem;
  background: rgba(233, 69, 96, 0.12);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--primary-light);
}

#articles article p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 20px;
  transition: all var(--transition-fast);
}

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

#articles article a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}

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

#cases blockquote {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

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

#cases blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-left-color: var(--accent-light);
}

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

#faq details {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

#faq details:hover {
  border-color: rgba(233, 69, 96, 0.2);
  transform: translateY(-2px);
}

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

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

#faq details summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.12);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition-base);
  line-height: 1;
}

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

#faq details summary:hover {
  background: rgba(233, 69, 96, 0.06);
  color: var(--primary-light);
}

#faq details[open] summary {
  border-bottom: 1px solid var(--border-color);
}

#faq details > p {
  padding: 1rem 1.25rem 1.25rem 3.5rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  animation: slideDown 0.3s ease-out;
}

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

#howto h3 {
  margin-top: 2rem;
}

#howto h4 {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(233, 69, 96, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 1rem;
  color: var(--text-primary);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

#howto h4:hover {
  background: rgba(233, 69, 96, 0.14);
  transform: translateX(4px);
}

#howto ol {
  counter-reset: step-counter;
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

#howto ol li {
  counter-increment: step-counter;
  position: relative;
  padding: 0.75rem 1rem 0.75rem 3.25rem;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all var(--transition-base);
}

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

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  color: var(--text-primary);
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

#contact ul li {
  padding: 0.85rem 1.1rem;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

#contact ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(233, 69, 96, 0.25);
  color: var(--text-primary);
}

#contact ul li:hover::before {
  opacity: 1;
}

#contact ul li strong {
  color: var(--primary-light);
  margin-right: 0.35rem;
}

#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

#sitemap ul li a {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.15), transparent);
  transition: left var(--transition-slow);
}

#sitemap ul li a:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
}

#sitemap ul li a:hover::before {
  left: 100%;
}

#author-info,
#team,
#disclaimer,
#privacy,
#copyright,
#friendship-links {
  padding: 2rem 0;
}

#author-info p,
#team p,
#disclaimer p,
#privacy p,
#copyright p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 900px;
}

#author-info p strong {
  display: inline-block;
  min-width: 80px;
  color: var(--primary-light);
}

#friendship-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

#friendship-links ul li a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

#friendship-links ul li a:hover {
  color: #ffffff;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
}

footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition-base);
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

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

footer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

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

  header nav ul li a {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 16px);
  }

  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    align-content: center;
  }

  header nav > div:first-child a {
    font-size: 1.2rem;
  }

  header nav ul {
    gap: 0.1rem;
  }

  header nav ul li a {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  main > article {
    padding: 0 1rem 3rem;
  }

  section {
    padding: 2.5rem 0;
  }

  #hero {
    padding: 2.5rem 0 2rem;
    border-radius: var(--radius-lg);
    margin: 1rem 0 1.5rem;
  }

  #hero h1 {
    padding: 0 1rem;
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }

  #hero > p {
    padding: 0 1rem;
    font-size: 0.88rem;
  }

  #hero figure {
    padding: 0 1rem;
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  h3 {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }

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

  #products ul li {
    padding: 0.85rem 1rem 0.85rem 2.25rem;
  }

  #products ul li::before {
    left: 0.85rem;
    top: 1.15em;
  }

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

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

  #news article,
  #articles article {
    padding: 1.15rem 1.25rem;
  }

  #news article h3,
  #articles article h3 {
    font-size: 1rem;
  }

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

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

  #howto ol li {
    padding: 0.65rem 0.85rem 0.65rem 2.85rem;
    font-size: 0.88rem;
  }

  #howto ol li::before {
    left: 0.7rem;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  #author-info p strong {
    min-width: 70px;
  }

  blockquote {
    padding: 0.85rem 1.15rem;
  }

  #cases blockquote {
    padding: 1rem 1.15rem;
  }

  #cases blockquote::before {
    font-size: 2.5rem;
    right: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  header nav {
    padding: 0 0.75rem;
  }

  header nav > div:first-child a {
    font-size: 1.05rem;
  }

  header nav ul li a {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }

  main > article {
    padding: 0 0.75rem 2.5rem;
  }

  section {
    padding: 2rem 0;
  }

  #hero {
    padding: 2rem 0 1.5rem;
    border-radius: var(--radius-md);
  }

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

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

  #hero figure svg {
    border-radius: var(--radius-md);
  }

  h2 {
    font-size: 1.15rem;
    padding-bottom: 0.6rem;
  }

  h2::after {
    width: 40px;
  }

  h3 {
    font-size: 0.98rem;
  }

  #products ul li {
    font-size: 0.85rem;
  }

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

  #sitemap ul li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  #friendship-links ul {
    gap: 0.5rem;
  }

  #friendship-links ul li a {
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
  }

  footer {
    padding: 1.5rem 0.75rem;
  }

  footer p {
    font-size: 0.78rem;
  }

  #author-info p strong {
    display: block;
    min-width: auto;
    margin-bottom: 0.15rem;
  }
}

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

@media print {
  header,
  footer,
  #sitemap,
  #friendship-links,
  #author-info {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  section {
    page-break-inside: avoid;
    opacity: 1;
    transform: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  #hero {
    background: none;
    border: 1px solid #cccccc;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  header {
    background: rgba(26, 26, 46, 0.95);
  }

  #faq details,
  #news article,
  #articles article,
  #contact ul li,
  #products ul li,
  #sitemap ul li a,
  #friendship-links ul li a,
  blockquote {
    background: var(--bg-card);
  }
}

@media (prefers-color-scheme: light) {
  @supports not (backdrop-filter: blur(10px)) {
    header {
      background: rgba(255, 255, 255, 0.95);
    }
  }
}