:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #4a90e2;
  --primary-lighter: #7fb2f0;
  --primary-soft: #eaf2fd;
  --accent: #00c2ff;
  --accent-2: #6a5cff;
  --bg: #f5f8fd;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1c2536;
  --text-secondary: #4a5568;
  --text-muted: #7a869a;
  --border: #e2e9f5;
  --border-strong: #c9dcf7;
  --shadow-sm: 0 2px 8px rgba(26, 115, 232, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 115, 232, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 115, 232, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 18px;
  --gradient-hero: linear-gradient(135deg, #1a73e8 0%, #4a90e2 40%, #00c2ff 100%);
  --gradient-brand: linear-gradient(120deg, #0d47a1 0%, #1a73e8 50%, #6a5cff 100%);
  --gradient-soft: linear-gradient(160deg, #eaf2fd 0%, #f5f8fd 60%, #eef4ff 100%);
  --gradient-accent: linear-gradient(90deg, #1a73e8, #00c2ff);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4a90e2;
    --primary-dark: #1a73e8;
    --primary-light: #7fb2f0;
    --primary-lighter: #a8c8f5;
    --primary-soft: #16233a;
    --accent: #38d6ff;
    --accent-2: #8b7dff;
    --bg: #0b1220;
    --bg-alt: #111a2c;
    --bg-elevated: #16213a;
    --text: #e8eefb;
    --text-secondary: #a9b6cc;
    --text-muted: #7a869a;
    --border: #1e2a44;
    --border-strong: #2a3a5c;
    --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.5);
    --glass-bg: rgba(22, 33, 58, 0.7);
    --glass-border: rgba(74, 144, 226, 0.18);
    --gradient-hero: linear-gradient(135deg, #0d47a1 0%, #1a73e8 45%, #6a5cff 100%);
    --gradient-brand: linear-gradient(120deg, #0a2e6b 0%, #1a73e8 55%, #8b7dff 100%);
    --gradient-soft: linear-gradient(160deg, #0e1729 0%, #0b1220 60%, #101c33 100%);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 8%,
      rgba(26, 115, 232, 0.08),
      transparent 42%
    ),
    radial-gradient(circle at 88% 4%, rgba(0, 194, 255, 0.07), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  position: relative;
  padding-bottom: 0.35em;
}

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

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--primary);
}

h4 {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--primary);
}

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

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

figure {
  margin: 1.6em 0;
  padding: 0;
}

figcaption {
  margin-top: 0.8em;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

blockquote {
  margin: 1.2em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-soft);
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  backdrop-filter: blur(6px);
}

blockquote p {
  margin: 0;
}

time {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

dl {
  margin: 1.2em 0;
  padding: 1.4em 1.6em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr;
  gap: 0.5em 1.2em;
  box-shadow: var(--shadow-sm);
}

dt {
  font-weight: 700;
  color: var(--primary);
}

dd {
  margin: 0;
  color: var(--text-secondary);
}

address {
  font-style: normal;
  padding: 1.4em 1.6em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

address p {
  margin: 0 0 0.5em;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

header > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8em 1.5em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em 1.6em;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  flex-shrink: 0;
}

header > div > a svg {
  transition: transform var(--transition), filter var(--transition);
  filter: drop-shadow(0 4px 10px rgba(26, 115, 232, 0.35));
}

header > div > a:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

header > div > a strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

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

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.3em;
  justify-content: center;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 0.4em 0.7em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition), background var(--transition),
    transform var(--transition);
}

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

header nav a:hover,
header nav a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

header nav a:hover::after {
  width: 60%;
}

header form {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
}

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

header form input[type="search"] {
  width: 200px;
  padding: 0.55em 1em;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--transition), box-shadow var(--transition),
    width var(--transition), background var(--transition);
}

header form input[type="search"]::placeholder {
  color: var(--text-muted);
}

header form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
  width: 240px;
}

header form button {
  padding: 0.55em 1.2em;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
  transition: transform var(--transition), box-shadow var(--transition),
    filter var(--transition);
}

header form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 115, 232, 0.4);
  filter: brightness(1.06);
}

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

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

main > nav[aria-label="面包屑导航"] {
  padding: 1.2em 0 0.4em;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  font-size: 0.86rem;
  color: var(--text-muted);
}

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

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 0.4em;
  color: var(--text-muted);
  opacity: 0.7;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

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

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

section {
  margin: 2.4em 0;
  padding: 2.2em clamp(1.2em, 3vw, 2.4em);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition), background var(--transition);
}

section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

section:hover::before {
  opacity: 1;
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(26, 115, 232, 0);
  }
}

@supports (animation-timeline: view()) {
  section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

#hero {
  margin-top: 1em;
  padding: clamp(2em, 5vw, 3.6em) clamp(1.4em, 4vw, 3em);
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: floatIn 0.8s var(--transition) both;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.25),
      transparent 45%
    ),
    radial-gradient(circle at 10% 90%, rgba(0, 194, 255, 0.3), transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}

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

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5em;
}

#hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  max-width: 68ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

#hero figure {
  margin: 1.8em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6em;
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
}

#hero figure svg {
  border-radius: var(--radius-sm);
  width: 100%;
}

#hero figcaption {
  color: rgba(255, 255, 255, 0.85);
}

#hero > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.2em;
  align-items: center;
  margin-top: 1.6em;
  font-size: 0.95rem;
}

#hero > p:last-child a {
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1.4em;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

#hero > p:last-child a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #fff;
}

#hero > p:last-child a:first-child {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  animation: pulseGlow 3s ease-in-out infinite;
}

#hero > p:last-child a:first-child:hover {
  background: #f0f6ff;
  color: var(--primary-dark);
}

#brand {
  background: var(--gradient-soft);
}

#brand h4 {
  margin-top: 1.4em;
}

#brand ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8em 1.4em;
  list-style: none;
  padding: 0;
}

#brand ul li {
  padding: 0.9em 1.1em;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  margin: 0;
}

#brand ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

#about dl {
  border-left: 4px solid var(--primary);
}

#history h3 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-left: 0.2em;
}

#history h3::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

#culture {
  background: var(--gradient-soft);
}

#culture ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8em;
}

#culture ul li {
  padding: 1em 1.3em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  margin: 0;
}

#culture ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#products h4 {
  margin-top: 1.6em;
}

#products ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8em 1.2em;
  list-style: none;
  padding: 0;
}

#products ul li {
  position: relative;
  padding: 1em 1.2em 1em 2.8em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  margin: 0;
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 1em;
  top: 1em;
  width: 1.4em;
  height: 1.4em;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
}

#products ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

#solutions ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8em 1.2em;
  list-style: none;
  padding: 0;
}

#solutions ul li {
  padding: 1.1em 1.3em;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
  margin: 0;
}

#solutions ul li:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

#cases {
  background: var(--gradient-soft);
}

#cases blockquote {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

#news article,
#articles article {
  padding: 1.4em 1.6em;
  margin: 1em 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4em;
  bottom: 1.4em;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

#news article h3,
#articles article h3 {
  margin-bottom: 0.4em;
  font-size: 1.15rem;
  transition: color var(--transition);
}

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

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

#articles article p:nth-of-type(1) {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

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

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

#articles article a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}

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

#faq details {
  margin: 0.8em 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition),
    transform var(--transition);
}

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

#faq details:hover {
  border-color: var(--border-strong);
}

#faq summary {
  padding: 1.1em 1.4em 1.1em 3em;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

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

#faq summary::before {
  content: "+";
  position: absolute;
  left: 1.1em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5em;
  height: 1.5em;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition),
    color var(--transition);
}

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

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

#faq details p {
  padding: 0 1.4em 1.3em 3em;
  margin: 0;
  animation: fadeUp 0.35s ease both;
  font-size: 0.95rem;
}

#howto {
  background: var(--gradient-soft);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.9em;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 1em 1.2em 1em 3.4em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  margin: 0;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7em;
  height: 1.7em;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

#howto ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5em;
}

#howto ul li {
  position: relative;
  padding-left: 1.6em;
  margin: 0;
}

#howto ul li::before {
  content: "•";
  position: absolute;
  left: 0.3em;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1.4;
}

#contact {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
}

#contact h2,
#contact h3 {
  color: #fff;
}

#contact h2::after {
  background: rgba(255, 255, 255, 0.85);
}

#contact p {
  color: rgba(255, 255, 255, 0.9);
}

#contact address {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

#contact address p {
  color: var(--text);
}

#contact address a {
  color: var(--primary);
  font-weight: 600;
}

#contact address a:hover {
  color: var(--accent);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

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

#sitemap ul a,
#links ul a {
  display: inline-block;
  padding: 0.45em 1em;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

#sitemap ul a:hover,
#links ul a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

footer {
  margin-top: 3em;
  padding: 3em 1.5em 2em;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-accent);
}

footer > section {
  max-width: var(--max-width);
  margin: 0 auto 2em;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

footer > section::before {
  display: none;
}

footer > section:hover {
  box-shadow: none;
  border-color: transparent;
}

footer h2 {
  font-size: 1.15rem;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
}

footer h2::after {
  width: 36px;
  height: 3px;
}

footer h3 {
  font-size: 1rem;
  color: var(--text);
  margin-top: 1.4em;
}

footer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 72ch;
}

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

footer > p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.6em;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer small {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 2em;
    max-width: none;
  }

  footer > section {
    margin: 0;
    padding: 0 1em;
  }

  footer > p {
    grid-column: 1 / -1;
    width: 100%;
    max-width: var(--max-width);
  }
}

@media (max-width: 1024px) {
  header > div {
    gap: 0.8em 1em;
  }

  header nav ul {
    justify-content: flex-start;
  }

  header form input[type="search"] {
    width: 160px;
  }

  header form input[type="search"]:focus {
    width: 190px;
  }
}

@media (max-width: 860px) {
  header > div {
    flex-direction: column;
    align-items: stretch;
    padding: 0.8em 1.2em;
  }

  header > div > a {
    justify-content: center;
  }

  header nav ul {
    justify-content: center;
    gap: 0.15em;
  }

  header nav a {
    font-size: 0.84rem;
    padding: 0.35em 0.6em;
  }

  header form {
    justify-content: center;
  }

  header form input[type="search"] {
    flex: 1 1 auto;
    max-width: 320px;
    width: auto;
  }

  header form input[type="search"]:focus {
    width: auto;
  }

  main {
    padding: 0 1.1em 2.4em;
  }

  section {
    margin: 1.8em 0;
    padding: 1.6em 1.2em;
    border-radius: var(--radius-md);
  }

  #hero {
    border-radius: var(--radius-lg);
  }

  dl {
    grid-template-columns: 1fr;
    gap: 0.2em;
  }

  dt {
    margin-top: 0.6em;
  }

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

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

  header nav ul {
    max-height: 4.6em;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  header nav a {
    font-size: 0.8rem;
    padding: 0.3em 0.55em;
  }

  #hero {
    padding: 1.8em 1.2em;
  }

  #hero > p:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  #hero > p:last-child a {
    justify-content: center;
  }

  section {
    padding: 1.4em 1em;
  }

  blockquote {
    padding: 0.9em 1.1em;
  }

  #faq summary {
    padding: 1em 1em 1em 2.8em;
    font-size: 0.95rem;
  }

  #faq summary::before {
    left: 0.8em;
  }

  #faq details p {
    padding: 0 1em 1.1em 2.8em;
  }

  #howto ol li {
    padding: 0.9em 1em 0.9em 3em;
  }

  #news article,
  #articles article {
    padding: 1.1em 1.1em;
  }

  #news article::before,
  #articles article::before {
    display: none;
  }

  #sitemap ul a,
  #links ul a {
    font-size: 0.84rem;
    padding: 0.4em 0.85em;
  }

  footer {
    padding: 2.4em 1.1em 1.6em;
  }
}

::selection {
  background: rgba(26, 115, 232, 0.25);
  color: var(--text);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}
</style>