@import url('/font/index.css');
:root {
	--dark-bg-color: rgb(39, 55, 73);
	--dark-text-color: rgb(217, 233, 242);	
}



body {
	font-family: 'HarmonyOS Sans SC', serif;
	font-weight: 400;
	margin: 0;
	padding: 0;
	text-align: left;
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-size: 18px;
	line-height: 1.7;
}

pre,
code {
	font-family: 'SF Mono' !important;
}




[data-bs-theme="dark"] {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}

[data-bs-theme="dark"] .bg-light {
  background-color: var(--dark-bg-color) !important;
}

[data-bs-theme="dark"] .text-muted {
  color: var(--dark-text-color) !important;
}
[data-bs-theme="dark"] body {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}
[data-bs-theme="dark"] .card {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}
[data-bs-theme="dark"] .table {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}
[data-bs-theme="dark"] .list-group{
    background-color: var(--dark-bg-color);
    color: var(--dark-text-color);
} 
[data-bs-theme="dark"] .list-group-item{
    background-color: var(--dark-bg-color);
    color: var(--dark-text-color);
}
[data-bs-theme="dark"] .list-group-item-action{
    background-color: var(--dark-bg-color);
    color: var(--dark-text-color);
}


[data-bs-theme="dark"] .table > :not(caption) > * > * {
  color: var(--dark-text-color);
}
[data-bs-theme="dark"] .blog-post-content p strong {
  color: #f17807;
}


.card {
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.nav-pills .nav-link {
  margin: 0 0.25rem;
  border-radius: 20px;
}

.nav-pills .nav-link.active {
  background-color: var(--bs-primary);
}

.card-body {
  position: relative;
}

.btn-group .btn {
  border-radius: 15px;
  padding: 0.375rem 1rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .nav-pills .nav-link {
    white-space: nowrap;
  }

  .card-title {
    font-size: 1.1rem;
  }
}

/* 加载更多按钮样式 */
#load-more {
  border-radius: 20px;
  padding: 0.5rem 2rem;
  transition: all 0.3s ease;
}

#load-more:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 自定义下划线标签页样式 */
.card-header-tabs {
  border-bottom: none;
}

.card-header-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  color: var(--bs-gray-600);
  transition: all 0.3s ease;
  position: relative;
}

.card-header-tabs .nav-link:hover {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary-lighter);
}

.card-header-tabs .nav-link.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  background: none;
}

.card-header-tabs .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--bs-primary);
  transition: width 0.3s ease;
}

.card-header-tabs .nav-link:hover::after,
.card-header-tabs .nav-link.active::after {
  width: 100%;
}

/* 标签页内容过渡效果 */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 回到顶部按钮样式 */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  width: 45px;
  height: 45px;
  padding: 0;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}
.back-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* 增强导航菜单文字对比度 */
.navbar-dark .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffeb3b !important; /* hover时亮黄色 */
  font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: #ffeb3b !important; /* 激活状态亮黄色 */
  font-weight: 600;
}

/* 主题切换按钮颜色保持清晰 */
#theme-toggle {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

#theme-toggle:hover {
  color: #ffeb3b !important;
  border-color: #ffeb3b !important;
}
img{
  max-width: 100%;
  height: auto;
}

.table {
  table-layout: fixed; /* 固定布局，确保宽度均分 */
  width: 100%; /* 占满容器 */
}

.table th {
  width: calc(100% / 5); /* 假设有 5 列，均分宽度 */
  white-space: nowrap; /* 表头保持单行 */
  overflow: hidden;
  text-overflow: ellipsis; /* 表头超长时显示省略号 */
}

.table td {
  white-space: normal; /* 允许内容换行 */
  word-wrap: break-word; /* 超长单词换行 */
  overflow: visible; /* 防止内容被截断 */
}

.table-responsive {
  overflow-x: auto !important; /* 确保横向滚动条 */
}

.text-purple {
  color: #5c16c5;
}

.platform-icon {
  padding: 20px;
  transition: transform 0.3s ease;
}

.platform-icon:hover {
  transform: scale(1.1);
}
.platform-icon img {
  max-width: 100%;
  height: auto;
  min-height: 170px;
  max-height: 170px;
}
.platform-icon p{
  font-size: 21px;
  font-weight: 600;
}

.header-bg{
  background: #e50914;
}

.fix-list {
  list-style: decimal inside; /* 让数字贴着文字 */
  padding-left: 0;
  display: block; /* 关键：移除 nav 的 flex 布局 */
}

.fix-list .nav-item {
  display: list-item; /* 恢复 li 为列表项，保留数字 */
  color: #007bff;
  font-weight: bold;
}

.fix-list .nav-link {
  display: inline; /* 避免 a 占据整行 */
  padding: 0;       /* 移除多余的 padding */
}

.custom-ul {
  list-style: disc inside; /* 显示圆点 */
  padding-left: 0.9rem;    /* 添加缩进，看起来更自然 */
  margin-top: 0.3rem;
}

.custom-ul li {
  display: list-item;
}


#table-of-contents .active{
  color: rgba(255, 81, 91, 1) !important;
  font-weight: 600;
  background-color: rgba(255, 81, 91, .08);
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  position: relative;
  padding-bottom: 5px; /* 给一点空间 */
}


.blog-post-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #60a5fa, #a78bfa); /* h2 渐变 */
  border-radius: 2px;
}

.blog-post-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #38bdf8, #818cf8); /* h3 渐变 */
  border-radius: 2px;
}

.blog-post-content h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #67e8f9, #c084fc); /* h4 渐变 */
  border-radius: 2px;
}


.blog-post-content a.anchor-link {
  position: relative;
  color: #60a5fa; /* 初始为淡蓝色 */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-post-content a.anchor-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-post-content a.anchor-link:hover {
  color: #93c5fd; /* hover 时稍亮一点 */
}

.blog-post-content a.anchor-link:hover::after {
  transform: scaleX(1);
}

/* 可选：访问过的链接颜色 */
.blog-post-content a.anchor-link:visited {
  color: #c4b5fd;
}

.blog-post-content li strong {
  color:#e50914;
}

.table , .table th, .table td{
  --un-bg-opacity: 1;
  background-color: rgb(39 55 73 / var(--un-bg-opacity));
  --un-text-opacity: 1;
  color: rgb(217 233 242 / var(--un-text-opacity));
}

.blog-post-content table {
  margin: 2.1rem 0;
  width: 100%;
  max-width: 100%;
  height:  auto;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #ccc;
  font-size: 1rem;
  line-height: 1.5;
  color: #FFFFFF; /* ç™½è‰²å­—ä½“ */
  background-color: rgba(255, 255, 255, 0.1); /* åŠé€æ˜Žç™½è‰²èƒŒæ™¯ */
}


.blog-post-content th:first-child {
  border-top-left-radius: 12px;
}
.blog-post-content th:last-child {
  border-top-right-radius: 12px;
}


.blog-post-content tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}
.blog-post-content tr:last-child td {
  border-bottom: none;
}

.blog-post-content table th,
.blog-post-content table td {
  padding: 0.9rem;
  border: 1px solid #ccc;
}

.blog-post-content table th {
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.2); 
}

.blog-post-content table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.1); 
}
.blog-post-content table a {
  color: #a6c1ee; 
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-post-content table a:hover {
  color: #6A89A8; 
}

[data-bs-theme="dark"] .table > :not(:first-child) {
  border-top: 1px solid var(--dark-text-color);
}
[data-bs-theme="dark"] .table > :not(:last-child) {
  border-bottom: 1px solid var(--dark-text-color);
}
[data-bs-theme="dark"] .table > :not(:last-child) > :last-child > * {
  border-bottom-color: var(--dark-text-color);
}