/* ===== 紫色科技风主题 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #e8e6f0;
  background: linear-gradient(135deg, #150829 0%, #241040 45%, #31135c 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
body::before { width: 480px; height: 480px; background: rgba(124, 77, 255, .28); top: -120px; right: -80px; }
body::after  { width: 420px; height: 420px; background: rgba(0, 229, 255, .14); bottom: -140px; left: -100px; }

/* 顶部导航 */
nav {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 48px));
  margin: 22px auto 0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .6); }
.brand span {
  font-size: 17px; font-weight: 700;
  background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #b8b3cc; text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #c4b5fd; }

/* 主容器 */
.container {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

/* 通用玻璃卡片 */
.card {
  display: block;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

/* 文章列表 */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-card { padding: 26px 30px; text-decoration: none; color: inherit; }
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, .55);
  box-shadow: 0 10px 34px rgba(139, 92, 246, .25);
}
.post-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #e9e4fb, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.meta { font-size: 13px; color: #9d96b5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.meta a { text-decoration: none; }
.meta .dot { opacity: .6; }
.cat { color: #a78bfa; }
.tag { color: #67e8f9; font-size: 12px; }
.excerpt { font-size: 14px; color: #b8b3cc; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.pager-btn {
  padding: 10px 22px;
  color: #c4b5fd;
  text-decoration: none;
  font-size: 14px;
}
.pager-btn:hover { border-color: rgba(167, 139, 250, .55); box-shadow: 0 6px 20px rgba(139, 92, 246, .25); }
.pager-info { font-size: 13px; color: #9d96b5; }

/* 归档 */
.page-title {
  font-size: 30px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.year {
  font-size: 22px;
  color: #a78bfa;
  margin: 28px 0 12px;
}
.archive-list .year:first-child { margin-top: 0; }
.archive-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, .10);
}
.archive-date { font-size: 13px; color: #9d96b5; font-family: Consolas, monospace; flex-shrink: 0; }
.archive-item a { color: #d9d4ea; text-decoration: none; transition: color .2s; }
.archive-item a:hover { color: #c4b5fd; }

/* 文章详情 */
.post-full { padding: 36px 40px; }
.post-title {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #e9e4fb, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.post-nav { display: flex; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.post-nav .next { margin-left: auto; }

/* 正文排版 */
.content { font-size: 15.5px; color: #d5d1e3; margin-top: 20px; }
.content h1, .content h2, .content h3, .content h4 {
  color: #e9e4fb;
  margin: 1.6em 0 .7em;
  line-height: 1.4;
}
.content h2 { padding-bottom: 8px; border-bottom: 1px solid rgba(167, 139, 250, .25); }
.content p { margin: .9em 0; }
.content a { color: #a78bfa; text-decoration: none; border-bottom: 1px dashed rgba(167, 139, 250, .5); }
.content a:hover { color: #c4b5fd; }
.content ul, .content ol { padding-left: 1.6em; margin: .9em 0; }
.content li { margin: .3em 0; }
.content blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid #8b5cf6;
  background: rgba(139, 92, 246, .10);
  border-radius: 0 10px 10px 0;
  color: #b8b3cc;
}
.content img { max-width: 100%; border-radius: 12px; }
.content hr { border: none; border-top: 1px solid rgba(255, 255, 255, .12); margin: 2em 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 14px; }
.content th, .content td { border: 1px solid rgba(255, 255, 255, .15); padding: 8px 12px; }
.content th { background: rgba(139, 92, 246, .18); }

/* 行内代码 */
.content code {
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  background: rgba(139, 92, 246, .18);
  color: #e9d5ff;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Hexo 代码高亮块 */
.content figure.highlight {
  margin: 1.2em 0;
  background: #10081f;
  border: 1px solid rgba(167, 139, 250, .25);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}
.content figure.highlight table { margin: 0; border: none; width: 100%; }
.content figure.highlight td { border: none; padding: 0; }
.content figure.highlight .gutter {
  padding: 14px 10px 14px 16px;
  text-align: right;
  color: #6b6488;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.content figure.highlight .code { padding: 14px 16px; width: 100%; }
.content figure.highlight pre { margin: 0; }
.content figure.highlight code, .content figure.highlight pre {
  background: transparent;
  padding: 0;
  color: #d5d1e3;
  font-family: Consolas, "Courier New", monospace;
}
.content pre { margin: 1.2em 0; padding: 16px; background: #10081f; border: 1px solid rgba(167, 139, 250, .25); border-radius: 12px; overflow-x: auto; }
.content pre code { background: transparent; padding: 0; color: #d5d1e3; }

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #7d7696;
}

/* 文章页空白区域可点击返回博客列表 */
.post-page .container { cursor: pointer; }
.post-page .post-full, .post-page .post-nav { cursor: default; }

/* 图片灯箱 */
.content img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 5, 25, .88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lb-fade .2s ease;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
  cursor: zoom-out;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  nav {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand img { width: 32px; height: 32px; }
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links a { font-size: 13.5px; }
  .container { padding: 28px 0 40px; }
  .page-title { font-size: 24px; }
  .post-card { padding: 20px 22px; }
  .post-card h2 { font-size: 19px; }
  .post-full { padding: 24px 18px; }
  .post-title { font-size: 24px; }
  .content { font-size: 15px; }
  .content figure.highlight { font-size: 12.5px; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .container, nav { width: calc(100% - 64px); }
}
