/* ===== 专题标签样式 ===== */
.topics-section {
  max-width: var(--yukima-width-content);
  margin: 0 auto var(--yukima-size-10);
  padding: 0 var(--yukima-size-4);
}

.topics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yukima-size-2);
  justify-content: center;
  padding: var(--yukima-size-5);
  background-color: var(--yukima-toc-bg);
  border: var(--yukima-size-border-width) solid var(--yukima-toc-border);
  border-radius: var(--yukima-radius-md);
  box-shadow: 0 var(--yukima-size-1) var(--yukima-size-2) var(--yukima-shadow);
}

.topic-tag {
  display: inline-block;
  padding: var(--yukima-size-1) var(--yukima-size-4);
  background-color: var(--yukima-link);
  border: none;
  border-radius: 16px;
  font-family: 'LiShu', serif;
  font-size: var(--yukima-size-font-sm);
  color: var(--yukima-button-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.topic-tag:hover {
  background-color: var(--yukima-link-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px var(--yukima-shadow-hover);
}

.topic-tag.active {
  background: var(--yukima-gradient);
  font-weight: bold;
  box-shadow: 0 2px 8px var(--yukima-shadow-hover);
}

/* ===== 文章列表区域 ===== */
.post-list-section {
  max-width: var(--yukima-width-content);
  margin: 0 auto;
  padding: 0 var(--yukima-size-4);
}

.post-list-title {
  text-align: center;
  font-size: var(--yukima-size-font-lg);
  margin-bottom: var(--yukima-size-6);
  padding-top: var(--yukima-size-8);
  border-top: var(--yukima-size-border-width) solid var(--yukima-border);
  color: var(--yukima-title);
  font-family: 'Noto Serif', serif;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .topics-tags {
    padding: var(--yukima-size-3);
    gap: var(--yukima-size-2);
  }
  
  .topic-tag {
    padding: var(--yukima-size-1) var(--yukima-size-3);
    font-size: var(--yukima-size-font-xs);
  }
}

/* ===== 平滑滚动 ===== */
html {
  scroll-behavior: smooth;
}

/* ===== 搜索高亮 ===== */
.highlight {
  background: var(--yukima-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

/* ===== 网站统计模块 ===== */
.site-stats-section {
  max-width: 400px; 
  margin: 0 auto var(--yukima-size-10);
  padding: 0 var(--yukima-size-4);
}

.site-stats {
  /* 毛玻璃 */
  background: rgba(69, 183, 170, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* 青色发光边框 */
  border: 1px solid rgba(69, 183, 170, 0.3);
  border-radius: 16px;
  padding: var(--yukima-size-3); 
  
  /* 青色光晕shade */
  box-shadow: 
    0 8px 32px rgba(69, 183, 170, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* 过渡动画 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 渐变光晕light cyan */
.site-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(72, 209, 204, 0.05) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.site-stats:hover::before {
  opacity: 1;
}

.site-stats:hover {
  /* 3D悬浮 */
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(69, 183, 170, 0.2),
    0 0 0 1px rgba(69, 183, 170, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(72, 209, 204, 0.5);
}

.stats-title {
  color: var(--yukima-title);
  font-size: var(--yukima-size-font-sm);
  font-weight: 600;
  margin: 0 0 var(--yukima-size-3) 0; 
  padding-bottom: var(--yukima-size-2);
  border-bottom: 1px solid rgba(69, 183, 170, 0.2);
  font-family: 'Noto Serif', serif;
  text-align: center;
  opacity: 0;
  animation: fadeInDown 0.6s ease forwards;
}

.stats-grid {
  display: grid;
  gap: var(--yukima-size-2); 
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--yukima-size-1) var(--yukima-size-1);
  border-bottom: 1px solid rgba(69, 183, 170, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* 每个统计项依次淡入 */
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-item:nth-child(5) { animation-delay: 0.5s; }

.stat-item:last-child {
  border-bottom: none;
}

.stat-item:hover {
  padding-left: var(--yukima-size-2);
  background: rgba(69, 183, 170, 0.05);
  border-radius: 8px;
}

.stat-label {
  color: var(--yukima-text);
  font-size: var(--yukima-size-font-xs); 
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.stat-item:hover .stat-label {
  opacity: 1;
}

.stat-value {
  color: rgb(72, 209, 204); /* 亮青色 */
  font-weight: 600;
  font-size: var(--yukima-size-font-sm); 
  font-family: 'Courier New', 'Consolas', monospace;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(72, 209, 204, 0.3);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(72, 209, 204, 0.5);
}

/* black theme */
[data-theme="dark"] .site-stats {
  background: rgba(30, 48, 45, 0.6);
  border-color: rgba(100, 200, 190, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .site-stats:hover {
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(100, 255, 218, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-value {
  color: rgb(100, 255, 218);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

[data-theme="dark"] .stat-item:hover .stat-value {
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.6);
}

/* 淡入动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 登录 / 访问量 / 点赞 */
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  vertical-align: middle;
  display: none;
  margin-left: 8px;
}

.auth-btn {
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.like-btn.liked {
  color: #e05;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .site-stats-section {
    max-width: 100%;
  }
  
  .site-stats {
    padding: var(--yukima-size-3);
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .stat-value {
    font-size: 12px;
  }
}