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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Container */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.92);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand {font-weight: 700;color: #f0f0f0;font-size: 20px;}
.site-header nav { display: flex; gap: 20px; align-items: center; }
.site-header nav a {
  color: #888;
  font-size: 13px;
  transition: color 0.2s;
}
.site-header nav a:hover { color: #f0f0f0; }

/* Hero */
.hero { padding: 60px 0 40px; }
.hero .subtitle {
  color: #555;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  margin-bottom: 12px;
}
.hero h1 {
  color: #f0f0f0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p.desc {
  color: #888;
  font-size: 18px;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 24px;
}
.hero .actions { display: flex; gap: 12px; }
.btn {
  display: inline-block;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  background: #151515;
  transition: all 0.2s;
}
.btn:hover { border-color: rgba(255,255,255,0.2); color: #fff; background: #1a1a1a; }
.btn-ghost { background: transparent; border-color: transparent; color: #777; }
.btn-ghost:hover { color: #ccc; background: transparent; }

/* Section Title */
.section-label {
  color: #444;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  color: #f0f0f0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

/* About */
.about-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  background: #0f0f0f;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.about-card img.avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.about-card h3 {
  color: #f0f0f0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.about-card p {
  color: #888;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px;
  color: #666;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 3px 12px;
}

/* Post List */
.post-list { list-style: none; }
.post-item {
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background 0.2s;
}
.post-item:hover { background: #0f0f0f; }
.post-item .row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-item .date {
  color: #555;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  width: 100px;
  flex-shrink: 0;
}
.post-item .cat {
  color: #666;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.post-item .title {
  color: #ccc;
  font-size: 18px;
  flex: 1;
  transition: color 0.2s;
  line-height: 1.5;
}
.post-item:hover .title { color: #f0f0f0; }

/* Tech Grid */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tech-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  background: #0f0f0f;
  transition: border-color 0.2s;
}
.tech-card:hover { border-color: rgba(255,255,255,0.12); }
.tech-card h4 { color: #f0f0f0; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tech-card p { color: #666; font-size: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 80px;
  padding: 48px 0 48px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.footer-top h4 { color: #f0f0f0; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.footer-top p { color: #666; font-size: 12px; line-height: 1.8; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #666; font-size: 12px; transition: color 0.2s; }
.footer-links a:hover { color: #ccc; }

/* 底部备案区域 - 垂直居中布局 */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-bottom .copyright {
  color: #444;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  margin: 0;
}

/* 备案信息组合 - 水平排列 */
.beian-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.beian-link {
  color: #555;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.beian-link:hover {
  color: #888;
}

.beian-divider {
  color: #333;
  font-size: 13px;
}

/* 公安备案 - 图标和文字完美对齐 */
.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beian-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* Article Page */
.article-page .article-header {
  padding: 32px 0 24px;
}
.article-page .article-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #555;
}
.article-page h1 {
  color: #f0f0f0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-page .summary {
  color: #777;
  font-size: 16px;
  line-height: 1.8;
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}
.article-page .content h2 {
  color: #f0f0f0;
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.2px;
}
.article-page .content h3 {
  color: #ddd;
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.article-page .content p {
  color: #999;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 14px;
}
.article-page .content ul, .article-page .content ol {
  margin: 12px 0 16px 20px;
  color: #999;
  font-size: 16px;
  line-height: 1.9;
}
.article-page .content li { margin-bottom: 6px; }
.article-page .content pre {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}
.article-page .content pre code {
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
  white-space: pre;
}
.article-page .content code {
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 14px;
  background: #151515;
  color: #ccc;
  padding: 2px 6px;
  border-radius: 4px;
}
.article-page .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.article-page .content th, .article-page .content td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  text-align: left;
}
.article-page .content th {
  color: #ccc;
  background: #0f0f0f;
  font-weight: 600;
}
.article-page .content td { color: #999; }
.article-page .content blockquote {
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 16px;
  margin: 20px 0;
  color: #888;
  font-style: italic;
  font-size: 16px;
}
.article-page .content strong { color: #ddd; font-weight: 600; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 13px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.back-link:hover { color: #f0f0f0; }

/* Responsive */
@media (max-width: 600px) {
  .post-item .row { flex-wrap: wrap; gap: 8px; }
  .post-item .date { width: auto; }
  .post-item .title { width: 100%; }
  .tech-grid { grid-template-columns: 1fr; }
  .about-card { flex-direction: column; text-align: center; align-items: center; }
  .about-card .tags { justify-content: center; }
  .footer-top { flex-direction: column; }
  .beian-group {
    flex-direction: column;
    gap: 6px;
  }
  .beian-divider { display: none; }
}