:root {
  --brand-1: #4a6cf7;
  --brand-2: #8b5cf6;
  --brand-3: #22d3ee;
  --accent: #ffd76e;
  --bg: #0b1020;
  --bg-soft: #111731;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-solid: #151c38;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #e8ecf8;
  --text-soft: #b8c0d9;
  --text-mute: #8a93b0;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --glass: rgba(20, 27, 54, 0.55);
  --glass-strong: rgba(20, 27, 54, 0.78);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fc;
    --bg-soft: #eef1fa;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --border: rgba(20, 30, 70, 0.1);
    --border-strong: rgba(20, 30, 70, 0.2);
    --text: #141a33;
    --text-soft: #3d4666;
    --text-mute: #6b7492;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 10px rgba(30, 42, 90, 0.08);
    --shadow-md: 0 12px 32px rgba(30, 42, 90, 0.12);
    --shadow-lg: 0 24px 64px rgba(30, 42, 90, 0.16);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 108, 247, 0.22), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

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

h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  background: linear-gradient(120deg, #ffffff 0%, #cdd7ff 40%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 1.1vw, 1.9rem);
  padding-bottom: 0.4em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3));
}

h3 {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text);
}

h4 {
  font-size: 1.02rem;
  color: var(--text-soft);
}

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.35em;
}

::selection {
  background: rgba(74, 108, 247, 0.45);
  color: #fff;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.brand-logo:hover {
  transform: translateY(-2px) scale(1.02);
}

.brand-logo svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(74, 108, 247, 0.45);
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
  background: rgba(74, 108, 247, 0.16);
  transform: translateY(-1px);
}

.nav-list a:hover::after {
  width: 55%;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.site-search input[type="search"] {
  width: 220px;
  max-width: 100%;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

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

.site-search input[type="search"]:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.22);
  width: 260px;
}

.site-search button {
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(74, 108, 247, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.5);
  filter: brightness(1.08);
}

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

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: block;
}

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

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  color: var(--text-mute);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
}

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

.breadcrumb li + li::before {
  content: "›";
  color: var(--text-mute);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--brand-3);
}

.breadcrumb [aria-current="page"] {
  color: var(--brand-3);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(74, 108, 247, 0.28), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(139, 92, 246, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(20, 27, 54, 0.92), rgba(30, 20, 60, 0.9));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%);
  filter: blur(30px);
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 65%);
  filter: blur(34px);
  z-index: -1;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

.hero-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-slider .slide {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.hero-slider .slide:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.hero-slider .slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  transition: transform 0.5s var(--ease);
}

.hero-slider .slide:hover svg {
  transform: scale(1.03);
}

.hero-slider .slide h2 {
  font-size: 1.05rem;
  padding-bottom: 0;
  margin-bottom: 0.45rem;
}

.hero-slider .slide h2::after {
  display: none;
}

.hero-slider .slide p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-soft);
}

.hero-lead {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  color: var(--text-soft);
  max-width: 78ch;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  padding: 0.5rem 0.9rem;
  display: inline-block;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 28px rgba(74, 108, 247, 0.45);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.55);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  color: var(--accent);
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(255, 215, 110, 0.2);
}

/* ============ Anchor nav ============ */
.anchor-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  margin-bottom: 2rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: thin;
}

.anchor-nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.anchor-nav li {
  margin: 0;
}

.anchor-nav a {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.4);
}

/* ============ Sections ============ */
main > section {
  margin-bottom: 2.2rem;
  padding: clamp(1.2rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

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

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

main > section h3 {
  margin-top: 1.4rem;
}

main > section h3:first-of-type {
  margin-top: 0.6rem;
}

main > section h4 {
  margin-top: 1rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--brand-1);
}

/* ============ Articles ============ */
#news article,
#articles article {
  position: relative;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  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::before,
#articles article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2), var(--brand-3));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  transition: all 0.3s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-3));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35);
}

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

/* ============ Blockquote ============ */
blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.2rem 1rem 1.5rem;
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(74, 108, 247, 0.12), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

/* ============ Details / FAQ ============ */
details {
  margin-bottom: 0.7rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

details[open] {
  border-color: rgba(74, 108, 247, 0.5);
  box-shadow: 0 10px 28px rgba(74, 108, 247, 0.18);
}

summary {
  cursor: pointer;
  padding: 0.9rem 2.6rem 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-3);
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
}

summary:hover {
  background: rgba(74, 108, 247, 0.08);
  color: var(--brand-3);
}

details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  animation: fadeIn 0.4s var(--ease);
}

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

/* ============ Contact & lists ============ */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

#contact ul li {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateX(4px);
  border-color: var(--brand-1);
}

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

#sitemap a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
  transition: all 0.3s var(--ease);
}

#sitemap a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(74, 108, 247, 0.4);
}

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

#links a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
  transition: all 0.3s var(--ease);
}

#links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 215, 110, 0.18);
}

/* ============ Footer ============ */
footer {
  margin-top: 2rem;
  padding: 2.5rem 1.25rem 1.5rem;
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(74, 108, 247, 0.18), transparent 60%),
    radial-gradient(800px 300px at 85% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 1.6rem;
}

footer h2 {
  font-size: 1.1rem;
  color: var(--text);
}

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

footer p {
  font-size: 0.88rem;
  color: var(--text-mute);
  max-width: 90ch;
}

footer .copyright {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .brand-bar {
    gap: 0.75rem;
  }

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

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

  .nav-list a {
    padding: 0.38rem 0.6rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 860px) {
  .brand-bar {
    padding: 0.65rem 1rem;
  }

  #site-header nav {
    order: 3;
    flex-basis: 100%;
  }

  .nav-list {
    gap: 0.1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

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

  .anchor-nav {
    top: 108px;
  }

  .hero-slider {
    grid-template-columns: 1fr;
  }
}

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

  main {
    padding: 1rem 0.85rem 2.5rem;
  }

  .brand-bar {
    padding: 0.6rem 0.85rem;
    gap: 0.6rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

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

  .site-search {
    flex: 1 1 100%;
    order: 4;
  }

  .site-search input[type="search"],
  .site-search input[type="search"]:focus {
    width: 100%;
    flex: 1 1 auto;
  }

  .site-search button {
    padding: 0.5rem 0.9rem;
  }

  .anchor-nav {
    top: 128px;
    border-radius: var(--radius-sm);
  }

  .hero {
    padding: 1.1rem;
    border-radius: var(--radius-md);
  }

  .hero-meta {
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  main > section {
    padding: 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.4rem;
  }

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

  #news article,
  #articles article {
    padding: 0.9rem 1rem;
  }

  summary {
    padding: 0.8rem 2.4rem 0.8rem 0.9rem;
    font-size: 0.92rem;
  }

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

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

  footer {
    padding: 1.8rem 0.85rem 1.2rem;
  }
}

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

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

/* ============ Motion & accessibility ============ */
@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::before,
  .hero::after {
    animation: none;
  }
}

@media print {
  #site-header,
  .anchor-nav,
  .site-search,
  .hero-cta {
    display: none !important;
  }

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

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