body {
  /* background-color: #0d0d0d; */
  color: #b0b0b0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  background-color: #121212;
}

#wrapper {
  max-width: 760px;
  margin: 0 auto;
  background-color: #141414;
  border: 2px outset #333333;
  padding: 0;
}

/* Header & Banner */
header {
  background-color: #161c22;
  border-bottom: 2px groove #444444;
  padding: 20px 20px 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensures the header floats over scrolling content */
}


header h1 {
  color: #8ae234; /* Crisp terminal green (or #729fcf ice-blue) */
  font-family: "Courier New", Courier, monospace;
  font-size: 64px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  
  /* Phosphor CRT Glow */
  text-shadow: 0 0 8px rgba(138, 226, 52, 0.5), 0 0 20px rgba(138, 226, 52, 0.2);
  
  /* Optional: Accent line under the title */
  border-bottom: 1px solid #2a3642;
  padding-bottom: 10px;
}

header h1::before {
  content: "哲学:~# ";
  color: #4e9a06;
}

/* Fixed Inline Tab Bar */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3px;
}

nav > ul > li {
  position: relative;
  display: inline-block;
  width: auto; /* Keeps items naturally sized side-by-side */
}

nav a {
  display: inline-block;
  background-color: #1e1e1e;
  color: #a8b6c4;
  font-family: Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 14px;
  border: 2px outset #3a3a3a;
  border-bottom: none;
  white-space: nowrap;
}

nav a:hover {
  color: #ffffff;
  background-color: #2a2a2a;
  font-style: italic;
}

nav li.active > a {
  color: #729fcf;
  background-color: #141414;
  border-color: #444444;
  border-bottom: 2px solid #141414;
  position: relative;
  top: 2px;
}

/* Sub-Links / Dropdown (Isolates layout from main tabs) */
nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background-color: #1a1a1a;
  border: 2px outset #3a3a3a;
  box-shadow: 4px 4px 0px #000000;
  z-index: 100;
  flex-direction: column; /* Stacks sub-items vertically inside menu */
  gap: 0;
}

nav li:hover > ul {
  display: flex;
}

nav li ul li {
  width: 100%;
  display: block;
}

nav li ul a {
  display: block;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  text-transform: none;
  padding: 6px 12px;
  font-weight: normal;
  width: 100%;
  box-sizing: border-box;
}

main {
  padding: 20px;
}

pre {
  white-space: pre-wrap;       /* Preserves spaces and line breaks, but wraps when needed */
  overflow-x: auto;           /* Fallback horizontal scrollbar if long unbroken words occur */
  word-break: break-word;     /* Prevents extra-long strings/URLs from overflowing */
}

pre code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  display: block;
}

h2, h3 {
  color: #729fcf;
  font-family: Verdana, sans-serif;
  font-size: 16px;
  border-bottom: 1px dashed #333333;
  padding-bottom: 4px;
}

a {
  color: #8ae234;
}

a:visited {
  color: #ad7fa8;
}

a:hover {
  background-color: #222222;
  font-style: italic;
}

.box {
  background-color: #1a1a1a;
  border: 1px inset #2a2a2a;
  padding: 12px;
  margin-bottom: 15px;
}

.badge-container {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #333333;
}

.badge-container img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated; /* Keeps low-res GIFs crisp */
}

/* Blink Effect */
.blink {
  animation: blinker 1s steps(1) infinite;
  color: #ff0000;
  font-weight: bold;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.log-stamp {
  opacity: 0.3; /* Drops visibility to 50% */
  font-size: 0.9em; /* Optional: scaling it down slightly also helps hierarchy */
}

.log-stamp:hover {
  opacity: 1; /* Gives a nice subtle terminal flicker when hovered */
}