/* ========================================
   Nash Pages — 全站基礎樣式
   適用：首頁與所有 pages/ 子頁面
   ======================================== */

:root {
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff2d95;
  --neon-purple: #b967ff;
  --neon-green: #39ff14;
  --bg-deep: #050510;
  --text-bright: #ffffff;
  --text-dim: #c5cde8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-bright);
  font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ========================================
   導覽列
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.4);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-brand {
  position: absolute;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--neon-cyan);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1rem;
  text-shadow: 0 0 8px var(--neon-cyan), 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.3s;
}

.site-brand:hover {
  text-shadow: 0 0 12px var(--neon-cyan), 0 0 30px rgba(0, 240, 255, 0.7);
  color: var(--text-bright);
}

.site-brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  flex-shrink: 0;
}

.site-brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: var(--text-bright);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.site-status {
  position: absolute;
  right: 2rem;
  color: var(--neon-green);
  font-size: 0.7rem;
  letter-spacing: 3px;
  animation: pulse-status 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 4px var(--neon-green);
  }
  50% {
    opacity: 0.5;
    text-shadow: none;
  }
}

/* ========================================
   內容區域
   ======================================== */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  background: rgba(5, 5, 16, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ========================================
   文字顏色
   核心修正：繼承 body 的顏色，不強制白色
   這樣深色底的頁面可以自行設定 body 顏色
   ======================================== */
h1, h2, h3, h4, h5, h6,
p, span, li, div, a,
label, strong, em, blockquote {
  color: inherit;
}

.page-kicker {
  color: var(--neon-magenta);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-left: 2px solid var(--neon-magenta);
  padding-left: 0.8rem;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 45, 149, 0.7);
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--text-bright);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* ========================================
   手機版導覽列
   ======================================== */
@media (max-width: 600px) {
  .site-header {
    position: relative;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    height: auto;
  }

  .site-brand {
    position: static;
    margin-bottom: 0.3rem;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    margin: 0;
  }

  .site-status {
    position: static;
    margin-top: 0.3rem;
  }

  .page-content {
    padding: 6rem 1.2rem 3rem;
    background: rgba(5, 5, 16, 0.8);
  }
}
