:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --accent: #fbbf24;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --bg: #f5f3ff;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --text: #1e1b2e;
  --text-muted: #5b5570;
  --text-light: #8b85a0;
  --border: rgba(124, 58, 237, 0.14);
  --border-strong: rgba(124, 58, 237, 0.28);
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 28px rgba(76, 29, 149, 0.1);
  --shadow-lg: 0 20px 56px rgba(76, 29, 149, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --grad-hero: linear-gradient(135deg, #7c3aed 0%, #a855f7 35%, #ec4899 70%, #fbbf24 100%);
  --grad-btn: linear-gradient(135deg, #7c3aed, #a855f7);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.08));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0a18;
    --bg-alt: #151022;
    --bg-card: rgba(28, 22, 46, 0.72);
    --bg-glass: rgba(28, 22, 46, 0.55);
    --text: #ede9f7;
    --text-muted: #b3abc9;
    --text-light: #8b82a3;
    --border: rgba(167, 139, 250, 0.16);
    --border-strong: rgba(167, 139, 250, 0.34);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.55);
    --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(236, 72, 153, 0.14));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -8%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 96% 4%, rgba(236, 72, 153, 0.12), transparent 62%),
    radial-gradient(900px 500px at 50% 100%, rgba(6, 182, 212, 0.08), transparent 65%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent-pink);
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--primary-light);
  }
}

ul,
ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.4em;
}

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

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

h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-btn);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  margin-top: 1.6em;
  color: var(--text);
}

p {
  margin: 0 0 1.05em;
  color: var(--text-muted);
}

strong {
  color: var(--text);
}

blockquote {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

blockquote p {
  margin: 0.4em 0;
  color: var(--text);
  font-style: italic;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: rgba(124, 58, 237, 0.28);
  color: var(--text);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header:hover {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  flex-shrink: 0;
  padding: 6px 0;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.brand-logo {
  display: inline-flex;
  border-radius: 50%;
  transition: transform 0.5s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.55);
}

.brand-text {
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-btn);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 60%;
}

@media (prefers-color-scheme: dark) {
  .main-nav a:hover {
    color: var(--primary-light);
    background: rgba(167, 139, 250, 0.12);
  }
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.site-search input[type="search"] {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  width: 180px;
  border-radius: 999px;
  outline: none;
}

.site-search input[type="search"]::placeholder {
  color: var(--text-light);
}

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-btn);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
  filter: brightness(1.08);
}

.site-search button:active {
  transform: translateY(0);
}

/* ============ Main layout ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

main > section {
  margin: 48px 0;
  padding: 36px clamp(18px, 3.4vw, 48px);
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-hero);
  opacity: 0.85;
}

main > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* ============ Hero ============ */
.hero {
  margin-top: 32px !important;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px) !important;
  background: var(--grad-hero) !important;
  background-size: 200% 200% !important;
  border: 0 !important;
  color: #fff;
  isolation: isolate;
  animation: gradientShift 14s ease infinite, fadeUp 0.8s var(--ease) both;
}

.hero::before {
  background: rgba(255, 255, 255, 0.35) !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(251, 191, 36, 0.25), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(30, 15, 60, 0.35);
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  max-width: 900px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  max-width: 920px;
  text-shadow: 0 1px 10px rgba(30, 15, 60, 0.22);
}

.hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-anchors a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.hero-anchors a:hover {
  color: var(--primary-dark);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(30, 15, 60, 0.3);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 22px 0 -18px;
  padding: 0 4px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-light);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--primary-light);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ============ Articles / News cards ============ */
#news article,
#articles article {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#news article::after,
#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-btn);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  transition: color 0.25s var(--ease);
}

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

@media (prefers-color-scheme: dark) {
  #news article:hover h3,
  #articles article:hover h3 {
    color: var(--primary-light);
  }
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

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

#articles article a:hover {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

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

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  padding: 14px 18px 14px 46px;
  margin: 0 0 10px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
}

#faq h3:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
}

#faq h3 + p {
  margin: 0 0 18px;
  padding: 0 18px 0 46px;
  font-size: 0.95rem;
}

/* ============ HowTo ============ */
#howto {
  counter-reset: howto;
}

#howto h3 {
  counter-increment: howto;
  position: relative;
  padding-left: 44px;
}

#howto h3::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: transform 0.3s var(--ease);
}

#howto h3:hover::before {
  transform: translateY(-50%) rotate(-8deg) scale(1.08);
}

/* ============ Contact ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

#contact ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

/* ============ Meta info ============ */
#meta-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

#meta-info li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.08), rgba(6, 182, 212, 0.06));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 44px 24px 34px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner p:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-inner a {
  font-weight: 500;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-inner a:hover {
  border-bottom-color: currentColor;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
  text-align: center;
  line-height: 1.15;
  padding: 0 6px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.6);
  filter: brightness(1.1);
}

/* ============ Animations ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* stagger reveal for cards */
#news article,
#articles article {
  animation: fadeUp 0.6s var(--ease) both;
}

#news article:nth-child(2),
#articles article:nth-child(3n + 2) {
  animation-delay: 0.08s;
}

#news article:nth-child(3),
#articles article:nth-child(3n + 3) {
  animation-delay: 0.16s;
}

#news article:nth-child(4),
#articles article:nth-child(3n + 4) {
  animation-delay: 0.24s;
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }

  .site-search input[type="search"] {
    width: 140px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 10px 18px;
    gap: 10px;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
  }

  .main-nav ul {
    gap: 2px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  .site-search {
    margin-left: auto;
  }

  main {
    padding: 0 16px 48px;
  }

  main > section {
    margin: 32px 0;
    padding: 26px 20px;
    border-radius: var(--radius);
  }

  .hero {
    margin-top: 20px !important;
    padding: 32px 20px !important;
  }

  .hero-anchors a {
    padding: 9px 16px;
    font-size: 0.86rem;
  }
}

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

  .header-inner {
    padding: 8px 14px;
  }

  .brand {
    font-size: 1.04rem;
  }

  .brand-logo svg {
    width: 34px;
    height: 34px;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav ul::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 6px 11px;
  }

  .site-search {
    flex-basis: 100%;
    order: 4;
    margin-left: 0;
  }

  .site-search input[type="search"] {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  main {
    padding: 0 12px 40px;
  }

  main > section {
    margin: 24px 0;
    padding: 22px 16px;
    border-radius: var(--radius);
  }

  h2 {
    padding-left: 13px;
  }

  h2::before {
    width: 4px;
  }

  .hero {
    margin-top: 16px !important;
    padding: 26px 16px !important;
    border-radius: var(--radius) !important;
  }

  .hero-anchors {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-anchors a {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .breadcrumb {
    margin: 16px 0 -12px;
    font-size: 0.8rem;
  }

  #news article,
  #articles article {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  #faq h3 {
    padding: 12px 14px 12px 42px;
    font-size: 0.94rem;
  }

  #faq h3 + p {
    padding: 0 12px 0 42px;
    font-size: 0.9rem;
  }

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

  #contact ul li {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    font-size: 0.66rem;
  }

  .site-footer {
    padding: 32px 16px 26px;
  }

  .footer-inner p {
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .brand-text {
    display: none;
  }
}

/* ============ Accessibility / motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Print ============ */
@media print {
  .site-header,
  .back-to-top,
  .site-search,
  .hero-anchors {
    display: none !important;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}