/* global.css */
:root {
  /* 轮播的条数，可以覆盖 */
  --s: 6;
  /* 单个条目的高度 */
  --h: 36;
  /* 单次动画的时长 */
  --speed: 3s;
  
  /* 亮色主题变量 */
  --theme: rgb(255, 255, 255);
  --entry: rgb(255, 255, 255);
  --primary: rgb(30, 30, 30);
  --secondary: rgb(108, 108, 108);
  --tertiary: rgb(214, 214, 214);
  --content: rgb(31, 31, 31);
  --hljs-bg: rgb(28, 29, 33);
  --code-bg: rgb(245, 245, 245);
  --border: rgb(238, 238, 238);
  --accent: rgb(0, 43, 183);
  --accent-a11: rgb(0, 43, 183);
  --gray-1: rgb(248, 248, 248);
  --gray-2: rgb(240, 240, 240);
  --gray-3: rgb(230, 230, 230);
  --gray-4: rgb(200, 200, 200);
  --gray-5: rgb(150, 150, 150);
  --gray-6: rgb(100, 100, 100);
  --gray-7: rgb(50, 50, 50);
  --gray-8: rgb(25, 25, 25);
  --gray-9: rgb(10, 10, 10);
}

/* 暗色主题变量 */
.dark {
  --theme: rgb(29, 30, 32);
  --entry: rgb(46, 46, 51);
  --primary: rgb(218, 218, 219);
  --secondary: rgb(155, 156, 157);
  --tertiary: rgb(65, 66, 68);
  --content: rgb(196, 196, 197);
  --hljs-bg: rgb(46, 46, 51);
  --code-bg: rgb(55, 56, 62);
  --border: rgb(51, 51, 51);
  --accent: rgb(77, 20, 230);
  --accent-a11: rgb(155, 156, 157);
  --gray-1: rgb(46, 46, 51);
  --gray-2: rgb(55, 56, 62);
  --gray-3: rgb(65, 66, 68);
  --gray-4: rgb(75, 76, 78);
  --gray-5: rgb(85, 86, 88);
  --gray-6: rgb(95, 96, 98);
  --gray-7: rgb(105, 106, 108);
  --gray-8: rgb(115, 116, 118);
  --gray-9: rgb(125, 126, 128);
}

/* 全局字体设置 */
* {
  font-family: 'LXGW WenKai Screen', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  box-sizing: border-box;
}

body {
  font-family: 'LXGW WenKai Screen', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--theme);
  color: var(--primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 字体层次优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

/* 正文文本层次 */
p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1em;
}

/* 小字体文本 */
small, .text-small {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* 更小的字体文本 */
.text-xs {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

/* 强调文本 */
strong, b {
  font-weight: 700;
}

/* 链接样式优化 */
a {
  color: var(--accent-a11);
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
  font-weight: 700;
  transform: translateY(-1px);
}

a,
.radix-link {
  text-decoration: none !important;
}

[data-has-background="true"] {
  background: none !important;
}

p img {
  display: block;
  margin: 0 auto;
  border-color: var(--gray-5);
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.latest-news {
  margin-top: 4px;
  height: calc(var(--h) * 1px);
  line-height: calc(var(--h) * 1px);
  border-radius: 6px;
  border: 1px solid rgb(202, 201, 201);
  overflow: hidden;
  display: flex;
}

.latest-news .icon {
  width: 30px;
  margin-left: 4px;
  display: flex;
  align-items: center;
}

.latest-news .content {
  font-size: 14px;
  overflow: hidden;
  margin-left: 4px;
}

.latest-news .content ul {
  animation: move calc(var(--speed) * var(--s)) steps(var(--s)) infinite;
  margin: 0;
  padding: 0;
}

.latest-news .content ul li {
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  animation: liMove calc(var(--speed)) infinite;
}

.latest-news .content ul li a {
  color: var(--accent-a11);
  font-weight: 500;
}

@keyframes move {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(0, calc(var(--s) * var(--h) * -1px));
  }
}

@keyframes liMove {
  0% {
    transform: translate(0, 0);
  }

  80%,
  100% {
    transform: translate(0, calc(var(--h) * -1px));
  }
}

/* 页面跳转动画效果 - 已禁用回弹效果 */
.page-transition {
  /* 取消回弹动画，保持平滑过渡 */
  opacity: 1;
  transform: translateY(0);
}

/* 链接悬停动画效果 */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
  font-size: 16px !important;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #d55b5b, #4d14e6);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 顶部导航栏字体大小强制设置 */
[data-radix-tab-nav-item] {
  font-size: 20px !important;
}

[data-radix-tab-nav-item] a {
  font-size: 20px !important;
}

/* 卡片悬停效果 */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 按钮动画效果 */
.btn-animate {
  transition: all 0.3s ease;
}

.btn-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 主题切换按钮样式 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--tertiary);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.theme-toggle:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(15deg);
}

/* 暗色模式下的特殊样式 */
.dark .theme-toggle {
  background: var(--tertiary);
  color: var(--primary);
}

.dark .theme-toggle:hover {
  background: var(--secondary);
}

/* 通用组件暗色模式适配 */
.dark .card,
.dark [data-radix-card] {
  background: var(--entry);
  border-color: var(--border);
  color: var(--primary);
}

.dark .button,
.dark [data-radix-button] {
  background: var(--tertiary);
  color: var(--primary);
  border-color: var(--border);
}

.dark .button:hover,
.dark [data-radix-button]:hover {
  background: var(--secondary);
}

.dark input,
.dark textarea,
.dark [data-radix-input] {
  background: var(--entry);
  color: var(--primary);
  border-color: var(--border);
}

.dark input:focus,
.dark textarea:focus,
.dark [data-radix-input]:focus {
  border-color: var(--accent);
}


/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme);
}

::-webkit-scrollbar-thumb {
  background: var(--tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* 选择文本样式 */
::selection {
  background: var(--accent);
  color: var(--theme);
}

::-moz-selection {
  background: var(--accent);
  color: var(--theme);
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
  /* 移动端body边距 */
  body {
    padding: 15px !important;
  }
  
  /* 移动端导航栏优化 */
  .nav-link {
    font-size: 16px !important;
    padding: 8px 12px !important;
  }
  
  /* 移动端标题字体大小调整 */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* 移动端底部主题切换按钮位置调整 */
  .bottom-theme-toggle {
    bottom: 16px !important;
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }
  
  /* 移动端卡片间距优化 */
  .card-hover {
    margin-bottom: 12px;
  }
}


/*# sourceMappingURL=main.1ff15ee28c21d652d2dc.css.map*/