:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(30, 30, 50, 0.55);
  --bg-card-hover: rgba(40, 40, 68, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c8;
  --text-muted: #7a7a96;
  --accent-1: #6c5ce7;
  --accent-2: #a29bfe;
  --accent-3: #fd79a8;
  --accent-4: #00cec9;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%);
  --gradient-card: linear-gradient(145deg, rgba(108, 92, 231, 0.12), rgba(253, 121, 168, 0.06));
  --gradient-btn: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --gradient-line: linear-gradient(90deg, #6c5ce7, #fd79a8, #00cec9);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f4f5fb;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(108, 92, 231, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8888a0;
    --gradient-hero: linear-gradient(135deg, #e8e6ff 0%, #f0e6ff 30%, #ffe6f3 60%, #e6f7ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(108, 92, 231, 0.06), rgba(253, 121, 168, 0.04));
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
    --shadow-md: 0 8px 32px rgba(108, 92, 231, 0.1);
    --shadow-lg: 0 16px 48px rgba(108, 92, 231, 0.14);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.12);
  }
}

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

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

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

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(108, 92, 231, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(253, 121, 168, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-slow);
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* ========== HEADER / NAV ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.72);
  }
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

header nav > a:first-child {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  position: relative;
  transition: opacity var(--transition-fast);
}

header nav > a:first-child::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-line);
  border-radius: 2px;
  transition: width var(--transition-base);
}

header nav > a:first-child:hover::after {
  width: 100%;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header nav ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

header nav ul li a:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

header nav ul li a:hover::before {
  opacity: 1;
}

/* ========== MAIN LAYOUT ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ========== BREADCRUMB ========== */
main > nav[aria-label="面包屑导航"] {
  padding: 20px 0 8px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 6px;
}

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.75rem;
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

main > nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--accent-2);
}

main > nav[aria-label="面包屑导航"] ol li:last-child {
  color: var(--accent-2);
  font-weight: 500;
}

/* ========== SECTION BASE ========== */
main > section {
  margin-top: 56px;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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; }
main > section:nth-child(8) { animation-delay: 0.4s; }
main > section:nth-child(9) { animation-delay: 0.45s; }
main > section:nth-child(10) { animation-delay: 0.5s; }
main > section:nth-child(11) { animation-delay: 0.55s; }
main > section:nth-child(12) { animation-delay: 0.6s; }
main > section:nth-child(13) { animation-delay: 0.65s; }
main > section:nth-child(14) { animation-delay: 0.7s; }
main > section:nth-child(15) { animation-delay: 0.75s; }
main > section:nth-child(16) { animation-delay: 0.8s; }
main > section:nth-child(17) { animation-delay: 0.85s; }

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

/* ========== HERO ========== */
#hero {
  position: relative;
  margin-top: 32px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.2), transparent 70%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.15), transparent 70%);
  animation: heroGlow 15s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(30px, -30px) scale(1.15); opacity: 1; }
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
}

#hero p:last-child {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#hero p:last-child a {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

#hero p:last-child a:nth-child(2) {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#hero p:last-child a:nth-child(3) {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#hero p:last-child a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.4);
  filter: brightness(1.1);
}

#hero p:last-child a:nth-child(2):hover,
#hero p:last-child a:nth-child(3):hover {
  background: var(--gradient-card);
  box-shadow: var(--shadow-md);
}

/* ========== HEADINGS ========== */
main > section > h2 {
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  color: var(--text-primary);
}

main > section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-line);
  transition: width var(--transition-slow);
}

main > section:hover > h2::after {
  width: 120px;
}

main > section h3 {
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--text-primary);
  margin: 28px 0 12px;
  line-height: 1.4;
  position: relative;
  padding-left: 16px;
}

main > section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: var(--gradient-btn);
}

main > section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.9688rem;
}

/* ========== LISTS ========== */
main > section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
  padding-left: 0;
}

main > section ul li {
  position: relative;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-btn);
  box-shadow: 0 0 8px rgba(108, 92, 231, 0.5);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

main > section ul li:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
  box-shadow: var(--shadow-sm);
}

main > section ul li:hover::before {
  transform: translateY(-50%) scale(1.4);
  box-shadow: 0 0 14px rgba(108, 92, 231, 0.8);
}

main > section ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 20px;
  counter-reset: step;
}

main > section ol li {
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  counter-increment: step;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

main > section ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

main > section ol li:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
  box-shadow: var(--shadow-sm);
}

main > section ol li:hover::before {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 18px rgba(108, 92, 231, 0.6);
}

/* ========== ARTICLE CARDS ========== */
#articles article,
#news article {
  position: relative;
  padding: 28px 28px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  overflow: hidden;
}

#articles article::before,
#news article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-line);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#articles article:hover,
#news article:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

#articles article h3,
#news article h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin: 0 0 10px;
  padding-left: 0;
  transition: color var(--transition-fast);
}

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

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

#articles article p:first-of-type,
#news article p:first-of-type {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#articles article p:first-of-type::before,
#news article p:first-of-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-4);
  box-shadow: 0 0 8px rgba(0, 206, 201, 0.6);
}

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-2);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

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

#articles article p:last-child a:hover {
  color: var(--accent-3);
  gap: 10px;
}

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

/* ========== BLOCKQUOTE ========== */
blockquote {
  position: relative;
  margin: 16px 0;
  padding: 22px 26px 22px 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-1);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.7;
}

blockquote p {
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
}

blockquote:hover {
  transform: translateX(6px);
  border-left-color: var(--accent-3);
  box-shadow: var(--shadow-md);
}

/* ========== FAQ DETAILS ========== */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

#faq details[open] {
  border-color: var(--accent-1);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: var(--bg-card-hover);
}

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

#faq details summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-size: 0.9688rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

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

#faq details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  color: var(--accent-2);
  font-size: 1.125rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

#faq details[open] summary::after {
  content: "−";
  background: var(--gradient-btn);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.5);
}

#faq details summary:hover {
  color: var(--accent-2);
  background: rgba(108, 92, 231, 0.05);
}

#faq details summary:hover::after {
  transform: translateY(-50%) scale(1.1);
}

#faq details[open] summary:hover::after {
  transform: translateY(-50%) rotate(180deg) scale(1.1);
}

#faq details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.85;
  animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ========== CONTACT ========== */
#contact p {
  padding: 10px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.9375rem;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

#contact p:hover {
  transform: translateX(6px);
  border-color: var(--accent-2);
  background: var(--bg-card-hover);
}

/* ========== SITEMAP & LINKS ========== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

#sitemap ul li,
#links ul li {
  padding: 14px 18px;
  text-align: center;
  font-weight: 500;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

#sitemap ul li:hover a,
#links ul li:hover a {
  color: var(--accent-2);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 48px 24px 40px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-line);
  opacity: 0.6;
}

footer p {
  max-width: var(--max-width);
  margin: 0 auto 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

footer p:first-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 14px;
}

footer p:last-child {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

footer p:last-child a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

footer p:last-child a:hover {
  color: var(--accent-2);
}

footer p:last-child a:hover::after {
  width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  main {
    padding: 0 20px 64px;
  }

  #hero {
    padding: 56px 36px;
  }
}

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

  header nav {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  header nav > a:first-child {
    font-size: 1.125rem;
    margin-bottom: 8px;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li a {
    padding: 6px 10px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  main {
    padding: 0 16px 56px;
  }

  main > section {
    margin-top: 40px;
  }

  #hero {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
  }

  #hero h1 {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }

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

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

  #hero p:last-child a {
    justify-content: center;
    padding: 12px 20px;
  }

  main > section > h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  main > section h3 {
    font-size: 1.0625rem;
    margin-top: 22px;
  }

  #articles article,
  #news article {
    padding: 22px 20px 18px;
    border-radius: var(--radius-md);
  }

  blockquote {
    padding: 18px 20px 18px 48px;
  }

  blockquote::before {
    left: 14px;
    font-size: 2.5rem;
  }

  #faq details summary {
    padding: 16px 48px 16px 18px;
    font-size: 0.9375rem;
  }

  #faq details p {
    padding: 0 18px 18px;
  }

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

  #sitemap ul li,
  #links ul li {
    padding: 12px 14px;
  }

  footer {
    padding: 36px 16px 32px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 12px 48px;
  }

  #hero {
    padding: 32px 18px;
    border-radius: var(--radius-md);
  }

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

  #hero p {
    font-size: 0.875rem;
    line-height: 1.8;
  }

  main > section > h2 {
    font-size: 1.125rem;
  }

  main > section ul li {
    padding: 9px 12px 9px 34px;
    font-size: 0.875rem;
  }

  main > section ol li {
    padding: 12px 14px 12px 48px;
    font-size: 0.875rem;
  }

  main > section ol li::before {
    width: 24px;
    height: 24px;
    left: 12px;
    font-size: 0.75rem;
  }

  #articles article,
  #news article {
    padding: 18px 16px 16px;
  }

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

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-3));
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(108, 92, 231, 0.35);
  color: var(--text-primary);
}

/* ========== FOCUS ========== */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

/* ========== REDUCED MOTION ========== */
@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;
  }

  main > section {
    opacity: 1;
    transform: none;
  }
}

/* ========== DARK MODE EXPLICIT ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 50, 0.55);
    --bg-card-hover: rgba(40, 40, 68, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #b0b0c8;
    --text-muted: #7a7a96;
  }
}