@charset "utf-8";

/* 重置样式 */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
code,
em,
img,
small,
strong,
ol,
ul,
li,
form,
label,
table,
caption,
article,
aside,
footer,
header,
nav,
section,
input,
button,
textarea {
  margin: 0px;
  padding: 0px;
  border: 0px;
  vertical-align: baseline;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding-top: 70px;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.3s;
}

a:hover {
  color: #2980b9;
}

/* 头部样式 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header .container {
  position: relative;
  /* overflow: hidden; */
}

.logo {
  float: left;
  height: 40px;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.logo a {
  font-size: 24px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1;
}

/* 桌面导航 */
.nav-desktop {
  position: absolute;
  right: 250px;
  /* 搜索框宽度加边距 */
  text-align: right;
  top: 50%;
  transform: translateY(-50%);
}

.nav-desktop ul {
  list-style: none;
  /* display: inline-block; */
  vertical-align: middle;
}

.nav-desktop li {
  display: inline-block;
  margin: 0 10px;
  position: relative;
}

.nav-desktop a {
  color: #555;
  font-weight: 500;
  padding: 8px 12px;
  position: relative;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-desktop a.active,
.nav-desktop a:hover {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.nav-desktop a.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 70%;
  height: 2px;
  background-color: #3498db;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 搜索框 */
.desktop-search {
  float: right;
  height: 40px;
  display: flex;
  align-items: center;
}

.search-box form {
  overflow: hidden;
}

.search-box input {
  float: left;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  width: 200px;
  font-size: 16px;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.search-box button {
  float: left;
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: #2980b9;
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 21px;
  justify-content: space-between;
  float: right;
  margin-top: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 3px;
  transition: all 0.3s;
}

/* 移动端导航 */
.nav-mobile {
  display: none;
  background-color: #fff;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: background-color 0.3s;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile li {
  border-bottom: 1px solid #eee;
}

.nav-mobile a {
  display: block;
  padding: 15px 20px;
  color: #555;
  transition: background-color 0.3s, color 0.3s;
}

.nav-mobile a.active,
.nav-mobile a:hover {
  background-color: #f5f5f5;
  color: #3498db;
}

/* 移动端搜索框容器 */
.mobile-search-container {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  transition: background-color 0.3s, border-color 0.3s;
}

/* 移动端搜索框样式 */
.mobile-search {
  position: relative;
  width: 100%;
}

.mobile-search input {
  width: 100%;
  padding-right: 70px;
  box-sizing: border-box;
}

.mobile-search button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 60px;
  border-radius: 0 4px 4px 0;
  margin: 0;
  padding: 0;
}

/* 主要内容区域 */
.main {
  padding: 0;
}

.main .container {
  margin-top: 40px;
  overflow: hidden;
}

/* 博客文章列表 */
.blog-posts {
  float: left;
  width: calc(100% - 330px);
  min-width: 300px;
  margin-right: 30px;
}

/* 小说封面区域 */
.novel-covers {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s, border-color 0.3s;
}

.covers-container {
  overflow: hidden;
  /* margin: 0 -7.5px; */
}

.cover-item {
  float: left;
  width: calc(25% - 15px);
  margin: 0 7.5px 15px;
  text-align: center;
}

.cover-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.cover-item:hover .cover-overlay {
  opacity: 1;
}

.cover-item:hover .cover-image img {
  transform: scale(1.05);
}

.read-btn {
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.read-btn:hover {
  background-color: #2980b9;
  color: white;
}

.cover-item h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #3498db;
  transition: color 0.3s;
}

.cover-item p {
  font-size: 13px;
  color: #7f8c8d;
  transition: color 0.3s;
}

/* 文章卡片 */
.post-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  padding: 25px;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content h2 {
  margin-bottom: 10px;
  font-size: 20px
}

/* 无搜索结果样式 */
.no-results {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 40px 25px;
  margin-bottom: 30px;
  text-align: center;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.no-results-icon {
  font-size: 48px;
  color: #3498db;
  margin-bottom: 20px;
  opacity: 0.8;
}

.no-results p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.6;
}

.no-results a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.no-results a:hover {
  color: #2980b9;
  text-decoration: underline;
  font-weight: 400;
}

.post-content h2 a {
  color: #2c3e50;
}

.post-content h2 a:hover {
  color: #3498db;
}

.post-meta {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.post-excerpt {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.7;
  transition: color 0.3s;
}

/* 文章底部区域 */
.post-footer {
  overflow: hidden;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  transition: border-color 0.3s;
}

.read-more {
  float: left;
  display: inline-block;
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.read-more:hover {
  background-color: #2980b9;
  color: white;
}

/* 文章标签 */
.post-tags {
  float: right;
  overflow: hidden;
}

.post-tag {
  float: left;
  display: inline-block;
  padding: 4px 10px;
  background-color: #f5f5f5;
  color: #555;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 5px;
  transition: all 0.3s;
}

.post-tag:hover {
  background-color: #3498db;
  color: white;
}

/* 加载更多按钮 */
.load-more-container {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 面包屑导航 */
.breadcrumb-nav {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 15px 25px;
  margin-bottom: 30px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.breadcrumb-nav ul {
  list-style: none;
  overflow: hidden;
}

.breadcrumb-nav li,
.breadcrumb-nav li h1 {
  float: left;
  margin-right: 5px;
  font-size: 14px;
  font-weight: 400;
}

.breadcrumb-nav li:after {
  content: ">";
  margin-left: 5px;
  color: #7f8c8d;
}

.breadcrumb-nav li:last-child:after {
  content: "";
}

.breadcrumb-nav a {
  color: #3498db;
}

.breadcrumb-nav a:hover {
  color: #2980b9;
}

.breadcrumb-nav .active {
  color: #7f8c8d;
}

/* 热门文章列表 */
.hot-articles {
  list-style: none;
}

.hot-articles li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: border-color 0.3s;
}

.hot-articles li:last-child {
  border-bottom: none;
}

.hot-articles a {
  color: #555;
  transition: color 0.3s;
}

.hot-articles a:hover {
  color: #3498db;
}

.view-count {
  float: right;
  color: #7f8c8d;
  line-height: 24px;
  font-size: 12px;
}

/* 分页样式 */
.pagination {
  text-align: center;
  margin: 40px 0;
  overflow: hidden;
}

.pagination-inner {
  display: inline-block;
  overflow: hidden;
}

.pagination a {
  float: left;
  padding: 10px 15px;
  background-color: #fff;
  color: #555;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  font-size: 14px;
  text-decoration: none;
  margin: 0 3px 5px;
}

.pagination a:hover,
.pagination a.active {
  background-color: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination .page-prev,
.pagination .page-next {
  font-weight: 500;
}

/* 侧边栏 */
.sidebar {
  float: right;
  width: 300px;
}

.sidebar-widget {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.sidebar-widget h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
  transition: color 0.3s, border-color 0.3s;
}

.about-me {
  text-align: center;
}

.about-me img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* 社交媒体区域 */
.social-media {
  margin-top: 20px;
  position: relative;
  text-align: center;
  display: block;
}

.social-media::after {
  content: "";
  display: table;
  clear: both;
}

.social-item {
  position: relative;
  display: inline-block;
  margin: 0 10px;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.social-icon:hover {
  background-color: #3498db;
  color: white;
  transform: translateY(-3px);
}

/* 二维码样式 */
.qrcode {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.qrcode img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.qrcode p {
  margin-top: 8px;
  font-size: 12px;
  color: #7f8c8d;
  text-align: center;
}

.social-item:hover .qrcode {
  opacity: 1;
  visibility: visible;
  bottom: 45px;
}

.qrcode::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.categories li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: border-color 0.3s;
}

.categories li:last-child {
  border-bottom: none;
}

.tag-cloud {
  overflow: hidden;
}

.tag-cloud a {
  float: left;
  display: inline-block;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  margin: 0 4px 5px 0;
  font-size: 13px;
  color: #555;
  transition: all 0.3s;
}

.tag-cloud a:hover {
  background-color: #3498db;
  color: white;
}

.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 30px 0;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
  clear: both;
}

.footer img {
  vertical-align: top;
  width: 20px;
}

.footer a {
  color: #b0b0b0;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 留言按钮样式 */
.message-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-btn.show {
  opacity: 1;
  visibility: visible;
}

.message-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.message-btn svg {
  width: 20px;
  height: 20px;
}

/* 主题切换按钮位置调整 */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle.show {
  opacity: 1;
  visibility: visible;
}

.theme-toggle:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 按钮位置排列 */
.back-to-top.show {
  bottom: 30px;
  right: 30px;
}

.theme-toggle.show {
  bottom: 100px;
  right: 30px;
}

.message-btn.show {
  bottom: 170px;
  right: 30px;
}

/* 留言弹窗样式 */
.message-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.message-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.message-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
}

.submit-btn,
.cancel-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
}

/* 文章详情页样式 */
.article-detail {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.article-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  transition: border-color 0.3s;
}

.article-title {
  font-size: 28px;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s;
}

.article-meta {
  color: #7f8c8d;
  font-size: 14px;
  transition: color 0.3s;
}

.article-meta span {
  margin-right: 15px;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  transition: color 0.3s;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content pre {
  padding: 10px;
  background-color: #f5f5f5;
}

.article-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  overflow: hidden;
  transition: border-color 0.3s;
}

.tags-label {
  float: left;
  color: #7f8c8d;
  font-size: 14px;
  margin-right: 10px;
  line-height: 30px;
  transition: color 0.3s;
}

.article-tag {
  float: left;
  display: inline-block;
  padding: 5px 12px;
  background-color: #f5f5f5;
  color: #555;
  border-radius: 3px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.article-tag:hover {
  background-color: #3498db;
  color: white;
}

.article-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  overflow: hidden;
  transition: border-color 0.3s;
}

.nav-previous,
.nav-next {
  width: 50%;
}

.nav-previous {
  float: left;
  text-align: left;
}

.nav-next {
  float: right;
  text-align: right;
}

.nav-label {
  color: #7f8c8d;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-previous a,
.nav-next a {
  color: #3498db;
  transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
  color: #2980b9;
}

/* 申请友链区域 */
.links-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.link-group {
  margin-bottom: 30px;
}

.link-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s, border-color 0.3s;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.link-item {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: #f5f5f5;
  color: #555;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
}

.link-item:hover {
  background-color: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.friend-link-apply {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin: 30px 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.apply-title {
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s, border-color 0.3s;
}

.apply-info {
  margin-top: 15px;
}

.apply-info p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.apply-info ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.apply-info li {
  margin-bottom: 5px;
}

/* 深色主题样式 */
body.dark-theme {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-theme .header {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .logo a {
  color: #e0e0e0;
}

body.dark-theme .nav-desktop a {
  color: #b0b0b0;
}

body.dark-theme .nav-desktop a.active,
body.dark-theme .nav-desktop a:hover {
  color: #3498db;
}

body.dark-theme .search-box input {
  background-color: #3d3d3d;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .search-box input::placeholder {
  color: #888;
}

body.dark-theme .nav-mobile {
  background-color: #2d2d2d;
}

body.dark-theme .nav-mobile a {
  color: #b0b0b0;
}

body.dark-theme .nav-mobile a.active,
body.dark-theme .nav-mobile a:hover {
  background-color: #3d3d3d;
  color: #3498db;
}

body.dark-theme .mobile-search-container {
  background-color: #252525;
  border-color: #444;
}

body.dark-theme .novel-covers,
body.dark-theme .post-card,
body.dark-theme .sidebar-widget {
  background-color: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme .section-title,
body.dark-theme .sidebar-widget h3 {
  color: #e0e0e0;
  border-color: #444;
}

body.dark-theme .post-content h2 a {
  color: #e0e0e0;
}

body.dark-theme .post-meta {
  color: #b0b0b0;
}

body.dark-theme .post-excerpt,
body.dark-theme .cover-item p,
body.dark-theme .about-me p {
  color: #c0c0c0;
}

body.dark-theme .post-tag,
body.dark-theme .tag-cloud a {
  background-color: #3d3d3d;
  color: #c0c0c0;
}

body.dark-theme .post-tag:hover,
body.dark-theme .tag-cloud a:hover {
  background-color: #3498db;
  color: white;
}

body.dark-theme .social-icon {
  background-color: #3d3d3d;
  color: #c0c0c0;
}

body.dark-theme .qrcode {
  background-color: #3d3d3d;
}

body.dark-theme .qrcode p {
  color: #b0b0b0;
}

body.dark-theme .qrcode::after {
  border-top-color: #3d3d3d;
}

body.dark-theme .categories li {
  border-color: #444;
}

body.dark-theme .footer {
  background-color: #252525;
  color: #b0b0b0;
}

body.dark-theme .modal-content {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

body.dark-theme .modal-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

body.dark-theme .form-group label {
  color: #e0e0e0;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background-color: #3d3d3d;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

body.dark-theme .cancel-btn {
  background-color: #3d3d3d;
  color: #b0b0b0;
  border-color: #555;
}

body.dark-theme .cancel-btn:hover {
  background-color: #4d4d4d;
}

body.dark-theme .breadcrumb-nav {
  background-color: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme .breadcrumb-nav li:after {
  color: #b0b0b0;
}

body.dark-theme .breadcrumb-nav .active {
  color: #b0b0b0;
}

body.dark-theme .pagination a {
  background-color: #2d2d2d;
  color: #b0b0b0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-theme .pagination a:hover,
body.dark-theme .pagination a.active {
  background-color: #3498db;
  color: white;
}

body.dark-theme .hot-articles li {
  border-color: #444;
}

body.dark-theme .hot-articles a {
  color: #b0b0b0;
}

body.dark-theme .hot-articles a:hover {
  color: #3498db;
}

body.dark-theme .view-count {
  color: #888;
}

body.dark-theme .article-detail {
  background-color: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme .article-header {
  border-color: #444;
}

body.dark-theme .article-title {
  color: #e0e0e0;
}

body.dark-theme .article-meta {
  color: #b0b0b0;
}

body.dark-theme .article-content {
  color: #c0c0c0;
}

body.dark-theme .article-content pre {
  padding: 10px;
  background-color: #3d3d3d;
}

body.dark-theme .article-tags {
  border-color: #444;
}

body.dark-theme .tags-label {
  color: #b0b0b0;
}

body.dark-theme .article-tag {
  background-color: #3d3d3d;
  color: #c0c0c0;
}

body.dark-theme .article-tag:hover {
  background-color: #3498db;
  color: white;
}

body.dark-theme .article-navigation {
  border-color: #444;
}

body.dark-theme .nav-label {
  color: #b0b0b0;
}

body.dark-theme .nav-previous a,
body.dark-theme .nav-next a {
  color: #3498db;
}

body.dark-theme .nav-previous a:hover,
body.dark-theme .nav-next a:hover {
  color: #2980b9;
}

body.dark-theme .links-container {
  background-color: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme .group-title {
  color: #e0e0e0;
  border-color: #444;
}

body.dark-theme .link-item {
  background-color: #3d3d3d;
  color: #c0c0c0;
}

body.dark-theme .link-item:hover {
  background-color: #3498db;
  color: white;
}

body.dark-theme .friend-link-apply {
  background-color: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-theme .apply-title {
  color: #e0e0e0;
  border-color: #444;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .blog-posts {
    width: 100%;
    margin-right: 0;
    margin-bottom: 40px;
    float: none;
  }

  .sidebar {
    width: 100%;
    float: none;
  }

  .cover-item {
    width: calc(50% - 15px);
  }

  .cover-image {
    height: 280px;
  }

  .social-media {
    text-align: center;
  }

  .social-item {
    display: inline-block;
    float: none;
    margin: 5px 10px;
  }

  .nav-desktop {
    transform: translateX(-62%);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .desktop-search {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile.active {
    display: block;
  }

  .cover-item {
    width: 100%;
    float: none;
  }

  .cover-image {
    height: 300px;
  }

  .post-footer {
    display: block;
  }

  .post-tags {
    float: right;
    margin-bottom: 10px;
  }

  .read-more {
    float: left;
    display: block;
    text-align: center;
  }

  .load-more-btn {
    width: 100%;
    padding: 15px;
  }

  .social-media {
    text-align: center;
  }

  .social-item {
    display: inline-block;
    float: none;
    margin: 5px 8px;
  }

  .qrcode {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 200px;
  }

  .social-item:hover .qrcode {
    bottom: 50%;
  }

  .qrcode::after {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .back-to-top.show {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .theme-toggle.show {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 14px;
  }

  .message-btn.show {
    bottom: 140px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .message-btn svg {
    width: 18px;
    height: 18px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .cancel-btn {
    width: 100%;
  }

  .breadcrumb-nav {
    padding: 12px 15px;
  }

  .breadcrumb-nav li {
    font-size: 13px;
  }

  .pagination {
    gap: 3px;
  }

  .pagination a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .article-detail {
    padding: 20px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-meta span {
    display: block;
    margin-bottom: 5px;
  }

  .article-content {
    font-size: 15px;
  }

  .nav-previous,
  .nav-next {
    width: 100%;
    float: none;
    margin-bottom: 15px;
  }

  .nav-next {
    text-align: left;
  }

  .link-list {
    justify-content: center;
  }

  .link-item {
    flex: 1 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
  }
}

.p-class {
  font-size: 14px;
  color: #b0b0b0;
}

/* 分页样式 */

#pagi {
  text-align: center;
  margin: 20px 0;
}

#pagi a,
#pagi b {
  border-radius: 10px;
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px;
  border: 1px solid #ddd;
  text-decoration: none;
}

#pagi a:hover {
  background-color: #f5f5f5;
}

.zit {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* 上一章文章下一章文章导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  /* margin: 40px 0; */
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  color: #1890ff;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #1890ff;
  transition: width 0.3s ease;
}

.nav-item:hover::before {
  width: 100%;
}

.nav-item.prev {
  text-align: left;
}

.nav-item.next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-icon {
  font-size: 24px;
  margin: 0 15px;
  color: #999;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
  transform: translateX(-5px);
}

.nav-item.next:hover .nav-icon {
  transform: translateX(5px);
}

.nav-content {
  flex: 1;
}

.nav-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 5px;
}

.nav-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


/* 响应式设计 */
@media (max-width: 768px) {
  .article-nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item.next {
    flex-direction: row;
  }

  .nav-icon {
    margin: 0 10px;
  }
}

/* 添加一些动画效果 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-nav {
  animation: slideIn 0.5s ease;
}