@import url(css/all.min.css);
:root {
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-body: #f7f7fb;
  --bg-secondary: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --textshadow: 1px 1px 1px rgba(0,0,0,.3);
}
body.night {
  --text-color: #f9fafb;
  --text-light: #d1d5db;
  --bg-color: #1f2937;
  --bg-body: #131313;
  --bg-secondary: #111827;
  --border-color: #374151;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-body);
  transition: var(--transition);
}
a {
  color: inherit;
  text-decoration: none;
  transition-duration: .25s;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
a:hover {
  color: var(--primary-color)
}
img, video {
  max-width: 100%
}
table {
  border-collapse: collapse;
  margin-bottom: 1rem;
}
table, table td, table th {
  border: 1px solid rgba(170, 172, 182, 0.15)
}
table td, table th {
  padding: 6px
}
table th {
  background-color: rgba(277, 277, 277, 0.1)
}
sup {
  font-size: .5em;
  font-weight: normal;
  margin-left: 4px;
  opacity: .8
}
.navbar {
  background: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.slideUp {
  top: -72px;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  gap: 20px
}
.logo, .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  font-weight: bold;
  text-decoration: none;
}
.logo h1, .logo h2 {
  font-size: 1.75rem;
}
.logo img {
  height: 40px;
}
.logo img.nightlogoimg {
  display: none;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
}
.dot i:before {
  display: inline-block;
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
}
.nav-menu li:hover .dot i:before {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}
.nav-menu li {
  position: relative;
  padding: 6px 0;
}
.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-color);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  list-style: none;
}
.nav-menu li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li {
  padding: 0;
}
.dropdown a {
  padding: 10px 20px;
  display: block;
}
.dropdown a:hover {
  background: var(--bg-secondary);
}
.nav-right {
  width: 260px
}
.ico-box {
  position: absolute;
  right: 0;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-box {
  position: relative;
}
.search-box input {
  padding: 8px 35px 8px 15px;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-color);
  transition: var(--transition);
  width: 200px;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  width: 250px;
}
.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  background-color: transparent;
}
.search-box i {
  color: var(--text-light);
}
.search-toggle, .theme-toggle {
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
}
.search-toggle:hover, .theme-toggle:hover, .search-toggle.active {
  background: var(--primary-color);
  color: white;
}
.theme-toggle:hover {
  transform: rotate(180deg);
}
.search-toggle {
  display: none
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}
/* Hero区域 */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, var(--hero-colora), var(--hero-colorb));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
}
.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  animation: fadeInUp 1s ease;
}
.hero-title,.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: var(--textshadow);
}
.hero-subtitle,.page-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: var(--textshadow);
}
.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
/* 轮播 */
.hero-slider {
  position: relative;
  height: 500px;
  font-size: 1.875rem;
  overflow: hidden
}
.hero-slider .slide {
  display: block;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center
}
.hero-slider .swiper-wrapper {
  height: 100%
}
.hero-slider .swiper-slide {
  height: 100%
}
.hero-slider .swiper-pagination {
  position: absolute;
  bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center
}
.hero-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .6);
  opacity: 1
}
.hero-slider .swiper-pagination-bullet-active {
  background: #fff;
  height: 10px;
  width: 10px;
}
.hero-slider .slide_text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px 15px 40px;
  text-align: center;
  z-index: 1;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .3));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .3));
}
.hero-slider .slide_text a {
  color: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 面包屑 */
.breadcrumb {
  color: var(--text-light);
  padding: 12px 0;
  font-size: 14px;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px
}
.layout {
  overflow: hidden;
}
/* 主内容 */
.main-content {
  padding: 60px 0 40px;
}
.main {
  float: left;
  width: calc(100% + 20px);
  overflow: hidden;
  padding-left: 20px;
  margin-left: -20px;
}
.posts-section {
  margin-right: 360px;
  margin-bottom: 25px
}
.sidebar {
  width: 330px;
  float: right;
  display: block;
  /* position: relative; */
  z-index: 1;
  margin-left: -330px;
  font-size: 15px;
}
/* 文章区域 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--text-color);
}
.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-buttons a {
  padding: 8px 20px;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: .8rem
}
.filter-buttons a:hover, .filter-buttons a.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}
.post-card {
  display: flex;
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-direction: column;
  gap: 20px;
  position: relative;
  justify-content: space-between;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-content {
  display: flex;
  padding: 0 25px 25px;
  gap: 10px;
  flex-direction: column;
  flex: 1;
  justify-content: space-evenly;
}
.post-meta {
  display: flex;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--text-light);
}
.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-category, .isTop {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
}
.isTop {
  background: var(--secondary-color);
}
.post-category:hover {
  background: var(--secondary-color);
  color: white;
}
.post-title {
  font-size: 1.25rem;
  color: var(--text-color);
  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}
.post-title a:hover {
  color: var(--primary-color);
}
.post-excerpt {
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
    height: 28px;
}
.tag {
  padding: 4px 10px;
  background: var(--bg-secondary);
  color: var(--text-light);
  border-radius: 5px;
  font-size: 0.75rem;
}
.pageload {
  padding: 0;
  position: relative;
  height: 50px;
  margin: 40px 30% 10px 30%;
  text-align: center;
}
.pageload .view-more-button, .pageload .page-load-status p {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: inline-block;
  margin: 0;
  padding: 7px;
  border: 0;
  border-radius: 25px;
  vertical-align: middle;
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  line-height: 2;
}
.pageload .view-more-button {
  cursor: pointer;
}
.pageload .page-load-status p {
  z-index: 1;
}
.pageload .page-load-status p.infinite-scroll-last {
  background-color: transparent;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #333;
}
.view-more-button:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}
.jz_bs {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 25px
}
.widget[id^=side-] img, .avd img {
  vertical-align: middle;
}
/* 侧边栏 */
.sidebar-widget {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-color);
}
.sidebar-widget ul {
  list-style: none;
}
.sidebar-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-widget li:first-child {
  padding-top: 0
}
.sidebar-widget li:last-child {
  border-bottom: none;
}
.sidebar-widget a {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  transition: var(--transition);
}
.sidebar-widget a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}
.about-widget {
  text-align: center;
}
.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid var(--primary-color);
}
.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}
.author-bio {
  color: var(--text-light);
  margin-bottom: 15px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}
.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
  padding-left: unset;
}
.social-links {}
.social-links a.qrbox .qrcode {
  position: absolute;
  bottom: 50px;
  left: -50px;
  z-index: 999;
  display: none;
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1), 0 4px 8px 0 rgba(0, 0, 0, .1), 0 8px 16px 0 rgba(0, 0, 0, .1);
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
  -webkit-animation-timing-function: ease-in;
  animation-timing-function: ease-in;
  -webkit-animation-duration: .3s;
  animation-duration: .3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.social-links a.qrbox:hover .qrcode {
  display: block;
}
.sidebar-widget .popular-post-item {
  display: block;
  margin-bottom: 15px;
  padding: 0 0 15px 0;
}
.sidebar-widget .popular-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-widget .popular-post-item a {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.sidebar-widget .popular-post-item a:hover {
  opacity: 0.8;
}
.sidebar-widget .popular-post-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.sidebar-widget .popular-post-content {
  flex: 1;
}
.sidebar-widget .popular-post-title {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.sidebar-widget .popular-post-title:hover {
  color: var(--primary-color);
}
.sidebar-widget .popular-post-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
#divContorPanel div {
  text-align: center;
}
#divContorPanel .cp-hello {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 0 10px 0;
  display: inline-block
}
#divContorPanel .cp-login a, #divContorPanel .cp-vrs a {
  text-align: center;
  line-height: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 4px;
  padding: 4px 8px;
}
#divSearchPanel .widget-title {
  display: none;
}
#divSearchPanel form {
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
}
#divSearchPanel input[type="submit"] {
  border: 0;
  background: 0;
  color: #fff;
  outline: none;
  position: absolute;
  width: 29%;
  height: 40px;
  background: var(--primary-color);
  font-weight: bold;
  font-size: 15px;
}
#divSearchPanel input[type="text"] {
  border: 0;
  line-height: 40px;
  height: 40px;
  width: calc(72% - 40px);
  outline: none;
  display: inline-block;
  margin: 0 20px;
  border-radius: 0;
  background-color: #fff
}
#divArchives ul, #divNavBar ul, #divStatistics ul, #divCatalog ul, #divFavorites ul, #divLinkage ul, #divAuthors ul {
  display: flex;
  flex-wrap: wrap;
}
#divCalendar a, #divContorPanel a, #divNavBar a, #divCatalog a, #divFavorites a {
  display: inline;
}
#divArchives li, #divNavBar li, #divStatistics li, #divCatalog li, #divAuthors li, #divLinkage li, #divFavorites li {
  width: 50%;
  overflow: hidden;
}
#divArchives li:nth-child(-n+2), #divNavBar li:nth-child(-n+2), #divStatistics li:nth-child(-n+2), #divCatalog li:nth-child(-n+2), #divAuthors li:nth-child(-n+2), #divLinkage li:nth-child(-n+2), #divFavorites li:nth-child(-n+2) {
  padding-top: 0;
}
#divArchives li:last-child, #divArchives li:last-child, #divNavBar li:last-child, #divStatistics li:last-child, #divCatalog li:last-child, #divAuthors li:last-child, #divLinkage li:last-child, #divFavorites li:last-child {
  border-bottom: 1px solid var(--border-color);
}
#divNavBar ul ul, #divCatalog ul ul, #divNavBar li .dot {
  display: none
}
#divCalendar {
  padding: 10px;
  border-radius: 5px;
}
#divCalendar div {
  margin-bottom: 0;
}
#divCalendar table {
  width: 100%;
  border-collapse: collapse
}
#divCalendar caption {
  line-height: 36px;
}
#divCalendar caption a {
  font-size: 15px;
  color: #123
}
#divCalendar thead {
  background: #f6f7f8
}
#divCalendar th {
  height: 36px
}
#divCalendar td {
  height: 36px;
  text-align: center
}
#divCalendar td a {
  font-weight: 700;
  color: #123
}
#divCalendar td a:hover {
  color: #f63
}
#divTags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#divTags ul li {
  display: flex;
  padding: 0;
  border: 0;
}
#divTags ul a {
  padding: 6px 15px;
  background: var(--bg-secondary);
  color: var(--text-color);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}
#divTags ul a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}
#side-new-comment-item li:last-child .widger-comment-plane {
  border: 0;
  padding-bottom: 0;
  margin-bottom: 0
}
#side-new-comment-item .widger-comment-plane p {
  opacity: .6;
  font-size: 14px;
}
#side-new-comment-item .widger-comment-plane p a {
  display: inline;
}
#side-new-comment-item .widger-comment-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap
}
#side-new-comment-item .widger-comment-user {
  display: flex
}
#side-new-comment-item .widger-avatar img {
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  width: 30px;
  height: 30px
}
#side-new-comment-item .widger-comment-name, #side-new-comment-item .widger-comment-time {
  margin-left: 5px;
  line-height: 30px
}
#side-new-comment-item .widger-comment-time {
  opacity: .6
}
#side-new-comment-item .widger-comment-excerpt {
  position: relative;
  padding: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
  background: var(--bg-secondary);
  border-radius: 3px;
}
#side-new-comment-item .widger-comment-excerpt:before {
  position: absolute;
  left: 10px;
  top: -10px;
  content: "";
  width: 0;
  height: 0;
  line-height: 0;
  border: 5px solid transparent;
  border-bottom-color: var(--bg-secondary)
}
#side-new-comment-item .widger-comment-excerpt p {
  line-height: 1.5;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis
}
#side-tui-article-item .popular-post-item a {
  display: block;
  position: relative;
}
#side-tui-article-item .popular-post-image {
  width: 100%;
  height: 158px;
  object-fit: cover;
  border-radius: 8px;
}
#side-tui-article-item .popular-post-content {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  padding: 15px;
  border-radius: 0 0 8px 8px;
  color: #fff;
  background: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .85));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .85));
}
#side-tui-article-item a:hover {
  padding-left: unset;
}
#side-tui-article-item .popular-post-title {
  color: #fff;
}
/* 文章详情页 */
.article-main {
  padding: 0 0 40px;
  min-height: calc(100vh - 400px);
}
.article-content-area {
  flex: 1;
  min-width: 0;
}
.article-detail {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}
.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}
.article-title {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: var(--text-color);
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.article-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}
.article-body {
  color: var(--text-color);
}
/* 段落样式 */
.article-body p {
  margin: 0 0 15px;
  opacity: .9;
}
.article-body p:last-child {
  margin-bottom: 0;
}
/* 标题样式 */
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
  font-weight: 600;
  line-height: 1.4;
  margin: 20px 0 16px;
}
.article-body h1 {
  font-size: 2em;
}
.article-body h2 {
  font-size: 1.75em;
}
.article-body h3 {
  font-size: 1.5em;
}
.article-body h4 {
  font-size: 1.25em;
}
.article-body h5 {
  font-size: 1.1em;
}
.article-body h6 {
  font-size: 1em;
}
/* 引用样式 */
.article-body blockquote {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  border-radius: 10px;
  font-style: italic;
}
.article-body blockquote p {
  margin: 0;
}
/* 列表样式 */
.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 20px;
}
.article-body ul {
  list-style-type: disc;
}
.article-body ol {
  list-style-type: decimal;
}
.article-body li {
  margin-bottom: 8px;
  list-style: disc
}
.article-body li:last-child {
  margin-bottom: 0;
}
.article-body ul ul, .article-body ol ol {
  margin: 8px 0;
}
/* 表格样式 */
.article-body table {
  width: 100%;
  margin: 16px 0;
}
.article-body th, .article-body td {
  padding: 12px;
}
.article-body th {
  background: var(--bg-secondary);
}
.article-body tr:nth-child(even) {
  background: var(--bg-secondary);
}
/* 图片样式 */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* 分割线样式 */
.article-body hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--border-color)
}
/* 链接样式 */
.article-body a {
  color: var(--primary-color);
  transition: color 0.3s;
}
.article-body a:hover {
  color: var(--secondary-color)
}
/* 强调样式 */
.article-body strong {
  font-weight: 600;
  color: var(--secondary-color);
}
.article-body em {
  font-style: italic;
  color: var(--text-light)
}
.article-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}
.copyright {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  color: var(--text-light);
  word-break: break-all;
}
.news-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.news-nav-prev, .news-nav-next {
  border-radius: 12px;
  background-color: var(--bg-color);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-nav-prev:hover, .news-nav-next:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-nav-prev a span, .news-nav-next a span {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.news-nav-prev a h4, .news-nav-next a h4 {
  font-size: 18px;
  margin: 0;
}
.news-nav-next {
  text-align: right;
}
.related .card .thumb {
  padding-bottom: 50%;
}
.related h4 {
  -webkit-line-clamp: 1;
}
/* 相关文章 */
.related-posts {
  margin-bottom: 40px;
}
.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}
.related-posts .post-card h3 {
  margin-bottom: 0
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
/* 评论区 */
.comments-section {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-color);
}
/* 评论列表 */
.comments-list {
  margin-bottom: 40px;
}
.comment {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.comment.reply {
  margin-left: 0;
}
.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.comment-body {
  flex: 1;
  background: var(--bg-secondary);
  padding: 15px 20px;
  border-radius: 12px;
  position: relative;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}
.comment-badge {
  padding: 2px 8px;
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.comment-content {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 12px;
}
.comment-content p {
  margin: 0;
}
.reply-to {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 5px;
}
.comment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px
}
.reply-btn, .like-btn {
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: var(--transition);
}
.reply-btn:hover {
  color: var(--primary-color);
  background: var(--bg-color);
}
/* 楼中楼回复 */
.comments-list .comment .comment {
  margin: 15px 0;
  padding-left: 20px;
  border-left: 3px solid var(--border-color);
}
.comments-list .comment .reply-frm {
  margin: 15px 0;
}
.comments-list .comment .comment:last-child {
  margin-bottom: 0;
}
.comments-list .comment .comment-avatar {
  width: 40px;
  height: 40px;
}
.comment-body .comment-body {
  background: var(--bg-color);
}
.comment-body .comment-body .comment-body {
  background: var(--bg-secondary);
}
.comment-body .comment-body .comment-body .comment-body {
  background: var(--bg-color);
}
/* 发表评论表单 */
.comment-form-wrapper h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}
.comment-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 120px;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--text-color);
  resize: vertical;
  font-size: 0.95rem;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.form-row.Verify {
  grid-template-columns: 1fr 1fr;
}
.comment-form input {
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-color);
  font-size: 0.95rem;
  width: 100%
}
.comment-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.submit-btn {
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
}
.cancel-btn {
  background: var(--secondary-color);
}
.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.form-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inpVerify {
  position: relative;
}
.inpVerify img.jz-code {
  position: absolute;
  right: 7px;
  bottom: 7px;
  height: 30px;
  width: auto;
}
/* 页脚 */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 20px;
  margin-top: 3px;
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text-color);
}
.footer-section p {
  color: var(--text-light);
  line-height: 1.8;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 10px;
}
.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}
.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.footer-section ul li i {
  margin-right: 10px;
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}
.back-to-top.show {
  display: flex;
}
/* 文章列表页 */
.page-header {
  background: linear-gradient(135deg, var(--hero-colora), var(--hero-colorb));
  padding: 60px 0;
  text-align: center;
  color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.page-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.page-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0
}
.list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-controls label {
  font-weight: 600;
  color: var(--text-color);
}
.sort-controls select {
  padding: 8px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.sort-controls select:focus {
  outline: none;
  border-color: var(--primary-color);
}
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.post-item {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  position: relative;
}
.post-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}
.post-item-image {
  width: 250px;
  /* height: 180px; */
  object-fit: cover;
  flex-shrink: 0;
}
.post-item-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  gap: 10px;
}
.post-item-header {
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-item .post-item-header {
  position: absolute;
  top: 15px;
  left: 15px;
}
.post-item .post-item-header.noimg {
  position: unset;
}
.post-item-title {
  font-size: 1.4rem;
  color: var(--text-color);
  font-weight: 600;
  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-item-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}
.post-item-title a:hover {
  color: var(--primary-color);
}
.post-item-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.pagination .but {
  padding: 10px 15px;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.pagination .but:hover, .pagination .but.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.category-stats {
  list-style: none;
}
.category-stats li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.category-stats li:last-child {
  border-bottom: none;
}
.category-stats a {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.category-stats a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}
.category-stats .count {
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
}
/* 文章详情侧边栏样式 */
.toc-widget {
  position: sticky;
  top: 0;
}
.toc-list {
  max-height: 400px;
  overflow-y: auto;
}
.toc-list::-webkit-scrollbar {
  width: 6px;
}
.toc-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.toc-list a {
  display: block;
  padding: 8px 0;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  padding-left: 15px;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}
.toc-list a.toc-h3 {
  padding-left: 30px;
  font-size: 0.85rem;
}
/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.6s ease;
}
/* 响应式设计 */
@media (max-width: 968px) {
  .hero-slider {
    font-size: 1.3rem
  }
  .container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .posts-section {
    margin-right: 0
  }
  .sidebar {
    width: 100%;
    margin: 0
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .list-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-controls {
    justify-content: space-between;
  }
}
@media (max-width: 768px) {
  .hero-slider {
    height: 280px
  }
  .logo img {
    height: 36px;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 68px;
    bottom: 0;
    flex-direction: column;
    background: var(--bg-color);
    width: 100%;
    transition: 0.3s;
    box-shadow: none;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    overflow-x: hidden;
    overflow-y: auto;
    gap: .5rem;
  }
  .nav-menu.active {
    left: 0;
  }
  .dot {
    user-select: none;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
  }
  .dot i:before {
    display: inline;
  }
  .hamburger {
    user-select: none;
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  .dropdown {
    position: static;
    opacity: 1;
    display: none;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 10px 0 0 20px;
    transition: none;
  }
  .ico-box {
    top: 16px
  }
  .search-toggle, .theme-toggle {
    font-size: 1.3rem;
    background-color: transparent;
    width: 30px;
    height: 30px;
  }
  .search-toggle:hover, .theme-toggle:hover, .search-toggle.active {
    background-color: transparent;
    color: var(--text-color)
  }
  .theme-toggle, .theme-toggle:hover {
    transform: rotate(-15deg);
  }
  .search-box input {
    width: 150px;
  }
  .search-box input:focus {
    width: 200px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .news-navigation {
    grid-template-columns: 1fr;
  }
  .news-nav-next {
    text-align: left
  }
  .filter-buttons {
    width: 100%;
  }
  .filter-buttons a {
    flex: 1;
    min-width: calc(50% - 5px);
  }
  .posts-grid, .posts-list {
    gap: 20px;
  }
  .section-header, .jz_bs, .article-detail, .copyright {
    margin-bottom: 20px;
  }
  .article-detail {
    padding: 20px;
  }
  .article-title {
    font-size: 1.8rem;
  }
  .article-meta {
    gap: 15px;
  }
  .main-content {
    padding: 20px 0;
  }
  .post-item-image {
    width: 40%;
  }
  .post-item-content {
    padding: 15px;
    gap: 5px;
  }
  .post-item-title {
    font-size: 1.2rem;
  }
  .post-item-content .post-meta span:nth-last-child(-n+2) {
    display: none
  }
  .form-row, .form-row.Verify {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 400px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .search-toggle {
    display: flex
  }
  .hamburger {
    margin-left: 5px;
  }
  .ico-box {
    gap: 6px;
    top: 22px
  }
  .search-box {
    position: absolute;
    transition: max-height, .5s;
    top: 60px;
    right: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 100;
  }
  .search-box input:focus {
    border-color: var(--border-color);
  }
  .search-box.active {
    max-height: 60px;
  }
  .search-box input {
    width: 200px;
  }
  .search-box input:focus {
    width: 250px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}
body.night .logo img {
  display: none;
}
body.night .logo img.nightlogoimg {
  display: block;
}
body.night .theme-toggle {
  color: #ffc107
}