/* ========== 赛博朋克基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: #05050A;
  background-image: radial-gradient(circle at 50% 0%, #1a0b2e 0%, #05050A 70%);
  color: #00ffff;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #00ffff; text-decoration: none; transition: all 0.3s; }
a:hover { color: #ff00ff; text-shadow: 0 0 8px #ff00ff; text-decoration: none; }

/* ========== 顶部导航 ========== */
.site-header {
  background: rgba(5, 5, 10, 0.85);
  border-bottom: 1px solid #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo-img {
  height: 36px;
  width: auto;
  border: 1px solid #ff00ff;
  box-shadow: 0 0 8px #ff00ff;
  border-radius: 4px;
}
.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px #00ffff;
  letter-spacing: 2px;
}

.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav > a {
  color: #00ffff;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-search input {
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  padding: 6px 12px;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
}
.nav-search input:focus { box-shadow: 0 0 10px #00ffff; }

/* ========== 主容器 ========== */
.container {
  max-width: 850px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
}

/* ========== 卡片 ========== */
.card {
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover {
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.card h1, .card h2 { color: #fff; margin-bottom: 8px; letter-spacing: 1px; }
.card h2 a { color: #fff; }
.card h2 a:hover { color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }

.meta { color: #888; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; }
.excerpt { color: #a0a0b0; margin-top: 8px; }

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  background: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 8px 20px;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.2s;
}
.btn:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 15px #00ffff;
}
.btn-secondary { color: #888; border-color: #888; }
.btn-secondary:hover { background: #888; color: #000; box-shadow: 0 0 15px #888; }
.btn-danger { color: #ff00ff; border-color: #ff00ff; }
.btn-danger:hover { background: #ff00ff; color: #000; box-shadow: 0 0 15px #ff00ff; }

/* ========== 表单 ========== */
.form-card { padding: 30px; }
.form-card label {
  display: block; margin-bottom: 20px; color: #00ffff;
  font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
}
.form-card input[type="text"], .form-card textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: #fff; border-radius: 2px; font-family: inherit;
}
.form-card input[type="text"]:focus, .form-card textarea:focus {
  outline: none; border-color: #ff00ff; box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* ========== 图片样式 ========== */
.cover-thumb {
  width: 100%; height: 220px; object-fit: cover; display: block;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  filter: contrast(1.1) brightness(0.9);
  transition: filter 0.3s;
}
.post-card:hover .cover-thumb { filter: contrast(1.2) brightness(1.1); }

.cover-banner {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: 2px; margin-bottom: 24px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}
.post-card-body { padding: 24px; }
.post-detail { padding: 30px; }

/* ========== 头像与404图片 ========== */
.footer-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid #ff00ff; box-shadow: 0 0 10px #ff00ff;
  margin-bottom: 12px;
}
.empty-state {
  text-align: center; padding: 60px 20px;
  background: rgba(15, 15, 25, 0.8);
  border: 1px dashed #ff00ff; border-radius: 4px;
}
.empty-img {
  max-width: 200px; margin-bottom: 20px;
  filter: drop-shadow(0 0 15px #ff00ff);
}

/* ========== Markdown 正文颜色 ========== */
.markdown-body { color: #ccc; }
.markdown-body blockquote {
  border-left: 4px solid #ff00ff;
  background: rgba(255, 0, 255, 0.05); padding: 10px 16px; margin: 12px 0;
}
.markdown-body pre {
  background: #000; border: 1px solid #00ffff; padding: 14px; overflow-x: auto;
}
.markdown-body code { color: #00ffff; background: #111; padding: 2px 6px; }
.markdown-body th, .markdown-body td { border: 1px solid #333; padding: 8px 12px; }

/* ========== 提示与页脚 ========== */
.flash { padding: 12px 16px; margin-bottom: 20px; border-left: 4px solid; text-transform: uppercase; font-weight: bold;}
.flash-success { background: rgba(0, 255, 255, 0.1); border-color: #00ffff; color: #00ffff; }
.flash-error { background: rgba(255, 0, 255, 0.1); border-color: #ff00ff; color: #ff00ff; }

.site-footer {
  text-align: center; padding: 40px 0; margin-top: 40px;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  color: #666; font-size: 14px; text-transform: uppercase;
}

.pagination {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin: 30px 0;
}