:root {
  --primary: #E63946;
  --primary-dark: #C1121F;
  --primary-light: #FF6B6B;
  --secondary: #F4A261;
  --accent: #E76F51;
  --gradient-1: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
  --gradient-2: linear-gradient(135deg, #C1121F 0%, #E63946 50%, #F4A261 100%);
  --gradient-3: linear-gradient(135deg, #E63946 0%, #9B2226 100%);
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.35);
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-tertiary: #86868B;
  --text-inverse: #FFFFFF;
  --border-color: #E9ECEF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0D0D1A;
    --bg-secondary: #13132A;
    --bg-tertiary: #1A1A35;
    --bg-card: #1A1A35;
    --bg-glass: rgba(26, 26, 53, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F0F0F5;
    --text-secondary: #B0B0C0;
    --text-tertiary: #6A6A80;
    --border-color: #2A2A45;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.2);
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  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-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

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

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

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

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.3;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

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

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

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

time {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

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

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

blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

blockquote footer {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
  font-style: normal;
}

blockquote footer::before {
  content: "— ";
}

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header[role="banner"] nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header[role="banner"] nav > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

header[role="banner"] nav > div > a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

header[role="banner"] nav > div > a:hover {
  transform: scale(1.03);
  color: var(--primary);
}

header[role="banner"] nav > div > a svg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.35);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

header[role="banner"] nav > div > a:hover svg {
  box-shadow: var(--shadow-glow);
  transform: rotate(-8deg);
}

header[role="banner"] nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  list-style: none;
}

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

header[role="banner"] nav ul li a:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.08);
  transform: translateY(-1px);
}

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

main > section {
  padding: 3rem 0;
  animation: fadeInUp 0.6s ease-out both;
}

main > section:nth-child(1) { animation-delay: 0.05s; }
main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.15s; }
main > section:nth-child(4) { animation-delay: 0.2s; }
main > section:nth-child(5) { animation-delay: 0.25s; }
main > section:nth-child(6) { animation-delay: 0.3s; }
main > section:nth-child(7) { animation-delay: 0.35s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.3); }
  50% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.5); }
}

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

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

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

#home {
  position: relative;
  padding: 4rem 2.5rem;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  overflow: hidden;
  color: var(--text-inverse);
  box-shadow: var(--shadow-xl);
}

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

#home::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

#home h1 {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD4D4 50%, #FFB4A2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#home p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  max-width: 780px;
  margin-bottom: 1rem;
}

#home p strong {
  color: #FFD4D4;
  font-weight: 700;
}

#home nav[aria-label="面包屑导航"] {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

#home nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  list-style: none;
}

#home nav[aria-label="面包屑导航"] ol li {
  color: rgba(255, 255, 255, 0.6);
}

#home nav[aria-label="面包屑导航"] ol li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#home nav[aria-label="面包屑导航"] ol li a:hover {
  color: #FFFFFF;
}

#home nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

#about,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#contact,
#sitemap,
#links {
  animation: fadeInUp 0.6s ease-out both;
}

#about h3,
#products h3,
#solutions h3,
#howto h3 {
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#about h3::before,
#products h3::before,
#solutions h3::before,
#howto h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

#about ul,
#products ul,
#howto ul,
#howto ol {
  padding-left: 0;
  margin: 1rem 0;
}

#about ul li,
#products ul li,
#howto ul li,
#howto ol li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

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

#about ul li::before,
#products ul li::before,
#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--gradient-1);
  border-radius: 50%;
  line-height: 1;
}

#howto ol {
  counter-reset: step-counter;
}

#howto ol li {
  counter-increment: step-counter;
  padding-left: 2.5rem;
}

#howto ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--gradient-2);
  border-radius: 50%;
  line-height: 1;
}

#products ul li strong {
  color: var(--primary);
  font-weight: 600;
}

#solutions h2:not(:first-child) {
  margin-top: 2.5rem;
}

#solutions > p,
#products > p,
#about > p {
  max-width: 820px;
}

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

#cases blockquote:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--secondary);
}

#cases blockquote p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

#cases blockquote footer {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
  font-style: normal;
}

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

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

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

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.2);
}

#news article h3,
#articles article h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

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

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  padding: 0.125rem 0.625rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-weight: 500;
}

#news article p,
#articles article p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: rgba(230, 57, 70, 0.08);
  transition: all var(--transition-fast);
}

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

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

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

#howto {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

#howto h2 {
  margin-top: 0;
}

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

#howto > p {
  max-width: 820px;
}

#faq details {
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: rgba(230, 57, 70, 0.25);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-md);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

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

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

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

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

#faq details p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease-out;
}

#contact dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

#contact dt {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  white-space: nowrap;
}

#contact dd {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

#contact dd a {
  font-weight: 500;
}

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

#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

#sitemap nav ul li {
  padding: 0;
}

#sitemap nav ul li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

#sitemap nav ul li > a:hover {
  background: rgba(230, 57, 70, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}

#sitemap nav ul li ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
  background: transparent;
  border: none;
  display: block;
}

#sitemap nav ul li ul li {
  padding: 0;
}

#sitemap nav ul li ul li a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

#sitemap nav ul li ul li a:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.05);
  transform: translateX(3px);
}

#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
}

#links ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

#links ul li a:hover {
  color: #FFFFFF;
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

footer[role="contentinfo"] {
  margin-top: 2rem;
  padding: 3rem 1.5rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

footer[role="contentinfo"] section {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  animation: fadeInUp 0.5s ease-out both;
}

footer[role="contentinfo"] section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

footer[role="contentinfo"] h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  letter-spacing: 0;
}

footer[role="contentinfo"] h2::after {
  display: none;
}

footer[role="contentinfo"] p {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-tertiary);
  max-width: 900px;
}

footer[role="contentinfo"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
}

footer[role="contentinfo"] ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

footer[role="contentinfo"] ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

footer[role="contentinfo"] dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1rem;
  font-size: 0.8125rem;
}

footer[role="contentinfo"] dt {
  font-weight: 600;
  color: var(--text-secondary);
}

footer[role="contentinfo"] dd {
  color: var(--text-tertiary);
}

footer[role="contentinfo"] > p:last-child {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  :root {
    --max-width: 100%;
  }

  header[role="banner"] nav > div {
    flex-direction: column;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  header[role="banner"] nav ul {
    justify-content: center;
    gap: 0.125rem;
  }

  header[role="banner"] nav ul li a {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  #home {
    padding: 3rem 1.75rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  main {
    padding: 0 1rem;
  }

  main > section {
    padding: 2rem 0;
  }

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

  #home::before {
    width: 300px;
    height: 300px;
  }

  #home::after {
    width: 250px;
    height: 250px;
  }

  h2 {
    font-size: 1.375rem;
  }

  h2::after {
    width: 48px;
    height: 3px;
  }

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

  #howto {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  #contact dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1.25rem;
  }

  #contact dt {
    margin-top: 0.75rem;
    font-size: 0.875rem;
  }

  #contact dt:first-child {
    margin-top: 0;
  }

  #contact dd {
    font-size: 0.875rem;
  }

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

  #faq details summary {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  #faq details p {
    padding: 0 1.25rem 1rem;
  }

  footer[role="contentinfo"] {
    padding: 2rem 1rem 1.5rem;
  }

  footer[role="contentinfo"] ul {
    flex-direction: column;
    gap: 0.375rem;
  }

  footer[role="contentinfo"] dl {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }

  footer[role="contentinfo"] dt {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  header[role="banner"] nav > div > a {
    font-size: 1.125rem;
  }

  header[role="banner"] nav > div > a svg {
    width: 30px;
    height: 30px;
  }

  header[role="banner"] nav ul li a {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  #home {
    padding: 2rem 1.125rem;
  }

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

  #home p {
    font-size: 0.9375rem;
  }

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

  #articles article a {
    font-size: 0.8125rem;
    padding: 0.3125rem 0.75rem;
  }

  blockquote {
    padding: 1.125rem 1.25rem;
  }
}

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

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #home::before,
  #home::after {
    display: none;
  }

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

  main > section {
    animation: none;
    page-break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
</style>