/* ===================================
   蘑菇的说明书 — 钢之炼金术师主题
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;500;600;700&family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* ===== Skip Link (可访问性) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-deep);
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ===== CSS Variables ===== */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --rust: #8B2E0F;
  --rust-light: #C04020;
  --bg-deep: #0D0B08;
  --bg-dark: #141009;
  --bg-card: #1A1408;
  --bg-card2: #1F1810;
  --text-primary: #E8DCC8;
  --text-secondary: #A89878;
  --text-muted: #6B5A3E;
  --border-gold: rgba(201, 168, 76, 0.3);
  --border-gold-bright: rgba(201, 168, 76, 0.7);
  --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.15);
  --shadow-gold-strong: 0 0 40px rgba(201, 168, 76, 0.25);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Noto Serif SC', serif;
  --font-ui: 'Noto Sans SC', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ===== Selection ===== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
}

/* ===== Background Texture ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 46, 15, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== Alchemy Circle Decoration ===== */
.alchemy-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 11, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ===== Mobile Navigation ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  animation: fadeInLeft 0.9s ease forwards;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark));
}

.hero-eyebrow::before {
  flex: 0 0 30px;
  background: var(--gold-dark);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-left: 2px solid var(--gold-dark);
  padding-left: 1rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  background: rgba(201, 168, 76, 0.04);
}

.tag:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.1);
}

/* ===== Alchemy Circle (Hero Right) ===== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.9s ease forwards;
}

.alchemy-circle-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.alchemy-circle-container svg {
  width: 100%;
  height: 100%;
}

.circle-ring-1 {
  animation: rotateSlowCW 30s linear infinite;
  transform-origin: center;
}

.circle-ring-2 {
  animation: rotateSlowCCW 20s linear infinite;
  transform-origin: center;
}

.circle-ring-3 {
  animation: rotateSlowCW 45s linear infinite;
  transform-origin: center;
}

.circle-center-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  fill: var(--gold);
  text-anchor: middle;
  dominant-baseline: middle;
}

@keyframes rotateSlowCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateSlowCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ===== Divider ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 5rem 0 3rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--border-gold));
}

.divider-ornament {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ===== Section Headers ===== */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

/* ===== About / Profile Section ===== */
.about-section {
  padding: 4rem 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-card:hover {
  border-color: var(--border-gold-bright);
  box-shadow: var(--shadow-gold);
}

.profile-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.card-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-content {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.9;
}

.card-content strong {
  color: var(--text-primary);
}

/* ===== Professional Section ===== */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 120px;
}

.skill-bar {
  flex: 1;
  height: 3px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold));
  border-radius: 2px;
  animation: fillBar 1.5s ease forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes fillBar {
  to { transform: scaleX(1); }
}

/* ===== Social Links ===== */
.social-section {
  padding: 3rem 0;
}

.social-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.social-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.social-card:hover {
  transform: translateX(8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.social-card:hover::after {
  opacity: 1;
}

.social-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.social-name {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ===== Blog Posts Section ===== */
.blog-section {
  padding: 3rem 0 5rem;
}

.blog-filters {
  display: flex;
  gap: 0.8rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 6px 18px;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all 0.25s;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.35s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--rust), var(--gold), var(--rust));
  opacity: 0;
  transition: opacity 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-bright);
  box-shadow: var(--shadow-gold-strong);
}

.post-card:hover::before {
  opacity: 1;
}

.post-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.post-tag-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.post-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-body {
  padding: 1rem 1.5rem 1.5rem;
}

.post-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  line-height: 1.5;
  transition: color 0.3s;
}

.post-card:hover .post-title {
  color: var(--gold-light);
}

.post-excerpt {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 1px 6px;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 2px;
}

.post-read-more {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  text-transform: uppercase;
  transition: color 0.3s;
}

.post-card:hover .post-read-more {
  color: var(--gold);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-gold);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.icp-info {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.icp-info a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.icp-info a:hover {
  color: var(--gold);
}

.copyright {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Article Page ===== */
.article-page {
  padding: 120px 0 6rem;
}

.article-header {
  margin-bottom: 3rem;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--gold);
}

.back-link svg {
  transition: transform 0.3s;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.article-category {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.article-body {
  max-width: 740px;
}

/* ===== Markdown Rendered Content ===== */
.md-content {
  line-height: 1.9;
  color: var(--text-secondary);
}

.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4 {
  font-family: var(--font-body);
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  position: relative;
}

.md-content h1 { font-size: 1.8rem; }
.md-content h2 {
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}
.md-content h2::before {
  content: '∴';
  color: var(--gold-dark);
  margin-right: 0.6rem;
  font-size: 0.8em;
}
.md-content h3 { font-size: 1.15rem; color: var(--gold-light); }

.md-content p {
  margin-bottom: 1.4rem;
}

.md-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dark);
  transition: border-color 0.2s;
}

.md-content a:hover {
  border-color: var(--gold);
}

.md-content code {
  font-family: 'Courier New', monospace;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-gold);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--gold-light);
}

.md-content pre {
  background: rgba(20, 15, 8, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

.md-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-dark));
}

.md-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.md-content blockquote {
  border-left: 3px solid var(--gold-dark);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201, 168, 76, 0.04);
  color: var(--text-muted);
  font-style: italic;
}

.md-content ul, .md-content ol {
  margin: 1rem 0 1.4rem 1.5rem;
}

.md-content li {
  margin-bottom: 0.4rem;
}

.md-content ul li::marker {
  color: var(--gold-dark);
}

.md-content ol li::marker {
  color: var(--gold-dark);
}

.md-content hr {
  border: none;
  border-top: 1px solid var(--border-gold);
  margin: 2rem 0;
}

.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.md-content th {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-gold);
  text-align: left;
}

.md-content td {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
  color: var(--text-secondary);
}

.md-content tr:hover td {
  background: rgba(201, 168, 76, 0.03);
}

/* ===== Article Layout ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

/* ===== TOC Sidebar ===== */
.toc-sidebar {
  position: sticky;
  top: 90px;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.toc-list a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 3px 0 3px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1.5;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--gold-light);
  border-left-color: var(--gold);
}

.toc-list .toc-h3 a {
  padding-left: 24px;
  font-size: 0.78rem;
}

/* ===== Related Posts ===== */
.related-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-gold);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* ===== Page Transitions ===== */
.page-section {
  animation: fadeInUp 0.6s ease forwards;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Collapsible Sections (Accordion) ===== */
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.accordion-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.accordion-toggle:hover {
  border-color: var(--border-gold-bright);
  box-shadow: var(--shadow-gold);
}

.accordion-toggle:hover::before {
  opacity: 1;
}

.accordion-toggle.open {
  border-color: var(--border-gold-bright);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.accordion-toggle.open::before {
  opacity: 1;
}

.accordion-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.accordion-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-icon svg {
  width: 28px;
  height: 28px;
}

.accordion-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accordion-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.3;
  text-align: left;
}

.accordion-sublabel {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: left;
}

.accordion-arrow {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.accordion-toggle.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border-gold-bright);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.accordion-body.open {
  border-color: var(--border-gold-bright);
}

.accordion-body-inner {
  padding: 2rem;
}

.accordion-item {
  margin-bottom: 1.2rem;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-section {
  padding: 0 0 5rem;
}

/* ===== Utility Classes ===== */
.hidden { display: none !important; }
.text-gold { color: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .alchemy-circle-container {
    width: 220px;
    height: 220px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(13, 11, 8, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 0.8rem 2rem;
    width: 100%;
    text-align: center;
  }
  .site-nav a::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.2rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
