/* 思想的骇客们 - MindHack Blog
   Text-focused, dark theme, few distractions
   Inspired by classic essay sites like 新语丝, modernized
*/

:root {
  --bg: #0d0d0d;
  --bg-elev: #161616;
  --text: #d4d4d4;
  --text-dim: #888;
  --accent: #00cc88;
  --accent-dim: #009966;
  --danger: #ff4444;
  --border: #2a2a2a;
  --max-w: 720px;
  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Reading progress */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.logo span { color: var(--text); font-weight: 400; font-size: 0.85em; }
nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }

/* Main content */
main {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
}
article {
  margin-bottom: 3rem;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
h1 { font-size: 2.2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.8rem; color: var(--accent); }
.meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.meta a { color: var(--accent-dim); }

p { margin: 1.2em 0; }
blockquote {
  margin: 1.8em 0;
  padding: 0.5em 1.2em;
  border-left: 4px solid var(--accent);
  background: var(--bg-elev);
  color: #bbb;
  font-style: italic;
}
blockquote p { margin: 0.5em 0; }

/* Stages highlight */
.stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 600px) { .stages { grid-template-columns: 1fr; } }
.stage {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 4px;
}
.stage strong { color: var(--accent); display: block; margin-bottom: 0.4rem; font-size: 1.1rem; }
.stage .en { color: var(--text-dim); font-size: 0.85rem; }

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 2rem 0;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

/* English对照 */
.en-block {
  background: #111;
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #aaa;
}
.en-block::before {
  content: "ENGLISH";
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Homepage cards */
.article-list { list-style: none; padding: 0; }
.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.article-list a {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  display: block;
}
.article-list a:hover { color: var(--accent); }
.article-list .excerpt {
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.tag {
  display: inline-block;
  background: #222;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
footer a { color: var(--accent-dim); }

/* Utility */
.goodbye {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--danger);
  margin: 3rem 0;
  letter-spacing: 2px;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.small { font-size: 0.85rem; color: var(--text-dim); }
