@charset "UTF-8";
/* color */
/* shadow */
/* size */
@import "plugins_hack.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 67px;
}

body {
  overflow-y: auto;
  padding-top: 67px;
  background: var(--background-color);
  color: var(--text-color);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

a {
  text-decoration: none;
  color: inherit;
}

#browsehappy {
  text-align: center;
  background: #ff0;
  padding: 10px 0;
  position: relative;
  z-index: 2000;
}

.text-center {
  text-align: center;
}

.iconfont {
  font-size: inherit;
}

.text-ellipsis {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transition-2 {
  transition: all 0.2s;
}

.border-less {
  border: none;
}

.empty {
  text-align: center;
  display: block;
  padding: 30px;
  margin: 0 auto;
  background: var(--background-color-alt);
  width: 100%;
  border-radius: 8px;
}

.empty img {
  max-width: 100%;
  width: 300px;
}

.fluid-box {
  width: 100%;
  min-height: calc(100vh - 270px);
}

.align-center {
  align-items: center;
}

.flex {
  display: flex;
  align-items: center;
}

.flex-1 {
  flex: 1;
  min-width: 0;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

[class*=anim-] {
  transition: all 0.2s;
}

.anim-translate:hover {
  transform: translateY(-3px);
}

.anim-shadow:hover {
  box-shadow: var(--card-shadow, 0 26px 40px -24px rgba(0, 36, 100, 0.3));
}

.light-shadow {
  box-shadow: var(--light-shadow);
  transition: box-shadow 0.3s ease;
}

.fit-cover {
  object-fit: cover;
}

/* layout */
.layout-container {
  margin: 0 auto;
  display: flex;
  min-height: 100%;
  max-width: 1440px;
  padding: 0 24px;
}

.layout-fluid-container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.layout-left {
  width: 220px;
  /* 左边固定宽度 */
  padding-top: 30px;
  flex-shrink: 0;
  /* 防止左边元素收缩 */
  background: var(--background-color-alt);
  border-radius: 8px;
  position: sticky;
  top: 67px;
  left: 0;
  margin-right: 15px;
  height: calc(100vh - 78px);
  text-align: center;
  z-index: 1;
}

.layout-right {
  flex: 1;
  /* 右边自适应 */
  min-width: 0;
  position: relative;
}

.toggle-side-menu-icon {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 998;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
}

.dot-bg {
  background-image: radial-gradient(transparent 1px, #fff 1px);
  background-size: 3px 3px;
  backdrop-filter: saturate(50%) blur(4px);
}

/* home */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  z-index: 1000;
  background: var(--primary-color);
  color: #fff;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.dark .home-header {
  background: rgba(11, 17, 32, 0.85); /* 暗黑模式下使用更通透的半透明深色 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-header .logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-right: 50px;
  font-family: sans-serif;
  padding-left: 10px;
}

.home-header .logo img {
  height: 24px;
  margin-right: 10px;
}

.home-header .menu {
  display: flex;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 36px;
}

.home-header .menu {
  padding-left: 0;
}

.home-header .menu .menu-item {
  position: relative;
  margin: 0 2px;
}

.home-header .menu .menu-item .icon-down {
  font-size: 12px;
  transition: all 0.3s;
  display: inline-block;
}

.home-header .menu .menu-item>a {
  border-radius: 8px;
  padding: 7px 10px;
}

.home-header .menu .menu-item>a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.home-header .menu .menu-item:hover .icon-down {
  transform: rotate(180deg);
}

.home-header .menu li {
  list-style-type: none;
}

.home-header .menu li:hover .sub-menu {
  display: block;
}

.home-header .sub-menu {
  position: absolute;
  top: 36px;
  right: 0;
  background: var(--background-color-alt);
  color: #333;
  line-height: 1.6;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(102, 102, 102, 0.2));
  display: none;
  z-index: 999;
  overflow: hidden;
  padding: 10px;
}

.home-header .sub-menu li {
  min-width: 4em;
}

.home-header .sub-menu a {
  padding: 7px 15px;
  white-space: nowrap;
  display: block;
  transition: all 0.2s;
  color: var(--text-color);
  border-radius: 8px;
}

.home-header .sub-menu a:hover {
  opacity: 1;
  background: var(--background-color);
}

.home-header .sub-menu .icon {
  width: 1em;
  margin-right: 4px;
  position: relative;
  top: -2px;
}

.home-header .navbar-actions {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.home-header .navbar-actions .search-icon {
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.home-header .navbar-actions .search-icon:hover {
  opacity: 0.8;
}

.home-header .icon-dashboard {
  display: none;
  margin-left: 15px;
}

.home-section {
  border-radius: 8px;
  margin-bottom: 15px;
}

.home-section ul {
  margin-bottom: 0;
}

.home-section-header {
  font-size: 1.2em;
  margin-bottom: 10px;
  margin-top: 10px;
}

.home-section-header .icon,
.home-section-header .iconfont {
  font-size: 1em;
  margin-right: 10px;
  width: 1em;
  height: 1em;
}

.home-section-header .icon {
  border-radius: 4px;
  vertical-align: -1px;
}

.home-section-header .child-sort {
  font-size: 14px;
  margin-left: 15px;
  display: inline-block;
}

.home-section-header .more {
  float: right;
  font-size: 15px;
}

.home-section-header .more .iconfont {
  font-size: 15px;
}

.home-section-header a:hover {
  color: var(--text-color-muted);
}

.home-section-body {
  clear: both;
}

.side-menu {
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  display: inline-block;
  padding: 15px 0;
  text-align: left;
}

.side-menu a {
  line-height: 2.8;
  transition: all 0.3s;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  white-space: nowrap;
}

.side-menu .icon {
  margin-right: 10px;
  font-size: 18px !important;
  height: 1em;
  width: 1em;
  border-radius: 4px;
}

.side-menu .iconfont {
  vertical-align: -1px;
  line-height: 1;
  font-size: 12px;
}

.side-menu a:hover {
  background: var(--background-color);
}

.side-menu a.active {
  background: var(--background-linear);
  background-size: 200% 200%;
}
.no-side-menu .home .layout-left {
  width: 0;
  margin-right: 0;
}

/* 搜索框 */
.search-box {
  position: relative;
  text-align: center;
  padding: 30px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
  background: var(--background-linear);
  background-size: 200% 200%;
}

.search-box h2 {
  margin: 0.5em 0;
  font-weight: bold;
  font-size: 1.5em;
  color: var(--text-color);
}

.search-box form {
  width: 61.8%;
  margin: 0 auto;
}

.search-box .search-engine {
  color: #6b767e;
  padding-left: 0;
}

.search-box .search-engine li {
  display: inline-block;
  border: 1px solid transparent;
  padding: 0 10px;
  color: var(--text-color);
  border-radius: 2em;
  transition: all 0.2s;
}

.search-box .search-engine li:hover,
.search-box .search-engine li.active {
  cursor: pointer;
  background: rgba(234, 204, 255, 0.5);
  border-color: rgba(234, 204, 255, 0.2);
}

.search-box .form-control {
  border: none;
}

.search-box .form-control:focus {
  box-shadow: 0 0 0 0.25rem transparent;
}

.search-box .form-control,
.search-box .btn {
  font-size: 15px;
  padding: 10px 20px;
}

.search-box .input-group {
  border-radius: 30px;
  overflow: hidden;
}

.tags {
  padding-left: 0;
  padding-top: 15px;
  margin-bottom: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags a {
  background: var(--background-color);
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 50px;
  display: inline-block;
  font-size: 14px;
  text-align: center;
  color: var(--text-color);
  text-decoration: none !important;
}

.tags a:hover {
  background: rgba(199, 199, 199, 0.4);
}

.tags.round a {
  border-radius: 2em;
}

/* log-list */
.log-list ul {
  padding-left: 0;
}

.log-list li {
  list-style-type: none;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.log-list a {
  display: flex;
  transition: 0.3s;
  background: var(--background-color-alt);
  padding: 20px;
  border-radius: 8px;
}

.log-list a:hover h3 {
  color: var(--text-color-muted);
}

.log-list .cover_image {
  margin-right: 15px;
  width: 85px;
  flex-shrink: 0;
}

.log-list .cover_image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.log-list .info {
  flex: 1;
  padding: 0 10px;
  width: calc(100% - 100px);
}

.log-list h3 {
  font-size: 1em;
  margin-bottom: 0;
}

.log-list p {
  font-size: 12px;
  line-height: 2;
  color: var(--text-color-muted);
  margin-bottom: 0;
}

.log-list-cards ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.log-list-cards a {
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: var(--background-color-alt);
  height: 100%;
}

.log-list-cards a:hover h3 {
  color: inherit;
}

.log-list-cards a:hover img {
  transform: scale(1.04);
}

.log-list-cards .cover_image {
  margin: 0;
  width: auto;
  overflow: hidden;
}

.log-list-cards .cover_image img {
  transition: all 0.3s;
}

.log-list-cards li {
  width: calc((100% - var(--gap) * 3) / 4);
}

.log-list-cards .info {
  padding: 15px 20px 20px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--background-color-alt);
  color: var(--text-color);
}

.log-list-cards .log-list-card-v2 {
  position: relative;
  display: block;
}

.log-list-cards .log-list-card-v2 .cover_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.log-list-cards .log-list-card-v2 .cover_image,
.log-list-cards .log-list-card-v2 .cover_image img {
  height: 100%;
}

.log-list-cards .log-list-card-v2 .cover_image:after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.log-list-cards .log-list-card-v2 .info {
  display: flex;
  height: 240px;
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: end;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.1);
}

.log-list-cards .log-list-card-v2 .info p {
  color: rgba(255, 255, 255, 0.5);
}

.log-list-normal .cover_image {
  width: 234px;
  margin-right: 1em;
  margin-bottom: 1em;
}

.log-list-normal h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.log-list-qrcode ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px 0;
  list-style: none;
}

.log-list-qrcode li {
  width: 100%;
}

.log-list-qrcode a {
  background: var(--background-color-alt);
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.dark .log-list-qrcode a {
  background: #1e2536;
  border-color: rgba(255, 255, 255, 0.05);
}

.log-list-qrcode a:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.dark .log-list-qrcode a:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.log-list-qrcode .cover_image {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.log-list-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.log-list-qrcode .info {
  flex: 1;
}

.log-list-qrcode h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
  line-height: 1.4;
}

.log-list-qrcode p.desc {
  font-size: 0.85rem;
  color: var(--text-color-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.log-list-qrcode .scan-hint {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0.8;
  transition: all 0.3s;
}

.log-list-qrcode a:hover .scan-hint {
  opacity: 1;
  transform: scale(1.05);
}

/* Decoration for QR Code Cards */
.log-list-qrcode a::after {
  content: '\e64b';
  /* iconfont scan icon or similar */
  font-family: "iconfont" !important;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  opacity: 0.1;
  transition: opacity 0.3s;
}

.log-list-qrcode a:hover::after {
  opacity: 0.5;
  color: var(--primary-color);
}

.log-loading {
  text-align: center;
}

/* nav-list Shared Styles */
.nav-list-card .nav-item,
.nav-list-app li {
  position: relative;
}

.nav-list-card .nav-item .link:hover,
.nav-list-app li .link:hover {
  background: var(--background-linear);
}

.nav-list-card .nav-item .icon-zhiling,
.nav-list-app li .icon-zhiling {
  position: absolute;
  top: 0;
  right: 15px;
  padding: 3px 8px;
  background: rgba(160, 160, 160, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.5s;
}

.nav-list-card .nav-item:hover .icon-zhiling,
.nav-list-app li:hover .icon-zhiling {
  opacity: 1;
  transform: translateY(5px);
}

.nav-list-card .nav-item .icon-zhiling:hover,
.nav-list-app li .icon-zhiling:hover {
  background: var(--background-linear);
}


/* APP List Style Enhancement - Strict 8 Columns */
.nav-list-app ul {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
  list-style: none !important;
  padding: 0 !important;
  width: 100%;
}

.nav-list-app ul li {
  min-width: 0; /* 关键：防止内容撑开列宽 */
}

/* 侧边栏挂件内的特殊适配 (Sidebar Widget Adaption) */
.widget .nav-list-app ul {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.widget .nav-list-app .nav-item-app {
  padding: 10px 5px;
}

.widget .nav-list-app .icon-wrap {
  width: 40px;
  height: 40px;
}


.nav-item-app {
  background: var(--background-color-alt);
  border-radius: 16px;
  padding: 12px 5px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 1px solid rgba(var(--primary-color-rgb, 16, 119, 243), 0.05);
  height: 100%;
  overflow: hidden;
}

.nav-item-app:hover {
  transform: translateY(-5px);
  background: var(--background-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.nav-item-app .main-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  width: 100%;
}

.icon-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  transition: transform 0.4s;
}

.nav-item-app:hover .icon-wrap {
  transform: scale(1.1);
}

.icon-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dark .icon-wrap img {
  background: #2a2d32;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-item-app .title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  padding: 0 3px;
  line-height: 1.2;
}

.nav-item-app .btn-install {
  display: inline-block;
  background: var(--primary-color);
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.3s;
  box-shadow: 0 3px 8px rgba(var(--primary-color-rgb, 16, 119, 243), 0.2);
  margin-top: auto;
}

.nav-item-app .btn-install:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.dark .nav-item-app {
  background: #1e2536;
  border-color: rgba(255, 255, 255, 0.05);
}

.dark .nav-item-app img {
  background: rgba(255, 255, 255, 0.1);
}


.nav-list-card .nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}

.nav-list-card .nav-item {
  position: relative;
  height: 100%;
  min-width: 0; /* 关键：防止内容撑开单元格 */
}

.nav-list-card .nav-item .link {
  background: var(--background-color-alt);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-decoration: none !important;
}

.nav-list-card .nav-item .link:hover {
  transform: translateY(-4px);
  background: var(--background-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: rgba(var(--primary-color-rgb, 16, 119, 243), 0.15);
}

.nav-list-card .nav-item .info {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.nav-list-card .nav-item .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  margin-right: 10px;
  transition: transform 0.3s;
}

.dark .nav-list-card .nav-item .icon-box {
  background: #2a2d32;
}

.nav-list-card .nav-item .link:hover .icon-box {
  transform: scale(1.1);
}

.nav-list-card .nav-item .icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.nav-list-card .nav-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 !important;
}

.nav-list-card .nav-item .desc {
  font-size: 0.8rem;
  color: var(--text-color-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5em;
  flex: 1;
}

.nav-list-card .nav-item .item-footer {
  font-size: 0.7rem;
  color: var(--text-color-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.02);
  padding-top: 10px;
  opacity: 0.7;
}

.nav-list-card .nav-item .meta-info {
  display: flex;
  gap: 8px;
}

.nav-list-card .nav-item .meta-info i {
  font-size: 11px;
  margin-right: 2px;
}

/* 侧边栏挂件内的特殊适配 (Sidebar Widget Adaption) */
.widget .nav-list-card .nav-list {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.widget .nav-list-card .nav-item .link {
  padding: 12px 15px;
  border-radius: 12px;
}

.widget .nav-list-card .nav-item h3 {
  font-size: 0.9rem;
}

.widget .nav-list-card .nav-item .desc {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 侧边栏仅显示一行描述 */
  height: 1.5em;
  margin-bottom: 8px;
}

.widget .nav-list-card .nav-item .item-footer {
  padding-top: 8px;
  margin-top: auto;
}


.sort-lists {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--background-color-alt);
  box-shadow: var(--light-shadow);
  border-radius: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.sort-lists ul {
  list-style: none;
  display: flex;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.sort-lists li {
  margin-right: 20px;
  border-radius: 10px;
  border: 2px solid transparent;
}

.sort-lists li:hover,
.sort-lists li.active {
  border-color: var(--primary-color);
}

.sort-lists li a {
  display: block;
  padding: 10px;
}

/* tab */
.tab {
  overflow: hidden;
  background: #fff;
}

.tab .tab-header {
  border-bottom: 1px solid #eee;
}

.tab .tab-header ul {
  display: flex;
  overflow-x: auto;
}

.tab .tab-header li {
  list-style: none;
  white-space: nowrap;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
}

.tab .tab-header li.current {
  color: var(--primary-color);
  font-weight: bold;
}

.tab .tab-body .tab-panel {
  display: none;
}

.tab .tab-body .tab-panel.current {
  display: block;
}

.btn-bg-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-60));
  border: none;
}

.btn-bg-gradient-2 {
  background: linear-gradient(90deg, #f0f, #f59c0a);
  border: none;
}

/* page-footer */
/* page-footer */
.page-footer {
  margin-top: 40px;
  background: var(--background-color-alt);
  border-radius: 20px 20px 8px 8px;
  padding: 60px 40px 30px;
  position: relative;
  overflow: hidden;
}

.page-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-60));
  opacity: 0.8;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col .footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col .footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-brand .footer-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

.footer-brand .footer-description {
  font-size: 14px;
  color: var(--text-color-muted);
  line-height: 1.8;
  max-width: 300px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  font-size: 14px;
  color: var(--text-color-muted);
  transition: all 0.3s;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact .footer-qrcode-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--background-color-hover);
  padding: 15px;
  border-radius: 12px;
}

.footer-contact .footer-qrcode-wrapper img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.footer-contact .qrcode-text {
  font-size: 13px;
  color: var(--text-color-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--line-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom .copyright {
  font-size: 13px;
  color: var(--text-color-muted);
}

.footer-bottom .bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom .bottom-right a {
  font-size: 13px;
  color: var(--text-color-muted);
}

.footer-bottom .bottom-right a:hover {
  color: var(--primary-color);
}

.footer-bottom .rss-link {
  color: var(--primary-color);
  font-size: 18px;
}

@media screen and (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .page-footer {
    padding: 40px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .bottom-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.popover-qrcode {
  text-align: center;
  font-size: 12px;
}

.popover-qrcode img {
  max-width: 100%;
  height: auto;
}

.popover-qrcode p {
  margin-bottom: 0;
}

.hash-title {
  font-size: 20px;
  font-weight: normal;
}

.log-body {
  padding: 40px 50px;
  line-height: 1.8;
  font-size: 16px;
  word-break: break-word;
  color: var(--text-color);
  border-top: 1px solid var(--line-color);
}

/* Custom Fields Style */
.fields {
  background: var(--background-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px dashed var(--line-color);
}

.fields ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.fields li {
  display: flex !important;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px;
}

.fields li .title {
  color: var(--text-color-muted);
  font-weight: 600;
  margin-right: 8px;
  white-space: nowrap;
}

.fields li .value {
  color: var(--text-color);
  font-weight: 500;
  word-break: break-all;
}

.dark .fields {
  background: rgba(255, 255, 255, 0.05);
}

.log-body p {
  margin-top: 1em;
  margin-bottom: 1em;
}

.log-body h1,
.log-body h2,
.log-body h3,
.log-body h4,
.log-body h5,
.log-body h6 {
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.5em 0 1em;
}

.log-body h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line-color);
}

.log-body h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line-color-light, rgba(0, 0, 0, 0.05));
  position: relative;
}

.log-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.log-body h3 {
  font-size: 1.25em;
}

.log-body h4 {
  font-size: 1.1em;
}

.log-body h5 {
  font-size: 1em;
}

.log-body h6 {
  font-size: 0.9em;
  color: var(--text-color-muted);
}

.log-body strong {
  font-weight: bold;
  font-family: sans-serif;
}

.log-body img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

.log-body pre {
  margin: 20px 0;
  background: #282c34;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.log-body pre code {
  padding: 15px;
  line-height: 1.6;
  display: block;
  font-size: 14px;
  color: #abb2bf;
  font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.log-body :not(pre)>code {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: inherit;
}

.log-body ol,
.log-body ul {
  margin: 1em 0;
  padding-left: 17px;
}

.log-body ol li,
.log-body ul li {
  line-height: 1.8;
  margin-bottom: 0.5em;
}

.log-body ol li ul li,
.log-body ul li ul li {
  list-style-type: circle;
}

.log-body ol ol,
.log-body ul ol {
  padding-left: 30px;
}

.log-body ol ol li,
.log-body ul ol li {
  list-style-type: decimal;
}

.log-body ol li p,
.log-body ul li p {
  display: inline;
}

.log-body .text-block {
  background-color: #f3f4f6;
  padding: 10px 15px;
  text-align: center;
  margin: 1em 0;
}

.log-body blockquote {
  padding: 15px 25px;
  margin: 20px 0;
  color: var(--text-color-muted);
  border-left: 4px solid var(--primary-color);
  background: var(--background-color);
  border-radius: 8px;
  font-style: italic;
}

.log-body blockquote p {
  margin: 0;
  opacity: 0.8;
}

.log-body hr {
  border-style: solid;
  border-width: 0.5px;
  border-color: var(--line-color);
  margin: 1em 0;
}

.log-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid var(--line-color);
}

.log-body table th {
  font-weight: 700;
  text-align: left;
}

.log-body table th,
.log-body table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-color);
}

.log-body video {
  display: block;
  margin: 2em auto;
}

.log-body a {
  text-decoration: underline;
}

.log-body .poem {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  text-align: center;
  padding: 50px;
  line-height: 1.6;
  margin: 30px auto;
  border-radius: 8px;
  font-size: 22px;
  letter-spacing: 1em;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  font-family: serif;
  color: var(--text-color);
  background: var(--background-color);
}

.log-body .poem p {
  font-size: inherit;
  border-bottom: 3px solid #e0e3e9;
  padding-left: 1em;
}

.log-body .poem.mini {
  font-size: 16px;
  letter-spacing: 0.5em;
}

.log-body .btn {
  text-decoration: none;
  margin-bottom: 10px;
  color: #fff;
}

.log-body .btn-box {
  padding: 30px;
  text-align: center;
  border: 2px dashed #ccc;
  margin: 1em 0;
}

.log-info {
  border-radius: 6px 6px 0 0;
  padding: 30px;
  color: var(--text-color-muted);
  line-height: 2;
  position: relative;
  text-align: center;
}

.log-info .items>span {
  margin-right: 15px;
}

.log-info .btn {
  margin-left: 10px;
}

.btn .iconfont {
  font-size: inherit;
}

.edit-btn {
  font-size: 14px;
  font-weight: normal;
}

.log-title {
  color: var(--text-color);
  font-size: 24px;
  font-weight: bold;
}

.list_sidebar_available,
.article {
  flex: 1;
  padding-right: 15px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: calc(100vh - 250px);
  min-width: 0;
}

.search-form {
  padding: 50px 0;
}

.search-form form {
  width: 50%;
  margin: 0 auto;
}

.side-bar {
  width: 340px;
  /* 侧边栏-图文列表*/
  /*侧边栏-链接*/
  /* 侧边栏-归档 */
  /* 侧边栏-分类 */
  /*侧边栏-热门文章*/
  /* 侧边栏-搜索 */
  /*侧边栏-日历*/
}

.side-bar .widget {
    margin-bottom: 24px;
    background: var(--background-color-alt);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.side-bar .widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.side-bar .sticky {
    position: sticky !important;
    top: 53px;
    z-index: 900;
}

.side-bar .widget li {
    list-style-type: none;
}

.side-bar .widget .hash-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-bar .widget .hash-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.side-bar .widget ul {
  padding: 0;
  margin: 0;
}

.side-bar .widget .more {
  font-size: 12px;
  font-weight: normal;
  float: right;
}

.side-bar .nav-list-card .nav-list {
  gap: 0;
}

.side-bar .nav-list-card .nav-item {
  width: 100%;
  padding: 0;
  margin-top: 0;
}

.side-bar .widget-list-media {
  margin: 0 -10px !important;
}

.side-bar .widget-list-media li {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.side-bar .widget-list-media li a {
  display: flex;
  border-radius: 4px;
}

.side-bar .widget-list-media li:hover {
  background: var(--background-color);
}

.side-bar .widget-list-media .media-img {
  width: 80px;
  margin-right: 10px;
}

.side-bar .widget-list-media .media-img img {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.side-bar .widget-list-media.log_list_link .media-img {
  width: 48px;
}

.side-bar .widget-list-media.log_list_link .media-img img {
  border-radius: 48px;
}

.side-bar .widget-list-media .media-content {
  flex: 1;
  min-width: 0;
}

.side-bar .widget-list-media h4 {
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  max-height: 3em;
}

.side-bar .widget-list-media .info {
  font-size: 14px;
}

.side-bar .widget-common ul {
  display: flex;
  flex-wrap: wrap;
}

.side-bar .widget-common li {
  width: 50%;
  box-sizing: border-box;
  padding: 5px;
}

.side-bar .widget-common li:hover,
.side-bar .widget-common li.active {
  color: var(--text-color-muted);
}

.side-bar .widget-common a {
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
  background: var(--background-color);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.side-bar .widget-list-top li {
  display: flex;
  align-items: center;
}

.side-bar .widget-list-top a {
  flex: 1;
}

.side-bar .widget-list-top .index {
  display: inline-block;
  width: 20px;
  height: 18px;
  line-height: 18px;
  margin-right: 15px;
  text-align: center;
  color: #ff8200;
  border-radius: 4px;
}

.side-bar .widget-list-top .top-0,
.side-bar .widget-list-top .top-1,
.side-bar .widget-list-top .top-2 {
  font-weight: bold;
  color: #FF4949;
  font-size: 18px;
}

.side-bar .widget-list-top .view {
  width: 65px;
  text-align: right;
}

.side-bar .widget-user {
  text-align: center;
  padding-top: 83px;
  position: relative;
  overflow: hidden;
}

.side-bar .widget-user .author-bg {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 50%;
  background: #f7f9ff no-repeat center;
  background-size: cover;
  z-index: 0;
  filter: grayscale(0.5) opacity(0.1);
}

.side-bar .widget-user .username {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 0.5em;
}

.side-bar .widget-user .desc {
  position: relative;
  padding: 0 20px 20px;
  z-index: 1;
}

.side-bar .widget-user .desc p {
  text-align: center;
  margin-top: 0.5em;
  color: #545454;
  word-break: break-all;
}

.side-bar .widget-user .avatar {
  width: 86px;
  height: 86px;
  line-height: 74px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 38px;
  margin: 0 auto;
  transition: transform 0.4s;
  box-sizing: border-box;
  padding: 6px;
  display: block;
}

.side-bar .widget-user .avatar:hover {
  transform: rotate(360deg);
}

.side-bar .widget-user .iconfont {
  font-size: 20px;
  margin: 0 5px;
}

.side-bar .widget-search #logsearch {
  padding: 15px 0;
}

.side-bar .widget-search #logsearch label {
  width: 100%;
}

.side-bar .widget-sorts .iconfont {
  font-size: inherit;
  width: 1em;
}

.side-bar .widget-tags .btn {
  margin-bottom: 5px;
}

.comment-box {
  padding-top: 30px;
}

.comment-box .comment {
  padding: 20px 20px 20px 78px;
  position: relative;
  background: var(--background-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.comment-box .comment:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.comment-box .comment .avatar {
  position: absolute;
  left: 20px;
  top: 24px;
  z-index: 2;
}

.comment-box .comment .avatar img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--background-color-alt);
  transition: all 0.3s ease;
  object-fit: cover;
}

.comment-box .comment:hover .avatar img {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.comment-box .comment .poster {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 4px;
  display: inline-block;
}

.comment-box .comment-time {
  font-size: 12px;
  color: var(--text-color-muted);
  display: block;
  margin-bottom: 15px;
}

.comment-box .comment-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color-secondary);
  word-wrap: break-word;
}

.comment-box .comment-reply {
  margin-top: 15px;
  text-align: right;
}

.comment-box .comment-reply a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--background-color-hover);
  padding: 6px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment-box .comment-reply a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(-4px);
}

/* 子评论样式 - 专业的线索式设计 */
.comment-box .comment-children-list {
  margin-top: 14px;
  padding: 4px 16px;
  background: var(--background-color-hover);
  border-radius: 12px;
  position: relative;
}

.comment-box .comment-item.compact {
  padding: 12px 0 12px 42px;
  position: relative;
}

.comment-box .comment-item.compact .avatar {
  position: absolute;
  left: 0;
  top: 12px;
  z-index: 1;
}

.comment-box .comment-item.compact .avatar img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.comment-box .comment-item.compact .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-box .comment-item.compact .poster {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.comment-box .comment-item.compact .comment-time {
  font-size: 11px;
  color: var(--text-color-muted);
}

.comment-box .comment-item.compact .comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color-secondary);
}

.comment-box .comment-item.compact .comment-reply {
  margin-top: 4px;
}

.comment-box .comment-item.compact .comment-reply a {
  font-size: 11px;
  padding: 2px 8px;
  background: transparent;
  color: var(--text-color-muted);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.comment-box .comment-item.compact .comment-reply a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* 递归嵌套：深度回复扁平化处理 */
.comment-box .comment-item.compact .comment-children-list {
  margin-top: 8px;
  padding: 0 0 0 16px;
  background: transparent;
  border-radius: 0;
  border-left: 1px solid var(--border-color);
}

.comment-post {
  padding: 30px;
  background: var(--background-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--light-shadow);
}

.modal-mode {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-mode-body {
  padding: 0;
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-mode .hash-title {
  background: var(--background-color-alt);
  padding: 20px 25px;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
  font-weight: 800;
  font-size: 1.1rem;
}

.modal-mode .hash-title .respond {
  display: block;
}

.modal-mode .hash-title:before {
  display: none;
}

.modal-mode #cancel-reply {
  font-size: 0;
  color: var(--text-color-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  background: var(--background-color-hover);
  text-decoration: none;
  border: none;
  padding: 0;
}

.modal-mode #cancel-reply .iconfont {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.modal-mode #cancel-reply:hover {
  background: #ff4d4f;
  color: #fff;
  transform: rotate(90deg);
}

.comment-post {
  padding: 30px;
  background: var(--background-color-alt);
  border: 1px solid var(--border-color);
  border-top: none;  
}
.modal-mode .comment-post {
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.comment-post .form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color-secondary);
  font-size: 14px;
}

.comment-post .form-control {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s;
  font-size: 14px;
}

.comment-post .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-color, 16, 119, 243), 0.1);
  background: var(--background-color-alt);
}

.comment-post .verify-code {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-post .verify-code img {
  height: 45px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.comment-post .verify-code input {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0 16px;
  height: 45px;
  transition: all 0.3s;
  font-size: 14px;
  width: 140px;
  flex: none;
  outline: none;
  box-sizing: border-box;
}

.comment-post .verify-code input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-color, 16, 119, 243), 0.1);
  background: var(--background-color-alt);
}

.comment-post #comment_submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s;
  background: var(--primary-color);
  border: none;
  color: #fff;
  margin-top: 10px;
}

.comment-post #comment_submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  background: var(--background-color-alt);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.3s;
  margin: 0;
}

.pagination span,
.pagination a:hover {
  background-color: var(--text-color);
  color: var(--background-color-alt);
}

.pagination .total {
  background: transparent;
  color: #9a9a9a;
}

.site-tools {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  border-radius: 8px;
}

.site-tools .item {
  display: block;
  background-color: var(--background-color-alt);
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: var(--light-shadow);
}

.site-tools .item:hover,
.site-tools .item.active {
  background-color: var(--background-color-alt);
}

.site-tools .item:hover .iconfont,
.site-tools .item.active .iconfont {
  color: var(--text-color-muted);
}

.site-tools .item .iconfont {
  font-size: 20px;
  color: var(--text-color);
}

.site-tools .popup {
  position: absolute;
  right: 50px;
  bottom: 0;
  background: #fff;
  text-align: left;
  display: block;
  padding: 20px;
  line-height: 2;
  width: 200px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #EFF2F7;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 5px 0 rgba(158, 158, 158, 0.09);
  box-shadow: 0 0 5px 0 rgba(158, 158, 158, 0.09);
}

.site-tools .gotoup {
  display: none;
}

.link-items {
  background: var(--background-color-alt);
  padding: 20px;
  border-radius: 8px;
  font-size: 0;
}

.link-item {
  display: inline-block;
  min-width: 10%;
  font-size: 14px;
  transition: 0.3s;
  white-space: nowrap;
}

.link-item a {
  display: block;
  padding: 10px;
}

.link-item:hover {
  border-radius: 8px;
  background: var(--background-color);
}

.link-item .ico {
  width: 18px;
  height: 18px;
  background: var(--background-color);
  border-radius: 50%;
}

/* 搜索图标 */
.search-icon {
  font-size: 18px;
  cursor: pointer;
  padding: 4px 12px;
  margin-right: 10px;
  border-radius: 8px;
  transition: all 0.3s;
  display: inline-block;
}

.search-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* 搜索弹窗 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.search-modal.show {
  opacity: 1;
  visibility: visible;
}

.search-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.search-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: var(--background-color-alt);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  transition: transform 0.3s;
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
}

.search-modal.show .search-modal-content {
  transform: translateY(0);
}

.search-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-close:hover {
  background: var(--background-color);
  transform: rotate(90deg);
}

/* 弹窗内的搜索框样式 */
.search-box-modal {
  text-align: center;
}

.search-box-modal h2 {
  margin: 0.5em 0;
  font-weight: bold;
  font-size: 1.5em;
  color: var(--text-color);
}

.search-box-modal form {
  width: 100%;
  margin: 0 auto;
}

.search-box-modal .search-engine {
  color: #6b767e;
  padding-left: 0;
  margin-bottom: 20px;
}

.search-box-modal .search-engine li {
  display: inline-block;
  border: 1px solid transparent;
  padding: 0 10px;
  color: var(--text-color);
  border-radius: 2em;
  transition: all 0.2s;
  cursor: pointer;
  margin: 5px;
}

.search-box-modal .search-engine li:hover,
.search-box-modal .search-engine li.active {
  background: rgba(234, 204, 255, 0.5);
  border-color: rgba(234, 204, 255, 0.2);
}

.search-box-modal .form-control {
  border: none;
  background: var(--background-color);
  color: var(--text-color);
}

.search-box-modal .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(234, 204, 255, 0.3);
  background: var(--background-color);
}

.search-box-modal .form-control,
.search-box-modal .btn {
  font-size: 15px;
  padding: 12px 20px;
}

.search-box-modal .input-group {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-box-modal .tags {
  padding-top: 20px;
}

/*# sourceMappingURL=style.css.map */

/* Twitter Widget Image Grid */
.tw-images {
  margin-top: 10px;
}

.tw-img-grid {
  display: grid;
  gap: 6px;
}

.tw-img-grid.grid-1 {
  grid-template-columns: 1fr;
}

.tw-img-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.tw-img-grid.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.tw-img-grid.grid-4 {
  grid-template-columns: 1fr 1fr;
}

.tw-img-item {
  width: 100%;
  padding-top: 100%;
  /* Square */
  position: relative;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  background: var(--background-color-hover);
}

.tw-img-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tw-img-item:hover img {
  transform: scale(1.05);
}

/* Global Lightbox for Widgets */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  object-fit: contain;
}

/* Card Meta Styles */
.card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85em;
  color: var(--text-color-muted);
}

.card-meta .meta-item {
  display: flex;
  align-items: center;
}

.card-meta .iconfont {
  margin-right: 4px;
  font-size: 14px;
}

/* Specific overrides for V2 (Dark Overlay) */
.log-list-cards .log-list-card-v2 .card-meta {
  color: rgba(255, 255, 255, 0.8);
}

/* Ensure info box adjusts height if needed or flex properly */
.log-list-cards .log-list-card-v2 .info {
  justify-content: flex-end;
  /* Ensure content stays at bottom */
}

/* Sidebar Twitter Widget Special Style */
.widget-tw-images {
    margin-top: 10px;
}

.widget-tw-grid {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
    width: fit-content;
}

.widget-tw-grid.grid-1 { grid-template-columns: 1fr; }
.widget-tw-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.widget-tw-img-item {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
}

.widget-tw-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.widget-tw-img-item:hover img {
    opacity: 0.8;
}

.widget-tw-grid.grid-1 .widget-tw-img-item {
    width: 120px;
    height: 80px;
}

/* 链接卡片全局样式 */
.link-card {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr); /* 关键修复：minmax(0, 1fr) 防止溢出 */
    grid-template-rows: auto auto;
    align-items: center;
    background: var(--background-color-alt); /* 使用 Alt 背景使其浮起 */
    padding: 16px 20px;
    border-radius: 20px;
    text-decoration: none !important;
    border: 1px solid var(--border-color);
    margin: 15px 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    column-gap: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.link-card:hover {
    transform: translateY(-3px);
    background: var(--background-color-alt);
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
}

.link-card-icon {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    background: var(--background-color); /* 图标容器使用基础背景色 */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.link-card-info {
    grid-column: 2;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.98rem;
    display: block;
    line-height: 1.2;
}

.link-card-url {
    grid-column: 2;
    display: block;
    font-size: 0.75rem;
    color: var(--text-color-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb {
  margin-bottom: 0;
}

/* 通用分栏布局：文章列表 + 分类侧边栏 */
.sort-log-layout {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
}

.log-main-content {
    flex: 1;
    min-width: 0;
}

.sort-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.sort-sidebar-inner {
    background: var(--background-color-alt);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

/* 侧边栏分类树样式复写 */
.sort-list-wrapper .sub-category-nav {
    margin-bottom: 0;
}

.sort-list-wrapper .sub-category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-list-wrapper .sub-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px 15px;
    background: transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sort-list-wrapper .sub-category-item:hover {
    background: var(--background-color-hover);
    color: var(--primary-color);
    padding-left: 20px;
    transform: none;
}

.sort-list-wrapper .sub-category-item.active {
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.08);
    color: var(--primary-color);
    font-weight: 700;
    border-left-color: var(--primary-color);
    box-shadow: none;
}

.sort-list-wrapper .sub-category-item .badge {
    background: rgba(0,0,0,0.05);
}

.dark .sort-list-wrapper .sub-category-item .badge {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
    .sort-log-layout {
        flex-direction: column-reverse;
        padding-left: 15px;
        padding-right: 15px;
    }
    .sort-sidebar {
        width: 100%;
        position: static;
    }
}

/* ─── 列表样式：标准图文列表 (Normal List) ─── */
.log-normal-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    list-style: none;
    margin: 0 0 40px 0;
}

.log-normal-item {
    animation: slideUp 0.5s ease-out backwards;
}

.log-normal-card {
    display: grid;
    grid-template-columns: 220px 1fr; /* 缩小图片宽度 */
    gap: 30px;
    background: var(--background-color-alt);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.log-normal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

/* 封面图容器 */
.log-normal-cover {
    width: 220px; /* 缩小图片宽度 */
    height: 160px; /* 相应调整高度保持比例 */
    border-radius: 18px;
    overflow: hidden;
    display: block;
    background: var(--background-color-hover);
}

.log-normal-cover img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.log-normal-cover:hover img {
    transform: scale(1.1);
}

/* 信息内容区 */
.log-normal-info {
    padding: 10px 15px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.log-normal-meta-top .tag {
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.log-normal-meta-top .tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.log-normal-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.log-normal-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.log-normal-info h3 a:hover {
    color: var(--primary-color);
}

.log-normal-info .desc {
    font-size: 0.92rem;
    color: var(--text-color-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

/* 底部元数据 */
.log-normal-meta-bottom {
    display: flex;
    gap: 20px;
    align-items: center;
}

.log-normal-meta-bottom .meta-item {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

a.meta-item:hover {
    color: var(--primary-color);
}

.log-normal-meta-bottom .meta-item i {
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .log-normal-card {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
    
    .log-normal-cover {
        width: 100%;
    }
    
    .log-normal-info {
        padding: 5px 10px 15px;
    }
    
    .log-normal-info h3 {
        font-size: 1.15rem;
    }
}


/* 最新评论挂件细节 */
.widget-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-comment-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 15px;
}

.widget-comment-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.widget-comment-item {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
    padding: 8px;
    border-radius: 12px;
}

.widget-comment-item:hover {
    background: var(--background-color-hover);
}

.widget-comment-item .avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-comment-item .comment-body {
    flex: 1;
    min-width: 0;
}

.widget-comment-item .comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.widget-comment-item .username {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.widget-comment-item .time {
    font-size: 0.75rem;
    color: var(--text-color-muted);
}

.widget-comment-item .comment-text {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    line-height: 1.5;
}

/* 最新微语挂件细节 (Twitter Widget) */
.widget_twitter {
    padding-bottom: 10px !important;
}

.widget-tw-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

.widget-tw-item {
    padding: 0 0 20px 0 !important;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--line-color) !important;
    display: block !important;
}

.widget-tw-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 10px !important;
}

.tw-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tw-header .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--background-color-hover);
    flex-shrink: 0;
}

.tw-widget-meta {
    display: flex;
    flex-direction: column;
}

.tw-widget-meta .username {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
}

.tw-widget-meta .time {
    font-size: 0.7rem;
    color: var(--text-color-muted);
}

.tw-text {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-word;
}

/* 微语图片网格 */
.tw-gallery {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.tw-gallery.grid-1 { grid-template-columns: 1fr; }
.tw-gallery.grid-2 { grid-template-columns: 1fr 1fr; }
.tw-gallery.grid-3 { grid-template-columns: repeat(3, 1fr); }

.tw-img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--background-color-hover);
    cursor: zoom-in;
}

.tw-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.tw-img:hover img {
    transform: scale(1.1);
}

/* 微语链接 */
.tw-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--background-color-hover);
    color: var(--primary-color) !important;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 2px 0;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tw-inline-link:hover {
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.1);
    border-color: var(--primary-color);
}

/* 更多按钮 */
.tw-more {
    margin-top: 10px;
    text-align: center;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--background-color-hover);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.btn-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 热门文章排行榜 (Hot Log Ranking) */
.widget-hot-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-hot-list li {
    margin-bottom: 12px;
    padding: 0 !important;
    border: none !important;
}

.widget-hot-list li:last-child {
    margin-bottom: 0;
}

.widget-hot-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none !important;
    transition: all 0.2s;
    padding: 10px;
    border-radius: 12px;
}

.widget-hot-item:hover {
    background: var(--background-color-hover);
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: var(--background-color-hover);
    color: var(--text-color-muted);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s;
}

/* 前三名高亮 */
.hot-rank.rank-1, .hot-rank.rank-2, .hot-rank.rank-3 {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb, 16, 119, 243), 0.25);
}

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.widget-hot-item:hover .hot-title {
    color: var(--primary-color);
}

.hot-meta {
    font-size: 0.75rem;
    color: var(--text-color-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hot-meta i {
    font-size: 12px;
}

/* 标签云挂件细节 (Tag Cloud) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--background-color-hover);
    color: var(--text-color-secondary) !important;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    text-decoration: none !important;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-cloud a .tag-num {
    font-size: 0.75rem;
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 6px;
    border-radius: 6px;
    transition: all 0.3s;
}

/* 标签悬浮效果 */
.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 16, 119, 243), 0.2);
}

.tag-cloud a:hover .tag-num {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}


/* 日历挂件精准适配 (Calendar Widget Accurate Fit) */
#calendar {
    width: 100%;
}

#calendar table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}

/* 顶部导航表格 (年份/月份切换) */
.calendartop {
    margin-bottom: 15px;
}

.calendartop td {
    padding: 0 !important;
    font-weight: 800;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calendartop td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--background-color-hover);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.calendartop td a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.calendartop td a i {
    font-size: 12px;
}

/* 日期矩阵表格 */
.calendar td {
    width: 14.28%; /* 7列平分 */
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    vertical-align: middle;
}

/* 星期表头 */
.calendar .week {
    padding: 10px 0;
    color: var(--text-color-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.calendar .sun {
    color: #ff5722;
    font-weight: 700;
}

/* 有文章的日期 (带链接) */
.calendar .day2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.calendar .day2 a:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 16, 119, 243), 0.3);
    transform: scale(1.1) translateY(-2px);
}

/* 今天的样式优化 */
#calendar #today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 50%;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 16, 119, 243), 0.3);
}

#calendar td.sun { color: #ff5722; }

/* 搜索挂件细节 (Search Widget) */
.search-box form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 46px;
    background: var(--background-color-hover);
    border: 1px solid var(--border-color);
    border-radius: 23px;
    padding: 0 50px 0 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    background: var(--background-color-alt);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb, 16, 119, 243), 0.1);
}

.search-submit {
    position: absolute;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-submit:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 16, 119, 243), 0.3);
}

.search-submit i {
    font-size: 16px;
}

/* 分类挂件细节 (Category/Sort Widget) */
.widget-sort-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-sort-list li {
    margin-bottom: 5px;
}

.sort-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--text-color-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-item:hover {
    background: var(--background-color-hover);
    color: var(--primary-color);
}

.widget-sort-list li.active > .sort-item {
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.1);
    color: var(--primary-color);
    font-weight: 700;
}

.sort-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-info i {
    font-size: 16px;
    opacity: 0.7;
}

.sort-name {
    font-size: 0.92rem;
}

.sort-count {
    font-size: 0.75rem;
    background: var(--background-color-hover);
    padding: 2px 8px;
    border-radius: 8px;
    color: var(--text-color-muted);
    transition: all 0.3s;
}

.sort-item:hover .sort-count,
.widget-sort-list li.active .sort-count {
    background: var(--primary-color);
    color: #fff;
}

/* 子分类样式 */
.sort-children {
    list-style: none !important;
    padding: 5px 0 5px 25px !important;
    margin: 0 !important;
    position: relative;
}

.sort-children::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    opacity: 0.5;
}

.sort-children .sort-item {
    padding: 8px 12px;
    font-size: 0.88rem;
}

/* 归档挂件细节 (Archive Widget) */
.widget-archive-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-archive-list li {
    margin-bottom: 5px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--text-color-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-item:hover {
    background: var(--background-color-hover);
    color: var(--primary-color);
}

.archive-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
}

.archive-name i {
    font-size: 16px;
    opacity: 0.7;
    color: var(--text-color-muted);
    transition: all 0.3s;
}

.archive-item:hover .archive-name i {
    color: var(--primary-color);
    opacity: 1;
    transform: rotate(15deg);
}

.archive-count {
    font-size: 0.75rem;
    background: var(--background-color-hover);
    padding: 2px 8px;
    border-radius: 8px;
    color: var(--text-color-muted);
    transition: all 0.3s;
}

.archive-item:hover .archive-count {
    background: var(--primary-color);
    color: #fff;
}

/* 归档折叠逻辑 */
.widget-archive-list .hidden-item {
    display: none;
}

.widget-archive-list.show-all .hidden-item {
    display: block;
    animation: slideUp 0.3s ease-out forwards;
}

.archive-more {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
}

.archive-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    background: var(--background-color-hover);
    color: var(--text-color-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.3s;
}

.archive-more a:hover {
    background: var(--primary-color);
    color: #fff;
}

.archive-more a i {
    font-size: 12px;
    transition: transform 0.3s;
}

.widget-archive-list.show-all + .archive-more a i {
    transform: rotate(180deg);
}

/* 友情链接网格细节 (Link Grid Widget) */
.widget-link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.link-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--background-color-hover);
    color: var(--text-color-secondary) !important;
    border-radius: 10px;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.link-grid-item i {
    font-size: 14px;
    color: var(--text-color-muted);
    transition: color 0.3s;
}

.link-grid-item:hover {
    background: var(--background-color-alt);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

.link-grid-item:hover i {
    color: var(--primary-color);
}

.link-grid-item:hover i {
    color: var(--primary-color);
}

/* 自定义组件细节 (Custom Text Widget) */
.widget-custom .widget-inner {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    line-height: 1.8;
}

.widget-custom .widget-inner p {
    margin-bottom: 12px;
}

.widget-custom .widget-inner p:last-child {
    margin-bottom: 0;
}

.widget-custom .widget-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.widget-custom .widget-inner a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--primary-color-rgb, 16, 119, 243), 0.2);
    transition: all 0.3s;
}

.widget-custom .widget-inner a:hover {
    border-bottom-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.05);
}

.widget-custom .widget-inner a:hover {
    border-bottom-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.05);
}

/* 最新文章挂件细节 (New Log Widget) */
.widget-newlog-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-newlog-list li {
    margin-bottom: 12px;
}

.widget-newlog-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.widget-newlog-item:hover {
    background: var(--background-color-hover);
}

.newlog-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--background-color-hover);
}

.newlog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.widget-newlog-item:hover .newlog-img img {
    transform: scale(1.1);
}

.newlog-info {
    flex: 1;
    min-width: 0;
}

.newlog-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.widget-newlog-item:hover .newlog-title {
    color: var(--primary-color);
}

.newlog-meta {
    font-size: 0.75rem;
    color: var(--text-color-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.widget-newlog-item:hover .newlog-meta {
    color: var(--primary-color);
}

/* 搜索挂件细节 (Search Widget) */
.search-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--background-color-hover);
    border-radius: 50px;
    padding: 2px 5px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-group:focus-within {
    background: var(--background-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb, 16, 119, 243), 0.15);
}

.prefix-icon {
    margin-left: 15px;
    color: var(--text-color-muted);
    font-size: 16px;
    transition: color 0.3s;
}

.search-group:focus-within .prefix-icon {
    color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
    color: var(--text-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

.search-submit-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 16, 119, 243), 0.3);
}

.search-submit-btn i {
    font-size: 14px;
}

/* 分类导航树细节 (Sort Tree Nav) */
.sub-category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-color-secondary);
    text-decoration: none !important;
    transition: all 0.3s;
}

.sub-category-item:hover {
    background: var(--background-color-hover);
    color: var(--primary-color);
}

.sub-category-item.active {
    background: rgba(var(--primary-color-rgb, 16, 119, 243), 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-info i {
    font-size: 16px;
    opacity: 0.7;
}

.category-count {
    font-size: 0.75rem;
    background: var(--background-color-hover);
    padding: 2px 8px;
    border-radius: 8px;
    color: var(--text-color-muted);
    transition: all 0.3s;
}

.sub-category-item:hover .category-count,
.sub-category-item.active .category-count {
    background: var(--primary-color);
    color: #fff;
}

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