/*
Theme Name: BlackTower 黑塔
Theme URI: https://example.com/blacktower
Description: 黑塔风格主题 - 知识与智慧的殿堂
Version: 1.0
Author: Herta
Author URI: https://example.com
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: dark, purple, fantasy, library, responsive
Typecho Theme
*/

/* 黑塔风格主题样式 */
:root {
  --bg-primary: #0b0d12;
  --bg-secondary: #1a1c27;
  --bg-card: rgba(26, 28, 39, 0.8);
  --text-primary: #e6e6eb;
  --text-secondary: #b4b4c0;
  --accent-purple: #b48cff;
  --accent-blue: #8cc8ff;
  --accent-gold: #ffd700;
  --border-color: rgba(180, 140, 255, 0.2);
  --glow-purple: 0 0 15px rgba(180, 140, 255, 0.3);
  --glow-blue: 0 0 15px rgba(140, 200, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #0b0d12 0%, #1a1c27 50%, #2a2c37 100%);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 添加星空背景效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--accent-purple), transparent),
    radial-gradient(2px 2px at 60px 70px, var(--accent-blue), transparent),
    radial-gradient(1px 1px at 50px 160px, var(--text-primary), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--text-primary), transparent),
    radial-gradient(2px 2px at 130px 80px, var(--accent-gold), transparent),
    radial-gradient(2px 2px at 160px 120px, var(--accent-purple), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.3;
  z-index: -1;
  animation: twinkle 10s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--accent-blue);
  text-shadow: var(--glow-blue);
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-purple);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
  background-color: var(--accent-blue);
}

/* 头部样式 */
.site-header {
  padding: 1rem 0;
  text-align: center;
  background: rgba(18, 18, 30, 0.9);
  border-bottom: 2px solid rgba(147, 112, 219, 0.3);
}

.logo-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.logo-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 顶部导航栏样式 */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  font-family: 'Courier New', monospace;
}

.logo a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* 导航菜单样式 */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 搜索功能 */
#search {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(147, 112, 219, 0.5);
  border-radius: 8px;
  background: rgba(30, 30, 50, 0.8);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #9370db;
  box-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

.search-submit {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #9370db, #7b68ee);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: linear-gradient(135deg, #7b68ee, #9370db);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.4);
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.current {
  color: #9370db;
  background: rgba(147, 112, 219, 0.1);
  transform: translateY(-2px);
}

/* 内容区域布局 */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 主内容区 */
.main-content {
  width: 100%;
  grid-column: 1;
}

/* 侧边栏样式 */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  grid-column: 2;
  width: 100%;
}

.widget {
  background: rgba(30, 30, 50, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(147, 112, 219, 0.3);
  backdrop-filter: blur(10px);
}

.widget-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(147, 112, 219, 0.5);
  text-align: center;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget-list li {
  transition: all 0.3s ease;
}

.widget-list li:hover {
  transform: translateX(5px);
}

.widget-list a {
  color: #b0a8d0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget-list a:hover {
  color: #9370db;
}

/* 侧边栏搜索 */
#sidebar #search {
  margin-bottom: 0;
}

#sidebar .text {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(147, 112, 219, 0.5);
  border-radius: 8px;
  background: rgba(20, 20, 35, 0.8);
  color: #ffffff;
  outline: none;
  transition: all 0.3s ease;
}

#sidebar .text:focus {
  border-color: #9370db;
  box-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

#sidebar .submit {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #9370db, #7b68ee);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

#sidebar .submit:hover {
  background: linear-gradient(135deg, #7b68ee, #9370db);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.4);
}

/* 评论样式 */
#comments {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(30, 30, 50, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(147, 112, 219, 0.3);
}

.comments-title {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(147, 112, 219, 0.5);
}

.comment-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(147, 112, 219, 0.3);
}

.comment-pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(147, 112, 219, 0.5);
  border-radius: 6px;
  background: rgba(20, 20, 35, 0.8);
  color: #b0a8d0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.comment-pagination a:hover,
.comment-pagination .current {
  background: rgba(147, 112, 219, 0.3);
  color: #ffffff;
  border-color: #9370db;
}

/* 评论列表 */
.comment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(25, 25, 40, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(147, 112, 219, 0.3);
  transition: all 0.3s ease;
}

.comment:hover {
  background: rgba(30, 30, 50, 0.9);
  border-color: rgba(147, 112, 219, 0.5);
  transform: translateY(-2px);
}

/* 嵌套评论列表样式 */
.children {
  list-style: none !important;
  padding-left: 20px !important;
}

/* 修复评论显示问题 - 移除头像后调整布局 */
.comment-body {
  display: block;
}

/* 评论内容 */
.comment-content {
  width: 100%;
}

.comment-text {
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--text-primary);
}

/* 嵌套评论 */
.comment .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.comment .children .comment {
  margin-bottom: 1rem;
  padding: 1rem;
  font-size: 0.95rem;
}

.comment .children .comment-author-avatar {
  width: 50px;
  height: 50px;
}

/* 评论回复 */
.comment-reply {
  margin-top: 1rem;
}

.comment-reply a {
  font-size: 0.9rem;
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-reply a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* 评论数量统计 */
.comments-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* 评论关闭提示 */
.comments-closed {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 2rem;
  background: rgba(25, 25, 40, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(147, 112, 219, 0.3);
}

/* 评论表单 */
.respond {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(25, 25, 40, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(147, 112, 219, 0.3);
}

.respond-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comment-form-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comment-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form-label {
  color: #b0a8d0;
  font-size: 0.9rem;
}

.comment-form-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(147, 112, 219, 0.5);
  border-radius: 8px;
  background: rgba(20, 20, 35, 0.8);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.comment-form-input:focus {
  border-color: #9370db;
  box-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

.comment-form-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(147, 112, 219, 0.5);
  border-radius: 8px;
  background: rgba(20, 20, 35, 0.8);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 150px;
  outline: none;
  transition: all 0.3s ease;
}

.comment-form-textarea:focus {
  border-color: #9370db;
  box-shadow: 0 0 10px rgba(147, 112, 219, 0.3);
}

.comment-form-submit-btn {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #9370db, #7b68ee);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-form-submit-btn:hover {
  background: linear-gradient(135deg, #7b68ee, #9370db);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.4);
}

.comment-logged {
  color: #b0a8d0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comment-logged a {
  color: #9370db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-logged a:hover {
  text-decoration: underline;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: stretch;
  }
  
  #search {
    justify-content: center;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .comment-form-fields {
    grid-template-columns: 1fr;
  }
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon img {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.nav nav {
  display: flex;
  gap: 32px;
}

.nav nav a {
  font-weight: 500;
  font-size: 1.1em;
}

/* 英雄区域 */
.hero {
  height: 80vh;
  position: relative;
  margin-top: 70px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.hero-background.next {
  opacity: 0;
  z-index: 1;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 18, 0.3), var(--bg-primary));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  text-align: center;
  z-index: 2;
}

.hero-mask h1 {
  font-size: 4em;
  margin-bottom: 20px;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  font-family: 'Courier New', monospace;
  animation: fadeInDown 1s ease;
}

.hero-mask p {
  font-size: 1.3em;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 24px;
  position: relative;
}

/* 黑塔桌面宠物 */
.heita-side {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 200px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
}

.heita-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(180, 140, 255, 0.5));
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
  transform-origin: center bottom;
  pointer-events: auto;
  cursor: pointer;
}

/* 黑塔旋转动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.heita-image.spin {
  animation: spin 1s ease-in-out;
}

/* 点击计数样式 */
/* 点击计数功能已移除 */

/* 黑塔转圈圈动画 */
@keyframes rotateAround {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100vw) translateY(0) rotate(360deg);
    opacity: 0;
  }
}

.heita-rotate-gif {
  position: fixed;
  width: 100px;
  height: 100px;
  z-index: 1000;
  pointer-events: none;
  animation: rotateAround 5s linear forwards;
}

/* 全屏发射的GIF样式 */
.heita-full-launch-gif {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.8;
  transform: translate(0, 0) rotate(0deg);
  transition: transform 5s ease-out;
}

/* 文章网格布局 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  transition: all 0.3s ease;
}

/* 点击卡片时其他卡片模糊效果 */
.posts-grid.selected .post-card {
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.posts-grid.selected .post-card.selected {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
}

/* 文章卡片样式 */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 5;
  cursor: pointer;
}

/* 星魂碎片样式 */
.star-soul-shard {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1;
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 15px rgba(180, 140, 255, 0.8)) brightness(1.3);
}

/* 四个星魂碎片的初始位置 - 完全移到卡片外部 */
.star-soul-shard.shard-1 {
  top: -50px;
  left: -50px;
  transform: scale(0) rotate(-180deg);
}

.star-soul-shard.shard-2 {
  top: -50px;
  right: -50px;
  transform: scale(0) rotate(180deg);
}

.star-soul-shard.shard-3 {
  bottom: -50px;
  left: -50px;
  transform: scale(0) rotate(180deg);
}

.star-soul-shard.shard-4 {
  bottom: -50px;
  right: -50px;
  transform: scale(0) rotate(-180deg);
}

/* 卡片点击效果 - 放大居中 */
.post-card.selected {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(180, 140, 255, 0.15), var(--glow-purple);
  z-index: 20;
}

.post-card.selected::before {
  transform: scaleX(1);
}

/* 点击时四个星魂碎片的位置和动画 - 完全在卡片外部 */
.post-card.selected .star-soul-shard.shard-1 {
  opacity: 0.9;
  transform: scale(1) rotate(0deg) translate(0, 0);
  animation: floatShard1 3s ease-in-out infinite;
  z-index: 1;
}

.post-card.selected .star-soul-shard.shard-2 {
  opacity: 0.9;
  transform: scale(1) rotate(0deg) translate(0, 0);
  animation: floatShard2 3s ease-in-out infinite 0.5s;
  z-index: 1;
}

.post-card.selected .star-soul-shard.shard-3 {
  opacity: 0.9;
  transform: scale(1) rotate(0deg) translate(0, 0);
  animation: floatShard3 3s ease-in-out infinite 1s;
  z-index: 1;
}

.post-card.selected .star-soul-shard.shard-4 {
  opacity: 0.9;
  transform: scale(1) rotate(0deg) translate(0, 0);
  animation: floatShard4 3s ease-in-out infinite 1.5s;
  z-index: 1;
}

/* 四个星魂碎片的漂浮动画 - 围绕卡片外部浮动 */
@keyframes floatShard1 {
  0%, 100% {
    transform: scale(1) rotate(0deg) translate(0, 0);
  }
  50% {
    transform: scale(1.1) rotate(5deg) translate(-10px, -10px);
  }
}

@keyframes floatShard2 {
  0%, 100% {
    transform: scale(1) rotate(0deg) translate(0, 0);
  }
  50% {
    transform: scale(1.1) rotate(-5deg) translate(10px, -10px);
  }
}

@keyframes floatShard3 {
  0%, 100% {
    transform: scale(1) rotate(0deg) translate(0, 0);
  }
  50% {
    transform: scale(1.1) rotate(-5deg) translate(-10px, 10px);
  }
}

@keyframes floatShard4 {
  0%, 100% {
    transform: scale(1) rotate(0deg) translate(0, 0);
  }
  50% {
    transform: scale(1.1) rotate(5deg) translate(10px, 10px);
  }
}

/* 卡片装饰元素 */
.card-decoration {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5em;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.post-card.selected .card-decoration {
  opacity: 0.8;
  transform: rotate(180deg);
}

/* 阅读更多按钮 */
.read-more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(180, 140, 255, 0.4);
  color: white;
}

.read-more::after {
  display: none;
}

/* 英雄区域装饰 */
.hero-decoration-top,
.hero-decoration-bottom {
  font-size: 2em;
  margin: 16px 0;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(180, 140, 255, 0.1), var(--glow-purple);
}

.post-card:hover::before {
  transform: scaleX(1);
}

.post-card h2 {
  margin-bottom: 12px;
  font-size: 1.8em;
  color: var(--accent-blue);
}

.post-card .meta {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 16px;
  font-style: italic;
}

.post-card p {
  color: var(--text-primary);
  line-height: 1.8;
}

/* 文章页面样式 */
.post {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

/* 文章头部 */
.post-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.post-decoration {
  font-size: 1.5em;
  margin-bottom: 16px;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.post-decoration-bottom {
  font-size: 1.3em;
  margin-top: 24px;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite 1s;
}

/* 文章元信息 */
.post .meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* 文章底部 */
.post-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* 文章标签 */
.post-tags {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.post-tags a {
  background: rgba(180, 140, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

.post-tags a:hover {
  background: rgba(180, 140, 255, 0.2);
}

/* 评论区域 */
.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

/* 页面头部 */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.page-decoration {
  font-size: 1.5em;
  margin-bottom: 16px;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

/* 页面底部 */
.page-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.post h1 {
  font-size: 2.5em;
  margin-bottom: 24px;
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  text-align: center;
}

.post .meta {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.content {
  color: var(--text-primary);
  line-height: 1.9;
  font-size: 1.1em;
}

.content h2 {
  color: var(--accent-purple);
  margin: 40px 0 20px;
  font-size: 1.6em;
}

.content h3 {
  color: var(--accent-blue);
  margin: 30px 0 15px;
  font-size: 1.3em;
}

.content p {
  margin-bottom: 20px;
}

.content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.content blockquote {
  border-left: 3px solid var(--accent-purple);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.content ul, .content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content li {
  margin-bottom: 10px;
}

/* 分页样式 */
.pagination {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.pagination a {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: rgba(180, 140, 255, 0.1);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

/* 归档页面网格布局 */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.archive-column {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-column h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(147, 112, 219, 0.5);
}

/* 最近发布的文章列表 */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateX(5px);
}

.post-date {
  font-size: 0.9rem;
  color: #b0a8d0;
  min-width: 40px;
}

.post-title {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title:hover {
  color: #9370db;
}

/* 最近回复列表 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
}

.comment-item:hover {
  transform: translateX(5px);
}

.comment-date {
  font-size: 0.9rem;
  color: #b0a8d0;
  min-width: 40px;
  margin-top: 0.2rem;
}

.comment-content {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.comment-content:hover {
  color: #9370db;
}

/* 底部样式 */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
}

.site-footer p {
  font-size: 0.9em;
}

/* 备案号样式 */
.icp-record {
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 12px 20px;
  }
  
  .nav nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    height: 60vh;
    margin-top: 100px;
  }
  
  .hero-mask {
    padding: 40px;
  }
  
  .hero-mask h1 {
    font-size: 2.5em;
  }
  
  .hero-mask p {
    font-size: 1.1em;
  }
  
  .container {
    padding: 40px 20px;
  }
  
  .post-card {
    padding: 24px;
  }
  
  .post {
    padding: 24px;
  }
  
  .post h1 {
    font-size: 2em;
  }
}