:root {
  --primary: #e50914;
  --primary-dark: #b20710;
  --primary-light: #ff4d5a;
  --accent: #f5c518;
  --accent-dark: #d4a800;
  --bg: #f7f7fa;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #4a4a5e;
  --text-muted: #8a8a9e;
  --border: #e8e8f0;
  --border-light: #f0f0f5;
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 24px 64px rgba(26, 26, 46, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 8px 32px rgba(26, 26, 46, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --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.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff4d5a;
    --primary-dark: #e50914;
    --primary-light: #ff7a85;
    --accent: #f5c518;
    --accent-dark: #d4a800;
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --bg-elevated: #1e1e36;
    --text: #f0f0f5;
    --text-secondary: #b8b8cc;
    --text-muted: #7a7a92;
    --border: #2a2a44;
    --border-light: #222238;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(22, 22, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

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

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

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

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

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

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

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

::selection {
  background: var(--primary);
  color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== HEADER / NAVIGATION ========== */

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

header:hover {
  box-shadow: var(--shadow-sm);
}

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

header nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast);
}

header nav > a:first-child::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px var(--primary);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

header nav > a:first-child:hover {
  transform: scale(1.03);
  color: var(--text);
}

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

header nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

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

header nav ul li a:hover {
  color: var(--primary);
  background: rgba(229, 9, 20, 0.06);
}

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

/* ========== MAIN LAYOUT ========== */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > section {
  margin-bottom: 64px;
  animation: fade-in-up 0.7s ease-out both;
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== HERO SECTION ========== */

#hero {
  position: relative;
  margin: 32px 0 56px;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #e50914 140%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 800px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

#hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  animation: fade-in-up 0.8s ease-out 0.25s both;
}

#hero p:last-child {
  animation-delay: 0.4s;
}

/* ========== BREADCRUMB ========== */

nav[aria-label="面包屑导航"] {
  margin-bottom: 32px;
}

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

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

nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

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

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

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

/* ========== CONTENT SECTIONS ========== */

main > section:not(#hero):not(#sitemap):not(#links) {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

main > section:not(#hero):not(#sitemap):not(#links):hover {
  box-shadow: var(--shadow-md);
}

main > section h3 {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  border-radius: 2px;
}

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

main > section h4 {
  margin-top: 20px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.06), transparent);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

main > section p {
  max-width: 900px;
}

main > section p + p {
  margin-top: -0.25rem;
}

/* ========== NEWS ARTICLES ========== */

#news article,
#articles article {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

#news article h3,
#articles article h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  margin-top: 0;
  padding-left: 0;
  border-left: none;
  color: var(--text);
  transition: color var(--transition-fast);
}

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

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

#articles article p {
  font-size: 0.925rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

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

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

#articles article a:hover {
  gap: 10px;
  color: var(--primary-dark);
}

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

/* ========== HOWTO SECTION ========== */

#howto h3 {
  margin-top: 24px;
}

#howto h3:first-of-type {
  margin-top: 0;
}

/* ========== FAQ SECTION ========== */

#faq h3 {
  cursor: pointer;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 1.05rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  position: relative;
  user-select: none;
}

#faq h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

#faq h3:hover {
  background: rgba(229, 9, 20, 0.06);
  transform: translateX(4px);
}

#faq h3 + p {
  padding: 14px 18px 14px 58px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  animation: fade-in 0.4s ease-out;
}

#faq h3 + p:last-of-type {
  border-bottom: none;
}

/* ========== KNOWLEDGE SECTION ========== */

#knowledge h3 {
  margin-top: 24px;
}

#knowledge h3:first-of-type {
  margin-top: 0;
}

/* ========== CONTACT SECTION ========== */

#contact p {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

#contact p:last-of-type {
  border-bottom: none;
}

#contact h3 {
  margin-top: 24px;
}

#contact h3:first-of-type {
  margin-top: 0;
}

/* ========== SITEMAP & LINKS ========== */

#sitemap,
#links {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

#sitemap ul li a,
#links ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

#sitemap ul li a::before {
  content: "▸";
  color: var(--primary);
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

#links ul li a::before {
  content: "🔗";
  font-size: 0.8rem;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#sitemap ul li a:hover::before {
  transform: translateX(3px);
}

/* ========== FOOTER ========== */

footer {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  margin-top: 0;
}

footer section {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  animation: fade-in-up 0.6s ease-out both;
}

footer section:last-of-type {
  border-bottom: none;
}

footer section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-bottom: 0;
}

footer section h2::after {
  display: none;
}

footer section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.8;
}

footer section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer > p {
  max-width: var(--max-width);
  margin: 0 auto 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

footer > p:last-child {
  margin-bottom: 0;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
  }

  #hero {
    padding: 48px 36px;
  }

  main > section:not(#hero):not(#sitemap):not(#links) {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 15px;
  }

  header nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
    -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.82rem;
  }

  main {
    padding: 0 16px 48px;
  }

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

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

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

  main > section:not(#hero):not(#sitemap):not(#links) {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

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

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

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

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

  #sitemap,
  #links {
    padding: 24px 20px;
  }

  footer {
    padding: 40px 16px 24px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  #hero {
    padding: 28px 18px;
  }

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

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

  main > section:not(#hero):not(#sitemap):not(#links) {
    padding: 20px 16px;
  }

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

  #faq h3 {
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  #faq h3::before {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
    margin-right: 8px;
  }

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

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* ========== ACCESSIBILITY & 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;
  }
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ========== PRINT STYLES ========== */

@media print {
  header,
  #hero::before,
  #hero::after,
  footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

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

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ========== UTILITY ANIMATIONS ========== */

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.5);
  }
}

/* ========== SMOOTH SCROLL OFFSET FOR ANCHORS ========== */

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* ========== SELECTION & HIGHLIGHT ========== */

mark {
  background: linear-gradient(120deg, rgba(245, 197, 24, 0.4), rgba(245, 197, 24, 0.2));
  color: var(--text);
  padding: 0 4px;
  border-radius: 3px;
}

/* ========== FORM ELEMENTS (future-proofing) ========== */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== TABLE STYLES (for potential data) ========== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
}

tr:hover td {
  background: rgba(229, 9, 20, 0.03);
}

/* ========== BLOCKQUOTE ========== */

blockquote {
  margin: 20px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

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

/* ========== CODE ========== */

code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.875em;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--primary);
  border: 1px solid var(--border-light);
}

pre {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border-light);
}

pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
}

/* ========== HORIZONTAL RULE ========== */

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 32px 0;
}

/* ========== BADGE / TAG ========== */

.badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  letter-spacing: 0.02em;
}

.badge-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1a2e;
}

/* ========== CARD GRID (future-proofing) ========== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ========== GLASSMORPHISM PANEL ========== */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ========== LOADING SKELETON ========== */

.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ========== TOOLTIP ========== */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ========== SCROLL PROGRESS BAR ========== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.1s linear;
}

/* ========== BACK TO TOP BUTTON ========== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-base);
  z-index: 900;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  animation: glow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}