/* Hexo Next 主题样式 - 简化版 */

/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif SC', serif;
  background: #f5f5f5;
  color: #333;
}

/* 头部样式 */
.headband {
  display: none;
}

.header {
  background: linear-gradient(to right, #000000 0%, #1a1a1a 50%, #333333 100%);
  color: #fff;
  position: relative;
  z-index: 100;
  margin: 0;
  overflow: hidden;
}

.header-inner {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.site-meta {
  text-align: center;
  padding: 0 0 4px 0;
  position: relative;
  z-index: 10;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  position: relative;
  z-index: 10;
  margin-top: -18px;
}

.site-subtitle {
  margin: 2px 0 0;
  color: #ccc;
  font-size: 14px;
  position: relative;
  z-index: 10;
}

.logo-line-before,
.logo-line-after {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: #fff;
  vertical-align: middle;
}

.site-nav {
  background: #f5f5f5;
  border-top: 1px solid #e1e4e8;
  width: 100%;
  opacity: 1;
  position: relative;
  z-index: 100;
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.menu-item {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 100;
}

.menu-item a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  position: relative;
  z-index: 100;
}

.menu-item a:hover {
  color: #222;
}

.menu-item-active a {
  color: #222;
  font-weight: 600;
}

.menu-item-avatar {
  display: flex;
  align-items: center;
}

.menu-item-avatar a {
  padding: 12px 15px 12px 5px;
}

/* 移动端菜单切换 */
.site-nav-toggle {
  display: none;
}

.btn-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  margin: 4px 0;
}

@media (max-width: 767px) {
  .site-nav-toggle {
    display: block;
    padding: 10px 15px;
    cursor: pointer;
  }

  .menu {
    display: none;
    flex-direction: column;
  }

  .menu.menu-active {
    display: flex;
  }

  .menu-item {
    width: 100%;
    text-align: center;
  }

  .menu-item a {
    padding: 15px;
    border-top: 1px solid #eee;
  }
}

/* 文章列表 */
.posts-expand {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px;
}

.post {
  margin-bottom: 60px;
}

.post-block {
  padding: 25px 42px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
}

.post-title-link {
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
}

.post-title-link:hover {
  color: #555;
}

.post-meta {
  font-size: 14px;
  color: #999;
  margin: 10px 0;
}

.post-meta-item-icon {
  margin-right: 5px;
}

.post-meta-divider {
  margin: 0 5px;
}

.post-category span {
  margin-right: 5px;
}

.post-category a {
  color: #999;
  text-decoration: none;
}

.post-category a:hover {
  color: #222;
}

.post-symbolscount {
  font-size: 13px;
  color: #999;
  margin-left: 10px;
}

.post-body {
  margin-top: 20px;
  color: #555;
  line-height: 1.8;
}

.post-button {
  margin-top: 30px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #444;
}

.post-eof {
  height: 1px;
  margin: 40px 0;
  background: #eee;
}

.post-footer {
  margin-top: 20px;
}

/* 分页 */
.pagination {
  margin: 60px 0;
  text-align: center;
}

.page-number,
.extend {
  display: inline-block;
  margin: 0 5px;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.page-number.current {
  background: #222;
  color: #fff;
  border-color: #222;
}

.page-number:hover,
.extend:hover {
  background: #f5f5f5;
}

.space {
  margin: 0 5px;
}

/* 搜索框 */
.site-search {
  position: relative;
}

.search-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  min-width: 300px;
}

.local-search-popup-show {
  display: block !important;
}

.local-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.local-search-input-wrapper input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 搜索结果样式 */
.search-result-item {
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f8f8 !important;
}

.search-result-item a {
  text-decoration: none !important;
}

.search-result-item mark {
  background: #ffeb3b;
  padding: 0 2px;
  border-radius: 2px;
}

/* 搜索弹窗宽度调整 */
.search-popup {
  min-width: 400px;
  max-width: 600px;
}

/* 搜索图标和关闭按钮样式 */
.search-icon,
.popup-btn-close {
  cursor: pointer;
  font-size: 18px;
  color: #666;
}

.popup-btn-close:hover {
  color: #333;
}

/* 页脚 */
.footer {
  padding: 40px 0;
  margin-top: 60px;
  background: #fff;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright {
  color: #333;
  font-size: 14px;
}

.copyright a {
  color: #333;
  text-decoration: none;
}

.with-love {
  color: #ff0000;
}

.busuanzi-count {
  margin-top: 15px;
}

.site-uv,
.site-pv {
  display: inline-block;
  margin: 0 10px;
  font-size: 14px;
  color: #666;
}

/* 工具类 */
.text-center {
  text-align: center;
}

/* 动画效果 */
.use-motion .post-block {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.use-motion .post-header {
  animation: slideDownIn 0.5s ease;
}

.use-motion .post-body {
  animation: slideDownIn 0.5s ease 0.1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 自定义引用格式 */
blockquote.note {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #6db33f;
  background: #f3f9f7;
  border-radius: 4px;
}

blockquote.note p {
  margin: 0;
}

blockquote.label {
  margin: 1em 0;
  padding: 5px 10px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-left: 3px solid #222;
  border-radius: 3px;
  font-size: 14px;
  color: #333;
}

blockquote.label p {
  margin: 0;
}

blockquote.primary {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #222;
  background: #f8f8f8;
  border-radius: 4px;
}

blockquote.primary p {
  margin: 0;
}

blockquote.success {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #52c41a;
  background: #f0f9ff;
  border-radius: 4px;
}

blockquote.success p {
  margin: 0;
}

blockquote.info {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #1890ff;
  background: #e6f7ff;
  border-radius: 4px;
}

blockquote.info p {
  margin: 0;
}

blockquote.warning {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #faad14;
  background: #fffbe6;
  border-radius: 4px;
}

blockquote.warning p {
  margin: 0;
}

blockquote.danger {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #f5222d;
  background: #fff1f0;
  border-radius: 4px;
}

blockquote.danger p {
  margin: 0;
}

blockquote.flat {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 4px solid #222;
  background: #fafafa;
  border-radius: 4px;
}

blockquote.flat p {
  margin: 0;
}

blockquote.flat-default {
  border-left-color: #222;
}

blockquote.flat-primary {
  border-left-color: #222;
}

blockquote.flat-success {
  border-left-color: #52c41a;
}

blockquote.flat-info {
  border-left-color: #1890ff;
}

blockquote.flat-warning {
  border-left-color: #faad14;
}

blockquote.flat-danger {
  border-left-color: #f5222d;
}

