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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e5e5e5;
  background: #0a0a0f;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 73px;
}

/* ========== 顶部导航栏（主站Navbar风格复刻） ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: transparent;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
}

/* 滚动后效果（模拟主站isScrolled） */
.site-header.scrolled {
  background: rgba(15,15,35,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* 默认给个深色背景（博客没有主站的大图背景） */
.site-header {
  background: linear-gradient(180deg, rgba(10,10,20,.95) 0%, rgba(15,15,35,.92) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 左侧：Logo + 菜单 */
.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.brand-logo:hover { color: rgba(255,255,255,.85); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity .2s;
  white-space: nowrap;
}
.main-nav a:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(255,255,255,.3);
}

/* 右侧：功能按钮 */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: all .2s;
}
.nav-icon-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.nav-icon-btn svg {
  width: 16px;
  height: 16px;
}
/* 微信 hover 卡片 */
.wechat-wrapper {
  position: relative;
}
.wechat-card {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 280px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 50;
  overflow: hidden;
}
.wechat-wrapper:hover .wechat-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.wechat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wechat-card-icon {
  width: 32px;
  height: 32px;
  color: #4ade80;
}
.wechat-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}
.wechat-card-desc {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}
.wechat-qrcode {
  padding: 16px;
  display: flex;
  justify-content: center;
}
.wechat-qrcode img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-btn {
  font-size: 12px;
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 9999px;
  transition: all .2s;
  white-space: nowrap;
}
.nav-blog {
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.18);
}
.nav-blog:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.nav-vip {
  background: #7c3aed; /* 主站accent色 */
  color: #fff;
  font-weight: 600;
  border: none;
}
.nav-vip:hover {
  background: #6d28d9;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
  transform: translateY(-1px);
}
.nav-login {
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
  border: none;
}
.nav-login:hover {
  background: #6d28d9;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
  transform: translateY(-1px);
}

/* ========== 主内容区 ========== */
.site-main {
  flex: 1;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  width: 100%;
}

/* ========== 文章列表页 ========== */
.post-list h1 {
  margin-bottom: 24px;
  font-size: 1.5em;
  color: #fff;
}

.post-card {
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: flex;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(255,255,255,.08);
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.15);
}
.post-cover {
  width: 240px;
  min-height: 160px;
  flex-shrink: 0;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-info {
  padding: 20px;
  flex: 1;
}
.post-info h2 {
  font-size: 1.15em;
  margin-bottom: 8px;
}
.post-info h2 a {
  color: #fff;
  text-decoration: none;
}
.post-info h2 a:hover {
  color: #a78bfa;
}
.post-info time {
  color: #9ca3af;
  font-size: .85em;
}
.post-info p {
  margin-top: 8px;
  color: #9ca3af;
  font-size: .92em;
}
.post-tags { margin-top: 8px; }
.tag {
  display: inline-block;
  background: rgba(124,58,237,.2);
  color: #a78bfa;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .8em;
  margin-right: 6px;
}

/* ========== 文章详情页 ========== */
.post {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin: 40px 150px;
  border: 1px solid rgba(255,255,255,.08);
}
.post-header h1 {
  font-size: 1.8em;
  margin-bottom: 12px;
  line-height: 1.4;
  color: #fff;
}
.post-meta {
  color: #9ca3af;
  font-size: .9em;
  margin-bottom: 24px;
}
.post-meta time { margin-right: 12px; }
.post-content {
  font-size: 1.05em;
  line-height: 1.9;
  color: #d1d5db;
}
.post-content h2 {
  margin: 32px 0 16px;
  font-size: 1.4em;
  color: #fff;
}
.post-content h3 {
  margin: 24px 0 12px;
  font-size: 1.2em;
  color: #e5e5e5;
}
.post-content p { margin-bottom: 16px; }
.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
.post-content a {
  color: #a78bfa;
  text-decoration: none;
}
.post-content a:hover { text-decoration: underline; }
.post-content ul, .post-content ol {
  margin: 12px 0 16px 24px;
}
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid #7c3aed;
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(124,58,237,.1);
  border-radius: 0 8px 8px 0;
}
.post-content code {
  background: rgba(255,255,255,.08);
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.post-content pre {
  background: #0f0f1a;
  color: #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.post-content th, .post-content td {
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 14px;
  text-align: left;
}
.post-content th {
  background: rgba(124,58,237,.15);
  font-weight: 600;
  color: #fff;
}
/* CTA Box */
.cta-box {
  margin-top: 32px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.15));
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(124,58,237,.2);
}
.cta-box p {
  color: #d1d5db;
  margin: 0;
}
.cta-box a {
  color: #a78bfa;
  font-weight: 700;
  text-decoration: none;
}
.cta-box a:hover { text-decoration: underline; }

/* ========== 底部CTA海报（模仿主站首页） ========== */
.blog-cta-banner {
  background: linear-gradient(180deg, #0a0a0f 0%, #111128 50%, #1a1035 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: 2.4em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.cta-desc {
  font-size: 1.05em;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.cta-btn:hover {
  background: #6d28d9;
  box-shadow: 0 6px 28px rgba(124,58,237,.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .blog-cta-banner { padding: 48px 20px; }
  .cta-title { font-size: 1.8em; }
  .cta-desc { font-size: .95em; }
}

/* ========== 页脚（主站Footer风格） ========== */
.site-footer {
  background: #0a0a0f;
  border-top: 1px solid #2a2a3a;
  padding: 32px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.footer-links {
  font-size: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-sep {
  color: #4b5563;
}
.footer-copy {
  font-size: 13px;
  color: #6b7280;
}
.police-logo {
  width: 16px;
  height: 16px;
  object-contain: true;
  vertical-align: middle;
}
.police-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .site-header { padding: 0 40px; }
  .main-nav { gap: 16px; }
}

@media (max-width: 768px) {
  body { padding-top: 60px; }
  .site-header { padding: 0 20px; height: 60px; }
  .header-left { gap: 20px; }
  .main-nav { display: none; } /* 小屏隐藏菜单，保持简洁 */
  .nav-vip { display: none; }
  .site-main { margin: 20px auto; padding: 0 16px; }
  .post-card { flex-direction: column; }
  .post-cover { width: 100%; min-height: 180px; }
  .post { padding: 24px; margin: 20px 16px; }
  .post-header h1 { font-size: 1.4em; }
  .footer-links { flex-direction: column; gap: 6px; }
  .footer-sep { display: none; }
}

@media (max-width: 480px) {
  .brand-logo { font-size: 16px; }
  .nav-btn { font-size: 11px; padding: 4px 10px; }
}
