@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: 999;
}

.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: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
}

.light-shadow {
  box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.2);
}

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

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

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

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

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

.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: 999;
  background: var(--primary-color);
  color: #fff;
  backdrop-filter: saturate(50%) blur(4px);
}
.home-header .logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-right: 60px;
  font-family: sans-serif;
  padding-left: 10px;
  height: 32px; /* 新增：固定容器高度 */
  overflow: visible; /* 新增：允许图片溢出 */
}
.home-header .logo img {
  height: 46px; /* 增大图片高度 */
  margin-right: 10px;
  transform: translateY(2px); /* 微调垂直位置 */
}
.home-header .menu {
  display: flex;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 32px;
}
.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 .icon-dashboard {
  display: none;
}

.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;
}


/* 搜索框 */
.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%;
  animation: gradientShift 60s ease infinite;
}
.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;
}

/* ==== 仅保留平台图标和滚动公告样式 ==== */

.search-engine {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 10px 15px;
    list-style: none;
    transition: transform 0.2s ease;
}

.search-engine li {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(0,0,0,0.05);
    white-space: nowrap; /* 防止文字换行 */
}

.search-engine li.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 图标容器 */
.engine-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 5px; /* 减少边距 */
    flex-shrink: 0;
}

/* 图标样式 */
.engine-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
}

/* 名称容器 */
.engine-name {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.engine-container-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.search-engine-container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 5px 0;
}

.search-engine-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.scroll-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator.left {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
}

.scroll-indicator.right {
    right: 0;
    background: linear-gradient(270deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
}

.scroll-indicator svg {
    width: 18px;
    height: 18px;
    color: #666;
}

/* 修复可能的对齐冲突 */
.search-engine li * {
    vertical-align: middle;
}

/* ==== 平台滚动条样式 ==== */
.search-engine-container {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    -ms-overflow-style: none;
    width: 100%;
}

.search-engine-container::-webkit-scrollbar {
    height: 4px;
}

.search-engine-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 2px;
}

.search-engine-container::-webkit-scrollbar-track {
    background: transparent;
}

/* ==== 快速公告轮播样式 ==== */
.fast-announcement-container {
    display: flex;
    align-items: center;
    background: var(--background-color-alt);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
    overflow: hidden;
    padding: 5px 10px;
    height: 26px;
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.fast-announcement-icon {
    flex-shrink: 0;
    color: #ff6b00;
    margin-right: 8px;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.fast-announcement-content {
    flex-grow: 1;
    position: relative;
    height: 18px;
    overflow: hidden;
}

.fast-announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
}

.fast-announcement-list li {
    padding: 1px 0;
    display: flex;
    align-items: center;
    height: 18px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fast-announcement-list li.active {
    opacity: 1;
    transform: translateY(0);
}

.fast-announcement-list li a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s;
    width: 100%;
    font-size: 11px;
    line-height: 1.2;
}

.fast-announcement-list li a:hover {
    color: #2575fc;
}

.fast-announcement-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fast-announcement-date {
    color: #999;
    font-size: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ==== 响应式调整 ==== */
@media (max-width: 768px) {
    .search-engine li {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .engine-icon-container {
        width: 16px;
        height: 16px;
    }
}


/* 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;
  margin: -5px;
}
.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 {
  height: 160px;
  transition: all 0.3s;
}
.log-list-cards li {
  padding: 0 8px;
  width: 25%;
}
.log-list-cards .info {
  padding: 15px 20px 20px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.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.7), rgba(0, 0, 0, 0));
}
.log-list-cards .log-list-card-v2 .info {
  display: flex;
  height: 180px;
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: end;
  color: rgba(255, 255, 255, 0.9);
}
.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-loading {
  text-align: center;
}
/* nav-list */
.nav-list-card .nav-item,
.nav-list-simple li {
  position: relative;
}
.nav-list-card .nav-item .link:hover,
.nav-list-simple li .link:hover {
  background: var(--background-linear);
}
.nav-list-card .nav-item .icon-zhiling,
.nav-list-simple 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-simple li:hover .icon-zhiling {
  opacity: 1;
  transform: translateY(5px);
}
.nav-list-card .nav-item .icon-zhiling:hover,
.nav-list-simple li .icon-zhiling:hover {
  background: var(--background-linear);
}

.nav-list-simple ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}
.nav-list-simple ul li {
  display: block;
  width: 10%;
  padding: 5px;
}
.nav-list-simple ul li .link {
  display: block;
  font-size: 12px;
  text-align: center;
  padding: 10px 5px;
  border-radius: 6px;
  background: var(--background-color-alt);
}
.nav-list-simple ul li img {
  width: 42px;
  height: 42px;
  margin-bottom: 3px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-list-card .nav-item .info {
  padding-bottom: 10px;
}
.nav-list-card .nav-item h3 {
  font-size: 1em;
  padding-left: 10px;
  margin-bottom: 0 !important;
}
.nav-list-card .nav-item img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-list-card .nav-item .link {
  border-radius: 8px;
  background: var(--background-color-alt);
  padding: 15px 20px;
  line-height: 1;
  display: block;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.nav-list-card .nav-item .link:hover {
  background: var(--background-linear);
}
.nav-list-card .nav-item .desc,
.nav-list-card .nav-item .views {
  font-size: 12px;
  color: var(--text-color-muted);
}
.nav-list-card .nav-item .desc {
  margin-bottom: 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-2 {
  background: linear-gradient(90deg, #f0f, #f59c0a);
  border: none;
}

/* page-footer */
.page-footer {
  padding: 30px;
  line-height: 2;
  margin-top: 15px;
  border-radius: 8px;
  background: var(--background-color-alt);
}
.page-footer .right {
  text-align: center;
  font-size: 12px;
}
.page-footer .footer-qrcode img {
  height: 100px;
  width: auto;
}

.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: 30px;
  line-height: 1.8;
  font-size: 16px;
  word-break: break-word;
  border-top: 1px solid var(--line-color);
}
.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 {
  word-break: break-all;
  line-height: 2.2;
  display: inline;
  margin: 0.5em 0;
  font-weight: bold;
  background: linear-gradient(to bottom, transparent 75%, rgba(119, 239, 225, 0.4) 75%);
}
.log-body h1:after, .log-body h2:after, .log-body h3:after, .log-body h4:after, .log-body h5:after, .log-body h6:after {
  content: "";
  display: block;
  clear: both;
}
.log-body h1 {
  font-size: 32px;
}
.log-body h2 {
  display: block;
  font-size: 20px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
  background: var(--background-color-hover);
  border-radius: 2px;
}
.log-body h3 {
  font-size: 20px;
}
.log-body h4, .log-body h5, .log-body h6 {
  font-size: 17px;
}
.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: 16px 0;
}
.log-body pre code {
  padding: 0 10px;
  line-height: 1.5;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  color: #5a5a5a;
}
.log-body ol, .log-body ul {
  margin-bottom: 1em;
  padding-left: 20px;
}
.log-body ol ul, .log-body ul ul {
  padding-left: 20px;
}
.log-body ol li, .log-body ul li {
  line-height: 2;
}
.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: 10px 20px;
  margin: 1em 0;
  color: var(--text-color-muted);
  border-left: 5px solid var(--line-color);
  background: var(--background-color);
  border-radius: 2px;
}
.log-body blockquote p {
  margin: 0;
}
.log-body hr {
  border-style: solid;
  border-width: 0.5px;
  border-color: var(--line-color);
  margin: 1em 0;
}
.log-body table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
  margin-bottom: 1em;
  border: 1px solid #f3f3f3;
}
.log-body table th, .log-body table td {
  border-bottom: 1px solid #f3f3f3;
  padding: 5px 10px;
}
.log-body table tr:last-of-type td {
  border-bottom: 1px solid #f3f3f3;
}
.log-body table th {
  background-color: #f3f3f3;
}
.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;
  box-shadow: 0 0 1px 10px #e0e3e9, 15px 15px 10px 10px #f6f6f6;
  letter-spacing: 1em;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  font-family: serif;
  color: #000;
}
.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: 15px;
  background: var(--background-color-alt);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.2);
}
.side-bar .sticky {
  position: sticky !important;
  top: 53px;
  z-index: 998;
}
.side-bar .widget li {
  padding: 10px 0;
  list-style-type: none;
}
.side-bar .widget .hash-title {
  margin-bottom: 15px;
  font-weight: bold;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 10px;
}
.side-bar .widget ul {
  padding: 0;
  margin: 0;
}
.side-bar .widget .widget-inner {
  padding: 15px;
  line-height: 1.8;
}
.side-bar .widget .more {
  font-size: 12px;
  font-weight: normal;
  float: right;
}
.side-bar .widget-comment .widget-comment-info {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}
.side-bar .widget-comment .widget-comment-info .avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-right: 10px;
  margin-top: 5px;
  border-radius: 50%;
}
.side-bar .widget-comment .widget-comment-info .username {
  font-style: normal;
  font-weight: bold;
}
.side-bar .widget-comment .widget-comment-info .time {
  color: #aaacb6;
  flex: 1;
  text-align: right;
  font-size: 14px;
}
.side-bar .widget-comment .comment-inner .widget-comment-content {
  background: var(--background-color);
  border-radius: 8px;
  position: relative;
}
.side-bar .widget-comment .comment-inner .widget-comment-content:hover {
  background: var(--background-color-hover);
}
.side-bar .widget-comment .comment-inner .widget-comment-content:hover:after {
  border-bottom-color: var(--background-color-hover);
}
.side-bar .widget-comment .comment-inner .widget-comment-content:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  position: absolute;
  bottom: 100%;
  left: 15px;
  border-bottom-color: var(--background-color);
}
.side-bar .widget-comment .comment-inner .widget-comment-content a {
  padding: 12px;
  display: block;
}
.side-bar .widget-comment .comment-inner .comment-content p {
  margin-bottom: 0;
}
.side-bar .widget-comment .comment-inner .comment-content img {
  height: 1em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}
.side-bar .widget-comment .comment-inner .comment-content img:hover {
  transform: scale(3);
}
.side-bar .widget-comment .comment-refer {
  margin: 5px 0 0;
  color: #b4b4b4;
  font-size: 12px;
}
.side-bar .nav-list-card {
  padding-top: 20px;
}
.side-bar .nav-list-card .col-xxl-3 {
  width: 100%;
  padding: 0;
  margin-top: 0;
}
.side-bar .nav-list-card .light-shadow {
  box-shadow: none;
}
.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;
}
.side-bar #calendar .day,
.side-bar #calendar .day2 {
  position: relative;
  background: #f3f3f3;
}
.side-bar #calendar .day {
  background: var(--primary-color);
  color: #fff;
}
.side-bar #calendar .calendartop {
  width: 100%;
  text-align: center;
}
.side-bar #calendar .calendartop td {
  width: 50%;
  padding: 16px 0;
}
.side-bar #calendar .calendar {
  width: 100%;
  padding: 0 20px 20px;
}
.side-bar #calendar .calendar td {
  text-align: center;
  height: 43px;
  border-radius: 50%;
}
.side-bar #calendar .calendar td a {
  font-weight: bold;
  display: block;
}

.comment-box {
  padding-top: 20px;
}
.comment-box .comment {
  padding: 20px 20px 20px 78px;
  overflow: hidden;
  height: 100%;
  zoom: 1;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: var(--background-color-alt);
  margin-bottom: 15px;
  border-radius: 8px;
}
.comment-box .comment .avatar {
  position: absolute;
  left: 15px;
}
.comment-box .comment .avatar img {
  width: 48px;
  border-radius: 50%;
}
.comment-box .comment .poster {
  font-weight: bold;
}
.comment-box .comment:hover {
  box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
}
.comment-box .comment .comment-children .avatar {
  left: 25px;
}
.comment-box .comment .comment-children .avatar img {
  width: 32px;
}
.comment-box .comment .comment-content {
  margin: 10px 0;
}

.comment-post {
  padding: 25px;
  background: var(--background-color-alt);
  border-radius: 8px;
}

.modal-mode {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-mode .modal-mode-body {
  width: 600px;
  max-width: 100%;
  padding: 20px;
}
.modal-mode .hash-title {
  background: #3a3a3a;
  padding-left: 20px;
  border-radius: 8px;
  line-height: 3;
  display: flex;
  margin-bottom: 5px;
}
.modal-mode .hash-title .respond, .modal-mode .hash-title:before {
  display: none;
}
.modal-mode #cancel-reply {
  font-size: 14px;
  color: #fff;
}

.pagination {
  margin: 25px auto;
  text-align: center;
  justify-content: center;
  overflow-x: auto;
  display: block;
}
.pagination a,
.pagination span, .pagination em {
  display: inline-block;
  text-decoration: none;
  padding: 5px 15px;
  color: var(--text-color);
  background: var(--background-color-alt);
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.3s;
}
.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: 998;
  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;
}

.link-item {
  display: inline-block;
  font-size: 13px;
  transition: 0.3s;
}
.link-item a {
  display: block;
  padding: 10px;
}
.link-item:hover {
  border-radius: 8px;
  background: var(--background-color);
}
.link-item .ico {
  width: 18px;
  border-radius: 50%;
}


/* ========== 全局优化 ========== */
:root {
  --transition-speed: 0.15s;
  --dark-mode-bg: #121212;
  --dark-mode-border: rgba(255, 255, 255, 0.1);
}

/* 优化过渡性能 */
* {
  transition: background-color var(--transition-speed) ease, 
              border-color var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease !important;
}

/* ========== 基础标签样式 ========== */
.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  margin: 0 4px 5px 0;
  font-size: 11px;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  will-change: transform, box-shadow;
  cursor: default;
}

/* 多选收费模式标签的特殊样式 */
.pricing-multi {
  cursor: help;
  position: relative;
}

.pricing-multi::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent rgba(255, 255, 255, 0.7) transparent transparent;
}

/* 置顶标签 */
.tool-tag-top { 
  background: #ff4d4f;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
}
/* 最新标签 */
.tool-tag-new { 
  background: 4caf50;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
}
/* 其他标签 */
.tool-tag-domestic { background: #409eff; box-shadow: 0 2px 6px rgba(64, 158, 255, 0.3); }
.tool-tag-foreign { background: #f56c6c; box-shadow: 0 2px 6px rgba(245, 108, 108, 0.3); }
.tool-tag-free { background: #67c23a; box-shadow: 0 2px 6px rgba(103, 194, 58, 0.3); }
.tool-tag-partial { background: #e6a23c; box-shadow: 0 2px 6px rgba(230, 162, 60, 0.3); }
.tool-tag-subscription { background: #9c27b0; box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3); }
.tool-tag-pay-per-use { background: #3f51b5; box-shadow: 0 2px 6px rgba(63, 81, 181, 0.3); }
.tool-tag-fenl { background: rgba(128, 128, 128, 0.5);
box-shadow: 0 2px 6px rgba(128, 128, 128, 0.15);}

.tool-tag-ai { 
  background: linear-gradient(135deg, #3498db, #9b59b6);
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.tool-tag-buyout {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

/* ========== 黑暗模式优化 ========== */
/* 统一选择器，减少重复 */
.dark-mode .tool-tag,
.dark-theme .tool-tag,
.night-mode .tool-tag {
  background-color: var(--dark-mode-bg);
  border: 1px solid var(--dark-mode-border);
  box-shadow: none;
}

/* 优化发光效果 */
.dark-mode .tool-tag-top,
.dark-theme .tool-tag-top,
.night-mode .tool-tag-top {
  box-shadow: 0 0 10px rgba(255, 77, 79, 0.7);
}

.dark-mode .tool-tag-domestic,
.dark-theme .tool-tag-domestic,
.night-mode .tool-tag-domestic {
  box-shadow: 0 0 10px rgba(64, 158, 255, 0.7);
}

.dark-mode .tool-tag-foreign,
.dark-theme .tool-tag-foreign,
.night-mode .tool-tag-foreign {
  box-shadow: 0 0 10px rgba(245, 108, 108, 0.7);
}

.dark-mode .tool-tag-free,
.dark-theme .tool-tag-free,
.night-mode .tool-tag-free {
  box-shadow: 0 0 10px rgba(103, 194, 58, 0.7);
}

.dark-mode .tool-tag-partial,
.dark-theme .tool-tag-partial,
.night-mode .tool-tag-partial {
  box-shadow: 0 0 10px rgba(230, 162, 60, 0.7);
}

.dark-mode .tool-tag-subscription,
.dark-theme .tool-tag-subscription,
.night-mode .tool-tag-subscription {
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.7);
}

.dark-mode .tool-tag-pay-per-use,
.dark-theme .tool-tag-pay-per-use,
.night-mode .tool-tag-pay-per-use {
  box-shadow: 0 0 10px rgba(63, 81, 181, 0.7);
}

.dark-mode .tool-tag-fenl,
.dark-theme .tool-tag-fenl,
.night-mode .tool-tag-fenl {
  box-shadow: 0 0 10px rgba(63, 81, 181, 0.7);
}

.dark-mode .tool-tag-ai,
.dark-theme .tool-tag-ai,
.night-mode .tool-tag-ai {
  background: var(--dark-mode-bg);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
}

.dark-mode .tool-tag-buyout,
.dark-theme .tool-tag-buyout,
.night-mode .tool-tag-buyout {
  background: var(--dark-mode-bg);
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.7);
}

/* ========== 绝对定位标签优化 ========== */
.nav-list-simple .js-log-list-item {
  position: relative;
}

.top-tag-absolute {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  background: #ff4d4f;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
  will-change: transform, box-shadow;
}

.dark-mode .top-tag-absolute,
.dark-theme .top-tag-absolute,
.night-mode .top-tag-absolute {
  background: var(--dark-mode-bg);
  border: 1px solid var(--dark-mode-border);
  box-shadow: 0 0 10px rgba(255, 77, 79, 0.7);
}

.top-tag-absolute .iconfont {
  margin-right: 4px;
  font-size: 11px;
}

/* ========== 动画性能优化 ========== */
.tool-tag i {
  margin-right: 4px;
  font-size: 11px;
}

.tool-tag:hover {
  transform: translateY(-2px);
}

.tool-tag::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-tag:hover::before {
  opacity: 0.5;
  animation: shine 1s forwards;
}

@keyframes shine {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

.tool-tag-ai:hover {
  animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
  0% { box-shadow: 0 0 10px rgba(52, 152, 219, 0.7); }
  50% { box-shadow: 0 0 15px rgba(52, 152, 219, 0.9); }
  100% { box-shadow: 0 0 10px rgba(52, 152, 219, 0.7); }
}152, 219, 0.7); }
}

/* ========== 分类标签优化 ========== */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  margin: 0 4px 5px 0;
  font-size: 11px;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  background: #7e57c2;
  box-shadow: 0 2px 6px rgba(126, 87, 194, 0.3);
  will-change: transform, box-shadow;
}

.dark-mode .category-tag,
.dark-theme .category-tag,
.night-mode .category-tag {
  background: var(--dark-mode-bg);
  box-shadow: 0 0 10px rgba(126, 87, 194, 0.7);
}

.category-tag i {
  margin-right: 4px;
  font-size: 11px;
}

.category-tag:hover {
  transform: translateY(-2px);
}

/* ================= 主分类样式 ================= */
.parent-title {
    display: inline-block;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-right: 10px;
    font-weight: bold;
    /* 使用主题主色调 */
    background: var(--background-color);
    color: var(--text-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.parent-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 主分类图标颜色修改为紫蓝渐变 */
.parent-title i {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 8px;
}
/* ================= 子分类样式 ================= */
.child-sorts-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    margin: 0 10px;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    align-items: center;
}

.child-sorts-container::-webkit-scrollbar {
    display: none;
}

.child-sorts-container > .child-sort {
    flex: 0 0 auto;
    margin: 0 5px;
    padding: 5px 15px;
    /* 使用主题背景色 */
    background: var(--background-color);
    border-radius: 25px;
    font-size: 0.95em;
    /* 使用主题文字颜色 */
    color: var(--text-color);
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: var(--light-shadow);
    border: 1px solid var(--line-color);
    position: relative;
}

.child-sorts-container > .child-sort:hover {
    background: var(--background-color-hover);
    color: var(--text-color-muted);
    transform: translateY(-2px);
}

/* 子分类图标颜色修改为紫蓝渐变 */
.child-sorts-container > .child-sort i {
    background: linear-gradient(45deg, #8a2be2, #0e4ba5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 8px;
}

/* ================= 布局调整 ================= */
.sy-home-section-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 15px;
    background: var(--background-color-alt);
    border-radius: 5px;
    box-shadow: var(--light-shadow);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sy-home-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    /* 使用主题主色调 */
    background: linear-gradient(45deg, #8a2be2, #0e4ba5);
    z-index: -1;
}

.more-link {
    margin-left: auto;
    white-space: nowrap;
}

.more-link span {
    margin-right: 5px;
}

/* 更多链接图标颜色修改为紫蓝渐变 */
.more-link i {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* ================= 友情链接特殊样式 ================= */
.links-header {
    background: 
    background: var(--background-color-alt);
    padding: 15px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.3) !important;
    color: white !important;
}

.links-header .parent-title {
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 6px 15px !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 1.3rem !important;
}

.links-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 500;
}
/* ================= 菜单样式 ================= */
.side-menu-item > a {
    font-weight: bold !important;
    color: var(--background-linear);
    position: relative;
    padding-right: 20px;
}
.side-menu {
  padding: 15px;
}
.side-menu a {
  line-height: 2.8;
  transition: all 0.3s;
  cursor: pointer;
  padding: 0 10px;
  display:flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

/* 菜单图标颜色修改为紫蓝渐变 */
.side-menu .icon {
  margin-right: 10px;
  font-size: 18px !important;
  height: 1em;
  width: 1em;
  border-radius: 4px;
  background: linear-gradient(45deg, #8a2be2, #0e4ba5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 图标字体颜色修改为紫蓝渐变 */
.side-menu .iconfont {
  vertical-align: -1px;
  line-height: 1;
  font-size: 12px;
  background: linear-gradient(45deg, #8a2be2, #0e4ba5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.side-menu a:hover {
  background: var(--background-color);
}
.side-menu a.active {
  background: var(--background-linear);
  background-size: 200% 200%;
}

/* 激活状态下的图标颜色 */
.side-menu a.active .icon,
.side-menu a.active .iconfont {
  color: #fff !important; 
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.side-menu a.active:hover {
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}   

/* 子分类样式 */
.side-submenu .side-menu-item.child > a {
    font-size: 0.9em !important;
    font-weight: normal !important;
    color: var(--text-color-muted) !important;
    padding-left: 15px !important;
}

/* 箭头样式 */
.side-menu-item .arrow {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold !important;
    font-size: 19px !important;
    transition: transform 0.3s ease;
    /* 箭头颜色修改为紫蓝渐变 */
    background: var(--text-color-muted);
    background-clip: text;
    color: transparent;
}

.side-menu-item .icon-down {
    transform: translateY(-50%) rotate(90deg);
}

/* 暗色模式适配 */
.dark-mode .parent-title {
    background: var(--primary-color);
}

/* 内容切换动画 */
.parent-content, .child-section {
    transition: opacity 0.3s ease;
}

/* 滚动到目标元素时的视觉反馈 */
.scroll-target {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(138, 43, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

/* ================= 移动端优化 ================= */
@media (max-width: 768px) {
    .sy-home-section-header {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 15px;
        scrollbar-width: none;
    }
    .sy-home-section-header::-webkit-scrollbar {
        display: none;
    }
    
    .parent-title {
        margin: 0 5px 0 0;
        padding: 6px 12px;
        flex-shrink: 0;
        font-size: 0.95em;
    }
    
    .child-sorts-container {
        display: flex;
        flex-wrap: nowrap;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
        align-items: center;
    }
    
    .child-sorts-container > .child-sort {
        margin: 0 4px;
        padding: 4px 12px;
        font-size: 0.9em;
        flex-shrink: 0;
    }
    
    /* 隐藏PC端更多文字（仅移动端） */
    .more-link span {
        display: none;
    }
    
    .more-link {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        padding: 0 5px;
    }
    
    /* 移动端图标颜色修改为紫蓝渐变 */
    .more-link i {
        background: linear-gradient(45deg, #8a2be2, #4b0082);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}


/* 整体样式 */
.layout-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 0 5px;
}

.switcher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-color); /* 使用主题背景色 */
    border-radius: 30px;
    padding: 6px 15px;
    box-shadow: var(--light-shadow); /* 使用主题阴影变量 */
}

.switcher-label {
    font-size: 14px;
    color: var(--text-color-muted); /* 使用次要文本色 */
    font-weight: 500;
}

/* 语言选择器样式 */
.lang-selector {
    position: relative;
    cursor: pointer;
}

.current-lang {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color); /* 使用主题文本色 */
    padding: 3px 8px;
    border-radius: 4px;
}

.lang-selector:hover .current-lang {
    background: var(--background-color-hover); /* 使用主题hover背景色 */
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: var(--background-color-alt); /* 使用主题交替背景色 */
    border-radius: 8px;
    box-shadow: var(--light-shadow); /* 使用主题阴影变量 */
    padding: 8px 0;
    min-width: 160px;
    display: none;
    margin-top: 5px;
}

.lang-dropdown div {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-color); /* 使用主题文本色 */
    cursor: pointer;
    transition: all 0.2s;
}

.lang-dropdown div:hover {
    background: var(--background-color-hover); /* 使用主题hover背景色 */
    color: var(--primary-color); /* 使用主题主色 */
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

/* 布局选择器样式 */
.layout-mode {
    display: flex;
    background: var(--background-color-hover); /* 使用主题hover背景色 */
    border-radius: 30px;
    padding: 2px;
}

.layout-option {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.layout-option.active {
    background: var(--background-color-alt); /* 使用主题交替背景色 */
    box-shadow: var(--light-shadow); /* 使用主题阴影变量 */
    color: var(--bs-heading-color); /* 使用主题主色 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .layout-switcher {
        flex-direction: column;
        gap: 10px;
    }
    
    .switcher-item {
        width: 100%;
    }
}

/* 加载提示样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 深色模式适配加载层 */
.dark .loading-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--background-color-hover); /* 使用主题hover背景色 */
    border-top: 5px solid var(--primary-color); /* 使用主题主色 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-color); /* 使用主题文本色 */
    font-weight: 500;
}



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

